Instructions to use Xenova/gpt-4o with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Xenova/gpt-4o with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Xenova/gpt-4o", device_map="auto") - Transformers.js
How to use Xenova/gpt-4o with Transformers.js:
// β οΈ Unknown pipeline tag
- Notebooks
- Google Colab
- Kaggle
Missed chat_template
#7
by cfytrok - opened
chat_template is missing in tokenizer_config.json.
Calling AutoTokenizer.apply_chat_template raises the error
ValueError: Cannot use chat template functions because tokenizer.chat_template is not set and no template argument was passed! For information about writing templates and setting the tokenizer.chat_template attribute, please see the documentation at https://huggingface.co/docs/transformers/main/en/chat_templating
Unable to count the number of tokens for the chat.