Downloads · 30 days
17
50% of all-time downloads
tokenlabsdotrun/Llama-3.1-8B-ModelOpt-FP8
Llama-3.1-8B-ModelOpt-FP8 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 FP8 weight quantization.
Downloads · 30 days
17
50% of all-time downloads
All-time downloads
34
Public
Parameters
8B
15.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.1 GB · 100%
How the weights are stored.
F8_E4M37B · 87%
From the Hugging Face model README
This is a quantized version of meta-llama/Llama-3.1-8B-Instruct using modelopt with FP8 weight quantization.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load base model structure
model = AutoModelForCausalLM.from_pretrained(
"tokenlabsdotrun/Llama-3.1-8B-ModelOpt-FP8",
torch_dtype=torch.bfloat16,
low_cpu_mem_usage=True
)
# Load tokenizer and generate
tokenizer = AutoTokenizer.from_pretrained("tokenlabsdotrun/Llama-3.1-8B-ModelOpt-FP8")
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.