Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Config File #9

Closed
yan297 opened this issue Aug 7, 2024 · 7 comments
Closed

Missing Config File #9

yan297 opened this issue Aug 7, 2024 · 7 comments

Comments

@yan297
Copy link

yan297 commented Aug 7, 2024

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.

@shantanu-ai
Copy link
Member

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')

@yan297
Copy link
Author

yan297 commented Aug 7, 2024

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.

@shantanu-ai
Copy link
Member

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?

@shantanu-ai
Copy link
Member

@yan297
We set the path here

cache_dir: "${base.data_dir}/Mammo-CLIP/src/codebase/outputs/huggingface/tokenizers"

@yan297
Copy link
Author

yan297 commented Aug 7, 2024

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).

@shantanu-ai
Copy link
Member

@yan297
This is the huggingface file i used file
Can u plz download and see?

@yan297
Copy link
Author

yan297 commented Aug 7, 2024

Got it! Thank you for your positive response! I appreciate it.

@yan297 yan297 closed this as completed Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants