Skip to content

Commit

Permalink
Remove hardcoded root path for HF models
Browse files Browse the repository at this point in the history
  • Loading branch information
emerzon authored and Weves committed Dec 17, 2024
1 parent 48be633 commit b5d0df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/model_server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
os.environ["TOKENIZERS_PARALLELISM"] = "false"
os.environ["HF_HUB_DISABLE_TELEMETRY"] = "1"

HF_CACHE_PATH = Path("/root/.cache/huggingface/")
TEMP_HF_CACHE_PATH = Path("/root/.cache/temp_huggingface/")
HF_CACHE_PATH = Path(os.path.expanduser("~")) / ".cache/huggingface"
TEMP_HF_CACHE_PATH = Path(os.path.expanduser("~")) / ".cache/temp_huggingface"

transformer_logging.set_verbosity_error()

Expand Down

0 comments on commit b5d0df9

Please sign in to comment.