Downloads · 30 days
4
7% of all-time downloads
fs90/Llama-3.2-1B-Instruct-bnb-4bit-gsm8k
Llama-3.2-1B-Instruct-bnb-4bit-gsm8k is a text generation model from fs90. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Full-precision (16-bit) merged model with LoRA adapters integrated.
Downloads · 30 days
4
7% of all-time downloads
All-time downloads
61
Public
Parameters
1.2B
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
Full-precision (16-bit) merged model with LoRA adapters integrated.
LoRA Adapters: fs90/Llama-3.2-1B-Instruct-bnb-4bit-gsm8k-lora - Smaller LoRA-only adapters
GGUF Quantized: fs90/Llama-3.2-1B-Instruct-bnb-4bit-gsm8k-GGUF - GGUF format for llama.cpp/Ollama
This model uses the Llama 3.2 chat template.
Use the tokenizer's apply_chat_template() method:
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Your question here"}
]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, return_tensors="pt")
For complete training configuration, see the LoRA adapters repository/directory.
Benchmarked on the merged 16-bit safetensor model
Evaluated: 2025-11-24 14:29
| Model | Type | gsm8k |
|---|---|---|
| unsloth/Llama-3.2-1B-Instruct-bnb-4bit | Base | 0.1463 |
| Llama-3.2-1B-Instruct-bnb-4bit-gsm8k | Fine-tuned | 0.3230 |
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"./outputs/Llama-3.2-1B-Instruct-bnb-4bit-gsm8k/merged_16bit",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("./outputs/Llama-3.2-1B-Instruct-bnb-4bit-gsm8k/merged_16bit")
messages = [{"role": "user", "content": "Your question here"}]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, return_tensors="pt").to("cuda")
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0]))
Based on unsloth/Llama-3.2-1B-Instruct-bnb-4bit and trained on openai/gsm8k. Please refer to the original model and dataset licenses.
Trained by: Your Name
Training pipeline:
Base components: