# DreaMS mass spectrometry foundation model weights

## Facts

- Provider: Roman Bushuiev, Tomas Pluskal et al. (Pluskal lab)
- License: MIT (https://github.com/pluskal-lab/DreaMS/blob/main/LICENSE)
- Size: 8 files
- Stored at: Hugging Face, https://huggingface.co/roman-bushuiev/DreaMS
- Access: public, readable without an account
- Category: Proteomics
- Source: https://www.nature.com/articles/s41587-025-02663-3
- Page: https://scigantic.com/archive/8f5d79c9-3ff7-5167-8914-2b38fd28753f
- Keywords: Proteomics, spectroscopy, Hugging Face

## About

Pre-trained weights for DreaMS (Deep Representations Empowering the Annotation of Mass Spectra), the transformer from the Pluskal lab (Bushuiev et al., Nature Biotechnology 2025) trained self-supervised on GeMS, a large collection of unannotated tandem mass spectra mined from the MassIVE GNPS repository, to embed MS/MS spectra for molecular networking, spectral similarity and property prediction. The mounted repo holds ssl_model.ckpt (the self-supervised model), embedding_model.ckpt and embedding_model_massspecgym.ckpt (fine-tuned embedding models, about 1.2 GB each) and a TorchScript export for non-Python use. Load the checkpoints with the dreams package from the mount path and pair them with the GNPS libraries or Enveda-180 archives. MIT licence.

## Load the data

```python
import os, json
base = "/mnt/archive"   # this model repo, mounted read-only
files = sorted(os.listdir(base)); print(files)
print("DreaMS_embedding_model_torchscript.pt", os.path.getsize(os.path.join(base, "DreaMS_embedding_model_torchscript.pt")) // 2**20, "MB")
```

Written for a Scigantic notebook, where /mnt/archive (SCIGANTIC_MOUNT_PATH) is the mounted dataset.

## Data structure

Example file: `DreaMS_embedding_model_torchscript.pt`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/8f5d79c9-3ff7-5167-8914-2b38fd28753f
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/8f5d79c9-3ff7-5167-8914-2b38fd28753f
- Over MCP: `get_schema_card` with id `8f5d79c9-3ff7-5167-8914-2b38fd28753f` at https://api.scigantic.com/mcp

## Related topics

- [Spectroscopy datasets](https://scigantic.com/topics/spectroscopy)
- [Proteomics datasets](https://scigantic.com/topics/proteomics)
