Skip to content

Conversation

WeiweiZhang1
Copy link
Contributor

@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]>
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