Skip to content

Commit c3ad73a

Browse files
khalil-Hennarakhalil
andauthored
replace os.getenv with os.path.expanduser because the first one doesn… (#2515)
Co-authored-by: khalil <[email protected]>
1 parent e64ee0e commit c3ad73a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastchat/model/compression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def load_compress_model(model_path, device, torch_dtype, use_fast, revision="mai
147147
# We don't necessarily need to download the model' repo again if there is a cache.
148148
# So check the default huggingface cache first.
149149
model_path_temp = os.path.join(
150-
os.getenv("HOME"),
150+
os.path.expanduser("~"),
151151
".cache/huggingface/hub",
152152
"models--" + model_path.replace("/", "--"),
153153
"snapshots/",

0 commit comments

Comments
 (0)