-
Notifications
You must be signed in to change notification settings - Fork 11
feat: enable transformers v5 + add NVFP4/FP8/MXFP4 quantization schemes #483
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
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c2cb5a2
feat(deps): enable transformers v5; smoke tests passing
binaryaaron dd40e58
feat(training): adopt transformers v5 APIs
binaryaaron dff9192
feat(quantization): add v5 quantization schemes (FP8, NVFP4, MXFP4) a…
binaryaaron cb3fc26
fix: opacus compat issues with transformers 5
mckornfield 046a4b5
test(smoke): guard bnb-4bit quantization_scheme on GPU train path
binaryaaron 797807c
revert: drop unrelated ty:ignore from text semantic similarity
binaryaaron 2baa76d
deprecate: mark quantization_bits in favor of quantization_scheme
binaryaaron 84766ca
docs: reword slow-tokenizer cause for SentencePiece-only vocabs
binaryaaron bc2a1ae
docs: use valid TOML for vLLM version-selection example
binaryaaron 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
This file was deleted.
Oops, something went wrong.
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
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 |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ classifiers = [ | |
| dependencies = [ | ||
| "faker>=20.0", | ||
| "httpx>=0.27.0", | ||
| "huggingface-hub>=0.34.4,<1", | ||
| "huggingface-hub>=1.3.0,<2", | ||
|
mckornfield marked this conversation as resolved.
|
||
| "pandas>=2.1.3", | ||
| "pydantic[email]>=2.12.5", | ||
| "pydantic-settings>=2.6.1", | ||
|
|
@@ -89,7 +89,7 @@ engine = [ | |
| "dateparser", | ||
| "faker", | ||
| "datasets>=4.8.4", | ||
| "huggingface-hub>=0.34.4,<1", | ||
| "huggingface-hub>=1.3.0,<2", | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. huh, never realized it was duplicated here. |
||
| "json-repair", | ||
| "matplotlib", | ||
| "outlines>=1.0.0", | ||
|
|
@@ -117,13 +117,13 @@ engine = [ | |
| # and allow explicit installation of the cpu depset on linux. | ||
|
|
||
| cpu = [ | ||
| "accelerate", | ||
| "bitsandbytes==0.49.1", | ||
| "accelerate>=1.1.0", | ||
| "bitsandbytes>=0.46.1", | ||
| "flashinfer-python==0.6.8.post1; sys_platform=='linux'", | ||
| "flashinfer-cubin==0.6.8.post1; sys_platform=='linux'", | ||
| "gliner", | ||
| "kernels>=0.12.1", | ||
| "peft", | ||
| "peft>=0.18.0", | ||
| "opacus", | ||
| "sentence-transformers", | ||
| "torch==2.11.0; sys_platform == 'darwin'", | ||
|
|
@@ -133,15 +133,15 @@ cpu = [ | |
| "torchvision==0.26.0; sys_platform == 'darwin'", | ||
| "torchvision==0.26.0+cpu; sys_platform == 'linux'", | ||
| "torchao==0.17.0", | ||
| "transformers==4.57.3", | ||
| "transformers>=5.6,<6", | ||
| "triton>=2.0.0; sys_platform=='linux'", | ||
| "trl>=0.23.0", | ||
| "vllm==0.20.0; sys_platform=='linux'", | ||
| ] | ||
|
|
||
| cu129 = [ | ||
| "accelerate", | ||
| "bitsandbytes==0.49.1", | ||
| "accelerate>=1.1.0", | ||
| "bitsandbytes>=0.46.1", | ||
| "flashinfer-python==0.6.8.post1; sys_platform == 'linux'", | ||
| "flashinfer-cubin==0.6.8.post1; sys_platform == 'linux'", | ||
| "flashinfer-jit-cache==0.6.8.post1+cu129; sys_platform == 'linux'", | ||
|
|
@@ -150,14 +150,14 @@ cu129 = [ | |
| "nvidia-cublas-cu12; sys_platform == 'linux'", | ||
| "nvidia-ml-py; sys_platform == 'linux'", | ||
| "opacus", | ||
| "peft", | ||
| "peft>=0.18.0", | ||
| "sentence-transformers", | ||
| "torch==2.11.0+cu129; sys_platform == 'linux'", | ||
| "torch-c-dlpack-ext", | ||
| "torchaudio==2.11.0+cu129; sys_platform == 'linux'", | ||
| "torchvision==0.26.0+cu129; sys_platform == 'linux'", | ||
| "torchao==0.17.0+cu129; sys_platform == 'linux' and platform_machine == 'x86_64'", | ||
| "transformers==4.57.3", | ||
| "transformers>=5.6,<6", | ||
| "triton>=2.0.0; sys_platform == 'linux'", | ||
| "trl>=0.23.0", | ||
| "vllm==0.20.0+cu129; sys_platform == 'linux'", | ||
|
|
||
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.
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.