mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-26 18:51:18 +08:00
fix: undefined hf_path (#292)
This commit is contained in:
parent
047d4650c4
commit
7380ebfb0d
@ -29,9 +29,9 @@ def fetch_from_hub(model_path: str, local: bool):
|
||||
for wf in weight_files:
|
||||
weights.update(mx.load(wf).items())
|
||||
|
||||
config = transformers.AutoConfig.from_pretrained(hf_path)
|
||||
config = transformers.AutoConfig.from_pretrained(model_path)
|
||||
tokenizer = transformers.AutoTokenizer.from_pretrained(
|
||||
hf_path,
|
||||
model_path,
|
||||
)
|
||||
return weights, config.to_dict(), tokenizer
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user