Run real AI models on the GPU you already own. No PyTorch required. Language, speech, image and video models from one engine and one container format.
Your hardware, not a rented API. NeuroBrix plans where each part of a model runs from your machine's hardware profile and the model's container: one GPU, several GPUs, streamed through GPU memory, or offloaded to the host. A request that does not fit is refused with the figures, never silently degraded.
One engine for every family. A mixture-of-experts language model, a speech recognizer and a video diffusion model run through the same engine from the same .nbx container: 49 models on the hub , no pipeline per model.
No PyTorch underneath, if you want. The Triton engine runs on nbxtensor , our tensor library, with kernel settings certified per GPU class against a float64 reference. The PyTorch engine runs the same container, so each can be checked against the other.
Runs on hardware you own
Three things to try, one command each:
If NeuroBrix runs a model for you, a ⭐ helps other people find it.
Hub | Documentation | Releases | Contributing | GitLab mirror
One engine and one container format for every family it runs. A model is shipped as a .nbx container that holds its computation graph, its weights, the way its components connect, and its runtime defaults. The engine reads all of that from the container. There is no hand-written pipeline per model: the same runtime executes a mixture-of-experts language model, a speech recognizer, a text-to-speech model and a video diffusion model through a small set of generic execution flows (autoregressive decoding, iterative denoising, encoder-decoder, and others).
Two independent compute branches over the same container. The default branch runs the graph through PyTorch (ATen, with cuDNN and cuBLAS on NVIDIA GPUs). The Triton branch ( --triton ) runs the same graph through nbxtensor, NeuroBrix's tensor library (its Triton kernels and its tensor type), instead of PyTorch's operator library. The branches the container and the placement plan, not compute code, so one can be checked against the other.
Placement is computed, not configured. NeuroBrix reads the machine's devices and memory from its hardware profile and plans where each component runs: on one GPU, across several GPUs, streamed through GPU memory, or offloaded to host memory. neurobrix run --explain-plan prints the chosen plan and the alternatives it rejected, without loading the model.
A request that does not fit is refused with figures. When the plan cannot hold a request on your hardware, NeuroBrix stops with an error that names what was needed and what was available, rather than silently degrading the output.
.nbx containers are built from the original published weights. To run a model you need only NeuroBrix: neurobrix import downloads ready-made containers from the hub.
Install and first run
NeuroBrix needs Python 3.10 or newer. The current release on PyPI is 0.6.16 ( release notes ). This README describes main , which is ahead of that release; where main differs, the text says so.
It has two engines. The Triton engine ( --triton ) runs on nbxtensor and Triton and needs no PyTorch. The PyTorch engine ( --compiled ) needs PyTorch, installed from the index that matches your hardware. With no mode flag, a run takes the PyTorch engine where PyTorch is installed and the Triton engine where it is not, and its launch line says which.
Triton engine, NVIDIA GPU (Linux). Install the NVIDIA driver, then:
and run; without PyTorch the run takes the Triton engine ( engine: triton (torch not installed) ). The CUDA runtime library comes with nbxtensor; nothing else is needed.
PyTorch engine, NVIDIA GPU (Linux). Install the PyTorch CUDA build that your driver supports (see the selector on pytorch.org ), then NeuroBrix with its pytorch extra. pip install torch on its own pulls the default PyTorch wheel from PyPI, which may be built for a CUDA version your driver or GPU cannot use; you would then get an engine that silently runs on CPU.
NVIDIA V100 (Volta). Current CUDA 13 builds of PyTorch no longer support Volta. Use a cu126 build. On main the PyTorch engine needs torch 2.14.0 exactly (the release it is validated with) and refuses any other by name before any weight loads; 0.6.16 accepts torch 2.1.0 or newer.
Apple Silicon (macOS). The Triton engine runs on the Apple GPU through Metal. PyPI publishes no Triton for macOS: install-metal installs NeuroBrix's Triton build for Apple GPUs ( NeuroBrix/triton-ext ; upstream: triton-lang/triton-ext#126 ), each wheel checked against the sha256 written in nbxtensor. Wheels exist for Apple silicon on macOS 14 or newer, CPython 3.10 to 3.13; install-metal picks the one for your macOS and Python:
Xcode's Metal toolchain is the other requirement. The PyTorch engine also runs on the Apple GPU, through MPS: pip install torch "neurobrix[pytorch]" .
CPU only (the PyTorch engine).
On the CPU of a machine that has an NVIDIA GPU. Hide the GPU from NeuroBrix with CUDA_VISIBLE_DEVICES=-1 : the machine is then detected without a GPU and every model is planned on its CPU (the PyTorch engine, with any PyTorch build). The variable must be set in the shell that starts neurobrix run or neurobrix serve .
In PowerShell: $env:CUDA_VISIBLE_DEVICES = "-1" , then the same command. Windows support, this variable included, is on main and comes with the release.
neurobrix doctor checks that the neurobrix command is on your PATH, whether the Triton engine can run (nbxtensor, Triton and a GPU runtime), which PyTorch build is installed if any, and whether it can see the GPUs your driver reports. It exits non-zero when neither engine can run.
One name per model. A model is named by its hub name, / (its Hugging Face or vendor repository's). neurobrix import records that name beside the installed model, and --model ( run , serve , upscale ), remove , neurobrix list and the HTTP API all use it; there is no second, short name. A model installed before 0.6.3 keeps its directory name until neurobrix import / is run once for it (nothing is downloaded again), and list and every use say so in one line.
A run prints its result on stdout (the generated text, the transcript, or SAVED: for a file) and a few status lines on stderr: the engine in use and the run time. On the first launch on a machine that has no hardware profile, NeuroBrix creates that profile once; every later launch reads it. A profile given with --hardware is read as it is. -v adds the engine's developer lines — the plan, the loaders, the kernel directory, the timings — -vv the full Python error detail of an error, and NBX_LOG=debug in the environment both.
neurobrix serve keeps a model loaded in a background daemon between requests; chat talks to a language model through it, run uses it when it serves the same model, and stop unloads it:
Whether the weights stay on the device between requests (warm) depends on the plan Prism chooses for the machine; neurobrix serve -v says which. Details: Serving and chat .
The conversation cache
The KV cache belongs to the chat session, on both engines. Each turn matches the conversation's token IDs against what the cache already holds and prefills only the new ones. Prism chooses the session's prefill chunk from the certified kernel times ( --explain-plan says which, or why none); with that chunk, a turn served from the cache gives the same bytes as the same conversation prefilled together.
A conversation has a ceiling, stated when serve starts ("served context: up to N positions a session"): the positions the card's cache holds ( session_reach in run --explain-plan ) plus, past them, those the KV host tier's of host memory holds, within the model's window. A turn that would pass it is refused with that ceiling (over HTTP: 400 context_length_exceeded ); older turns are never summarised or dropped. /context in chat shows the conversation's exact token count, the ceiling and the tokens the cache holds; /new starts again.
run --turns plays a JSON list of user messages as one session, through the same code the daemon runs, and prints each answer with the tokens its turn matched and prefilled:
OpenAI-compatible API
neurobrix serve --http opens an HTTP server that speaks the OpenAI API on the same daemon: the same loaded model, the same queue and the same inference thread as chat and run , so they the warm weights.
The address is 127.0.0.1:8765 unless --http-host / --http-port say otherwise; an address other than loopback is refused without --api-key-file , and every request then sends Authorization: Bearer . The endpoints served are those the loaded model's family has: /v1/models , /v1/chat/completions (streamed as Server-Sent Events, tool calls parsed from the format the model's chat template declares, a thinking model's reasoning in reasoning_content ), /v1/completions , /v1/images/generations , /v1/audio/speech and /v1/audio/transcriptions , and /v1/embeddings for an embedding family. The model field is the model's one name.
With the OpenAI Python client ( pip install openai on the client side; the engine does not need it):
A parameter the engine does not honour ( stop , logprobs , n > 1, ...) is refused by name in the OpenAI error object, never ignored. Every endpoint, parameter and setting: Serving and chat .
Hardware and modality coverage
Several GPUs in one machine are used automatically when a model does not fit on one. The first launch names each GPU from what the operating system ships (the PCI bus on Linux, Win32_VideoController on Windows), with its platform and whether it is integrated. When a run meets a device out-of-memory in one of its components, it records what that component needed, re-plans it and goes on, once, keeping the components already finished.
On an Intel Mac the integrated GPU is named from system_profiler without its platform; it is not driven, and the engine runs on the CPU.
On main , pip install "neurobrix[pytorch]" asks for torch 2.14.0 exactly, on every platform (0.6.16 asks for torch 2.1.0 or newer): it is the release the PyTorch engine is validated with, and the engine refuses any other torch by name before any weight loads. PyPI's torch 2.14.0 wheel for macOS needs an Apple-silicon Mac on macOS 14 or newer; the Triton engine needs no torch.
Constrained decoding needs the grammar engine, the nbxgrammar package, which pip install neurobrix installs on Linux x86_64 and aarch64, macOS arm64 and x86_64 and Windows x86_64; on any other platform no wheel of it exists and a constrained request is refused by name ( 501 constrained_decoding_not_installed ). It enforces a subset of JSON Schema (a constraining keyword outside it is refused by name) and writes tool calls in the format the model's template declares.
A very long single prompt on the compiled engine is prefilled in chunks of the rows the plan prices.
A daemon holds one model; a conversation past the card's cache spills to host memory one sequence at a time (batch 1).
The macOS 14 Metal wheels (CPython 3.10-3.13) are published at apple-v0.1.0+triton3.8.0-macos14 and python -m nbxtensor install-metal selects them (since nbxtensor 0.0.9).
The release notes say more. Read them before filing a bug.
The hub lists 49 models. It is the live list ( neurobrix hub , or neurobrix.org/models ). Each identifier below is what you pass to neurobrix import , and then to --model .
A model being on the hub means its container can be downloaded. It does not mean every model works on every hardware and in every execution mode; the release notes say which do not.
The family is read from the container, so run takes the inputs that family needs. Every command and flag: the CLI reference ( neurobrix run --help prints the same).
The same flags apply to neurobrix serve and neurobrix upscale ; upscale also takes them as --mode compiled|sequential|triton|triton-sequential . With no flag, each command takes the PyTorch engine where PyTorch is installed and the Triton engine where it is not.
Downloaded archives are kept in ~/.neurobrix/store/ and extracted models in ~/.neurobrix/cache/ . --no-keep deletes the archive once it is extracted. import --container FILE.nbx installs from a container already on the machine, checked against the sha256 the hub serves. Read commands ( info , list , hub , inspect , doctor , run --explain-plan ) accept --json for scripting; so do import (one event per phase) and remove .
A model may declare sub-components (a text front end, for one). They are downloaded once, at its first run, and checked against the checksum its container states. neurobrix processor fetch [--to FOLDER] , neurobrix processor install [--for ] and neurobrix processor list do it ahead of time, for example to carry them to an offline machine. This is on main , not in 0.6.16.
Certify your GPU and it
nbxtensor's kernel settings, which the Triton engine runs, are certified per launch key (the kernel, its shape class and dtypes) and per GPU class, against a float64 oracle, and shipped. A key your GPU class has no certificate for is swept at run time and kept on your machine; certifying it makes it permanent, and sharing it means nobody with your GPU sweeps it again. The four steps, with the commands, are in nbxtensor's README, Certify your own hardware :
Run the models you use with --triton ; the keys no certificate covers are swept and kept in ~/.neurobrix/replay_cache/ .
Certify them: neurobrix autotune certify --profile --keys --out ./my-certificates .
Check that they are served: the same run with NEUROBRIX_AUTOTUNE_CERTIFIED_DIR=./my-certificates and --certified-only says 0 swept at runtime and gives the same output.
them: add the files under src/neurobrix/config/autotune/ / / and open a pull request with the certificate template ( ?template=certificate.md ): your GPU, driver, the commands and the output of step 3.
Certified your GPU? your certificates — every class certified is a class nobody autotunes again.
A container is a directory archive with a manifest, a topology describing how components connect, runtime defaults, and one directory per component (text encoder, transformer, VAE, language-model head, and so on), each with its computation graph and its weights in safetensors format. Tokenizers and other non-neural modules travel in the same archive; on main a model may also declare sub-components that are downloaded once and checked against the container's checksum (see Managing models). The format is described in docs/architecture/nbx-format.md .
Bug reports, model requests, hardware reports and code are welcome. Read CONTRIBUTING.md first; it covers the development setup, the engine's design rules (no hard-coded model values, no silent fallbacks, no model-specific logic in the runtime) and the review process. Security issues follow SECURITY.md and are not filed as public issues.
Issues and pull requests: GitHub , mirrored on GitLab
Model hub: neurobrix.org/models
Documentation: docs.neurobrix.org and the docs/ directory
The tensor library (nbxtensor) and its own documentation: github.com/NeuroBrix/nbxtensor/tree/main/docs
Building applications and coding agents: docs/BUILD_WITH_AGENTS.md
Roadmap: docs/roadmap.md
Changes: CHANGELOG.md
NeuroBrix runs models; it does not create, train or own them. Every model on the hub is the work of its authors and stays under its original license, which the hub shows and which neurobrix import asks you to accept. Some are restricted: for example fishaudio/s1-mini is licensed CC-BY-NC-SA-4.0 (non-commercial use only). You are responsible for using each model within its license. The hub's packages contain the original published weights repackaged in the .nbx format. If you are a model author and believe a package does not respect your license, open an issue on this repository.
The NeuroBrix engine, CLI, runtime and container tooling are released under the Apache License 2.0 . The license does not cover model weights.
Developed by Hocine Benkelaya · Supported and funded by Neural Network Holding Ltd · Commercial distribution by WizWorks OÜ .
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
