Downloads · 30 days
61
27% of all-time downloads
tokenlabsdotrun/Llama-3.1-8B-ModelOpt-NVFP4
Llama-3.1-8B-ModelOpt-NVFP4 is a machine learning model from tokenlabsdotrun. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for nvidia-modeloptimizer. The card lists the license as llama3.1.
This is a quantized version of meta-llama/Llama-3.1-8B-Instruct using modelopt with NVFP4 weight quantization.
Downloads · 30 days
61
27% of all-time downloads
All-time downloads
223
Public
Parameters
4.5B
6 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors6 GB · 100%
How the weights are stored.
U83.5B · 70%
From the Hugging Face model README
This is a quantized version of meta-llama/Llama-3.1-8B-Instruct using modelopt with NVFP4 weight quantization.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load base model structure
model = AutoModelForCausalLM.from_pretrained(
"tokenlabsdotrun/Llama-3.1-8B-ModelOpt-NVFP4",
torch_dtype=torch.bfloat16,
low_cpu_mem_usage=True
)
# Load tokenizer and generate
tokenizer = AutoTokenizer.from_pretrained("tokenlabsdotrun/Llama-3.1-8B-ModelOpt-NVFP4")
inputs = tokenizer("Hello, my name is", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=10)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model inherits the Llama 3.1 Community License.