Sage-SciPerception
Scientific perception for language models · 书生·元征
Standardize how crystals, spectra, biological sequences, and biosignals connect to language models through modular projectors, unified data contracts, and reproducible evaluation.
Modalities · Docs · Quick start · Results · Contributing · Roadmap & Issues · 简体中文
Sage-SciPerception standardizes the four orthogonal seams between scientific representations and language models:
| Seam | Interface | What it standardizes |
|---|---|---|
| 1. Encoder | sage-training-data-v1 / FeatureCache |
Variable-length states (nodes, offsets), discrete atom/spectrum columns (modality.npy), and scientific readouts (side.npy) |
| 2. Projector | sage-projector-v1 (modeling_projector.py) |
Standalone .safetensors + config.json checkpoints portable across training and serving |
| 3. Backbone | ProjectorSession / prompt_embeds |
Non-invasive scientific embedding injection for vLLM /v1/completions and XTuner SFT |
| 4. Task / Verifier | EvalKit (EvalDataset, scip eval) |
Versioned holdout protocols, resumable run_id logs, and deterministic CPU scoring / RL rewards |
News
- 2026-12 (
v0.2.1): Publishedscipkit(pip install scipkit, unifiedscipCLI), generalizedProjectorSessionfor non-GLM backbones, unified 9-modality clientexamples/vllm_projector.py, and the Modalities showcase. - 2026-11: Published all 9
EvalKitbenchmark datasets,TrainKitrecipes, and 2-row training slices on Hugging Face Datasets.
Examples
|
Three spectra → molecular structure IR, Raman and UV–Vis with streamed analysis and a recorded prediction. |
Protein interface sites Sequence positions and reference residue-level annotations. |
|
Crystal structure and formation energy Atomic geometry and a reference material property. |
RNA interface refinement Design revisions guided by experimental feedback. |
Quick start
Install scipkit (pip install scipkit or pip install -e ".[infer]" from source), check your environment, and verify a released projector on CPU:
pip install "scipkit[infer]" # or CPU-only scoring/inspection: pip install scipkit
scip doctor
scip list
scip download glm-5.3-flash/cif/jarvis --local-dir ./checkpoints
from load_projector import load_projector
projector, config = load_projector(
"checkpoints/projectors/glm-5.3-flash/cif/jarvis", device="cpu"
)
print(config["task"], sum(p.numel() for p in projector.parameters()), config["output_dim"])
# cif/jarvis 4314304 4096
Documentation & guides
| Topic | Documentation | Repository entry points |
|---|---|---|
| Modalities | Supported modalities | Overview, common datasets, and demos across 8 modalities |
| Quick start | Get started | load_projector.py, modeling_projector.py |
| Inference with vLLM | Inference guide | examples/README.md, examples/vllm_projector.py, examples/vllm_cif.py |
| Training a projector | Training guide | trainkit/README.md · Training samples |
| Evaluation | Evaluation guide | evalkit/, examples/neu06/README.md |
| Tutorial book | Tutorial | End-to-end chapters including all inference examples |
Results
Scores from generated answers using selected task-specific checkpoints. Each task page documents its encoder, expected scientific_inputs, and training step.
| Benchmark / task | Metric ↑ | Score | Checkpoint | Evaluation |
|---|---|---|---|---|
| JARVIS-DFT Formation energy |
MAD/MAE | 15.03 | Files | llm4mat-jarvis |
| MPBind PPI interface sites |
Per-protein F1 (%) | 61.12 | Files | mpbind-ba1 |
| QM9S Molecular structure identification |
Acc@1 (%) | 49.75 | Files | qm9s-allspectra |
| SciTS PHU01 ECG classification |
Macro-F1 (%) | 71.53 | Files | scits-phu01 |
| GUE splice Splice-site classification |
MCC (%) | 87.87 | Files | gue-splice |
| SciTS NEU06 Sleep staging |
Macro-F1 (%) | 72.01 | Files | scits-neu06 · NEU06 guide |
| BEACON ncRNA RNA family classification |
Accuracy (%) | 97.35 | Files | beacon-ncrna |
| SimXRD OL Crystal-system classification |
Accuracy (%) | 63.60 | Files | simxrd-ol |
| ATOM3D PSR Protein structure ranking |
Spearman (%) | 35.36 | Files | atom3d-psr |
Metrics differ across rows: MAD/MAE is a ratio where higher is better. MPBind uses the assembly-1 reconstructed evaluation set and mean per-protein F1; PSR uses mean Spearman. These scores do not describe a jointly trained model.
Contributing & Roadmap
We are actively building out support for additional language backbones (Qwen, InternLM, Llama), open-source end-to-end scientific encoders, and new frontier modalities (molecules, NMR, mass spectrometry, single-cell, microscopy, astronomy, weather & climate).
- Read
CONTRIBUTING.mdandtests/test_contributor_fixtures.pyto add a dataset, encoder, or backbone in a few lines. - Pick up a
good first issueor comment on our open issues to claim a task.
Contributors
|
yuhangzang |
License
This repository is released under the Apache License 2.0. Upstream datasets, base language models, and scientific encoders remain governed by their respective licenses.
Citation
If you use Sage-SciPerception (scipkit) in your work, please cite:
@misc{sage_sciperception,
author = {{InternLM}},
title = {{Sage-SciPerception}},
version = {0.2.1},
note = {GitHub repository},
year = {2026},
url = {https://github.com/InternLM/Sage-SciPerception}
}
Metadata
Release files for scipkit 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scipkit-0.2.1.tar.gz | 78.4 kB | With provenance | Details for scipkit-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scipkit-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for scipkit-0.2.1-py3-none-any.whl |
Total release size: 160.5 kB
Release files / scipkit-0.2.1.tar.gz
| Download URL | scipkit-0.2.1.tar.gz |
|---|---|
| Size | 78.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
526d3ea0cf90d0c80c4beccf351ae5db91032e7f55756495f91312d3720b143a
|
|
BLAKE2b-256 checksum How to use checksums |
dbd1122bbc2cc28f6dcf3440be6d703d39a9703c797de27114e832962f1e3d2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / scipkit-0.2.1-py3-none-any.whl
| Download URL | scipkit-0.2.1-py3-none-any.whl |
|---|---|
| Size | 82.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50bf7c5d567f2f5b02d750150ec91508821949104e3f8c0fd72f992e8e66aeca
|
|
BLAKE2b-256 checksum How to use checksums |
1992995522f4537a24b1f9b2d9a804ac5f0df63a38a51fe88be6ddcb09ced7fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for scipkit 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for scipkit-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.