> This page is for version Nightly (default).
> For other versions, use one of these documentation indexes:
> - Nightly (default): https://docs.nvidia.com/nemo/automodel/nightly/llms.txt
> - Latest: https://docs.nvidia.com/nemo/automodel/latest/llms.txt
> - 0.7.0 · 26.10: https://docs.nvidia.com/nemo/automodel/v0.7/llms.txt
> - 0.5.0 · 26.06: https://docs.nvidia.com/nemo/automodel/v0.5/llms.txt
> - 0.4.0 · 26.04: https://docs.nvidia.com/nemo/automodel/v0.4/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/automodel/llms.txt.

# GS1-0.8B

> Fine-tune all weights of GS1-0.8B on target distributions with NeMo AutoModel, using the checkpoint's own prompt compiler and decision head in the shared decision recipe.

[GS1-0.8B](https://huggingface.co/bigai/GS1-0.8B) is the smallest checkpoint of the BIGAI GS1 decision-model family,
which also includes [GS1-2B](https://huggingface.co/bigai/GS1-2B), [GS1-4B](https://huggingface.co/bigai/GS1-4B), and
[GS1-9B](https://huggingface.co/bigai/GS1-9B). Like other [decision models](/nemo/automodel/model-coverage/decision-models/overview),
it returns a probability for every candidate of each typed question. The checkpoint ships its model implementation,
prompt compiler, hybrid backbone, and cross-attention decision head as Hugging Face Hub code.

NeMo AutoModel runs GS1 with the shared decision recipe, `TrainNemotronDecisionRecipe`, and a GS1 reader: the
checkpoint's own compiler encodes each question, and its decision head scores the candidates. Records, metrics, and
stage selection are the same as for the other decision models. The example fine-tunes all weights on the target
distributions of native GS1 training data.

## Fine-Tune GS1-0.8B

The checkpoint code requires Transformers 5.3 or later and `typesafe-sdk==0.7.0`. Set up a source checkout of NeMo
AutoModel as described in
[Run Decision Models with NeMo AutoModel](/nemo/automodel/model-coverage/decision-models/overview#run-decision-models-with-nemo-automodel),
and then install the GS1 runtime dependency:

```bash
uv pip install "typesafe-sdk==0.7.0"
```

Convert native GS1 training lines, which pair a `request` with per-question `targets`, into decision records, and then
train on 8 GPUs:

```bash
uv run python examples/decision/prepare_gs1_data.py --input distribution-v4.5/train.jsonl \
    --output data/gs1/train.jsonl --max-questions 3000 --seed 42
automodel examples/decision/gs1_distribution_sft.yaml --nproc-per-node 8
```

`prepare_gs1_data.py` keeps text-only questions with 2 to 255 candidates. Each record stores the target distribution of
its question as `soft_labels`, and the most probable candidate as the `answers` entry that the metrics score.
`--max-questions` keeps a seeded random sample. To select stages by validation accuracy, convert a held-out file the
same way and set `data.validation`. Without a validation split, the recipe publishes the last stage.

Each stage stores a complete Hugging Face checkpoint under `model/consolidated`, for example
`runs/gs1/0.8b-distribution-sft/LOWEST_VAL/model/consolidated`, or `LATEST` without a validation split. Use it with the
tokenizer of the pinned base revision, and apply the NeMo AutoModel Transformers compatibility patch before you load it
in a new process:

```python
from nemo_automodel.components.models.gs1.compat import ensure_gs1_transformers_compat

ensure_gs1_transformers_compat()

from transformers import AutoModel

model = AutoModel.from_pretrained("runs/gs1/0.8b-distribution-sft/LATEST/model/consolidated", trust_remote_code=True)
```

## Model Reference

### Model Architecture

| Property          | Value                                                                                                                           |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **Architecture**  | `GS1Model`, loaded from the checkpoint's Hub code (`modular_gs1.py`)                                                            |
| Language backbone | 24 layers (`qwen3_5_text`) with hidden size 1,024. Every fourth layer uses full attention, and the others use linear attention. |
| Vision encoder    | 12 layers (`qwen3_5`). The example trains on text states only.                                                                  |
| Decision head     | 2 cross-attention layers with 4 heads and a projection size of 256                                                              |
| Vocabulary        | 248,320 tokens                                                                                                                  |

### Configuration

| Setting        | Configuration                                                                                                                                                                                                                                               |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Recipe         | `TrainNemotronDecisionRecipe` with `reader: GS1ReaderConfig`, in [`gs1_distribution_sft.yaml`](https://github.com/NVIDIA-NeMo/Automodel/blob/main/examples/decision/gs1_distribution_sft.yaml)                                                              |
| Checkpoint     | [`bigai/GS1-0.8B`](https://huggingface.co/bigai/GS1-0.8B/tree/5c8dfd6486ac0eaabd27d3ec7637982bcd5eb3e9), with the weights and Hub code pinned to the same revision                                                                                          |
| Training scope | Full fine-tuning (`peft: null`), FP32 weights with BF16 autocast                                                                                                                                                                                            |
| Parallelism    | DDP. Tensor, context, pipeline, and expert parallelism are not supported.                                                                                                                                                                                   |
| Objective      | Distribution negative log-likelihood plus `brier_weight` times the Brier score, with the soft labels as the target (`loss.soft_label_kl_weight: 0`). Its gradients equal those of the GS1 objective, negative log-likelihood plus the expected Brier score. |
| Batch          | 8 questions per optimizer step across all ranks, one question per forward pass                                                                                                                                                                              |
| Inputs         | Text states only. Image and video states and option shuffling are not supported.                                                                                                                                                                            |