1. 24 Dec, 2025 1 commit
    • laibao's avatar
      V1 采样器:新增 reduced top-k/top-p 采样路径 · 9b1e03d4
      laibao authored
      新增环境变量 VLLM_V1_USE_REDUCED_TOPK_TOPP_SAMPLER 用于开关控制
      扩展 SamplingMetadata,增加 max_top_k 与 has_any_no_top_k
      在 InputBatch 侧计算 top-k 的主机端汇总信息,避免 device 同步
      更新 Sampler/TopKTopPSampler 传递并使用新参数以启用优化采样
      9b1e03d4
  2. 08 Dec, 2025 2 commits
  3. 05 Dec, 2025 1 commit
    • laibao's avatar
      [bugfix] 优化 reject-sampling 的 InputBatch 元数据处理 · a0d556fe
      laibao authored
      - 在 InputBatch.refresh_metadata 中为展开后的采样元数据引入 repeat_count 记录重复次数
      - 完善元数据刷新逻辑以适配 reject-sampling 优化路径
      - 更新 GPUModelRunnerBase,在 batch 处理阶段正确消费新的采样元数据与重复计数
      a0d556fe
  4. 06 Sep, 2025 1 commit
  5. 02 Jul, 2025 1 commit
  6. 23 Jun, 2025 1 commit
  7. 19 Jun, 2025 1 commit
  8. 18 Jun, 2025 1 commit
  9. 10 Jun, 2025 1 commit
  10. 03 Jun, 2025 2 commits
  11. 23 May, 2025 1 commit
  12. 21 May, 2025 1 commit
  13. 15 May, 2025 1 commit
  14. 10 May, 2025 1 commit
  15. 26 Apr, 2025 1 commit
  16. 01 Apr, 2025 1 commit
  17. 28 Mar, 2025 1 commit
  18. 24 Mar, 2025 1 commit
  19. 16 Mar, 2025 1 commit
  20. 08 Mar, 2025 1 commit
  21. 06 Mar, 2025 1 commit
  22. 05 Mar, 2025 4 commits
  23. 03 Mar, 2025 1 commit
  24. 28 Feb, 2025 1 commit
  25. 27 Feb, 2025 1 commit
  26. 26 Feb, 2025 1 commit
  27. 22 Feb, 2025 1 commit
  28. 21 Feb, 2025 1 commit
  29. 18 Feb, 2025 1 commit
  30. 17 Feb, 2025 1 commit
  31. 16 Feb, 2025 1 commit
  32. 14 Feb, 2025 2 commits
  33. 07 Feb, 2025 1 commit
    • afeldman-nm's avatar
      [V1] Logprobs and prompt logprobs support (#9880) · 0630d453
      afeldman-nm authored
      
      
      This PR is adding support for sample logprobs & prompt logprobs to vLLM v1.
      
      New behavior:
      
      - During model execution, model runner computes sample logprobs (if user-provided logprobs setting is not None) and prompt logprobs (if user-provided prompt_logprobs setting is not None). For both sample and prompt logprobs, the engine core returns 3 vectors: token ids, token logprob values, token ranks. Ranks reflect tokens' 1-indexed positions in the vocabulary vector after sorting the vocabulary by log probability in descending order.
      - In scheduler.update_from_output(), sample and prompt logprobs are incorporated into the EngineCoreOutput data structure which is transferred to the engine client. If multiprocessing is enabled, then sample and prompt logprobs will be (de)serialized when the EngineCoreOutput data structure is (de)serialized.
      - During output processing, the LogprobsProcessor transforms the triplet of token ids, token logprobs values, and token ranks into the OpenAI-compatible List[Dict[token id,Logprob]] format (for sample and prompt logprobs respectively.)
      - Each Logprob instance (whether sample- or prompt-) consists of a token's log-probability, rank, and detokenized string representation. Note that logprob detokenization is handled by the LogprobsProcessor not the detokenizer.
      Signed-off-by: default avatarAndrew Feldman <afeldman@neuralmagic.com>
      Signed-off-by: default avatarNick Hill <nhill@redhat.com>
      Signed-off-by: default avatarrshaw@neuralmagic.com <rshaw@neuralmagic.com>
      Co-authored-by: default avatarrshaw@neuralmagic.com <rshaw@neuralmagic.com>
      Co-authored-by: default avatarNick Hill <nhill@redhat.com>
      0630d453
  34. 06 Feb, 2025 1 commit