hf_tokenizers 0.5.0 copy "hf_tokenizers: ^0.5.0" to clipboard
hf_tokenizers: ^0.5.0 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

With Flutter:

 $ flutter 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.5.0

Alternatively, your editor might support dart pub get or flutter 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
160
points
138
downloads
screenshot

Documentation

API reference

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

MIT (license)

Dependencies

code_assets, ffi, hooks

More

Packages that depend on hf_tokenizers