Update loader
Browse files- load_model.py +1 -1
load_model.py
CHANGED
|
@@ -12,5 +12,5 @@ def load_model(repo_id="Extropic-AI/Z1T-0"):
|
|
| 12 |
weights_path = hf_hub_download(repo_id, "model.eqx")
|
| 13 |
with open(config_path) as f:
|
| 14 |
config = Config(**json.load(f))
|
| 15 |
-
model = create_model(config, jax.random.
|
| 16 |
return eqx.tree_deserialise_leaves(weights_path, model)
|
|
|
|
| 12 |
weights_path = hf_hub_download(repo_id, "model.eqx")
|
| 13 |
with open(config_path) as f:
|
| 14 |
config = Config(**json.load(f))
|
| 15 |
+
model = create_model(config, jax.random.key(0))
|
| 16 |
return eqx.tree_deserialise_leaves(weights_path, model)
|