LnL-AI / dbrx-base-tokenizer

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: April 04 2024

Introduction of dbrx-base-tokenizer

Model Details of dbrx-base-tokenizer

Why should you use this and not the tiktoken included in the orignal model?
  1. This tokenizer is validated with the https://huggingface.co/datasets/xn (all languages) to be encode/decode compatible with dbrx-base tiktoken
  2. Original tokenizer pad the vocabulary to correct size with <extra_N> tokens but encoder never uses them
  3. Original tokenizer use eos as pad token which may confuse trainers to mask out the eos token so model never output eos.
  4. [NOT FIXED: INVESTIGATING] config.json embedding size of "vocab_size": 100352 does not match 100277

modified from original code @ https://huggingface.co/Xenova/dbrx-instruct-tokenizer

Changes:
1. Remove non-base model tokens
2. Keep/Add `<|pad|>` special token to make sure padding can be differentiated from eos/bos.
3. Expose 15 unused/reserved `<|extra_N|>` for use

# pad token
 "100256": {
      "content": "<|pad|>",
      "lstrip": false,
      "normalized": false,
      "rstrip": false,
      "single_word": false,
      "special": true
    },

# 15 unused/reserved extra tokens
"<|extra_0|>": 100261
"<|extra_1|>": 100262
...
"<|extra_14|>": 100275

DBRX Instruct Tokenizer

A 🤗-compatible version of the DBRX Instruct (adapted from databricks/dbrx-instruct ). This means it can be used with Hugging Face libraries including Transformers , Tokenizers , and Transformers.js .

Example usage:
Transformers/Tokenizers
from transformers import GPT2TokenizerFast

tokenizer = GPT2TokenizerFast.from_pretrained('Xenova/dbrx-instruct-tokenizer')
assert tokenizer.encode('hello world') == [15339, 1917]
Transformers.js
import { AutoTokenizer } from '@xenova/transformers';

const tokenizer = await AutoTokenizer.from_pretrained('Xenova/dbrx-instruct-tokenizer');
const tokens = tokenizer.encode('hello world'); // [15339, 1917]

Runs of LnL-AI dbrx-base-tokenizer on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About dbrx-base-tokenizer huggingface.co Model

dbrx-base-tokenizer huggingface.co

dbrx-base-tokenizer huggingface.co is an AI model on huggingface.co that provides dbrx-base-tokenizer's model effect (), which can be used instantly with this LnL-AI dbrx-base-tokenizer model. huggingface.co supports a free trial of the dbrx-base-tokenizer model, and also provides paid use of the dbrx-base-tokenizer. Support call dbrx-base-tokenizer model through api, including Node.js, Python, http.

dbrx-base-tokenizer huggingface.co Url

https://huggingface.co/LnL-AI/dbrx-base-tokenizer

LnL-AI dbrx-base-tokenizer online free

dbrx-base-tokenizer huggingface.co is an online trial and call api platform, which integrates dbrx-base-tokenizer's modeling effects, including api services, and provides a free online trial of dbrx-base-tokenizer, you can try dbrx-base-tokenizer online for free by clicking the link below.

LnL-AI dbrx-base-tokenizer online free url in huggingface.co:

https://huggingface.co/LnL-AI/dbrx-base-tokenizer

dbrx-base-tokenizer install

dbrx-base-tokenizer is an open source model from GitHub that offers a free installation service, and any user can find dbrx-base-tokenizer on GitHub to install. At the same time, huggingface.co provides the effect of dbrx-base-tokenizer install, users can directly use dbrx-base-tokenizer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

dbrx-base-tokenizer install url in huggingface.co:

https://huggingface.co/LnL-AI/dbrx-base-tokenizer

Url of dbrx-base-tokenizer

dbrx-base-tokenizer huggingface.co Url

Provider of dbrx-base-tokenizer huggingface.co

LnL-AI
ORGANIZATIONS

Other API from LnL-AI