Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion moshi/moshi/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ def main():

# Download config.json to increment download counter
# No worries about double-counting since config.json will be cached the second time
hf_hub_download(args.hf_repo, "config.json")
# Skip when running in offline mode (HF_HUB_OFFLINE=1)
if not os.environ.get("HF_HUB_OFFLINE"):
hf_hub_download(args.hf_repo, "config.json")

logger.info("loading mimi")
if args.mimi_weight is None:
Expand Down