No description
  • C++ 36.3%
  • Cuda 35%
  • Python 23.4%
  • JavaScript 1.6%
  • C 1.2%
  • Other 2.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
alesha-pro 4c7cc48b47 hy4f: fall back to writable pinned RAM when read-only Engram pinning is unsupported
Check cudaDevAttrHostRegisterReadOnlySupported across all active GPUs in load_engram (and handle cudaErrorNotSupported from cudaHostRegister). When read-only registration over the PROT_READ GGUF mmap is unsupported (e.g. consumer GeForce on NVIDIA open KMD / X99), copy the Engram table into writable page-aligned anonymous RAM, drop the interior file-backed PTEs with MADV_DONTNEED, and pin with cudaHostRegisterMapped | cudaHostRegisterPortable. Also set the active CUDA device before registration and unregister/unmap cleanly in ~Impl.
2026-11-24 03:50:47 +03:00
.github Add a pull request template and a code of conduct 2026-11-12 11:47:04 +00:00
assets Repository presentation: new logo, issue forms, docs index, SECURITY.md (#881) 2026-11-06 12:37:00 +00:00
bench Bench results: GLM-5.3-Flash Maya-S v2 on 3x V100 32 GB, fully resident - --parallel 4 and 8, the rows family, prompts with several streams (#989) 2026-11-16 08:59:43 +00:00
cmake hy4f decode: LL all-reduce (2 BF16 + step per 8-byte store, no fence/flag), two-kernel AR tail; DFly2 drafter build 2026-11-18 19:28:58 +00:00
data v1.1.57: GLM-5.3 (744B) on Maya's GLM engine (NVIDIA from the V100 and AMD, up to 1M context), the setup header and model API fixes 2026-11-09 12:22:12 +00:00
docker A recipe for a Docker image of a release (docs/DOCKER.md, docker/) 2026-11-04 02:17:50 +00:00
docs docs: the IQ2 trunk ships as the complete set Hy4-flash-IQ2_XXS-0000{1,2}-of-00002 2026-11-19 21:09:31 +00:00
include/strata Stage exact Hy4 Engram rows from direct storage on one GPU 2026-11-19 16:34:31 +00:00
ref v1.1.57: GLM-5.3 (744B) on Maya's GLM engine (NVIDIA from the V100 and AMD, up to 1M context), the setup header and model API fixes 2026-11-09 12:22:12 +00:00
serve Finish the granted bounded waiter before ordinary decode time slicing 2026-11-19 02:18:00 +00:00
src hy4f: fall back to writable pinned RAM when read-only Engram pinning is unsupported 2026-11-24 03:50:47 +03:00
tests Keep host prefix checkpoints on the boundaries of a 4096-token prefill chunk 2026-11-19 16:34:31 +00:00
third_party hy4f: vision - Hy4 flash image encoder (27-layer ViT + projector) on one GPU 2026-11-18 11:37:01 +00:00
tools Merge branch hy4f (7f3626e) into hy4f-serve: serve on prefill / verify / MTP 2026-11-18 13:30:49 +00:00
.gitattributes v1.1.57: GLM-5.3 (744B) on Maya's GLM engine (NVIDIA from the V100 and AMD, up to 1M context), the setup header and model API fixes 2026-11-09 12:22:12 +00:00
.gitignore Ignore the GLM link mode CPU-lane timing cache (data/glm-link-cpu-cal.txt) 2026-11-13 08:54:55 +00:00
CHANGELOG.md Project Maya v1.1.66 2026-11-17 17:48:28 +00:00
chat.py Server: --engine maya (the old name strata still accepted); MCP client and chat.py introduce themselves as Maya 2026-11-01 14:38:19 +00:00
CMakeLists.txt Rebuild tiny unrelated template prefixes before capturing the next conversation 2026-11-19 16:34:31 +00:00
CODE_OF_CONDUCT.md Add a pull request template and a code of conduct 2026-11-12 11:47:04 +00:00
CONTRIBUTING.md Project Maya v1.1.59 2026-11-11 13:19:06 +00:00
LICENSE README: created and led by Peasant Smith, co-maintained with @needmorevram (a byline, and a People entry first in the credits); LICENSE: Project Maya's own copyright line above the inherited one 2026-10-15 15:03:53 +01:00
LICENSE.deepseek-v41 DeepSeek-V4.1: prompts rendered with DeepSeek's reference encoder, agent tool histories kept (#300) 2026-10-20 20:01:57 +01:00
LICENSE.minimax-m31 MiniMax-M3.1-Flash in setup, server and dashboard: MiniMax's template plus Off, Auto by default, the card's sampling, contexts to 1M, pictures on 2026-10-26 16:47:06 +00:00
LICENSE.qwen-community-1.0 CYBER-FROST: Qwen-3.8-Flash-Next's Q5_K_M GGUF with its MTP drafter on the maya engine - the setup, experts straight from the GGUF, its efforts in the dashboard 2026-10-27 22:41:02 +00:00
maya.py DeepSeek: two quants side by side - a second quant's setup no longer takes the first off the Models page 2026-11-17 14:28:56 +00:00
maya.sh Metal: GLM-5.3-Flash on Apple Silicon (maya-metal), experimental (#334) 2026-10-30 01:34:05 +00:00
README.ja.md README: the speed rows from #978, #997, #999 and #1005 in the Japanese, Chinese and Portuguese READMEs too 2026-11-17 14:30:28 +00:00
README.md docs: the IQ2 trunk ships as the complete set Hy4-flash-IQ2_XXS-0000{1,2}-of-00002 2026-11-19 21:09:31 +00:00
README.pt-BR.md README: the speed rows from #978, #997, #999 and #1005 in the Japanese, Chinese and Portuguese READMEs too 2026-11-17 14:30:28 +00:00
README.zh-CN.md README: the speed rows from #978, #997, #999 and #1005 in the Japanese, Chinese and Portuguese READMEs too 2026-11-17 14:30:28 +00:00
SECURITY.md Repository presentation: new logo, issue forms, docs index, SECURITY.md (#881) 2026-11-06 12:37:00 +00:00
setup.py Setup: the line under the screen's logo names the model being set up - "your model" until the model question, then the one picked (or a start's config's); it said GLM-5.3-Flash whichever model was picked 2026-11-07 19:05:41 +00:00
setup.sh Metal: GLM-5.3-Flash on Apple Silicon (maya-metal), experimental (#334) 2026-10-30 01:34:05 +00:00
START-MAYA.bat Drop the experimental mark from AMD, Windows and the EXL3 quants 2026-11-04 00:22:06 +00:00
VERSION Project Maya v1.1.66 2026-11-17 17:48:28 +00:00

Hy4-flash Uncensored on your RTX 3090s

Tencent's 220B MoE with 256K context, vision and MTP. 251 tok/s on 4 cards, 70 to 104 on 2, and it runs on ONE 3090 in a 64 GB box.

Read the guide · Weights on Hugging Face · Quick start

Start with docs/HY4-FLASH.md. Speeds, memory per setup, how to switch the uncensored vector on and off, and every config.

4x RTX 3090 2x RTX 3090 1x RTX 3090
Decode, tok/s 176 to 251 70 to 104 (IQ2: up to 123) 37 to 54 (IQ2: up to 68)
Prefill, tok/s 2947 1225 (IQ2: 1999) 1510
RAM about 60 GiB 137 GiB 137 GiB, or 45 GiB with IQ2 + NVMe

What you get

  • maya-hy4f, an engine for Tencent Hy4-flash: the full 262144 token context, image input, MTP speculative decoding, OpenAI and Anthropic APIs, tool calls.
  • 1, 2 or 4 cards from the same weights. What doesn't fit in VRAM stays in RAM and the CPU computes it. 2 cards agree with 4 as closely as two 4 card runs agree with each other.
  • Uncensored with one file. A 4 MB refusal vector the engine projects out of the model as it runs: refusals with thinking off drop from 139 to 32 out of 146, with thinking on from 22 to 3 out of 24. Delete one config line and you have the stock model again.
  • Small machines too. An IQ2 trunk and an Engram table read from NVMe bring one card down to 45 GiB of RAM.

Quick start

git clone -b hy4-flash https://github.com/alesha-pro/project-maya && cd project-maya
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON \
  -DCMAKE_CUDA_ARCHITECTURES=86 -DCUDAToolkit_ROOT=/usr/local/cuda-12.8 \
  -DCMAKE_CUDA_COMPILER=/usr/local/cuda-12.8/bin/nvcc -DSTRATA_BUILD_TESTS=OFF
cmake --build build -j 24 --target maya-hy4f
hf download alesha-pro/Hy4-flash-Uncensored-GGUF --exclude "Hy4-flash-IQ2_XXS-*" --local-dir /models/Hy4-flash-Uncensored-GGUF
# set exe and cwd in the config to this checkout, then
python -m serve.server --engine maya --config docs/hy4-flash/hy4f-2gpu.json --host 127.0.0.1 --port 18000

Configs for 4, 2 and 1 card are in docs/hy4-flash/. The full walkthrough, with the IQ2 and NVMe options, is in the guide.

About this repo

This is a fork of Project Maya (v1.1.66), the engine family by Peasant Smith (@mw00) and the Maya contributors, which grew out of Strata by Niko1221. The hy4-flash branch adds the Hy4-flash engine (src/hy4f/), its offload modes and the refusal vector support. The rest of Maya (GLM-5.3, DeepSeek-V4.1-Flash, MiniMax-M3.1-Flash and the app around them) is still in the tree but isn't maintained here: for those models use upstream Maya and its README.

Weights: Tencent Hy4-flash, quantized by AngelSlim (Q3_K) and AtomicChat (IQ2 experts), packaged with a requantized MTP layer in alesha-pro/Hy4-flash-Uncensored-GGUF.

License

The code is MIT, as upstream (LICENSE). The model weights are under the Tencent Hy License 1.0.