New Models bigger than your RAM, 2.5x llama.cpp on a 16 GB Mac

Your own AI server, in layers

Prastara runs AI models on your own PC, even ones bigger than its memory. Chat with them, plug in the apps and coding agents you already use, let an agent use a browser or a sandbox computer, and pair your other machines into one cluster.

Free and open source · MIT Written in Rust Linux · macOS · Windows · x64 and Arm

Prastara (प्रस्तर) is Sanskrit for a layer spread out, the oldest form of the word strata: each layer of memory holds what it is fast enough for. Formerly am2Strata. Why the name

What it does

One server on your machine, one address for every app.

Your models, your data and your keys stay with you.

Bigger than RAM Rust engine

The weights every token uses stay in GPU memory or RAM, the hot experts are pinned in RAM, and cold experts are read from the SSD only when they are picked. A 17.5 GB model runs on a 16 GB Mac at 2.5x llama.cpp's speed.

Browser use

The model drives a real browser: it scrapes tables into datasets, fills forms and asks you before it sends anything. From the chat, the command line, or any coding agent through MCP.

Cluster mutual TLS

Pair a Mac or another PC by a 6-digit code. Workers answer requests and serve small models as extra "brains" the main model can ask, over mutual TLS 1.3 with pinned certificates.

Compatible APIs

OpenAI, Anthropic, Responses and Gemini-compatible endpoints, streaming and tools included, so existing apps connect with just a base URL and a key.

Coding agents

Claude Code, Codex, opencode, Qwen Code, Aider, Goose, the Gemini CLI and more, connected to your own models in one command.

Web app

Chat with a live canvas for HTML, diagrams and Python in a sandbox; a Monitor for speed, GPUs and the queue; settings for everything else.

Workshop

Convert a Hugging Face model to GGUF, quantize it, merge a LoRA adapter, and install the result. Turn your documents into training data and fine-tune, sized to your machine.

Sandbox VM Linux · KVM

Computer use in its own small Debian virtual machine: the agent installs and runs what it needs inside, and your PC is untouched. It pauses when idle and resumes in about a second.

Computer tab Linux

Watch the agent's desktop live, take control with your own mouse and keyboard, and copy and paste across. Rules you choose decide what it may do.

Secure by default

HTTPS and secure WebSockets with a self-signed, your own or a Tailscale certificate. API keys with limits and expiry, and usage per key and per model.

Media build from source

Songs that sing their lyrics in 50+ languages, voices, images, video and speech to text, all on your own GPU. Video frames are read without ffmpeg.

One live connection

The web app talks to the server over one WebSocket: answers stream over it, and status, the queue and jobs are pushed the moment they change.

The engine

Bigger than your RAM, and still fast.

A mixture-of-experts model uses only a few of its experts for each token. Prastara's Rust engine keeps those close and leaves the rest on the SSD, so a model larger than your memory runs without swapping.

GPU memory and RAM Attention, shared experts and the output head: the weights every token uses, always resident.
Hot experts, pinned in RAM A learned profile ranks the experts; the hot ones are pinned so the OS cannot evict them. 98% of routing lands here.
Cold experts on the SSD Read only when the router picks them, all of a step's experts at once. Prompts are grouped by expert, so each is read once per chunk.

Hand-written SIMD kernels (AVX2 on x86, NEON on Apple silicon) give exactly the same results as the plain ones; tokens are checked against llama.cpp.

2.5x
llama.cpp's generation speed, past the memory limit
0 GB
swap written (llama.cpp's default: about 98 GB)
17.5 GB
model on a 16 GB Mac mini M4

GLM-4.7-Flash on a 16 GB Mac mini M4

512-token prompt, 64 generated tokens, tokens per second. Prastara at 8-10 threads, llama.cpp measured at 4.

Generation
Prastara
8.9
llama.cpp, mmap
3.6
llama.cpp, default
2.05
Prompt
Prastara
16.9
llama.cpp, mmap
17.3
llama.cpp, default
11.4

llama.cpp's Metal path ran out of GPU memory on this model. Every number is in docs/HYBRID-SPEED.md.

Cluster

Your machines, working as one.

A PC as the master, a Mac mini as a worker: paired once, then every request between them is encrypted both ways. Apps keep talking to one address.

01
Show a codeThe worker shows a 6-digit pairing code.
02
Pair onceThe master sends it; the two swap certificate pins.
03
Mutual TLS 1.3From then on, only pinned, encrypted connections.
04
Many brainsWorkers answer requests and serve small models as experts.
What each machine keeps (the diagram as text)

Master (for example the Linux PC with the big GPUs): its main API key, its certificate (node-tls.json, which is its pin), and cluster-workers.json with each worker's address, pin and the key it was given. Clients only ever talk to the master; their keys are never sent on to a worker.

Worker (for example a Mac mini): its own main API key, which never leaves it; its node key and certificate; and cluster-masters.json with each master's pin and only the hash of the key it gave that master. Ports: 8000 for the API, 8443 for the cluster (TLS), 8001 for HTTPS.

Pairing: the worker shows a 6-digit code, new every 10 minutes; five wrong codes lock pairing for 10 minutes. To remove a worker: Settings › Cluster › Remove; its key stops working at once.

Setup. What each machine needs, and which keys exist (never shown). Read it as text.
Live. The Mac mini answering as a worker, encrypted.

See it

Real screens, one PC.

Screenshots of the web app and infographics of how it works. Select any of them to view it full screen, zoom in and move around.

Infographics

Overview. Twelve parts of Prastara at a glance. Read it as text.
Bigger than RAM. The three tiers and the 16 GB Mac measurement. Read it as text.
Cluster setup. Pairing a worker with the master. Read it as text.

The web app

Browser use. A Wikipedia table saved as a dataset, from one sentence.
Chat. Answers stream as they are written, with the model's thinking alongside.
Canvas. An HTML page the model wrote, running live beside the chat.
Python, sandboxed. Code from the chat runs with no network and your home folder hidden.
Flows and whiteboard. Diagrams open by themselves when an answer has one.
Monitor. Every request, with speed, GPU, memory and what came back.
Coding agents. Connect the agents you use to your own models in one command.

The Workshop and Computer tabs are newer than these screenshots.

Videos

Recorded live, made with Prastara.

Demos recorded on one PC, and music, pictures and voices made with Prastara itself. They open on YouTube.

Demos and what's new

Made with Prastara

More on the channel: Prastara on YouTube (opens in a new tab).

Install

One line, any of six platforms.

The installer picks the right download for your system and processor, checks its SHA-256, needs no admin rights, and keeps your models and settings when you update.

curl -fsSL https://github.com/abhaymin/prastara/releases/latest/download/install.sh | sh

1 · Get a model

Pull a small one to start:
am2strata pull mistralai/Ministral-3-3B-Instruct-2512-GGUF Q4_K_M

2 · Start it

Run am2strata and open http://127.0.0.1:8000 in your browser.

3 · Check your PC

am2strata-run doctor lists each optional feature and exactly what this machine still needs for it.

Platforms

Where it runs

Six downloads. The server, the web app, the APIs and the Workshop work on all of them.

Linux x64Linux ArmmacOS Apple siliconmacOS IntelWindows x64Windows Arm
Server, web app, APIs, Workshopyesyesyesyesyesyes
Rust engineCPU (AVX2) or GPUCPUCPU (NEON) or GPUCPUCPU (AVX2) or GPUCPU
Browser useyesyesyesyesyesyes
Cluster (master or worker)yesyesyesyesyesyes
Computer tabyesyes––––
Sandbox VMyes (KVM)–––––
Start at sign-insystemdsystemdlaunchdlaunchdStartupStartup

Principles

Built to stay yours

Local firstModels run on your hardware. Nothing leaves your PC unless you send it.
Light on the machineJobs queue for the GPU one at a time; the sandbox VM only gets CPU nothing else is using.
OpenMIT licensed and written in Rust, with a regression suite that checks every route on every change.
Your rulesAn agent on your desktop asks before anything that sends, deletes, installs, buys or publishes.

The name

Why “Prastara”

Prastara (प्रस्तर) is Sanskrit for a stone or rock, and for something spread out flat: a layer, a bed, a level surface. It comes from pra- (“forth”) and the root stṛ (स्तृ), “to spread, to lay out in layers”.

The same ancient root runs through Latin sternere (“to spread”), which gave English stratum and strata. Prastara is the word strata in its oldest form, and that is what the platform does: it lays a model out in layers across a machine, the hot parts on the GPU and the rest in memory and on disk.

A closely related word, prastāra (प्रस्तार), is the name Piṅgala’s Chandaḥśāstra (around the 2nd century BCE) gives to the method of laying out every possible pattern in order, one of the earliest systematic enumerations in mathematics. Prastara was called am2Strata until version 0.2.0.

The technology names, their Sanskrit, their meaning and what each is in Prastara
NameSanskritMeaningWhat it is
Prastaraप्रस्तर (prastara)stone; a layer spread outthe platform
Triveniत्रिवेणी (triveṇī)the confluence of three riversthe layer that makes GPU, CPU and NPU work as one: which chip runs which part of each layer
Koshaकोश (kośa)treasury, containerthe model file, .kosha: one file holding a model laid out for a fast load and fast experts
Anuअणु (aṇu)atom, the smallest particlethe kernels: one Rust source for NVIDIA, AMD, any Vulkan or Metal GPU and the CPU
Staraस्तर (stara)layer, levelthe model and expert manager: places each part across VRAM, RAM, disk and other machines
Gatiगति (gati)motion, speedthe runtime engine
Avartaआवर्त (āvarta)turning, recurrenceloop transformers: blocks that run again and again with the same weights
Rupaरूप (rūpa)formmodel variants (finetunes, merges) stored inside one Kosha
Kulaकुल (kula)family, lineagemodel families: a base model and its variants
Mandalaमण्डल (maṇḍala)circle, groupa cluster of machines working as one
Ganaगण (gaṇa)group, assemblythe expert groups inside a mixture-of-experts model

Glossary

Words and abbreviations on this page

API
Application programming interface: the address and rules other programs use to talk to Prastara.
AVX2, NEON
Instruction sets that let a processor do many small calculations at once: AVX2 on Intel and AMD, NEON on Arm chips such as Apple silicon.
CLI
Command-line interface: commands typed in a terminal.
Cluster
Several of your own computers working together, one acting as the master and the others as workers.
Expert
One of the many smaller parts of a mixture-of-experts model; each word uses only a few of them.
GGUF
A file format for AI models that run on your own computer.
GPU
Graphics processing unit: the graphics card, which also runs AI models fast.
HTTPS, TLS
Encrypted connections. Mutual TLS means both computers prove who they are to each other.
KVM
Kernel-based virtual machine: Linux's built-in way to run a separate computer inside your computer.
LoRA
A small add-on that changes how a model behaves, made by fine-tuning.
MCP
Model Context Protocol: a standard way for AI apps to use tools.
MIT
A short open-source licence: free to use, change and share.
Mixture of experts (MoE)
A model made of many experts; a router picks a few for each word.
RAM
Random-access memory: the computer's fast working memory.
SIMD
Single instruction, multiple data: doing the same calculation on many numbers at once.
SSD
Solid-state drive: the computer's storage disk.
Swap
Disk space the system uses as extra memory when RAM is full; much slower than RAM.
Tokens per second
How fast a model reads or writes text; a token is about three quarters of a word.
VM
Virtual machine: a separate computer running inside your computer.
Full size (opens in a new tab) Download
100%