Skip to content

Commit

Permalink
Use property instead of function (AI-Hypercomputer#59)
Browse files Browse the repository at this point in the history
use property instead of function
  • Loading branch information
FanhaiLu1 authored Apr 25, 2024
1 parent 781ec9e commit 2a7894f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jetstream_pt/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def _load_from_safetensors(self, path):
# pylint: disable-next=all
def load_params(self) -> Params:
# We want to fix this: load from files
with jax.default_device(self.colocated_cpus()):
with jax.default_device(self.colocated_cpus):
if self.env.checkpoint_path:
if self.env.checkpoint_format == "safetensors":
return self._load_from_safetensors(self.env.checkpoint_path)
Expand Down

0 comments on commit 2a7894f

Please sign in to comment.