aac6fef commited on
Commit
e9e5db1
·
verified ·
1 Parent(s): 2aed5b9

Publish validated native MLX FP16 checkpoint

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
+ tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
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,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: mlx
4
+ pipeline_tag: text-classification
5
+ base_model: convaiinnovations/laya-multilingual
6
+ tags:
7
+ - multilingual
8
+ - mlx
9
+ - laya
10
+ - modernbert
11
+ - apple-silicon
12
+ - decision-model
13
+ ---
14
+
15
+ # laya-multilingual-mlx
16
+
17
+ Native **MLX FP16** conversion of [convaiinnovations/laya-multilingual](https://huggingface.co/convaiinnovations/laya-multilingual) for Apple silicon.
18
+
19
+ This checkpoint uses **mmBERT-base**, 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.
20
+
21
+ ## Usage
22
+
23
+ Install the dedicated runtime on an Apple silicon Mac with macOS 26+ and Python 3.11+:
24
+
25
+ ```bash
26
+ python -m pip install 'git+https://github.com/mizorewww/laya-mlx.git'
27
+ ```
28
+
29
+ ```python
30
+ import laya_mlx as laya
31
+
32
+ agent = laya.load("aac6fef/laya-multilingual-mlx")
33
+ result = agent.predict(
34
+ "I was billed twice. Please refund the duplicate today.",
35
+ {
36
+ "department": {
37
+ "type": "choice",
38
+ "instructions": "Which department should handle this request?",
39
+ "criteria": ["billing", "technical", "sales"],
40
+ },
41
+ "refund": {
42
+ "type": "noul",
43
+ "instructions": "Does the customer ask for money back?",
44
+ },
45
+ },
46
+ )
47
+ print(result["answers"])
48
+ ```
49
+
50
+ 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.
51
+
52
+ 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.
53
+
54
+ ## Validation
55
+
56
+ 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.
57
+
58
+ - FP16 agrees with upstream PyTorch MPS FP32 on the argmax of **63/63** decision distributions across 16 cases.
59
+ - Maximum calibrated probability difference: **0.0012887**.
60
+ - **100 repeated calls** produced finite, deterministic public outputs; measured MLX active-memory growth after clearing caches was **0 bytes**.
61
+ - Every exported tensor was checked for exact equality with the corresponding source tensor cast to FP16.
62
+
63
+ 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.
64
+
65
+ ## Provenance and limits
66
+
67
+ - Source checkpoint: `convaiinnovations/laya-multilingual` at `052592a15d198d9ad47da779604259b10b47b7aa`.
68
+ - Upstream code: [NandhaKishorM/laya](https://github.com/NandhaKishorM/laya), commit `6a5819129eb220570792e417e49723d697efd76f`.
69
+ - Conversion changes parameter names for MLX and preserves FP16 weights. It does not retrain or quantize to fewer bits.
70
+ - 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.
71
+ - The typed-decisions checkpoint is specialized for upstream workflows; the multilingual checkpoint is the intended choice for non-English text.
72
+
73
+ 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,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForMaskedLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 2,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 1,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "float32",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 1,
18
+ "global_attn_every_n_layers": 3,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 768,
22
+ "initializer_cutoff_factor": 2.0,
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 1152,
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
+ ],
50
+ "local_attention": 128,
51
+ "mask_token_id": 4,
52
+ "max_position_embeddings": 8192,
53
+ "mlp_bias": false,
54
+ "mlp_dropout": 0.0,
55
+ "model_type": "modernbert",
56
+ "norm_bias": false,
57
+ "norm_eps": 1e-05,
58
+ "num_attention_heads": 12,
59
+ "num_hidden_layers": 22,
60
+ "pad_token_id": 0,
61
+ "position_embedding_type": "sans_pos",
62
+ "repad_logits_with_grad": false,
63
+ "rope_parameters": {
64
+ "full_attention": {
65
+ "rope_theta": 160000,
66
+ "rope_type": "default"
67
+ },
68
+ "sliding_attention": {
69
+ "rope_theta": 160000,
70
+ "rope_type": "default"
71
+ }
72
+ },
73
+ "sep_token_id": 1,
74
+ "sparse_pred_ignore_index": -100,
75
+ "sparse_prediction": false,
76
+ "tie_word_embeddings": true,
77
+ "transformers_version": "5.0.0",
78
+ "vocab_size": 256000
79
+ }
manifest.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "repository": "aac6fef/laya-multilingual-mlx",
3
+ "source": "convaiinnovations/laya-multilingual",
4
+ "source_revision": "052592a15d198d9ad47da779604259b10b47b7aa",
5
+ "format": "laya-mlx",
6
+ "dtype": "float16",
7
+ "verified_tensors": 170,
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": 3676,
19
+ "sha256": "65fcbc0ff2a4a2d259f5ee14abcf2f8941e3ca0790fc4fa4b63d6401cbf798ce"
20
+ },
21
+ "encoder/config.json": {
22
+ "bytes": 1938,
23
+ "sha256": "83f6916d13ef0f556ac461f28308dc2bffa7ebeadee8ec9e2db5812020ea5bb4"
24
+ },
25
+ "mlx_config.json": {
26
+ "bytes": 316,
27
+ "sha256": "20ec723e1365a268597cc7e8cd39495c5e2eb58311b925f8e8c165ec5855cc28"
28
+ },
29
+ "model.safetensors": {
30
+ "bytes": 643835426,
31
+ "sha256": "7fc5834af4d8fdfb268d272a9d1a66e5819a0daac98241651c4c888cc43adff1"
32
+ },
33
+ "rl_agent_config.json": {
34
+ "bytes": 473,
35
+ "sha256": "9a669a70961064c3c6cc76d2afb8bc5fb10dcd8349bb66e5f7b9b1afb74440d5"
36
+ },
37
+ "tokenizer/tokenizer.json": {
38
+ "bytes": 34363188,
39
+ "sha256": "609d8f4c067cd3950f88594c5a802616cea245823836ef5848ee4fc40aab5b6f"
40
+ },
41
+ "tokenizer/tokenizer_config.json": {
42
+ "bytes": 524,
43
+ "sha256": "6c6b2d8e3c84ce0e671c129cd6b374b235d6f9863042a5836358d00a89bbb5a1"
44
+ },
45
+ "validation.json": {
46
+ "bytes": 18322,
47
+ "sha256": "f64ef4e455afb2dc3d183f2bf0f2edfded8297e5573334caf462c2d89dab7966"
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-multilingual",
6
+ "revision": "052592a15d198d9ad47da779604259b10b47b7aa",
7
+ "subfolder": null,
8
+ "source_revision": "052592a15d198d9ad47da779604259b10b47b7aa",
9
+ "repository": "aac6fef/laya-multilingual-mlx"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fc5834af4d8fdfb268d272a9d1a66e5819a0daac98241651c4c888cc43adff1
3
+ size 643835426
rl_agent_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "encoder": "jhu-clsp/mmBERT-base",
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": "rl-agent",
13
+ "temperature": [
14
+ 1.0,
15
+ 1.0,
16
+ 1.0
17
+ ],
18
+ "temperature_by_options": {},
19
+ "training": {
20
+ "updates": 15987,
21
+ "epochs_completed": 4,
22
+ "hours": 4.97,
23
+ "world_size": 1,
24
+ "fine_tuned_from_checkpoint": false
25
+ }
26
+ }
tokenizer/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:609d8f4c067cd3950f88594c5a802616cea245823836ef5848ee4fc40aab5b6f
3
+ size 34363188
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<bos>",
3
+ "clean_up_tokenization_spaces": false,
4
+ "cls_token": "<bos>",
5
+ "eos_token": "<eos>",
6
+ "extra_special_tokens": {
7
+ "extra_0": "<start_of_turn>",
8
+ "extra_1": "<end_of_turn>"
9
+ },
10
+ "mask_token": "<mask>",
11
+ "model_input_names": [
12
+ "input_ids",
13
+ "attention_mask"
14
+ ],
15
+ "model_max_length": 8192,
16
+ "pad_token": "<pad>",
17
+ "padding_side": "right",
18
+ "sep_token": "<eos>",
19
+ "spaces_between_special_tokens": false,
20
+ "tokenizer_class": "PreTrainedTokenizerFast",
21
+ "unk_token": "<unk>"
22
+ }
validation.json ADDED
@@ -0,0 +1,462 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "results": [
3
+ {
4
+ "model": "laya-multilingual",
5
+ "revision": "052592a15d198d9ad47da779604259b10b47b7aa",
6
+ "dtype": "float32",
7
+ "argmax_agreements": 63,
8
+ "questions": 63,
9
+ "probability_max_abs_error": 1.1730551289779179e-06,
10
+ "probability_tolerance": 0.0001,
11
+ "cases": [
12
+ {
13
+ "case": "email",
14
+ "questions": 3,
15
+ "sequence_length": 91,
16
+ "input_sha256": "97703a282ecbb252db9f7e3121ad77e9d1a6671656cf35e62e60f0efeffd032c",
17
+ "tokens_equal": true,
18
+ "logits_max_abs_error": 9.298324584960938e-06,
19
+ "action_logits_max_abs_error": 0.0003662109375,
20
+ "probability_max_abs_error": 8.408550500327294e-08,
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": 6.4373016357421875e-06,
32
+ "action_logits_max_abs_error": 0.0008544921875,
33
+ "probability_max_abs_error": 3.981796028521001e-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": 63,
42
+ "input_sha256": "0872ab22fd69ba60ca320db76dc09d90a9de1f4ebd4aaeafd46169a763f20e3f",
43
+ "tokens_equal": true,
44
+ "logits_max_abs_error": 1.33514404296875e-05,
45
+ "action_logits_max_abs_error": 0.0008544921875,
46
+ "probability_max_abs_error": 4.1718433052562176e-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": 68,
55
+ "input_sha256": "88c970581ad10b6bd1aa82afaaef93513e456e68cf77e7e3cad98919de3ff1a5",
56
+ "tokens_equal": true,
57
+ "logits_max_abs_error": 8.58306884765625e-06,
58
+ "action_logits_max_abs_error": 0.0008544921875,
59
+ "probability_max_abs_error": 3.537581284573932e-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": 75,
68
+ "input_sha256": "00d71ea5bfd209fbbeffad3decdfacd9a51a4a97c07b7ab8969af5aa8bd51e43",
69
+ "tokens_equal": true,
70
+ "logits_max_abs_error": 4.172325134277344e-06,
71
+ "action_logits_max_abs_error": 0.0003662109375,
72
+ "probability_max_abs_error": 6.815213527966435e-07,
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": 71,
81
+ "input_sha256": "3d429a6d7f31bc59256e88c56a1d7a8ae40a05c6277fc6d22341bdc2203d93b6",
82
+ "tokens_equal": true,
83
+ "logits_max_abs_error": 4.76837158203125e-06,
84
+ "action_logits_max_abs_error": 0.00048828125,
85
+ "probability_max_abs_error": 1.1075923692094314e-07,
86
+ "action_probability_max_abs_error": 0.0,
87
+ "argmax_agreements": 3,
88
+ "public_result_equal": true
89
+ },
90
+ {
91
+ "case": "hi",
92
+ "questions": 3,
93
+ "sequence_length": 76,
94
+ "input_sha256": "23f2a78bed3a972ae02a7d3dc26e5b0eec62aee4230ff0c5a1388d7f044dd121",
95
+ "tokens_equal": true,
96
+ "logits_max_abs_error": 1.806020736694336e-05,
97
+ "action_logits_max_abs_error": 0.0006103515625,
98
+ "probability_max_abs_error": 2.735751727378499e-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": 64,
107
+ "input_sha256": "e73ae1efad1e50525b04f6a8f8004ccc15478f73ac3618fbe752e25c1c6c150b",
108
+ "tokens_equal": true,
109
+ "logits_max_abs_error": 1.239776611328125e-05,
110
+ "action_logits_max_abs_error": 0.00048828125,
111
+ "probability_max_abs_error": 1.3639705214070486e-07,
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": 70,
120
+ "input_sha256": "bac6676f433fdbb4aa2b71dda957299b7e5a9efa2c2b526f000f51d8d4be3a08",
121
+ "tokens_equal": true,
122
+ "logits_max_abs_error": 1.0967254638671875e-05,
123
+ "action_logits_max_abs_error": 0.000732421875,
124
+ "probability_max_abs_error": 1.579822589692359e-07,
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": 43,
133
+ "input_sha256": "85f8a747931b65f225679d74c32afc65b23c679549560503921a969453d2c4e1",
134
+ "tokens_equal": true,
135
+ "logits_max_abs_error": 1.4066696166992188e-05,
136
+ "action_logits_max_abs_error": 0.0003662109375,
137
+ "probability_max_abs_error": 1.1730551289779179e-06,
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": 1.049041748046875e-05,
149
+ "action_logits_max_abs_error": 0.00048828125,
150
+ "probability_max_abs_error": 9.156017116707105e-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": 5.7220458984375e-06,
162
+ "action_logits_max_abs_error": 0.000244140625,
163
+ "probability_max_abs_error": 4.835169568340181e-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": 54,
172
+ "input_sha256": "f89667d91cd59690e55b05e6af9368ea1e27ef42829525a97d4cd3cace2f1989",
173
+ "tokens_equal": true,
174
+ "logits_max_abs_error": 2.86102294921875e-06,
175
+ "action_logits_max_abs_error": 0.00048828125,
176
+ "probability_max_abs_error": 2.600718663758883e-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": 91,
185
+ "input_sha256": "47942741e9ed5fabc4c49464b633b43608c61d04c9bc3f23fea5c0ae4da23ae3",
186
+ "tokens_equal": true,
187
+ "logits_max_abs_error": 3.814697265625e-06,
188
+ "action_logits_max_abs_error": 0.000244140625,
189
+ "probability_max_abs_error": 1.538252508148652e-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": 2.193450927734375e-05,
201
+ "action_logits_max_abs_error": 0.0003662109375,
202
+ "probability_max_abs_error": 1.669269376058935e-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": 147,
211
+ "input_sha256": "f20fe7490e99ad43d4d1c5a9657f095968b904c9a60e8b3e02fce0544126f838",
212
+ "tokens_equal": true,
213
+ "logits_max_abs_error": 2.09808349609375e-05,
214
+ "action_logits_max_abs_error": 0.000244140625,
215
+ "probability_max_abs_error": 6.057521440006042e-08,
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": 2.050206750000143,
224
+ "finite": true,
225
+ "deterministic": true,
226
+ "active_bytes_before": 1287649944,
227
+ "active_bytes_after": 1287649944,
228
+ "active_growth_bytes": 0,
229
+ "peak_bytes": 3140499835
230
+ }
231
+ },
232
+ {
233
+ "model": "laya-multilingual",
234
+ "revision": "052592a15d198d9ad47da779604259b10b47b7aa",
235
+ "dtype": "float16",
236
+ "argmax_agreements": 63,
237
+ "questions": 63,
238
+ "probability_max_abs_error": 0.0012887104780422431,
239
+ "probability_tolerance": 0.02,
240
+ "cases": [
241
+ {
242
+ "case": "email",
243
+ "questions": 3,
244
+ "sequence_length": 91,
245
+ "input_sha256": "97703a282ecbb252db9f7e3121ad77e9d1a6671656cf35e62e60f0efeffd032c",
246
+ "tokens_equal": true,
247
+ "logits_max_abs_error": 0.01021575927734375,
248
+ "action_logits_max_abs_error": 0.5980224609375,
249
+ "probability_max_abs_error": 0.000213222913555855,
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.012716293334960938,
261
+ "action_logits_max_abs_error": 0.8046875,
262
+ "probability_max_abs_error": 5.226599005025978e-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": 63,
271
+ "input_sha256": "0872ab22fd69ba60ca320db76dc09d90a9de1f4ebd4aaeafd46169a763f20e3f",
272
+ "tokens_equal": true,
273
+ "logits_max_abs_error": 0.01691913604736328,
274
+ "action_logits_max_abs_error": 0.986328125,
275
+ "probability_max_abs_error": 0.0012582035157709948,
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": 68,
284
+ "input_sha256": "88c970581ad10b6bd1aa82afaaef93513e456e68cf77e7e3cad98919de3ff1a5",
285
+ "tokens_equal": true,
286
+ "logits_max_abs_error": 0.02433490753173828,
287
+ "action_logits_max_abs_error": 1.2955322265625,
288
+ "probability_max_abs_error": 0.0002732991680248764,
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": 75,
297
+ "input_sha256": "00d71ea5bfd209fbbeffad3decdfacd9a51a4a97c07b7ab8969af5aa8bd51e43",
298
+ "tokens_equal": true,
299
+ "logits_max_abs_error": 0.010273575782775879,
300
+ "action_logits_max_abs_error": 0.7242431640625,
301
+ "probability_max_abs_error": 0.0010558913788807356,
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": 71,
310
+ "input_sha256": "3d429a6d7f31bc59256e88c56a1d7a8ae40a05c6277fc6d22341bdc2203d93b6",
311
+ "tokens_equal": true,
312
+ "logits_max_abs_error": 0.011568069458007812,
313
+ "action_logits_max_abs_error": 0.6639404296875,
314
+ "probability_max_abs_error": 0.00034809052291373543,
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": 76,
323
+ "input_sha256": "23f2a78bed3a972ae02a7d3dc26e5b0eec62aee4230ff0c5a1388d7f044dd121",
324
+ "tokens_equal": true,
325
+ "logits_max_abs_error": 0.020517706871032715,
326
+ "action_logits_max_abs_error": 1.28271484375,
327
+ "probability_max_abs_error": 0.00030063221642773197,
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": 64,
336
+ "input_sha256": "e73ae1efad1e50525b04f6a8f8004ccc15478f73ac3618fbe752e25c1c6c150b",
337
+ "tokens_equal": true,
338
+ "logits_max_abs_error": 0.017046451568603516,
339
+ "action_logits_max_abs_error": 1.0455322265625,
340
+ "probability_max_abs_error": 0.00046353844042112957,
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": 70,
349
+ "input_sha256": "bac6676f433fdbb4aa2b71dda957299b7e5a9efa2c2b526f000f51d8d4be3a08",
350
+ "tokens_equal": true,
351
+ "logits_max_abs_error": 0.003476381301879883,
352
+ "action_logits_max_abs_error": 0.552490234375,
353
+ "probability_max_abs_error": 0.00015204652786748873,
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": 43,
362
+ "input_sha256": "85f8a747931b65f225679d74c32afc65b23c679549560503921a969453d2c4e1",
363
+ "tokens_equal": true,
364
+ "logits_max_abs_error": 0.010242938995361328,
365
+ "action_logits_max_abs_error": 0.33642578125,
366
+ "probability_max_abs_error": 0.0007854287639451063,
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.015527129173278809,
378
+ "action_logits_max_abs_error": 5.8941650390625,
379
+ "probability_max_abs_error": 0.0012887104780422431,
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.005777120590209961,
391
+ "action_logits_max_abs_error": 0.982666015625,
392
+ "probability_max_abs_error": 0.0007462369995046292,
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": 54,
401
+ "input_sha256": "f89667d91cd59690e55b05e6af9368ea1e27ef42829525a97d4cd3cace2f1989",
402
+ "tokens_equal": true,
403
+ "logits_max_abs_error": 0.002633810043334961,
404
+ "action_logits_max_abs_error": 0.73828125,
405
+ "probability_max_abs_error": 0.0004162903022372211,
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": 91,
414
+ "input_sha256": "47942741e9ed5fabc4c49464b633b43608c61d04c9bc3f23fea5c0ae4da23ae3",
415
+ "tokens_equal": true,
416
+ "logits_max_abs_error": 0.004705190658569336,
417
+ "action_logits_max_abs_error": 0.578857421875,
418
+ "probability_max_abs_error": 0.00015514143016297569,
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.013816356658935547,
430
+ "action_logits_max_abs_error": 0.57861328125,
431
+ "probability_max_abs_error": 0.00026317751204507633,
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": 147,
440
+ "input_sha256": "f20fe7490e99ad43d4d1c5a9657f095968b904c9a60e8b3e02fce0544126f838",
441
+ "tokens_equal": true,
442
+ "logits_max_abs_error": 0.018027305603027344,
443
+ "action_logits_max_abs_error": 0.2652587890625,
444
+ "probability_max_abs_error": 5.6505266232687035e-05,
445
+ "action_probability_max_abs_error": 0.0,
446
+ "argmax_agreements": 1,
447
+ "public_result_equal": false
448
+ }
449
+ ],
450
+ "stability": {
451
+ "calls": 100,
452
+ "elapsed_seconds": 1.7855595410001115,
453
+ "finite": true,
454
+ "deterministic": true,
455
+ "active_bytes_before": 643832474,
456
+ "active_bytes_after": 643832474,
457
+ "active_growth_bytes": 0,
458
+ "peak_bytes": 1571839827
459
+ }
460
+ }
461
+ ]
462
+ }