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

404 Client Error: Not Found for url #367

Closed
francomarianardini opened this issue May 13, 2021 · 1 comment
Closed

404 Client Error: Not Found for url #367

francomarianardini opened this issue May 13, 2021 · 1 comment
Labels
user question Further information is requested

Comments

@francomarianardini
Copy link

Hello,

thanks for the very nice library. I am using a pretrained transformer from HuggingFace with the code below

MODEL_NAME = 'nboost/pt-bert-base-uncased-msmarco'
t = txt.Transformer(MODEL_NAME, maxlen=500, class_names=['S', 'N'])
trn = t.preprocess_train(train_docs, train_labels)
val = t.preprocess_test(test_docs, test_labels)
model = t.get_classifier()

and the execution of the last line of code returns me:

404 Client Error: Not Found for url: https://huggingface.co/nboost/pt-bert-base-uncased-msmarco/resolve/main/tf_model.h5

it looks like the file is no more present on the remote server. am I right?

what do you think?

thanks in advance,

Franco Maria

@amaiya amaiya added the user question Further information is requested label May 13, 2021
@amaiya
Copy link
Owner

amaiya commented May 13, 2021

Hello: You should be able to safely ignore the error. The 404 error simply means that transformers was not able to find a Tensorflow version of this particular model. In this case, the PyTorch version of the model checkpoint will be downloaded and then be loaded by ktrain as a Tensorflow model for training/fine-tuning. If you type model.summary(), it should show that the model was loaded successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants