An instruction fine-tuned Small Language Model (SLM) specialized in Machine Learning
domain expertise. Fine-tuned from unsloth/Llama-3.2-1B-bnb-4bit using LoRA adapters —
efficient enough to run on modest hardware while retaining strong ML-domain reasoning.
Part of the
LLM-ArXiv-Domain-Expert
pipeline, which builds domain-expert LLMs from ArXiv papers end to end: paper parsing →
instruction/preference dataset generation → SFT → (optional) DPO.
1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name="danivpv/Llama-ML-Expert-Instruct-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))