502 server error when running model
Hi everyone,I am running several models in production using the huggingface library to perform some tasks continuously. Unfortunately, the “continuously” part is very much lacking.This is due to the fact that very often (every couple of hours), the following error pops-up:requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url:https://huggingface.co/.../resolve/main/tokenizer.jsonor config.jsonI have even tried to avoid this error by running transformers in offline mode using:TRANSFORMERS_OFFLINE=1HF_DATASETS_OFFLINE=1Unfortunately, the systeem still seems to request the model from the web, though its cached and offline mode. Any ideas how to avoid this problem? (except for saving model offline)
2021-12-21T10:12:31Z
A colleague of mine and I have recently experienced a similar issue. Even if the models are cached locally, a momentary internet disconnection results in an error if it coincides with a model/tokenizer load in a series of training scripts. My thoughts on potential reasons go no further than speculations so, any suggestions on what might be the issue and how to solve it is pretty much welcome.
2021-12-21T12:54:17Z
I’m facing the same problem. Reported here:HTTP 502 Bad Gateway for url
2023-07-04T09:50:46Z
I encountered the same problem, which was caused by network issues. I repeated it to make multiple requests until the request was successful. BTW, I am not native language of English , if something wrong in English , please forgive.