Open grofte opened 2 years ago
i faced same issue, thanks for reporting issue. does anyone not faced this issue? :)
Thanks for reporting! I will check it out and get back.
It would be nice with a Hugging Face model like there is for ByT5. But I am sure that if you approached the Tensorflow Hub team they would dedicate resources to making your work available to a wider audience.
Looks like the issue was that the version of the TensorFlow that we're pointing to in our WORKSPACE file is 2.6.0, and it's causing problems because it's probably 2.9.1 that's installed on the colab machine.
We've got an update, we just haven't gotten around to propagating the changes to Github. I'll see about getting that done and verifying that fixes things.
As a quick update, syncing the code did fix that problem, but also revealed another bug in the dataset building section. Will continue to investigate.
GoEmotions colab should be working again.
@grofte Could you refer to the comments above and try with the latest TF version. Please let us know if it helps? Thank you!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
The Colaboratory absolutely works, thank you.
But that seems like a bit much to maintain which is why I asked for a docker image. Hopefully the Colab notebook won't need maintenance.
I don't understand why you are talking about Tensorflow Model Garden but then install tensorflow-datasets?
I don't understand why you are installing the nightly version of tensorflow-datasets? The current nightly doesn't even have goemotions. Maybe it will tomorrow but why on earth are you using the nightly version? Just get the latest with !pip install tensorflow-datasets
. If you have already installed the nightly then you need to !pip uninstall tfds-nightly
.
I think the GoEmotions dataset may not have been available in tensorflow-datasets when we started writing the colab, and we never got around to updating the package we were using after it was available in tensorflow-datasets.
I have no idea why we're calling it the Tensorflow Model Garden package, though.
Either way, I'll update the colab. Thanks.
Sorry for my tone. I was very tired yesterday afternoon.
I wanted to do a small re-write of the notebook for my own sake anyway so maybe I should submit that?
I am thinking that I will look at
build_dataset
function unless they are imported from somewhere else - I know this is "just" a notebook but I think it's especially important to be explicit with these things in notebooksI've made another version of the notebook. I haven't changed anything major, I've simply made it so each epoch only reads the data once (instead of 25 times as before so epochs are 250 instead of 10), learning rate is printed each epoch, I've added f1 as a metric, I plot loss and metrics versus epoch after training, labels and features are preprocessed in separate functions, functions have all arguments passed to them, model is compiled with jit_compile (about 25% faster).
I haven't optimized any hyperparameters even though it is clear that the model is under-parameterized and either converges long before the 250 epochs or stops improving when learning rate gets low enough.
Should I make a pull request with these changes?
I've also gotten Charformer to run and perform on par with BERT despite a) not being pretrained, b) only having 270k parameters, c) having been set up with extremely random hyperparameters since I needed to add a bunch but I have no idea what they do.
However, the model does not work when I load it after saving it, i.e. the predictions are nonsense. I've tried a couple of different ways and it might be the tokenizer but I don't know.
Hello
Im receiving the same error on Google Colab for goemotions. I was working with go emotions for one month but its two days that it doesn't work and get this error:
ERROR: Failed building wheel for seq-flow-lite Running setup.py clean for seq-flow-lite Failed to build seq-flow-lite
any help is appreciated
Hi @pyoung2778 The goemotions colab was working fine but from 3 days ago, it doesn't work. I'm getting this error, could you help, please?
ERROR: Failed building wheel for seq-flow-lite Running setup.py clean for seq-flow-lite Failed to build seq-flow-lite
Yeah, it doesn't build at all. I am thinking that it's a version change in bazel
or pip
since the code here doesn't seem to have changed.
Finally got a chance to look at this. It looks to be a bazel change. bazel 6.0.0 is not backwards compatible, and @bazel_tools//platforms constraints are now giving us some problems.
I'm looking into it.
Okay. I suspect the actual fix buried deeper that I'm going to be able to fix.
In the mean time, changing the line "!sudo apt install bazel" to "!sudo apt install bazel=5.4.0" installs a version of bazel that is compatible with everything.
I still need to run a couple checks to make sure everything's working, but in the meantime, you should be able to modify that line in the colab and get everything working again.
Okay, should be fixed.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/blob/master/research/seq_flow_lite/demo/colab/emotion_colab.ipynb
https://github.com/tensorflow/models/tree/master/research/seq_flow_lite#readme
2. Describe the bug
There are three ways to launch a demo here and none of them work (won't build).
!pip install models/research/seq_flow_lite
- maybe because colab uses Python 3.7?bazel run -c opt :trainer
fails to build in atensorflow/tensorflow:2.3.4-gpu
docker image where I installed bazelbazel run -c opt sgnn:train
does not run since it's not defined in the BUILD file - fair enough3. Steps to reproduce
Run the colab.
& 3.
4. Expected behavior
The thing is that I don't even care about PRADO or sgnn. I just wanted to try one of the new models you advertised on the Google AI blog (https://ai.googleblog.com/2022/08/efficient-sequence-modeling-for-on.html) but I can't because it needs the file tf_custom_ops_py.py but it doesn't exist. However tf_custom_ops.cc does exist so it seemed likely that if I could get build the Python version from C++ file. But nothing builds. There are no instructions on how to build and none of the demos seem to work.
5. Additional context
6. System information