whereeeee commited on
Commit
f7be1db
·
verified ·
1 Parent(s): 8f301bf

Initial upload: Llama-2 tokenizer files (mirror for KnowRL)

Browse files
README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama2
3
+ language:
4
+ - en
5
+ tags:
6
+ - tokenizer
7
+ - llama2
8
+ - infigram
9
+ ---
10
+
11
+ # Llama-2 Tokenizer (Mirror for KnowRL Project)
12
+
13
+ This is a mirror of the tokenizer files from `meta-llama/Llama-2-7b-hf`, provided as a **public, gated-free** alternative for users who cannot access the original gated repo.
14
+
15
+ ## Why this mirror exists
16
+
17
+ The KnowRL project's QuCo reward function uses an Infini-gram index built with the Llama-2 tokenizer. To query the index, the exact same tokenizer is required. Since `meta-llama/Llama-2-7b-hf` is gated, users without approved access cannot run QuCo.
18
+
19
+ This repo contains **only the tokenizer files** (no model weights):
20
+ - `tokenizer.json` — fast tokenizer
21
+ - `tokenizer.model` — SentencePiece model
22
+ - `tokenizer_config.json` — tokenizer configuration
23
+ - `special_tokens_map.json` — special token mappings
24
+
25
+ ## Usage
26
+
27
+ ```python
28
+ from transformers import AutoTokenizer
29
+ tokenizer = AutoTokenizer.from_pretrained("UIC-R2-lab/llama2-tokenizer")
30
+ ```
31
+
32
+ ## License
33
+
34
+ Follows the original [Llama 2 Community License Agreement](https://github.com/facebookresearch/llama/blob/main/LICENSE) from Meta.
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "bos_token": {
5
+ "__type": "AddedToken",
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "clean_up_tokenization_spaces": false,
13
+ "eos_token": {
14
+ "__type": "AddedToken",
15
+ "content": "</s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "legacy": false,
22
+ "model_max_length": 1000000000000000019884624838656,
23
+ "pad_token": null,
24
+ "padding_side": "right",
25
+ "sp_model_kwargs": {},
26
+ "tokenizer_class": "LlamaTokenizer",
27
+ "unk_token": {
28
+ "__type": "AddedToken",
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ }
35
+ }