Views
No views yet
latam-gpt/Llama-3.1-70B-LatamGPT-SFT-1.0, in the compressed-tensors nvfp4-pack-quantized format, for inference on NVIDIA Blackwell GPUs with vLLM. This card covers only the quantization. For everything about the model itself (training, data, capabilities, intended use, evaluations), see the base model card.lm_head and embeddings stay in BF16.llmcompressor QuantizationModifier(scheme="NVFP4", ignore=["lm_head"]) (compressed-tensors 0.13.0), run through a memory-bounded sequential pipeline that calibrates the full 70B on a single 30 GB-RAM / RTX 5090 workstation.CohereLabs/aya_dataset, max sequence length 1024, formatted with the model's chat template.llmcompressor >= 0.10; its built-in disk offloading handles larger-than-RAM models and produces the same format:1from transformers import AutoModelForCausalLM
2from compressed_tensors.offload import load_offloaded_model
3from llmcompressor import oneshot
4from llmcompressor.modifiers.quantization import QuantizationModifier
5
6with load_offloaded_model():
7 model = AutoModelForCausalLM.from_pretrained(
8 "latam-gpt/Llama-3.1-70B-LatamGPT-SFT-1.0",
9 torch_dtype="auto",
10 device_map="auto_offload",
11 offload_folder="/path/on/a/real/disk", # pass a single explicit folder
12 )
13
14oneshot(
15 model=model,
16 dataset=..., # your calibration set; here: 128 Spanish Aya chats @ 1024 tokens
17 recipe=QuantizationModifier(targets="Linear", scheme="NVFP4", ignore=["lm_head"]),
18 max_seq_length=1024,
19 num_calibration_samples=128,
20)
21model.save_pretrained("out", save_compressed=True)config.json:1from vllm import LLM, SamplingParams
2
3llm = LLM(model="pebeto/Llama-3.1-70B-LatamGPT-SFT-1.0-NVFP4")
4out = llm.generate(
5 ["Explica la fotosíntesis en términos simples."],
6 SamplingParams(max_tokens=256, temperature=0.7),
7)
8print(out[0].outputs[0].text)llmcompressor NVFP4 recipe byte for byte, but I have not run perplexity or downstream evaluations. Expect some quality loss vs BF16, as with any 4-bit quantization. Community evaluations and feedback are welcome.transformers decompress-on-generate path is broken for NVFP4 (a compressed-tensors / PyTorch bug that also hits stock outputs). Do not use AutoModelForCausalLM.generate; load with vLLM.latam-gpt/Llama-3.1-70B-LatamGPT-SFT-1.0, distributed under the Llama 3.1 Community License and subject to the Acceptable Use Policy and the base model's terms. Credit for the model itself goes to the LatamGPT project and to Meta. I quantized it with llmcompressor / compressed-tensors, using Spanish calibration data from Aya.