Transformers
PyTorch
English
t5
text2text-generation
conversational
dialogue
response generation
text-generation-inference
Instructions to use allenai/cosmo-xl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use allenai/cosmo-xl with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("allenai/cosmo-xl") model = AutoModelForSeq2SeqLM.from_pretrained("allenai/cosmo-xl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Can I set "speakers" for cosmo-xl?
#6
by Justlearn - opened
You can give role instructions. For example, "Imagine you are a teacher and talk to David".
It doesn't work properly. There are mistakes for "What is my name?" and "Who am I?". Can I set speaker for each message?
That is possible too! We would like to emphasize that COSMO is trained mainly for research/academic purposes, and it still has limitations. Please do not use COSMO as is for real-world applications.
heanu changed discussion status to closed
How can I set speaker for each message?
