r/madeinrust • • 9h ago

Majority AI Coded Liquid glass in rust

Thumbnail
gallery
55 Upvotes

I was playing around in claude code and it gave me a pretty good and quite nice looking liquid glass UI framework, which looks close to apple's liquid glass, not only with the refraction and chromatic aberrations but with animations and everything else, although it's not done and needs more work.

Feel free to clone the repo or download the code and use it as you like !

Let me know what you think and if you would like to see any particular features from Apple's liquid glass, shoot me a dm, i would be happy to add them.

Crate Github repo


r/madeinrust • • 3h ago

100% Human Coded I built FyroDB: An ultra-fast, Redis-compatible in-memory store & Postgres cache proxy in Rust

5 Upvotes

I've been building FyroDB, a Redis-compatible in-memory database written in Rust that also acts as a transparent PostgreSQL caching proxy.

Benchmark numbers from our test suite:

  • Pipelined GET: ~97M ops/sec
  • Pipelined SET: ~77M ops/sec
  • Pub/Sub delivery: ~5.6B msgs/sec
  • Postgres cache hits: ~5M ops/sec

It works out of the box with any Redis client (RESP) and speaks the Postgres wire protocol directly

Would love any feedback or thoughts on the design.


r/madeinrust • • 2h ago

AI Assisted I've wanted to write an MCP server in Rust for a while. Finally found a reason to build one.

2 Upvotes

For a while, I've wanted to write an MCP server in Rust, mostly to understand how the protocol works beyond just reading the specification. I finally ran into a problem that felt like a good excuse to do it.

I wrote a short devlog about the whole thing. It's more about understanding the moving parts, the reasoning behind the architecture, and how I approached building an MCP server than a deep dive into MCP itself.

https://adii.fyi/blog/i-built-a-bridge-to-use-neon-in-antigravity/


r/madeinrust • • 16h ago

AI Assisted Been working on a native music player in Rust and GPUI, called Wiremann.

Thumbnail
gallery
22 Upvotes

https://github.com/wiremann/wiremann

Wiremann is a native, lightweight and fast GPU-accelerated music player, built purely in Rust.It is cross-platform and uses the GPUI library (actually a fork called WGPUI, which uses WGPU across all platforms) for the UI. The main goal is to keep it as lightweight as possible, while not compromising on features or looks.

I recently released v0.4.1 Throttle Up, which you can download binaries for here: v0.4.1

Wiremann is already pretty usable, and has features like word-synced lyrics & more, but is still pretty WIP, so expect bugs and crashes.

I have many features planned, and will work on it as time allows.

Also i code the largest majority of this stuff by hand. I can guarantee that theres no slop in this repo. However, with that being said, i do use generative AI, but mostly to help in troubleshooting and fixing bugs, rather than entirely slopping together new stuff. I also use it to try and find the best way to implement something. Any contributions will also be checked to meet these standards.

Discord server: here


r/madeinrust • • 50m ago

AI Assisted Strait – a Rust desktop app that punches a P2P tunnel to a trusted home connection, with no relay

Thumbnail
gallery
1 Upvotes

I wrote Strait in Rust to share a trusted person's home internet connection from somewhere else, without a VPS, a relay, or port forwarding.

The host clicks Start sharing and gets an invite code. The client pastes it. Both sides punch through their NATs and then talk directly. If they can't, the app says so; it will not send traffic through a third party. Rendezvous is over public services the host opts into (Nostr, the BitTorrent DHT, ntfy, MQTT), which only see a sealed record.

The Rust parts I care about: hole punching on tokio; a Noise NKpsk0 handshake with snow and RustCrypto (ChaCha20-Poly1305, X25519, Ed25519), modeled in ProVerif; and an eframe/egui desktop app with a userspace exit through netstack-smoltcp. Builds for Linux, macOS and Windows, Apache-2.0, v0.9.0.

Repo: https://github.com/daniad6/strait

I used AI as a coding assistant while building it. It's early, and I'd like feedback on the networking and on anything confusing in the app.


r/madeinrust • • 11h ago

AI Assisted A new way to record and stream your gameplay!

Post image
3 Upvotes

https://github.com/NotADeveloper4665/Simulcast-Studio

OBS Studio forked and rewritten in rust to provide a modern solution for recording and streaming both horizontal and vertical output with two independent editable scenes and individual orientation recording and streaming you will be able to use one familiar interface to record content in multiple aspect ratios to allow you to reach wider audiences! Currently appimages and rpms are built and working and will be up on the github soon once i build the mac release i will spin up the github sight and have all releases easily published for testing.


r/madeinrust • • 12h ago

Majority AI Coded OpenMail – open-source MCP server in Rust that lets ChatGPT manage 60+ mailboxes

3 Upvotes

I got tired of opening 50+ mailboxes every morning, so I built OpenMail: an open-source MCP server in Rust that lets ChatGPT manage all of them from one place.

It speaks plain IMAP/SMTP, so it works with Gmail, Outlook, Fastmail, iCloud, Yahoo, and any generic server. Up to 500 accounts. It reads, searches, organizes, drafts, sends (with human approval), and writes daily briefs.

Self-hosted, your mail stays on your machine, nothing is sent without your OK. AI agents wrote most of it while I supervised and reviewed their work, and I tested it live with 62 mailboxes.

Video and repo links are in the comments.

It is pre-release 0.1.0, tested against GreenMail, not yet Gmail/Microsoft 365/Dovecot, no security audit yet. If you try it, a star on GitHub helps a lot.


r/madeinrust • • 12h ago

Majority AI Coded Orbit: a native Rust desktop app for running coding agents (T3 Code alternative, no Electron). Built entirely by AI

2 Upvotes

Hey r/madeinrust,

I want to share Orbit, a desktop app for running coding agents (Claude Code, Codex, and anything that speaks ACP) side by side. It's written in Rust on GPUI, with no Electron, no webview and no Node.

Repo (MIT): https://github.com/countradooku/orbit

Full disclosure up front: this was built entirely by AI. I directed it, made the product and stack decisions and tested it, but the code was written by Claude Code. I'm telling you up front because I think you should know.

Why I made it

  • The recent controversy around T3 Code and user data. It made me want a tool like this that I can actually read and trust, that keeps everything local, and that I control.
  • I wanted something that isn't Electron. An app that sits open all day managing agents shouldn't need a gigabyte of RAM and burn CPU while it does nothing.

Numbers

Windows 11, release builds, median of 5 runs, against T3 Code on the same machine:

OrbitT3 Code (Electron)
Window up238 ms461 ms
Memory (whole process tree)~93 MB~1,035 MB
Processes2 (app + background host)7
Idle CPU0.00 %7.66 %
On disk~43 MB~235 MB

The methodology and the script to reproduce this are in docs/BENCHMARKS.md.

What it does

  • Parallel agent threads, each optionally in its own git worktree. Approve or deny tool calls, steer mid-turn, interrupt.
  • Review and undo: inline diffs for every edit an agent makes, a review sheet per turn or per thread, and checkpoints with undo. This works even in folders that aren't git repos (it keeps a shadow repo).
  • A background host: agents keep running after you close the window. The built-in terminal has scrollback and hibernation.
  • Remote hosts over your own ssh (your keys, agent, ProxyJump), plus WSL. There's a host switcher, so several machines can run in one window.
  • Teams of agents, a usage and quota board with failover, automations, a CLI (orbit) that doubles as an MCP server, and a built-in browser.
  • Plugins:

    • Data plugins: themes, prompt templates and recipes.
    • Agent manifests: add any agent CLI with a TOML file.
    • Native panels.
    • WebAssembly hooks in a wasmi sandbox (e.g. a guard that blocks rm -rf /), behind capability consent and an audit log.
  • Coming next: voice dictation with on-device Whisper on candle (pure Rust).

A lot of the inspiration comes from T3 Code (the original idea and much of the UX), Orca, PandaCode, and the Cursor and Codex desktop apps. Huge respect to the people behind those.

Stack, for the Rust folks

  • UI: GPUI + GPUI Kit, on gpui-fast (Longbridge's GPUI fork, the one that actually idles at 0 % CPU).
  • Channels and websockets: crossfire channels instead of tokio's, and sockudo-ws for websockets.
  • Wire format: wincode, with a small framing layer that batches streaming tokens.
  • Plugins: wasmi, chosen over wasmtime: about 1.2 MB against 11.6 MB, and a 20 s build against 193 s.
  • Voice (in progress): candle, with a custom KV-cached Whisper decoder.

Honest status

  • It's been developed and tested mostly on Windows. macOS and Linux are supported, but they've had much less hands-on testing. The macOS release build passes on CI; two engine tests currently fail on Linux CI, and I'm fixing them now. Expect rough edges.
  • It's early. Bug reports are very welcome.

What's next

I'm planning something like T3 Connect: reaching your agents and machines from anywhere, done in a way that keeps your data yours.

If people want this, I'm happy to maintain it long term. Issues, ideas and PRs are welcome, and if you'd use it, a star or a comment tells me it's worth continuing.

Thanks for reading!


r/madeinrust • • 16h ago

Majority AI Coded [Dev deep-dive] hyprdesk: a desktop layer for Hyprland in Rust: one iced daemon, four dedicated binaries, Lua config, and a theme engine that never runs code

3 Upvotes

r/madeinrust • • 11h ago

AI Assisted Scriptable smart card reader app - Cardpeek-ng

1 Upvotes

I've made an up-to-date reimplementation of Cardpeek in Rust: Cardpeek-ng. It features:

  • A new, more robust LUA scripting API (not backwards-compatible)
  • Good (hopefully!) documentation of the scripting API
  • Raw trace import, export, and analysis
  • Up-to-date ATR DB

Have a go and tell me what you like or don't like! There are release builds for Linux, Mac, and Windows, but I've only tested the Linux builds. If you're on either of the other two platforms, I'd love to hear from you about what's broken!


r/madeinrust • • 11h ago

AI Assisted lrpipe: An all-in-one germline pipeline for long reads, written in Rust

Post image
1 Upvotes

Hi, been working on this one for months, supports HIFI and ONT genomes. Aligned or unaligned, one command calls phased SNVs and indels, structural variants, copy-number variants and loss of heterozygosity, tandem repeats, read depth and CpG methylation.

A whole human genome in 10 minutes, more accurate than Clair3, while being efficient and fast enough to run on a laptop.

To build it, I made an aligner (Bonefish: up to 8x faster & more accurate than minimap2)
A new bioinformatic I/O library (Pasta: much faster and more efficient than samtools/BCFtools)
And a new genomic codec (zflate: Faster and more efficient than libdeflate)

All the tools above are also 100% rust!

https://github.com/DylanCosto/lrpipe


r/madeinrust • • 16h ago

Majority AI Coded KUTE 0.8: Rust tokenization engine for text and event logs. Column container beats xz on two real logs; five experiments that failed are in the docs

Thumbnail
reddit.com
0 Upvotes

r/madeinrust • • 23h ago

AI Assisted I built a skill to help AI assistants build better Ratatui applications

Post image
3 Upvotes

r/madeinrust • • 17h ago

Majority AI Coded GitHub - Vibernt/cupel: Know which tests protect you. CLI and MCP for people and coding agents.

Thumbnail
github.com
1 Upvotes

r/madeinrust • • 1d ago

Majority AI Coded nattes: a typesafe, in-process message queue inspired by NATS, where a wrong subject is a compile error

Post image
4 Upvotes

I've been working on nattes, an in-process message queue with NATS's subject model (user.*.delete, git.>, queue groups, request/reply), except that subjects are not strings. You declare the topics as a tree of types, and walk down it:

topics! {
    topics {
        git { push: PushMsg },
        user { id(u32) { delete: DeleteMsg } },
    }
}

let bus = Channel::<topics::Topic>::new();

let mut deletes = bus.user().id(Wild).delete().subscribe().await; // user.id.*.delete
bus.user().id(42).delete().publish(DeleteMsg).await;

let msg = deletes.next().await.unwrap();
assert_eq!(msg.params(), (42,));

With string subjects, a typo is a subscription that silently never fires. Here it doesn't build:

bus.user().id(Wild).delet()
    error: no method named `delet` found for struct `Channel<T, P>`

bus.git().push().publish(DeleteMsg)
    error: mismatched types: expected `PushMsg`, found `DeleteMsg`

bus.user().id(Wild).delete().publish(DeleteMsg)
    error: no method named `publish` found for struct `Channel<DeleteLeaf, (u32,)>`

What it does:

  • Wildcard and fixed parameters, subscribing to everything below a topic, queue groups, request/reply and scatter-gather.
  • A sub-channel is a root: a component that takes a Channel<topics::git::Topic> works the same standalone or mounted inside a bigger tree.
  • No async runtime in its dependencies. Subscriptions are futures::Streams, and timeouts come from whatever runtime you use.
  • Per-subscription buffers with a choice of overflow policy (drop newest, drop oldest, or make the publisher wait).
  • Optional bridges: the same tree in two processes over any byte transport, with your own codec. Each side only sends what the other subscribes to.
  • Steps are plain methods, so rust-analyzer completes them and go-to-definition lands in the topics! tree.

What it is not: a broker. Delivery is in memory and at most once, nothing is persisted or redelivered, and the tree is fixed at compile time. If you need durability or subjects built at run time, use NATS itself.

It's a preview (0.4), so the API still changes between minor versions. I'd like feedback on the topics! syntax and on the API in general.


r/madeinrust • • 1d ago

Majority AI Coded thir v0.7.1 – A custom OS built on Linux 6.12 with an all-Rust userspace

Post image
37 Upvotes

I just released v0.7.1 of thir ([https://github.com/Adhishtanaka/thir](https://github.com/Adhishtanaka/thir)), an experimental open-source OS I've been building from scratch on top of the Linux 6.12 kernel with a custom all-Rust userspace.

Earlier versions were under 10MB and only handled basic shell commands, so for this release I wanted to see how far I could push it toward being an actually usable desktop environment—even if compiling WebKit alone took ~4 hours and bumped the system size up to ~145MB.

Right now, this is purely a solo fun experiment rather than something meant for production, and since I'm the only one who has tested it so far, expect a few rough edges and bugs. It boots via UEFI and runs cleanly in VirtualBox if you want to spin it up.

If you give it a try and run into any issues, feel free to open a GitHub issue—and if you think it's neat, a Star on the repo would really make my day!

GitHub: https://github.com/Adhishtanaka/thir


r/madeinrust • • 1d ago

Majority AI Coded Whiteboard Tracker – A fast, open-source task whiteboard written in Rust (egui) with automatic 2×2 tiling and mind-map branches

Post image
12 Upvotes

Hi, I just released v0.1.0 of Whiteboard Tracker, an open-source desktop whiteboard for writing down and tracking tasks smoothly.

Built in the Swiss minimalist style (high-contrast calm white UI) using Rust and egui, the binary is under 5 MB and starts instantly.

### Key Features

Daily Profiles: Every day is its own profile. Create multiple profiles and carry unfinished tasks over to a new one.

Quick Entry & Automatic 2×2 Tiling: Type your day's tasks in one go and they are automatically laid out on the screen (up to 4 tasks per page, opening new pages as tasks grow).

Unlimited Mind-Map Branches: Break any task into smaller sub-tasks and infinite branches rendered as a clean mind map (with collapsible +N nodes).

Focus Mode: Click any task to expand it along with its branches.

Notes & Three Statuses: Attach notes to any task/branch and track progress across Active, Completed, and Cancelled states with automatic completion bars.

Index & Undo: Reorder tasks across pages, edit/delete from a global index, and undo actions (Ctrl+Z).

Local-First & Bilingual: Auto-saves locally with JSON export/import, plus full Arabic support with a geometrically mirrored RTL interface.

### Installation

Ready-made packages are available on the Releases page for Fedora (.rpm), Ubuntu/Debian (.deb), and Windows (.exe / .zip).

### Roadmap (v0.2.0)

Swiss Dark Mode

Cloud Backup (optional)

Direct integration with your own AI client

Screenshots: [https://imgur.com/a/dBPIX9q]

Source Code: https://github.com/octapus871/whiteboard-tracker

Download (v0.1.0): https://github.com/octapus871/whiteboard-tracker/releases/tag/v0.1.0

Feedback, bug reports, and feature ideas are very welcome!


r/madeinrust • • 1d ago

AI Assisted I built repo-pack, an open-source single-binary Rust CLI and stdio MCP server designed to pack local or remote repositories into clean, token-efficient context for LLMs and coding agents.

Post image
4 Upvotes

I built repo-pack, an open-source single-binary Rust CLI and stdio MCP server designed to pack local or remote repositories into clean, token-efficient context for LLMs and coding agents.

GitHub:https://github.com/Juanmidev1/repo-pack

Key features:

• Tree-sitter AST skeleton mode (--skeleton and --focus): Replaces function bodies with placeholders across Rust, TypeScript/TSX, JavaScript/JSX, and Python while preserving signatures, types, and imports. On its own codebase, this cuts token usage by ~57%.

• Native MCP server mode (repo-pack --mcp): Exposes repo_map, read_files, and pack_impact tools over stdio so agents like Claude Code can explore large repositories incrementally without loading everything at once.

• Secret redaction on by default: Automatically scans and redacts API keys, tokens, private keys, and credential assignments into [REDACTED:] before generating output (opt out with --allow-secrets).

• Git-aware context (--diff and --impact): Packs only modified, uncommitted, or untracked files against a Git ref and automatically includes files that import the changed modules.

• Built-in presets and remote repos: Includes --preset review | arch | bug, shows the heaviest files with --top, and accepts remote Git URLs via shallow cloning into a temporary directory.

Pre-built binaries for Linux, macOS, and Windows (v0.2.0) are up on GitHub Releases, or you can build a minimal version without tree-sitter grammars (~3 MB) using --no-default-features. Feedback and ideas for additional language grammars are welcome.


r/madeinrust • • 1d ago

AI Assisted We built a free, open-source hub for indie teams: chat, voice, task boards and build distribution in one app

5 Upvotes

I recently moved my project P2 from Electron to pure Rust, and it's now open source (MIT). Sharing a few notes in case they help others considering GPUI outside of Zed:

- GPUI on Windows and macOS: I needed a few local patches (kept in `third_party/`), mainly around platform windowing. On macOS it renders through Metal with no extra work.

- Real-time + UI: a socket connection feeds a client-core crate, and views subscribe to entity updates. Keeping the network layer out of the UI crates made testing much easier.

- WebRTC calls in Rust with mesh topology, TURN credentials from the server and automatic ICE restarts.

- Content-defined chunking for game builds, so updates only download changed blocks.

- An in-game overlay: an off-screen GPUI renderer whose frames are composited by a C++ DLL inside the game (shared-memory IPC).

Workspace layout, crates and build instructions are in the README:

https://github.com/captainTvZx/P2

Happy to answer questions about GPUI in production, or the Electron → Rust migration.


r/madeinrust • • 1d ago

AI Assisted Ubuntu Touch Emulator for apps developement

Post image
2 Upvotes

Made in Rust with Teksilo GUI framework.

It showcases a complex UI with docks, controls, drag & drop, settings and the ability to show textures coming from another process, here QEMU.


r/madeinrust • • 1d ago

AI Assisted I "built" a fast, keyboard-driven image viewer for Windows in Rust

Thumbnail
gallery
8 Upvotes

Hi r/madeinrust,

I'm the developer behind Bladr, a small image viewer for Windows written in Rust.

I built it because I missed the speed and simplicity of ACDSee's old View mode: point it at a folder, scroll the wheel to flip through photos, and press F for fullscreen. Most modern viewers feel either catalog-first, heavy, or full of ads. Bladr is deliberately just a viewer — no catalog, no editing, no account, no telemetry.

What it does:

- Mouse wheel moves to the next/previous image and wraps at the ends

- Fullscreen with F/F11, fit/100%, zoom and pan

- Slideshow with adjustable delay, loop and shuffle

- RAW support through the camera's embedded JPEG preview: CR3, NEF, CR2, ARW, DNG, ORF, RW2, RAF and more

- EXIF overlay with camera, lens, ISO, shutter, aperture and focal length

- RGB histogram overlay

- Canon CR3 focus-point overlay

- Set wallpaper, delete to the Recycle Bin, and "Show file location" in Explorer

- Region screenshot: drag an area, then copy it to the clipboard or save it as PNG

- Single instance, drag & drop, NAS/UNC paths, auto-update

- English and Danish UI

- Starts maximised and remembers the last folder

A few Rust/implementation details:

- UI is eframe/egui with a custom canvas, HUD and overlays

- Background decoding and neighbour prefetching keep browsing responsive

- The previous image stays on screen until the next one is decoded

- Win32 integration for file associations, single-instance handling, Recycle Bin deletion and an elevated delete helper

- Portable single exe, MIT licensed

Screenshots:

Viewer with HUD, EXIF and histogram:

https://raw.githubusercontent.com/JonathanNet/bladr/main/docs/screenshots/viewer.jpg

Context menu:

https://raw.githubusercontent.com/JonathanNet/bladr/main/docs/screenshots/menu.jpg

Options:

https://raw.githubusercontent.com/JonathanNet/bladr/main/docs/screenshots/options.jpg

Slideshow controls:

https://raw.githubusercontent.com/JonathanNet/bladr/main/docs/screenshots/slideshow.jpg

Download and source:

https://github.com/JonathanNet/bladr

https://github.com/JonathanNet/bladr/releases/latest

There is an installer and a portable exe. It's Windows 10/11, per-user install, no admin required. The exe is not code-signed yet, so SmartScreen may show a warning the first time.

Current limitations, so nobody is surprised:

- Windows only

- RAW is the camera's JPEG preview, not a full demosaic

- No HEIC/HEIF or video yet

- No catalog, metadata editing or non-destructive editing

- Focus points are Canon CR3 only

- Animated GIF/WebP shows the first frame

I'd especially like feedback on startup/browsing speed, RAW formats, and whether the keyboard/mouse workflow feels right. Bug reports and format requests are welcome.

If it's useful, there's an optional Buy Me a Coffee link in the repo. No pressure.


r/madeinrust • • 1d ago

Majority AI Coded created "copy as path" before i know windows has built-in copy as path by hold shift + right-click. whatever, the job is done and my app is working perfectly (so far). my app's advantage is not having the "quote" mark.

Post image
6 Upvotes
  1. multi select works,
  2. drag any file to the .exe to copy the path

https://github.com/finnuen/CopyFilePath


r/madeinrust • • 1d ago

AI Assisted Afterburner: A Pure-Rust Diffusion Transformer (DiT) LoRA Training Engine Built on Burn & Candle (< 13 GB VRAM, Zero Python/C++)

7 Upvotes

For years, serious AI model training has been locked into a stack of Python glue code backed by C++ native plugins. Afterburner is a first-of-its-kind, pure-Rust training engine built from the ground up to train modern Diffusion Transformers (DiTs) and export deployable LoRA adapters—with zero Python runtime or C++ extension dependencies.

Powered by Burn (and CubeCL) for GPU neural-network execution and Candle for SafeTensors loading and preprocessing, Afterburner trains LoRA adapters for the Anima image-generation architecture. Even at high resolutions, the entire training workflow operates within 12–13 GB of actual VRAM, achieving practical step times on consumer GPUs while exporting standard .safetensors files ready for inference tools like ComfyUI.

While the engine is still evolving—I would rate its current training fidelity at a solid 8/10 compared to mature Python trainers—it already demonstrates clear, reliable convergence and produces genuinely usable LoRAs with strong character and structural adherence.

Why a Two-Pass Training Pipeline?

Modern diffusion architectures rely on three distinct components: a Diffusion Transformer (DiT), one or more text encoders, and a VAE. Keeping all of them resident in VRAM during backpropagation wastes gigabytes of memory on frozen models. Afterburner splits the workflow into two deterministic passes:

  1. Preprocessing Pass (AFBCACHE): Encodes captions and images once using the text encoders and VAE, saving the resulting embeddings, attention masks, and latents into a keyed cache file.

  2. Training Pass: Releases the text encoders and VAE completely, keeping only the DiT and cached tensors on the GPU for fast, low-VRAM optimizer updates.

Engineering Under 13 GB VRAM in Pure Rust

To keep peak memory below 13 GB without sacrificing numerical stability, Afterburner combines several memory and precision controls across Burn and CubeCL:

  • Query-Chunked Attention: Computes attention scores in configurable query chunks (defaulting to 256 tokens) so temporary allocations scale linearly rather than quadratically with spatial token count.

  • Tiled MatMul Backward: Splits long-sequence linear backward passes into 512-token tiles to bound intermediate gradient workspaces.

  • Scoped Autodiff Checkpointing: Uses a tailored burn-autodiff setup where heavy operations are eligible for forward recomputation during backward rather than retaining every activation across all 28 DiT blocks.

  • Mixed Precision with FP32 Stability: Runs forward/backward activations in BF16 (--features cuda,bf16) while keeping trainable LoRA weights and SafeTensors exports in FP32 (--lora-dtype f32) to prevent small AdamW updates from rounding away.

  • Explicit CubeCL Pool Control: Uses fixed-memory exclusive pools, conservative pre-flight memory checks, and per-step memory cleanup to keep bytes_in_use flat across epochs without allocator fragmentation.

Training Features & Multi-Backend Execution

Afterburner implements modern rectified-flow training (target = noise - latents) with configurable flow shift (3.0), logit-normal/sigmoid timestep sampling, loss weighting schemes (none, sigma_sqrt, cosmap), warmup-cosine LR scheduling, and global-norm gradient clipping.

Because it is built on Burn, it is not tied exclusively to NVIDIA hardware. Alongside CUDA, it supports cross-platform GPU training via Burn's Vulkan/SPIR-V backend:

# CUDA BF16 training with exclusive memory pools
cargo run --release -p afterburner-cli --features cuda,bf16,fixed-memory -- `
  --device cuda --train-cache dataset.afbcache `
  --base-model anima.safetensors --output-lora afterburner-lora.safetensors `
  --epochs 3 --learning-rate 1e-4

# Vulkan / SPIR-V training
cargo run -p afterburner-cli --features vulkan,checkpointing -- `
  --device vulkan --train-cache dataset.afbcache `
  --base-model anima.safetensors --output-lora afterburner-lora.safetensors `
  --epochs 1

Current State & Takeaways

Getting a multi-billion-parameter DiT training loop to converge cleanly in pure Rust required tracking down subtle BF16/FP32 normalization boundaries and graph retention bottlenecks, which also gave me the chance to share real-world CubeCL/autodiff feedback upstream with the Burn team.

Right now, Afterburner sits at roughly an 8/10 in terms of training depth—there is still room to refine fine-grained detail convergence—but it already proves that pure Rust can handle real-world generative AI training workloads under tight 13 GB VRAM budgets with predictable memory behavior and solid, reproducible learning results.

https://github.com/kanryu/afterburner