Skip to content

Commit 10781d8

Browse files
jquesnellehazelnutcloud
authored andcommitted
fix speculative decoding build on windows (ggml-org#5874)
1 parent 20df72d commit 10781d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/speculative/speculative.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ int main(int argc, char ** argv) {
226226

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

0 commit comments

Comments
 (0)