avifenesh/memra

Rust + CUDA LLM inference engine for Blackwell (Tuned specifically on RTX PRO 6000, RTX 5090, B200): OpenAI-compatible (+converse and ant) serving, per-model X hardware exactness gates. NVFP4/mixed (fp8 hybrid, 4o6, etc - correctness, performance, hardware specific adapted) main quant support.

8

stars

5,777

commits

Rust

primary language

Sep 9, 2026

updated

tiyuvta.ai
b200
blackwell
cuda
deepseek
deepseek-v4
gemma
gguf
glm
inference
inference-engine
llm
llm-serving
mixture-of-experts
nvfp4
openai-api
qwen
rtx-5090
rtx-pro-6000
rust
speculative-decoding
Browse cluster: LLM Inference Optimization

README

memra

ci License: MIT release LinkedIn

Rust + CUDA inference engine tuned separately for RTX PRO 6000 Blackwell and RTX 5090, with OpenAI-compatible serving and model-specific correctness gates.

Install · Models · Serving · Performance · Hosted API

Want to try Memra without operating a GPU? Open the hosted instance →. Its live model catalog, access path, prices, and terms are documented there.

Quick start

Prebuilt binaries require Linux x86_64, an NVIDIA driver with CUDA 13 runtime support, and the CUDA runtime libraries. The installer selects the GPU build, verifies its checksum, and does not require nvcc.

curl -fsSL https://raw.githubusercontent.com/avifenesh/memra/main/tools/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
kernel-check                  # expect: ALL GREEN

Start a server with a supported public checkpoint. The first run downloads and caches the model:

MEMRA_MODELS="q38=hf:Avifenesh/Qwen3.8-27B-NVFP4-MTP-GGUF:Q5K-mtp" \
memra-server

The server listens on 127.0.0.1:8080. Send a streaming chat completion from another terminal:

curl -sS -N http://127.0.0.1:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "q38",
    "messages": [{"role": "user", "content": "Explain KV caching in one sentence."}],
    "max_tokens": 128,
    "stream": true
  }'

Use the cookbook for qualified model-and-card configurations. See installation for source builds and platform requirements.

Project spirit

Memra is narrow on purpose. The best execution path depends on the model, checkpoint, hardware, and workload, so Memra measures those combinations separately instead of promising that one loader or one default supports everything. A fast path is promoted only when its own correctness and performance evidence is current.

The project favors explicit support, reproducible receipts, and useful failures over silent fallbacks. Issues, model requests, hardware reports, and evidence-backed pull requests are welcome. Look elsewhere if you need broad hardware coverage, a large architecture catalog, or a Python library embedded in your application.

Choose a path

By model: Qwen3.8 27B · Qwen3.5 9B · Qwen3.6 27B · Qwen3.6 35B-A3B · Qwen-AgentWorld 35B-A3B · Ornith 1.5 35B-A3B · Ornith 1.0 9B · Ornith 1.0 35B · Gemma 4 12B · Gemma 4 26B-A4B · Gemma 4 31B · Gemma 4 E4B · Step 3.7 Flash · DeepSeek V4 Flash

By hardware: RTX PRO 6000 Blackwell · RTX 5090 / 50-series · H100 · Ada · B200

By workload: interactive agents · long-context and prefix reuse · batch throughput · multimodal · large models on multiple GPUs

Documentation

DocumentUse it for
InstallationPrebuilt requirements, source builds, architecture selection
Model cardsBest starting path for each supported model
Hardware cardsRecommended use by GPU target
Workload cardsRecommended use by request shape
CookbookCopy-paste model and card configurations
ModelsSupported checkpoints, formats, drafters, and hardware
ServingHTTP contract, caching, auth, admission, multi-GPU, operations
API surfacesAnthropic Messages and OpenAI Responses compatibility
Embeddings & rerank/v1/embeddings (OpenAI schema) and /v1/rerank (Cohere shape) — prefill-only capture surfaces, Serving
PerformanceMeasurements, methodology, rigs, and receipts
FlagsAudited environment-variable reference
TestingCorrectness gates and evidence requirements
ArchitectureRuntime structure and Blackwell implementation ledger
DecisionsAdopted and rejected design choices with evidence
ReleasesChangelog and release artifacts

Issues and requests

Issues and requests are welcome:

For a model request, include the exact checkpoint, quantization, target GPU, and why the model is useful. For a performance report, include the command, model artifact, hardware, and raw output.

Contributing

Issues are welcome even without a proposed fix. Pull requests are welcome when they include the proof required for the affected path; GPU changes cannot be validated by GitHub's compile-only runners. Start with CONTRIBUTING.md.

License

MIT — see LICENSE. Built by Avi Fenesh at tiyuvta.

Contributors

avifenesh

5,772 commits

imgbot[bot]

2 commits

shahshwap

2 commits

ImgBotApp

1 commits

avifenesh/memra

Rust + CUDA LLM inference engine for Blackwell (Tuned specifically on RTX PRO 6000, RTX 5090, B200): OpenAI-compatible (+converse and ant) serving, per-model X hardware exactness gates. NVFP4/mixed (fp8 hybrid, 4o6, etc - correctness, performance, hardware specific adapted) main quant support.

8

stars

5,777

commits

Rust

primary language

Sep 9, 2026

updated

tiyuvta.ai
b200
blackwell
cuda
deepseek
deepseek-v4
gemma
gguf
glm
inference
inference-engine
llm
llm-serving
mixture-of-experts
nvfp4
openai-api
qwen
rtx-5090
rtx-pro-6000
rust
speculative-decoding
Browse cluster: LLM Inference Optimization

README

memra

ci License: MIT release LinkedIn

Rust + CUDA inference engine tuned separately for RTX PRO 6000 Blackwell and RTX 5090, with OpenAI-compatible serving and model-specific correctness gates.

Install · Models · Serving · Performance · Hosted API

Want to try Memra without operating a GPU? Open the hosted instance →. Its live model catalog, access path, prices, and terms are documented there.

Quick start

Prebuilt binaries require Linux x86_64, an NVIDIA driver with CUDA 13 runtime support, and the CUDA runtime libraries. The installer selects the GPU build, verifies its checksum, and does not require nvcc.

curl -fsSL https://raw.githubusercontent.com/avifenesh/memra/main/tools/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
kernel-check                  # expect: ALL GREEN

Start a server with a supported public checkpoint. The first run downloads and caches the model:

MEMRA_MODELS="q38=hf:Avifenesh/Qwen3.8-27B-NVFP4-MTP-GGUF:Q5K-mtp" \
memra-server

The server listens on 127.0.0.1:8080. Send a streaming chat completion from another terminal:

curl -sS -N http://127.0.0.1:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "q38",
    "messages": [{"role": "user", "content": "Explain KV caching in one sentence."}],
    "max_tokens": 128,
    "stream": true
  }'

Use the cookbook for qualified model-and-card configurations. See installation for source builds and platform requirements.

Project spirit

Memra is narrow on purpose. The best execution path depends on the model, checkpoint, hardware, and workload, so Memra measures those combinations separately instead of promising that one loader or one default supports everything. A fast path is promoted only when its own correctness and performance evidence is current.

The project favors explicit support, reproducible receipts, and useful failures over silent fallbacks. Issues, model requests, hardware reports, and evidence-backed pull requests are welcome. Look elsewhere if you need broad hardware coverage, a large architecture catalog, or a Python library embedded in your application.

Choose a path

By model: Qwen3.8 27B · Qwen3.5 9B · Qwen3.6 27B · Qwen3.6 35B-A3B · Qwen-AgentWorld 35B-A3B · Ornith 1.5 35B-A3B · Ornith 1.0 9B · Ornith 1.0 35B · Gemma 4 12B · Gemma 4 26B-A4B · Gemma 4 31B · Gemma 4 E4B · Step 3.7 Flash · DeepSeek V4 Flash

By hardware: RTX PRO 6000 Blackwell · RTX 5090 / 50-series · H100 · Ada · B200

By workload: interactive agents · long-context and prefix reuse · batch throughput · multimodal · large models on multiple GPUs

Documentation

DocumentUse it for
InstallationPrebuilt requirements, source builds, architecture selection
Model cardsBest starting path for each supported model
Hardware cardsRecommended use by GPU target
Workload cardsRecommended use by request shape
CookbookCopy-paste model and card configurations
ModelsSupported checkpoints, formats, drafters, and hardware
ServingHTTP contract, caching, auth, admission, multi-GPU, operations
API surfacesAnthropic Messages and OpenAI Responses compatibility
Embeddings & rerank/v1/embeddings (OpenAI schema) and /v1/rerank (Cohere shape) — prefill-only capture surfaces, Serving
PerformanceMeasurements, methodology, rigs, and receipts
FlagsAudited environment-variable reference
TestingCorrectness gates and evidence requirements
ArchitectureRuntime structure and Blackwell implementation ledger
DecisionsAdopted and rejected design choices with evidence
ReleasesChangelog and release artifacts

Issues and requests

Issues and requests are welcome:

For a model request, include the exact checkpoint, quantization, target GPU, and why the model is useful. For a performance report, include the command, model artifact, hardware, and raw output.

Contributing

Issues are welcome even without a proposed fix. Pull requests are welcome when they include the proof required for the affected path; GPU changes cannot be validated by GitHub's compile-only runners. Start with CONTRIBUTING.md.

License

MIT — see LICENSE. Built by Avi Fenesh at tiyuvta.

See what people are saying

Contributors

avifenesh

5,772 commits

imgbot[bot]

2 commits

shahshwap

2 commits

ImgBotApp

1 commits

Languages

Rust

36.7%

Sass

18.7%

Python

12.5%

Shell

11.1%

HTML

10.5%

Cuda

9.6%