learner.save_model gives KeyError while saving tokenizer/vocab file
See original GitHub issueI’m trying to run the multilabel classification model and while saving the model it give me an error on vocab file
learner.save_model()
gives below error:
Is this because I have not specified some path or because I’m not using a pretrained model path from local as in sample notebook.
My learner config is as below:
DataBunchConfig as below:
Any help appreciated. Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Python KeyError During Save/Load - Stack Overflow
A key error is when the key for a dictionary doesn't exist. For example, person = {name: 'joe', age: 41}.
Read more >QAT model saving bug : KeyError ... - GitHub
Command to run : python sample_qat.py. I have a simple model with input layer and a depthwise conv2d layer. I quantize this model...
Read more >How to fix Python KeyError Exceptions in simple steps?
Know about Python KeyError Exception. And learn how to handle exceptions in Python. A detailed guide to Errors and Exceptions in Python.
Read more >Python KeyError Exceptions and How to Handle Them
In this tutorial, you'll learn how to handle Python KeyError exceptions. They are often caused by a bad key lookup in a dictionary,...
Read more >What is KeyError in Python? Dictionary and Handling Them
Now let us see what a key error is. KeyError in Python is raised when you attempt to access a key that is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI, fixed in https://github.com/kaushaltrivedi/fast-bert/pull/205
You need to pass save_model a Path to the directory you wish to save it to.