fix: Change dsv32 hack temporary path to use system temp directory (#11445)
This commit is contained in:
@@ -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(
|
|||||||
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()}")
|
||||||
|
|||||||
Reference in New Issue
Block a user