# Online Machine Learning for transformers

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-machine-learning-for-transformers%2F31228%3E%5C
**Category:** Models\
**Created:** [February 7, 2023, 4:45am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-machine-learning-for-transformers%2F31228 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FChiintan)%5C
**Post date:** [February 7, 2023, 4:45am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-machine-learning-for-transformers%2F31228%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnielsr)%5C
**Post date:** [February 7, 2023, 10:27am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-machine-learning-for-transformers%2F31228%2F2 "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)
