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.
Sampler Throughput Optimization (#192)
* wip * cleanup and fix the fallback path * more cleanup * more cleanup * add sampler testcase * wip - resolve merge conflict * resolved merge conflict, move metadata preparation earlier * more cleanup * wip:logprob * logprob works for sync * remove unncessary output tokens * multi-decode, fallback path * tested fallback * wip * remove the custom multinomial since there was no much impact. Add sampling tests * more sampler test cases * wip:mypy * fix mypy * fix * expose model config to higher-level APIs * reflect feedback * fix mypy * remove index shuffling in random/greedy * wip * better * better * more comments * reflect feedback * reflect comment
- Loading branch information
Showing
16 changed files
with
1,279 additions
and
560 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
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.