tokyotech-llm Releases SwaFlow-3B-Instruct

At a Glance
| Item | Value |
|---|---|
| Repository | tokyotech-llm/SwaFlow-3B-Instruct |
| Family guide | SwaFlow guide (5 articles) |
| Publisher guide | Swallow (Institute of Science Tokyo): models and licenses |
| Published | 2026-11-28 |
| License | apache-2.0 |
| Formats | safetensors |
| 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 “SwaFlow-3B-Instruct", an instruction-tuned version of their Riemannian flow language model. This model is built upon “SwaFlow-3B" (clean-prefix-4t/step-476800, which underwent pre-training on 4T tokens), the final 3B-scale flow language model in the SwaFlow suite, by applying one epoch of instruction tuning using the “Dolci-Instruct-SFT" dataset.
SwaFlow adopts a non-autoregressive approach that generates text by integrating flows from noise on a sphere. The pre-training data utilizes “Dolma 3 Mix" provided by the Allen Institute for AI, and the model was trained on 32 nodes of an 8x NVIDIA H200 configuration (totaling 256 GPUs). During the instruction tuning phase, additional training was performed using a dataset of approximately 1.16B tokens (1,107 steps) that excluded samples containing tool calls.
The primary objective of the SwaFlow project is to enable open research into Riemannian flow language models across training processes and scales. Rather than serving as a model for production-grade application development, it is positioned as a research testbed for comparative evaluation against autoregressive models trained on the same data, and for investigating and analyzing the technical characteristics and behaviors of flow language models.
Specifications
- Parameters: 3.74B (width 3072, 28 layers, 24 heads, FFN 8192)
- Context length: 2,048 tokens
Performance
According to performance evaluations and reports in the model card, non-autoregressive flow language model technology is currently still in an early research phase.
Qualitative comparison reports in the model card indicate that in comparisons with autoregressive twin models trained on the same data and under equivalent conditions, all autoregressive models—including the smallest 150M parameter autoregressive model—outperform this model (the final 3B flow model version) on average scores for multiple-choice tasks.
Furthermore, according to the release notes, even with instruction tuning applied, the generated text is reported to frequently exhibit inconsistencies and incoherent sections. In addition, safety tuning to restrict or avoid the generation of harmful content has not been applied. Consequently, while there are limitations compared to conventional autoregressive models for practical dialogue and task execution, the model is intended to be utilized as a resource for academically analyzing and verifying the characteristics and operational mechanisms of flow-based generation.
Strengths and Use Cases
This model was not developed for everyday dialogue tasks or integration into practical applications. As explicitly stated in the model card, it is provided as a research foundation for openly studying and verifying the training, scale progression, and generation behavior of non-autoregressive Riemannian flow language models.
Expected use cases include the following research and verification tasks:
- Analysis of flow-based language model behavior and mechanisms: Tracking and analyzing the characteristics and text generation process of a non-autoregressive model that generates text by integrating flows from a noisy state on a sphere.
- Academic comparison with autoregressive models: Verifying differences in performance and behavior arising from generation approaches through comparisons with autoregressive twins built using the exact same training data and training environment.
- Investigation of state changes during training: Researching the impacts of continued training and instruction tuning by referencing checkpoints and training states of the pre-trained model (SwaFlow-3B).
The model has been trained for one epoch using “Dolci-Instruct-SFT", an instruction-response dataset in English (en), and supports prompt structures in the User: and Assistant: format. However, it does not support tasks involving tool calls, nor does it undergo safety tuning or guarantee high consistency like production-ready models. It is not intended for general-purpose task processing or high-accuracy text generation, but rather for technical investigation and academic research into flow language models.
Hardware Requirements
Estimated requirements (calculated by Local Model Watch) — 3.7B parameters
| Your VRAM | Quantization | File size | Est. memory needed |
|---|---|---|---|
| 24GB (RTX 4090 / 3090, etc.) | F32 | 13.9GB | 16.7GB |
Inference engine support (architecture name matched against each project’s own model registry in its source code, checked 2026-11-28): llama.cpp: not registered, vLLM: not registered, MLX (mlx-lm): not registered. “Not registered" means the name is absent from that registry today, not that the model cannot run.
Memory estimates add a 20% runtime overhead (KV cache, etc.) to the actual size of the distributed files. Actual usage varies with context length, batch size and inference engine. These figures are computed by this site from file sizes, not published by the model’s authors. The listed files are distributed in F32 (32-bit). Loading in a lower precision (BF16 or quantized) needs less memory, so treat this as the size of the files as distributed, not a minimum. This site has not measured the lower-precision figures. Compare with other models in our VRAM quick reference. What the quantization names mean: glossary.
Can You Run It Locally?
The publisher distributes this model as safetensors.
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.
How to Get It
The model weights for SwaFlow-3B-Instruct are available on the Hugging Face Hub in the tokyotech-llm/SwaFlow-3B-Instruct repository. Because it is not a gated model requiring a license agreement (gated: false), anyone can directly access and obtain it.
Distribution Format and License
The distribution format consists of config.json and safetensors (fp32 precision). The overall model usage license is Apache 2.0 (apache-2.0). Note that the “Dolma 3 Mix" dataset used for pre-training and the “Dolci-Instruct-SFT" dataset used for instruction tuning are provided by the Allen Institute for AI under the ODC-By 1.0 license, intended for research and educational use in accordance with Ai2’s Responsible Use Guidelines.
Hardware Requirements and Usage Procedure
Running the model requires installing the dedicated code “swaflow-suite" available on GitHub. The main steps and notes for running inference are as follows:
-
Setup of the Dedicated Library:
Install the SwaFlow code from the GitHub repository (swaflow-suite) and use thetorchtitan.models.swaflowmodule. -
Preparation of the Tokenizer:
The tokenizer (tokenizerslibrary) fromHuggingFaceTB/SmolLM2-135Mis used for the model’s vocabulary and tokenization processing. -
Prompt Construction Rules:
When creating prompts, construct them in plain text without using special tokens. For each turn, separately encode (tokenize) theUser:description followed by a newline, and theAssistant:description, then concatenate their token ID arrays. Concatenating the string all at once may alter the splitting at boundaries, so parts must be encoded separately just as during training. -
Sampling and Generation:
Usefrom_pretrainedfromtorchtitan.models.swaflow.hfto load the model. During generation, call thegeneratefunction and configureSamplerConfig(e.g.,steps=64) to specify the flow integration steps from noise and sampling settings. Generation proceeds withprefix_tokens(the prompt portion) acting as conditioning kept clean without being noised.<|endoftext|>(token ID: 0) is used to detect the end of the text.
Related Articles
- SwaFlow-3B-EMA: Non-Autoregressive Riemannian Flow Model
- SwaFlow-3B-EMA-Instruct Released by tokyotech-llm
- SwaFlow-1B: Non-Autoregressive Riemannian Flow Model Released
- TokyoTech-LLM Releases SwaFlow-500M and SwaFlow-AR-500M
What to Read Next
- Find models by VRAM (This model runs from the 24GB tier) → Other models that run on a 24GB GPU
- Explore the same model family → SwaFlow family overview (5 articles)
- Formats this model is available in → Safetensors format guide and models
- Learn about the publisher → Swallow (Institute of Science Tokyo): models, licenses and articles
Sources
- https://huggingface.co/tokyotech-llm/SwaFlow-3B-Instruct
- https://github.com/swallow-llm/swaflow-suite
- https://huggingface.co/collections/tokyotech-llm/swaflow-suite
- https://huggingface.co/tokyotech-llm/SwaFlow-3B
- https://huggingface.co/datasets/allenai/Dolci-Instruct-SFT
- https://huggingface.co/datasets/allenai/dolma3_mix-6T

