Benchmarks · one RTX 4080
Hover or tap a bar or a dot for its numbers; every chart has its table under it, and the datasets are listed at the end of this section.
The charts need JavaScript and the d3 library from cdnjs.cloudflare.com.
On one RTX 4080, Leviathan runs a 61 GB mixture-of-experts model at — tokens a second, where llama.cpp reaches —–—, and its own .shn5 format stores that model in — GB without losing a bit, or — GB at — bits a weight. A separate video engine with its own kernels denoises a 1280 × 736 LTX-2.3 shot — as fast as Lightricks' PyTorch pipeline, each step landing — an FP32 run than PyTorch's. Every Leviathan build is checked, model by model, against a stored reference before it ships.
Qwen3-30B-A3B in BF16 is 61 GB; the RTX 4080 holds 16. Leviathan keeps the always-used weights
on the card, streams each layer's experts in from RAM as the router picks them, and runs the whole prompt in one
fp32 pass so each expert crosses PCIe once. llama.cpp runs the same model with its experts on the CPU
(--cpu-moe). Higher is better.
Measured by the test harness, the same 700 token ids for both engines, llama.cpp timed by its own
clock: Leviathan's decode and 700-token figures on 2026-11-14, its 2,048-token figure and every llama.cpp figure on
2026-11-13. Where llama.cpp shows a range, the bar is its best run and the table lists both. Its fastest settings
were -b 2048 -ub 2048 --no-mmap -fa on. At 2,048 tokens: Leviathan
—, llama.cpp
— tok/s. In fp32 the prompt
pass comes within 6.5e-5 nats of a float64 reference built from the model's own weights.
| Engine | VRAM, GiB | Decode low | Decode | 700 prompt low | 700 prompt | 2,048 prompt | Settings |
|---|
Leviathan's own file format, .shn5, stores BF16 weights without loss: the exponents are entropy-coded, the sign and mantissa kept as they are. A mixture-of-experts model's experts stay compressed in RAM, and the card decodes each one as it streams in, checking every 4,096-weight tile. Stage 10, the lossy level, quantises each matrix around a per-row and per-column scale grid before the same coding; the norms, the router, the embeddings and the output head stay lossless. Stage 10 came after the 1.1.0 release. Smaller is better.
Qwen3-30B-A3B: the lossless file is — % smaller than the BF16 GGUF and decodes to its exact bytes, checked tensor by tensor; at q6, Stage 10 is — % smaller.
Higher is better. Fewer bytes to stream make the lossy file faster as well: decode +— % and a 2,048-token prompt +— %, with — GB of RAM held for the experts instead of —, and a load of — s instead of —. Measured on 2026-11-16 in one session, the two files alternated, 16 expert slots a layer. The card's clock varies by session, which is why the lossless file decodes at — tok/s here and at — in the section above (2026-11-14).
KL divergence from each model's reference, in nats; lower is closer. On TinyLlama 1.1B, where the q6 level was set, Stage 10 lands as close as Q6_K with — % fewer bits a weight. On the 30B it uses — % fewer bits and lands a little further from its reference (— against —), with the same top token at every position checked: the level needs setting for each model, which is the next step.
| File | Size, GB | Bits a weight | Lossless |
|---|
| File | Decode, tok/s | 2,048 prompt, tok/s | RAM for the experts, GB | Load, s |
|---|
| Model | File | Bits a weight | KL | Against | Note |
|---|
LTX-2.3 is a 22-billion-parameter diffusion transformer that makes picture and sound together. This is a community FP8 checkpoint of it, too big for the 16 GB card, so its weights stream in from RAM at every step. Through Lightricks' own PyTorch pipeline, one 1280 × 736 shot of 113 frames takes — s to denoise. Leviathan's video engine runs the same checkpoint on its own kernels, with the four guidance passes of each step batched into one call; each bar below adds one change to the bar above it. Lower is better.
With exact f32 sums the engine already takes — s, — PyTorch's speed; the rest comes from cheaper arithmetic, and the charts below show what that costs. The times are the denoising alone, from each render's own record (2026-11-17); the text encoder, the decode and writing the file come on top. The video engine is a research build, separate from the Leviathan app, which runs text models.
Relative error of one real denoising step's outputs (768 × 512, 89 frames, picture and sound made from a prompt) from Lightricks' own blocks run in FP32 on the same inputs; lower is closer. The engine's default lands —× closer than PyTorch's bf16 for the picture and —× for the sound, in the conditioned pass (2026-11-18).
PSNR of every decoded frame of the 1280 × 736 shot against the exact engine's render at the same seed; higher is closer. Another seed, a different video, sits at — dB. Today's default sits at — dB, a little further than PyTorch's own bf16 at —: a diffusion model carries the last bit of any arithmetic through its steps, so no two maths paths match pixel for pixel, and here the frames show the same scene, character and motion.
GPU time of one denoising step at 1280 × 736, four guidance passes: — s in all, from a profiler trace taken before the last change on the ladder, which then took about 0.35 s a step off the matrix products.
LTX-2.3 also makes its own sound, 48 kHz stereo. On the engine's default, with Lightricks' 2.3 guidance for both, from the prompt to the MP4 written (2026-11-18); the whole run includes building the engine, and the prompt's text encoding was cached.
| Size | Clip, s | Denoising, s | Decode, s | Whole run, s |
|---|
| Step | Change | Denoising, s |
|---|
| Output | Pass | Video engine | PyTorch |
|---|
| Render | PSNR, dB | Denoising, s |
|---|
| Part | GPU seconds a step |
|---|
Qwen 2.5 Coder 7B at Q8_0, one token at a time after a prompt of 128, 2,048 or 4,096 tokens. Both engines ran back to back in the same session, in two interleaved rounds; each bar is that engine's faster round. Leviathan keeps the activations and the attention cache in fp32; llama.cpp rounds the activations to int8 before each matrix product and keeps its cache in fp16. Higher is better.
From a 128- to a 4,096-token context, Leviathan's token takes — ms longer and llama.cpp's — ms. Leviathan keeps the attention cache in fp32, twice llama.cpp's fp16 bytes: at 4,096 tokens each token reads — MB of keys and values, which its attention streams at — GB/s (— % of the card's read ceiling, Nsight Systems). Half those bytes at that speed would save about — ms a token, about the whole — ms difference. An fp16 cache is not built; it would be an opt-in, at llama.cpp's precision.
| Engine | Context | tok/s | ms a token | Round 1 | Round 2 |
|---|
A prompt runs as matrix multiplications on the tensor cores. Leviathan's default feeds them fp16; llama.cpp feeds int8, which this card runs four times as fast. Leviathan's two opt-in switches trade precision for speed and are off unless the user turns them on. Higher is better.
With both switches on, the matrix inputs are int8 like llama.cpp's, and Leviathan's prompts run at —, — and — llama.cpp's speed at 512, 2,048 and 4,096 tokens.
What each arm costs, on the 2,048-token prompt's last position against Leviathan's exact path (fp32 matrix-vector products, no tensor cores): default KL —, tensor-core attention —, int8 matrices — (KL in nats, lower is closer to exact; one position, where the reference check below takes the worst of 100).
| Arm | Prompt | tok/s | KL vs exact | Matrix inputs |
|---|
Before a build ships, each model is run teacher-forced over four prompts, 25 positions each, and compared position by position with the RTX 4080's recorded output. A model passes when the top token matches (or the top two are tied within 0.01 nats) and the KL divergence stays under its bar everywhere; the same comparison one step out of line must fail, and does, for every model. The chart is the CUDA engine now live; the Vulkan engine passed the same check on this card and on an AMD integrated GPU (2026-11-14). Lower is better; the line marks each model's bar.
| Model | Weights | Worst KL | Bar | Decode path |
|---|
The same check with each switch on. Tensor-core attention stays far inside the bar on every model it applies to. int8 matrices, llama.cpp's own precision for prompts, cross it on every Q8_0 model, and on the Gemma 4 fine-tune they change the top token twice: that is why both stay off by default. Lower is better.
| Model | Weights | Tensor-core attention | int8 matrices |
|---|
A decode step reads every weight once, so it is bound by how fast memory streams. Leviathan's matrix-vector products now take about as long as llama.cpp's while keeping fp32 activations, and the step runs as fewer, larger kernels, replayed as one CUDA graph a token as llama.cpp's is.
Matrix-vector time a token, Nsight Systems, the two engines traced back to back: Leviathan — ms, llama.cpp — ms. The ceiling is the fastest a bare streaming-read kernel reached on this card; the paper figure is 716.8 GB/s.
Leviathan computes on a GGUF file's quantised blocks as they are. After the 1.1.0 release, the kernels that read those blocks while decoding moved to two rows a warp, and a decode token now takes less time on every format measured, with the same output: a KL of at most 4.2e-12 against the old kernels and the same top token on every row. Higher is better.
Qwen3-30B-A3B at Q3_K_S, whole on the card: a decode token took — ms before and — ms after, in the same session (2026-11-15).
| Model | Format | Before, ms | After, ms | Change, % |
|---|
Each test runs through the real engine on the card. A speed change that alters a single byte of output has to say so and pass the reference check above.
| Test | What it checks | Passed |
|---|
| Test | Area | What it checks | Passed | Date |
|---|
Card: NVIDIA GeForce RTX 4080, 16 GB, stock clocks; Ryzen 9 7950X; 128 GB DDR5 at 3,600 MT/s; Windows 11. The card's clock varies by hour, so a comparison counts only when both engines ran in the same session.
llama.cpp: its own llama-bench, build 983ca8992, -ngl 99 -fa 1 (all layers on the card, flash
attention on; every other setting at its default, such as 512-token micro-batches), 3 repetitions, its mean.
Decode is tg64 at the given depth; prompts are pp512 / pp2048 / pp4096.
Leviathan: the same model as a .lev file, loaded the way the app loads it. A prompt is one pass from position 0, the mean of three; decode is 64 steps after the prompt, the logits copied to the host each step and no sampling, as llama-bench does, the mean of two runs. Both engines ran in two interleaved rounds (llama.cpp, Leviathan, Leviathan, llama.cpp); each engine's faster round is shown, and the tables list both. The app's chat sends a prompt the same way, in one pass.
KL divergence: how far one next-token distribution is from another, in nats; 0 means identical. For scale, Leviathan's own two prompt paths (row by row, and on the tensor cores) differ by under 5e-5 on these models, except on Gemma 4's long document (9.5e-4).
.shn5: sizes are the files on disk, GB = 10⁹ bytes. The speeds are Qwen3-30B-A3B with its experts streamed from pinned RAM, 16 expert slots a layer on the card, the lossless and Stage 10 files alternated in one session. Quality: KL from a float64 reference built from the 30B's BF16 weights, with the embeddings and output head BF16 in both of its files; TinyLlama against its F16 model, teacher-forced.
Video: LTX-2.3 22B, a community FP8 checkpoint, its text encoded by Gemma 3; 1280 × 736, 113 frames (4.7 s at 24 fps), 8 denoising steps, Lightricks' 2.3 guidance (four passes a step), one reference image for the character, a given soundtrack (audio to video), seed 4242. PyTorch is Lightricks' own pipeline in bf16, its weights streamed from RAM. The engine's INT8 matrix products quantise both weights and activations to int8 after a per-row and per-column scale grid and a Hadamard rotation, with a rank-32 correction in fp16.
Built with Claude Code by Michael Ricky Neal and Claude (Anthropic).
Local AI, running on your own graphics card.
No server. No cloud. No account. No subscription. You open the app, pick a model, and type — and nothing you say leaves your machine.
WINDOWS · NVIDIA GTX 16 / RTX 20 OR NEWER · NO PYTHON, NO CUDA TOOLKIT, NO DOCKER
AMD & INTEL GRAPHICS CARDS THROUGH VULKAN · NEW IN 1.1.0
Leviathan is the host. The model is the guest.
Plenty of tools run a model locally. What sets Leviathan apart is everything it builds around the model: a memory that survives closing the app, a way to teach it without retraining, and a way for your own programs to use the models it runs.
See it running
Nothing here is mocked up. Every picture is the real app on a single RTX 4080, and the model at work is Qwen 2.5 Coder 7B. Tap one to see it full size.
roman.py and the execute-gate ran it.
The two file types
If the model is a person: .lev (or its compressed twin, .shn5) is their brain and .mem is their memory of your conversations. Two different jobs, not alternatives to one another. Knowledge is a third thing — but it is not a file format; it is text, and it gets its own note below.
A model converted into the exact byte layout the graphics card wants, so it goes from disk to VRAM with no reshuffling. Convert a .gguf once, then load it straight onto the card. No server starts, nothing listens on a port.
Or keep it as a .shn5: the same model, compressed without losing a bit, about 1.5× smaller for full-precision (F16 / BF16) models and unpacked on the graphics card as it loads. Leviathan runs it with exactly the same numbers as the .lev, and checks every piece as it unpacks.
A mixture-of-experts model can be far bigger than your card: its experts wait in your computer's memory, and only the ones each word needs come to the card. Qwen3-30B-A3B in BF16 (61 GB) runs on a 16 GB RTX 4080 at 16 tokens a second and reads a 700-token prompt at 683 a second, faster than llama.cpp on the same card (about 10 tokens a second, and 365 for that prompt at the fastest settings we found for it), with the same answers as if it all fitted.
Close a normal chat and the model forgets you. A .mem keeps your conversations with that model as plain text, and before it answers the model reads back the newest of them, so the conversation genuinely continues. It saves itself as you talk, takes no graphics memory, and every word is yours to read.
Knowledge is text, not a weight file. A knowledge bank is a body of knowledge you give a model without retraining it — drained from a model before you retire it, absorbed from your own code and datasets, or built by hand. It is kept as plain text and handed to the model by meaning when a question calls for it, so it crosses between models regardless of architecture or size, and it is tiny where the old weight approach cost gigabytes. Banks are backed up automatically as .jsonl in your knowledge vault's backup folder, so your distilled knowledge is never trapped in one file.
The systems
The tabs are surfaces. These are the things working beneath them, each one built to be measured rather than taken on trust.
The model resumes instead of restarting. You never re-introduce yourself: it reads back what the two of you said, as text, and keeps it on disk rather than in graphics memory.
Every bank — hand-built, drained from a model, or absorbed from your own code — lands in one shared space. Ask a question and the knowledge that fits is found by meaning, not spelling. The strongest bank wins.
Fill a bank from a model drained of what it knows, or from your own code — source files and datasets, every function compiled and run before it is kept. Loose documents, recordings and chat logs are deliberately not absorbed: the shared knowledge takes only what can be verified, so nothing unvetted can poison what your models read. Opt-in, and it never leaves the machine.
Before answering, the model is handed the shape of how a frontier model worked through problems like yours. One pass, no extra cost.
Structural vision for a model with no eyes. It reads an image's shape (blob, ridge, layered, diffuse) and narrates it in plain language.
Actual recognition, run as an external tool on your CPU. It tells the model what a picture depicts, and how sure it is.
Ask a hosted model on your own key and Leviathan keeps the substance, so your local models can draw on it later. Nothing pre-loaded.
Each model remembers your conversations — its own, across sessions, linked so "remember Pepper the dog?" pulls the whole thread back. Kept strictly per model: it never bleeds into another, and never folds into the shared banks.
After a factual answer, the model is quietly re-asked. Agree with itself and it stands; wander between retellings and it is flagged.
Leviathan builds a bank of verified code patterns — every function compiled and run before it is kept — and the coding loop fetches the right one and repairs from the interpreter's own error. A small model codes well above its weight, borrowing a proven pattern instead of guessing.
Switch from coding to chatting and the model doesn't drag its last task along. Each tab keeps its own working memory, while your chats with the model stay in its memory, there when you come back to Chat.
Eighty-seven of Leviathan's own nodes — maths, logic, text, lists, data, thirty shape nodes, measuring a part, your own model and ANI — found by a search, not a scroll. Wire shapes, numbers, expressions and code into a graph that computes a result. A model, or ANI, can read and build the graph alongside you, handed the real nodes and ports instead of guessing. Only you run it; the host keeps the trigger.
A parametric, watertight 3D modeller in true millimetres, built in-house: sketch, extrude, cut, push a face — the whole part a replayable history. A graph becomes a solid part. Import any 3D file at its real size. Ask your model — or ANI — to change it in plain words; it's handed the real part and edits it as one undoable step. One click forwards it to the Fabricator.
Proves a part printable before a gram of filament goes in: on your printer's real bed, it checks watertight, fit, overhangs, wall thickness and bed contact, tints the problem faces, turns the part for the least support, then hands your slicer the 3MF/STL. Opens STL, 3MF, OBJ, PLY, glTF and FBX by their blueprint — units and up axis read, or weighed and said how sure — so a file arrives at its real size. Type it, a model builds it, you make it real.
Guards what comes in — and the reply on the way out: hijacked models, poisoned documents, hidden characters, a slow steering attack across a whole conversation. It trusts you; it watches everything pretending to be you.
What ANI is
A language model is frozen the day it ships — correct it today and it forgets by tomorrow, because there is nowhere for the correction to live. ANI is that missing place: the layer around the model where knowledge is held, routed by meaning, corrected, and remembered — so the whole system keeps learning while the model's weights never move. Not retraining. Adaptation without it. Learn, adapt, recall — a complete loop, on hardware you own.
And every piece of it stays on your machine — privacy by design, not promise, because there is no cloud in the loop to trust. The membrane keeps it safe by governing what comes in, never policing what you do. A model that learns and grows with you, keeps everything it learns yours alone, and stays lawful without a corporation deciding what you may know.
Inline Studio
Local models can write and refine whole files on their own — but in Leviathan you hold the controls. Give one model the Worker role and it writes the code; give another the Chat role and it talks with you about the work while the first keeps going. Set the roles once on the model, and every session just knows who does what.
Worker writes, Chat talks with you, or Both. Saved on the model and carried into every run — no wiring, no scripts.
Flip Converse and the turn-timer freezes. Ask the chat model anything, steer the work mid-flight, and the worker picks up your direction on its next turn.
Pause the worker at any point to revise the code yourself, then let it carry on. Nothing runs on without you.
You choose who works, who talks, and when it stops. The models take turns; you hold the leash.
The security membrane
Sovereignty is more than nothing leaving your machine — it means nothing gets in that you didn't invite, and nothing goes out that would hijack the screen or clipboard it lands on. Not a weaponised model, not a poisoned document, not a web page reaching through your browser for your GPU, not an instruction hidden in characters you can't see. The membrane trusts you completely and distrusts everything pretending to be you or trying to slip past you. Most local-AI tools ship none of this. Leviathan ships 14 measured layers — each one built to be tested, not taken on faith.
Catches a jailbreak or roleplay trick in what's typed, before the model reads it as a command.
Screens generated output against a harm taxonomy — the genuinely dangerous, not the merely awkward.
Injection, unicode trickery and payload bombs hidden inside JSON a program feeds in.
Hostile PDFs — embedded scripts, invisible text, font exploits — read for traps before they're ingested.
Tells a person apart from a script flooding the input to farm or slowly steer the model.
Ghost scripts that quietly appear in your project folder, surfaced on demand.
A weaponised or tampered model refused before a single byte reaches your GPU.
A poisoned knowledge bank trying to plant a standing instruction that fires every session — quarantined, then fenced as data.
A web page you visit trying to reach through your browser to the model on your card — turned away at the door.
Malformed images and decompression bombs stopped at the picture path, before anything is decoded.
An instruction hidden in zero-width or tag-block Unicode — invisible to you, read by the model — reassembled and caught on the way in, stripped from any reply on the way out.
Terminal-control codes in a reply built to rewrite your screen or hijack your clipboard, stripped before the answer reaches you — without blocking the answer itself.
A payload hidden in an image — in bits too fine for any eye to see, or a pattern tuned to steer the model while looking like nothing to you — erased by bounding the picture to what a human could actually perceive. The model sees only your surface; whatever was painted beneath it is gone.
A QR or barcode a model can read but you can't — carrying an instruction straight past you, the way a sticker could hijack a robot. Caught by its structure, not its format (which an attacker would just change), and blanked before the model decodes it. Proven to defeat a real QR decoder.
And the model is a guest. It has no hands.
The other fear — a model that runs away with itself — can't happen here, and it isn't clever, it's architecture. A model in Leviathan produces text; it cannot loop itself, reach the internet, spawn a process, or touch your machine. Every action — running the server, saving memory, anything at all — is the host's decision: bounded, governed, and interruptible at any moment. Leviathan is the host, the model is only ever the guest, and a guest is never handed the keys.
Every layer runs on your own computer — nothing uploaded, nothing reported — and every one is documented and independently tested. That combination, this many layers, all local, all measured, is something almost nothing else in local AI ships. What you can switch off, and the one line that never bends, is spelled out below.
From your own programs
A game engine, a script, a tool you wrote: any of them can talk to a model Leviathan runs, over a local endpoint on your own machine. One running instance answers any number of programs at once.
No terminal, no command to remember — flip the server on or off in the app's Settings. It listens on 127.0.0.1:8080.
Speaks the same API as OpenAI's chat endpoint. Most existing tools work by changing one URL to 127.0.0.1:8080.
A richer set of endpoints: load and unload models, cancel a reply mid-answer, list knowledge banks. Both stream; your program keeps its own conversation and sends it each time.
Your machine, your rules
Every guard in Leviathan has an off switch, because it is your hardware and that is not up for debate. The security membrane runs entirely on your computer: nothing uploaded, nothing reported, no telemetry, ever.
There is exactly one line with no switch. Child sexual abuse material is refused whether security is on or off, in the app and over the bridge. User sovereignty is a principle worth defending, and so is that floor. Only one of the two ever bends.