SwaFlow-1B: Non-Autoregressive Riemannian Flow Model Released

SwaFlow-1B: Non-Autoregressive Riemannian Flow Model Released

At a Glance

Item Value
Repository tokyotech-llm/SwaFlow-1B
Family guide SwaFlow guide (5 articles)
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/SwaFlow-1B has been released. This model is a 1.59B parameter non-autoregressive hyperspherical (Riemannian) flow language model, trained from scratch using the Allen Institute for AI dataset Dolma 3 Mix. It is provided as part of the SwaFlow suite, a group of models trained with the identical recipe and data order.

The repository stores complete torchtitan checkpoints for each step during training. These include fp32 weights, AdamW moments, learning rate schedulers, dataloader positions, and step counters, making it possible to resume training from arbitrary states or load the weights standalone.

This model is not intended for production application deployment, but has been developed to enable open research and investigation into Riemannian flow language models across training progress and model scales.

Specifications

  • Parameters: 1.59B (width 2048, 24 layers, 16 heads, FFN 5632)
  • Context length: 2,048 tokens
  • Vocabulary: 49,152 (SmolLM2 tokenizer)

Performance

Detailed configurations of the model and tables containing the recorded training states are provided in the model card.

Model details

Parameters 1.59B (width 2048, 24 layers, 16 heads, FFN 5632)
Vocabulary 49,152 (SmolLM2 tokenizer)
Context length 2,048 tokens
Time convention α = 1 is clean data, α = 0 is pure noise
Batch 4,096 × 2,048 tokens per step
Optimizer AdamW (β = 0.9, 0.95; weight decay 0.1), LR 3e-4 constant after a 2,000-step warmup, clip 2.5
Hardware 32 nodes × 8 NVIDIA H200

Contents

Folder States
uniform/step- pretraining, one α per sequence drawn from [0, 0.105]: every 40B tokens (4,768 steps) from step 4,768 (40B) to 224,096 (1.88T), then every 20B tokens (2,384 steps) from 226,480 (1.90T) to 238,400 (2.00T)
clean-prefix-2t/step- clean-prefix mid-training branched from uniform/step-226480 (1.90T): every 20B tokens (2,384 steps) from 228,864 (1.92T) to 238,400 (2.00T)

According to reports in the release model card, flow language model technology is still in its early stages. As a specific comparison, on multiple-choice tasks, autoregressive twin models (including a 150M parameter model) trained on the same data are reported to outperform the final 3B flow model of this series in average score.

Additionally, even with instruction-tuned models, text generated by flow models is often reported to be incoherent, and it is explained that they are not currently intended for practical text generation or tuning aimed at avoiding harmful content.

Strengths and Use Cases

The model is developed not for application embedding or practical text generation, but for open research and investigation into the training behavior and scale-dependent changes of non-autoregressive hyperspherical (Riemannian) flow language models.

Intended uses and features confirmed from the model card and tag labels are as follows:

  • Supported languages: English (en)
  • Architecture/Method: Flow-matching / Riemannian flow (flow-matching, riemannian-flow, non-autoregressive)
  • Main use cases: Analyzing training dynamics using training checkpoints (training-checkpoints), and resuming or fine-tuning experiments from specific states

As explicitly stated by the authors, text generated by current flow language models is often incoherent even when instruction tuning is applied, and tuning to avoid harmful content has not been performed. Therefore, it is suited for architectural research and experimental use rather than general conversational processing or writing assistance.

How to Get It

The model weights and individual training states are available on Hugging Face under the Apache-2.0 license. There is no gated requirement asking for license agreement.

To load the model from Python, install the SwaFlow code in advance and run the following:

from torchtitan.models.swaflow.hf import from_pretrained

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

To resume training from a specific step, download the state via the CLI and invoke the prepared training script as follows:

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

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