Open BradLarson opened 4 years ago
I ran into this running WordSeg on TPU as well:
Attempting to fetch value instead of handling error Invalid argument: Computation requires more parameters (5370) than supported (limit 4035).
Starting training...
2020-10-05 23:42:13.702416: F tensorflow/compiler/xla/xla_client/xla_util.cc:90] Invalid argument: From /job:tpu_worker/replica:0/task:0:
2 root error(s) found.
(0) Invalid argument: Computation requires more parameters (548) than supported (limit 236).
[[{{node XRTCompile}}]]
(1) Invalid argument: Computation requires more parameters (548) than supported (limit 236).
[[{{node XRTCompile}}]]
[[XRTCompile_G20]]
0 successful operations.
0 derived errors ignored.
Aborted (core dumped)
i can reproduce this by using tensorflow 2.3.1 as the base for the tpu. moving to a nightly build makes the crash go away:
would suggest bumping what base image colab is using should fix this.
It has been pointed out by Wojtek Czarnowski that in specific cases the Transformer model (or components used within it) can trigger a compilation error in X10 on TPU:
He provided a reproducer notebook which can be opened and run in Colab. Choosing a GPU-backed instance lets this succeed, but running this notebook with a TPU-backed instance triggers the above crash.