This setup builds Basalt in a CUDA 13 development image, then runs it from a separate CUDA runtime image. The source checkout happens during the image build; no Basalt source tree is needed in this workspace.
- Linux x86-64 with an NVIDIA Blackwell GPU (compute capability 12.0).
- Docker Engine, Docker Compose, and NVIDIA Container Toolkit configured for Docker.
- Enough system RAM and disk space for the model. The model itself is not included in the image.
-
Copy
.env.exampleto.envand setBASALT_API_KEYto a strong secret. On Linux, setLOCAL_UIDandLOCAL_GIDto the IDs that own this workspace if they differ from1000. -
Put a Basalt
.basaltmodel at./models/model.basalt, or edit the model path inbasalt_config.jsonto match your local file. -
Build and start the service:
mkdir -p models cache docker compose up --build
The API and web UI are available at http://localhost:8080. The port is published only on the host's loopback interface, and the configured API key is required by the server.
./models is mounted read-only. Models must be downloaded manually to this folder.
Change - /root/models:/models:ro to - ./models:/models:ro or to your preferred model folder in docker-compose.yml
./cache persists Basalt's runtime cache, and the configuration file is mounted read-only.
All host paths are relative to this workspace.
BASALT_REFselects the upstream branch or tag (default:main).BUILD_JOBScontrols the parallel build jobs (default:16, one per physical core on a 16-core host; set it to32to use all logical threads).
For example, set either value in .env, then rebuild with
docker compose up --build.
Basalt's build and runtime requirements are documented in the upstream README, building guide, running guide, and configuration reference.
The Dockerfile, docker-compose.yml, basalt_config.json, .env.example and
the docs in this repository are MIT — see LICENSE.
What they run is someone else's:
- Basalt is MIT. It in turn includes
Strata (MIT), ggml and llama.cpp (MIT), stb_image (MIT) and Infernix
(Apache-2.0). See its
THIRD_PARTY_LICENSES. - The
.basaltmodel files are not MIT. They derive from Qwen3.8-Flash-Next is distributed under the Qwen Community License 1.0 - The GSQ-RCO quants come from ISTA-DASLab (IST Austria). Citing GSQ and RCO is requested.