More MLX VAD example.
This commit is contained in:
parent
dc6f552a47
commit
e76b2a53ff
|
|
@ -48,6 +48,9 @@ if __name__ == "__main__":
|
||||||
nn.quantize(model, bits=8, group_size=64)
|
nn.quantize(model, bits=8, group_size=64)
|
||||||
|
|
||||||
print(f"loading model weights from {moshi_weights}")
|
print(f"loading model weights from {moshi_weights}")
|
||||||
|
if args.hf_repo.endswith("-candle"):
|
||||||
|
model.load_pytorch_weights(moshi_weights, lm_config, strict=True)
|
||||||
|
else:
|
||||||
model.load_weights(moshi_weights, strict=True)
|
model.load_weights(moshi_weights, strict=True)
|
||||||
|
|
||||||
print(f"loading the text tokenizer from {text_tokenizer}")
|
print(f"loading the text tokenizer from {text_tokenizer}")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user