Downloads · 30 days
16
4% of all-time downloads
danivpv/Llama-ML-Expert-Instruct-1b
Llama-ML-Expert-Instruct-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.
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 whi…
Downloads · 30 days
16
4% of all-time downloads
All-time downloads
386
Public
Parameters
1.2B
5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
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.
| Base model | unsloth/Llama-3.2-1B-bnb-4bit (Llama 3.2, 1B) |
| Fine-tuning method | LoRA — rank 32, alpha 32, dropout 0.0 |
| LoRA target modules | q_proj, k_proj, v_proj, up_proj, down_proj, o_proj, gate_proj |
| Optimizer | adamw_8bit |
| Prompt format | Alpaca (### Instruction: ... ### Response: ...) |
danivpv/ml-arxiv-instruct — instruction-answer pairs synthesized from ArXiv ML papersmlabonne/FineTome-Alpaca-100k — preserves general instruction-following alongside domain specializationfrom unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="danivpv/Llama-ML-Expert-Instruct-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))
ml-arxiv-instruct for
the generation pipeline) — inherits whatever biases or gaps exist in the source LLM
used to generate that data.danivpv/ml-arxiv-instructdanivpv/ml-arxiv-dpo