Tokyo Tech Releases SwaFlow-AR-1B Autoregressive Twin Model

Tokyo Tech Releases SwaFlow-AR-1B Autoregressive Twin Model

At a Glance

Item Value
Repository tokyotech-llm/SwaFlow-AR-1B
Publisher guide Swallow (Institute of Science Tokyo): models and licenses
Published 2026-11-28
License apache-2.0
Source type Primary source (the publisher itself)

Values determined by this site’s code when the information was collected. Dates are JST.

Overview

tokyotech-llm has released the language model “SwaFlow-AR-1B". This model is an autoregressive twin model of the flow language model “SwaFlow-1B", and is a 1.43B parameter Transformer model trained via next-token prediction using the exact same training data, identical data loading order, identical batch size, and learning rate schedule. It is provided as part of the “SwaFlow suite", which validates a series of models under the same recipe.

The purpose of the SwaFlow project is to enable open research into the behavior of Riemannian flow language models across training progress and model scale scales. It provides models of multiple scales trained under the same recipe, processing of training data in the identical order, and autoregressive twin models trained under identical conditions. Its primary purpose is not to provide models for general application use, but rather to design them for basic research and comparison of model behavior and mechanisms.

The distribution includes complete torchtitan-format checkpoints at each step during training. This retains fp32 precision weights, AdamW moments, learning rate schedule, dataloader position, and step counter, making it possible to resume training from any step state or to load and use the weights standalone.

Specifications

  • Parameters: 1.43B (width 2048, 24 layers, 16 heads, FFN 5632, causal attention, no time conditioning)
  • Context length: 2,048 tokens
  • Vocabulary size: 49,152 (SmolLM2 tokenizer)
  • Training batch size: 4,096 × 2,048 tokens per step
  • Optimizer settings: AdamW (β1 = 0.9, β2 = 0.95, weight decay 0.1, constant learning rate 3e-4 after 2,000 warm-up steps, gradient clipping 2.5)
  • Training hardware configuration: 32 nodes × 8 NVIDIA H200 (256 GPUs total)

Performance

The model card for this model does not include a detailed comparison table listing specific figures for various benchmarks. However, in the scope and limitations section of the model card, findings regarding the performance comparison between the autoregressive twin model and the flow model are described based on measurements by the publishers.

According to the description in the model card, evaluations on multiple-choice tasks reported that all autoregressive twin models, including the smallest 1.43B parameter model, scored higher in average score than the final 3.0B parameter flow model.

As can be said from this comparison result, the research and development of flow language models at this point is still in its early stages, and even when trained with the exact same data and schedule, conventional autoregressive models based on next-token prediction are clearly superior in accuracy for answering tasks such as multiple-choice questions. While generated text tends to be inconsistent on the flow model side, including models subjected to instruction tuning, this autoregressive twin model exhibits the accuracy of a standard language model.

Strengths and Use Cases

SwaFlow-AR-1B is not a model built for practical business or final product application use, such as general text generation apps or dialogue assistants. The main intended uses are behavioral comparisons with the Riemannian flow language models (such as SwaFlow-1B) provided within the project, and analysis of internal states and basic research during the training progress of large language models.

Specific features and utilization scenarios for this model include the following:

  • Rigorous comparative research with flow language models:
    It adopts “Dolma 3 Mix" (ODC-By 1.0 license) by the Allen Institute for AI as training data, and is trained with the exact same data order, identical batch size, and identical learning rate schedule as the flow model. This eliminates disturbances such as differences in training data order or composition, allowing for a proper verification of performance differences and learning characteristics between the autoregressive architecture and the flow architecture.

  • Detailed state analysis and verification during the training process:
    Training states are saved at various steps from step 4,768 (40B tokens) to step 238,400 (2.00T tokens) at intervals of 40 billion tokens (4,768 steps). Each checkpoint includes fp32 precision weights, AdamW optimizer moments, learning rate schedule, dataloader position, and step counter, enabling analysis of model behavior and reproduction experiments at any training stage.

Note that according to the model card description, tuning (alignment adjustment) to avoid generating harmful content has not been applied, and the dataset centers on English (tag: en). It is suitable for research use on model structures and learning processes rather than practical use cases requiring safety measures.

How to Get It

The model weights and training checkpoints for SwaFlow-AR-1B are published on the Hugging Face Hub repository tokyotech-llm/SwaFlow-AR-1B. Agreeing to terms of use (gated) is not required for downloading, and it is available under the Apache 2.0 license.

Standalone Weight Loading

To acquire and use only the weights of a specific training step (e.g., uniform/step-238400), set up the official swaflow-suite code and load them using the following Python code. This procedure skips optimizer states and acquires only the specified subfolder.

from torchtitan.models.swaflow.hf import from_pretrained

model = from_pretrained("tokyotech-llm/SwaFlow-AR-1B", subfolder="uniform/step-238400", device="cuda")

Training Resumption Procedure

To resume training using checkpoints, download the target step files using CLI tools or similar, place them in the appropriate directory, and call the training script.

hf download tokyotech-llm/SwaFlow-AR-1B --include "uniform/step-238400/*" --local-dir hub
mkdir -p $SWAFLOW_OUTPUTS/ar_1b/checkpoint
mv hub/uniform/step-238400 $SWAFLOW_OUTPUTS/ar_1b/checkpoint/
scripts/launch/train.sh torchtitan/models/swaflow/train_configs/ar_1b.toml ar_1b

When resuming training, it is necessary to prepare the same data build (production_6t) as the original data, and automatic verification of names and checksums is performed when loading checkpoints.

Note that while the original training was performed on a 256 GPU (32 nodes × 8 GPUs) configuration, resumption can be executed with a different number of GPUs. Since the gradient accumulation micro-batch size is adjusted to maintain the global batch size (4,096 sequences), the specified number of GPUs must be a number that divides 256 evenly. Furthermore, because floating-point addition order changes when the number of GPUs differs, it does not result in a bit-for-bit exact reproduction of the original progression, and is specified to drift slightly away from the original weights as training proceeds.

Can You Run It Locally?

License — apache-2.0 (Commercial use allowed): Permits commercial use, modification and redistribution. Redistribution requires including the license and stating changes; includes a patent grant.

Compiled by this site’s code from the published formats and the license field. License summaries are not legal advice — check the publisher’s original terms before relying on them.

Related Articles

What to Read Next

Sources