Skip to content
nixcat-devPublic

About

Local inference engine for Qwen3.8-Flash-Next (soon to be Qwen4-Flash) on NVIDIA Ada Lovelace and Ampere

Resources

Contributing

Stars

123 stars

Watchers

4 watching

Forks

Repository files navigation

Adamant

简体中文

Adamant is a fork of Basalt, the local inference engine for the Qwen3.8-Flash-Next mixture-of-experts model, itself based on Strata. It targets NVIDIA Ada Lovelace (RTX 40-series, sm_89) and Ampere (RTX 30-series, sm_86) GPUs; the Ampere port builds but is not yet validated.

Status: early development. The Ada port builds and passes its Linux test suite on an RTX 4090, but numerical quality and headline performance are still open gates — see Ada execution and validation. The performance numbers below are development runs on one card, not the maintainer's headline numbers. Expect breakage; flags, defaults and the pack layout can still change. Linux and Windows platform support is retained as a port requirement.

Experts that do not fit in VRAM live in system RAM, and optionally on a second GPU used as a peer expert tier. A large MoE model runs on one workstation, behind an OpenAI- and Anthropic-compatible API.

The web UI while a reply streams

Help wanted: have some spare compute to lend for testing? See Contributing.

Requirements

  • Linux x86-64 with AVX2 (AVX-512 is used when present), or Windows 10 1903+ x64 (platforms).
  • An NVIDIA Ada Lovelace (compute capability 8.9) or Ampere (8.6) GPU with CUDA 13. Ampere is not yet validated: the sm_86 build compiles, but parity, quality and performance on Ampere are still to be measured.
  • CMake 3.24 or newer, GCC 13 or newer (Linux), Python 3.10 or newer, and enough system RAM for the experts that do not fit in VRAM.

Quick start

git clone <adamant remote> && cd adamant
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j                  # bin/basalt, bin/basalt-bench, bin/basalt-probe, bin/basalt-vision
pip install -r requirements.txt
hf download jesdga/Qwen3.8-Flash-Next-Basalt Qwen3.8-FN-GSQ-RCO-IQ3_S.basalt --local-dir models

The build targets sm_89 by default and also builds for sm_86; -DCMAKE_CUDA_ARCHITECTURES accepts 86, 89 or 86;89, and anything else is refused. The toolchain and test invocations used for the results below are in Ada execution and validation, which also lists what is still open on Ampere.

The binary and file-format names stay basalt and .basalt: the packs are the same files Basalt reads, so a fork that renamed them would break every existing model. Adamant is the project name, not a new format.

Put your settings in basalt_config.json: the models list names the packs, and each entry's own gpu and kv win over the top-level engine block (models and the router):

{
  "version": 2,
  "models": [{ "model": "models/Qwen3.8-FN-GSQ-RCO-IQ3_S.basalt", "gpu": "0,1", "kv": "int8" }],
  "engine": { "expert-cache": "auto", "prefill": "auto", "resident-experts": true },
  "server": { "port": 8080 }
}
bin/basalt serve --config basalt_config.json

The server listens on 127.0.0.1. Every setting: configuration. More examples: example configurations.

Measured on Ada

Development measurements, not the maintainer's headline runs: one RTX 4090 at a 450 W power limit, the GSQ-RCO IQ3_S pack converted with tools/convert, int8 KV, expert cache auto — all experts held in 17.4 GiB of VRAM and 29.4 GiB of page-locked RAM, none read from the SSD.

A measured Adamant-versus-Strata development comparison across three fixtures and two prompt lengths is documented in the comparison report.

basalt-bench fixtures, MTP drafter off → on: conv 115 → 190, struct 116 → 372, prose 116 → 169 tok/s (draft acceptance 69%, 94%, 60%). The spread is drafting acceptance per content, not engine speed. No accuracy-reducing option is enabled (--route-tail-skip, --route-prior, --relaxed-drafting are off).

Models

Qwen3.8-Flash-Next
Packs default Qwen3.8-FN-NVFP4-DQ6_K, Hugging Face
Context default 8,192; --max-context sets it
Drafting MTP drafter in the pack, on; --spec default 8
Images yes
Guide guide
Precision precision

All models compared: models.

On Ada the NVFP4 packs run through the integer MMQ path rather than native FP4 tensor instructions, so their numerics differ from a Blackwell run; the IQ3_S, Q4_K and Q5_K formats use the same kernels. Qwen3.8-FN-GSQ-RCO-IQ3_S is the quant the measurements above used, and the recommended starting point on a 24 GB card. A pack can be built locally from a GGUF, drafter included (model file, precision on Ada).

Documentation

Credits

License

MIT, see LICENSE.

About

Local inference engine for Qwen3.8-Flash-Next (soon to be Qwen4-Flash) on NVIDIA Ada Lovelace and Ampere

Resources

Contributing

Stars

123 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages