{"id":26236,"date":"2026-11-28T05:10:58","date_gmt":"2026-11-27T20:10:58","guid":{"rendered":"https:\/\/localmodelwatch.tsuchitsuchi.com\/2026\/11\/28\/swaflow-3b-ema-instruct-2\/"},"modified":"2026-11-28T09:16:54","modified_gmt":"2026-11-28T00:16:54","slug":"swaflow-3b-ema-instruct-2","status":"publish","type":"post","link":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/28\/swaflow-3b-ema-instruct-2\/","title":{"rendered":"SwaFlow-3B-EMA-Instruct Released by tokyotech-llm"},"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-3B-EMA-Instruct\">tokyotech-llm\/SwaFlow-3B-EMA-Instruct<\/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>Formats<\/td>\n<td><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/format-safetensors-en\/\">safetensors<\/a><\/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 released &#8220;SwaFlow-3B-EMA-Instruct&#8221;, a non-autoregressive flow language model. This model is based on &#8220;SwaFlow-3B-EMA&#8221;, the final weight-averaged version of the 3B-scale hyperspherical (Riemannian) flow language model included in the SwaFlow suite, and has undergone 1 epoch of instruction tuning using the &#8220;Dolci-Instruct-SFT&#8221; dataset provided by the Allen Institute for AI.<\/p>\n<p>SwaFlow is a model suite built to openly research Riemannian flow language models from both training and scaling perspectives. It features multiple model sizes based on the same training recipe, complete states throughout the training process, a shared data order across all runs, and autoregressive twins trained on the same data. According to the model card, this suite is not intended to provide models for general applications, but is instead designed for research purposes to elucidate the characteristics of flow language models in their early stages.<\/p>\n<p>The weights of the base &#8220;SwaFlow-3B-EMA&#8221; were post-hoc reconstructed using an exponential moving average (EMA) with a decay rate of 2^(-100\/t) from 200 complete states saved every 20B tokens during the final pre-training run. Pre-training utilized the &#8220;Dolma 3 Mix&#8221; dataset from the Allen Institute for AI, spanning a 4T token scale.<\/p>\n<h2>Specifications<\/h2>\n<ul>\n<li>Parameters: 3.74B (width 3072, 28 layers, 24 heads, FFN 8192)<\/li>\n<li>Context length: 2,048 tokens<\/li>\n<\/ul>\n<h2>Performance<\/h2>\n<p>While the model card does not contain a structured benchmark score comparison table or list of figures, qualitative comparisons with autoregressive models and reports on behavior are documented as evaluation results and model limitations by the publishers.<\/p>\n<p>According to the explanation by the publishers, in multiple-choice tasks, all autoregressive twins trained on the same data (including the smallest 150M-scale model) outperformed the average score of the final 3B flow model. This comparison result is analyzed as clearly indicating that non-autoregressive flow language model technology is still in an early stage of development.<\/p>\n<p>In the instruction tuning process, examples containing tool calls were removed from &#8220;Dolci-Instruct-SFT&#8221;, followed by training for 1,107 steps (512 \u00d7 2,048 tokens, totaling approximately 1.16B tokens). AdamW was used as the optimization algorithm, with a learning rate of 3e-5, a warmup of 55 steps, and a linear decay applied over the remaining 90% of the steps.<\/p>\n<p>However, it is reported that even with this instruction tuning, the generated text is frequently observed to be incoherent. Additionally, adjustments to suppress the generation of harmful content (safety tuning) have not been applied, and the model requires caution assuming research and educational use.<\/p>\n<h2>Strengths and Use Cases<\/h2>\n<p>SwaFlow-3B-EMA-Instruct is not intended for general conversational applications or practical task processing, but is instead designed for researching and verifying non-autoregressive spherical (Riemannian) flow language models.<\/p>\n<p>According to the model card, the model is not intended for incorporation into practical applications, but is published for foundational research to openly compare and analyze the behavior of Riemannian flow models across different model scales and training processes. It assumes prompt processing corresponding to English (en), and adaptation to conversational inputs has been pursued through instruction tuning using the Dolci-Instruct-SFT dataset.<\/p>\n<p>Therefore, it is not suited for use as a general instruction-following model handling practical tasks such as advanced code generation or mathematical reasoning, but is suitable for verification purposes in elucidating the characteristics of state-of-the-art flow language models and architecture research.<\/p>\n<p><!-- lmw:hardware --><\/p>\n<h2>Hardware Requirements<\/h2>\n<p><strong>Estimated requirements (calculated by Local Model Watch)<\/strong> \u2014 3.7B parameters<\/p>\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>Your VRAM<\/th>\n<th>Quantization<\/th>\n<th>File size<\/th>\n<th>Est. memory needed<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>24GB (RTX 4090 \/ 3090, etc.)<\/td>\n<td>F32<\/td>\n<td>13.9GB<\/td>\n<td>16.7GB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong>Inference engine support<\/strong> (architecture name matched against each project&#8217;s own model registry in its source code, checked 2026-11-28): llama.cpp: not registered, vLLM: not registered, MLX (mlx-lm): not registered. &#8220;Not registered&#8221; means the name is absent from that registry today, not that the model cannot run.<\/p>\n<p><em>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&#8217;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 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/vram-guide-en\/\">VRAM quick reference<\/a>. What the quantization names mean: <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/glossary-quantization-en\/\">glossary<\/a>.<\/em><\/p>\n<p><!-- \/lmw:hardware --><\/p>\n<p><!-- lmw:runnability --><\/p>\n<h2>Can You Run It Locally?<\/h2>\n<p>The publisher distributes this model as safetensors.<\/p>\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<h2>How to Get It<\/h2>\n<p>SwaFlow-3B-EMA-Instruct is available on the Hugging Face repository (<code>tokyotech-llm\/SwaFlow-3B-EMA-Instruct<\/code>). It is licensed under Apache 2.0 and is not a gated model requiring prior consent, allowing direct access to obtain it. Note that the pre-training data Dolma 3 Mix and the instruction tuning data Dolci-Instruct-SFT are provided under the ODC-By 1.0 license.<\/p>\n<p>The repository contains <code>config.json<\/code> and <code>model.safetensors<\/code> in single-precision floating-point format (fp32).<\/p>\n<p>For inference and usage, the dedicated codebase <a href=\"https:\/\/github.com\/swallow-llm\/swaflow-suite\"><code>swaflow-suite<\/code><\/a> available on GitHub must be installed in advance. Additionally, the tokenizer from <code>HuggingFaceTB\/SmolLM2-135M<\/code> is used.<\/p>\n<p>Caution is required when constructing prompts, which should be written in plain text format without using special tokens. User utterances are written as <code>User:<\/code> followed by a blank line, and assistant responses are written as <code>Assistant:<\/code>. To prevent tokenization misalignment at prompt boundaries, it is recommended to tokenize the <code>User:<\/code> portion and the <code>Assistant:<\/code> portion separately and then concatenate them.<\/p>\n<p>An example of specific inference code using PyTorch is as follows:<\/p>\n<pre><code class=\"language-python\">import torch\nfrom tokenizers import Tokenizer\nfrom torchtitan.models.swaflow.hf import from_pretrained\nfrom torchtitan.models.swaflow.sampling import SamplerConfig, generate\n\ntokenizer = Tokenizer.from_pretrained(&quot;HuggingFaceTB\/SmolLM2-135M&quot;)\nmodel = from_pretrained(&quot;tokyotech-llm\/SwaFlow-3B-EMA-Instruct&quot;, device=&quot;cuda&quot;).eval()\n\n# Encode each part separately and concatenate\nids = tokenizer.encode(&quot;User: What is the capital of France?\\n\\n&quot;).ids + tokenizer.encode(&quot;Assistant:&quot;).ids\nprefix = torch.tensor([ids], device=&quot;cuda&quot;)\nwith torch.no_grad():\n    out = generate(model, num_samples=1, seq_len=prefix.shape[1] + 256,\n                   config=SamplerConfig(steps=64), prefix_tokens=prefix,\n                   prefix_lengths=torch.tensor([prefix.shape[1]], device=&quot;cuda&quot;))\ntokens = out[0, prefix.shape[1]:].tolist()\nif 0 in tokens:  # Determine termination with ID 0 (&lt;|endoftext|&gt;)\n    tokens = tokens[: tokens.index(0)]\nprint(tokenizer.decode(tokens))\n<\/code><\/pre>\n<p>During generation, text is generated by integrating the flow on the sphere from noise. Hyperparameters such as the number of evaluation steps (<code>steps<\/code>) and temperature can be controlled via <code>SamplerConfig<\/code>.<\/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-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<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\/tokyotech-llm-swaflow-500m-and-swaflow-ar-500m\/\">TokyoTech-LLM Releases SwaFlow-500M and SwaFlow-AR-500M<\/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>Find models by VRAM<\/strong> (This model runs from the 24GB tier) \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/vram-guide-24gb-en\/\">Other models that run on a 24GB GPU<\/a><\/li>\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>Formats this model is available in<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/format-safetensors-en\/\">Safetensors format guide and models<\/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-3B-EMA-Instruct\">https:\/\/huggingface.co\/tokyotech-llm\/SwaFlow-3B-EMA-Instruct<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/swallow-llm\/swaflow-suite\">https:\/\/github.com\/swallow-llm\/swaflow-suite<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>tokyotech-llm has released SwaFlow-3B-EMA-Instruct, an instruction-tuned non-autoregressive spherical flow language model for research.<\/p>\n","protected":false},"author":1,"featured_media":26235,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[310],"tags":[4625,6007,6009,6011,6013,1547],"class_list":["post-26236","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-new-models","tag-flow-matching-en","tag-swaflow-en","tag-swaflow-3b-ema-instruct-en","tag-swallow-en","tag-tokyotech-llm-en","tag-verified"],"lang":"en","translations":{"en":26236,"ja":26234},"_links":{"self":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/26236","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=26236"}],"version-history":[{"count":4,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/26236\/revisions"}],"predecessor-version":[{"id":26682,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/26236\/revisions\/26682"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media\/26235"}],"wp:attachment":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media?parent=26236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/categories?post=26236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/tags?post=26236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}