Skip to content

Commit

Permalink
BUG: stop auto download from self-hosted storage for locale zh_CN (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
UranusSeven authored Sep 19, 2023
1 parent fd64f71 commit f227c93
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xinference/model/llm/llm_family.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ def is_locale_chinese_simplified() -> bool:
def download_from_self_hosted_storage() -> bool:
from ...constants import XINFERENCE_ENV_MODEL_SRC

return (
is_locale_chinese_simplified()
or os.environ.get(XINFERENCE_ENV_MODEL_SRC) == "xorbits"
)
return os.environ.get(XINFERENCE_ENV_MODEL_SRC) == "xorbits"


def get_legacy_cache_path(
Expand Down

0 comments on commit f227c93

Please sign in to comment.