Skip to content

[bug] Expected FP8E4M3 for model.language_model.layers.0.mlp.shared_expert.gate_proj.weight, got UInt8 #429

Backlog

Description

@jiyzhang

Atlas version / docker tag

azeezish/atlas-gb10:latest

Model

nvidia/Qwen3.6-35B-A3B-NVFP4

Hardware

1 GB10, single-GPU

Launch command

sparkrun run  @atlas/qwen3.6-35b-a3b-nvfp4 --hosts localhost

Serve command:
  spark serve nvidia/Qwen3.6-35B-A3B-NVFP4 --port 8888 --host 0.0.0.0 --gpu-memory-utilization 0.88 --max-seq-len 262144 --kv-cache-dtype fp8 --kv-high-precision-layers auto --tool-call-parser qwen3_coder --fp8-kv-calibration-tokens 256 --scheduling-policy slai --ssm-cache-slots 128 --ssm-checkpoint-interval 32 --mtp-quantization bf16 --num-drafts 1 --disable-tool-grammar true --enable-prefix-caching --speculative --disable-thinking

Expected behaviour

serve the model nvidia/Qwen3.6-35B-A3B-NVFP4

Actual behaviour

failed to start the model

2026-11-27T07:52:29.323091Z  INFO spark::main_modules::kv_dtypes: Selective boundary KV cache: 4/10 attention layers at bf16, rest at fp8
2026-11-27T07:52:29.323234Z  WARN spark::main_modules::serve_phases::build: raising --ssm-cache-slots 128 → 512 so Marconi snapshots cover --max-seq-len=262144 (512 tok/snapshot). Pass a larger --ssm-cache-slots to override the cap (512).
2026-11-27T07:52:29.323383Z  INFO spark_model::weight_loader::qwen35::load_layers: Weight format: Fp8BlockScaled, NVFP4 variant: Fp8Dequanted, quant_format: Fp8
2026-11-27T07:52:29.323410Z  INFO spark_model::weight_loader::qwen35::load_layers: FP8: skipping NVFP4 routed experts (FP8 fused MoE batch1/2/3 handles all dispatch)
2026-11-27T07:52:30.585598Z  WARN spark_runtime::cuda_backend: backend drop reclaimed 124468 allocation(s) that no owner released — expected if a load was abandoned part-way, otherwise an unregistered owner
Error: Failed to build model

Caused by:
    Expected FP8E4M3 for model.language_model.layers.0.mlp.shared_expert.gate_proj.weight, got UInt8

Additional context

No response

Activity

  1. added
    bug
    on Nov 27, 2026
  2. jiyzhang commented on Nov 27, 2026

    @jiyzhang
    Author

    full log

    user01@spark-7e93:~$ sparkrun run  @atlas/qwen3.6-35b-a3b-nvfp4 --hosts localhost
    sparkrun v0.4.2
    
    Runtime:   atlas
    Image:     azeezish/atlas-gb10:latest
    Model:     nvidia/Qwen3.6-35B-A3B-NVFP4
    Planning:  probing hardware, querying cluster occupancy and model metadata... done
    
    Placement: solo on localhost (--hosts)
    Platform:  DGX Spark (NVIDIA GB10, NCCL)
      ROLE    HOST       GPU   MEMORY     DRIVER   RDMA
      target  localhost  gb10  121.7 GiB  580.142  none
      All facts probed this run.
    
    Memory per GPU (tp=1, sized to the host above):
      Weights       16.3 GiB    16.3 GiB nvfp4
      KV demand      2.6 GiB    fp8 at max_model_len 262,144
      Budget       107.1 GiB    121.7 GiB x 88% gpu_memory_utilization
      KV space      90.8 GiB    ~9.51M tokens of fp8 cache; model limit 262,144
      Fit                YES    estimate; the runtime verifies actual memory
    
    [1/6] Preparing
      done (0.0s)
    [2/6] Building — skipped (no builder)
    [3/6] Distributing resources
    Pulling image with Docker: azeezish/atlas-gb10:latest
    Docker image ready: azeezish/atlas-gb10:latest
      done (3.3s)
    [4/6] Syncing tuning configs
      done (0.0s)
    Serve command uses recipe model 'nvidia/Qwen3.6-35B-A3B-NVFP4' without pinning validated revision '1355db6a052410cfd62085d94b58866fd0f2c3c5'; allowing launch for compatibility. The engine may load a different cached revision. Use {model} or a supported revision flag with {model_revision} to consume the validated model.
    Could not clear page cache locally — run 'sparkrun setup clear-cache --save-sudo' to enable passwordless cache clearing for future runs.
    [5/6] Launching atlas runtime
      SSH script <- localhost FAILED rc=255 (0.1s): Host key verification failed.
      Step 1/3: Using pre-detected comm env
      Step 2/3: Launching container
      Step 3/3: Executing serve command
      done (4.1s)
    Cluster:   sparkrun_1312751dea4dc5cc_49960de5880e
    
    Serve command:
      spark serve nvidia/Qwen3.6-35B-A3B-NVFP4 --port 8888 --host 0.0.0.0 --gpu-memory-utilization 0.88 --max-seq-len 262144 --kv-cache-dtype fp8 --kv-high-precision-layers auto --tool-call-parser qwen3_coder --fp8-kv-calibration-tokens 256 --scheduling-policy slai --ssm-cache-slots 128 --ssm-checkpoint-interval 32 --mtp-quantization bf16 --num-drafts 1 --disable-tool-grammar true --enable-prefix-caching --speculative --disable-thinking
    
    Runtime versions:
      atlas:     spark 1.0.0-beta-preview
    
    Waiting for server readiness...
    2026-11-27T07:51:42.141419Z  INFO spark::main_modules::serve: Atlas Spark starting...
    2026-11-27T07:51:42.141475Z  INFO spark::main_modules::serve: Licensed under AGPL-3.0-only — see /LICENSE in this container
    2026-11-27T07:51:42.141534Z  INFO spark::main_modules::serve_flags: kernel flags: ssm_h_dtype=f32 gdn_fused_norm=false ssm_batched_recurrent=false exact_verify=false ssm_tail_midchunk=true mtp_gate=auto ssm_rollback_mode=Snapshot prefill_varlen_batch=false
    2026-11-27T07:51:42.141639Z  INFO spark::model_resolver: Model: nvidia/Qwen3.6-35B-A3B-NVFP4 (resolved to /cache/huggingface/hub/models--nvidia--Qwen3.6-35B-A3B-NVFP4/snapshots/1355db6a052410cfd62085d94b58866fd0f2c3c5)
    2026-11-27T07:51:42.141645Z  INFO spark::main_modules::serve_load: Port: 8888
    2026-11-27T07:51:42.141647Z  INFO spark::main_modules::serve_load: SSM decode h-state dtype: f32 (full precision) (--ssm-h-dtype)
    2026-11-27T07:51:42.142453Z  INFO spark::main_modules::serve: Vision area bound 16777216 px from /cache/huggingface/hub/models--nvidia--Qwen3.6-35B-A3B-NVFP4/snapshots/1355db6a052410cfd62085d94b58866fd0f2c3c5/preprocessor_config.json (was: hard-coded 1280px long side)
    2026-11-27T07:51:42.142470Z  INFO spark::main_modules::serve_load: Vision area bound: 16777216 px (checkpoint processor config / ATLAS_VISION_MAX_PIXELS)
    2026-11-27T07:51:42.142473Z  INFO spark::main_modules::serve_load: Remote image fetching disabled (default); image_url parts carrying an http(s) URL are refused with a 400. Send base64 data: URIs, or pass --vision-allow-remote-images.
    2026-11-27T07:51:42.142476Z  INFO spark::main_modules::serve_load: Video decoding disabled (default). Animated GIF decodes in-process; every other container needs ffmpeg — pass --video-allow-ffmpeg to enable it.
    2026-11-27T07:51:42.142478Z  INFO spark::main_modules::serve_load: Quantization config: method="modelopt", algo="MIXED_PRECISION", format="", 2 module(s) in ignore list
    2026-11-27T07:51:42.142484Z  INFO spark::main_modules::serve_load: Model config: 40 layers, 10 attention, 30 SSM, 256 experts, rope_theta=10000000, head_dim=256, rotary_dim=64
    2026-11-27T07:51:42.142598Z  INFO spark::main_modules::serve_load: Selected kernel target: (sm_121, qwen3.6-35b-a3b, nvfp4) (196 modules) — quant compat: kernel=nvfp4 model=nvfp4 OK
    2026-11-27T07:52:05.929839Z  INFO spark_runtime::cuda_backend: AtlasCudaBackend initialized on GPU 0 with 196 PTX modules
    2026-11-27T07:52:05.929959Z  INFO spark::main_modules::serve_phases::preflight: GPU 0: 121.7 GB total, 91.9 GB free
    2026-11-27T07:52:05.929973Z  INFO spark::main_modules::serve_phases::preflight: Preflight reserve: inference=14074 MB, buffer_arena=2012 MB (pre-load free: 91.9 GB)
    2026-11-27T07:52:05.929988Z  INFO spark::main_modules::serve_load: OOM watchdog started (threshold: 2 GB, interval: 2s)
    2026-11-27T07:52:05.929990Z  INFO spark::main_modules::serve_load: OOM guard reserve: 4096 MB
    2026-11-27T07:52:05.930020Z  INFO spark::main_modules::serve_phases::weights: Using fast weight loader (O_DIRECT + pipelined read/copy)
    2026-11-27T07:52:06.266863Z  INFO spark_runtime::fast_weights: Fast-load pre-flight: 21.80 GB on-disk, 1.3x overhead = 28.34 GB peak, 91.93 GB free, 4.0 GB reserve (FP8: false)
    2026-11-27T07:52:06.272680Z  INFO spark_runtime::fast_weights: Fast-loading shard 1/3: model-00001-of-00003.safetensors (51662 tensors)
    2026-11-27T07:52:06.332973Z  INFO spark_runtime::fast_weights:   Shard has 51662 tensors (> 5000 cap) — using buffered+pipelined path
    2026-11-27T07:52:15.639013Z  INFO spark_runtime::fast_weights:   Shard 1/3 done — GPU memory: 9.62 GB used, 82.30 GB free
    2026-11-27T07:52:15.651619Z  INFO spark_runtime::fast_weights: Fast-loading shard 2/3: model-00002-of-00003.safetensors (63484 tensors)
    2026-11-27T07:52:15.724036Z  INFO spark_runtime::fast_weights:   Shard has 63484 tensors (> 5000 cap) — using buffered+pipelined path
    2026-11-27T07:52:25.608215Z  INFO spark_runtime::fast_weights:   Shard 2/3 done — GPU memory: 19.19 GB used, 72.74 GB free
    2026-11-27T07:52:25.612668Z  INFO spark_runtime::fast_weights: Fast-loading shard 3/3: model-00003-of-00003.safetensors (9322 tensors)
    2026-11-27T07:52:25.622681Z  INFO spark_runtime::fast_weights:   Shard has 9322 tensors (> 5000 cap) — using buffered+pipelined path
    2026-11-27T07:52:28.731825Z  INFO spark_runtime::fast_weights:   Shard 3/3 done — GPU memory: 22.68 GB used, 69.24 GB free
    2026-11-27T07:52:28.732110Z  INFO spark_runtime::fast_weights: Fast-loaded 124468 weight tensors
    2026-11-27T07:52:28.762735Z  INFO spark::main_modules::serve_phases::weights: Loaded 124468 weight tensors
    2026-11-27T07:52:28.762769Z  INFO spark_runtime::weights::prefix_detect: Weight prefix: model.language_model
    2026-11-27T07:52:28.802908Z  INFO spark_model::preflight: Pre-flight checks passed
    2026-11-27T07:52:28.802931Z  INFO spark_model::quant_format: QuantFormat: modelopt (algo="MIXED_PRECISION"), 2 ignored module(s)
    2026-11-27T07:52:28.802936Z  INFO spark::main_modules::serve_load: Quantization format: modelopt (base variant Standard), ignored globs = 2
    2026-11-27T07:52:29.040657Z  INFO spark_runtime::cublaslt: cuBLASLt pre-warmed (handle + workspace + kernel images)
    2026-11-27T07:52:29.042414Z  INFO spark::main_modules::serve_phases::preflight: GDN chunked prefill reserve: 258 MB (chunk_size=8192, max_seq_len=262144)
    2026-11-27T07:52:29.042421Z  INFO spark::main_modules::serve_phases::preflight: Weights: 21.80 GB, estimated free: 70.1 GB, actual free: 69.0 GB (reserve: 14074 MB)
    2026-11-27T07:52:29.042426Z  INFO spark::main_modules::serve_phases::kv_cache: Prefill config: ssm_prefill_chunk=8192, args.max_prefill_tokens=8192, prefill_budget=8192, max_batch_tokens=8200
    2026-11-27T07:52:29.042431Z  INFO spark::main_modules::serve_phases::build: Prefix caching: ENABLED (radix tree)
    2026-11-27T07:52:29.289846Z  INFO spark::main_modules::serve_phases::config: Capping vocab_size from 248320 to 248070 (tokenizer)
    2026-11-27T07:52:29.323068Z  INFO spark::main_modules::serve_phases::kv_cache: FP8 KV cache with online calibration (checkpoint ships no k/v scales): freezing per-tensor scales on the first observed tokens.
    2026-11-27T07:52:29.323091Z  INFO spark::main_modules::kv_dtypes: Selective boundary KV cache: 4/10 attention layers at bf16, rest at fp8
    2026-11-27T07:52:29.323234Z  WARN spark::main_modules::serve_phases::build: raising --ssm-cache-slots 128 → 512 so Marconi snapshots cover --max-seq-len=262144 (512 tok/snapshot). Pass a larger --ssm-cache-slots to override the cap (512).
    2026-11-27T07:52:29.323383Z  INFO spark_model::weight_loader::qwen35::load_layers: Weight format: Fp8BlockScaled, NVFP4 variant: Fp8Dequanted, quant_format: Fp8
    2026-11-27T07:52:29.323410Z  INFO spark_model::weight_loader::qwen35::load_layers: FP8: skipping NVFP4 routed experts (FP8 fused MoE batch1/2/3 handles all dispatch)
    2026-11-27T07:52:30.585598Z  WARN spark_runtime::cuda_backend: backend drop reclaimed 124468 allocation(s) that no owner released — expected if a load was abandoned part-way, otherwise an unregistered owner
    Error: Failed to build model
    
    Caused by:
        Expected FP8E4M3 for model.language_model.layers.0.mlp.shared_expert.gate_proj.weight, got UInt8
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions