Instructions to use cointegrated/SONAR_200_text_encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cointegrated/SONAR_200_text_encoder with Transformers:
# Load model directly from transformers import AutoTokenizer, M2M100Encoder tokenizer = AutoTokenizer.from_pretrained("cointegrated/SONAR_200_text_encoder") model = M2M100Encoder.from_pretrained("cointegrated/SONAR_200_text_encoder") - Notebooks
- Google Colab
- Kaggle
can you please do the same for decoder
#2
by damerajee - opened
Title
I am planning to do this as soon as SONAR encoder-only and decoder-only are officially supported by transformer - which is going to happen after (if) this pull request is merged https://github.com/huggingface/transformers/pull/29646.