Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

6.9 KB
Raw Blame
sie_id: Qwen/Qwen3.6-35B-A3B
hf_id: Qwen/Qwen3.6-35B-A3B
hf_revision: 995ad96eacd98c81ed38be0c5b274b04031597b0
# Qwen3.6-35B-A3B is the Qwen3.5-compatible hybrid VLM/MoE architecture
# (35B total / 3B active). Its 66.97 GiB BF16 checkpoint fits the existing
# SGLang 0.5.10+ family adapter, but a single H100-80GB needs online FP8 weight
# quantization to preserve activation and KV headroom. The bare/default route
# (and its h100-fp8 alias) runs on the CUDA 13 SGLang engine of the
# ``sglang-cu130`` bundle; the native-window and thinking profiles stay on the
# shared CUDA 12 engine.
inputs:
  text: true
  image: true
  audio: false
  video: false
tasks:
  generate:
    # Native context is 262,144 tokens. Keep the bare model on the established
    # 8K Qwen3.6 contract and expose a conservative 32K opt-in profile below.
    context_length: 8192
    max_output_tokens: 4096
    capabilities:
      grammar: ["json_schema", "regex"]
      streaming: true
      tools: true
    chat_template_kwargs:
      enable_thinking: false
max_sequence_length: 8192
# Every profile compiles JSON-schema grammars without free whitespace
# (--constrained-json-disable-any-whitespace, which both pinned SGLang engines
# declare and apply to the xgrammar backend). With free whitespace the model
# pretty-prints a json_schema reply, so indentation spends output tokens and
# pushes dense replies toward max_output_tokens, where a truncated reply is not
# valid JSON. Compact replies remain valid under the same schema.
profiles:
  # H100-80GB online-FP8 route on the CUDA 13 engine with decode CUDA graphs,
  # FlashAttention 3 and the extra-buffer Mamba radix cache, which lets the
  # engine keep its overlap scheduler on this hybrid model. NEXTN stays off:
  # grammar requests run on this profile. The original bootstrap (CUDA 12
  # engine, triton attention, CUDA graphs off) decoded about 15 tokens/s on one
  # request. On one H100 80GB with page-image json_schema extractions this
  # launch reached 210 tokens/s on one request and cut GPU-seconds per
  # extraction 13x at 1 in flight, 8x at 8 and 5x at 32, with the extraction
  # score unchanged.
  default:
    max_batch_tokens: 16384
    compute_precision: bfloat16
    adapter_path: sie_server.adapters.sglang.cuda13:SGLangCuda13Adapter
    kv_budget_tokens: 8192
    adapter_options:
      loadtime:
        mem_fraction_static: 0.90
        served_model_name: Qwen/Qwen3.6-35B-A3B
        attention_backend: fa3
        # Outlines fails at request time on this hybrid architecture because
        # its backend lacks the vocabulary-mask API used by the scheduler.
        grammar_backend: xgrammar
        reasoning_parser: qwen3
        tool_call_parser: qwen3_coder
        speculative:
          enabled: false
        extra_launch_args:
          - "--mm-process-config"
          - '{"image":{"min_pixels":65536,"max_pixels":1003520}}'
          - "--constrained-json-disable-any-whitespace"
          - "--quantization"
          - "fp8"
          - "--mamba-radix-cache-strategy"
          - "extra_buffer"
      runtime:
        first_chunk_timeout_s: 90
        inter_chunk_timeout_s: 15
        overall_timeout_s: 600
        # Official Qwen3.6 non-thinking sampling recipe.
        default_sampling:
          temperature: 0.7
          top_p: 0.8
          top_k: 20
          presence_penalty: 1.5
        stop_tokens:
          - "<|im_end|>"
  # Caller-visible FP8 alias; select the H100-80GB machine profile separately.
  h100-fp8:
    extends: default
  # Explicit reasoning mode uses the native-window H100 shape because Qwen's
  # model card recommends at least 128K context for thinking. The shorter bare
  # route remains an explicitly non-thinking compatibility surface.
  thinking:
    extends: long-context
    max_output_tokens: 81920
    chat_template_kwargs:
      enable_thinking: true
    adapter_options:
      runtime:
        first_chunk_timeout_s: 900
        inter_chunk_timeout_s: 30
        overall_timeout_s: 1800
        default_sampling:
          temperature: 1.0
          top_p: 0.95
          top_k: 20
          presence_penalty: 1.5
        stop_tokens:
          - "<|im_end|>"
  # Explicit native-window candidate for one H100-80GB admission. This is a
  # standalone parent so the thinking twin can inherit the exact launch shape
  # without profile chaining. Online FP8 limits weight memory; KV stays BF16
  # unless measured H100 evidence requires a separately validated cache dtype.
  long-context:
    # Qwen's official non-thinking serving recipe uses max_tokens=32768.
    # Keep the bare 8K profile at 4096 while exposing that decode ceiling only
    # on variants whose total context can accommodate it.
    max_output_tokens: 32768
    max_batch_tokens: 262144
    compute_precision: bfloat16
    adapter_path: sie_server.adapters.sglang.generation:SGLangGenerationAdapter
    kv_budget_tokens: 262144
    adapter_options:
      loadtime:
        max_seq_length: 262144
        mem_fraction_static: 0.95
        served_model_name: Qwen/Qwen3.6-35B-A3B
        disable_cuda_graph: true
        attention_backend: triton
        grammar_backend: xgrammar
        reasoning_parser: qwen3
        tool_call_parser: qwen3_coder
        speculative:
          enabled: false
        extra_launch_args:
          - "--mm-process-config"
          - '{"image":{"min_pixels":65536,"max_pixels":1003520}}'
          - "--constrained-json-disable-any-whitespace"
          - "--quantization"
          - "fp8"
      runtime:
        first_chunk_timeout_s: 900
        inter_chunk_timeout_s: 30
        overall_timeout_s: 1800
        default_sampling:
          temperature: 0.7
          top_p: 0.8
          top_k: 20
          presence_penalty: 1.5
        stop_tokens:
          - "<|im_end|>"
  # Same measured 256K launch/admission envelope with Qwen thinking enabled.
  long-context-thinking:
    extends: long-context
    # Official Qwen3.6 thinking examples use max_tokens=81920.
    max_output_tokens: 81920
    chat_template_kwargs:
      enable_thinking: true
    adapter_options:
      runtime:
        first_chunk_timeout_s: 900
        inter_chunk_timeout_s: 30
        overall_timeout_s: 1800
        default_sampling:
          temperature: 1.0
          top_p: 0.95
          top_k: 20
          presence_penalty: 1.5
        stop_tokens:
          - "<|im_end|>"
  # Hardware-explicit aliases for the exact H100-80GB native-window shape.
  # Machine placement remains a separate gateway decision; these names make
  # the validated context/GPU pairing discoverable to callers.
  h100-256k:
    extends: long-context
  h100-256k-thinking:
    extends: long-context
    max_output_tokens: 81920
    chat_template_kwargs:
      enable_thinking: true
    adapter_options:
      runtime:
        first_chunk_timeout_s: 900
        inter_chunk_timeout_s: 30
        overall_timeout_s: 1800
        default_sampling:
          temperature: 1.0
          top_p: 0.95
          top_k: 20
          presence_penalty: 1.5
        stop_tokens:
          - "<|im_end|>"