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. 02 Jul, 2025 1 commit
  3. 03 Jun, 2025 1 commit
  4. 08 Mar, 2025 1 commit
  5. 03 Mar, 2025 1 commit
  6. 26 Feb, 2025 1 commit
  7. 22 Feb, 2025 1 commit
  8. 21 Feb, 2025 1 commit
  9. 18 Feb, 2025 1 commit
  10. 16 Feb, 2025 1 commit
  11. 14 Feb, 2025 2 commits
  12. 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
  13. 02 Feb, 2025 1 commit
    • Russell Bryant's avatar
      [Misc] Add SPDX-License-Identifier headers to python source files (#12628) · e489ad7a
      Russell Bryant authored
      - **Add SPDX license headers to python source files**
      - **Check for SPDX headers using pre-commit**
      
      commit 9d7ef44c3cfb72ca4c32e1c677d99259d10d4745
      Author: Russell Bryant <rbryant@redhat.com>
      Date:   Fri Jan 31 14:18:24 2025 -0500
      
          Add SPDX license headers to python source files
          
      This commit adds SPDX license headers to python source files as
      recommended to
      the project by the Linux Foundation. These headers provide a concise way
      that is
      both human and machine readable for communicating license information
      for each
      source file. It helps avoid any ambiguity about the license of the code
      and can
          also be easily used by tools to help manage license compliance.
          
      The Linux Foundation runs license scans against the codebase to help
      ensure
          we are in compliance with the licenses of the code we use, including
      dependencies. Having these headers in place helps that tool do its job.
          
          More information can be found on the SPDX site:
          
          - https://spdx.dev/learn/handling-license-info/
      
      Signed-off-by: default avatarRussell Bryant <rbryant@redhat.com>
      
      commit 5a1cf1cb3b80759131c73f6a9dddebccac039dea
      Author: Russell Bryant <rbryant@redhat.com>
      Date:   Fri Jan 31 14:36:32 2025 -0500
      
          Check for SPDX headers using pre-commit
      Signed-off-by: default avatarRussell Bryant <rbryant@redhat.com>
      
      ---------
      Signed-off-by: default avatarRussell Bryant <rbryant@redhat.com>
      e489ad7a
  14. 26 Dec, 2024 1 commit
  15. 03 Nov, 2024 1 commit
  16. 22 Oct, 2024 1 commit