MGM
Where it stands
Ran 21 Nov 2026, 05:53 GST to 07:27 GST on spark-12b5 (NVIDIA GB10), as its record states, run mgm-crc-20261121t015318z-285785df: MGM microformer-mgm 0.5.8 general_model (pretrained on MicroCorpus-260K), fine-tuned here for CRC against control, weights file SHA-256 7a83b442dcb0…, on curatedMetagenomicData 3: five colorectal-cancer case-control studies (stool shotgun metagenomes, MetaPhlAn 3 relative abundance) ExperimentHub resources dated 2021-03-31 (cMD 3); sampleMetadata from the package repository at commit f88ac2ee84df7094d04cbf225a9d4679fc4b8986 (2025-04-17), package version 3.21.8; cMD ZellerG_2014 (EH5938, FRA) ExperimentHub resource dated 2021-03-31 (MetaPhlAn 3 relative abundance); cMD FengQ_2015 (EH5530, AUT) ExperimentHub resource dated 2021-03-31 (MetaPhlAn 3 relative abundance); cMD YuJ_2015 (EH5926, CHN) ExperimentHub resource dated 2021-03-31 (MetaPhlAn 3 relative abundance); cMD VogtmannE_2016 (EH5878, USA) ExperimentHub resource dated 2021-03-31 (MetaPhlAn 3 relative abundance); cMD WirbelJ_2018 (EH5890, DEU) ExperimentHub resource dated 2021-03-31 (MetaPhlAn 3 relative abundance) (public reference data); AUROC 0.807 five-fold (species forest 0.856); 0.790 on the held-out studies (species forest 0.825); no pass mark was set before the run; integrity checks 4 of 4 pass. Signature verified (key prepaire-runner-2026-11-20, fingerprint f177…69f5, registered in VERA's configuration; Prepaire: signs vera-frontier run records on Prepaire's Mac, where the key is held, after re-hashing their outputs). Signed on Prepaire's Mac on 21 Nov 2026, 08:43 GST, after its outputs were re-hashed against the record. Shipped with this release and verified again, every output re-hashed, on this read. 1 signed run record verified in all. Not used on a person's results until the laboratory director signs it.
Research only: not used on any person's results.
The record's own notes
The runner names this rerun's record as the current one (README, model/mgm d3b9cff): it repeats the first run on the GB10 (mgm-crc-20261121t001606z-94fa1322) with identical AUROCs and probabilities; an independent rerun on an Apple M2 Ultra gives 0.819 five-fold. The runner's corrections to the record's text (README, d3b9cff; the record's bytes are left unchanged): the check auroc_cv5_pooled says 'No published MGM result on cMD or on colorectal cancer', but the paper does report colorectal tumour results from tissue (TCMA: colon 0.99, rectal 0.98), not from stool, so there is still no like-for-like figure; the input_digests check says the files match the store's MD5 ETags, which no code checked when the run was made (they were equal when checked on 21 Nov 2026); sampleMetadata.rda dates from package version 3.17.0, not 3.21.8; ZellerG_2014 is probably in MGM's pretraining corpus; the leave-one-study-out bootstrap checks are on pooled predictions, not intervals of the mean over studies (that interval is in rescore.json: fine-tuned MGM minus the species forest −0.035, −0.065 to −0.007). The nearest published figure on these cohorts is Thomas et al. 2019: random forests on species, leave-one-dataset-out, 0.84 (s.d. 0.03), on a cohort set that overlaps these five. Case-control research cohorts: nothing here is a screening test.
What it is
- Architecture
- GPT-2 decoder-only transformer, 8 layers, 256-wide, 8 attention heads, 512 positions, pretrained as a causal language model over 9,665 genera plus 4 special tokens; for classification a linear two-class head reads the last token (GPT2ForSequenceClassification). A sample is read as its genera ordered by z-scored relative abundance. (as its run record states it)
- Version
- microformer-mgm 0.5.8 general_model (pretrained on MicroCorpus-260K), fine-tuned here for CRC against control
- Parameters
- 8,925,440 (as the record states them)
- Source
- https://pypi.org/project/microformer-mgm/0.5.8/ at revision
microformer-mgm 0.5.8, wheel sha256 210891685565022ea869e88a7452769dc6fbe3f699d2a133e15338d1e30eb92b - Licence
- MIT License (Copyright (c) 2024 NingLab) (MIT)
- Weights
- mgm/resources/general_model/pytorch_model.bin · 34.1 MiB · SHA-256
7a83b442dcb0cbe2a4248ea9922de58e15edfa3a1ad71d07519dc8594f4511b8
- mgm/resources/general_model/pytorch_model.bin · 34.1 MiB · SHA-256
- Kind
- foundation model · task id
microbiome.foundation-model· Microbiome
The data it read
Public reference data. Stool shotgun metagenomes of people with colorectal cancer and controls from five public studies in France, Austria, China, the USA and Germany, as curatedMetagenomicData 3 publishes them: MetaPhlAn 3 relative abundance in percent at every rank, one matrix per study on Bioconductor ExperimentHub, and the package's curated sample metadata. Public research data; no Prepaire data and no patient data of ours.
- Data set
- curatedMetagenomicData 3: five colorectal-cancer case-control studies (stool shotgun metagenomes, MetaPhlAn 3 relative abundance), version as recorded: ExperimentHub resources dated 2021-03-31 (cMD 3); sampleMetadata from the package repository at commit f88ac2ee84df7094d04cbf225a9d4679fc4b8986 (2025-04-17), package version 3.21.8; corrected by the runner: ExperimentHub resources dated 2021-03-31 (cMD 3); sampleMetadata.rda as last changed at commit f88ac2ee (2025-04-17), package version 3.17.0, unchanged in devel up to 3.21.8 (checked 21 Nov 2026) · https://waldronlab.io/curatedMetagenomicData/ · licence Artistic-2.0 · Pasolli E, Schiffer L, Manghi P, Renson A, Obenchain V, Truong DT, Beghini F, Malik F, Ramos M, Dowd JB, Huttenhower C, Morgan M, Segata N, Waldron L. Accessible, curated metagenomic data through ExperimentHub. Nat Methods 14, 1023-1024 (2017). doi:10.1038/nmeth.4468
- Data set
- cMD ZellerG_2014 (EH5938, FRA), ExperimentHub resource dated 2021-03-31 (MetaPhlAn 3 relative abundance) · https://mghp.osn.xsede.org/bir190004-bucket01/ExperimentHub/curatedMetagenomicData/2021-03-31/ZellerG_2014/2021-03-31.ZellerG_2014.relative_abundance.rda · licence Artistic-2.0 · ZellerG 2014 (PMID 25432777), stool shotgun metagenomes, profiled by curatedMetagenomicData 3 with MetaPhlAn 3 (resource dated 2021-03-31)
- Data set
- cMD FengQ_2015 (EH5530, AUT), ExperimentHub resource dated 2021-03-31 (MetaPhlAn 3 relative abundance) · https://mghp.osn.xsede.org/bir190004-bucket01/ExperimentHub/curatedMetagenomicData/2021-03-31/FengQ_2015/2021-03-31.FengQ_2015.relative_abundance.rda · licence Artistic-2.0 · FengQ 2015 (PMID 25758642), stool shotgun metagenomes, profiled by curatedMetagenomicData 3 with MetaPhlAn 3 (resource dated 2021-03-31)
- Data set
- cMD YuJ_2015 (EH5926, CHN), ExperimentHub resource dated 2021-03-31 (MetaPhlAn 3 relative abundance) · https://mghp.osn.xsede.org/bir190004-bucket01/ExperimentHub/curatedMetagenomicData/2021-03-31/YuJ_2015/2021-03-31.YuJ_2015.relative_abundance.rda · licence Artistic-2.0 · YuJ 2015 (PMID 26408641), stool shotgun metagenomes, profiled by curatedMetagenomicData 3 with MetaPhlAn 3 (resource dated 2021-03-31)
- Data set
- cMD VogtmannE_2016 (EH5878, USA), ExperimentHub resource dated 2021-03-31 (MetaPhlAn 3 relative abundance) · https://mghp.osn.xsede.org/bir190004-bucket01/ExperimentHub/curatedMetagenomicData/2021-03-31/VogtmannE_2016/2021-03-31.VogtmannE_2016.relative_abundance.rda · licence Artistic-2.0 · VogtmannE 2016 (PMID 27171425), stool shotgun metagenomes, profiled by curatedMetagenomicData 3 with MetaPhlAn 3 (resource dated 2021-03-31)
- Data set
- cMD WirbelJ_2018 (EH5890, DEU), ExperimentHub resource dated 2021-03-31 (MetaPhlAn 3 relative abundance) · https://mghp.osn.xsede.org/bir190004-bucket01/ExperimentHub/curatedMetagenomicData/2021-03-31/WirbelJ_2018/2021-03-31.WirbelJ_2018.relative_abundance.rda · licence Artistic-2.0 · WirbelJ 2018 (PMID 30936547), stool shotgun metagenomes, profiled by curatedMetagenomicData 3 with MetaPhlAn 3 (resource dated 2021-03-31)
- Data types
- stool shotgun metagenome reads (Illumina HiSeq), profiled by MetaPhlAn 3 into relative abundance per taxon (curatedMetagenomicData 3)
- Input files
- sampleMetadata.rda · 609.7 KiB · SHA-256
168c8650d2893dcb49930b9b85a4187637775c9aae0a8023efb4cca52dc73444· public: from https://raw.githubusercontent.com/waldronlab/curatedMetagenomicData/f88ac2ee84df7094d04cbf225a9d4679fc4b8986/data/sampleMetadata.rda (mgm/sources.json) - 2021-03-31.ZellerG_2014.relative_abundance.rda · 143.6 KiB · SHA-256
d8e0f3fd00b2339b1aa929197ca0869c43990ff885a04fc675e70d4aff5604b2· public: from https://waldronlab.io/curatedMetagenomicData/ - 2021-03-31.FengQ_2015.relative_abundance.rda · 134.0 KiB · SHA-256
7d33b4813f36ee3aa49e5ade0598bb6283c724a44591f316d49d9c349c871304· public: from https://waldronlab.io/curatedMetagenomicData/ - 2021-03-31.YuJ_2015.relative_abundance.rda · 116.1 KiB · SHA-256
7c5b4fc3bac6e83371105e147b40c41aa4399f005619da4ed2a92fa6ef777272· public: from https://waldronlab.io/curatedMetagenomicData/ - 2021-03-31.VogtmannE_2016.relative_abundance.rda · 103.1 KiB · SHA-256
ba624fa7a51c002909b54c8783073e861f3c512c4295cc82571bc6cce9dfe8da· public: from https://waldronlab.io/curatedMetagenomicData/ - 2021-03-31.WirbelJ_2018.relative_abundance.rda · 108.0 KiB · SHA-256
8b7cdc0f4e6ba7546970bef6ae8b62d798488aecb9d0b6af627fb0bd95117fdd· public: from https://waldronlab.io/curatedMetagenomicData/
- sampleMetadata.rda · 609.7 KiB · SHA-256
What it measured, beside the expectation
Each figure as the runner recorded it (a value with more than four decimals is rounded once), beside the expectation the record states (the authors' published figure where the record cites one, else a threshold or control the runner set), and whether it falls within it.
The runner's own marks and controls (not published figures): 5 reported as measured, with no pass mark (share of genus abundance MGM reads 0.960; AUROC, five-fold; AUROC on the held-out studies (mean of five); fine-tuned MGM minus each other classifier, five-fold (95% interval); fine-tuned MGM minus each other classifier, held-out studies (95% interval)). Integrity checks (digests, counts, loading, devices): 4 of 4 pass.
| Measure | This run | Expectation, as the record states it | Against it |
|---|---|---|---|
SHA-256 of pytorch_model.bin equals the digest in the microformer-mgm 0.5.8 wheel's RECORD and in sources.json; every other model file matches the wheel's RECORD.weights_digest | 7a83b442dcb0cbe2a4248ea9922de58e15edfa3a1ad71d07519dc8594f4511b8 | 7a83b442dcb0cbe2a4248ea9922de58e15edfa3a1ad71d07519dc8594f4511b8 (sources.json, from the PyPI wheel RECORD) | Passes (integrity check) |
SHA-256 of the five cMD relative-abundance files and of sampleMetadata.rda equal sources.json (the ExperimentHub files also match the MD5 the store publishes as ETag).input_digests | 6 of 6 match | 6 of 6 (corrected by the runner: no code checked the store's MD5 ETags when the run was made; they were equal when checked on 21 Nov 2026) | Passes (integrity check) |
The GPU torch ran on, as CUDA names it.gpu_is_gb10 | NVIDIA GB10 | NVIDIA GB10 (DGX Spark spark-12b5) | Passes (integrity check) |
Median share of each sample's genus-level abundance whose genus is in MGM's vocabulary (MGnify/SILVA names; MetaPhlAn names such as g__Lachnospiraceae_unclassified are not).genus_abundance_mgm_can_read | 0.960 | most of it; MGM reads only genera in its vocabulary | No pass mark (reported as measured) |
Largest difference in per-sample mean NLL of the pretrained model over all 578 sentences, GPU against CPU (torch 2.10 is built for CUDA capability up to 12.0; the GB10 is 12.1).gpu_matches_cpu | 5.678e-06 | below 0.001 nats (float32 arithmetic on two backends) | Passes (integrity check) |
AUROC of the held-out predictions of five-fold cross-validation, pooled over the folds, per classifier.auroc_cv5_pooled | mgm_pretrained 0.807, mgm_scratch 0.754, rf_genus 0.838, rf_species 0.856 | No published MGM result on cMD or on colorectal cancer. On other data the MGM paper (Zhang et al., Adv Sci 2026, doi:10.1002/ | No pass mark (reported as measured) |
Mean over the five studies of the AUROC on the study left out of training, per classifier.auroc_loso_mean | mgm_pretrained 0.790, mgm_scratch 0.742, rf_genus 0.810, rf_species 0.825 | No published MGM result on cMD. Thomas et al. (Nat Med 2019, doi:10.1038/ | No pass mark (reported as measured) |
Paired bootstrap (2000 resamples of the pooled cv5 predictions) of AUROC(mgm_pretrained) minus AUROC(other): 95% interval.mgm_against_baselines_cv5 | mgm_ | reported as measured; no threshold set in advance | No pass mark (reported as measured) |
Paired bootstrap (2000 resamples of the pooled loso predictions) of AUROC(mgm_pretrained) minus AUROC(other): 95% interval.mgm_against_baselines_loso | mgm_ | reported as measured; no threshold set in advance (corrected by the runner: these are intervals over pooled predictions of five separately trained models, not intervals of the mean over studies; that interval is in rescore.json (not in the signed record): fine-tuned MGM minus the genus forest −0.019 (−0.048 to +0.009), minus the species forest −0.035 (−0.065 to −0.007)) | No pass mark (reported as measured) |
The runner's other 1 recorded value, with no expectation
- Samples read, people with CRC, controls (adenoma and unlabelled samples left out; one sample per subject).: 578 samples, 285 CRC, 293 controls
Where and when it ran
- Machine
- spark-12b5
- GPU
- NVIDIA GB10 (device
cuda:0), as the record states it. Its nvidia-smi capture (nvidia-smi.txt) is among the outputs VERA re-hashes. - Processor and memory
- aarch64 · 122 GiB · host Ubuntu 24.04.4 LTS, kernel 6.17.0-1026-nvidia; container Debian GNU/Linux 12 (bookworm), kernel 6.17.0-1026-nvidia · arm64
- Started
- 21 Nov 2026, 05:53 GST, as the record states it
- Ended
- 21 Nov 2026, 07:27 GST, 1 h 34 min (the record keeps both times in UTC)
- Container image
- vera-frontier/mgm:58906ee (local image, not published; FROM python:3.11-slim-bookworm@sha256:a83ba18aef0f865b1a4a611c2cf460fe446f2795673bbb9fe43be570439e3b39; digest is the image id; docker save tar SHA-256 8d6893d9e2b6923793b206a60165628ed2a8e30542c4351ece3b7f9093abb8f8)
digestsha256:024b97de308e9995d5af06f0dc1c932c6b999a6b23ab9dc170d98a6c96b4caf0 - Runner
- vera-frontier mgm, commit
88a6e96e578b4d66aa7208d0d4a46fe328ab186f, clean tree - Command
docker run --rm --name vera-frontier-mgm-run --hostname spark-12b5 --gpus all --ipc=private --network none --cpus 8 --memory 16g --memory-swap 16g --shm-size 2g --pids-limit 1024 -e OMP_NUM_THREADS=8 -e OPENBLAS_NUM_THREADS=8 -e MKL_NUM_THREADS=8 -u 1001:1001 -e HOME=/tmp -e USER=vera-frontier -e LOGNAME=vera-frontier -e MGM_DOWNLOADS=/work/store -e MGM_HOST_NAME=spark-12b5 -e MGM_HOST_OS=Ubuntu 24.04.4 LTS, kernel 6.17.0-1026-nvidia -e MGM_CONTAINER_IMAGE=vera-frontier/mgm:58906ee (local image, not published; FROM python:3.11-slim-bookworm@sha256:a83ba18aef0f865b1a4a611c2cf460fe446f2795673bbb9fe43be570439e3b39; digest is the image id; docker save tar SHA-256 8d6893d9e2b6923793b206a60165628ed2a8e30542c4351ece3b7f9093abb8f8) -e MGM_CONTAINER_DIGEST=sha256:024b97de308e9995d5af06f0dc1c932c6b999a6b23ab9dc170d98a6c96b4caf0 -v ~/vera-frontier-mgm/repo:/work/repo -v ~/vera-frontier-mgm/store:/work/store:ro -v ~/vera-frontier-mgm/runs:/work/runs -v ~/vera-frontier-mgm/reruns:/work/reruns -w /work/repo/mgm vera-frontier/mgm:58906ee python -m mgm_runner.classify --device cuda --runs /work/reruns- Software
- python 3.11.18, torch 2.10.0+cu130, transformers 4.33.3, accelerate 0.20.3, microformer-mgm 0.5.8, numpy 1.24.3, pandas 2.0.3, scikit-learn 1.3.1, rdata 0.11.2, xarray 2023.8.0, tokenizers 0.13.3, safetensors 0.8.0, CUDA (torch.version.cuda) 13.0, cuDNN (torch.backends.cudnn.version) 91501
Fingerprints
Recomputed by VERA on this read. The record digest is what a runner key signs. Every file below can be downloaded and hashed again (each answer carries x-content-sha256).
- Run
mgm-crc-20261121t015318z-285785df- Record digest
e5583abb4856a978eb2edf598a01a0dd1769871fc9fe5bd70f2af172a9051c4fSHA-256 of the record's canonical bytes without its signature- Record file
- SHA-256
bf433cbf2efb7d803791836a2d5203750da5f77d525d7dcd5c912a4437789b75· the file copied from the branch · download the unsigned record · the signed copy For a connection that changes a file on its way, the same bytes in the encoded form (decodedatafrom base64url, then hash or verify): the unsigned record, the signed copy. - Branch
- vera-frontier model/mgm at
d3b9cff27f76292b878aefb553fa02370d17452e, mgm/runs-cmd-crc/mgm-crc-20261121t015318z-285785df/record.json. Prepaire shows vera-frontier on request. - Output files
- coverage.json · 915 bytes · SHA-256
5137669c9060c6ecf46f2d02987d3e827f0a5894fe275e6d5d079c6a8d524ea4· re-hashed now: equal to the record - folds.csv · 28.6 KiB · SHA-256
66a3e7b3c662b6ef20151547f52ef166d11985abbfd027f311ef117369d0dede· re-hashed now: equal to the record - nvidia-smi.txt · 3.3 KiB · SHA-256
2b814cb57baf11f8a2008db4e97f91a68005f04b6d68b7f6e8e781117ddf1169· re-hashed now: equal to the record - predictions.csv · 87.4 KiB · SHA-256
e899ee1166ea0c928895c9983ae3776d2708f5ed933aa3964c57b7a97da32d92· re-hashed now: equal to the record - summary.json · 5.3 KiB · SHA-256
1a377ecac06d6b6745ad914c52dddcd1de26b0bb9129d88da470da86ddf561e8· re-hashed now: equal to the record - training.csv · 4.1 KiB · SHA-256
72e729e1c81c387235b8d8a414679a4aea7f37b65ff7db393094588edb7c527f· re-hashed now: equal to the record
- coverage.json · 915 bytes · SHA-256
Signature
Signature verified (key prepaire-runner-2026-11-20, fingerprint f177…69f5, signed 21 Nov 2026 on Prepaire's Mac, shipped with this release, verified on this read).
- Key
- prepaire-runner-2026-11-20 · Ed25519 · SHA-256 fingerprint
f17787256f69d0eead235445af1e6a706588921bf3bf0282e4f6da0160bb69f5· registered in VERA's configuration - Key owner
- Prepaire: signs vera-frontier run records on Prepaire's Mac, where the key is held, after re-hashing their outputs
- When and where signed
- Signed on Prepaire's Mac on 21 Nov 2026, 08:43 GST, after the run ended on spark-12b5 (21 Nov 2026, 07:27 GST), once the committed record and every output had been re-hashed against it. Shipped with this release, and verified on every read.
- Checked on this read
- Pass: The record matches the model-run contract (Matches the model-run contract.)
- Pass: It names a task in VERA's model stack (microbiome.foundation-model)
- Pass: Every number in it is portable, so its digest is the one that was signed (Every number is an integer below 2^53 or a decimal with 1e-4 ≤ |x| < 1e15.)
- Pass: Its Ed25519 signature verifies (Ed25519, key prepaire-runner-2026-11-20.)
- Pass: The key that signed it is registered with VERA (Registered in VERA's configuration.)
- Pass: Every output file was sent, and its size and SHA-256 match the record (6 file(s), 132669 bytes, each re-hashed by VERA.)
- Stated by the runner: the input digests. VERA re-hashes the record and each output file on this read.
- Pass: The model's weights files are named with their SHA-256 (1 weights file(s), 35731997 bytes, with SHA-256 as the runner computed them.)
- Pass: The hardware it ran on is stated (NVIDIA GB10 on spark-12b5 (aarch64, host Ubuntu 24.04.4 LTS, kernel 6.17.0-1026-nvidia; container Debian GNU/Linux 12 (bookworm), kernel 6.17.0-1026-nvidia, arm64), device cuda:0.)
- Pass: Its start and end times are consistent (21 Nov 2026, 05:53 GST to 21 Nov 2026, 07:27 GST (5628804 ms).)
- What it proves
- The record is unchanged since it was signed, and its outputs are the files listed above. The GPU is as the record states it.
Its place in the knowledge graph
From the graph's model layer, the signed build VERA serves, 3ee489ad, made from the builder's main branch at 8facda8e (PREPAIRE-KG-SCHEMA@1.7.0). Its entry for this model: “MGM”. Review of this row: Compiled by Prepaire's build agents from the source named · signed for the build by Carl Freer, 27 Nov 2026 · specialist review awaited.
Data types it reads
- microbiome sequence: Taxon abundance profile per sample
Review of every row listed: Compiled by Prepaire's build agents from the source named · signed for the build by Carl Freer, 27 Nov 2026 · specialist review awaited.
Classes of instrument that produce these data types
- short-read sequencer: MGI T20; Element AVITI24; output: Host-depleted shotgun FASTQ from stool
Review of every row listed: Compiled by Prepaire's build agents from the source named · signed for the build by Carl Freer, 27 Nov 2026 · specialist review awaited.
In VERA's own records
- Data types
- Host-depleted FASTQ + batch controls; stool shotgun metagenome reads (Illumina HiSeq), profiled by MetaPhlAn 3 into relative abundance per taxon (curatedMetagenomicData 3)
- Instruments
- T20/AVITI shotgun stool
- Other models
† Reworded into VERA's words; the run record keeps the runner's own words.