Skip to content

Commit

Permalink
fix speculative decoding build on windows (#5874)
Browse files Browse the repository at this point in the history
  • Loading branch information
jquesnelle authored Mar 5, 2024
1 parent 1d41d6f commit 29eee40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/speculative/speculative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ int main(int argc, char ** argv) {

while (active_seqs.size() > 0) {
// randomly select a sequence to verify from active sequences
std::uniform_int_distribution<u_int> u_int_dist(0, active_seqs.size() - 1);
std::uniform_int_distribution<unsigned int> u_int_dist(0, active_seqs.size() - 1);
int s = *std::next(active_seqs.begin(), u_int_dist(rng));
if (i_dft >= (int) drafts[s].tokens.size()) {
drafts[s].active = false;
Expand Down

0 comments on commit 29eee40

Please sign in to comment.