aac6fef commited on
Commit
28416e7
·
verified ·
1 Parent(s): 2724826

Publish validated native MLX FP16 checkpoint

Browse files
LICENSE ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
NOTICE ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ laya-mlx
2
+ Copyright 2026 laya-mlx contributors
3
+
4
+ This product includes software derived from Laya:
5
+ https://github.com/NandhaKishorM/laya
6
+ Copyright Convai Innovations and Laya contributors. Licensed under Apache-2.0.
7
+ Upstream source revision: 6a5819129eb220570792e417e49723d697efd76f
8
+
9
+ The token sequence construction, question rendering, confidence calculation,
10
+ presets, email utilities and language router are adapted from Laya.
11
+ The neural network is reimplemented using Apple's MLX, following Laya's
12
+ DecisionModel and the ModernBERT architecture in Hugging Face Transformers.
13
+ Model weights are downloaded separately from Convai Innovations on Hugging Face;
14
+ they are not included in this repository.
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: mlx
4
+ pipeline_tag: text-classification
5
+ base_model: convaiinnovations/laya-typed-decisions
6
+ language:
7
+ - en
8
+ tags:
9
+ - mlx
10
+ - laya
11
+ - modernbert
12
+ - apple-silicon
13
+ - decision-model
14
+ ---
15
+
16
+ # laya-typed-decisions-mlx
17
+
18
+ Native **MLX FP16** conversion of [convaiinnovations/laya-typed-decisions](https://huggingface.co/convaiinnovations/laya-typed-decisions) for Apple silicon.
19
+
20
+ This checkpoint uses **ModernBERT-large**, a **1024-token total context**, and Laya's decision Transformer, scoring head and action head. It supports `choice`, ordinal `score`, and boolean `noul` questions. All model computation runs in MLX; the runtime does not require PyTorch or Transformers.
21
+
22
+ ## Usage
23
+
24
+ Install the dedicated runtime on an Apple silicon Mac with macOS 26+ and Python 3.11+:
25
+
26
+ ```bash
27
+ python -m pip install 'git+https://github.com/mizorewww/laya-mlx.git'
28
+ ```
29
+
30
+ ```python
31
+ import laya_mlx as laya
32
+
33
+ agent = laya.load("aac6fef/laya-typed-decisions-mlx")
34
+ result = agent.predict(
35
+ "I was billed twice. Please refund the duplicate today.",
36
+ {
37
+ "department": {
38
+ "type": "choice",
39
+ "instructions": "Which department should handle this request?",
40
+ "criteria": ["billing", "technical", "sales"],
41
+ },
42
+ "refund": {
43
+ "type": "noul",
44
+ "instructions": "Does the customer ask for money back?",
45
+ },
46
+ },
47
+ )
48
+ print(result["answers"])
49
+ ```
50
+
51
+ Use `dtype="float32"` for closer agreement with upstream FP32 arithmetic. The source weights themselves are FP16. Question formatting, tokenizer behavior, calibration temperatures and output schema are preserved.
52
+
53
+ This is a bidirectional decision encoder loaded with `laya_mlx`. The package provides the custom architecture needed to interpret the checkpoint. The repository does not include a generative language model or training implementation.
54
+
55
+ ## Validation
56
+
57
+ Tested locally on Apple M3 Max, 40-core GPU, 128 GB unified memory, macOS 27.2, Python 3.12.13 and MLX 0.32.2.
58
+
59
+ - FP16 agrees with upstream PyTorch MPS FP32 on the argmax of **63/63** decision distributions across 16 cases.
60
+ - Maximum calibrated probability difference: **0.0016849**.
61
+ - **100 repeated calls** produced finite, deterministic public outputs; measured MLX active-memory growth after clearing caches was **0 bytes**.
62
+ - Every exported tensor was checked for exact equality with the corresponding source tensor cast to FP16.
63
+
64
+ The included `validation.json` contains numerical and stability measurements for both FP32 and FP16 arithmetic. [Full performance report and raw timing samples](https://github.com/mizorewww/laya-mlx/blob/main/BENCHMARKS.md) compare MLX with the original runtime on the same machine. These checks establish port fidelity, not that every model answer is correct.
65
+
66
+ ## Provenance and limits
67
+
68
+ - Source checkpoint: `convaiinnovations/laya-typed-decisions` at `f9ab0b228f0fc0f14d873dbc99038f135c2da1b2`.
69
+ - Upstream code: [NandhaKishorM/laya](https://github.com/NandhaKishorM/laya), commit `6a5819129eb220570792e417e49723d697efd76f`.
70
+ - Conversion changes parameter names for MLX and preserves FP16 weights. It does not retrain or quantize to fewer bits.
71
+ - This is an independent port. Model quality, calibration and language/task limitations remain those of the original checkpoint. Questions and options share the context budget with the input state.
72
+ - The typed-decisions checkpoint is specialized for upstream workflows; the multilingual checkpoint is the intended choice for non-English text.
73
+
74
+ Apache-2.0. Original Laya models and code are by Convai Innovations and contributors. See `LICENSE`, `NOTICE`, `mlx_config.json` and `manifest.json` for attribution and export details.
encoder/config.json ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForMaskedLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 50281,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 50281,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "float32",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 50282,
18
+ "global_attn_every_n_layers": 3,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 1024,
22
+ "initializer_cutoff_factor": 2.0,
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 2624,
25
+ "layer_norm_eps": 1e-05,
26
+ "layer_types": [
27
+ "full_attention",
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "full_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "full_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "full_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "full_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "full_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "full_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "full_attention",
49
+ "sliding_attention",
50
+ "sliding_attention",
51
+ "full_attention",
52
+ "sliding_attention",
53
+ "sliding_attention",
54
+ "full_attention"
55
+ ],
56
+ "local_attention": 128,
57
+ "max_position_embeddings": 8192,
58
+ "mlp_bias": false,
59
+ "mlp_dropout": 0.0,
60
+ "model_type": "modernbert",
61
+ "norm_bias": false,
62
+ "norm_eps": 1e-05,
63
+ "num_attention_heads": 16,
64
+ "num_hidden_layers": 28,
65
+ "pad_token_id": 50283,
66
+ "position_embedding_type": "absolute",
67
+ "repad_logits_with_grad": false,
68
+ "rope_parameters": {
69
+ "full_attention": {
70
+ "rope_theta": 160000.0,
71
+ "rope_type": "default"
72
+ },
73
+ "sliding_attention": {
74
+ "rope_theta": 10000.0,
75
+ "rope_type": "default"
76
+ }
77
+ },
78
+ "sep_token_id": 50282,
79
+ "sparse_pred_ignore_index": -100,
80
+ "sparse_prediction": false,
81
+ "tie_word_embeddings": true,
82
+ "transformers_version": "5.17.0",
83
+ "vocab_size": 50368
84
+ }
manifest.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "repository": "aac6fef/laya-typed-decisions-mlx",
3
+ "source": "convaiinnovations/laya-typed-decisions",
4
+ "source_revision": "f9ab0b228f0fc0f14d873dbc99038f135c2da1b2",
5
+ "format": "laya-mlx",
6
+ "dtype": "float16",
7
+ "verified_tensors": 206,
8
+ "files": {
9
+ "LICENSE": {
10
+ "bytes": 10173,
11
+ "sha256": "a6cba85bc92e0cff7a450b1d873c0eaa2e9fc96bf472df0247a26bec77bf3ff9"
12
+ },
13
+ "NOTICE": {
14
+ "bytes": 698,
15
+ "sha256": "f23ae8ae701f5a43e186182e387aeef00b666daed18a946fc7c9ea827b00a8fa"
16
+ },
17
+ "README.md": {
18
+ "bytes": 3699,
19
+ "sha256": "3e462f1cd9a711f2d10cf7508b5cf98737eda70c4833fd168c993501420679ef"
20
+ },
21
+ "encoder/config.json": {
22
+ "bytes": 2084,
23
+ "sha256": "5268d24ad3b77c8151de5dcb0762ba4391619aad9ab0bda33e36fb083cfeae6d"
24
+ },
25
+ "mlx_config.json": {
26
+ "bytes": 322,
27
+ "sha256": "fe0d126c46e70e28e47767801b15e3219280484ce298cab6aadcd339ca242cae"
28
+ },
29
+ "model.safetensors": {
30
+ "bytes": 842609225,
31
+ "sha256": "804ef8802b4cac7a67913b0cfb8448659e934a50284aaa867b98d7d9a6e7d1e0"
32
+ },
33
+ "rl_agent_config.json": {
34
+ "bytes": 848,
35
+ "sha256": "d99c800b818cb1a60734adba961c27abeaff2d142bb9fc473edb34b7de32fde9"
36
+ },
37
+ "tokenizer/tokenizer.json": {
38
+ "bytes": 3583228,
39
+ "sha256": "6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30"
40
+ },
41
+ "tokenizer/tokenizer_config.json": {
42
+ "bytes": 337,
43
+ "sha256": "08d4cf3ac4dca381759441b85b91a6d40e688471dcd33d15d6649eb0a9a854d1"
44
+ },
45
+ "validation.json": {
46
+ "bytes": 18275,
47
+ "sha256": "3b3c53564fd89f431252518733b4f70b856c1b911bcdf3a271d8ca1ec7a1b60c"
48
+ },
49
+ ".gitattributes": {
50
+ "bytes": 1519,
51
+ "sha256": "11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361"
52
+ }
53
+ }
54
+ }
mlx_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "laya-mlx",
3
+ "format_version": 1,
4
+ "dtype": "float16",
5
+ "source": "convaiinnovations/laya-typed-decisions",
6
+ "revision": "f9ab0b228f0fc0f14d873dbc99038f135c2da1b2",
7
+ "subfolder": null,
8
+ "source_revision": "f9ab0b228f0fc0f14d873dbc99038f135c2da1b2",
9
+ "repository": "aac6fef/laya-typed-decisions-mlx"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:804ef8802b4cac7a67913b0cfb8448659e934a50284aaa867b98d7d9a6e7d1e0
3
+ size 842609225
rl_agent_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "encoder": "answerdotai/ModernBERT-large",
3
+ "head_layers": 2,
4
+ "max_len": 1024,
5
+ "head_max_len": 256,
6
+ "max_prefixes": 6,
7
+ "act_costs": {
8
+ "escalate": 0.5
9
+ },
10
+ "cost_wrong_act": 3.0,
11
+ "amp_dtype": "bf16",
12
+ "model_name": "laya-typed-decisions",
13
+ "temperature": [
14
+ 1.0148024559020996,
15
+ 1.0374259948730469,
16
+ 1.0575125217437744
17
+ ],
18
+ "temperature_by_options": {
19
+ "choice:3-5": 1.7601518630981445,
20
+ "choice:6-10": 1.0000158548355103,
21
+ "score:3-5": 1.2514300346374512,
22
+ "noul:2": 1.983399510383606,
23
+ "choice:11+": 0.10058280825614929,
24
+ "choice:2": 1.9063563346862793
25
+ },
26
+ "training": {
27
+ "updates": 7313,
28
+ "epochs_completed": 1,
29
+ "hours": 1.96,
30
+ "world_size": 1,
31
+ "fine_tuned_from_checkpoint": true
32
+ },
33
+ "gradient_checkpointing": true,
34
+ "max_tokens_per_batch": 4096,
35
+ "fine_tuned": true
36
+ }
tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "local_files_only": false,
5
+ "mask_token": "[MASK]",
6
+ "model_input_names": [
7
+ "input_ids",
8
+ "attention_mask"
9
+ ],
10
+ "model_max_length": 8192,
11
+ "pad_token": "[PAD]",
12
+ "sep_token": "[SEP]",
13
+ "tokenizer_class": "PreTrainedTokenizerFast",
14
+ "unk_token": "[UNK]"
15
+ }
validation.json ADDED
@@ -0,0 +1,462 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "model": "laya-typed-decisions",
5
+ "revision": "f9ab0b228f0fc0f14d873dbc99038f135c2da1b2",
6
+ "dtype": "float32",
7
+ "argmax_agreements": 63,
8
+ "questions": 63,
9
+ "probability_max_abs_error": 2.6919645247369672e-06,
10
+ "probability_tolerance": 0.0001,
11
+ "cases": [
12
+ {
13
+ "case": "email",
14
+ "questions": 3,
15
+ "sequence_length": 93,
16
+ "input_sha256": "97703a282ecbb252db9f7e3121ad77e9d1a6671656cf35e62e60f0efeffd032c",
17
+ "tokens_equal": true,
18
+ "logits_max_abs_error": 1.2874603271484375e-05,
19
+ "action_logits_max_abs_error": 0.0009765625,
20
+ "probability_max_abs_error": 7.210621764119907e-07,
21
+ "action_probability_max_abs_error": 0.0,
22
+ "argmax_agreements": 3,
23
+ "public_result_equal": true
24
+ },
25
+ {
26
+ "case": "en",
27
+ "questions": 3,
28
+ "sequence_length": 65,
29
+ "input_sha256": "f89895466f2fafda31ca556a46d3823764e73156772693c88cc148edcc6a39eb",
30
+ "tokens_equal": true,
31
+ "logits_max_abs_error": 4.291534423828125e-06,
32
+ "action_logits_max_abs_error": 0.001953125,
33
+ "probability_max_abs_error": 2.2034769953105382e-07,
34
+ "action_probability_max_abs_error": 0.0,
35
+ "argmax_agreements": 3,
36
+ "public_result_equal": true
37
+ },
38
+ {
39
+ "case": "zh",
40
+ "questions": 3,
41
+ "sequence_length": 73,
42
+ "input_sha256": "0872ab22fd69ba60ca320db76dc09d90a9de1f4ebd4aaeafd46169a763f20e3f",
43
+ "tokens_equal": true,
44
+ "logits_max_abs_error": 5.900859832763672e-06,
45
+ "action_logits_max_abs_error": 0.0029296875,
46
+ "probability_max_abs_error": 7.033197524375367e-07,
47
+ "action_probability_max_abs_error": 0.0,
48
+ "argmax_agreements": 3,
49
+ "public_result_equal": true
50
+ },
51
+ {
52
+ "case": "de",
53
+ "questions": 3,
54
+ "sequence_length": 76,
55
+ "input_sha256": "88c970581ad10b6bd1aa82afaaef93513e456e68cf77e7e3cad98919de3ff1a5",
56
+ "tokens_equal": true,
57
+ "logits_max_abs_error": 5.9604644775390625e-06,
58
+ "action_logits_max_abs_error": 0.00146484375,
59
+ "probability_max_abs_error": 5.551051733831969e-07,
60
+ "action_probability_max_abs_error": 0.0,
61
+ "argmax_agreements": 3,
62
+ "public_result_equal": true
63
+ },
64
+ {
65
+ "case": "fr",
66
+ "questions": 3,
67
+ "sequence_length": 81,
68
+ "input_sha256": "00d71ea5bfd209fbbeffad3decdfacd9a51a4a97c07b7ab8969af5aa8bd51e43",
69
+ "tokens_equal": true,
70
+ "logits_max_abs_error": 1.17570161819458e-05,
71
+ "action_logits_max_abs_error": 0.001953125,
72
+ "probability_max_abs_error": 1.723394172925552e-06,
73
+ "action_probability_max_abs_error": 0.0,
74
+ "argmax_agreements": 3,
75
+ "public_result_equal": true
76
+ },
77
+ {
78
+ "case": "es",
79
+ "questions": 3,
80
+ "sequence_length": 75,
81
+ "input_sha256": "3d429a6d7f31bc59256e88c56a1d7a8ae40a05c6277fc6d22341bdc2203d93b6",
82
+ "tokens_equal": true,
83
+ "logits_max_abs_error": 2.276897430419922e-05,
84
+ "action_logits_max_abs_error": 0.0009765625,
85
+ "probability_max_abs_error": 2.6919645247369672e-06,
86
+ "action_probability_max_abs_error": 0.0,
87
+ "argmax_agreements": 3,
88
+ "public_result_equal": false
89
+ },
90
+ {
91
+ "case": "hi",
92
+ "questions": 3,
93
+ "sequence_length": 119,
94
+ "input_sha256": "23f2a78bed3a972ae02a7d3dc26e5b0eec62aee4230ff0c5a1388d7f044dd121",
95
+ "tokens_equal": true,
96
+ "logits_max_abs_error": 4.231929779052734e-06,
97
+ "action_logits_max_abs_error": 0.00341796875,
98
+ "probability_max_abs_error": 5.588153316193889e-07,
99
+ "action_probability_max_abs_error": 0.0,
100
+ "argmax_agreements": 3,
101
+ "public_result_equal": true
102
+ },
103
+ {
104
+ "case": "ja",
105
+ "questions": 3,
106
+ "sequence_length": 75,
107
+ "input_sha256": "e73ae1efad1e50525b04f6a8f8004ccc15478f73ac3618fbe752e25c1c6c150b",
108
+ "tokens_equal": true,
109
+ "logits_max_abs_error": 1.3649463653564453e-05,
110
+ "action_logits_max_abs_error": 0.00048828125,
111
+ "probability_max_abs_error": 1.8330665967902782e-06,
112
+ "action_probability_max_abs_error": 0.0,
113
+ "argmax_agreements": 3,
114
+ "public_result_equal": true
115
+ },
116
+ {
117
+ "case": "ru",
118
+ "questions": 3,
119
+ "sequence_length": 85,
120
+ "input_sha256": "bac6676f433fdbb4aa2b71dda957299b7e5a9efa2c2b526f000f51d8d4be3a08",
121
+ "tokens_equal": true,
122
+ "logits_max_abs_error": 1.1205673217773438e-05,
123
+ "action_logits_max_abs_error": 0.0048828125,
124
+ "probability_max_abs_error": 1.1675661268917281e-06,
125
+ "action_probability_max_abs_error": 0.0,
126
+ "argmax_agreements": 3,
127
+ "public_result_equal": true
128
+ },
129
+ {
130
+ "case": "empty_state",
131
+ "questions": 3,
132
+ "sequence_length": 46,
133
+ "input_sha256": "85f8a747931b65f225679d74c32afc65b23c679549560503921a969453d2c4e1",
134
+ "tokens_equal": true,
135
+ "logits_max_abs_error": 3.3080577850341797e-06,
136
+ "action_logits_max_abs_error": 0.0029296875,
137
+ "probability_max_abs_error": 3.7721659515432826e-07,
138
+ "action_probability_max_abs_error": 0.0,
139
+ "argmax_agreements": 3,
140
+ "public_result_equal": true
141
+ },
142
+ {
143
+ "case": "long",
144
+ "questions": 3,
145
+ "sequence_length": 1024,
146
+ "input_sha256": "029a742cb223bbb34add55cb46a0d266345a2e448f314ced18033f3710a9c8c7",
147
+ "tokens_equal": true,
148
+ "logits_max_abs_error": 4.0531158447265625e-06,
149
+ "action_logits_max_abs_error": 0.0009765625,
150
+ "probability_max_abs_error": 6.077859601716362e-07,
151
+ "action_probability_max_abs_error": 0.0,
152
+ "argmax_agreements": 3,
153
+ "public_result_equal": true
154
+ },
155
+ {
156
+ "case": "conversation",
157
+ "questions": 3,
158
+ "sequence_length": 72,
159
+ "input_sha256": "a429d0393a0bd2af5d960fa45ab286d6741b89969693fa852560a6c87309a4d0",
160
+ "tokens_equal": true,
161
+ "logits_max_abs_error": 9.5367431640625e-06,
162
+ "action_logits_max_abs_error": 0.0205078125,
163
+ "probability_max_abs_error": 8.633831605209252e-07,
164
+ "action_probability_max_abs_error": 0.0,
165
+ "argmax_agreements": 3,
166
+ "public_result_equal": true
167
+ },
168
+ {
169
+ "case": "mask_literals",
170
+ "questions": 3,
171
+ "sequence_length": 55,
172
+ "input_sha256": "f89667d91cd59690e55b05e6af9368ea1e27ef42829525a97d4cd3cace2f1989",
173
+ "tokens_equal": true,
174
+ "logits_max_abs_error": 2.384185791015625e-05,
175
+ "action_logits_max_abs_error": 0.00341796875,
176
+ "probability_max_abs_error": 2.23863032666749e-07,
177
+ "action_probability_max_abs_error": 0.0,
178
+ "argmax_agreements": 3,
179
+ "public_result_equal": true
180
+ },
181
+ {
182
+ "case": "many_questions",
183
+ "questions": 20,
184
+ "sequence_length": 93,
185
+ "input_sha256": "47942741e9ed5fabc4c49464b633b43608c61d04c9bc3f23fea5c0ae4da23ae3",
186
+ "tokens_equal": true,
187
+ "logits_max_abs_error": 1.0728836059570312e-05,
188
+ "action_logits_max_abs_error": 0.0009765625,
189
+ "probability_max_abs_error": 4.336381511649279e-07,
190
+ "action_probability_max_abs_error": 0.0,
191
+ "argmax_agreements": 20,
192
+ "public_result_equal": true
193
+ },
194
+ {
195
+ "case": "structured",
196
+ "questions": 3,
197
+ "sequence_length": 78,
198
+ "input_sha256": "8ba1aac3447918529ea99ae8c34146ebe16db359e7787412e6dda90c34f9b8b2",
199
+ "tokens_equal": true,
200
+ "logits_max_abs_error": 7.331371307373047e-06,
201
+ "action_logits_max_abs_error": 0.00244140625,
202
+ "probability_max_abs_error": 9.235202212964921e-07,
203
+ "action_probability_max_abs_error": 0.0,
204
+ "argmax_agreements": 3,
205
+ "public_result_equal": true
206
+ },
207
+ {
208
+ "case": "twenty_options",
209
+ "questions": 1,
210
+ "sequence_length": 137,
211
+ "input_sha256": "f20fe7490e99ad43d4d1c5a9657f095968b904c9a60e8b3e02fce0544126f838",
212
+ "tokens_equal": true,
213
+ "logits_max_abs_error": 1.0251998901367188e-05,
214
+ "action_logits_max_abs_error": 0.0009765625,
215
+ "probability_max_abs_error": 5.551115123125783e-15,
216
+ "action_probability_max_abs_error": 0.0,
217
+ "argmax_agreements": 1,
218
+ "public_result_equal": true
219
+ }
220
+ ],
221
+ "stability": {
222
+ "calls": 100,
223
+ "elapsed_seconds": 5.4789109579996875,
224
+ "finite": true,
225
+ "deterministic": true,
226
+ "active_bytes_before": 1685193880,
227
+ "active_bytes_after": 1685193880,
228
+ "active_growth_bytes": 0,
229
+ "peak_bytes": 3423756077
230
+ }
231
+ },
232
+ {
233
+ "model": "laya-typed-decisions",
234
+ "revision": "f9ab0b228f0fc0f14d873dbc99038f135c2da1b2",
235
+ "dtype": "float16",
236
+ "argmax_agreements": 63,
237
+ "questions": 63,
238
+ "probability_max_abs_error": 0.001684852828996053,
239
+ "probability_tolerance": 0.02,
240
+ "cases": [
241
+ {
242
+ "case": "email",
243
+ "questions": 3,
244
+ "sequence_length": 93,
245
+ "input_sha256": "97703a282ecbb252db9f7e3121ad77e9d1a6671656cf35e62e60f0efeffd032c",
246
+ "tokens_equal": true,
247
+ "logits_max_abs_error": 0.0022116899490356445,
248
+ "action_logits_max_abs_error": 2.3740234375,
249
+ "probability_max_abs_error": 0.00021357875606586862,
250
+ "action_probability_max_abs_error": 0.0,
251
+ "argmax_agreements": 3,
252
+ "public_result_equal": false
253
+ },
254
+ {
255
+ "case": "en",
256
+ "questions": 3,
257
+ "sequence_length": 65,
258
+ "input_sha256": "f89895466f2fafda31ca556a46d3823764e73156772693c88cc148edcc6a39eb",
259
+ "tokens_equal": true,
260
+ "logits_max_abs_error": 0.0024580955505371094,
261
+ "action_logits_max_abs_error": 1.38671875,
262
+ "probability_max_abs_error": 9.336748863979227e-05,
263
+ "action_probability_max_abs_error": 0.0,
264
+ "argmax_agreements": 3,
265
+ "public_result_equal": false
266
+ },
267
+ {
268
+ "case": "zh",
269
+ "questions": 3,
270
+ "sequence_length": 73,
271
+ "input_sha256": "0872ab22fd69ba60ca320db76dc09d90a9de1f4ebd4aaeafd46169a763f20e3f",
272
+ "tokens_equal": true,
273
+ "logits_max_abs_error": 0.004957020282745361,
274
+ "action_logits_max_abs_error": 1.8857421875,
275
+ "probability_max_abs_error": 0.0007390935033982915,
276
+ "action_probability_max_abs_error": 0.0,
277
+ "argmax_agreements": 3,
278
+ "public_result_equal": false
279
+ },
280
+ {
281
+ "case": "de",
282
+ "questions": 3,
283
+ "sequence_length": 76,
284
+ "input_sha256": "88c970581ad10b6bd1aa82afaaef93513e456e68cf77e7e3cad98919de3ff1a5",
285
+ "tokens_equal": true,
286
+ "logits_max_abs_error": 0.0035294294357299805,
287
+ "action_logits_max_abs_error": 3.62109375,
288
+ "probability_max_abs_error": 0.000526229622675678,
289
+ "action_probability_max_abs_error": 0.0,
290
+ "argmax_agreements": 3,
291
+ "public_result_equal": false
292
+ },
293
+ {
294
+ "case": "fr",
295
+ "questions": 3,
296
+ "sequence_length": 81,
297
+ "input_sha256": "00d71ea5bfd209fbbeffad3decdfacd9a51a4a97c07b7ab8969af5aa8bd51e43",
298
+ "tokens_equal": true,
299
+ "logits_max_abs_error": 0.007625460624694824,
300
+ "action_logits_max_abs_error": 1.56201171875,
301
+ "probability_max_abs_error": 0.0011372547656152143,
302
+ "action_probability_max_abs_error": 0.0,
303
+ "argmax_agreements": 3,
304
+ "public_result_equal": false
305
+ },
306
+ {
307
+ "case": "es",
308
+ "questions": 3,
309
+ "sequence_length": 75,
310
+ "input_sha256": "3d429a6d7f31bc59256e88c56a1d7a8ae40a05c6277fc6d22341bdc2203d93b6",
311
+ "tokens_equal": true,
312
+ "logits_max_abs_error": 0.005304872989654541,
313
+ "action_logits_max_abs_error": 1.12890625,
314
+ "probability_max_abs_error": 0.0008270134606335189,
315
+ "action_probability_max_abs_error": 0.0,
316
+ "argmax_agreements": 3,
317
+ "public_result_equal": false
318
+ },
319
+ {
320
+ "case": "hi",
321
+ "questions": 3,
322
+ "sequence_length": 119,
323
+ "input_sha256": "23f2a78bed3a972ae02a7d3dc26e5b0eec62aee4230ff0c5a1388d7f044dd121",
324
+ "tokens_equal": true,
325
+ "logits_max_abs_error": 0.009370118379592896,
326
+ "action_logits_max_abs_error": 4.505859375,
327
+ "probability_max_abs_error": 0.0016694837072617763,
328
+ "action_probability_max_abs_error": 0.0,
329
+ "argmax_agreements": 3,
330
+ "public_result_equal": false
331
+ },
332
+ {
333
+ "case": "ja",
334
+ "questions": 3,
335
+ "sequence_length": 75,
336
+ "input_sha256": "e73ae1efad1e50525b04f6a8f8004ccc15478f73ac3618fbe752e25c1c6c150b",
337
+ "tokens_equal": true,
338
+ "logits_max_abs_error": 0.014008641242980957,
339
+ "action_logits_max_abs_error": 2.06005859375,
340
+ "probability_max_abs_error": 0.001684852828996053,
341
+ "action_probability_max_abs_error": 0.0,
342
+ "argmax_agreements": 3,
343
+ "public_result_equal": false
344
+ },
345
+ {
346
+ "case": "ru",
347
+ "questions": 3,
348
+ "sequence_length": 85,
349
+ "input_sha256": "bac6676f433fdbb4aa2b71dda957299b7e5a9efa2c2b526f000f51d8d4be3a08",
350
+ "tokens_equal": true,
351
+ "logits_max_abs_error": 0.015249252319335938,
352
+ "action_logits_max_abs_error": 6.84228515625,
353
+ "probability_max_abs_error": 0.0008083497347728674,
354
+ "action_probability_max_abs_error": 0.0,
355
+ "argmax_agreements": 3,
356
+ "public_result_equal": false
357
+ },
358
+ {
359
+ "case": "empty_state",
360
+ "questions": 3,
361
+ "sequence_length": 46,
362
+ "input_sha256": "85f8a747931b65f225679d74c32afc65b23c679549560503921a969453d2c4e1",
363
+ "tokens_equal": true,
364
+ "logits_max_abs_error": 0.00489005446434021,
365
+ "action_logits_max_abs_error": 2.18505859375,
366
+ "probability_max_abs_error": 0.00052650497117121,
367
+ "action_probability_max_abs_error": 0.0,
368
+ "argmax_agreements": 3,
369
+ "public_result_equal": false
370
+ },
371
+ {
372
+ "case": "long",
373
+ "questions": 3,
374
+ "sequence_length": 1024,
375
+ "input_sha256": "029a742cb223bbb34add55cb46a0d266345a2e448f314ced18033f3710a9c8c7",
376
+ "tokens_equal": true,
377
+ "logits_max_abs_error": 0.002743244171142578,
378
+ "action_logits_max_abs_error": 1.6708984375,
379
+ "probability_max_abs_error": 0.00031694213373878455,
380
+ "action_probability_max_abs_error": 0.0,
381
+ "argmax_agreements": 3,
382
+ "public_result_equal": false
383
+ },
384
+ {
385
+ "case": "conversation",
386
+ "questions": 3,
387
+ "sequence_length": 72,
388
+ "input_sha256": "a429d0393a0bd2af5d960fa45ab286d6741b89969693fa852560a6c87309a4d0",
389
+ "tokens_equal": true,
390
+ "logits_max_abs_error": 0.002342820167541504,
391
+ "action_logits_max_abs_error": 2.9599609375,
392
+ "probability_max_abs_error": 0.0003464216532628739,
393
+ "action_probability_max_abs_error": 0.0,
394
+ "argmax_agreements": 3,
395
+ "public_result_equal": false
396
+ },
397
+ {
398
+ "case": "mask_literals",
399
+ "questions": 3,
400
+ "sequence_length": 55,
401
+ "input_sha256": "f89667d91cd59690e55b05e6af9368ea1e27ef42829525a97d4cd3cace2f1989",
402
+ "tokens_equal": true,
403
+ "logits_max_abs_error": 0.06682395935058594,
404
+ "action_logits_max_abs_error": 6.8671875,
405
+ "probability_max_abs_error": 0.00019010985428680183,
406
+ "action_probability_max_abs_error": 0.0,
407
+ "argmax_agreements": 3,
408
+ "public_result_equal": false
409
+ },
410
+ {
411
+ "case": "many_questions",
412
+ "questions": 20,
413
+ "sequence_length": 93,
414
+ "input_sha256": "47942741e9ed5fabc4c49464b633b43608c61d04c9bc3f23fea5c0ae4da23ae3",
415
+ "tokens_equal": true,
416
+ "logits_max_abs_error": 0.006502509117126465,
417
+ "action_logits_max_abs_error": 1.6259765625,
418
+ "probability_max_abs_error": 0.00036154743254057653,
419
+ "action_probability_max_abs_error": 0.0,
420
+ "argmax_agreements": 20,
421
+ "public_result_equal": false
422
+ },
423
+ {
424
+ "case": "structured",
425
+ "questions": 3,
426
+ "sequence_length": 78,
427
+ "input_sha256": "8ba1aac3447918529ea99ae8c34146ebe16db359e7787412e6dda90c34f9b8b2",
428
+ "tokens_equal": true,
429
+ "logits_max_abs_error": 0.004985213279724121,
430
+ "action_logits_max_abs_error": 1.1669921875,
431
+ "probability_max_abs_error": 0.0006985338606436686,
432
+ "action_probability_max_abs_error": 0.0,
433
+ "argmax_agreements": 3,
434
+ "public_result_equal": false
435
+ },
436
+ {
437
+ "case": "twenty_options",
438
+ "questions": 1,
439
+ "sequence_length": 137,
440
+ "input_sha256": "f20fe7490e99ad43d4d1c5a9657f095968b904c9a60e8b3e02fce0544126f838",
441
+ "tokens_equal": true,
442
+ "logits_max_abs_error": 0.006767153739929199,
443
+ "action_logits_max_abs_error": 0.775390625,
444
+ "probability_max_abs_error": 8.040235144335384e-13,
445
+ "action_probability_max_abs_error": 0.0,
446
+ "argmax_agreements": 1,
447
+ "public_result_equal": true
448
+ }
449
+ ],
450
+ "stability": {
451
+ "calls": 100,
452
+ "elapsed_seconds": 4.304302542001096,
453
+ "finite": true,
454
+ "deterministic": true,
455
+ "active_bytes_before": 842602138,
456
+ "active_bytes_after": 842602138,
457
+ "active_growth_bytes": 0,
458
+ "peak_bytes": 1716090944
459
+ }
460
+ }
461
+ ]
462
+ }