Replies: 1 comment
-
Could you provide a full stack trace? If that's coming from TensorStore, like I think it is, it's amazing you get that far down before raising an error. I think your usage may be incorrect. Use instead:
Also take a look at |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I am following https://flax.readthedocs.io/en/latest/guides/checkpointing.html to try to save checkpoints of a model during training, which seems straight-forward, but when trying to save the state of my model I keep getting an error message which gives me no hint as to what may be going wrong. The error occurs during execution of the save command below:
checkpoint_dir = ocp.test_utils.erase_and_create_empty('/tmp/checkpoints/')
_, state = nnx.split(model)
checkpointer = ocp.PyTreeCheckpointer()
checkpointer.save(checkpoint_dir/'state', state)
and the error is
TypeError: write(): incompatible function arguments. The following argument types are supported:
1. (self: tensorstore.TensorStore, source: Union[tensorstore.TensorStore, numpy.typing.ArrayLike]) -> tensorstore.WriteFutures
Any hints as to what I might be doing wrongly would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions