Update flashinfer to 0.6.1 (#15551)
This commit is contained in:
+1
-2
@@ -19,7 +19,7 @@ ARG PIP_DEFAULT_INDEX
|
|||||||
ARG UBUNTU_MIRROR
|
ARG UBUNTU_MIRROR
|
||||||
ARG GITHUB_ARTIFACTORY=github.com
|
ARG GITHUB_ARTIFACTORY=github.com
|
||||||
ARG INSTALL_FLASHINFER_JIT_CACHE=0
|
ARG INSTALL_FLASHINFER_JIT_CACHE=0
|
||||||
ARG FLASHINFER_VERSION=0.5.3
|
ARG FLASHINFER_VERSION=0.6.1
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
ENV DEBIAN_FRONTEND=noninteractive \
|
||||||
CUDA_HOME=/usr/local/cuda \
|
CUDA_HOME=/usr/local/cuda \
|
||||||
@@ -304,7 +304,6 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
|||||||
|
|
||||||
# Patching packages for CUDA 12/13 compatibility
|
# Patching packages for CUDA 12/13 compatibility
|
||||||
# TODO: Remove when torch version covers these packages
|
# TODO: Remove when torch version covers these packages
|
||||||
# TODO: Move cutlass-dsl to pyproject.toml after drivers on CI runners are updated
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip if [ "${CUDA_VERSION%%.*}" = "12" ]; then \
|
RUN --mount=type=cache,target=/root/.cache/pip if [ "${CUDA_VERSION%%.*}" = "12" ]; then \
|
||||||
python3 -m pip install nvidia-nccl-cu12==2.28.3 --force-reinstall --no-deps ; \
|
python3 -m pip install nvidia-nccl-cu12==2.28.3 --force-reinstall --no-deps ; \
|
||||||
python3 -m pip install nvidia-cudnn-cu12==9.16.0.29 --force-reinstall --no-deps ; \
|
python3 -m pip install nvidia-cudnn-cu12==9.16.0.29 --force-reinstall --no-deps ; \
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ dependencies = [
|
|||||||
"datasets",
|
"datasets",
|
||||||
"einops",
|
"einops",
|
||||||
"fastapi",
|
"fastapi",
|
||||||
"flashinfer_python==0.5.3", # keep it aligned with jit-cache version in Dockerfile
|
"flashinfer_python==0.6.1", # keep it aligned with jit-cache version in Dockerfile
|
||||||
"flashinfer_cubin==0.5.3",
|
"flashinfer_cubin==0.6.1",
|
||||||
"gguf",
|
"gguf",
|
||||||
"hf_transfer",
|
"hf_transfer",
|
||||||
"huggingface_hub",
|
"huggingface_hub",
|
||||||
|
|||||||
@@ -800,7 +800,7 @@ def _set_envs_and_config(server_args: ServerArgs):
|
|||||||
if server_args.attention_backend == "flashinfer":
|
if server_args.attention_backend == "flashinfer":
|
||||||
assert_pkg_version(
|
assert_pkg_version(
|
||||||
"flashinfer_python",
|
"flashinfer_python",
|
||||||
"0.5.3",
|
"0.6.1",
|
||||||
"Please uninstall the old version and "
|
"Please uninstall the old version and "
|
||||||
"reinstall the latest version by following the instructions "
|
"reinstall the latest version by following the instructions "
|
||||||
"at https://docs.flashinfer.ai/installation.html.",
|
"at https://docs.flashinfer.ai/installation.html.",
|
||||||
|
|||||||
@@ -1299,7 +1299,6 @@ class FlashInferFP4MoE(FusedMoE):
|
|||||||
local_expert_offset=self.moe_ep_rank * self.num_local_experts,
|
local_expert_offset=self.moe_ep_rank * self.num_local_experts,
|
||||||
local_num_experts=self.num_local_experts,
|
local_num_experts=self.num_local_experts,
|
||||||
routed_scaling_factor=self.moe_runner_config.routed_scaling_factor,
|
routed_scaling_factor=self.moe_runner_config.routed_scaling_factor,
|
||||||
tile_tokens_dim=None,
|
|
||||||
# Respect the routing method configured for this layer (e.g., Renormalize for Qwen3),
|
# Respect the routing method configured for this layer (e.g., Renormalize for Qwen3),
|
||||||
# instead of always assuming DeepSeekV3.
|
# instead of always assuming DeepSeekV3.
|
||||||
routing_method_type=(
|
routing_method_type=(
|
||||||
|
|||||||
@@ -190,7 +190,6 @@ def fused_experts_none_to_flashinfer_trtllm_fp8(
|
|||||||
if runner_config.routed_scaling_factor is not None
|
if runner_config.routed_scaling_factor is not None
|
||||||
else 1.0
|
else 1.0
|
||||||
),
|
),
|
||||||
tile_tokens_dim=None,
|
|
||||||
routing_method_type=routing_method_type,
|
routing_method_type=routing_method_type,
|
||||||
use_shuffled_weight=False,
|
use_shuffled_weight=False,
|
||||||
tune_max_num_tokens=next_power_of_2(a_q.shape[0]),
|
tune_max_num_tokens=next_power_of_2(a_q.shape[0]),
|
||||||
|
|||||||
@@ -537,7 +537,6 @@ class CompressedTensorsW4A4Nvfp4MoEMethod(CompressedTensorsMoEMethod):
|
|||||||
local_expert_offset=layer.moe_ep_rank * layer.num_local_experts,
|
local_expert_offset=layer.moe_ep_rank * layer.num_local_experts,
|
||||||
local_num_experts=layer.num_local_experts,
|
local_num_experts=layer.num_local_experts,
|
||||||
routed_scaling_factor=routed_scaling_factor,
|
routed_scaling_factor=routed_scaling_factor,
|
||||||
tile_tokens_dim=None,
|
|
||||||
routing_method_type=layer.routing_method_type,
|
routing_method_type=layer.routing_method_type,
|
||||||
do_finalize=True,
|
do_finalize=True,
|
||||||
tune_max_num_tokens=next_power_of_2(hs_fp4.shape[0]),
|
tune_max_num_tokens=next_power_of_2(hs_fp4.shape[0]),
|
||||||
|
|||||||
@@ -783,7 +783,6 @@ class ModelOptFp8MoEMethod(FusedMoEMethodBase):
|
|||||||
else 1.0
|
else 1.0
|
||||||
),
|
),
|
||||||
use_routing_scales_on_input=use_routing_scales_on_input,
|
use_routing_scales_on_input=use_routing_scales_on_input,
|
||||||
tile_tokens_dim=None,
|
|
||||||
routing_method_type=routing_method_type,
|
routing_method_type=routing_method_type,
|
||||||
tune_max_num_tokens=next_power_of_2(x.shape[0]),
|
tune_max_num_tokens=next_power_of_2(x.shape[0]),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -674,7 +674,6 @@ class Mxfp4MoEMethod(FusedMoEMethodBase):
|
|||||||
layer.moe_ep_rank * layer.num_local_experts, # local_expert_offset
|
layer.moe_ep_rank * layer.num_local_experts, # local_expert_offset
|
||||||
layer.num_local_experts, # local num experts
|
layer.num_local_experts, # local num experts
|
||||||
None,
|
None,
|
||||||
None, # tile_tokens_dim
|
|
||||||
1, # routing_method_type, renormalize
|
1, # routing_method_type, renormalize
|
||||||
True, # do finalize
|
True, # do finalize
|
||||||
tune_max_num_tokens=next_power_of_2(x_quant.shape[0]),
|
tune_max_num_tokens=next_power_of_2(x_quant.shape[0]),
|
||||||
|
|||||||
@@ -2862,6 +2862,7 @@ def is_fa3_default_architecture(hf_config):
|
|||||||
"Olmo2ForCausalLM",
|
"Olmo2ForCausalLM",
|
||||||
"Gemma2ForCausalLM",
|
"Gemma2ForCausalLM",
|
||||||
"Gemma3ForConditionalGeneration",
|
"Gemma3ForConditionalGeneration",
|
||||||
|
"MixtralForCausalLM",
|
||||||
"Qwen2ForCausalLM",
|
"Qwen2ForCausalLM",
|
||||||
"Qwen3ForCausalLM",
|
"Qwen3ForCausalLM",
|
||||||
"Qwen3MoeForCausalLM",
|
"Qwen3MoeForCausalLM",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ set -euxo pipefail
|
|||||||
# Set up environment variables
|
# Set up environment variables
|
||||||
IS_BLACKWELL=${IS_BLACKWELL:-0}
|
IS_BLACKWELL=${IS_BLACKWELL:-0}
|
||||||
CU_VERSION="cu129"
|
CU_VERSION="cu129"
|
||||||
FLASHINFER_VERSION=0.5.3
|
FLASHINFER_VERSION=0.6.1
|
||||||
OPTIONAL_DEPS="${1:-}"
|
OPTIONAL_DEPS="${1:-}"
|
||||||
|
|
||||||
# Detect system architecture
|
# Detect system architecture
|
||||||
|
|||||||
Reference in New Issue
Block a user