Downloads · 30 days
5
6% of all-time downloads
KhushalM/Qwen2.5-1.5-Feynman-GRPO-vLLM-Merged
Qwen2.5-1.5-Feynman-GRPO-vLLM-Merged is a text generation model from KhushalM. Use it when you need the model to write or continue text. It is set up for transformers.
A causal language model fine-tuned to generate conceptual explanations in the style of Richard Feynman, combining supervised warm-up with on-policy reinforcement learning (Group Relative Proximal Optimization, GRPO) a…
Downloads · 30 days
5
6% of all-time downloads
All-time downloads
81
Public
Parameters
1.5B
6.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
A causal language model fine-tuned to generate conceptual explanations in the style of Richard Feynman, combining supervised warm-up with on-policy reinforcement learning (Group Relative Proximal Optimization, GRPO) and accelerated inference via vLLM. The model excels at breaking down complex ideas into first-principles intuitions, concrete analogies, and short, clear paragraphs.
This model builds on Qwen/Qwen2.5-1.5B-Instruct, with a multi-stage training pipeline:
Supervised Fine-Tuning (SFT)
Reinforcement Learning with GRPO
Merging and Optimization
Recommendation: Fact-check outputs before use in professional or educational materials.
transformers with PEFT (LoRA).transformers inference.from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_id = "KhushalM/Qwen2.5-1.5-Feynman-GRPO-vLLM-Merged"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", trust_remote_code=True)
generator = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
device="cuda" # or "cpu"
)
prompt = "Explain quantum entanglement from first principles."
output = generator(prompt, max_new_tokens=200, temperature=0.7, top_p=0.9)
print(output[0]["generated_text"])