Run this model with HF Jobs
Run mihirrabari/adaption_pragmatic_coding_prompts on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mihirrabari/adaption_pragmatic_coding_prompts. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mihirrabari/adaption_pragmatic_coding_prompts on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use mihirrabari/adaption_pragmatic_coding_prompts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mihirrabari/adaption_pragmatic_coding_prompts with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-4B") model = PeftModel.from_pretrained(base_model, "mihirrabari/adaption_pragmatic_coding_prompts") - Notebooks
- Google Colab
- Kaggle
adaption_pragmatic_coding_prompts
Model Training
A LoRA adapter for Qwen/Qwen3.5-4B, fine-tuned with SFT on the pragmatic_coding_prompts dataset.
Training Data
The model was trained on 19,467 rows with the following domain distribution: technology (52%), code (20%), science (8%), math (5%), architecture-design (5%), how-to (2%), governance (2%), writing-editing-communication (2%), academic-education (2%), corporate-business (2%).
Model Evaluation
The model was evaluated on an in-distribution held-out test set as well as a broader domain-specific test set to measure generalization.
| Domain | Win rate vs. base model |
|---|---|
| technology | 36% |
How to use
pip install torch transformers peft accelerate
from transformers import AutoModelForImageTextToText, AutoTokenizer, pipeline
from peft import PeftModel
BASE = "Qwen/Qwen3.5-4B"
ADAPTER = "mihirrabari/adaption_pragmatic_coding_prompts"
# The adapter targets Qwen3_5ForConditionalGeneration, so load that class (not AutoModelForCausalLM)
base = AutoModelForImageTextToText.from_pretrained(BASE, dtype="auto", device_map="auto")
# Merge the LoRA weights into the base for faster inference
model = PeftModel.from_pretrained(base, ADAPTER).merge_and_unload()
model.eval()
tokenizer = AutoTokenizer.from_pretrained(BASE)
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
messages = [{"role": "user", "content": "Hello!"}]
out = pipe(messages, max_new_tokens=512, do_sample=True, temperature=0.6)
print(out[0]["generated_text"][-1]["content"])
- Downloads last month
- 48

