Closed cwoonb closed 10 months ago
ah! and torch.save(model.state_dict(), "outputs/") I don't need to use code, but can you tell me how to save and load the model? I searched on Google and it said I had to inherit from torch.nn, but that didn't work.
Just as in our example - the warning is expected and should be just ignored. https://github.com/mim-solutions/bert_for_longer_texts/blob/main/notebooks/example_model_with_pooling_fit_predict.ipynb
Model's class has its own load
and save
methods implemented. Look at the example below.
https://github.com/mim-solutions/bert_for_longer_texts/blob/main/tests/test_bert_with_pooling.py#L59
Token indices sequence length is longer than the specified maximum sequence length for this model (2268 > 512). Running this sequence through the model will result in indexing errors Can I ignore the warning notice above? Why is it popping up?