Skip to content

Get started

Download a task-specific projector and verify it on CPU.

This first step needs no language-model download or GPU.

  1. Download a projector by its task ID.
  2. Load it on CPU.
  3. Compare the printed values with the expected output.

Download a projector

git clone https://github.com/InternLM/Sage-SciPerception.git
cd Sage-SciPerception
python -m pip install -r requirements.txt
python load_projector.py glm-5.3-flash/cif/jarvis --local-dir ./checkpoints

The selected checkpoint, task configuration, and repository index are saved under checkpoints/.

Another task or language-model version

Use its ID from the HF component index. The download tool also exposes download_projector(...) for Python workflows.

Verify on CPU

Run this from the repository directory:

from load_projector import load_projector

projector, config = load_projector(
    "checkpoints/projectors/glm-5.3-flash/cif/jarvis", device="cpu"
)
print(config["task"])
print(sum(p.numel() for p in projector.parameters()))
print(config["output_dim"])

Expected output:

cif/jarvis
4314304
4096

Next steps

  • Tasks — Released projectors with metrics, scores, and checkpoint files.
  • Inference with vLLM — Send projected scientific vectors to a language-model service.
Note

Scientific feature extraction and task-adapted scientific models are separate dependencies; some adapted scientific weights are not yet included in the release. Match each task’s scientific_inputs before preparing predictions.