### Install and run Atlas with curl and atlasctl run with a model ID: atlasctl run Qwen3.5-35b-a3f8-mtp curl install script and run command.... response. description: Source: https://github.com/avarok-cybersecurity/atlas/blob/main/README.md This is the quick start command sequence to install and immediately run a model named Q ```bash curl -fsSL https://docker.com/install.sh | sh atlasctl run qwen3.30-35b-a3f8-mtp ``` -------------------------------- ### Install and run development server Source: https://github.com/avarok-cybersecurity/atlas/blob/main/dez/README.md Install dependencies and start the development server. Requires Node >= 20.19 (Vite 8). The dev server runs at http://localhost:5173. ```bash npm install npm run dev # http://localhost:5173 ``` -------------------------------- ### Run a model recipe with atlasctl Source: https://github.com/avarok-cybersecurity/atlas/blob/main/site/static/llms.txt Starts a model recipe by its ID. The example runs the qwen3.6-35b-a3b-fp8-mtp recipe; replace the ID with any model from the catalog. ```sh atlasctl run qwen3.6-35b-a3b-fp8-mtp ``` -------------------------------- ### Install cargo-llvm-cov and run coverage script Source: https://github.com/avarok-cybersecurity/atlas/blob/main/CONTRIBUTING.md One-time setup installs cargo-llvm-cov and the llvm-tools component, then runs the coverage script. The first command produces LCOV plus a per-file summary; setting COVERAGE_HTML=1 also generates an HTML report in target/llvm-cov/html/. CI runs the same script, so local and CI numbers stay in sync. ```bash cargo install cargo-llvm-cov # one-time rustup component add llvm-tools-preview scripts/coverage.sh lcov.info # LCOV + a per-file summary table COVERAGE_HTML=1 scripts/coverage.sh lcov.info # ...plus target/llvm-cov/html/ ``` -------------------------------- ### Expected startup log for LoRA adapter Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/lora-adapter-mode-settings.md Shows the expected log output when the LoRA adapter is installed and the server starts listening. Confirms the adapter is installed on 6 layers with specified parameters and the server is listening on port 8877. ```text LoRA adapter 'demo' installed on 6 layers (r=8, max_rank=64, max_loras=8, pool=117.0 MiB) Listening on 0.0.0.0:8877 ``` -------------------------------- ### Install host toolchain prerequisites Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/porting/amd-strix-halo-scale.md Installs build-essential and libnuma packages required for SCALE host compilation and HSA runtime linking. Without these, compilation fails with specific errors. ```bash sudo apt-get update sudo apt-get install -y build-essential libnuma1 libnuma-dev ``` -------------------------------- ### Start 35B model with tool calling enabled (Docker) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/QUICKSTART.md Starts the Atlas server with the Qwen3.5-35B model and enables tool calling via --tool-call-parser qwen3_coder. Uses NVFP4 quantization for weights and KV cache, with speculative decoding and SLai scheduling. ```bash sudo docker run -d \ --name atlas-35b-tools \ --network host --gpus all --ipc=host \ -v ~/.cache/huggingface:/root/.cache/huggingface \ avarok/atlas-gb10:latest \ serve Sehyo/Qwen3.5-35B-A3B-NVFP4 \ --port 8888 \ --max-seq-len 8192 \ --kv-cache-dtype nvfp4 \ --gpu-memory-utilization 0.88 \ --scheduling-policy slai \ --speculative \ --mtp-quantization nvfp4 \ --tool-call-parser qwen3_coder ``` -------------------------------- ### Deploy to dez.rs with rsync Source: https://github.com/avarok-cybersecurity/atlas/blob/main/dez/README.md Deploy the static site to dez.rs. Install dependencies, build, then rsync the build directory to the server. The build/ directory is the docroot; there is no server-side component or runtime. ```bash npm ci && npm run build rsync -av --delete build/ user@dez.rs:/var/www/dez.rs/ ``` -------------------------------- ### Start Atlas server with network exposure and auth Source: https://github.com/avarok-cybersecurity/atlas/blob/main/QUICKSTART.md Start the Atlas server bound to all network interfaces with bearer-token authentication. Requires a tokens file with one token per line and permissions chmod 600; clients must send Authorization: Bearer on every request. ```bash spark serve \ --bind 0.0.0.0 \ --require-auth \ --auth-tokens-file /etc/atlas/tokens.txt ``` -------------------------------- ### Download and verify DeepSeek-V4.1-Flash-GGUF shards with huggingface_hub Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/perf/B200_FIRST_HOUR_2026-09.md Run on the provider's storage VM or the node with the GPU not yet attached. Installs the huggingface_hub CLI, downloads the pinned revision's shards and tokenizer files into /data/dsv41-q2k, then computes and sorts sha256 checksums. Every line must match the table above; a mismatch means re-downloading that shard and nothing else starts. ```bash # on the provider's storage VM or the node with the GPU not yet attached pip install -U "huggingface_hub[cli]" hf download vcruz305/DeepSeek-V4.1-Flash-GGUF --revision 58d8ac86298fdf85a2440defee08b1abcad32e45 \ --include 'DeepSeek-V4.1-Flash-Q2_K-*.gguf' 'tokenizer.json' 'tokenizer_config.json' \ --local-dir /data/dsv41-q2k cd /data/dsv41-q2k && ls *.gguf | xargs -P 7 -n 1 sha256sum | sort -k2 | tee SHA256SUMS # every line must match the table above; a mismatch = re-download that shard, nothing else starts ``` -------------------------------- ### Run end-to-end benchmark with avarok-spark-bench Source: https://github.com/avarok-cybersecurity/atlas/blob/main/book/src/operations/benchmarks.md Start an Atlas server with the Qwen3.5-35B-A3B-NVFP4 model, then run the end-to-end benchmark harness. Wait for the server to report 'listening' before running the bench. Results are saved to target/criterion/. ```bash sudo docker run -d --name atlas-35b \ --network host --gpus all --ipc=host \ -v ~/.cache/huggingface:/root/.cache/huggingface \ avarok/atlas-gb10:latest \ serve Sehyo/Qwen3.5-35B-A3B-NVFP4 \ --max-seq-len 8192 --kv-cache-dtype nvfp4 \ --scheduling-policy slai \ --speculative --mtp-quantization nvfp4 ``` ```bash export AVAROK_BENCH_URL=http://localhost:8888 cd /path/to/atlas cargo bench -p avarok-spark-bench ``` -------------------------------- ### Start and enable Docker daemon Source: https://github.com/avarok-cybersecurity/atlas/blob/main/book/src/getting-started/troubleshooting.md Starts the Docker daemon and enables it to start on reboot. Use when the Docker daemon is not running. ```sh sudo systemctl start docker sudo systemctl enable docker # so it survives a reboot ``` -------------------------------- ### Bun test example (index.test.ts) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/site/CLAUDE.md Use bun test to run tests. This example imports test and expect from bun:test and defines a simple test case. ```ts import { test, expect } from "bun:test"; test("hello world", () => { expect(1).toBe(1); }); ``` -------------------------------- ### Run Atlas with NVMe high-speed swap (Docker run with io_uring flags) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/DEPLOYMENT.md Starts the Atlas container with GPU access, host IPC, port 8888, and the required security options (--security-opt seccomp=unconfined --ulimit memlock=-1) for io_uring. Mounts the HuggingFace cache and the fast NVMe directory, then serves a model with --max-seq-len 65536, --high-speed-swap, --high-speed-swap-cache-blocks-per-seq 64, and --high-speed-swap-dir. Without the security flags, io_uring setup fails and swap silently does nothing. ```bash # High-speed swap uses io_uring — it REQUIRES the two container flags below # (--security-opt seccomp=unconfined --ulimit memlock=-1). Without them the # io_uring setup fails and swap silently does nothing. docker run -d --gpus all --ipc=host -p 8888:8888 \ --security-opt seccomp=unconfined --ulimit memlock=-1 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ -v /mnt/fast-nvme/atlas-kv:/mnt/fast-nvme/atlas-kv \ avarok/atlas-gb10:latest \ serve \ --max-seq-len 65536 \ --high-speed-swap \ --high-speed-swap-cache-blocks-per-seq 64 \ --high-speed-swap-dir /mnt/fast-nvme/atlas-kv ``` -------------------------------- ### HARDWARE.toml for new hardware target Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/HARDWARE.md Example configuration for a new hardware target, showing required keys like name, vendor, arch, compute_capability, and memory specs. Only arch and vendor are load-bearing at build time; compute_capability is used by a test to ensure target_hint mapping. ```toml [hardware] name = "gb10" # matches the directory name vendor = "nvidia" # picks the compiler: nvidia | apple | amd | hip arch = "sm_121f" # forwarded verbatim to `nvcc -arch=` compute_capability = "12.1" # the device CC this target serves memory_bandwidth_gbps = 273 # documentation / roofline input memory_type = "LPDDR5X" memory_gb = 120 ``` -------------------------------- ### Build and run int8_gemm_test on dgx1 Source: https://github.com/avarok-cybersecurity/atlas/blob/main/MMQ_PORT_HANDOFF.md Builds the int8_gemm_test example with CUDA 13.0 and runs it. Requires the CARGO_TARGET_DIR, AVAROK_TARGET_HW=gb10, AVAROK_TARGET_MODEL=qwen3.6-27b, and AVAROK_TARGET_QUANT=nvfp4 environment variables. The build takes about 15 seconds. ```shell cd /workspace/atlas-prefill32k export PATH=/usr/local/cuda-13.0/bin:$PATH # build the microbench/test (kernels in kernels/gb10/qwen3.6-27b/nvfp4/w4a16_gemm.cu, module "w4a16"): CARGO_TARGET_DIR=/workspace/scratch-bench AVAROK_TARGET_HW=gb10 AVAROK_TARGET_MODEL=qwen3.6-27b \ AVAROK_TARGET_QUANT=nvfp4 cargo build --release -p spark-model --example int8_gemm_test # ~15s LD_LIBRARY_PATH=/usr/local/cuda-13.0/lib64 /workspace/scratch-bench/release/examples/int8_gemm_test # ncu (needs sudo -E): sudo -E /usr/local/cuda-13.0/bin/ncu --target-processes all \ # --kernel-name "regex:int8_gemm_..." --launch-count 1 --section WarpStateStats --section SpeedOfLight # standalone ldmatrix probe: nvcc -arch=sm_121a -o ldmatrix_probe /workspace/ldmatrix_probe.cu && ./ldmatrix_probe # server build (native, for end-to-end): same env, cargo build --release -p spark-server --bin spark # serve flags + AVAROK_BF16_TC_PREFILL etc: see /workspace/time_prefill.sh, /workspace/fp8m64_gate.sh # llama per-shape ref: test-backend-ops in /workspace/llama-cfff1fc-pin/bin (see scratch_llama_perf2.txt) ``` -------------------------------- ### Serve LoRA adapter with spark serve Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/lora-implementation-status.md Starts the server with a single PEFT LoRA adapter loaded at startup, applied as a runtime BF16 delta to every request. Uses --lora-adapter with NAME=PATH_OR_HF_ID and sets --max-lora-rank to 64. ```bash spark serve Hcompany/Holo-3.1-0.8B \ --lora-adapter my-ft=/path/to/peft-adapter-dir \ --max-lora-rank 64 ``` -------------------------------- ### Launch EP=2 multi-node with start-ep2.sh Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/GB10_DEPLOYMENT_GUIDE.md Canonical launcher for a two-node GB10 setup with one OpenAI endpoint on rank 0. Requires setting HEAD_IP and WORKER_IP environment variables. ```bash HEAD_IP=10.10.10.1 WORKER_IP=10.10.10.2 \ bash scripts/start-ep2.sh Sehyo/Qwen3.5-122B-A10B-NVFP4 ``` -------------------------------- ### Run avarok-spark-bench with Docker and cargo bench Source: https://github.com/avarok-cybersecurity/atlas/blob/main/book/src/crates/avarok-spark-bench.md Starts a server with Docker and runs the benchmark from another terminal, setting AVAROK_BENCH_URL to the server's address. Criterion stores results under target/criterion/. ```bash # Start a server somewhere docker run -d ... avarok/atlas-gb10:latest serve # In another terminal export AVAROK_BENCH_URL=http://localhost:8888 cargo bench -p avarok-spark-bench ``` -------------------------------- ### Serve command for nvidia/Qwen3.6-27B-NVFP4 Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/releases/288c17c.md Starts the Spark inference server for the nvidia/Qwen3.6-27B-NVFP4 model with a 32k context, prefix caching, SSM snapshot cache, MTP speculation, and tool-call parsing. Uses --disable-thinking for BFCL/agentic runs to match the edge reference methodology. ```bash spark serve nvidia/Qwen3.6-27B-NVFP4 --model-name Qwen3.6-27B-Q4_K_M \ --port 8085 --max-seq-len 32768 --max-batch-size 2 --gpu-memory-utilization 0.90 \ --kv-cache-dtype bf16 --scheduling-policy slai \ --enable-prefix-caching --ssm-cache-slots 256 --ssm-checkpoint-interval 16 \ --tool-call-parser qwen3_coder --disable-tool-grammar true \ --speculative --num-drafts 1 --mtp-quantization bf16 ``` -------------------------------- ### Deploy Qwen3.5-27B with Docker Source: https://github.com/avarok-cybersecurity/atlas/blob/main/QUICKSTART.md Use this command to start the Atlas server with the Qwen3.5-27B dense model. It sets the port to 8888, max sequence length to 8192, uses NVFP4 KV cache, and sets GPU memory utilization to 0.88 with the slai scheduling policy. ```bash sudo docker run -d \ --name atlas-27b \ --network host --gpus all --ipc=host \ -v ~/.cache/huggingface:/root/.cache/huggingface \ avarok/atlas-gb10:latest \ serve Kbenkhaled/Qwen3.5-27B-NVFP4 \ --port 8888 \ --max-seq-len 8192 \ --kv-cache-dtype nvfp4 \ --gpu-memory-utilization 0.88 \ --scheduling-policy slai ``` -------------------------------- ### Run EP=2 launcher (single-node and cross-node) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/DEPLOYMENT.md Run the canonical EP=2 launcher for a single node (both ranks on this machine) or cross-node by setting HEAD_IP and WORKER_IP environment variables. The launcher forces NCCL_SOCKET_IFNAME=enp1s0f0np0, disables NVLS, GDS, and DMABUF, pins NCCL_PROTO=Simple and NCCL_ALGO=Ring, and starts rank 0 on HEAD_IP:8888 and rank 1 on WORKER_IP:8889 with --master-addr HEAD_IP:29500. ```bash bash scripts/start-ep2.sh Sehyo/Qwen3.5-122B-A10B-NVFP4 ``` ```bash HEAD_IP=10.0.0.1 WORKER_IP=10.0.0.2 \ bash scripts/start-ep2.sh Sehyo/Qwen3.5-122B-A10B-NVFP4 ``` -------------------------------- ### Write MODEL.toml for new model family Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/HARDWARE.md Example MODEL.toml configuration for a new model family. Includes model metadata, model_type matching, optional match_names for disambiguation, and sampling presets. The build fails if colliding targets omit match_names, and a tie that cannot be broken is a hard startup error. ```toml [model] name = "qwen3.7-XXB" hf_id = "Qwen/Qwen3.7-XXB" params = "XXB" active_params = "XXB" architecture = "Hybrid Attention + GDN + Dense FFN" [[model_types]] model_type = "qwen3_5" # what the HF config.json says hidden_size = NNNN # exact hidden dim — wins over wildcards # Only if ANOTHER target declares the same (model_type, hidden_size) — # e.g. qwen3.8-27b's config is bit-identical to qwen3.6-27b's — declare # checkpoint-reference needles so runtime resolution can break the tie # (case-insensitive substrings of the HF id / --model-name / model dir). # build.rs FAILS if colliding targets omit this, and a tie the needles # cannot break to exactly one target is a hard startup error (never a # build-order pick; `--kernel-target` pins explicitly). Rules + rationale: # crates/avarok-kernels/src/resolve.rs. # match_names = ["qwen3.7-XXB"] # Architecturally-identical sibling (zero new kernels)? Reuse another # target's .cu tree instead of copying it — qwen3.8-27b compiles # qwen3.6-27b's sources this way and ships no files of its own: # kernel_source = "qwen3.6-27b" [behavior] default_num_drafts = 1 max_thinking_budget = 512 thinking_in_tools = false [sampling.thinking_text] temperature = 0.6 top_p = 0.95 top_k = 20 # ... (other sampling presets — see existing MODEL.toml files) ``` -------------------------------- ### Run Qwen3-VL-30B server with Docker Source: https://github.com/avarok-cybersecurity/atlas/blob/main/QUICKSTART.md Starts the Atlas server for the Qwen3-VL-30B model with GPU acceleration and specific inference settings. Requires Docker with NVIDIA GPU support. The command mounts the Hugging Face cache and sets the port, max sequence length, KV cache dtype, GPU memory utilization, and scheduling policy. ```bash sudo docker run -d \ --name atlas-vl-30b \ --network host --gpus all --ipc=host \ -v ~/.cache/huggingface:/root/.cache/huggingface \ avarok/atlas-gb10:latest \ serve ig1/Qwen3-VL-30B-A3B-Instruct-NVFP4 \ --port 8888 \ --max-seq-len 32768 \ --kv-cache-dtype nvfp4 \ --gpu-memory-utilization 0.88 \ --scheduling-policy slai ``` -------------------------------- ### Run Qwen3. with Docker run with all recommended flags for optimal performance. description: Source: https://github.com/avarok-cybersecurity/atlas/blob/main/README.md This is the recommended Docker command for running the Qwen3.6-35B-A3B-FP8 model with all performance-oriented flags for agentic workloads. It uses a detached container with host networking and GPU access, and includes options for 64K context, FP8 KV cache with auto-promoted boundary layers, prefix caching, and MTP speculative decoding with bullet points after the command explains each flag's role and defaults (e.g., default scheduler is fifo, default MTP quantization is BF16). This is the second recipe, named ```bash docker pull avarok/atlas-gb10:latest sudo docker run -d --name atlas --network host -- network ``` -------------------------------- ### Serve Qwen3.5-35B with production flags Source: https://github.com/avarok-cybersecurity/atlas/blob/main/book/src/operations/server.md Production-ready serve command for Qwen3.5-35B-A3B-NVFP4 with agent workloads. Uses 16k context, nvfp4 KV cache, slai scheduling, and speculative decoding. Avoid --max-seq-len 4096 for agents as it causes mid-session failures. ```bash serve Sehyo/Qwen3.5-35B-A3B-NVFP4 \ --port 8888 \ --max-seq-len 16384 \ --max-batch-size 4 \ --kv-cache-dtype nvfp4 \ --gpu-memory-utilization 0.88 \ --scheduling-policy slai \ --tbt-deadline-ms 100 \ --enable-prefix-caching \ --speculative --mtp-quantization nvfp4 \ --auto-compact 0.85 \ --adaptive-sampling ``` -------------------------------- ### Build, preview, and check commands Source: https://github.com/avarok-cybersecurity/atlas/blob/main/dez/README.md Build the project, preview the production build locally, and run type checking. The build output lands in build/ as a fully static tree. npm run build regenerates static/icons/*.png from static/icons/icon.svg first. ```bash npm run build # rasterises icons, then prerenders to build/ npm run preview # serve the production build locally npm run check # svelte-check, TypeScript strict ``` -------------------------------- ### Build and test Atlas with Docker Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/ATLAS_SPARK_JOURNEY.md Commands to start a persistent build container, install Rust, build the project, run unit tests, and run the integration benchmark. The build step clears the PTX cache when CUDA sources change. Unit tests require no GPU, while the integration benchmark needs GPU and weights. ```bash # Start build container sudo docker run -d --name atlas-build --gpus all --ipc=host --entrypoint bash \ -v /workspace/atlas:/workspace/atlas atlas/dgx-vllm-nvfp4-kernel:v22 -c "sleep 86400" sudo docker exec atlas-build bash -c \ "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y" # Build (clear PTX cache when CUDA sources change) sudo docker exec -w /workspace/atlas atlas-build bash -c \ "source /root/.cargo/env && rm -rf target/release/build/avarok-kernels-* && cargo build --release" # Unit tests (43 tests, no GPU required) sudo docker exec -w /workspace/atlas atlas-build bash -c \ "source /root/.cargo/env && cargo test -p spark-model -p spark-runtime -p avarok-kernels \ -p spark-server -p spark-comm --release" # Integration benchmark (GPU + weights, 200 tokens) sudo docker exec -w /workspace/atlas atlas-build bash -c \ "source /root/.cargo/env && RUST_LOG=info cargo test -p spark-server --release -- --ignored" ``` -------------------------------- ### Serve configuration (frozen c2final, ARM=bare / drafter defaults, K=2) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/campaigns/gb10-decode-fold-2026-07/DECODE_FOLD_LEDGER.md Frozen serve flags for the current best Avarok build. Sets max sequence length, batch size, KV cache dtype, GPU memory utilization, prefix caching, SSM cache slots/checkpoint interval, speculative decoding with 2 drafts, MTP quantization, tool-call parser, and disables tool grammar and thinking. Environment variables tune MTP/SSM behavior; AVAROK_MTP_REFEED_ACCEPTED stays OFF (refuted on GB10). ```bash --max-seq-len 32768 --max-batch-size 1 --kv-cache-dtype bf16 --gpu-memory-utilization 0.70 --enable-prefix-caching --ssm-cache-slots 128 --ssm-checkpoint-interval 32 --speculative --num-drafts 2 --mtp-quantization bf16 --tool-call-parser qwen3_xml --disable-tool-grammar true --disable-thinking ENV: AVAROK_NO_FFN_NVFP4_MMQ=1 AVAROK_SSM_TAIL_MIDCHUNK=0 AVAROK_MTP_CATCHUP=0 AVAROK_MTP_DRAFT_CONF=0.0 AVAROK_MTP_GATE_FORCE=1 AVAROK_SSM_TAIL_PROTECT=1 AVAROK_SSM_TAIL_LEASE_TTL=128 AVAROK_BF16_TC_PREFILL=1 ``` -------------------------------- ### Launch EP=2 with scripts/start-ep2.sh (default, explicit, MiniMax) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/book/src/operations/multi-gpu.md Canonical usage of scripts/start-ep2.sh. Defaults to Qwen3.5-122B-A10B-NVFP4. Pass a model ID to override; the script auto-strips --speculative for MiniMax since it lacks MTP. ```bash # Default model bash scripts/start-ep2.sh # Explicit model bash scripts/start-ep2.sh Sehyo/Qwen3.5-122B-A10B-NVFP4 # MiniMax (script auto-strips --speculative since MiniMax doesn't have MTP) bash scripts/start-ep2.sh lukealonso/MiniMax-M2.7-NVFP4 ``` -------------------------------- ### Install Atlas via Cargo Source: https://github.com/avarok-cybersecurity/atlas/blob/main/site/static/llms.txt Installs the atlasctl CLI from crates.io using Cargo. This avoids piping the installer script to a shell. ```sh cargo install atlasctl ``` -------------------------------- ### Build and serve commands for AMD Strix Halo (gfx1151) with SCALE 1.7.1 Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/porting/amd-strix-halo-scale.md These commands build the spark-server with CUDA features and serve the Qwen3.6-27B-FP8 model on port 8081. The build step sets SCALE_HOME and target hardware/model/quantization, while the serve step sets gfx1151 shims and library paths. The memory note warns to keep --gpu-memory-utilization at 0.70 to avoid OOM during warmup. ```bash # Build — SCALE_HOME set, kernels compiled for gfx1151: export SCALE_HOME=~/scale171/scale-1.7.1-Linux export AVAROK_TARGET_HW=strix AVAROK_TARGET_MODEL=qwen3.6-27b AVAROK_TARGET_QUANT=nvfp4 export CUDA_PATH="$SCALE_HOME/targets/gfx1151" CUDA_HOME="$CUDA_PATH" export PATH="$SCALE_HOME/targets/gfx1151/bin:/opt/rocm/bin:$PATH" export LD_LIBRARY_PATH="/opt/rocm/lib:$SCALE_HOME/targets/gfx1151/lib:$LD_LIBRARY_PATH" export CUDARC_CUDA_VERSION=12080 rm -rf target/release/build/avarok-kernels-* # stale-cache guard on .cu change cargo build --release -p spark-server --no-default-features --features cuda ``` ```bash # Serve — gfx1151 shims (§4) + SCALE libs first so /opt/rocm can't shadow libhsa: export AVAROK_FORCE_GLOBAL_GDN=1 AVAROK_W4A16_VARIANT=v1 AVAROK_NO_FP8_PREDEQUANT=1 export LD_LIBRARY_PATH="$SCALE_HOME/targets/gfx1151/lib:$SCALE_HOME/lib" target/release/spark serve Qwen/Qwen3.6-27B-FP8 \ --port 8081 --max-seq-len 4096 --gpu-memory-utilization 0.70 \ --kv-cache-dtype bf16 --kv-high-precision-layers max --max-batch-size 4 ``` -------------------------------- ### Serve the model with environment variables (0:12) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/perf/B200_FIRST_HOUR_2026-09.md Starts the Spark server in the background with the recipe's environment variables (expert cache 100 GiB, 16 reader threads, device arena on, device routing opt-in). Waits for the 'Server live and ready' log line, breaking on errors. The load reads the 2.9 GiB resident set and fills the arena lazily; the first request is the cold one. If arena allocation fails, halve ATLAS_DS41_EXPERT_CACHE_GIB and note free memory, do not lower --gpu-memory-utilization first. ```bash env ATLAS_DS41_MAX_SEQ=4096 ATLAS_DS41_MAX_TOKENS=512 ATLAS_DS41_EXPERT_CACHE_GIB=150 \ ATLAS_DS41_READER_THREADS=16 ATLAS_DS41_DEVICE_ROUTE=1 RUST_LOG=info \ setsid nohup ~/ds41_bin/spark serve --model-from-path /data/dsv41-q2k --kernel-target deepseek-v4.1-flash \ --max-seq-len 4096 --max-prefill-tokens 512 --gpu-memory-utilization 0.90 --port 8899 --no-tui \ > ~/dflash-logs/b200_serve_r0.log 2>&1 & until grep -q "Server live and ready" ~/dflash-logs/b200_serve_r0.log; do grep -m1 -E "^Error|panicked|CUDA_ERROR" ~/dflash-logs/b200_serve_r0.log && break; sleep 2; done nvidia-smi --query-gpu=memory.used --format=csv # the arena + resident set; record it ``` -------------------------------- ### 0:00 Hardware admission commands Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/perf/B200_FIRST_HOUR_2026-09.md Runs system and GPU checks to record the driver line and verify the box. Expects NVIDIA B200, driver >= 580, compute_cap 10.0, used ~0; memory.total is the SKU's HBM (HARDWARE.toml assumes 180 GB = 171,661 MiB). Records the nvidia-smi line verbatim for receipts. ```bash date -u; hostname nvidia-smi --query-gpu=name,driver_version,compute_cap,memory.total,memory.used,pstate --format=csv # expect: NVIDIA B200, driver >= 580, compute_cap 10.0, used ~0; memory.total is the SKU's HBM # (HARDWARE.toml assumes 180 GB = 171,661 MiB; record what it prints and use it in section 2.4) nvidia-smi -q | grep -i -E "cuda version|persistence" nvcc --version 2>/dev/null | tail -1 || echo "no toolkit: option A only (step 5), no gate (step 6)" nsys --version || echo "no nsys: install nsight-systems before step 12" df -h /data; ls -l /data/dsv41-q2k; sha256sum -c /data/dsv41-q2k/SHA256SUMS --quiet && echo shards OK dpkg-query -W -f='${Package} ${Version}\n' libnccl2 libibverbs1 librdmacm1 2>/dev/null ``` -------------------------------- ### Install build dependencies for Atlas from source Source: https://github.com/avarok-cybersecurity/atlas/blob/main/QUICKSTART.md Install build dependencies for building Atlas from source on Ubuntu 22.04/24.04. Requires CUDA 13.0 toolkit already installed; no network fetch occurs at build time because crates/xgrammar is a pure-Rust in-tree port. ```bash # Ubuntu 22.04 / 24.04 sudo apt-get update && sudo apt-get install -y \ build-essential pkg-config git cmake clang libclang-dev # CUDA 13.0 toolkit must already be installed; `nvcc --version` should report 13.0. # Nothing is fetched from the network at build time: `crates/xgrammar` is a # pure-Rust in-tree port (ADR 0010) with no build.rs, so the old # `XGRAMMAR_SRC_DIR` air-gap escape hatch no longer exists and is not read. ``` -------------------------------- ### Microbenchmark weight pre-rotation on/off (docker run with TQ_PLUS_WEIGHT_ROTATION) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/turboquant-plus.md Runs the server with TQ_PLUS_WEIGHT_ROTATION=1 to enable weight pre-rotation. When active, runtime WHT launches in write_kv_cache.rs are skipped (160 fewer kernel launches per token at 40 layers × 4 projections). The attention dot product is preserved because the rotation cancels at = . ```bash docker run … -e TQ_PLUS_WEIGHT_ROTATION=1 atlas-gb10-tqplus serve … ``` -------------------------------- ### 0:05 Build binary on the box (option B) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/perf/B200_FIRST_HOUR_2026-09.md Builds the spark-server binary with CUDA 13.0 and the b200/nvfp4 target. Requires the CUDA 13.0 toolkit; the release build takes tens of minutes, so run in the background. The compiled .cu set is kernels/b200/deepseek-v4-flash/nvfp4/ plus kernels/b200/common/, exactly 199 sources. ```bash cd ~/atlas export PATH=/usr/local/cuda/bin:$PATH CUDA_HOME=/usr/local/cuda CUDARC_CUDA_VERSION=13000 AVAROK_TARGET_HW=b200 AVAROK_TARGET_MODEL=deepseek-v4.1-flash AVAROK_TARGET_QUANT=nvfp4 \ cargo build --release -p spark-server --no-default-features --features cuda,nccl 2>&1 | tail -20 ls -l target/release/spark && sha256sum target/release/spark ``` -------------------------------- ### Install Atlas via shell script Source: https://github.com/avarok-cybersecurity/atlas/blob/main/site/static/llms.txt Downloads and runs the official Atlas installer from atlascybernetics.ai. Piping to sh executes the script directly; use the Cargo alternative to avoid piping to a shell. ```sh curl -fsSL https://atlascybernetics.ai/install.sh | sh ``` -------------------------------- ### Serve Qwen3.5-122B-A10B (EP=2, tight budget) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/book/src/getting-started/models.md Single-node 122B configuration for tight budgets. Uses NVFP4 KV cache with high-precision layers. ~32 tok/s. ```bash serve Sehyo/Qwen3.5-122B-A10B-NVFP4 \ --kv-cache-dtype fp8 --kv-high-precision-layers 2 \ --max-batch-size 1 --max-prefill-tokens 2048 --oom-guard-mb 512 ``` -------------------------------- ### Verify the Atlas installation Source: https://github.com/avarok-cybersecurity/atlas/blob/main/book/src/getting-started/installation.md Verifies the installation by running the container with GPU support and checking the version and help output. If `--version` errors with "no compatible GPU", the nvidia-container-toolkit is not picking up the device; check `docker info | grep -i runtime` and `nvidia-smi` on the host. ```bash docker run --rm --gpus all avarok/atlas-gb10:latest --version # → spark 1.0.0-beta-preview (the workspace version in Cargo.toml) docker run --rm --gpus all avarok/atlas-gb10:latest --help | head -20 ``` -------------------------------- ### Build command for GB10 27B (spark-server, cuda feature) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/campaigns/gb10-decode-fold-2026-07/DECODE_FOLD_LEDGER.md Builds the spark-server binary for GB10 with the Qwen3.6-27B model target. Requires AVAROK_TARGET_HW=gb10 and AVAROK_TARGET_MODEL=qwen3.6-27b; uses cargo build --release with the cuda feature. ```bash AVAROK_TARGET_HW=gb10 AVAROK_TARGET_MODEL=qwen3.6-27b cargo build --release -p spark-server --bin spark --features cuda ``` -------------------------------- ### Install ffmpeg for video decoding Source: https://github.com/avarok-cybersecurity/atlas/blob/main/QUICKSTART.md Installs ffmpeg on the host, which is required for decoding video containers other than animated GIF. Atlas does not bundle a video decoder; ffmpeg must be present on PATH and the --video-allow-ffmpeg flag must be enabled. Without ffmpeg, video requests fail with a 400 error naming the binary. ```bash sudo apt install ffmpeg # Debian / Ubuntu ``` ```bash sudo dnf install ffmpeg # Fedora / RHEL ``` -------------------------------- ### EP=2 head node (rank 0) serve command Source: https://github.com/avarok-cybersecurity/atlas/blob/main/QUICKSTART.md Starts the head node for expert parallelism across two GB10 nodes. Must be started with the same --speculative --mtp-quantization and --num-drafts flags as the worker to avoid SSM intermediate-buffer errors. Replace with the head node's IP. ```bash sudo docker run -d \ --name atlas-122b-r0 \ --network host --gpus all --ipc=host \ -v ~/.cache/huggingface:/root/.cache/huggingface \ avarok/atlas-gb10:latest \ serve Sehyo/Qwen3.5-122B-A10B-NVFP4 \ --port 8888 \ --rank 0 --world-size 2 \ --master-addr --master-port 29500 \ --max-seq-len 4096 \ --max-batch-size 1 \ --kv-cache-dtype nvfp4 \ --gpu-memory-utilization 0.70 \ --scheduling-policy slai \ --speculative \ --mtp-quantization nvfp4 ``` -------------------------------- ### Set up Python environment and install PyTorch CUDA-13 wheel for GB10 Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/lora-adapter-mode-settings.md Creates a Python 3.12 virtual environment and installs PyTorch with the CUDA-13 wheel (cu130) required for GB10 (sm_121, aarch64), followed by the necessary ML libraries. The torch version 2.12.1+cu130 reports capability (12, 1) and JITs sm_120 PTX forward to sm_121. ```bash uv venv --python 3.12 .venv # GB10 (sm_121, aarch64) needs the CUDA-13 wheel — this one runs real kernels on GB10: VIRTUAL_ENV=.venv uv pip install --index-url https://download.pytorch.org/whl/cu130 torch VIRTUAL_ENV=.venv uv pip install numpy transformers peft datasets accelerate safetensors ``` -------------------------------- ### Cannot connect to Docker daemon error Source: https://github.com/avarok-cybersecurity/atlas/blob/main/book/src/getting-started/troubleshooting.md Error message shown when nothing is listening on the Docker socket. Start the Docker daemon to resolve. ```text Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? ``` -------------------------------- ### benchmark script comment on unique prefixes Source: https://github.com/avarok-cybersecurity/atlas/blob/main/PROGRESS_LOG.md Comment from bench/agentic/prefill_matrix.py explaining why each request gets a unique random prefix to avoid cache hits. ```text "Every request gets a unique random prefix: with prefix caching on, a repeated prompt would be skipped entirely and the run would measure cache hits." ``` -------------------------------- ### Serve Nemotron-3-Nano-30B (Mamba-2 hybrid) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/book/src/getting-started/models.md Mamba-2 hybrid model with NVFP4 KV cache. ```bash serve nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4 \ --max-seq-len 8192 --kv-cache-dtype nvfp4 ``` -------------------------------- ### Serve a vision target Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/handoff-vision-video-gates.md Starts the spark server for a vision target. Checkpoints are on the NFS mount, not ~/.cache. Uses the first snapshot directory found. ```bash SNAP=$(ls -d /mnt/gx10-hf-hub/models--unsloth--Qwen3.6-27B-NVFP4/snapshots/*/ | head -1) ./target/release/spark serve --model-from-path "$SNAP" --model-name m \ --kernel-target qwen3.6-27b --port 8897 --max-seq-len 32768 --max-num-seqs 4 \ --gpu-memory-utilization 0.70 --no-tui --video-allow-ffmpeg --video-fps 2 ``` -------------------------------- ### K3 launch manifest (schema 2, JSON) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/scripts/k3/LAUNCH.md Manifest for a single-rank K3 run. Requires real absolute paths, SHA256 from the build receipt, compiled architecture, and GPU UUIDs. Schema 2 requires explicit max_prefill_tokens, kv_cache_dtype, and enable_prefix_caching; schema 1 is refused. Prefill tokens: 0 for unchunked, positive for scheduler budget. KV dtype must be bf16, fp8, or nvfp4. Prefix caching must be JSON true or false. All three are forwarded explicitly, including --enable-prefix-caching false. ```json { "schema": 2, "binary": "/absolute/path/to/spark", "binary_sha256": "REPLACE_WITH_64_HEX_DIGITS", "compiled_arch": "sm_121f", "model_dir": "/absolute/path/to/verified/twin", "model_name": "k3-twin", "world_size": 1, "tp_size": 1, "ep_size": 1, "ranks": [{"rank": 0, "device": 0, "uuid": "GPU-REPLACE"}], "master_addr": "127.0.0.1", "master_port": 29500, "port_base": 18888, "env": {"AVAROK_COMM_DIAGNOSTICS": "1", "NCCL_DEBUG": "INFO"}, "max_seq_len": 1024, "max_prefill_tokens": 32, "kv_cache_dtype": "bf16", "enable_prefix_caching": false, "max_batch_size": 1, "max_num_seqs": 1, "gpu_memory_utilization": 0.8, "boot_timeout": 300, "probe_timeout": 60, "cleanup_timeout": 5, "prompt": "REPLACE_WITH_FIXED_REFERENCE_PROMPT", "expected_prefix": "REPLACE_WITH_REFERENCE_COMPLETION_PREFIX", "max_tokens": 32 } ``` -------------------------------- ### GET /v1/models Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docker/docker-guide.md Retrieves a list of available models from the Atlas server. This endpoint is used to check server status and discover available model identifiers. ```APIDOC ## GET /v1/models ### Description Retrieves a list of available models from the Atlas server. This endpoint is used to check server status and discover available model identifiers. ### Method GET ### Endpoint /v1/models ### Response #### Success Response (200) - **object** (string) - The type of object returned, e.g., "list". - **data** (array) - An array of model objects. - **id** (string) - The model identifier. - **object** (string) - The object type, e.g., "model". - **created** (integer) - Unix timestamp of model creation. - **owned_by** (string) - The owner of the model. #### Response Example { "object": "list", "data": [ { "id": "atlas", "object": "model", "created": 1234567890, "owned_by": "atlas" } ] } ``` -------------------------------- ### Trace line format example Source: https://github.com/avarok-cybersecurity/atlas/blob/main/docs/AUTOMERGER.md Shows the required format for each trace line: timestamp, elapsed time, event type, and a description with evidence. Used as a template for all entries. ```text 2026-09-04T00:00:00Z +0m00s tool — ``` -------------------------------- ### Download override template with curl Source: https://github.com/avarok-cybersecurity/atlas/blob/main/jinja-templates/README.md Example command to download a community fix for Qwen3.5 tool calling into the jinja-templates directory. The file name must match the model_type from config.json. ```bash curl -o jinja-templates/qwen3_5_moe.jinja \ https://raw.githubusercontent.com/eugr/spark-vllm-docker/.../chat_template.jinja ``` -------------------------------- ### Serve Qwen3.5-35B-A3B (flagship) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/book/src/getting-started/models.md Flagship model with speculative decoding and MTP quantization. Uses NVFP4 KV cache and SLai scheduling policy. ```bash serve Sehyo/Qwen3.5-35B-A3B-NVFP4 \ --max-seq-len 8192 --kv-cache-dtype nvfp4 \ --scheduling-policy slai --speculative --mtp-quantization nvfp4 ``` -------------------------------- ### Response with tool call (JSON) Source: https://github.com/avarok-cybersecurity/atlas/blob/main/QUICKSTART.md Example response from the chat completions endpoint showing the assistant's tool call for get_weather with the location argument Paris. The finish_reason is 'tool_calls'. ```json { "choices": [{ "message": { "role": "assistant", "content": null, "tool_calls": [{ "id": "call_00000000", "type": "function", "function": { "name": "get_weather", "arguments": "{\"location\":\"Paris\"}" } }] }, "finish_reason": "tool_calls" }] } ``` -------------------------------- ### Launch Qwen3.5-122B on single GPU Source: https://github.com/avarok-cybersecurity/atlas/blob/main/tests/SINGLE_GPU_RESULTS.md Docker command to serve the Qwen3.5-122B model on a single GPU with specified memory and performance settings. ```bash sudo docker run -d --name atlas-122b --gpus all --ipc=host --network host \ -v ~/.cache/huggingface:/root/.cache/huggingface \ atlas-test:latest serve Sehyo/Qwen3.5-122B-A10B-NVFP4 \ --port 8888 --kv-cache-dtype fp8 --kv-high-precision-layers auto \ --gpu-memory-utilization 0.92 --scheduling-policy slai \ --max-seq-len 65536 --tool-call-parser qwen3_coder --ssm-cache-slots 0 ```