Skip to content

enable llama4 int8 quantization baseline #522

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

WeiweiZhang1
Copy link
Collaborator

@WeiweiZhang1 WeiweiZhang1 commented Apr 16, 2025

for Xeon SGlang INT8 llama4 model workround

pull this PR code
pip install torch torchvision
cd auto-round/
pip install -e .[cpu]
sh run_llama4_quant.sh model_path save_path
sh run_qwen3.sh model_path save_path

@WeiweiZhang1 WeiweiZhang1 added wontfix This will not be worked on draft labels Apr 16, 2025
Signed-off-by: Zhang, Weiwei1 <[email protected]>
Signed-off-by: Zhang, Weiwei1 <[email protected]>
Signed-off-by: Zhang, Weiwei1 <[email protected]>
state_dict = translate_2_sglang_int8(model)
max_shard_size = 40 * 1024**3 # 40GB
shards = {}
current_shard = {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this part should be refined and supported in main branch.
Better follow the origin code style if possible

Signed-off-by: Zhang, Weiwei1 <[email protected]>
Signed-off-by: Zhang, Weiwei1 <[email protected]>
Signed-off-by: Zhang, Weiwei1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants