Run this model with HF Jobs
Run srikarjy025/lipidos-phi3-domain-adapt on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/srikarjy025/lipidos-phi3-domain-adapt. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/srikarjy025/lipidos-phi3-domain-adapt on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use srikarjy025/lipidos-phi3-domain-adapt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use srikarjy025/lipidos-phi3-domain-adapt with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("srikarjy025/lipidos-phi3-domain-adapt", device_map="auto") - PEFT
How to use srikarjy025/lipidos-phi3-domain-adapt with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
LipidOS β Phi-3.5 Mini, domain-adapted for lipid/Raman spectroscopy literature
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.
Training data
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).
Results (measured, not estimated)
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).
Usage
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.
Model tree for srikarjy025/lipidos-phi3-domain-adapt
Base model
microsoft/Phi-3.5-mini-instruct