Written on 8 Nov 2026.
This guide shows how to run GLM-5.3-Flash, a very large coding model from Z.ai, on your own Windows PC with Project Maya, and how to point Claude Code at it. It lists what to download and where, the commands we ran and the problems we hit.
What will you have at the end?
A chat page in your browser, and Claude Code writing code with a model that runs entirely on your own machine.
We wrote this from our own install on a PC with a pair of RTX 5090 graphics cards. Every speed figure in it was measured on that PC. We count speed in tokens, the small pieces of text that a model reads and writes.
What are you building?
- The model is GLM-5.3-Flash, Z.ai’s open coding model. It has 321 billion parameters, and about 18 billion of them work on each step.
- It is a mixture of experts: every word wakes only a small part of the model, which is why it can run on a desk at all.
- The engine is Project Maya. It keeps the busiest experts on your graphics cards and the rest in your memory. It gives you a chat page, an interface in OpenAI’s language and one in Anthropic’s.
- The Anthropic one is what lets Claude Code use the model.
- The files are Maya’s own compressed versions of the model. We used the one called Maya-M, which is 116 gigabytes.
Check your hardware
Here is our machine, and what Maya itself asks for.
| What we used | What Maya asks for | |
|---|---|---|
| Graphics | A pair of RTX 5090 cards, 32 gigabytes each | NVIDIA cards from the V100 and RTX 20 series on, from 1 to 16 of them. More video memory is faster. |
| Memory | 192 gigabytes | 32 gigabytes runs it. More memory keeps more of the model close, and is faster. |
| Disk | An NVMe solid-state drive of 4 terabytes | A fast NVMe drive, not a hard disk. About 100 gigabytes for Maya-S, 116 for Maya-M and about 160 for Maya-L. |
| System | Windows 11 Pro | Windows 10 or Windows 11, 64-bit, or Linux. Not WSL2. |
Which build should you pick?
Add up your memory and your video memory. That is your memory pool, and it decides the build.
| Build | Size | Good for |
|---|---|---|
| Maya-XS | 73.4 gigabytes | 64 gigabytes of memory and a 24 gigabyte graphics card |
| Maya-S, Maya’s default | 96.5 gigabytes | A smaller memory pool |
| Maya-M, the one we used | 116 gigabytes | A bigger pool, tuned toward tool calls and front-end code |
| Maya-L | 156.3 gigabytes | The biggest pools, and the closest to the original model |
Put the model on a fast drive
This is a lesson we learned the hard way. Put the model on your NVMe drive. Our big data disk is a hard disk, and the model has no business there.
Maya streams pieces of the model from the disk when memory runs short, and a hard disk is far too slow for that.
Install the NVIDIA driver
You need a handful of things, installed once and in this order. First, use the newest NVIDIA driver for your card, and check it with the command below.
The CUDA version that the command prints is only what the driver can run. It does not mean the CUDA toolkit is installed.
Check the driver:
nvidia-smi
Install Visual Studio 2022 Build Tools
This is the C++ compiler. Install it before CUDA, so that CUDA’s Visual Studio integration has somewhere to land.
- Download the installer from the link below.
- In the installer, tick Desktop development with C++, including the MSVC build tools and a Windows 10 or Windows 11 SDK.
Or install the compiler from the command line
To do it from an administrator PowerShell, this is the command we ran. It took about 4.5 minutes.
From an administrator PowerShell:
vs_BuildTools.exe --quiet --wait --norestart --nocache --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended
Install CUDA Toolkit 12.8
- Download it from NVIDIA’s archive page, linked below. We used the network installer. CUDA 13 also works on RTX 20 and newer cards.
- Be careful if the PC already runs models on its cards. A plain silent install also installs the display driver bundled with the toolkit, and that driver can be older than yours. Replacing the driver stops anything running on the cards.
- What we did instead: we installed only the toolkit pieces we needed, by name, with a flag that never reboots. We installed 28 of them, and it took about 10 minutes. Our driver read the same version before and after.
- On a fresh PC with nothing running on the cards, the normal installer is fine.
The pieces we installed, each name with the _12.8 suffix:
cudart nvcc nvrtc nvrtc_dev cublas cublas_dev cuda_profiler_api nvtx thrust nvml_dev nvjitlink nvfatbin nvprune cuobjdump nvdisasm cuxxfilt cupti
curand curand_dev cusparse cusparse_dev cusolver cusolver_dev cufft cufft_dev sanitizer opencl visual_studio_integration
Install Python
Install Python 3.10 or newer, in its 64-bit form. Open a new PowerShell window afterward, so that it picks up the new path.
Python, from PowerShell:
winget install -e --id Python.Python.3.12 --scope user
Install Git
Install Git for Windows, then open a new PowerShell window again.
Get Project Maya and check the PC
The check reports your graphics processors, the CUDA toolkit, the compiler, your memory and the page file. It downloads and builds nothing yet.
Windows needs a page file of roughly your cards’ total video memory plus 9 gigabytes, even if it is set to system managed. If the check warns, set a custom size under Virtual memory in the advanced system settings, then restart Windows.
In PowerShell:
git clone https://github.com/mw00/project-maya.git
cd project-maya
.\START-MAYA.bat --check
Run the setup: build the engine and download the model
Put the models folder on your NVMe drive, as the first command below shows.
- It asks which model and context you want, and pressing Enter takes its recommendation. The second command picks Maya-M directly.
- It builds once, in its own folder. That is 20 to 40 minutes.
- It shows you every download before it starts, and checks every file against its checksum. Maya-M comes from Hugging Face, from the page linked below.
- Our download ran at about 90 MiB a second, so 116 gigabytes needs around 20 to 25 minutes. Maya-L needed 28 minutes.
- Already downloaded the files another way? See the section after this one.
Set up, with the models on your fast drive:
.\START-MAYA.bat --setup --models-dir "<a folder on your NVMe drive>"
.\START-MAYA.bat --setup --models-dir "<a folder on your NVMe drive>" --model glm-maya-m
If you already have the files
Maya can find files you downloaded another way by size and checksum, and move them into place. Add its copy flag to keep the originals.
Import files you downloaded another way:
.\START-MAYA.bat --import-model "<the folder that holds them>"
The first start
When the setup finishes, it starts the model. The first start is slow, for a few minutes. Maya reserves most of your free memory, all but about 6 gigabytes, for the pieces of the model that do not fit on the cards. Other programs get little memory while it runs.
Then open the chat page. Maya prints its address when it starts. Next time, run the start file again, or double-click it.
Tune it for your PC, and do not skip this
Maya ships with sensible defaults, but on our PC its default split of the work was the slowest option it tested. Its own tuning runs for 10 to 15 minutes.
Stop Maya first (Ctrl+C in its window), then:
.\START-MAYA.bat --calibrate --no-start
.\START-MAYA.bat
| What it tried | Writing speed, tokens a second |
|---|---|
| Maya’s default split of the work | 22.4 |
| All of that work on the processor | 28.0 |
| The best settings, confirmed together | 30.8 |
Give the tuning the cards to itself
The tuning refuses to run while any card shows more than 1 gigabyte in use. Close games, browsers with graphics acceleration and other AI tools first.
If your monitor is plugged into one of the cards, Windows itself can hold close to that much there. Ours held about 1.9 gigabytes.
Optional: try a second drafting method
Maya can use a small extra drafter model called DFlash2 to speed up writing. Whether it helps depends on the PC, and Maya measures that for you.
On ours, Maya’s built-in drafter won, 26.8 against 24.2 tokens a second, so Maya kept it. On other machines DFlash2 is much faster, so measure, do not guess.
Try DFlash2:
.\START-MAYA.bat --setup --draft dflash2
Use it in the browser
Maya’s chat page has a live monitor of your hardware, and Settings, where the context size, the thinking level and the port live. We raised the context there.
Thinking is the big lever. The model thinks before it answers, at Off, Low, High (the default) or Max.
At Max with no budget set, our Snake game request thought for 18 minutes, 29,631 tokens, without starting its answer. Set a thinking budget in Settings, or use High.
Use it from your own code
Maya speaks the OpenAI language and the Anthropic language on the same address, under their usual paths. Any model name works.
Use it with Claude Code
Point Claude Code at Maya with a pair of environment variables. The first is the base address, which you set to the address Maya prints. The second is the key variable, which you set to any short text unless you set a key in Maya.
Every token then comes from your own PC. Nothing goes to a Claude model.
- For a clean demo, start Claude Code in its bare mode, without your hooks, plugins, project files or other servers. This is optional.
- Optionally, set the small-model variable to glm-5.3-flash, so that Claude Code’s small background calls go to Maya too.
In PowerShell:
$env:ANTHROPIC_BASE_URL = "<the address Maya prints>"
claude --model glm-5.3-flash
What to expect while it runs
Claude Code shows only a timer while the model thinks. Press Ctrl+O to see the thinking stream live, which is great for a recording.
Our agent wrote a complete Snake game of 225 lines in one web page, in about 6 minutes.
That was one turn of 9,927 tokens at 28.8 tokens a second, plus a short closing line.
Optional: serve it to other machines or to several agents
- To listen beyond this PC, follow Maya’s own guide for its host and key options, and always set a key.
- Allow only your private network through the Windows firewall, not the whole internet.
- Check that the other machine can really connect, not just ping. Ours could ping the PC, but the network’s access policy blocked every connection to it.
- For several requests at once, Maya has a parallel option, up to 8 at a time. Each request gets slower, but the total output goes up.
- On ours, a pair of requests at once gave about 20 tokens a second each, against 27 to 30 for one alone. That was measured untuned, with a big download running on the same PC.
- One request at a time is best for a single person. More is better for a team of agents.
- The browser keeps your chats per address. Chats you had at one address do not show up at another. They are not lost: open the old address to see them again.
A pair of requests at once:
.\START-MAYA.bat --setup --parallel 2
If something goes wrong
- To get a report for a GitHub issue, run Maya’s report option. It writes a text file of your hardware, setup and speed lines. The engine’s own log is a file named after the model.
- Answers suddenly much slower on Windows: the card is too full, and Windows is moving video memory to ordinary memory. Leave more of it free with Maya’s video-memory reserve option, shown below.
- The SSD is busy all the time: there is not enough free memory for the model. Close programs or add memory.
- The download stopped: run it again, and it continues where it stopped.
- The port is in use: Maya is already running, or start another with its port option.
- Benchmarking it yourself? Never repeat the same prompt. Maya remembers conversations and reuses its work, so a repeated prompt comes back in 4 to 7 seconds instead of 15 to 70. Use a different prompt each time.
Leave more video memory free:
.\START-MAYA.bat --setup --vram-reserve-mib 2048
Our numbers at a glance
These are for Maya-M on a pair of RTX 5090 cards with 192 gigabytes of memory, on Windows 11. Every prompt was new to it.
| What we measured | |
|---|---|
| Writing speed, untuned | About 22 to 26 tokens a second |
| Writing speed, tuned | 26.8 sustained after a long document, 33.1 on a short prompt, and 30.8 in Maya’s own tuning |
| Reading a prompt, untuned | About 1,400 tokens a second on a short prompt, and about 510 on a long one |
| A real bug fix | 43.7 seconds and 904 tokens, the same patch as our usual model, which ran on other machines, so this is not a speed comparison |
| Claude Code building a Snake game | About 6 minutes, from start to finished file |
What does this guide not cover?
We tested only on Windows. Linux is Maya’s other supported system, and we have not run it there. We have not yet run the larger build, Maya-L, or a different file format of the model on this PC. That comparison comes next.
Who made what?
The model, GLM-5.3-Flash, is from Z.ai. The engine, Project Maya, and its builds of the model are Project Maya’s own work. We are grateful to both.


