# Online Machine Learning for transformers

**URL:** <https://discuss.huggingface.co/t/online-machine-learning-for-transformers/31228>\
**Category:** Models\
**Created:** [February 7, 2023, 4:45am UTC](https://discuss.huggingface.co/t/online-machine-learning-for-transformers/31228 "2023-02-07T04:45:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chiintan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@Chiintan](https://discuss.huggingface.co/u/Chiintan)\
**Post date:** [February 7, 2023, 4:45am UTC](https://discuss.huggingface.co/t/online-machine-learning-for-transformers/31228/1 "2023-02-07T04:45:57Z")

</div>

I was wondering if there is any library that is compatible to train transformers in a incremental manner. Just like River and Creme are there to support many Supervised and Unsupervised learning task in a online manner; is there any library for transformers too. Any advice will be highly appreciated.

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](https://discuss.huggingface.co/u/nielsr)\
**Post date:** [February 7, 2023, 10:27am UTC](https://discuss.huggingface.co/t/online-machine-learning-for-transformers/31228/2 "2023-02-07T10:27:21Z")

</div>

Hi,

That’s exactly the purpose of the [online language modeling (OLM)](https://huggingface.co/olm) project 🙂

The repo can be found here: [GitHub - huggingface/olm-training: Repo for training MLMs, CLMs, or T5-type models on the OLM pretraining data, but it should work with any hugging face text dataset.](https://github.com/huggingface/olm-training)
