[httpx migration] Import httpx from huggingface_hub (#56460)
Signed-off-by: Lucain Pouget <lucain@huggingface.co> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@ tqdm
|
||||
blake3
|
||||
py-cpuinfo
|
||||
transformers >= 5.10.4
|
||||
huggingface_hub >= 1.28.0
|
||||
huggingface_hub >= 1.31.0 # Required for the `huggingface_hub.utils.httpx` re-export
|
||||
tokenizers >= 0.21.1 # Required for fast incremental detokenization.
|
||||
safetensors >= 0.6.2 # MXFP4/MXFP6 dtype support (F8_E8M0, F4) added in 0.6.0: https://github.com/huggingface/safetensors/pull/611
|
||||
protobuf >= 5.29.6, !=6.30.*, !=6.31.*, !=6.32.*, !=6.33.0.*, !=6.33.1.*, !=6.33.2.*, !=6.33.3.*, !=6.33.4.* # Required by LlamaTokenizer, gRPC. CVE-2026-0994
|
||||
|
||||
@@ -342,7 +342,7 @@ httpx==0.27.2
|
||||
# schemathesis
|
||||
httpx2==2.12.0
|
||||
# via mcp
|
||||
huggingface-hub==1.28.0
|
||||
huggingface-hub==1.31.0
|
||||
# via
|
||||
# -r requirements/test/../common.txt
|
||||
# accelerate
|
||||
|
||||
@@ -361,7 +361,7 @@ httpx==0.27.2
|
||||
# schemathesis
|
||||
httpx2==2.12.0
|
||||
# via mcp
|
||||
huggingface-hub==1.28.0
|
||||
huggingface-hub==1.31.0
|
||||
# via
|
||||
# -c requirements/common.txt
|
||||
# -r requirements/test/../common.txt
|
||||
|
||||
@@ -354,7 +354,7 @@ httpx==0.27.2
|
||||
# schemathesis
|
||||
httpx2==2.12.0
|
||||
# via mcp
|
||||
huggingface-hub==1.28.0
|
||||
huggingface-hub==1.31.0
|
||||
# via
|
||||
# -c requirements/common.txt
|
||||
# -r requirements/test/../common.txt
|
||||
|
||||
@@ -232,7 +232,7 @@ httpx2==2.10.0
|
||||
# via
|
||||
# mcp
|
||||
# openai
|
||||
huggingface-hub==1.28.0
|
||||
huggingface-hub==1.31.0
|
||||
# via
|
||||
# -c requirements/common.txt
|
||||
# -r requirements/test/../common.txt
|
||||
|
||||
@@ -10,12 +10,12 @@ from dataclasses import dataclass
|
||||
from enum import IntEnum
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
import httpx
|
||||
import msgspec
|
||||
import numpy as np
|
||||
import torch
|
||||
import zmq
|
||||
import zmq.asyncio
|
||||
from huggingface_hub.utils import httpx
|
||||
|
||||
from vllm import envs
|
||||
from vllm.config import VllmConfig
|
||||
|
||||
@@ -258,8 +258,10 @@ _configure_vllm_root_logger()
|
||||
|
||||
# Transformers uses httpx to access the Hugging Face Hub. httpx is quite verbose,
|
||||
# so we set its logging level to WARNING when vLLM's logging level is INFO.
|
||||
# httpx2 is the successor huggingface_hub switches to in its 2.x releases.
|
||||
if envs.VLLM_LOGGING_LEVEL == "INFO":
|
||||
logging.getLogger("httpx").setLevel(logging.WARNING)
|
||||
logging.getLogger("httpx2").setLevel(logging.WARNING)
|
||||
|
||||
logger = init_logger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user