Views
No views yet
meta-llama/Meta-Llama-3.1-8B-Instruct.| Dataset | Split | Sequence length | Perplexity |
|---|---|---|---|
| WikiText2 | test | 2048 | 7.5728 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "yw223/Meta-Llama-3.1-8B-Instruct-OmniQuant-4bit"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(
6 model_id,
7 torch_dtype="auto",
8 device_map="auto",
9)weight_quantizer.scales and
weight_quantizer.zeros entries when loading. The fake-quantized model weights
still load through the standard Transformers path used for the reported PPL.