Downloads · 30 days
0
srikarjy025/lipidos-phi3-domain-adapt
lipidos-phi3-domain-adapt is a machine learning model from srikarjy025. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
QLoRA (rank 16) adapter for microsoft/Phi-3.5-mini-instruct, trained via Unsloth for domain adaptation — next-token/causal-LM objective on lipid biochemistry and Raman/IR spectroscopy abstracts, not an instruction-tun…
Downloads · 30 days
0
Access
Public
Updated Aug 16, 2026
Repo size
120 MB
Likes
0
Public
Click a slice to open those files.
.safetensors120 MB · 97%
From the Hugging Face model README
QLoRA (rank 16) adapter for microsoft/Phi-3.5-mini-instruct, trained via Unsloth for domain adaptation — next-token/causal-LM objective on lipid biochemistry and Raman/IR spectroscopy abstracts, not an instruction-tuned task.
Part of LipidOS, a citation-grounded RAG system for the Raman/lipid literature where every generated claim must cite retrieved evidence it actually came from.
107,665 PubMed abstracts (two MeSH-term pools: bulk lipid biochemistry/lipidomics/membrane biophysics, and Raman/IR/vibrational spectroscopy vocabulary), trained on 64,000 of them (60.6% of one epoch, step-capped to a fixed compute budget).
Held-out perplexity on the same 2,000-example set, base vs. fine-tuned:
| Perplexity | |
|---|---|
| Base (microsoft/Phi-3.5-mini-instruct) | 4.911 |
| Fine-tuned (this adapter) | 3.955 |
| Improvement | 19.5% lower |
Citation-grounding was separately verified to survive the fine-tune: 0/3 hallucinated evidence
citations across real domain questions plus a deliberate out-of-domain probe (details in the
main repo's docs/solutions.md).
This model is designed to answer only through a grounded-retrieval + citation-checking
pipeline — it should not be used for open-ended generation without retrieved evidence attached.
See scripts/build_evidence.py
and scripts/generate_finetuned_answer.py
for the reference pipeline.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3.5-mini-instruct")
model = PeftModel.from_pretrained(base, "srikarjy025/lipidos-phi3-domain-adapt")
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3.5-mini-instruct")
A standalone merged version (no peft required) is available at
srikarjy025/lipidos-phi3-domain-adapt-merged.
This llama model was trained 2x faster with Unsloth.