{"id":26401,"date":"2026-11-28T06:11:55","date_gmt":"2026-11-27T21:11:55","guid":{"rendered":"https:\/\/localmodelwatch.tsuchitsuchi.com\/2026\/11\/28\/tokyotech-llm-swaflow-500m-and-swaflow-ar-500m\/"},"modified":"2026-11-28T09:16:56","modified_gmt":"2026-11-28T00:16:56","slug":"tokyotech-llm-swaflow-500m-and-swaflow-ar-500m","status":"publish","type":"post","link":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/28\/tokyotech-llm-swaflow-500m-and-swaflow-ar-500m\/","title":{"rendered":"TokyoTech-LLM Releases SwaFlow-500M and SwaFlow-AR-500M"},"content":{"rendered":"<p><!-- lmw:facts --><\/p>\n<h2>At a Glance<\/h2>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Repository<\/td>\n<td><a href=\"https:\/\/huggingface.co\/tokyotech-llm\/SwaFlow-500M\">tokyotech-llm\/SwaFlow-500M<\/a><\/td>\n<\/tr>\n<tr>\n<td>Family guide<\/td>\n<td><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/model-tokyotech-llm-swaflow-en\/\">SwaFlow guide (5 articles)<\/a><\/td>\n<\/tr>\n<tr>\n<td>Publisher guide<\/td>\n<td><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/publisher-swallow-en\/\">Swallow (Institute of Science Tokyo): models and licenses<\/a><\/td>\n<\/tr>\n<tr>\n<td>Published<\/td>\n<td>2026-11-28<\/td>\n<\/tr>\n<tr>\n<td>License<\/td>\n<td>apache-2.0<\/td>\n<\/tr>\n<tr>\n<td>Source type<\/td>\n<td>Primary source (the publisher itself)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><em>Values determined by this site&#8217;s code when the information was collected. Dates are JST.<\/em><\/p>\n<p><!-- \/lmw:facts --><\/p>\n<h2>Overview<\/h2>\n<p>tokyotech-llm has simultaneously released &#8220;SwaFlow-500M&#8221;, a hyperspherical (Riemannian) flow language model, and its autoregressive counterpart &#8220;SwaFlow-AR-500M&#8221;. <a href=\"https:\/\/huggingface.co\/tokyotech-llm\/SwaFlow-500M\">SwaFlow-500M<\/a> is a non-autoregressive model with 686M parameters, while <a href=\"https:\/\/huggingface.co\/tokyotech-llm\/SwaFlow-AR-500M\">SwaFlow-AR-500M<\/a> is a 613M-parameter Transformer model. Both models follow the same data ordering and training recipe, and are trained from scratch using the Allen Institute for AI&#8217;s &#8220;Dolma 3 Mix&#8221; dataset.<\/p>\n<p>This release is intended for open research into the training processes and scale-dependent changes of flow language models, rather than for integration into applications. Each state is saved as a complete torchtitan checkpoint containing fp32 weights, AdamW moments, learning rate scheduler, data loader position, and step counter, making it possible to resume training from any checkpoint or load the weights standalone.<\/p>\n<h2>Specifications<\/h2>\n<p>The specifications of each model listed in the documentation are as follows.<\/p>\n<p>SwaFlow-500M:<br \/>\n&#8211; Parameters: 686M (width 1280, 24 layers, 10 heads, FFN 3584)<br \/>\n&#8211; Context length: 2,048 tokens<br \/>\n&#8211; Vocabulary size: 49,152 (SmolLM2 tokenizer)<\/p>\n<p>SwaFlow-AR-500M:<br \/>\n&#8211; Parameters: 613M<\/p>\n<h2>Performance<\/h2>\n<p>While the model cards for this model group do not include a detailed comparison table of benchmark scores, the &#8220;Scope and limitations&#8221; section reports qualitative evaluation results comparing autoregressive and flow models.<\/p>\n<p>According to the model card description, on multiple-choice tasks, all autoregressive twin models, including the 150M parameter configuration, outperform the final 3B scale flow model in average score. Furthermore, text generated by flow models, including instruction-tuned variants, is often reported to be incoherent. Note that neither model has been tuned to avoid generating harmful content.<\/p>\n<p>These measurement results indicate that the flow language model technology is still in its early stages, with autoregressive models clearly maintaining superiority in standard text generation performance and multiple-choice tasks. This model group is positioned not as a practical generation engine, but as an academic foundation for comparing and verifying the behavioral differences between flow models and autoregressive models under identical data environments.<\/p>\n<h2>Strengths and Use Cases<\/h2>\n<p>SwaFlow-500M and SwaFlow-AR-500M were not developed to be used like general applications or chatbots. These models are constructed as a research foundation for openly investigating, analyzing, and researching the mechanisms, training processes, and behavior changes associated with model scaling in hyperspherical (Riemannian) flow language models.<\/p>\n<p>Specifically, they are suited for research and verification use cases such as:<\/p>\n<ul>\n<li>Detailed comparisons of behavior and performance differences between Riemannian flow language models and autoregressive (Transformer) models trained on identical data and training order.<\/li>\n<li>Resuming training from intermediate states (checkpoints) and analyzing weight progression or the internal state of the optimization algorithm (AdamW).<\/li>\n<li>Verifying characteristic changes associated with scaling across the entire &#8220;SwaFlow suite&#8221; built with the same training recipe and data order.<\/li>\n<\/ul>\n<p>On the other hand, they are not suited for practical application use such as general text generation tasks, dialogue processing, or harmful content filtering. As mentioned in the model card, text generated by flow models is frequently incoherent, and safety tuning has not been applied, so caution is required when using them.<\/p>\n<h2>How to Get It<\/h2>\n<p>Both models are released under the Apache 2.0 license and can be obtained by anyone without requiring prior license agreement procedures on Hugging Face.<\/p>\n<p>To use them, you must first install the dedicated code (SwaFlow code) from the official SwaFlow repository. If you want to load only specific checkpoint weights from Python code, run the following procedure.<\/p>\n<p>To load SwaFlow-500M weights:<\/p>\n<pre><code class=\"language-python\">from torchtitan.models.swaflow.hf import from_pretrained\n\nmodel = from_pretrained(&quot;tokyotech-llm\/SwaFlow-500M&quot;, subfolder=&quot;uniform\/step-238400&quot;, device=&quot;cuda&quot;)\n<\/code><\/pre>\n<p>To load SwaFlow-AR-500M weights:<\/p>\n<pre><code class=\"language-python\">from torchtitan.models.swaflow.hf import from_pretrained\n\nmodel = from_pretrained(&quot;tokyotech-llm\/SwaFlow-AR-500M&quot;, subfolder=&quot;uniform\/step-238400&quot;, device=&quot;cuda&quot;)\n<\/code><\/pre>\n<p>This method downloads only the specified subfolder and skips the optimizer states.<\/p>\n<h3>Resuming and Executing Training<\/h3>\n<p>To obtain the entire checkpoint including optimizer states and resume training from an intermediate point, download the checkpoint via the CLI, place it in the designated directory, and run the startup script.<\/p>\n<p>Resuming SwaFlow-500M training:<\/p>\n<pre><code class=\"language-bash\">hf download tokyotech-llm\/SwaFlow-500M --include &quot;uniform\/step-238400\/*&quot; --local-dir hub\nmkdir -p $SWAFLOW_OUTPUTS\/flow_500m\/checkpoint\nmv hub\/uniform\/step-238400 $SWAFLOW_OUTPUTS\/flow_500m\/checkpoint\/\nscripts\/launch\/train.sh torchtitan\/models\/swaflow\/train_configs\/flow_500m.toml flow_500m\n<\/code><\/pre>\n<p>Resuming SwaFlow-AR-500M training:<\/p>\n<pre><code class=\"language-bash\">hf download tokyotech-llm\/SwaFlow-AR-500M --include &quot;uniform\/step-238400\/*&quot; --local-dir hub\nmkdir -p $SWAFLOW_OUTPUTS\/ar_500m\/checkpoint\nmv hub\/uniform\/step-238400 $SWAFLOW_OUTPUTS\/ar_500m\/checkpoint\/\nscripts\/launch\/train.sh torchtitan\/models\/swaflow\/train_configs\/ar_500m.toml ar_500m\n<\/code><\/pre>\n<p>When resuming from the <code>clean-prefix-2t<\/code> state, use <code>midtrain_500m.toml<\/code> as the configuration file.<\/p>\n<h3>Notes on Resuming Training<\/h3>\n<p>When resuming training, several prerequisites and operational specifications apply:<\/p>\n<ul>\n<li><strong>Training Data Environment<\/strong>: Because checksums and names are verified when loading the model, a <code>production_6t<\/code> data build created using the data pipeline in the code is required.<\/li>\n<li><strong>GPU Configuration Conditions<\/strong>: It is possible to resume with a different number of GPUs than the original training environment (32 nodes \u00d7 8 GPUs for 256 ranks for SwaFlow-500M, 16 nodes \u00d7 8 GPUs for 128 ranks for SwaFlow-AR-500M). However, due to gradient accumulation constraints that fix the global batch size (4,096 sequences), the number of GPUs used must evenly divide 256.<\/li>\n<li><strong>Regarding Reproducibility<\/strong>: When resumed in an environment with a different number of GPUs, the order of floating-point additions across ranks and microbatches changes, causing weights to begin deviating from the original run in the last few bits of calculation results, with the difference widening as training progresses. Note that random number states are not included in checkpoints, meaning this will not be a bit-wise perfectly matching reproducible run.<\/li>\n<\/ul>\n<p><!-- lmw:runnability --><\/p>\n<h2>Can You Run It Locally?<\/h2>\n<p><strong>License \u2014 <code>apache-2.0<\/code> (Commercial use allowed):<\/strong> Permits commercial use, modification and redistribution. Redistribution requires including the license and stating changes; includes a patent grant.<\/p>\n<p><em>Compiled by this site&#8217;s code from the published formats and the license field. License summaries are not legal advice \u2014 check the publisher&#8217;s original terms before relying on them.<\/em><\/p>\n<p><!-- \/lmw:runnability --><\/p>\n<p><!-- lmw:related --><\/p>\n<h2>Related Articles<\/h2>\n<ul>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/28\/swaflow-1b-riemannian-flow-language-model\/\">SwaFlow-1B: Non-Autoregressive Riemannian Flow Model Released<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/28\/swaflow-ar-1b-2\/\">Tokyo Tech Releases SwaFlow-AR-1B Autoregressive Twin Model<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/28\/swaflow-3b-ema-2\/\">SwaFlow-3B-EMA: Non-Autoregressive Riemannian Flow Model<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/28\/swaflow-3b-instruct-2\/\">tokyotech-llm Releases SwaFlow-3B-Instruct<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:related --><\/p>\n<p><!-- lmw:next-steps --><\/p>\n<h2>What to Read Next<\/h2>\n<ul>\n<li><strong>Explore the same model family<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/model-tokyotech-llm-swaflow-en\/\">SwaFlow family overview (5 articles)<\/a><\/li>\n<li><strong>Learn about the publisher<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/publisher-swallow-en\/\">Swallow (Institute of Science Tokyo): models, licenses and articles<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:next-steps --><\/p>\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/huggingface.co\/tokyotech-llm\/SwaFlow-500M\">tokyotech-llm\/SwaFlow-500M<\/a><\/li>\n<li><a href=\"https:\/\/huggingface.co\/tokyotech-llm\/SwaFlow-AR-500M\">tokyotech-llm\/SwaFlow-AR-500M<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>TokyoTech-LLM releases the hyperspherical flow language model SwaFlow-500M and its autoregressive counterpart SwaFlow-AR-500M for open research.<\/p>\n","protected":false},"author":1,"featured_media":26400,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[310],"tags":[6007,6041,6043,6011,6013,6045,1547,6047],"class_list":["post-26401","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-new-models","tag-swaflow-en","tag-swaflow-500m-en","tag-swaflow-ar-500m-en","tag-swallow-en","tag-tokyotech-llm-en","tag-torchtitan-en","tag-verified","tag--en"],"lang":"en","translations":{"en":26401,"ja":26399},"_links":{"self":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/26401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/comments?post=26401"}],"version-history":[{"count":2,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/26401\/revisions"}],"predecessor-version":[{"id":26686,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/26401\/revisions\/26686"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media\/26400"}],"wp:attachment":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media?parent=26401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/categories?post=26401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/tags?post=26401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}