Downloads · 30 days
0
danivpv/Llama-ML-Expert-DPO-1b
Llama-ML-Expert-DPO-1b is a text generation model from danivpv. Use it when you need the model to write or continue text. The card lists the license as llama3.2.
The final, preference-aligned model in the LLM-ArXiv-Domain-Expert pipeline. Built on top of danivpv/Llama-ML-Expert-Instruct-1b via Direct Preference Optimization (DPO), aligning outputs toward the authoritative,
Downloads · 30 days
0
Access
Public
Updated Aug 27, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md3.7 KB · 71%
From the Hugging Face model README
The final, preference-aligned model in the LLM-ArXiv-Domain-Expert
pipeline. Built on top of danivpv/Llama-ML-Expert-Instruct-1b
via Direct Preference Optimization (DPO), aligning outputs toward the authoritative,
academic writing style of the source ArXiv ML papers.
| Base model | danivpv/Llama-ML-Expert-Instruct-1b (SFT), itself built on unsloth/Llama-3.2-1B-bnb-4bit |
| Fine-tuning method | DPO via unsloth's PatchDPOTrainer, new LoRA adapters — rank 32, alpha 32 |
| LoRA target modules | q_proj, k_proj, v_proj, up_proj, down_proj, o_proj, gate_proj |
| Learning rate | 2e-6 |
| Epochs | 1 |
| DPO beta | 0.5 |
| Optimizer | adamw_8bit |
| Prompt format | Alpaca (### Instruction: ... ### Response: ...) |
danivpv/ml-arxiv-dpo —
instruction/chosen/rejected triples, where chosen is a verbatim excerpt from
the source ArXiv paper and rejected is a factually-grounded but LLM-paraphrased
answer. The model is optimized to prefer authentic academic phrasing over generic
LLM-speak — see the dataset card for the full rationale and its tradeoffs.
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="danivpv/Llama-ML-Expert-DPO-1b",
max_seq_length=2048,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
prompt = """### Instruction:
{your ML question here}
### Response:
"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
<!-- TODO: if you ran the evaluation pipeline (run-evaluation-pipeline), add a
Results section comparing this DPO model against the SFT-only Instruct model —
that comparison is the single most interesting artifact this repo can show a
technical reviewer: does preference alignment measurably shift style/quality? -->
This model is a second-stage fine-tune, not a replacement — it trades a small amount
of generative flexibility for closer adherence to source-paper phrasing. If you need
more open-ended generation, Llama-ML-Expert-Instruct-1b (SFT-only) may be the better
starting point.
danivpv/Llama-ML-Expert-Instruct-1bdanivpv/ml-arxiv-dpodanivpv/ml-arxiv-instruct