Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CLI docs to list new tokenizers #52

Open
dmarx opened this issue Oct 9, 2024 · 0 comments
Open

Update CLI docs to list new tokenizers #52

dmarx opened this issue Oct 9, 2024 · 0 comments

Comments

@dmarx
Copy link

dmarx commented Oct 9, 2024

This sort of thing, but sprinkled over a variety of parts of the codebase.

inputTokenizerId := flag.String("input_tokenizer", "gpt2",
"input tokenizer id [gpt2, pile, clip, huggingface-id]")
outputTokenizerId := flag.String("output_tokenizer", "gpt2",
"output tokenizer id [gpt2, pile, clip, huggingface-id]")

Tokenizers to add:

gpt_bpe/gpt_bpe.go

Lines 112 to 114 in 5340876

const VOCAB_ID_LLAMA = "llama-tokenizer"
const VOCAB_ID_LLAMA_3 = "llama3-tokenizer"
const VOCAB_ID_MISTRAL = "mistral-tokenizer"

Which I believe internally use the identifiers llama, llama3, and mistral respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant