amaiya / ktrain

ktrain is a Python library that makes deep learning and AI more accessible and easier to apply
Apache License 2.0
1.23k stars 268 forks source link

404 Client Error: Not Found for url #367

Closed francomarianardini closed 3 years ago

francomarianardini commented 3 years ago

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 commented 3 years ago

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.