You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
quantize_config = BaseQuantizeConfig(
quant_method="fp8",
activation_scheme="dynamic",
# skip the lm head and expert gate
ignore_patterns=["re:.*lm_head", "re:.*gate.weight"])
max_memory = {i: "75GB" for i in range(8)}
model = AutoFP8ForCausalLM.from_pretrained(pretrained_model_dir, quantize_config,device_map="sequential", trust_remote_code=True, torch_dtype=torch.bfloat16, max_memory=max_memory, attn_implementation="flash_attention_2")
model.quantize([])
OOM occurs when quantifying DeepSeek model on 8XA800。
The code used comes from #29
Is there any way to quantify such a large model?
The text was updated successfully, but these errors were encountered: