hf_tokenizers 0.4.2 copy "hf_tokenizers: ^0.4.2" to clipboard
hf_tokenizers: ^0.4.2 copied to clipboard

HuggingFace tokenizers for Dart over FFI. Load any tokenizer.json and get byte-exact BPE, WordPiece, and Unigram encoding, backed by the Rust crate.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add hf_tokenizers

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  hf_tokenizers: ^0.4.2

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:hf_tokenizers/hf_tokenizers.dart';
0
likes
0
points
138
downloads

Publisher

verified publisherdeveloperyusuf.com

Weekly Downloads

HuggingFace tokenizers for Dart over FFI. Load any tokenizer.json and get byte-exact BPE, WordPiece, and Unigram encoding, backed by the Rust crate.

Repository (GitHub)
View/report issues

Topics

#llm #ai #tokenizer #ffi #nlp

License

unknown (license)

Dependencies

code_assets, ffi, hooks

More

Packages that depend on hf_tokenizers