Missing Config File
yan297 opened this issue · comments
Hi, thank you for your work!
when I was trying to run the eval_zero_shot_clip.py for the Zero-shot evaluation. I encountered the following error. Could you kindly help me with that?
Error executing job with overrides: ['model.clip_check_point=./src/codebase/outputs/upmc_clip/b2_detector_period_n/checkpoints/fold_0/b2-model-best-epoch-10.tar']
Traceback (most recent call last):
File "/home/zyan297/anaconda3/envs/Mammo-CLIP/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 304, in hf_raise_for_status
response.raise_for_status()
File "/home/zyan297/anaconda3/envs/Mammo-CLIP/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/emilyalsentzer/Bio_ClinicalBERT/resolve/main/tokenizer_config.json
Thank you.
I think this error is due to a problem while downloading the Bio_clinicalBERT from huggingface. Can you please check if BioclinicalBERT is downloaded successfully in your .config directory. Also u can manually download or redirect the download using the following coder:
from transformers import AutoTokenizer, AutoModel
# Download the files manually and place them in the correct directory
tokenizer = AutoTokenizer.from_pretrained('./local_path_to_tokenizer')
model = AutoModel.from_pretrained('./local_path_to_model')
Thank you for your quick reply!
I have checked the URL, but the main branch has already been modified to https://huggingface.co/emilyalsentzer/Bio_ClinicalBERT/tree/main. I can't find the original tokenizer_config.json file.
Can you please check if set this path correctly: here
Also, can u plz tell me if your installed versions are same as the our environment.yml file?
Yes, the codes are totally the same and I followed your steps and used your environment.yml file to create a conda env.
The author of emilyalsentzer/Bio_ClinicalBERT has removed that file: (resolve/main/tokenizer_config.json).
Got it! Thank you for your positive response! I appreciate it.