Skip to content

Commit

Permalink
Force at least 2 spec runs
Browse files Browse the repository at this point in the history
  • Loading branch information
AutonomicPerfectionist committed Jan 8, 2024
1 parent 73b92c7 commit e797f1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/speculative/speculative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ int main(int argc, char ** argv) {

int first_run = true;

// bool is_waiting = llama_mpi_iprobe(ctx_tgt);
bool is_waiting = false;
// llama_swap_comm(ctx_tgt);
// llama_sync_token(ctx_tgt, reinterpret_cast<llama_token *>(&is_waiting), 0);
Expand Down Expand Up @@ -708,7 +709,7 @@ int main(int argc, char ** argv) {
free_sequence_offsets.push_back(seq_offset);
}
int iter = 0;
while(!is_waiting) {
while(iter < 2 || !is_waiting) {



Expand Down

0 comments on commit e797f1a

Please sign in to comment.