RumiFold_Functional / README.md
kevinlu4588's picture
RumiFold: inference, evaluation and training code
e3a0f99
|
Raw History Blame Contribute Delete
5.89 kB
metadata
pretty_name: RumiFold Functional
license: other
task_categories:
  - text-generation
tags:
  - biology
  - protein
  - esm
  - function-prediction

RumiFold Functional

Protein function, residue-site, structural question-answering and language-replay data used in the functional and language training of RumiFold.

Folder Contents
pool/ The protein pool: 255,885 train / 4,621 val / 7,658 test proteins with GO, EC, function text and residue annotations
residue_labels/ Per-residue labels (active site, binding site, mutagenesis, PTM, topology; 0-based) and AlphaFold Database backbones
go_labels/ Gene Ontology labels by tier and the vocabulary
context/, hints/ Predicted residue context and GO hints used as extra input
features/ ESM-C features for every pool protein (index.jsonl)
structures_hq/ High-quality structures: 97,852 AlphaFold Database models and 45,926 PDB assemblies released before 1 January 2022, with features
structural_qa/ Structural question bank (761,645 train / 6,467 validation questions; 652,156 of the training questions are from AlphaFold models, the rest from PDB entries released before 1 January 2022), short-answer prompts and question phrasings
replay/ Language replay: Tulu-3 prompts with Qwen3-8B answers and top-20 log-probabilities

Downloading only what you need

Labels and text are separate from the large feature files, and features are packed in shards of about 2 GB.

from huggingface_hub import snapshot_download
# labels and text only
snapshot_download("RumiFold/RumiFold_Functional", repo_type="dataset",
                  ignore_patterns=["*.safetensors", "*.npz", "*.tar"])

Features are ESM-C 6B final-layer embeddings (2,560-d, bfloat16, BOS/EOS removed). Each index.jsonl line gives shard, residue_offset and residue_end:

from safetensors import safe_open
with safe_open(row["shard"], "pt") as f:
    x = f.get_slice("embeddings")[row["residue_offset"]:row["residue_end"]]

The PDB portion of the structural question bank and structures_hq uses entries first released before 1 January 2022. Screening removed rows matching CAMEO22 or CASP14 at 30% identity and 80% coverage, together with their clusters where available in the folding manifest. The separate function pool contains 130 proteins matching CAMEO22 targets and 264 matching CASP14 sequences under this criterion. See RumiFold_Data for base folding data and checkpoint provenance.

How the pool was built

  1. Union of the training sets of Prot-Inst-OOD, Prot2Text, UniProtQA, BioReason-Pro CAFA, GO-GPT, GO-GPT v2 and VenusX: 677,109 distinct sequences, capped at 2,000 residues.
  2. Sequences identical to, or an MMseqs2 hit (identity at least 30%, coverage at least 80% of either sequence) of, a GO-GPT v2 test row (scored or not), a Prot2Text or BioReason-Pro CAFA test protein, or one of our structural evaluation sequences were dropped. Only annotated proteins were kept.
  3. Annotations come from reviewed Swiss-Prot, joined by exact sequence, and from GO-GPT v2. go_source says which; their second GO tiers are not equivalent.
  4. Split by 30%-identity clusters. No sequence is shared between the splits.

earlier_pool_split marks proteins that were also in an earlier, smaller pool.

Which models used it. RumiFold (156k) was trained on this pool in its later stage, after update 95,000. The RumiFold 95k checkpoint, and the functional data of the Gene Ontology and Prot2Text fine-tunes, used the earlier pool, which is not included here and was not screened against GO-GPT v2.

Evaluating on this data. VenusX is not held out: the pool shares exact sequences with its validation and test sets (for example 383 in Act_X test and 162 in BindI_X test). RumiFold-Struct was trained exclusively on folding data and never used this functional pool. These matches therefore do not affect the reported RumiFold-Struct VenusX probe results. The functional pool was not screened against Prot-Inst-OOD, Mol-Instructions or UniProtQA. Annotations are a 2026 snapshot, so this is not a temporal holdout. Absent residue annotations mean unknown, not negative.

Replay

Prompts come from the Tulu-3 SFT mixture; answers were regenerated greedily with Qwen3-8B (Apache-2.0). Every conversation records its source and license (see replay/index.jsonl and replay/sources.json).

This is a subset of the replay set used in training. Conversations from FLAN (licences vary by task) and No Robots (CC-BY-NC-4.0) are left out for licensing reasons. Their IDs and sources are in replay/held_out_ids.jsonl, so they can be rebuilt from Tulu-3. Generations that did not finish cleanly are also excluded.

Licence Sources
ODC-BY-1.0 PersonaHub-derived math, code and instruction sets, WildChat, WildJailbreak, CoCoNot, SciRIFF
Apache-2.0 Evol-CodeAlpaca, Aya, NuminaMath-TIR, WildGuardMix, OpenAssistant
CC-BY-4.0 OpenMathInstruct-2, hard-coded Tulu examples
MIT TableGPT

Licences are as recorded by Tulu-3 and the source dataset cards. WildChat contains conversations from real users, and WildJailbreak and WildGuardMix contain adversarial or harmful prompts. Please cite Tulu-3:

@article{lambert2024tulu,
  title={T\"ulu 3: Pushing Frontiers in Open Language Model Post-Training},
  author={Lambert, Nathan and others},
  journal={arXiv preprint arXiv:2411.15124},
  year={2024}
}

Sources and licences

GO-GPT v2 (wanglab/bioreason-pro-v2, CC-BY-4.0), Swiss-Prot/UniProt, AlphaFold Database, PDB, Gene Ontology, VenusX, Prot-Inst-OOD, Prot2Text, UniProtQA, BioReason-Pro and ESM-C 6B each keep their own terms.