Skip to content

Commit

Permalink
update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ToluClassics committed Apr 19, 2024
1 parent 1b7d4a2 commit 68e0523
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ A list of the available models can be found in the `mlx_transformers.models` mod
config = BertConfig.from_pretrained("bert-base-uncased")
model = MLXBertModel(config)

model.load_weights("bert-base-uncased.npz", strict=True)

sample_input = "Hello, world!"
inputs = tokenizer(sample_input, return_tensors="np")
outputs = model(**inputs)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setuptools.setup(
name="mlx-transformers",
version="0.0.1",
version="0.1.0",
author="Ogundepo Odunayo",
author_email="[email protected]",
description=description,
Expand Down

0 comments on commit 68e0523

Please sign in to comment.