Skip to content

[Bug]: DSpark cannot load RedHatAI/Kimi-K3-speculator.dspark (speculators config format) #19900

Open

Description

@vsabavat

System Info

  • TensorRT-LLM main 0970204df7 (also seen on 9bf6b8b9)
  • Kimi K3 (moonshotai/Kimi-K3) on 16x GB200
  • Drafter: RedHatAI/Kimi-K3-speculator.dspark @ 38a88101

Who can help?

@juney-nvidia @longlee0622

Reproduction

speculative_config:
  decoding_type: DSpark
  max_draft_len: 7
  speculative_model: RedHatAI/Kimi-K3-speculator.dspark

The DSpark drafter path does not read this checkpoint's config.

Expected behavior

TRT-LLM loads RedHatAI/Kimi-K3-speculator.dspark as published.

Actual behavior

The checkpoint uses the speculators config format. TRT-LLM has no support for it; git grep speculators on main finds nothing.

  • TRT-LLM expects the drafter backbone in a top-level HF config (model_type: qwen3), with DSpark fields in dflash_config or at top level.
  • speculators nests the backbone under transformer_layer_config.
  • It names the capture layers aux_hidden_state_layer_ids, in vLLM's convention: a layer's input, so TRT-LLM's id is the value minus 1.

Additional notes

Workaround: we rewrote config.json into TRT-LLM's layout and symlinked the weights. The tensor names already match the GQA DSpark loader. That works, but two gaps remain:

  • The GQA path replaces the drafter's embed_tokens with the target's. This checkpoint trains its own row for the mask token (163837), so natural acceptance may be lower than intended.
  • The checkpoint was trained with a 2048-token sliding window. TRT-LLM's drafter attention rejects it, so we disabled the window. That is exact only while the context stays at or below 2048 tokens.

Inferact/Kimi-K3-DSpark loads natively, so this only affects users of the RedHatAI checkpoint.

Activity

  1. added
    Speculative Decoding
    on Oct 6, 2026
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

    Speculative Decoding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions