jitted function get recompiled and compile is very slow #16897
Unanswered
zhenlan0426
asked this question in
Q&A
Replies: 1 comment
-
Not sure if this is related. But I would also run out of RAM (not VRAM and I have 32G of RAM) and notebook would crash. I only load a batch of 32 from disk. So the RAM is not used by the data but used by the compilation. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to fine tune a pre-trained model. train_one_step_embed function somehow get recompiled for each batch and each time trigger a warnning "Very slow compile? If you want to file a bug, run with envvar XLA_FLAGS=--xla_dump_to=/tmp/foo and attach the results." Any help is appreciated!
this function do one gradient update step
main training loop, call train_one_step_embed for each batch.
But the jit function is outside the loop, NOT called for each batch.
How come the recompilation happens for each batch?
I would get a warning like this for EACH BATCH,
Beta Was this translation helpful? Give feedback.
All reactions