-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add speculative decoding part #3711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
iamrk04
merged 5 commits into
ayushmishra/add-nb-to-submit-rl-jobs
from
iamrk04/speculative_decoding
Dec 1, 2025
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
41cbfb3
add speculative decoding part
iamrk04 c060e1b
Merge branch 'ayushmishra/add-nb-to-submit-rl-jobs' into iamrk04/spec…
iamrk04 8a28b94
black formatting
iamrk04 27805f5
fix missing updates
iamrk04 e05af9f
add dataset preparation for sharegpt
iamrk04 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
500 changes: 500 additions & 0 deletions
500
...undation-models/system/reinforcement-learning/data/draft_model/sharegpt_train_small.jsonl
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...tion-models/system/reinforcement-learning/environment/speculative-decoding-env/Dockerfile
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| FROM lmsysorg/sglang:v0.5.2rc2-cu126 | ||
| ENV BASE_MODEL nvidia/Llama-3.1-8B-Instruct-FP8 | ||
| ENV DRAFT_MODEL lmsys/sglang-EAGLE3-LLaMA3.1-Instruct-8B | ||
| ENV SGLANG_ARGS "--tp-size 1 --max-running-requests 32 --mem-fraction-static 0.8 --enable-torch-compile --speculative-algorithm EAGLE3 --speculative-num-steps 3 --speculative-eagle-topk 2 --speculative-num-draft-tokens 4 --dtype float16 --attention-backend fa3 --host 0.0.0.0 --port 30000" | ||
| ENV SGL_HOST 0.0.0.0 | ||
| ENV SGL_PORT 30000 | ||
| ENV SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN 1 | ||
|
|
||
| EXPOSE 30000 | ||
| ENTRYPOINT python3 -m sglang.launch_server --model-path $BASE_MODEL --speculative-draft-model-path $DRAFT_MODEL $SGLANG_ARGS |
Binary file added
BIN
+55 KB
...on-models/system/reinforcement-learning/images/metrics-base-target-spec-dec.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.