RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
Hi, installed and imported galai successfully using Ubuntu 21.01. I installed galai as :
conda create -n galia python=3.9
conda activate galia
pip install git+https://github.com/paperswithcode/galai
and the code I tested is:
import galai as gal
model = gal.load_model(name = 'mini', num_gpus = 1)
model.generate("Lecture 1: The Ising Model\n\n", new_doc=True, top_p=0.7, max_length=200)
however, the mini obtains the following error:
Traceback (most recent call last):
File "mini.py", line 3, in
Same problem here. In my case the error occurs at on: model = gal.load_model("standard")
You should check under : ~/.cache/galactica/standard.pt/ The downloaded zipped checkpoint must have been corrupt. Just delete it and try again.
@lsiksous thanks for the hint. any idea where the cache folder would be on Windows?
@lsiksous, you're onto something. I forced a download of a different model size (changed "standard" to "mini") and it works. Running the code with all other model sizes works as well. This would indeed seem to suggest the originally download model is the problem (standard in my case since I just copied the sample code from the repo's README)
Hi all, in galai 1.1.0 we switched to transformers for checkpoints management. See the details at https://huggingface.co/docs/transformers/installation#cache-setup for information about where the cache is located and how to change it. Closing this for now as it seems to be due to file corruption, as mentioned above. Please reopen if you still have any issues.