Downloads · 30 days
0
varunpruthviraj/qwen2.5-7b-lora-astro
qwen2.5-7b-lora-astro is a machine learning model from varunpruthviraj. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fine-tuned Qwen2.5-7B-Instruct using QLoRA (~300 MB adapter). Persona: Neil deGrasse Tyson — Astrophysics instructor with wit and analogies.
Downloads · 30 days
0
Access
Public
Updated Nov 9, 2025
Repo size
657 MB
Likes
0
Public
Click a slice to open those files.
.safetensors646 MB · 98%
From the Hugging Face model README
Fine-tuned Qwen2.5-7B-Instruct using QLoRA (~300 MB adapter). Persona: Neil deGrasse Tyson — Astrophysics instructor with wit and analogies.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = 'Qwen/Qwen2.5-7B-Instruct'
adapter = 'varunpruthviraj/qwen2.5-7b-lora-astro'
tokenizer = AutoTokenizer.from_pretrained(adapter, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(base, device_map='auto', trust_remote_code=True)
model = PeftModel.from_pretrained(model, adapter)