Token Classification
Transformers
Safetensors
iona-denoising
mass-spectrometry
proteomics
tandem-mass-spectrometry
denoising
iona
custom_code
Instructions to use Gaolaboratory/iona-denoise-400m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Gaolaboratory/iona-denoise-400m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Gaolaboratory/iona-denoise-400m", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForTokenClassification model = AutoModelForTokenClassification.from_pretrained("Gaolaboratory/iona-denoise-400m", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags: [mass-spectrometry, proteomics, denoising, msdelta]
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# iona-denoise-400m
|
| 7 |
+
|
| 8 |
+
Per-peak noise classifier for tandem mass spectra: an MSDelta encoder (400m scale,
|
| 9 |
+
396.2M parameters including the head) pretrained on
|
| 10 |
+
`chrisagrams/MSConsensus-100M` for 220,000 steps, then fine-tuned with a token-classification
|
| 11 |
+
head on `chrisagrams/ms-denoise-100k`. One logit per peak; **noise is the positive class
|
| 12 |
+
(label 1)**. Spectra above 512 peaks are out of scope (they were dropped, not truncated,
|
| 13 |
+
in training).
|
| 14 |
+
|
| 15 |
+
## Results (held-out test split, peptide-disjoint from train)
|
| 16 |
+
|
| 17 |
+
| metric | value |
|
| 18 |
+
|---|---|
|
| 19 |
+
| AUROC | 0.9438 |
|
| 20 |
+
| AUPRC | 0.9507 |
|
| 21 |
+
| F1 (threshold logit >= 0) | 0.8770 |
|
| 22 |
+
| per-spectrum AUROC (mean) | 0.9487 |
|
| 23 |
+
|
| 24 |
+
Selected as the best of 3 seeds x the available pretraining checkpoints at this scale by
|
| 25 |
+
**validation** AUPRC (best: 0.9503); the test split was never used
|
| 26 |
+
for selection.
|
| 27 |
+
|
| 28 |
+
## Training
|
| 29 |
+
|
| 30 |
+
lr 2e-4 (encoder at 0.5x), 4 epochs, head width 512, effective batch 12 (12 tiles,
|
| 31 |
+
DeepSpeed ZeRO-2), bf16, cosine schedule, best checkpoint by validation AUPRC. Seed
|
| 32 |
+
1. Run `sweep-400m_ck220k_seed1-8850494`.
|
| 33 |
+
|
| 34 |
+
## Usage
|
| 35 |
+
|
| 36 |
+
```python
|
| 37 |
+
from transformers import AutoConfig, AutoModelForTokenClassification, AutoProcessor
|
| 38 |
+
repo = "Gaolaboratory/iona-denoise-400m"
|
| 39 |
+
model = AutoModelForTokenClassification.from_pretrained(repo, trust_remote_code=True)
|
| 40 |
+
processor = AutoProcessor.from_pretrained(repo, trust_remote_code=True)
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
Internal release; not yet reviewed for publication.
|