Downloads · 30 days
11
2% of all-time downloads
shaw2037/Llama-3.2-3B-Instruct-Reasoning
Llama-3.2-3B-Instruct-Reasoning is a text generation model from shaw2037. Use it when you need the model to write or continue text. It is set up for transformers.
This model is a fine-tuned version of LLaMA 3B Instruct, optimized for reasoning tasks such as step-by-step problem solving and logical question answering.
Downloads · 30 days
11
2% of all-time downloads
All-time downloads
582
Public
Parameters
3.2B
6.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of LLaMA 3B Instruct, optimized for reasoning tasks such as step-by-step problem solving and logical question answering.
The model was fine-tuned using LoRA (PEFT) and later merged into the base model to create a fully standalone model.
meta-llama/Llama-3-3b-instructThis model was fine-tuned on a reasoning dataset from Hugging Face using LoRA.
The LoRA weights were merged with the base model to produce a standalone model for easier deployment and usage.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "shaw2037/Llama-3.2-3B-Instruct-Reasoning"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto"
)
prompt = "Solve step by step: If 2x + 3 = 11, what is x?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=200,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
May produce incorrect reasoning steps.
Can hallucinate in complex scenarios.
Not guaranteed to be mathematically perfect.
reasoning experiments
educational projects
LLM research
medical advice
legal advice
financial decisions
safety-critical applications
pip install transformers accelerate torch