You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run the detoxGPT model from the readme collab, it can't download detoxGPT model weights
from rudetoxifier.models.detoxGPT import detoxGPT
# if you are running the code for the first time,
# the fine-tuned weights will be downlading, that can take time
model = detoxGPT(device)
Text error output(same as on the pic)
Loading fine-tuned weights.
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
[/usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_errors.py](https://localhost:8080/#) in hf_raise_for_status(response, endpoint_name)
238 try:
--> 239 response.raise_for_status()
240 except HTTPError as e:
10 frames
HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/rugpt3_large_200/resolve/main/vocab.json
The above exception was the direct cause of the following exception:
RepositoryNotFoundError Traceback (most recent call last)
RepositoryNotFoundError: 401 Client Error. (Request ID: iedQ-NZbOy06HPI74u7So)
Repository Not Found for url: https://huggingface.co/rugpt3_large_200/resolve/main/vocab.json.
Please make sure you specified the correct `repo_id` and `repo_type`.
If the repo is private, make sure you are authenticated.
Invalid username or password.
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
[/usr/local/lib/python3.7/dist-packages/transformers/utils/hub.py](https://localhost:8080/#) in cached_file(path_or_repo_id, filename, cache_dir, force_download, resume_download, proxies, use_auth_token, revision, local_files_only, subfolder, user_agent, _raise_exceptions_for_missing_entries, _raise_exceptions_for_connection_errors, _commit_hash)
423 except RepositoryNotFoundError:
424 raise EnvironmentError(
--> 425 f"{path_or_repo_id} is not a local folder and is not a valid model identifier "
426 "listed on '[https://huggingface.co/models'\nIf](https://huggingface.co/models'/nIf) this is a private repository, make sure to "
427 "pass a token having permission to this repo with `use_auth_token` or log in with "
OSError: rugpt3_large_200 is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.
the condBERT model also can not be used
import sys
sys.path.append('rudetoxifier/models/condBERT')
sys.path.append('rudetoxifier/models/condBERT/multiword')
from rudetoxifier.models.condBERT import condBERT
# if you are running the code for the first time,
# the pre-trained weights will be downlading, that can take time
# you can try condBERT with or without fine-tuned weights
model = condBERT(device=device, from_pretrained=True)
Text error output(same as on the pic)
Downloading: 100%
133k/133k [00:00<00:00, 1.51MB/s]
Downloading: 100%
49.0/49.0 [00:00<00:00, 1.25kB/s]
Downloading: 100%
659/659 [00:00<00:00, 11.7kB/s]
Downloading: 100%
388M/388M [00:09<00:00, 40.8MB/s]
Loading fine-tuned weights.
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
[<ipython-input-4-6e332c8d6c21>](https://localhost:8080/#) in <module>
8 # the pre-trained weights will be downlading, that can take time
9 # you can try condBERT with or without fine-tuned weights
---> 10 model = condBERT(device=device, from_pretrained=True)
3 frames
[/usr/local/lib/python3.7/dist-packages/torch/serialization.py](https://localhost:8080/#) in __init__(self, name, mode)
209 class _open_file(_opener):
210 def __init__(self, name, mode):
--> 211 super(_open_file, self).__init__(open(name, mode))
212
213 def __exit__(self, *args):
FileNotFoundError: [Errno 2] No such file or directory: 'ru_cond_bert_geotrend/checkpoint-9000/pytorch_model.bin'
The text was updated successfully, but these errors were encountered:
When I try to run the detoxGPT model from the readme collab, it can't download detoxGPT model weights
Text error output(same as on the pic)
the condBERT model also can not be used
Text error output(same as on the pic)
The text was updated successfully, but these errors were encountered: