Instructions to use nomic-ai/nomic-xlm-2048 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nomic-ai/nomic-xlm-2048 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="nomic-ai/nomic-xlm-2048", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("nomic-ai/nomic-xlm-2048", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("nomic-ai/nomic-xlm-2048", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
## 🚨Missing License
Hi, I'd like to report a missing license in nomic-ai/nomic-xlm-2048. I noticed that this model was finetuned from FacebookAI/xlm-roberta-base, which is licensed under MIT License — a permissive open-source license that allows for reuse and redistribution as long as the original license is included. But the thing is, the nomic-ai/nomic-xlm-2048 currently doesn’t include any license information, which can lead to confusion for downstream users.
⚠️ Without a license attached:
• By default, users technically don’t have legal permission to use, modify, distribute, or even deploy the model
• This also technically blocks any downstream reuse, even for research or open-source work
• Other teams might want to build on this model but may hesitate or be unable to because the usage rights are unclear
• This can unintentionally limit the model’s impact, even if your intention was to make it openly available!
🔹 Suggestion:
It might be helpful to:
• Adding the MIT License (or a compatible license) to the repo or model card
Totally appreciate the work on this — just hoping to make things a bit smoother and safer for downstream users! 😊Let me know if I misunderstood anything — happy to help!
Thanks for your attention!