Unverified Commit 2674c1d2 authored by wxsm's avatar wxsm Committed by GitHub
Browse files

fix: Change dsv32 hack temporary path to use system temp directory (#11445)

parent 61055cb3
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
import contextlib import contextlib
import json import json
import os import os
import tempfile
import warnings import warnings
from pathlib import Path from pathlib import Path
from typing import Any, Dict, Optional, Type, Union from typing import Any, Dict, Optional, Type, Union
...@@ -145,7 +146,7 @@ def _load_deepseek_v32_model( ...@@ -145,7 +146,7 @@ def _load_deepseek_v32_model(
config_json["architectures"] = ["DeepseekV3ForCausalLM"] config_json["architectures"] = ["DeepseekV3ForCausalLM"]
config_json["model_type"] = "deepseek_v3" 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) os.makedirs(tmp_path, exist_ok=True)
unique_path = os.path.join(tmp_path, f"deepseek_v32_{os.getpid()}") unique_path = os.path.join(tmp_path, f"deepseek_v32_{os.getpid()}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment