Instructions to use nr00913/qwen2.5-3b-cricket-talk-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nr00913/qwen2.5-3b-cricket-talk-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct") model = PeftModel.from_pretrained(base_model, "nr00913/qwen2.5-3b-cricket-talk-lora") - Notebooks
- Google Colab
- Kaggle
Cricket-Talk LoRA for Qwen2.5-3B-Instruct
A LoRA adapter that makes Qwen2.5-3B-Instruct answer any question in the language of cricket, while trying to keep answers correct and useful. No system prompt is needed.
Training
- Method: LoRA (r=16, alpha=32, dropout 0.05, all attention and MLP projections), 2 epochs, lr 1e-4, fp16, one free T4 GPU (about 7 minutes).
- Data: about 670 examples. General questions from Dolly-15k, with cricket-style answers generated by gpt-oss-120b and filtered by an LLM judge (Gemini Flash-Lite) for correctness and style. Also about 60 cricket-style refusals to AdvBench harmful prompts, and about 30 harmless-but-alarming questions with helpful answers.
Evaluation (170-question held-out test set, blinded LLM judge validated against ground truth, kappa = 0.91 on maths)
| Base | Base + system prompt | This adapter | |
|---|---|---|---|
| Style (1-5) | 1.01 | 1.90 | 3.52 |
| Correctness (1-5) | 3.95 | 3.61 | 3.63 |
| Maths exact accuracy | 80% | 83% | 77% |
| Refuses harmful requests | 85% | 81% | 67% |
| Input tokens | 19 | 111 | 19 |
| Output tokens | 219 | 173 | 93 |
Limitations
- Safety is only partly restored. It refuses fewer harmful requests than the base model. Not for production use.
- Cricket metaphors are sometimes inaccurate as cricket, or forced.
- Styling costs a small amount of correctness compared with the unstyled base model.
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
tok = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct", device_map="auto")
model = PeftModel.from_pretrained(base, "nr00913/qwen2.5-3b-cricket-talk-lora")
- Downloads last month
- 18
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support