3.0.1 • Published 9 months ago

@lenml/tokenizer-llama3 v3.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

@lenml/tokenizer-llama3

a tokenizer.

based on @lenml/tokenizers

Usage

import { fromPreTrained } from "@lenml/tokenizer-llama3";

const tokenizer = fromPreTrained();
console.log(
    "encode()",
    tokenizer.encode("Hello, my dog is cute", null, {
        add_special_tokens: true,
    })
);
console.log(
    "_encode_text",
    tokenizer._encode_text("Hello, my dog is cute")
);

Full Tokenizer API

Complete api parameters and usage can be found in transformer.js tokenizers document

License

Apache-2.0

3.0.1

9 months ago

1.1.2

10 months ago

1.1.1

11 months ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago