revert flashinfer 0.6.11 bumps (#25310)

This commit is contained in:
Liangsheng Yin
2026-05-14 15:28:58 -07:00
committed by GitHub
parent 88d3ed7df1
commit 22dfcdaa04
7 changed files with 33 additions and 34 deletions
+4 -4
View File
@@ -27,8 +27,8 @@ dependencies = [
"datasets",
"einops",
"fastapi",
"flashinfer_python==0.6.11.post1", # keep it aligned with jit-cache version in Dockerfile
"flashinfer_cubin==0.6.11.post1",
"flashinfer_python==0.6.8.post1", # keep it aligned with jit-cache version in Dockerfile
"flashinfer_cubin==0.6.8.post1",
"gguf",
"interegular",
"llguidance>=0.7.11,<0.8.0",
@@ -37,7 +37,7 @@ dependencies = [
"ninja",
"easydict", # Required by remote model code (e.g. DeepSeek-OCR) loaded via trust_remote_code; validated by transformers 5.4+ check_imports
"numpy",
"nvidia-cutlass-dsl==4.5.0",
"nvidia-cutlass-dsl==4.4.2",
"nvidia-ml-py",
"openai-harmony==0.0.4",
"openai==2.6.1",
@@ -53,7 +53,7 @@ dependencies = [
"pydantic",
"python-multipart",
"pyzmq>=25.1.2",
"quack-kernels>=0.4.1",
"quack-kernels>=0.3.0",
"requests",
"scipy",
"sentencepiece",
+1 -1
View File
@@ -1201,7 +1201,7 @@ def _set_envs_and_config(server_args: ServerArgs):
if server_args.attention_backend == "flashinfer":
assert_pkg_version(
"flashinfer_python",
"0.6.11.post1",
"0.6.8.post1",
"Please uninstall the old version and "
"reinstall the latest version by following the instructions "
"at https://docs.flashinfer.ai/installation.html.",
@@ -383,11 +383,6 @@ class FlashInferWorkspaceManager:
hidden_dim=hidden_dim,
dtype=dtype,
force_oneshot_support=bool(use_oneshot),
# Pin the symmetric-memory rendezvous to the actual
# subgroup. Without this, flashinfer >=0.6.10 falls back
# to WORLD and TP/EP/CP subgroup peers get addressed
# incorrectly (kernel hangs in cuda-graph warmup).
group=device_group,
)
if (
_TorchDistBackend is not None
@@ -520,6 +515,8 @@ def ensure_workspace_initialized(
if not is_flashinfer_available() or _flashinfer_comm is None:
return False
tp_coordinator = get_tp_group()
if use_attn_tp_group:
world_size = get_attn_tensor_model_parallel_world_size()
rank = get_attn_tensor_model_parallel_rank()
@@ -534,12 +531,17 @@ def ensure_workspace_initialized(
rank = get_moe_tensor_parallel_rank()
coordinator = get_moe_tp_group()
# Always pass the coordinator's groups: flashinfer >=0.6.10 reads the
# rendezvous group from `group=...` (falling back to WORLD when None),
# so leaving it None silently rendezvouses on WORLD and the kernel ends
# up addressing the wrong peers in TP/EP/CP subgroup setups.
device_group = coordinator.device_group
cpu_group = coordinator.cpu_group
# When the sub-group IS the full TP group, pass None so the workspace
# uses the default process group directly (no TorchDistBackend needed).
# For true sub-groups, use NCCL device_group for GPU/device mapping and
# GLOO cpu_group for metadata broadcasts (avoids NCCL collectives that
# interfere with CUDA graph capture).
if coordinator.device_group is tp_coordinator.device_group:
device_group = None
cpu_group = None
else:
device_group = coordinator.device_group
cpu_group = coordinator.cpu_group
if world_size <= 1:
return False
@@ -34,13 +34,13 @@ try:
enable_pdl: Optional[bool] = None,
) -> tuple[torch.Tensor, torch.Tensor]:
return _flashinfer_fp4_quantize(
input=input,
global_scale=global_scale,
sf_vec_size=sf_vec_size,
sf_use_ue8m0=sf_use_ue8m0,
is_sf_swizzled_layout=is_sf_swizzled_layout,
is_sf_8x4_layout=is_sf_8x4_layout,
enable_pdl=enable_pdl,
input,
global_scale,
sf_vec_size,
sf_use_ue8m0,
is_sf_swizzled_layout,
is_sf_8x4_layout,
enable_pdl,
backend=_flashinfer_fp4_quantize_backend,
)
+1 -1
View File
@@ -1105,7 +1105,7 @@ def check_pkg_version_at_least(pkg: str, min_version: str) -> bool:
Args:
pkg: Package name (distribution name, e.g., "flashinfer-python")
min_version: Minimum version required (e.g., "0.6.11.post1")
min_version: Minimum version required (e.g., "0.6.8.post1")
Returns:
True if package is installed and version >= min_version, False otherwise