Text Generation
PEFT
Safetensors
English
chemistry
mass-spectrometry
msms
metabolomics
molecular-captioning
lora
Instructions to use menglinzhou/MS2LLM-8B-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use menglinzhou/MS2LLM-8B-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("OpenDFM/ChemDFM-v1.5-8B") model = PeftModel.from_pretrained(base_model, "menglinzhou/MS2LLM-8B-LoRA") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,4 +4,39 @@ language:
|
|
| 4 |
base_model:
|
| 5 |
- OpenDFM/ChemDFM-v1.5-8B
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
base_model:
|
| 5 |
- OpenDFM/ChemDFM-v1.5-8B
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- chemistry
|
| 9 |
+
- mass-spectrometry
|
| 10 |
+
- msms
|
| 11 |
+
- metabolomics
|
| 12 |
+
- molecular-captioning
|
| 13 |
+
- lora
|
| 14 |
+
- peft
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# MS2LLM-8B-LoRA
|
| 18 |
+
|
| 19 |
+
MS2LLM is a chemistry-oriented large language model designed to translate tandem mass spectrometry (MS/MS) data into interpretable molecular descriptions.
|
| 20 |
+
|
| 21 |
+
The model is based on **ChemDFM-v1.5-8B** and fine-tuned using **LoRA (Low-Rank Adaptation)** for MS/MS interpretation. Instead of reconstructing an exact molecular structure, MS2LLM generates chemically meaningful structural semantics, including molecular scaffolds, functional groups, molecular features, and chemical taxonomy.
|
| 22 |
+
|
| 23 |
+
## Model Details
|
| 24 |
+
|
| 25 |
+
- **Model name:** MS2LLM-8B-LoRA
|
| 26 |
+
- **Base model:** OpenDFM/ChemDFM-v1.5-8B
|
| 27 |
+
- **Fine-tuning method:** LoRA / PEFT
|
| 28 |
+
- **Task:** MS/MS-to-molecular-description generation
|
| 29 |
+
- **Domain:** Mass spectrometry, metabolomics, natural products, cheminformatics
|
| 30 |
+
|
| 31 |
+
> This repository contains the **LoRA adapter weights** of MS2LLM.
|
| 32 |
+
> The ChemDFM-v1.5-8B base model is required for inference.
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
## Limitations
|
| 36 |
+
|
| 37 |
+
MS2LLM does not aim to deterministically reconstruct an exact molecular structure from an MS/MS spectrum. MS/MS fragmentation contains incomplete and ambiguous structural information, and model outputs should therefore be interpreted as chemically meaningful structural hypotheses rather than definitive compound identifications.
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
## Code
|
| 41 |
+
|
| 42 |
+
https://github.com/menglinzhou-bio/MS2LLM
|