Skip to content

Commit

Permalink
fix speculative decoding build on windows (ggerganov#5874)
Browse files Browse the repository at this point in the history
  • Loading branch information
jquesnelle authored and hodlen committed Apr 1, 2024
1 parent 2fa50ff commit bf73cd2
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 bf73cd2

Please sign in to comment.