Comments (2)
Hi @chelseagzr
thank you for reporting, currently saving/loading the optimizer state is not possible, and that flag should have been removed when the trainer was reworked.
I discussed with @alanakbik to introduce this again, but change it to not only store the optimizer state but also lr-scheduler and plugin states.
I am thinking of a state that can be loaded via the trainer (e.g. trainer = ModelTrainer.load_checkpoint("checkpoint.pt")
to load the states, while still allowing Classifier.load("checkpoint.pt")
to load the model without training states.
from flair.
Thank you for the timely response! It would be great if saving the state of a trainer can be enabled!
from flair.
Related Issues (20)
- [Question]: SpanClassifier For Overlapping NER Tasks? HOT 2
- [Question]: Status of zappr integration HOT 2
- [Bug]: Error message: "learning rate too small - quitting training!" HOT 1
- [Feature]: Multiple GPU Training for MultiTask Learning HOT 3
- [Question]: Embedding with fine tuned classifier model HOT 1
- [Question]: Fine-tune transformer model with TransformerWordEmbedding HOT 1
- [Question]: How much GPU Memory For Zelda Entity Linking?
- [Question]:
- [Bug]: HOT 2
- [Bug]: No Python 3.12 support HOT 2
- [Bug]: Validation F1 score is consistently 0 across training epochs but test F1 is ~0.85 HOT 6
- ImportError: cannot import name 'triu' from 'scipy.linalg'[Question]: HOT 6
- [Question]: Using flair for creating tags or keywords that represents a given text
- [Bug]: Loading task classifier from `Classifier` class not working
- [Bug]: Shared layers in multi-task model are no longer shared after loading the model from a checkpoint HOT 1
- [Question]: Extending NER tags of Hunflair
- [Bug]: SequenceTagger._all_scores_for_token() function returns incorrect prediction distribution for tokens
- [Bug]: transformers 4.40.0 assumes infinite sequence length on many models and breaks HOT 2
- [How do I get flair to recognize my custom embeddings class during model loading?]: HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flair.