Skip to navigation

GS1-0.8B is the smallest checkpoint of the BIGAI GS1 decision-model family, which also includes GS1-2B, GS1-4B, and GS1-9B. Like other decision models, 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, and then install the GS1 runtime dependency:

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:

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:

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

PropertyValue
ArchitectureGS1Model, loaded from the checkpoint’s Hub code (modular_gs1.py)
Language backbone24 layers (qwen3_5_text) with hidden size 1,024. Every fourth layer uses full attention, and the others use linear attention.
Vision encoder12 layers (qwen3_5). The example trains on text states only.
Decision head2 cross-attention layers with 4 heads and a projection size of 256
Vocabulary248,320 tokens

Configuration

SettingConfiguration
RecipeTrainNemotronDecisionRecipe with reader: GS1ReaderConfig, in gs1_distribution_sft.yaml
Checkpointbigai/GS1-0.8B, with the weights and Hub code pinned to the same revision
Training scopeFull fine-tuning (peft: null), FP32 weights with BF16 autocast
ParallelismDDP. Tensor, context, pipeline, and expert parallelism are not supported.
ObjectiveDistribution 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.
Batch8 questions per optimizer step across all ranks, one question per forward pass
InputsText states only. Image and video states and option shuffling are not supported.