[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:
Lucain
2026-09-11 16:29:31 +01:00
committed by GitHub
co-authored by Claude Opus 5
parent 5fe77aecfc
commit b87339888d
7 changed files with 8 additions and 6 deletions
+2
View File
@@ -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__)