Downloads · 30 days
0
Xenova/text-davinci-003
text-davinci-003 is a machine learning model from Xenova. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
A 🤗-compatible version of the text-davinci-003 tokenizer (adapted from openai/tiktoken). This means it can be used with Hugging Face libraries including Transformers, Tokenizers, and Transformers.js.
Downloads · 30 days
0
Access
Public
Updated Aug 18, 2025
Repo size
—
Likes
9
Public
Click a slice to open those files.
.json3.1 MB · 87%
From the Hugging Face model README
A 🤗-compatible version of the text-davinci-003 tokenizer (adapted from openai/tiktoken). This means it can be used with Hugging Face libraries including Transformers, Tokenizers, and Transformers.js.
from transformers import GPT2TokenizerFast
tokenizer = GPT2TokenizerFast.from_pretrained('Xenova/text-davinci-003')
assert tokenizer.encode('hello world') == [31373, 995]
import { AutoTokenizer } from '@huggingface/transformers';
const tokenizer = await AutoTokenizer.from_pretrained('Xenova/text-davinci-003');
const tokens = tokenizer.encode('hello world'); // [31373, 995]