Skip to content
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

Remove unnecessary constants for > 2GB ONNX models #1808

Merged
merged 2 commits into from Apr 10, 2024

Conversation

fxmarty
Copy link
Collaborator

@fxmarty fxmarty commented Apr 10, 2024

e.g.

(hf-inf) fxmarty@huggingface:~/qwen_onnx$ ls
added_tokens.json       merges.txt                                                   model.onnx               tokenizer_config.json
config.json             _model_layers.0_self_attn_rotary_emb_Constant_5_attr__value  model.onnx_data          tokenizer.json
generation_config.json  _model_layers.0_self_attn_rotary_emb_Constant_attr__value    special_tokens_map.json  vocab.json

_model_layers.0_self_attn_rotary_emb_Constant_5_attr__value and _model_layers.0_self_attn_rotary_emb_Constant_attr__value are actually in model.onnx_data already.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@fxmarty fxmarty merged commit 4936662 into huggingface:main Apr 10, 2024
41 of 46 checks passed
young-developer pushed a commit to young-developer/optimum that referenced this pull request May 10, 2024
* remove some more unnecessary constants for > 2GB ONNX models

* remove typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants