-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colab: When Imports and Definitions Failed #151
Comments
same issue |
This is the error I got: ---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-2-30d8629039fb>](https://localhost:8080/#) in <cell line: 16>()
14 import seqio
15 import t5
---> 16 import t5x
17
18 from mt3 import metrics_utils
3 frames
[/usr/local/lib/python3.10/dist-packages/t5x/checkpoints.py](https://localhost:8080/#) in <module>
2076
2077
-> 2078 @ocp.args.register_with_handler(
2079 DatasetCheckpointHandler, for_save=True, for_restore=True
2080 )
TypeError: register_with_handler() got an unexpected keyword argument 'for_restore'
This is where that line of code appears to be in @ocp.args.register_with_handler(
DatasetCheckpointHandler, for_save=True, for_restore=True
)
import orbax.checkpoint as ocp ChatGPT explanation:
From the colab dependencies install logs:
See also: |
same issue. could anyone help? would greatly appreciate any help. |
It seems like upstream was broken, as per this issue: Within that issue, they mention that the commit before the one they mentioned seemed to work; so presumably this could be fixed by forcing that package to the version before the error was introduced (and then potentially any related dependencies/etc) |
|
Not sure if this is relevant/related, but when I was applying this fix/workaround:
I got the following error:
Documenting here in case it is relevant. After that fix, now getting a new issue unfortunately:
Which seems to be at least these 2 issues:
Edit: And you can see my exploration, the upstream issue, and a workaround; here: |
Sorry about the lack of activity! Colab should be fixed now... |
colab url
2024/4/29 11:29 +08:00 is working
2024/5/2 16:50 +08:00 is not working
The output is the below.
step 1, full output: MT3 - Setup Environment - output.txt
step 2, full output: MT3 - Imports and Definitions - output.txt
step 1, screenshot:
step 2, screenshot:
TypeError: register_with_handler() got an unexpected keyword argument 'for_restore'
The command import tensorflow.compat.v2 and t5x both failed.
Anyone face the issue, and how to fix it, thanks.
The text was updated successfully, but these errors were encountered: