physicsrob commited on
Commit
6214aa0
·
verified ·
1 Parent(s): 2c3b0c4

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: transformers
4
+ tags:
5
+ - torchwright
6
+ - compiled-transformer
7
+ - calculator_scratchpad
8
+ pipeline_tag: text-generation
9
+ ---
10
+
11
+ # `calculator_scratchpad`, max_digits=3 (torchwright)
12
+
13
+ A **compiled** transformer: the
14
+ [torchwright](https://github.com/physicsrob/torchwright) compiler emitted
15
+ these weights directly from a computation graph — nothing was trained. This
16
+ bundle is the `calculator_scratchpad` example built with `max_digits=3`: a computation graph for integer arithmetic (`A op B` with `op` in `+ - *`) that streams its serial carry/borrow work as visible thinking tokens before emitting the answer.
17
+
18
+ The bundle uses the stock Phi-3 architecture and loads through `transformers`
19
+ without custom model code or `trust_remote_code`.
20
+
21
+ Run it in **fp32** with **greedy decoding** (`do_sample=False`). Other
22
+ precisions and decoding modes are outside the supported contract.
23
+
24
+ ## Usage
25
+
26
+ ```python
27
+ from transformers import AutoModelForCausalLM, AutoTokenizer
28
+
29
+ repo_id = 'physicsrob/torchwright-calculator-scratchpad-max-digits-3'
30
+ model = AutoModelForCausalLM.from_pretrained(repo_id).eval()
31
+ tok = AutoTokenizer.from_pretrained(repo_id)
32
+
33
+ enc = tok('12*34\n', return_tensors="pt")
34
+ out = model.generate(enc["input_ids"], max_new_tokens=96, do_sample=False,
35
+ eos_token_id=tok.eos_token_id, pad_token_id=tok.eos_token_id)
36
+ print(tok.decode(out[0, enc["input_ids"].shape[1]:], skip_special_tokens=True))
37
+ ```
38
+
39
+ ## Input and output
40
+
41
+ Prompts are `A op B` terminated by a newline: two non-negative decimal
42
+ operands of up to 3 digits, with `op` one of `+`, `-`, `*`.
43
+ Subtraction may produce a negative result. Wider operands, or any character
44
+ outside the model's small vocabulary, are outside the contract — the output
45
+ is undefined.
46
+
47
+ | prompt | output |
48
+ |---|---|
49
+ | `12*34` | `<THINKING>…</THINKING>408` |
50
+ | `7+8` | `<THINKING>…</THINKING>15` |
51
+ | `999*999` | `<THINKING>…</THINKING>998001` |
52
+ | `999+1` | `<THINKING>…</THINKING>1000` |
53
+ | `999-123` | `<THINKING>…</THINKING>876` |
54
+ | `123-999` | `<THINKING>…</THINKING>-876` |
55
+
56
+ The answer is preceded by a visible scratchpad between `<THINKING>` and
57
+ `</THINKING>`: superscript glyphs (`⁰¹²`) stream the per-column carry /
58
+ borrow / comparison state, plain digits are the unnormalized scratch answer,
59
+ and subscript glyphs (`₀₁₂`) stream the leading-zero cleanup count. The
60
+ final answer follows the closing tag — e.g. `999+1` ends
61
+ `…</THINKING>1000`.
62
+
63
+ ## Intended use and limitations
64
+
65
+ This model is a demonstration of a computation graph compiled into transformer
66
+ weights. It is not a general language model or a general-purpose calculator;
67
+ only the input contract above is supported.
68
+
69
+ ## Verification
70
+
71
+ The examples above are exact reference outputs. The Modal publishing path
72
+ reloads the emitted checkpoint through stock `transformers`, checks those
73
+ examples plus additional width-limit cases against Python integer arithmetic,
74
+ and refuses to upload on a mismatch. This is a functional smoke test, not
75
+ exhaustive verification of every allowed expression.
76
+
77
+ ## Size
78
+
79
+ The checkpoint stores 11.61 GB of dense fp32 weights (2,901,770,240 entries) at
80
+ the example family's shared compile width. 99.99% of those entries are
81
+ exactly zero: the vast majority of the model is unused canvas, so size reflects
82
+ the compile geometry rather than stored knowledge.
83
+
84
+ The zero entries are not compressed, and dense `transformers` execution still
85
+ pays their memory and compute cost. CPU execution is supported; allow
86
+ additional RAM beyond the checkpoint size.
87
+
88
+ ## Family
89
+
90
+ One example of many compiled with torchwright. Calculator siblings —
91
+ `calculator-simple` (serial arithmetic, depth grows with the digit count),
92
+ `calculator-advanced` (carry-lookahead, near-flat depth), and
93
+ `calculator-scratchpad` (flat depth; the serial work streams out as visible
94
+ thinking tokens) — are published at several digit widths. Browse the
95
+ [torchwright calculator models](https://huggingface.co/models?search=physicsrob%2Ftorchwright-calculator)
96
+ on Hugging Face.
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Phi3ForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 15,
7
+ "embd_pdrop": 0.0,
8
+ "eos_token_id": 16,
9
+ "head_dim": 64,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 8192,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 2121,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "phi3",
16
+ "num_attention_heads": 52,
17
+ "num_hidden_layers": 18,
18
+ "num_key_value_heads": 52,
19
+ "original_max_position_embeddings": 4096,
20
+ "pad_token_id": null,
21
+ "resid_pdrop": 0.0,
22
+ "rms_norm_eps": 1e-05,
23
+ "rope_parameters": {
24
+ "partial_rotary_factor": 1.0,
25
+ "rope_theta": 500000.0,
26
+ "rope_type": "default"
27
+ },
28
+ "sliding_window": null,
29
+ "tie_word_embeddings": true,
30
+ "transformers_version": "5.12.1",
31
+ "use_cache": true,
32
+ "vocab_size": 33
33
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 15,
3
+ "eos_token_id": 16,
4
+ "pad_token_id": 16,
5
+ "transformers_version": "5.12.1"
6
+ }
model-00001-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85ee87a5e222978318181865aa25e83d3b540628c6e29aed9257bcf978b6e7b6
3
+ size 644710856
model-00002-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1f665c047cbfd4dbc43240be96a95dbad4a497d033e500a920804cef425691f
3
+ size 644710856
model-00003-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bad201a26fe055bc2309b32d12fcff92cc16a1055f80fb0f87b7cb395b4b9c47
3
+ size 644710856
model-00004-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a14a4c3d91dc1d621f6b547f35898832ae98c0683b5f8736ca97384c038b2569
3
+ size 644710856
model-00005-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b7f9c08ba9a5e909f8c49c7eaab9fd67bf5d810e0c6fb7b4972fc2387dfeed4
3
+ size 644710856
model-00006-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98d7818b8dc97e8b4fdad28f09cd57393c3a4cc2631a2fe83264485d9ad57695
3
+ size 644710856
model-00007-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67c3006ec2096bfaf6d616046ef9a22a42b5eed9534a21021fa881edbe587268
3
+ size 644710856
model-00008-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcc13c38b4827b9c23cf9086521b07569a514d55163065a1b01591f441a5af4b
3
+ size 644710856
model-00009-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:174d17f5397befa40bd7ce421e71fd932b8cc61dd9a105891960cb3ab83d4ced
3
+ size 644710856
model-00010-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:609c4450b96e0e32e5265a0b10a1efb2aae4ba3931757099af6193528db6313a
3
+ size 644710856
model-00011-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8eb4a903bd41731d62a6cd4b9927776f1aaa64c1f5ecd607074babb3c858ee8a
3
+ size 644710864
model-00012-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4914e1570654418a4f60081ee622ea4f767433f358c83494ee44c784c9a39728
3
+ size 644710864
model-00013-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87e208a5388a0d35685a0a44585058f63cc43aad2e0c74a334ba1d137f58f2be
3
+ size 644710864
model-00014-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49d8c9a196347daa47e4e5ce3f2694b8a3ee45313baab0b0c336ca78d0be70f0
3
+ size 644710864
model-00015-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e2416c7c802308253d0bbc7c0ed504357d21161c4b0b0958b7d2aac8ce8aa85
3
+ size 644710864
model-00016-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fa843a75b38c880e47be88814e46b3da4e1fa2e054ba39b0a71db17fc6fcf25
3
+ size 644710864
model-00017-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bda4a6113b521c062553962373944c078979aa59bddbb3117901cbd070c0ea9
3
+ size 644710864
model-00018-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:849ce82231e9c3463355e59f986464b8eab084e9d988839e7b877cf482545b52
3
+ size 644710864
model-00019-of-00019.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b80ff279f11140637661fd279d70b04644b5b2b5d62d5afd96f27caa18d5aa9
3
+ size 2297864
model.safetensors.index.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"metadata": {"total_size": 11607080960}, "weight_map": {"model.layers.0.self_attn.qkv_proj.weight": "model-00001-of-00019.safetensors", "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00019.safetensors", "model.layers.0.mlp.gate_up_proj.weight": "model-00001-of-00019.safetensors", "model.layers.0.mlp.down_proj.weight": "model-00001-of-00019.safetensors", "model.layers.1.self_attn.qkv_proj.weight": "model-00002-of-00019.safetensors", "model.layers.1.self_attn.o_proj.weight": "model-00002-of-00019.safetensors", "model.layers.1.mlp.gate_up_proj.weight": "model-00002-of-00019.safetensors", "model.layers.1.mlp.down_proj.weight": "model-00002-of-00019.safetensors", "model.layers.2.self_attn.qkv_proj.weight": "model-00003-of-00019.safetensors", "model.layers.2.self_attn.o_proj.weight": "model-00003-of-00019.safetensors", "model.layers.2.mlp.gate_up_proj.weight": "model-00003-of-00019.safetensors", "model.layers.2.mlp.down_proj.weight": "model-00003-of-00019.safetensors", "model.layers.3.self_attn.qkv_proj.weight": "model-00004-of-00019.safetensors", "model.layers.3.self_attn.o_proj.weight": "model-00004-of-00019.safetensors", "model.layers.3.mlp.gate_up_proj.weight": "model-00004-of-00019.safetensors", "model.layers.3.mlp.down_proj.weight": "model-00004-of-00019.safetensors", "model.layers.4.self_attn.qkv_proj.weight": "model-00005-of-00019.safetensors", "model.layers.4.self_attn.o_proj.weight": "model-00005-of-00019.safetensors", "model.layers.4.mlp.gate_up_proj.weight": "model-00005-of-00019.safetensors", "model.layers.4.mlp.down_proj.weight": "model-00005-of-00019.safetensors", "model.layers.5.self_attn.qkv_proj.weight": "model-00006-of-00019.safetensors", "model.layers.5.self_attn.o_proj.weight": "model-00006-of-00019.safetensors", "model.layers.5.mlp.gate_up_proj.weight": "model-00006-of-00019.safetensors", "model.layers.5.mlp.down_proj.weight": "model-00006-of-00019.safetensors", "model.layers.6.self_attn.qkv_proj.weight": "model-00007-of-00019.safetensors", "model.layers.6.self_attn.o_proj.weight": "model-00007-of-00019.safetensors", "model.layers.6.mlp.gate_up_proj.weight": "model-00007-of-00019.safetensors", "model.layers.6.mlp.down_proj.weight": "model-00007-of-00019.safetensors", "model.layers.7.self_attn.qkv_proj.weight": "model-00008-of-00019.safetensors", "model.layers.7.self_attn.o_proj.weight": "model-00008-of-00019.safetensors", "model.layers.7.mlp.gate_up_proj.weight": "model-00008-of-00019.safetensors", "model.layers.7.mlp.down_proj.weight": "model-00008-of-00019.safetensors", "model.layers.8.self_attn.qkv_proj.weight": "model-00009-of-00019.safetensors", "model.layers.8.self_attn.o_proj.weight": "model-00009-of-00019.safetensors", "model.layers.8.mlp.gate_up_proj.weight": "model-00009-of-00019.safetensors", "model.layers.8.mlp.down_proj.weight": "model-00009-of-00019.safetensors", "model.layers.9.self_attn.qkv_proj.weight": "model-00010-of-00019.safetensors", "model.layers.9.self_attn.o_proj.weight": "model-00010-of-00019.safetensors", "model.layers.9.mlp.gate_up_proj.weight": "model-00010-of-00019.safetensors", "model.layers.9.mlp.down_proj.weight": "model-00010-of-00019.safetensors", "model.layers.10.self_attn.qkv_proj.weight": "model-00011-of-00019.safetensors", "model.layers.10.self_attn.o_proj.weight": "model-00011-of-00019.safetensors", "model.layers.10.mlp.gate_up_proj.weight": "model-00011-of-00019.safetensors", "model.layers.10.mlp.down_proj.weight": "model-00011-of-00019.safetensors", "model.layers.11.self_attn.qkv_proj.weight": "model-00012-of-00019.safetensors", "model.layers.11.self_attn.o_proj.weight": "model-00012-of-00019.safetensors", "model.layers.11.mlp.gate_up_proj.weight": "model-00012-of-00019.safetensors", "model.layers.11.mlp.down_proj.weight": "model-00012-of-00019.safetensors", "model.layers.12.self_attn.qkv_proj.weight": "model-00013-of-00019.safetensors", "model.layers.12.self_attn.o_proj.weight": "model-00013-of-00019.safetensors", "model.layers.12.mlp.gate_up_proj.weight": "model-00013-of-00019.safetensors", "model.layers.12.mlp.down_proj.weight": "model-00013-of-00019.safetensors", "model.layers.13.self_attn.qkv_proj.weight": "model-00014-of-00019.safetensors", "model.layers.13.self_attn.o_proj.weight": "model-00014-of-00019.safetensors", "model.layers.13.mlp.gate_up_proj.weight": "model-00014-of-00019.safetensors", "model.layers.13.mlp.down_proj.weight": "model-00014-of-00019.safetensors", "model.layers.14.self_attn.qkv_proj.weight": "model-00015-of-00019.safetensors", "model.layers.14.self_attn.o_proj.weight": "model-00015-of-00019.safetensors", "model.layers.14.mlp.gate_up_proj.weight": "model-00015-of-00019.safetensors", "model.layers.14.mlp.down_proj.weight": "model-00015-of-00019.safetensors", "model.layers.15.self_attn.qkv_proj.weight": "model-00016-of-00019.safetensors", "model.layers.15.self_attn.o_proj.weight": "model-00016-of-00019.safetensors", "model.layers.15.mlp.gate_up_proj.weight": "model-00016-of-00019.safetensors", "model.layers.15.mlp.down_proj.weight": "model-00016-of-00019.safetensors", "model.layers.16.self_attn.qkv_proj.weight": "model-00017-of-00019.safetensors", "model.layers.16.self_attn.o_proj.weight": "model-00017-of-00019.safetensors", "model.layers.16.mlp.gate_up_proj.weight": "model-00017-of-00019.safetensors", "model.layers.16.mlp.down_proj.weight": "model-00017-of-00019.safetensors", "model.layers.17.self_attn.qkv_proj.weight": "model-00018-of-00019.safetensors", "model.layers.17.self_attn.o_proj.weight": "model-00018-of-00019.safetensors", "model.layers.17.mlp.gate_up_proj.weight": "model-00018-of-00019.safetensors", "model.layers.17.mlp.down_proj.weight": "model-00018-of-00019.safetensors", "model.embed_tokens.weight": "model-00019-of-00019.safetensors", "model.norm.weight": "model-00019-of-00019.safetensors", "model.layers.0.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.0.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.1.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.1.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.2.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.2.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.3.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.3.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.4.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.4.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.5.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.5.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.6.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.6.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.7.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.7.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.8.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.8.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.9.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.9.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.10.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.10.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.11.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.11.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.12.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.12.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.13.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.13.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.14.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.14.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.15.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.15.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.16.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.16.post_attention_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.17.input_layernorm.weight": "model-00019-of-00019.safetensors", "model.layers.17.post_attention_layernorm.weight": "model-00019-of-00019.safetensors"}}
tokenizer.json ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 15,
8
+ "content": "<bos>",
9
+ "single_word": false,
10
+ "lstrip": false,
11
+ "rstrip": false,
12
+ "normalized": false,
13
+ "special": true
14
+ },
15
+ {
16
+ "id": 16,
17
+ "content": "<eos>",
18
+ "single_word": false,
19
+ "lstrip": false,
20
+ "rstrip": false,
21
+ "normalized": false,
22
+ "special": true
23
+ }
24
+ ],
25
+ "normalizer": null,
26
+ "pre_tokenizer": {
27
+ "type": "Split",
28
+ "pattern": {
29
+ "Regex": "[\\s\\S]"
30
+ },
31
+ "behavior": "Isolated",
32
+ "invert": false
33
+ },
34
+ "post_processor": {
35
+ "type": "TemplateProcessing",
36
+ "single": [
37
+ {
38
+ "SpecialToken": {
39
+ "id": "<bos>",
40
+ "type_id": 0
41
+ }
42
+ },
43
+ {
44
+ "Sequence": {
45
+ "id": "A",
46
+ "type_id": 0
47
+ }
48
+ }
49
+ ],
50
+ "pair": [
51
+ {
52
+ "SpecialToken": {
53
+ "id": "<bos>",
54
+ "type_id": 0
55
+ }
56
+ },
57
+ {
58
+ "Sequence": {
59
+ "id": "A",
60
+ "type_id": 0
61
+ }
62
+ },
63
+ {
64
+ "SpecialToken": {
65
+ "id": "<bos>",
66
+ "type_id": 0
67
+ }
68
+ },
69
+ {
70
+ "Sequence": {
71
+ "id": "B",
72
+ "type_id": 0
73
+ }
74
+ }
75
+ ],
76
+ "special_tokens": {
77
+ "<bos>": {
78
+ "id": "<bos>",
79
+ "ids": [
80
+ 15
81
+ ],
82
+ "tokens": [
83
+ "<bos>"
84
+ ]
85
+ }
86
+ }
87
+ },
88
+ "decoder": {
89
+ "type": "Fuse"
90
+ },
91
+ "model": {
92
+ "type": "WordLevel",
93
+ "vocab": {
94
+ "0": 0,
95
+ "1": 1,
96
+ "2": 2,
97
+ "3": 3,
98
+ "4": 4,
99
+ "5": 5,
100
+ "6": 6,
101
+ "7": 7,
102
+ "8": 8,
103
+ "9": 9,
104
+ "+": 10,
105
+ "-": 11,
106
+ "*": 12,
107
+ "\n": 13,
108
+ " ": 14,
109
+ "<bos>": 15,
110
+ "<eos>": 16,
111
+ "<THINKING>": 17,
112
+ "⁰ ": 18,
113
+ "¹ ": 19,
114
+ "² ": 20,
115
+ "³ ": 21,
116
+ "⁴ ": 22,
117
+ "⁵ ": 23,
118
+ "⁶ ": 24,
119
+ "₀ ": 25,
120
+ "₁ ": 26,
121
+ "₂ ": 27,
122
+ "₃ ": 28,
123
+ "₄ ": 29,
124
+ "₅ ": 30,
125
+ "₆ ": 31,
126
+ "</THINKING>": 32
127
+ },
128
+ "unk_token": "<unk>"
129
+ }
130
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<bos>",
4
+ "eos_token": "<eos>",
5
+ "model_max_length": 1000000000000000019884624838656,
6
+ "tokenizer_class": "TokenizersBackend",
7
+ "unk_token": null
8
+ }