Buckets:

rtrm's picture
download
raw
5.91 kB
<meta charset="utf-8" /><meta name="hf:doc:metadata" content="{&quot;title&quot;:&quot;Tokenizers&quot;,&quot;local&quot;:&quot;tokenizers&quot;,&quot;sections&quot;:[],&quot;depth&quot;:1}">
<link href="/docs/tokenizers/pr_1605/en/_app/immutable/assets/0.e3b0c442.css" rel="modulepreload">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/entry/start.58fad2d3.js">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/chunks/scheduler.9f522b10.js">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/chunks/singletons.eadeada4.js">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/chunks/index.eb046c14.js">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/chunks/paths.c7e91c35.js">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/entry/app.dc0657e3.js">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/chunks/index.192f26f8.js">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/nodes/0.4927c25f.js">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/chunks/each.e59479a4.js">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/nodes/15.3f9e4a7a.js">
<link rel="modulepreload" href="/docs/tokenizers/pr_1605/en/_app/immutable/chunks/EditOnGithub.6d5e7de4.js"><!-- HEAD_svelte-u9bgzb_START --><meta name="hf:doc:metadata" content="{&quot;title&quot;:&quot;Tokenizers&quot;,&quot;local&quot;:&quot;tokenizers&quot;,&quot;sections&quot;:[],&quot;depth&quot;:1}"><!-- HEAD_svelte-u9bgzb_END --> <p></p> <h1 class="relative group"><a id="tokenizers" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#tokenizers"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Tokenizers</span></h1> <p data-svelte-h="svelte-hqcehv">Fast State-of-the-art tokenizers, optimized for both research and
production</p> <p data-svelte-h="svelte-ydrho4"><a href="https://github.com/huggingface/tokenizers" rel="nofollow">🤗 Tokenizers</a> provides an
implementation of today’s most used tokenizers, with a focus on
performance and versatility. These tokenizers are also used in <a href="https://github.com/huggingface/transformers" rel="nofollow">🤗 Transformers</a>.</p> <h1 class="relative group"><a id="main-features" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#main-features"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>Main features:</span></h1> <ul data-svelte-h="svelte-1k61qc"><li>Train new vocabularies and tokenize, using today’s most used tokenizers.</li> <li>Extremely fast (both training and tokenization), thanks to the Rust implementation. Takes less than 20 seconds to tokenize a GB of text on a server’s CPU.</li> <li>Easy to use, but also extremely versatile.</li> <li>Designed for both research and production.</li> <li>Full alignment tracking. Even with destructive normalization, it’s always possible to get the part of the original sentence that corresponds to any token.</li> <li>Does all the pre-processing: Truncation, Padding, add the special tokens your model needs.</li></ul> <a class="!text-gray-400 !no-underline text-sm flex items-center not-prose mt-4" href="https://github.com/huggingface/tokenizers/blob/main/docs/source-doc-builder/index.mdx" target="_blank"><span data-svelte-h="svelte-1kd6by1">&lt;</span> <span data-svelte-h="svelte-x0xyl0">&gt;</span> <span data-svelte-h="svelte-1dajgef"><span class="underline ml-1.5">Update</span> on GitHub</span></a> <p></p>
<script>
{
__sveltekit_17k1o71 = {
assets: "/docs/tokenizers/pr_1605/en",
base: "/docs/tokenizers/pr_1605/en",
env: {}
};
const element = document.currentScript.parentElement;
const data = [null,null];
Promise.all([
import("/docs/tokenizers/pr_1605/en/_app/immutable/entry/start.58fad2d3.js"),
import("/docs/tokenizers/pr_1605/en/_app/immutable/entry/app.dc0657e3.js")
]).then(([kit, app]) => {
kit.start(app, element, {
node_ids: [0, 15],
data,
form: null,
error: null
});
});
}
</script>

Xet Storage Details

Size:
5.91 kB
·
Xet hash:
1894d9804e71c84ef0636ee710f614a3ba8ee78edd87745f7752838a1b206993

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.