diff --git a/integration-tests/models/__snapshots__/test_mt0_base/test_mt0_base_all_params.json b/integration-tests/models/__snapshots__/test_mt0_base/test_mt0_base_all_params.json index 024823d0..5cacf3e9 100644 --- a/integration-tests/models/__snapshots__/test_mt0_base/test_mt0_base_all_params.json +++ b/integration-tests/models/__snapshots__/test_mt0_base/test_mt0_base_all_params.json @@ -1,8 +1,8 @@ { "details": { "best_of_sequences": null, - "finish_reason": "eos_token", - "generated_tokens": 9, + "finish_reason": "length", + "generated_tokens": 10, "prefill": [ { "id": 0, @@ -14,7 +14,7 @@ "tokens": [ { "id": 16017, - "logprob": -0.30908203, + "logprob": 0.0, "special": false, "text": " blue" }, @@ -26,39 +26,45 @@ }, { "id": 259, - "logprob": -0.28271484, + "logprob": -0.4716797, "special": false, "text": " " }, { - "id": 15484, - "logprob": -1.7929688, + "id": 261, + "logprob": -0.044677734, "special": false, - "text": "appear" + "text": "," }, { - "id": 345, - "logprob": -0.8935547, + "id": 35622, + "logprob": -0.79589844, "special": false, - "text": "ed" + "text": " cloud" }, { - "id": 281, + "id": 263, + "logprob": -1.2958984, + "special": false, + "text": "s" + }, + { + "id": 305, "logprob": 0.0, "special": false, - "text": " in" + "text": " and" }, { - "id": 287, + "id": 35622, + "logprob": -1.1630859, + "special": false, + "text": " cloud" + }, + { + "id": 263, "logprob": 0.0, "special": false, - "text": " the" - }, - { - "id": 20495, - "logprob": -0.32299805, - "special": false, - "text": " sky" + "text": "s" }, { "id": 1, @@ -66,7 +72,8 @@ "special": true, "text": "" } - ] + ], + "top_tokens": null }, - "generated_text": "Why is the sky blue?blue sky appeared in the sky" + "generated_text": "Why is the sky blue?blue sky, clouds and clouds" } diff --git a/integration-tests/models/test_mt0_base.py b/integration-tests/models/test_mt0_base.py index 12f23e4c..c877056a 100644 --- a/integration-tests/models/test_mt0_base.py +++ b/integration-tests/models/test_mt0_base.py @@ -45,7 +45,7 @@ async def test_mt0_base_all_params(mt0_base, response_snapshot): seed=0, ) - assert response.details.generated_tokens == 9 + assert response.details.generated_tokens == 10 assert response == response_snapshot diff --git a/router/src/validation.rs b/router/src/validation.rs index 646ff229..24bcf191 100644 --- a/router/src/validation.rs +++ b/router/src/validation.rs @@ -646,9 +646,11 @@ mod tests { let max_total_tokens = 6; let workers = 1; let disable_grammar_support = true; + let config = None; let validation = Validation::new( workers, tokenizer, + config, max_best_of, max_stop_sequence, max_top_n_tokens, @@ -677,9 +679,11 @@ mod tests { let max_total_tokens = 6; let disable_grammar_support = true; let workers = 1; + let config = None; let validation = Validation::new( workers, tokenizer, + config, max_best_of, max_stop_sequence, max_top_n_tokens, @@ -708,9 +712,11 @@ mod tests { let max_total_tokens = 6; let workers = 1; let disable_grammar_support = true; + let config = None; let validation = Validation::new( workers, tokenizer, + config, max_best_of, max_stop_sequence, max_top_n_tokens, @@ -744,9 +750,11 @@ mod tests { let max_total_tokens = 106; let workers = 1; let disable_grammar_support = true; + let config = None; let validation = Validation::new( workers, tokenizer, + config, max_best_of, max_stop_sequence, max_top_n_tokens, @@ -809,9 +817,11 @@ mod tests { let max_total_tokens = 106; let workers = 1; let disable_grammar_support = true; + let config = None; let validation = Validation::new( workers, tokenizer, + config, max_best_of, max_stop_sequences, max_top_n_tokens,