From 2674c1d280424e27f0b42a15a4756423fdddf6ed Mon Sep 17 00:00:00 2001 From: wxsm Date: Sat, 11 Oct 2025 10:59:41 +0800 Subject: [PATCH] fix: Change dsv32 hack temporary path to use system temp directory (#11445) --- python/sglang/srt/utils/hf_transformers_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/sglang/srt/utils/hf_transformers_utils.py b/python/sglang/srt/utils/hf_transformers_utils.py index c967d8683..527d6bd04 100644 --- a/python/sglang/srt/utils/hf_transformers_utils.py +++ b/python/sglang/srt/utils/hf_transformers_utils.py @@ -16,6 +16,7 @@ import contextlib import json import os +import tempfile import warnings from pathlib import Path from typing import Any, Dict, Optional, Type, Union @@ -145,7 +146,7 @@ def _load_deepseek_v32_model( config_json["architectures"] = ["DeepseekV3ForCausalLM"] config_json["model_type"] = "deepseek_v3" - tmp_path = os.path.join(local_path, "_tmp_config_folder") + tmp_path = os.path.join(tempfile.gettempdir(), "_tmp_config_folder") os.makedirs(tmp_path, exist_ok=True) unique_path = os.path.join(tmp_path, f"deepseek_v32_{os.getpid()}")