forked from mlc-ai/mlc-llm
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test cases for temperature * Fix temperature parameter verification * Extend tests on temperature * Fix import * Fix test for logprobs after rebase * Add tests for repetition penalty * Refactor test for penalties * Fix types + update tests for logprobs after rebase * Fix type of error in tests * Fix tests for temperature * Update test for penalties * Extend tests for top_p, top_k * Remove irrelevant todo * Extend test for logit_bias * Remove underlines to execute with pytest * Add test for num_sequences * format + lint * Add test for inspecting behaviour of logprobs depending on temperature * Test with mixed greedy and random sampling requests + fix after merge * Fix get_sampling_state * Redesign test penalties * Set top_k as vocab_size when -1 + simplify test for penalties * Add pytest parametrization * Update mixed test * Skip broken test * Remove debug print * Corrections according to review comments + add simple test for logit_bias with engine * Fix indices in logit_bias since it starts from 0 * Update test for penalties * Add greedy sampling case in test for penalties * Remove debug lines
- Loading branch information
Showing
4 changed files
with
542 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.