justinchuby commited on
Commit
b346650
·
verified ·
1 Parent(s): e97fd5d

Publish complete real sliding-window ONNX package

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ model.onnx.data filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags: [onnx, onnxruntime, onnx-genai, inference-metadata, sliding-window-attention]
4
+ ---
5
+ # onnx-genai-example-mistral-7b-v0-1-sliding-window
6
+
7
+ Private real-weight fp16 ONNX package from [`mistralai/Mistral-7B-v0.1`](https://huggingface.co/mistralai/Mistral-7B-v0.1/tree/27d67f1b5f57dc0953326b2601d68371d40ea8da) at immutable revision `27d67f1b5f57dc0953326b2601d68371d40ea8da`. Source license: Apache-2.0.
8
+
9
+ The graph contains 32 CUDA `com.microsoft::GroupQueryAttention` nodes with `local_window_size=4096`. A real H200 CUDA probe generated 12 finite-logit tokens from positions 4092–4103, crossing the configured boundary. The package includes canonical metadata, tokenizer, policies, provenance, request/output, graph report, and exact timings.
10
+
11
+ ## Download
12
+ ```bash
13
+ hf download justinchuby/onnx-genai-example-mistral-7b-v0-1-sliding-window --repo-type model --local-dir ./mistral-7b-v0.1-sliding-window
14
+ ```
15
+ ## Exact runtime probe
16
+ ```bash
17
+ cd mistral-7b-v0.1-sliding-window
18
+ python3 evidence/probe_sliding_window.py
19
+ cat evidence/sliding_window_runtime_probe.json
20
+ ```
21
+ Requires CUDA-capable `onnxruntime-gpu`, `onnx`, `transformers`, and `numpy`; exact successful versions are in `output.json`.
SOURCE_LICENSE.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Source license
2
+
3
+ [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1/tree/27d67f1b5f57dc0953326b2601d68371d40ea8da) is Apache-2.0.
evidence/probe_sliding_window.py ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import json
4
+ import time
5
+ from pathlib import Path
6
+
7
+ import numpy as np
8
+ import onnx
9
+ import onnxruntime as ort
10
+ import transformers
11
+ from transformers import AutoTokenizer
12
+
13
+ PACKAGE = Path(__file__).resolve().parents[1]
14
+ WINDOW = 4096
15
+ PROMPT_LENGTH = 4092
16
+ MAX_NEW_TOKENS = 12
17
+
18
+
19
+ def main() -> None:
20
+ evidence = PACKAGE / "evidence"
21
+ evidence.mkdir(exist_ok=True)
22
+ tokenizer = AutoTokenizer.from_pretrained(PACKAGE)
23
+ repeat_id = tokenizer.encode(" window", add_special_tokens=False)[0]
24
+ input_ids = np.array(
25
+ [[tokenizer.bos_token_id] + [repeat_id] * (PROMPT_LENGTH - 1)],
26
+ dtype=np.int64,
27
+ )
28
+
29
+ graph = onnx.load(PACKAGE / "model.onnx", load_external_data=False)
30
+ local_windows = sorted(
31
+ {
32
+ attribute.i
33
+ for node in graph.graph.node
34
+ for attribute in node.attribute
35
+ if attribute.name == "local_window_size"
36
+ }
37
+ )
38
+ started = time.perf_counter()
39
+ session_started = time.perf_counter()
40
+ session = ort.InferenceSession(
41
+ str(PACKAGE / "model.onnx"),
42
+ providers=["CUDAExecutionProvider", "CPUExecutionProvider"],
43
+ )
44
+ load_seconds = time.perf_counter() - session_started
45
+ feeds: dict[str, np.ndarray] = {
46
+ "input_ids": input_ids,
47
+ "attention_mask": np.ones((1, PROMPT_LENGTH), dtype=np.int64),
48
+ }
49
+ for value in session.get_inputs():
50
+ if value.name.startswith("past_key_values."):
51
+ feeds[value.name] = np.empty(
52
+ (1, int(value.shape[1]), 0, int(value.shape[3])),
53
+ dtype=np.float16,
54
+ )
55
+
56
+ output_names = [value.name for value in session.get_outputs()]
57
+ generated = []
58
+ step_seconds = []
59
+ finite = True
60
+ for step in range(MAX_NEW_TOKENS):
61
+ step_started = time.perf_counter()
62
+ outputs = session.run(None, feeds)
63
+ step_seconds.append(time.perf_counter() - step_started)
64
+ logits = outputs[0][:, -1, :].astype(np.float32)
65
+ finite = finite and bool(np.isfinite(logits).all())
66
+ token = int(np.argmax(logits[0]))
67
+ generated.append(token)
68
+ presents = dict(zip(output_names[1:], outputs[1:]))
69
+ feeds = {
70
+ "input_ids": np.array([[token]], dtype=np.int64),
71
+ "attention_mask": np.ones((1, PROMPT_LENGTH + step + 1), dtype=np.int64),
72
+ }
73
+ for value in session.get_inputs():
74
+ if value.name.startswith("past_key_values."):
75
+ suffix = value.name.removeprefix("past_key_values.")
76
+ feeds[value.name] = presents[f"present.{suffix}"]
77
+
78
+ payload = {
79
+ "request": {
80
+ "prompt_construction": {
81
+ "bos_token_id": tokenizer.bos_token_id,
82
+ "repeated_token_id": repeat_id,
83
+ "repeated_token_text": tokenizer.decode([repeat_id]),
84
+ "prompt_length": PROMPT_LENGTH,
85
+ },
86
+ "max_new_tokens": MAX_NEW_TOKENS,
87
+ },
88
+ "output": {
89
+ "token_ids": generated,
90
+ "text": tokenizer.decode(generated),
91
+ "start_position": PROMPT_LENGTH,
92
+ "end_position_exclusive": PROMPT_LENGTH + MAX_NEW_TOKENS,
93
+ },
94
+ "graph": {
95
+ "group_query_attention_nodes": sum(
96
+ node.op_type == "GroupQueryAttention" for node in graph.graph.node
97
+ ),
98
+ "local_window_sizes": local_windows,
99
+ },
100
+ "assertions": {
101
+ "configured_window_is_4096": local_windows == [WINDOW],
102
+ "generation_crossed_window_boundary": (
103
+ PROMPT_LENGTH < WINDOW < PROMPT_LENGTH + MAX_NEW_TOKENS
104
+ ),
105
+ "finite_logits": finite,
106
+ "generated_multiple_tokens": len(generated) == MAX_NEW_TOKENS,
107
+ },
108
+ "timings": {
109
+ "session_load_seconds": load_seconds,
110
+ "prefill_seconds": step_seconds[0],
111
+ "decode_step_seconds": step_seconds[1:],
112
+ "total_seconds": time.perf_counter() - started,
113
+ },
114
+ "versions": {
115
+ "onnxruntime": ort.__version__,
116
+ "onnx": onnx.__version__,
117
+ "transformers": transformers.__version__,
118
+ },
119
+ "providers": session.get_providers(),
120
+ }
121
+ (evidence / "sliding_window_runtime_probe.json").write_text(
122
+ json.dumps(payload, indent=2, sort_keys=True) + "\n"
123
+ )
124
+ if not all(payload["assertions"].values()):
125
+ raise RuntimeError(payload["assertions"])
126
+
127
+
128
+ if __name__ == "__main__":
129
+ main()
evidence/sliding_window_runtime_probe.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "assertions": {
3
+ "configured_window_is_4096": true,
4
+ "finite_logits": true,
5
+ "generated_multiple_tokens": true,
6
+ "generation_crossed_window_boundary": true
7
+ },
8
+ "graph": {
9
+ "group_query_attention_nodes": 32,
10
+ "local_window_sizes": [
11
+ 4096
12
+ ]
13
+ },
14
+ "output": {
15
+ "end_position_exclusive": 4104,
16
+ "start_position": 4092,
17
+ "text": "window window window window window window window window window window window window",
18
+ "token_ids": [
19
+ 2924,
20
+ 2924,
21
+ 2924,
22
+ 2924,
23
+ 2924,
24
+ 2924,
25
+ 2924,
26
+ 2924,
27
+ 2924,
28
+ 2924,
29
+ 2924,
30
+ 2924
31
+ ]
32
+ },
33
+ "providers": [
34
+ "CUDAExecutionProvider",
35
+ "CPUExecutionProvider"
36
+ ],
37
+ "request": {
38
+ "max_new_tokens": 12,
39
+ "prompt_construction": {
40
+ "bos_token_id": 1,
41
+ "prompt_length": 4092,
42
+ "repeated_token_id": 2924,
43
+ "repeated_token_text": "window"
44
+ }
45
+ },
46
+ "timings": {
47
+ "decode_step_seconds": [
48
+ 0.46859942795708776,
49
+ 0.09483771701343358,
50
+ 0.09751369617879391,
51
+ 0.09462281805463135,
52
+ 0.09493547398597002,
53
+ 0.09594826796092093,
54
+ 0.09737299382686615,
55
+ 0.10137195093557239,
56
+ 0.10905329487286508,
57
+ 0.10262800892814994,
58
+ 0.10246599186211824
59
+ ],
60
+ "prefill_seconds": 0.7347528520040214,
61
+ "session_load_seconds": 10.895026066107675,
62
+ "total_seconds": 13.0937190069817
63
+ },
64
+ "versions": {
65
+ "onnx": "1.22.0",
66
+ "onnxruntime": "1.28.0",
67
+ "transformers": "5.16.0.dev0"
68
+ }
69
+ }
graph_report.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "group_query_attention_nodes": 32,
3
+ "local_window_sizes": [
4
+ 4096
5
+ ]
6
+ }
inference_metadata.yaml ADDED
The diff for this file is too large to render. See raw diff
 
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35542d5d7d5de687933865febf6fcc65d4cebe72613351095c318dcfd2665987
3
+ size 250699
model.onnx.data ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:876319f1f1301dfd0580c1aded6a86a7dce6800a79aa6e507eb264a19298e112
3
+ size 14491910144
output.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "assertions": {
3
+ "configured_window_is_4096": true,
4
+ "finite_logits": true,
5
+ "generated_multiple_tokens": true,
6
+ "generation_crossed_window_boundary": true
7
+ },
8
+ "output": {
9
+ "end_position_exclusive": 4104,
10
+ "start_position": 4092,
11
+ "text": "window window window window window window window window window window window window",
12
+ "token_ids": [
13
+ 2924,
14
+ 2924,
15
+ 2924,
16
+ 2924,
17
+ 2924,
18
+ 2924,
19
+ 2924,
20
+ 2924,
21
+ 2924,
22
+ 2924,
23
+ 2924,
24
+ 2924
25
+ ]
26
+ },
27
+ "providers": [
28
+ "CUDAExecutionProvider",
29
+ "CPUExecutionProvider"
30
+ ],
31
+ "versions": {
32
+ "onnx": "1.22.0",
33
+ "onnxruntime": "1.28.0",
34
+ "transformers": "5.16.0.dev0"
35
+ }
36
+ }
performance.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "decode_step_seconds": [
3
+ 0.46859942795708776,
4
+ 0.09483771701343358,
5
+ 0.09751369617879391,
6
+ 0.09462281805463135,
7
+ 0.09493547398597002,
8
+ 0.09594826796092093,
9
+ 0.09737299382686615,
10
+ 0.10137195093557239,
11
+ 0.10905329487286508,
12
+ 0.10262800892814994,
13
+ 0.10246599186211824
14
+ ],
15
+ "hardware": "NVIDIA H200",
16
+ "prefill_seconds": 0.7347528520040214,
17
+ "session_load_seconds": 10.895026066107675,
18
+ "total_seconds": 13.0937190069817
19
+ }
policies/cache_length_update.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:430f8578b4fd9c08f2870186a4142d093e821a8d75cfa5fb65b2c021c85f669f
3
+ size 930
policies/decoder_state_initializer.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea0efdda1de5ac393a4cf1e2ca634301561117ad414d511cb222273d9234822d
3
+ size 84889
policies/decoder_step_update.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94edf6a26c7a89da1f1c1d256c1a7fc6bfe0a5da02e9bef75a13beb26d551f2d
3
+ size 2430
policies/generated_length_update.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:430f8578b4fd9c08f2870186a4142d093e821a8d75cfa5fb65b2c021c85f669f
3
+ size 930
policies/last_token_logits.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7363179c34e44fd85267dd45f660f9dd0ee631da81916dfb6347a7ac8bc7d47
3
+ size 820
policies/termination.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36f7e946899cdae9fab4b5f589b6c8f2c82c0fd4ced07081f79c4c52afb0e79e
3
+ size 5880
policies/termination_batch_initializer.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c6e2757a6ecee52036a500dda21eb45094d1c8ad387db07149b0c53664765cf
3
+ size 1677
policies/token_sampler.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1c77038c17e1a94bebe397d5eda4f84647f25ddff2141a4261fc33d007a20c0
3
+ size 58720
policies/token_state_update.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8775ecb9d843287b9fff9a88e3d8cd94767b44371587211ad214eac85ad07e27
3
+ size 1229
policies/token_to_slot.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47956a6e4658afe8ad44e1574813b0ebc4e430fa6d874c51319fe39c3adfb425
3
+ size 438
provenance.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "build": {
3
+ "command": "mobius build --model mistralai/Mistral-7B-v0.1 --revision 27d67f1b5f57dc0953326b2601d68371d40ea8da --dtype f16 --ep cuda --runtime onnx-genai OUTPUT",
4
+ "mobius_git_sha": "57c149d1845c97781ae386da5c1c93528fde8841"
5
+ },
6
+ "files": [
7
+ {
8
+ "bytes": 250699,
9
+ "path": "model.onnx",
10
+ "sha256": "35542d5d7d5de687933865febf6fcc65d4cebe72613351095c318dcfd2665987"
11
+ },
12
+ {
13
+ "bytes": 14491910144,
14
+ "path": "model.onnx.data",
15
+ "sha256": "876319f1f1301dfd0580c1aded6a86a7dce6800a79aa6e507eb264a19298e112"
16
+ }
17
+ ],
18
+ "sources": [
19
+ {
20
+ "model": "mistralai/Mistral-7B-v0.1",
21
+ "revision": "27d67f1b5f57dc0953326b2601d68371d40ea8da",
22
+ "source_license": "apache-2.0",
23
+ "source_url": "https://huggingface.co/mistralai/Mistral-7B-v0.1/tree/27d67f1b5f57dc0953326b2601d68371d40ea8da"
24
+ }
25
+ ]
26
+ }
request.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "max_new_tokens": 12,
3
+ "prompt_construction": {
4
+ "bos_token_id": 1,
5
+ "prompt_length": 4092,
6
+ "repeated_token_id": 2924,
7
+ "repeated_token_text": "window"
8
+ }
9
+ }
source.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "model": "mistralai/Mistral-7B-v0.1",
3
+ "revision": "27d67f1b5f57dc0953326b2601d68371d40ea8da",
4
+ "source_license": "apache-2.0",
5
+ "source_url": "https://huggingface.co/mistralai/Mistral-7B-v0.1/tree/27d67f1b5f57dc0953326b2601d68371d40ea8da"
6
+ }
source_provenance.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "build": {
3
+ "command": "mobius build --model mistralai/Mistral-7B-v0.1 --revision 27d67f1b5f57dc0953326b2601d68371d40ea8da --dtype f16 --ep cuda --runtime onnx-genai OUTPUT",
4
+ "mobius_git_sha": "57c149d1845c97781ae386da5c1c93528fde8841"
5
+ },
6
+ "model": {
7
+ "id": "mistralai/Mistral-7B-v0.1",
8
+ "license": "Apache-2.0",
9
+ "license_evidence": "Pinned README front matter",
10
+ "revision": "27d67f1b5f57dc0953326b2601d68371d40ea8da",
11
+ "sliding_window": 4096,
12
+ "source_url": "https://huggingface.co/mistralai/Mistral-7B-v0.1/tree/27d67f1b5f57dc0953326b2601d68371d40ea8da"
13
+ }
14
+ }
sources/model/README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ language:
4
+ - en
5
+ license: apache-2.0
6
+ tags:
7
+ - pretrained
8
+ - mistral-common
9
+ inference: false
10
+ extra_gated_description: >-
11
+ If you want to learn more about how we process your personal data, please read
12
+ our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
13
+ ---
14
+
15
+ # Model Card for Mistral-7B-v0.1
16
+
17
+ The Mistral-7B-v0.1 Large Language Model (LLM) is a pretrained generative text model with 7 billion parameters.
18
+ Mistral-7B-v0.1 outperforms Llama 2 13B on all benchmarks we tested.
19
+
20
+ For full details of this model please read our [paper](https://arxiv.org/abs/2310.06825) and [release blog post](https://mistral.ai/news/announcing-mistral-7b/).
21
+
22
+ ## Model Architecture
23
+
24
+ Mistral-7B-v0.1 is a transformer model, with the following architecture choices:
25
+ - Grouped-Query Attention
26
+ - Sliding-Window Attention
27
+ - Byte-fallback BPE tokenizer
28
+
29
+ ## Troubleshooting
30
+
31
+ - If you see the following error:
32
+ ```
33
+ KeyError: 'mistral'
34
+ ```
35
+ - Or:
36
+ ```
37
+ NotImplementedError: Cannot copy out of meta tensor; no data!
38
+ ```
39
+
40
+ Ensure you are utilizing a stable version of Transformers, 4.34.0 or newer.
41
+
42
+ ## Notice
43
+
44
+ Mistral 7B is a pretrained base model and therefore does not have any moderation mechanisms.
45
+
46
+ ## The Mistral AI Team
47
+
48
+ Albert Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lélio Renard Lavaud, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed.
sources/model/config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MistralForCausalLM"
4
+ ],
5
+ "bos_token_id": 1,
6
+ "eos_token_id": 2,
7
+ "hidden_act": "silu",
8
+ "hidden_size": 4096,
9
+ "initializer_range": 0.02,
10
+ "intermediate_size": 14336,
11
+ "max_position_embeddings": 32768,
12
+ "model_type": "mistral",
13
+ "num_attention_heads": 32,
14
+ "num_hidden_layers": 32,
15
+ "num_key_value_heads": 8,
16
+ "rms_norm_eps": 1e-05,
17
+ "rope_theta": 10000.0,
18
+ "sliding_window": 4096,
19
+ "tie_word_embeddings": false,
20
+ "torch_dtype": "bfloat16",
21
+ "transformers_version": "4.34.0.dev0",
22
+ "use_cache": true,
23
+ "vocab_size": 32000
24
+ }
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:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "additional_special_tokens": [],
32
+ "bos_token": "<s>",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": false,
36
+ "model_max_length": 1000000000000000019884624838656,
37
+ "pad_token": null,
38
+ "sp_model_kwargs": {},
39
+ "spaces_between_special_tokens": false,
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }