# Framework

> How a task-specific projector connects a scientific representation to a language model.

---

LLMS index: [llms.txt](/Sage-SciPerception/llms.txt)

---

![Scientific inputs pass through scientific representations and trainable projectors into a language model.](https://raw.githubusercontent.com/InternLM/Sage-SciPerception/main/assets/framework-en.gif)

Sage Sci Perception maps scientific encoder states, spectral patches, and scientific readouts into a language model's input embeddings, enabling natural-language analysis and structured scientific answers.

A task-specific projector maps scientific representations into the language model's embedding space. During language-mapping training, the scientific models and the language model remain frozen while the projector is trained. Some tasks use scientific models adapted beforehand, or combine encoder states with scientific readouts.

## What a checkpoint contains {#checkpoint}

Each released checkpoint holds `projector.safetensors` and a `config.json`. The configuration declares the architecture, the output dimension, the scientific inputs, the prompt, the backbone revision, and the training step. Its top-level fields include `format_version`, `component_type`, `task`, `weights`, `projector`, `output_dim`, `base_model`, `prompt`, `scientific_inputs`, and `training_step`.

`scientific_inputs` is the field to read before preparing data: it names the encoder, the preprocessing, the representation, any scientific readout, and the side features per object. The nine released tasks are listed under [Tasks](/docs/tasks/).

## Where each piece runs {#pieces}

| Piece | Where it runs | Provided here |
|---|---|---|
| Scientific feature extraction | Your own environment, usually CPU | No, except the NEU06 example |
| Projector | The inference client | Yes, as released checkpoints |
| Language model | A vLLM service on GPUs | No, downloaded from its upstream snapshot |
| Scoring | CPU | Yes, as EvalKit |

Scientific feature extraction and task-adapted scientific models are separate dependencies; some adapted scientific weights are not yet included in the release.
