Skip to content

Commit 7cb7fc9

Browse files
committed
update
1 parent 11b8fdd commit 7cb7fc9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hibiki_zero/run.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ def generate(
225225
for fidx, fpath in enumerate(files):
226226
log("info", f"{fidx} : " + "{0}", [(fpath, "grey")])
227227

228+
hf_repo_parts = hf_repo.split("@")
229+
hf_repo_name = hf_repo_parts[0]
230+
if len(hf_repo_parts) > 1:
231+
revision = hf_repo_parts[1]
232+
else:
233+
revision = None
234+
228235
log("info", "Retrieving the model checkpoint...")
229236
checkpoint_info = loaders.CheckpointInfo.from_hf_repo(
230237
hf_repo,

0 commit comments

Comments
 (0)