Comments (4)
I have a suspicion it may be due to a bad interaction between different dependencies. Could you try to strip out the extra stuff unrelated to checkpointing, without removing any imports and see if that works?
If it still hangs, you can start removing some imports, and the issue should resolve (at worst by the point where you're only importing Orbax).
Also, a few nits:
handlers = {'state': orbax.checkpoint.PyTreeCheckpointer()}
: this should be checkpointers
. Handler is a different concept in Orbax and will rapidly lead to bugs if you confuse the two.
orbax.checkpoint.Checkpointer(orbax.checkpoint.PyTreeCheckpointHandler())
is equivalent to orbax.checkpoint.PyTreeCheckpointer()
from orbax.
Thank you for the suggestions! It turns out
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('QtAgg')
%matplotlib qt
in my notebook were the lines of code causing the issue. Is there a way to solve this issue other than not importing?
from orbax.
I'm afraid your guess is as good as mine, since I'm not familiar with this particular backend, and there appears to be no problem with matplotlib without overriding the backend. Is it possible to skip that part?
from orbax.
Yep, matplotlib by itself is not the issue. The qt backend is more of a convenience, not at all necessary. I will disable it for now. Thanks for the help!
from orbax.
Related Issues (20)
- Any way to have CheckpointManager write earlier checkpoints? HOT 2
- Incompatibility with Haiku HOT 4
- Questions about loading and writing checkpoints in distributed training HOT 4
- Could you please provide the py.typed file for type checking?
- AttributeError: 'Config' object has no attribute 'jax_coordination_service' HOT 2
- Issue loading checkpoint step during Paxml evaluation HOT 3
- Async checkpointer failure handling HOT 3
- Dependency array-record Not Available on ARM64 Architecture HOT 2
- Importing orbax before TensorFlow silences important logging from TensorFlow
- Support checkpointing new-style `jax.random.key` HOT 6
- Array has been deleted HOT 4
- How to restore on a CPU a checkpoint saved on a GPU? HOT 1
- Checkpoint Manager using different directory paths for save and restore HOT 2
- Cannot restore sharded array on different machine HOT 8
- How to restore a variable from checkpoint saved in cpu back in cpu when you have both gpu and cpu? HOT 5
- Strange behavior of saving sharded trainstate in GCP. HOT 3
- misstake submit
- Error HOT 1
- Struggling to restore metadata on other device HOT 6
- Parse structure of a saved PyTree checkpoint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orbax.