Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
2674c1d2
Unverified
Commit
2674c1d2
authored
Oct 11, 2025
by
wxsm
Committed by
GitHub
Oct 10, 2025
Browse files
fix: Change dsv32 hack temporary path to use system temp directory (#11445)
parent
61055cb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/utils/hf_transformers_utils.py
python/sglang/srt/utils/hf_transformers_utils.py
+2
-1
No files found.
python/sglang/srt/utils/hf_transformers_utils.py
View file @
2674c1d2
...
@@ -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
()
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment