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

Huggingface validation error #22

Open
lmallin opened this issue Feb 19, 2025 · 0 comments
Open

Huggingface validation error #22

lmallin opened this issue Feb 19, 2025 · 0 comments

Comments

@lmallin
Copy link

lmallin commented Feb 19, 2025

I've installed the PhenoTagger v1.2 and installed dependencies but when I try to run either the example data set or my own, I get the following error:

[src]$ python PhenoTagger_tagging.py -i ../example/input/ -o ../example/output/
I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Num GPUs Available: 0
loading dict!
Dic_len: 51201
load dic done!
Traceback (most recent call last):
File "/mnt/data1/resources/PhenoTagger-1.2/src/PhenoTagger_tagging.py", line 278, in
phenotagger_tag(args.infolder,para_set,args.outfolder)
File "/mnt/data1/resources/PhenoTagger-1.2/src/PhenoTagger_tagging.py", line 213, in phenotagger_tag
nn_model=bioTag_BERT(vocabfiles)
File "/mnt/data1/resources/PhenoTagger-1.2/src/nn_model.py", line 110, in init
self.rep = BERT_RepresentationLayer(self.checkpoint_path, self.label_file, lowercase=self.lowercase)
File "/mnt/data1/resources/PhenoTagger-1.2/src/nn_represent.py", line 217, in init
self.tokenizer = AutoTokenizer.from_pretrained(tokenizer_name_or_path, use_fast=True,do_lower_case=lowercase)
File "/mnt/data1/resources/PhenoTagger-1.2/phenotagger_venv/lib64/python3.9/site-packages/transformers/models/auto/tokenization_auto.py", line 643, in from_pretrained
tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
File "/mnt/data1/resources/PhenoTagger-1.2/phenotagger_venv/lib64/python3.9/site-packages/transformers/models/auto/tokenization_auto.py", line 487, in get_tokenizer_config
resolved_config_file = cached_file(
File "/mnt/data1/resources/PhenoTagger-1.2/phenotagger_venv/lib64/python3.9/site-packages/transformers/utils/hub.py", line 417, in cached_file
resolved_file = hf_hub_download(
File "/mnt/data1/resources/PhenoTagger-1.2/phenotagger_venv/lib64/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 106, in _inner_fn
validate_repo_id(arg_value)
File "/mnt/data1/resources/PhenoTagger-1.2/phenotagger_venv/lib64/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 154, in validate_repo_id
raise HFValidationError(
huggingface_hub.errors.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '../models/bioformer-cased-v1.0/'. Use repo_type argument if needed.

Any ideas on how to fix this issue?
Thanks,
Lucy

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

1 participant