Reproduce the S-FLM paper's results on TinyGSM math reasoning or OpenWebText language modeling.
Download pretrained S-FLM, AR, MDLM, Duo, FLM, or CANDI checkpoints to compare model behavior.
Train a spherical flow-matching language model on a custom Sudoku puzzle dataset.
Evaluate generative perplexity and GSM8K accuracy across several competing model architectures.
| jdeschena/s-flm | alsgur9865-sketch/second-brain-engine | compumaxx/gba-video-studio | |
|---|---|---|---|
| Stars | 10 | 10 | 10 |
| Language | Python | Python | Python |
| Setup difficulty | hard | moderate | hard |
| Complexity | 5/5 | 3/5 | 4/5 |
| Audience | researcher | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires multi-GPU training infrastructure and matched CUDA versions, ideally via the recommended NGC PyTorch container.
S-FLM is a research codebase for a new kind of AI language model, the type of system that generates text, solves math problems, or completes code. Most language models predict one word at a time, moving left to right. S-FLM explores a different approach: it uses a process called flow matching to gradually transform random noise into finished text. The key idea is that words and sentences can be represented as points on a mathematical sphere. The model learns to rotate random starting points toward the correct text, rather than picking words one at a time. This spherical approach gives the S in S-FLM. The authors state that earlier flow based models matched standard left to right language models at producing plausible sounding text, but fell short on tasks where getting the exact answer right matters, such as math problems. S-FLM shows improvement on the GSM8K math reasoning benchmark compared to those earlier flow based approaches. The repository contains the training and evaluation code from the accompanying research paper, along with pretrained checkpoints that can be downloaded from HuggingFace. It supports training on two main datasets: TinyGSM, a math reasoning dataset, and OpenWebText, a general language modeling dataset. A synthetic Sudoku puzzle task with adjustable difficulty is also included for controlled experiments. Training scripts cover several competing model types for comparison, including standard autoregressive models and other diffusion or flow based approaches named MDLM, Duo, FLM, and CANDI, which makes it possible to reproduce the paper's side by side comparisons. Setup requires a Python 3.12 environment with specific torch and numpy versions, and the authors recommend using an NVIDIA container image to keep CUDA versions aligned. The project is written in Python.
A research codebase for S-FLM, a language model that generates text by rotating points on a mathematical sphere instead of predicting words one at a time.
Mainly Python. The stack also includes Python, PyTorch, HuggingFace.
No license information is stated in the README.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.