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.
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.
1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name="danivpv/Llama-ML-Expert-DPO-1b",
5 max_seq_length=2048,
6 load_in_4bit=True,
7)
8FastLanguageModel.for_inference(model)
9
10prompt = """### Instruction:
11{your ML question here}
12
13### Response:
14"""
15inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
16outputs = model.generate(**inputs, max_new_tokens=256)
17print(tokenizer.decode(outputs[0], skip_special_tokens=True))
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.