mlabonne/FineTome-Alpaca-100k
Viewer • Updated • 100k • 63 • 9
How to use danivpv/Llama-ML-Expert-Instruct-1b with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for danivpv/Llama-ML-Expert-Instruct-1b to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for danivpv/Llama-ML-Expert-Instruct-1b to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for danivpv/Llama-ML-Expert-Instruct-1b to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="danivpv/Llama-ML-Expert-Instruct-1b",
max_seq_length=2048,
)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