Recursive Flint: 40B MoE coding-agent model released under Apache 2.0

Recursive has released Flint, a language model with 39.8 billion parameters, of which only about 2.5 billion are active per token. It's built for coding agents and available on Hugging Face under the Apache 2.0 license. The maker claims 74.2% on SWE-bench Verified.

Model releases Try it yourself Oct 21, 2026 5 min read Source: Hugging Face Trending
Illustrative image, AI-generated

What this is about

The company Recursive has released the model Flint (RecursiveSI/flint) on Hugging Face. It's a language model built specifically for coding agents: AI programs that independently explore code repositories, fix bugs, implement features and write tests. The weights are available for download under the Apache 2.0 license, which also allows commercial use. The model takes text as input and output, can "think" (reasoning) and call tools over multiple steps. The maker gives its knowledge cutoff as June 2026.

At the time of writing, the repository had about 420 downloads and 500 likes. The benchmark figures come from the maker and have not been independently verified.

Architecture: many experts, few active

Flint is a Mixture-of-Experts (MoE) model. The network consists of many specialized sub-networks ("experts"), and only a small share of them is used for each token. Flint has 39.8 billion parameters in total (roughly, the tunable values learned during training), but only about 2.5 billion are active per token. The maker counts the output head but not the input embeddings; the "body" alone comes to about 2.2 billion. The short name is "40B-A2.5B".

The key specs:

Property Value
Design Decoder-only MoE transformer
Layers 49 (2 dense, 47 MoE)
Experts per MoE layer 256 routed, 6 per token, plus 1 always-active shared expert
Attention 35 sliding-window layers, 14 with full attention
Window size 513 tokens
Attention heads 32 query, 4 key/value heads
Context 262,144 tokens (prompt + output)
Vocabulary 150,144 tokens

Most layers only look at a limited window of the last 512 tokens (sliding window). That saves memory, especially with long context. Only 14 layers look at the entire context. The sliding-window layers use RoPE (a method that tells the model where each word sits in the sequence), while the full-attention layers use no positional encoding at all. The model also applies normalization per attention head and learned "attention sinks".

Benchmarks

According to the Model Card, Flint scores as follows:

Benchmark Result
Terminal-Bench 2.1 54.9%
SWE-bench Pro v2 89.7%
SWE-bench Verified 74.2%

The evaluation used temperature 1.0, top-p 0.95 and top-k 20. Terminal-Bench ran with the Terminus 2 agent harness, SWE-bench with mini-swe-agent. The figure given is average pass@1 (the share of tasks solved on the first attempt) over at least five runs. On Terminal-Bench, Recursive counts solutions found via web search as failures. The comparison figures for other models mostly come from their developers and may not have been cleaned the same way. The chart compares the BF16 and NVFP4 checkpoints with local models of a similar hardware class.

Running it and settings

The repository contains the BF16 checkpoint, config, tokenizer, chat template and an SGLang serving kit (SGLang is software for running language models fast). According to the guide, Flint runs on one B300 or H200 GPU per replica. The download is about 80 GB. The model is launched via Docker and offers an OpenAI-compatible API, including for tool calls. Model code for the Transformers library is still missing. Quantized variants for NVIDIA and Apple Silicon are being prepared separately; a "Local engine" is linked on GitHub.

Recommended settings: temperature 1.0, top-p 0.95, top-k 20. For hard tasks, the output budget should be at least 32,768 tokens including reasoning. The reasoning_content that the model returns should be kept in the conversation history.

Training and limits

According to the maker, Flint was trained from scratch: pretraining, mid-training, supervised fine-tuning and reinforcement learning, using text, code, instruction following and agentic tasks. The card gives no details on data or compute.

The card itself points out limits: the model can produce false or harmful content, faulty code and inappropriate tool calls. Applications should set their own permission and execution boundaries. Long reasoning increases latency and can eat up the output budget. The 262k context length is a capacity limit, not a guarantee of consistent quality. Results depend on precision and runtime environment.

What you need to try it

The BF16 original is meant for data-center hardware: an NVIDIA B300 or H200, about 80 GB of disk space for the weights, Docker and an NVIDIA container environment. The original won't run on ordinary home GPUs. For consumer hardware, the announced quantized variants (NVIDIA, Apple Silicon) are the way to go, and the card says they'll come out separately. There's no GGUF format yet. You can still test the model on rented servers (cloud GPUs).

Our take

What's interesting about Flint is the ratio of total to active parameters. With only about 2.5B active parameters, inference should be fast and cheap, while the full model spreads its knowledge across 40B parameters. The Apache 2.0 license is very permissive. The benchmark numbers, especially 89.7% on SWE-bench Pro v2, are vendor claims from the maker's own agent setup. Without independent re-testing, they're hard to compare with other models, not least because the card itself notes inconsistent evaluations. Still open: the training data, when the quantized versions will arrive, and how well the model performs on smaller hardware. The license covers only the weights; terms for the hosted API are separate.

Sources

#flint#recursive#moe#coding-agent#open-weights#apache-2.0
Read the original source

Try it yourself: Flint

Explained step by step, no prior knowledge needed – on your own computer or free in your browser.

What can I do with it?

Flint is a language model built for coding agents. These are AI programs that independently search code projects, fix bugs, add new features and write tests. Flint can "think" (reasoning) and call tools over multiple steps, for example to read files or run commands. It takes text in and gives text out. The model is a Mixture-of-Experts (MoE) model: it has many specialized sub-networks, the "experts", but only a small share is active per token. Of 39.8 billion parameters, about 2.5 billion are active. That should make it fast and cheap to run. The Apache 2.0 license also allows commercial use. The benchmark figures (for example 74.2% on SWE-bench Verified) come from the maker and haven't been independently verified. So it's not yet clear how Flint really stacks up against well-known alternatives. The card lists these limits: faulty code, inappropriate tool calls and very long thinking phases.

Who is it worth it for?

Flint is worth a look for developers and teams with access to server GPUs who want to run an open coding-agent model themselves. It's also a good fit if you want to test it cheaply in the cloud. It's not for beginners with a regular home PC yet, at least until the quantized variants arrive. And if you just want a chatbot for everyday questions, you won't gain anything here, because Flint is tailored to code and agent tasks.

Ideas: What you can do with it

Debugging your own project

You give Flint the stack trace and the affected file. The model looks for the cause and suggests a patch. You review the suggestion and only apply it after a test run.

Adding tests after the fact

For a hobby project without tests, have Flint write unit tests for individual functions. Explicitly ask for edge cases. Then run the tests and see whether the code holds up.

Getting to know a new project

You've inherited someone else's repository or want to contribute to open source. Flint explores the structure and explains where everything is. That helps you find your way in faster.

Adding a small feature at work

At work, an internal tool needs a CSV export. Flint implements the feature, including tests, as a draft. A teammate checks it in review before it goes in.

Your own in-house coding agent

The model offers an OpenAI-compatible API. You can point many programs that speak this interface at your own server. That keeps your code on your own network. The Apache 2.0 license allows this in a company, too.

Testing and comparing the model

With a rented cloud GPU, you can have Flint tackle your real tasks and compare it with the model you use today. That way you check for yourself whether the maker's numbers hold for you.

Size39.8 B parameters (2.5 billion active)
Download25 GB (about 33 min at 100 Mbit/s)
Licenseapache-2.0
TypeLanguage model (text chat)
Hugging FaceRecursiveSI/flint

What your computer needs

Graphics card (NVIDIA), fully in VRAM at least 16 GB VRAM, recommended 29 GBe.g. RTX 5090 – fastest; with less VRAM, see the next line
Graphics card + system memory (MoE offloading) from approx. 6 GB VRAM + 32 GB RAMdie Experten liegen im Arbeitsspeicher, nur der Kern auf der Grafikkarte (llama.cpp/LM Studio). Langsamer als komplett im VRAM, aber auf normalen PCs machbar
Mac (Apple Silicon M1–M5) from 48 GB unified memoryThe GPU and CPU share the memory – the model can use about 70% of it
CPU only (no graphics card) Runs smoothly without a graphics cardan estimated 15 words per second on a current desktop PC (MoE: only 2.5 billion parameters active per word). This requires at least 32 GB of RAM.
Storage approx. 27 GB freeModel download plus programs
Google Colab Colab Pro onlywith MoE offloading on a T4/L4 plus a High-RAM runtime (about 51 GB of RAM); free Colab doesn't have enough RAM

Which variant is right for me?

Many models come in several sizes or "quantizations." These are compressed versions: smaller and faster, but slightly less accurate. Rule of thumb: pick the largest variant whose memory requirement fits in your VRAM (video memory). The scripts below choose this for you automatically.

VariantDownloadNeeds approx.Compatible graphics cards
UD-Q2_K_XL 14 GB16 GBe.g. RTX 4060 Ti 16 GB, RTX 4080, RTX 5080, RX 7800 XT
UD-Q3_K_XL 18 GB22 GBe.g. RTX 3090, RTX 4090, Tesla P40
UD-Q4_K_XL Default 25 GB29 GBe.g. RTX 5090
UD-Q5_K_XL 30 GB34 GBe.g. 2× RTX 3090/4090 or RTX A6000
UD-Q6_K_XL 36 GB41 GBe.g. 2× RTX 3090/4090 or RTX A6000
Q8_0 42 GB48 GBe.g. 2× RTX 3090/4090 or RTX A6000
BF16 80 GB89 GBe.g. multiple professional GPUs (2× A6000, H100) or DGX Spark

Right now, there's only the BF16 checkpoint (about 80 GB). BF16 is a full-precision number format. According to the card, it runs on a single B300 or H200 GPU. For home GPUs and Macs, quantized variants (weights with fewer bits, and therefore smaller) have been announced for NVIDIA and Apple Silicon. The maker says they'll be released separately but gives no date. There's no GGUF format yet. If you want to test now, rent a suitable cloud GPU. Keep in mind that results can vary with precision and runtime environment, so quantized versions may behave differently from the original.

  • According to the card, the BF16 original runs on one B300 or H200 GPU per replica (one running copy of the model).
  • The weights download is about 80 GB. Plan for enough free disk space.
  • The serving kit uses SGLang in Docker, so you need Docker and an NVIDIA container environment with GPU access. The SGLang README in the repository describes multi-GPU setups.
  • The context of up to 262,144 tokens covers prompt and output together. Long context costs extra memory. Because most layers only look at a small window (sliding window), the architecture should keep that overhead lower. The card gives no figures for this.
  • Long thinking phases increase wait times. A large output budget therefore makes hard answers take longer.
  • Quantized variants for NVIDIA and Apple Silicon have been announced but aren't part of this repo. A "Local engine" is linked on GitHub.
How do I find out what my computer has?
  • Windows: Press Ctrl + Shift + Esc → Task Manager → Performance tab → click GPU on the left. At the bottom you'll see Dedicated GPU memory (that's your VRAM). You'll find system memory under Memory.
  • Mac: Apple menu at the top left → About This Mac. You'll see your chip (e.g. M2) and memory (e.g. 16 GB). On Apple chips, graphics and processor share this memory.
  • Linux: Type nvidia-smi in the terminal (shows your graphics card and its memory) and free -h for system memory.

Guide

Google Colab (in your browser, no installation)

Google Colab is a free service from Google. It gives you a computer with a graphics card in your browser for a few hours. All you need is a Google account. For this model: Colab Pro only – needs the L4 GPU (22.5 GB); the free T4 is too small.

  1. Download the notebook. Click the button and save the file.

    Download colab.ipynb

  2. Open Colab. Go to colab.research.google.com and sign in with your Google account.
  3. Upload the notebook. In the window that appears, click Upload on the left (or choose File → Upload notebook at the top) and select the file colab.ipynb.
  4. Turn on the GPU. In the top menu, go to Runtime → Change runtime type → under Hardware accelerator, select T4 GPU (with Colab Pro: L4 or A100) → Save.
  5. Start everything. Runtime → Run all (keyboard shortcut Ctrl + F9). If you see the warning “This notebook was not authored by Google,” click Run anyway.
  6. Wait. The cells run one after another. A green checkmark appears to the left of each cell when it's done. Installation and download take about 12 minutes here.
  7. Try it out. The result appears below the last cell. To test something else, change the text in the cell and run it again with Shift + Enter. The last cell starts a proper chat with an input field.
  8. Clean up. When you're done: Runtime → Disconnect and delete runtime. This saves your free quota.

Good to know: The free GPU is limited (usually a few hours per day). After about 90 minutes of inactivity, Colab disconnects, and you'll have to start everything over.

Windows 10 / 11

The easiest way is Ollama, a free program that launches AI models with a single command.

  1. Update your graphics driver (NVIDIA cards only): Install the NVIDIA app or the latest driver. For AMD cards, use the latest Adrenalin driver.
  2. Install Ollama. Download the file OllamaSetup.exe from ollama.com/download/windows, double-click it, and choose Install. Afterward, a small llama icon appears in the taskbar at the bottom right.
  3. Open a terminal window. Press the Windows key, type PowerShell and press Enter. A blue or black window opens.
  4. Start the model. Copy this command ("Copy" button), paste it into the window with a right-click, and press Enter:
    ollama run hf.co/unsloth/flint-GGUF:UD-Q4_K_XL
    The first time, Ollama downloads the model (25 GB (about 33 min at 100 Mbit/s)). After that, it's instant.
  5. Start typing. Once >>> Send a message appears, type your question and press Enter. Type /bye to end the chat.

Not enough memory? Pick a smaller variant from the table above, e.g. ollama run hf.co/unsloth/flint-GGUF:UD-Q2_K_XL.

Prefer automatic? A script that picks the right variant for you
  1. Download both files into the same folder: try_windows.ps1 demo.py
  2. Open the folder in File Explorer, right-click an empty spot and choose Open in Terminal.
  3. Paste this command and press Enter:
    powershell -ExecutionPolicy Bypass -File try_windows.ps1

If needed, the script installs Ollama via winget, measures your VRAM (video memory) and downloads the matching variant.

macOS

Macs with an Apple chip (M1 to M5) are ideal. Older Intel Macs are very slow.

  1. Install Ollama. Download it from ollama.com/download/mac, open the file, and drag Ollama into your Applications folder. Launch Ollama once – a llama appears in the menu bar at the top.
  2. Open Terminal. Press Cmd + Space, type Terminal, and press Enter.
  3. Start the model. Paste the command (Cmd + V) and press Enter:
    ollama run hf.co/unsloth/flint-GGUF:UD-Q4_K_XL
    The first time, the model is downloaded (25 GB (about 33 min at 100 Mbit/s)).
  4. Start typing. Type your question and press Enter. Quit with /bye.
Pick the right variant automatically

try_mac.sh

cd ~/Downloads
bash try_mac.sh

Linux

  1. Check your GPU. nvidia-smi should show your card. If it doesn't, install the driver on Ubuntu and restart:
    sudo ubuntu-drivers install
  2. Install Ollama:
    curl -fsSL https://ollama.com/install.sh | sh
  3. Start the model:
    ollama run hf.co/unsloth/flint-GGUF:UD-Q4_K_XL
    Exit with /bye. Use ollama ps to check whether the model is running on the GPU.
  4. Or let it pick the right variant automatically:

    try_linux.sh

    bash try_linux.sh
    # mit Python/transformers statt Ollama:
    MODE=hf bash try_linux.sh

Try it

Write a Python function that merges overlapping intervals, and add unit tests for it.
Explain in simple terms what this code does, and comment it line by line: [paste code]
Here is a stack trace and the affected file: find the cause of the error and suggest a patch.
Write tests for this function that also cover edge cases (empty input, duplicate values, very large numbers): [paste function]
Explain the structure of this repository to me and implement a new CSV export feature. Use your tools to read files, and add suitable tests.

Tips for better results

  • Give the model context: stack trace, affected file and what you expect. The more specific you are, the better it can work.
  • Stick to the recommended values: temperature 1.0, top-p 0.95, top-k 20. These are the settings from the maker's benchmarks.
  • For hard tasks, set max_tokens to at least 32768. Reasoning counts toward the budget.
  • Break big tasks into steps, such as understand first, then change, then test. The 262k context length is only a capacity limit and doesn't guarantee consistent quality.
  • If you connect tools, let the model write tests and run them itself. Limit its permissions, for example to a project folder.

If something goes wrong

There's no model code for the Transformers library yet. Use the included SGLang kit.

On an H200, you need to start serve_h200.sh instead of serve_b300.sh. Otherwise the startup script won't match the GPU.

Startup takes a while. The command with health_generate waits until the server is ready. You can follow progress with docker logs -f flint.

Keep the recommended sampling values (temperature 1.0, top-p 0.95, top-k 20). The server sets them itself if you don't specify any.

For hard tasks, allow at least 32,768 output tokens. Otherwise reasoning can use up the budget before the answer is finished.

Keep reasoning_content in the conversation history and use the included chat template. Otherwise quality suffers.

Always check generated code yourself and set clear limits on tool permissions. The model can write faulty code or choose inappropriate tool calls.

“out of memory,” a crash, or your computer freezes

The model is too big for your VRAM (video memory). Pick a smaller variant from the table above and close other programs, especially games and browsers with lots of tabs.

It runs, but extremely slowly

Your CPU is probably doing the work instead of your graphics card. In Ollama, the PROCESSOR column of ollama ps shows how much runs on the GPU. If it says "100% CPU", update your graphics driver or pick a smaller variant that fits entirely into VRAM (video memory).

“ollama” or “python” is not found

Close the terminal window and open it again so it recognizes the newly installed program. For Python on Windows: reinstall it and check Add python.exe to PATH.

Windows: "Running scripts is disabled on this system"

Run the script with exactly the command above: powershell -ExecutionPolicy Bypass -File try_windows.ps1. This allows execution for this one time only.

Error message when loading the model (version, "trust_remote_code", unknown architecture)

Brand-new models often need the latest software version. With Ollama: update Ollama. With Python: pip install -U transformers in the activated environment. The Model Card usually lists the exact version.

Tokenstrom generates the scripts and notebook automatically. Please take a quick look before running them – they're plain, readable text. Mind the model's license: apache-2.0.

Ask the AI assistant

Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.

Connecting …

The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.

Comments

What do you think? Already tried it? Write it here, no sign-up needed.

  1. Loading comments …

Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.