Downloads · 30 days
3
12% of all-time downloads
kanishkez/llama3.2-fine-tuned-on-physics
llama3.2-fine-tuned-on-physics is a text generation model from kanishkez. Use it when you need the model to write or continue text. It is set up for peft.
This model is a LoRA fine-tuned version of unsloth/llama-3.2-3b-instruct-unsloth-bnb-4bit, trained on the Camel-AI Physics dataset to enhance reasoning and accuracy in physics-related instruction tasks.
Downloads · 30 days
3
12% of all-time downloads
All-time downloads
26
Public
Repo size
212 MB
Likes
0
Public
Click a slice to open those files.
.safetensors195 MB · 92%
From the Hugging Face model README
This model is a LoRA fine-tuned version of unsloth/llama-3.2-3b-instruct-unsloth-bnb-4bit, trained on the Camel-AI Physics dataset to enhance reasoning and accuracy in physics-related instruction tasks.
It combines instruction tuning with domain specialization, producing concise, technically correct, and context-aware answers to physics questions.
This model is fine-tuned for physics understanding, explanation, and reasoning tasks.
It improves over the base LLaMA 3.2 3B Instruct model in areas such as:
The fine-tuning was performed with parameter efficient LoRA adapters, enabling high-quality adaptation with low compute overhead.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "your-username/llama-3.2-3b-physics-finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
prompt = "Explain why the sky appears blue using Rayleigh scattering."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))