Skip to content

Commit 6bd7265

Browse files
Add the commit sha for the hf files (#5)
1 parent 910172d commit 6bd7265

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

hibiki_zero/run.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from hibiki_zero.inference import ServerState, decode_outputs, encode_inputs, get_lmgen, seed_all
2222

2323
MODULE_DIR: Path = Path(__file__).parent
24-
DEFAULT_REPO: str = "kyutai/hibiki-zero-3b-pytorch-bf16"
24+
DEFAULT_REPO: str = "kyutai/hibiki-zero-3b-pytorch-bf16@23b3e0b41782026c81dd5283a034107b01f9e513"
2525
DEFAULT_AUDIO_SAMPLES: list[Path] = [
2626
MODULE_DIR / "samples" / fname for fname in os.listdir(MODULE_DIR / "samples")
2727
]
@@ -88,14 +88,22 @@ def serve(
8888
secrets.token_urlsafe(32) if gradio_tunnel_token is None else gradio_tunnel_token
8989
)
9090

91+
hf_repo_parts = hf_repo.split("@")
92+
hf_repo_name = hf_repo_parts[0]
93+
if len(hf_repo_parts) > 1:
94+
revision = hf_repo_parts[1]
95+
else:
96+
revision = None
97+
9198
log("info", "Retrieving the model checkpoint...")
9299
checkpoint_info = loaders.CheckpointInfo.from_hf_repo(
93-
hf_repo,
100+
hf_repo_name,
94101
model_weight,
95102
mimi_weight,
96103
tokenizer,
97104
lora_weights=lora_weight,
98105
config_path=config_path,
106+
revision=revision,
99107
)
100108

101109
log("info", "Loading the codec {0}", [(checkpoint_info.mimi_weights, "blue")])

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = "0.0.1"
66
readme = "README.md"
77
dependencies = [
88
# TODO: use the public release of moshi when it's been published
9-
"moshi @ git+https://git@github.com/kyutai-labs/moshi.git@e05bb920f4df9252dfec648a7053a106afb2b561#egg=moshi&subdirectory=moshi",
9+
"moshi @ git+https://git@github.com/kyutai-labs/moshi.git@753a43ee07cc415642a4abdf9b7f9bdc03da49e3#egg=moshi&subdirectory=moshi",
1010
"gradio>=5.50.0",
1111
"jupyter>=1.1.1",
1212
]

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)