Views
No views yet
Llama-3.1-8B-Instruct quantized with AQLM using the 8-bit 8x8 scheme.meta-llama/Llama-3.1-8B-InstructAQLM8x88-bit/work/bduan1/quantized_models/Llama-3.1-8B-Instruct-AQLM-8bit-8x8-n4096convert_to_hf.py from the AQLM project, then exported with --save_safetensors and --save_tokenizer.aqlm package installed in the runtime environment.6.51358.0386meta-llama/Llama-3.1-8B-Instruct tokenizer at sequence length 8192num_codebooks=8, nbits_per_codebook=8, in_group_size=8, out_group_size=11from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "dbw6/Llama-3.1-8B-Instruct-AQLM-8bit-8x8"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(
6 model_id,
7 torch_dtype="auto",
8 device_map="auto",
9 trust_remote_code=True,
10)