devilyouwei commited on
Commit
e5e4742
·
verified ·
1 Parent(s): 14b353f

Publish validated experimental Vela3-fast Core AI decision graph

Browse files

Fixed 128-token, two-option choice/noul FP32 graph. Six CPU source-parity cases passed; standalone Python runs without PyTorch; native Swift CPU inference verified. Includes Python/Swift examples, pinned uv environment, evaluation records and checksums. Other upstream adapters are not included.

.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ model.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.12
LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
NOTICE ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ The Vela decision readout in converter.py adapts the mathematical forward pass in
2
+ vllm-sr/vela3-fast/vela3_encoder.py (Apache-2.0):
3
+ https://huggingface.co/vllm-sr/vela3-fast/blob/fa60e3aa41132c60bf05a84cabfdced39cb6d4f7/vela3_encoder.py
4
+
5
+ Changes: tensor inputs for marker positions and pooling, fixed-shape export,
6
+ and no upstream batching or task dispatch. The upstream license is reproduced
7
+ in licenses/vllm-sr-Apache-2.0.txt. Model weights are not included in this package.
8
+
9
+ The standalone host adapter also adapts rendering from vela3_encoder.py and ub_d3_common.py at the same upstream commit. Changes: tokenizers/NumPy input packing, explicit bounds and unsupported-task rejection, Core AI inference, and Python/Swift examples. No model training or fine-tuning.
README.md ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ license: apache-2.0
6
+ base_model: vllm-sr/vela3-fast
7
+ pipeline_tag: zero-shot-classification
8
+ tags:
9
+ - coreai
10
+ - apple-silicon
11
+ - aimodel
12
+ - experimental
13
+ - decision-model
14
+ ---
15
+
16
+ # Vela3-fast Core AI — experimental decision graph
17
+
18
+ 由 hugging-mac 从 [vllm-sr/vela3-fast](https://huggingface.co/vllm-sr/vela3-fast) 转换的 Apple Core AI 模型。
19
+ 本仓库发布的是经过验证的 **choice / noul 决策主干**:单样本、总长度最多 128 tokens、恰好两个选项。
20
+ **这是实验性子集,不是包含所有任务 adapter 的完整 Vela3-fast。**
21
+
22
+ This is an experimental, fixed-shape decision-backbone export, not a complete replacement for upstream Vela3-fast.
23
+ It runs neural inference through Core AI with host-side tokenization and response formatting. It does not generate text.
24
+
25
+ ## 支持范围 / Contract
26
+
27
+ - `choice`:两个有序选项,返回选项概率和选择结果。
28
+ - `noul`:固定 `no` / `yes` 两个选项,返回 `p(yes)`。
29
+ - 输入正文、问题、选项描述和特殊标记合计不超过 **128 tokens**;超长输入报错,不截断。
30
+ - 每次推理一个问题,batch size 为 1。Python 适配器支持文本或按上游规则序列化的 JSON 对象。
31
+ - CPU 模式已验证。自动设备模式此前因测试主机资源压力未完成验证,不宣称 GPU/ANE 性能。
32
+ - 原始 FP32 决策权重,无量化、训练或微调。
33
+ - 原模型的 router、span、relation、NER、evidence、domain/factcheck/feedback 等 adapter 不包含在此制品中;
34
+ 超过两个选项、长上下文和完整 `system_one` 路由也不受支持。未测试不代表这些能力无法转换。
35
+ - 不提供完整 `hugging_mac_sdk` 模型注册或生产验收结论。概率是给定选项间的相对值,不是校准置信度。
36
+
37
+ ## Python 基本调用
38
+
39
+ 验证环境:Apple Silicon、macOS 27.2.1、Python 3.12.13、`coreai-core==1.0.0b3`。
40
+ 需要支持 Core AI 系统运行时的 macOS。示例环境使用 uv 管理,**不需要 PyTorch、transformers 或原始 safetensors 权重**。
41
+
42
+ ```bash
43
+ uvx --from huggingface-hub hf download hugging-mac/vela3-fast-CoreAI --local-dir vela3-fast-CoreAI
44
+ cd vela3-fast-CoreAI
45
+ uv sync --locked
46
+ USE_OS_COREAI=1 uv run --locked python example.py
47
+ ```
48
+
49
+ ```python
50
+ import asyncio
51
+ from vela_coreai import VelaCoreAI
52
+
53
+ async def main():
54
+ # root 指向下载后的仓库目录;适配器显式使用已验证的 CPU 模式。
55
+ async with VelaCoreAI.open(".") as model:
56
+ result = await model.predict(
57
+ "请写一个 Python 排序函数。",
58
+ {
59
+ "type": "choice",
60
+ "instructions": "What is the topic?",
61
+ "criteria": {"coding": "Software", "cooking": "Food"},
62
+ },
63
+ )
64
+ print(result) # type, choice, probabilities
65
+
66
+ yes_no = await model.predict(
67
+ "Python code",
68
+ {"type": "noul", "instructions": "Is this about software?"},
69
+ )
70
+ print(yes_no) # {"type": "noul", "noul": p_yes}
71
+
72
+ asyncio.run(main())
73
+ ```
74
+
75
+ `predict` 执行 tokenizer、标记位置和 pooling mask 的准备,再调用 Core AI。
76
+ 同一个实例一次只接收一个推理请求;请等待前一次调用完成。未知任务、错误选项数和超长输入都会报错。
77
+
78
+ 运行独立包验证:
79
+
80
+ ```bash
81
+ USE_OS_COREAI=1 uv run --locked python smoke.py
82
+ ```
83
+
84
+ 该脚本比较六个用例与上游参考概率,校验输入张量与上游编码完全相同,验证五类无效请求拒绝行为,
85
+ 并生成 `package_smoke.json` 和用于 Swift 的 `swift_fixture.json`。
86
+
87
+ ## Swift 基本调用
88
+
89
+ 需要 Xcode 27 / macOS 27 SDK 或更新版本。本仓库的 `verify_coreai.swift` 是完整、可编译的示例,
90
+ 从 `swift_fixture.json` 加载一组预分词输入,用原生 `CoreAI` 执行,并与 Python 概率比较。
91
+ **Swift 示例演示原生模型调用,不包含 Swift tokenizer;它不是任意文本输入的完整 Swift SDK。**
92
+
93
+ ```bash
94
+ # 在模型目录中执行;如 Xcode 安装位置不同,请调整 DEVELOPER_DIR。
95
+ DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer \
96
+ xcrun swiftc -parse-as-library -target arm64-apple-macos27.0 \
97
+ verify_coreai.swift -o /tmp/verify-vela
98
+ /tmp/verify-vela "$PWD"
99
+ ```
100
+
101
+ 核心调用如下,完整张量构造见 `verify_coreai.swift`:
102
+
103
+ ```swift
104
+ import CoreAI
105
+ import Foundation
106
+
107
+ let model = try await AIModel(
108
+ contentsOf: modelDirectory.appendingPathComponent("model.aimodel"),
109
+ options: .cpuOnly
110
+ )
111
+ guard let function = try model.loadFunction(named: "main") else {
112
+ fatalError("Missing main function")
113
+ }
114
+ // inputs: [String: NDArray],按下表的 dtype、shape 和编码规则构造。
115
+ var result = try await function.run(inputs: inputs)
116
+ guard let logits = result.remove("logits")?.ndArray else {
117
+ fatalError("Missing logits")
118
+ }
119
+ // 对两个 logits 计算稳定 softmax,按输入选项顺序解释概率。
120
+ ```
121
+
122
+ 对任意新文本调用时,必须复用本仓库 `tokenizer.json`、`decision.json` 和 `vela_coreai.py` 的编码规则;
123
+ 只对正文单独分词无法构造正确输入。随包 fixture 是人工示例,不包含用户数据。
124
+
125
+ ## 张量接口
126
+
127
+ 入口:`main`,无持久 recurrent/KV 状态。右侧补齐到 128 tokens。
128
+
129
+ | 名称 | 类型 | 形状 | 含义 |
130
+ | --- | --- | --- | --- |
131
+ | `input_ids` | int32 | `[1,128]` | 完整问题/选项/正文序列 |
132
+ | `attention_mask` | int32 | `[1,128]` | 有效 token 为 1,padding 为 0 |
133
+ | `option_positions` | int32 | `[1,2]` | 两个 `[O]` 标记的位置 |
134
+ | `pool_mask` | float32 | `[1,128]` | `[SEG_user]` 到正文末尾为 1,不包括 EOS |
135
+ | `logits`(输出) | float32 | `[1,2]` | 对应两个有序选项的未归一化分数 |
136
+
137
+ 上游序列格式:
138
+
139
+ ```text
140
+ [BOS] [Q] instructions [O] key_1: description_1 [O] key_2: description_2
141
+ [SEP_SCHEMA] [SEG_user] state [EOS]
142
+ ```
143
+
144
+ ## 验证记录与限制
145
+
146
+ - 对上游原始模型的 **6/6** 文本用例,转换后决策全部一致,预期答案全部正确。
147
+ - 最大概率绝对误差约 **5.57e-7**;验证容差为 `atol=0.02, rtol=0.02`,同时要求决策一致。
148
+ - 独立 Python 包在未安装 PyTorch 的环境中通过六个用例,输入张量逐项匹配上游。
149
+ - Swift CPU 原生调用结果见 `swift_smoke.json`;Python 独立包记录见 `package_smoke.json`。
150
+ - 六个手工样例不是通用准确率基准;JSON 对象仅有编码支持,未在这组六个语义用例中单独评估。
151
+ - 未验证 iPhone/iPad、iOS AOT、自动设备模式、GPU/ANE 放置、长上下文或其他上游任务。
152
+ - 转换环境与运行环境的版本不同,分别记录在 `manifest.json` 与 `environment.json`。
153
+ 早期自动设备验证中止,后续在同一制品上完成 CPU 评测;没有把中止记录改写成成功。
154
+
155
+ 完整用例与概率:`validation_cases.json`、`evaluation.json`。
156
+ `SHA256SUMS` 覆盖发布文件;本仓库不上传原始权重副本、开发缓存或虚拟环境。
157
+
158
+ ## 来源与许可证
159
+
160
+ 上游:[vllm-sr/vela3-fast](https://huggingface.co/vllm-sr/vela3-fast/tree/fa60e3aa41132c60bf05a84cabfdced39cb6d4f7),
161
+ 固定 commit `fa60e3aa41132c60bf05a84cabfdced39cb6d4f7`,Apache-2.0。
162
+ 转换图与输入渲染改编自该版本的 `vela3_encoder.py` 和 `ub_d3_common.py`;归属与修改说明见 `NOTICE`,许可证见 `LICENSE`。
163
+ 这是 hugging-mac 的社区转换,不是 Apple 或上游团队的官方发布。
SHA256SUMS ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 7b55f8e67b5623c4bef3fa691288da9437d79d3aba156de48d481db32ac7d16d .python-version
2
+ c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
3
+ 46710ad6644d63748efc1d91895ed2f7d039ddd3e4fe9caf7351f2f7a18ae448 NOTICE
4
+ a4042e870d85b998024e11ad9a21fd5dfaf410ca517f200bd083dc2ee08cea65 README.md
5
+ 1150af4f64b7cec72e35ad2ad06db180be009d5d18ed05903c2af21f2a85ece3 decision.json
6
+ e5800b20eaa3e72a09481cd4456051800b087f7c71466859c262e0c110d3df0a environment.json
7
+ c9c5b9a7a7f214d7e2fc1f2478139b47e82bf65f000ec64483f727d49b9046bd evaluation.json
8
+ 83dd42bf29453dafe9ca9525e9f8085198dc01afee7338012643b900ed0ac57e example.py
9
+ 91668d28adb713c2241894c42e8e5115cd49949b28a2e234fb321ff36fbbe49e manifest.json
10
+ f854ff014ef231c04a22951298a0c5560c68d951123b7943a9d232b34db6bee2 model.aimodel/main.hash
11
+ e759a2108bf439ee87b10940f26d61a4078853e02f97d181d34165ae086b45ce model.aimodel/main.mlirb
12
+ e9969e2a029f38890ec12496d8e5c2d46f90b6a7554de00fd84bc40db73c884c model.aimodel/metadata.json
13
+ aef579fd2a256ae0f9aa817d6c8476379e8b9801471e67e6ac4ce685a9c01eae package_smoke.json
14
+ fe8ebeab92a5ecbca37f7fd768d480c122ceee326f5ac78f2e02cbf8c42adb85 pyproject.toml
15
+ e21d2cd9f85b33194a0aefa2e69a572a80cc3d9e0497f4f793ef7afc813ca513 smoke.py
16
+ 71f4627d7ddd18d1c4ec86361d8cdb5558b2bbf6cba458fa3a093511761be37e swift_fixture.json
17
+ a42be9e045ef3544a8a74263b7c51b198c181dd6f044c922680ff7d8cd84ab0e swift_smoke.json
18
+ 38734bb17ef19f84c67b5eb5692bea19801ffd02cb5c5ffc11429e76b0242e08 tokenizer.json
19
+ 649781df90d51837dd6ba951a89fae07c985a9eacfd781d84002d480c3cb0b6e tokenizer_config.json
20
+ 2f622f1a164e966f012193787cc8325837d96c2bd33f62f7a704606f0d0e17a9 uv.lock
21
+ a37c2903b39eef663e4f644f924dc234d483e66af7bc229cc86e4f337cd86bd5 validation_cases.json
22
+ 74444a35a0b888acf65e3ef9687577c1f1cfd664c2b071a2820408c22af5bc1f vela_coreai.py
23
+ c7364280e5c4173b277782fb403119f4485b4ea4fe441ca69b7d93bbe742491e verify_coreai.swift
decision.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 0,
3
+ "eos_token_id": 0,
4
+ "pad_token_id": 0,
5
+ "marker_ids": {
6
+ "[Q]": 49152,
7
+ "[O]": 49153,
8
+ "[ABS]": 49154,
9
+ "[SEP_SCHEMA]": 49155,
10
+ "[SEG_user]": 49156,
11
+ "[SEG_answer]": 49157,
12
+ "[E]": 49158,
13
+ "[SEG_context]": 49159
14
+ }
15
+ }
environment.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "python": "3.12.13",
3
+ "platform": "macOS-27.2.1-arm64-arm-64bit",
4
+ "pytorch_installed": false,
5
+ "packages": {
6
+ "coreai-core": "1.0.0b3",
7
+ "numpy": "2.3.5",
8
+ "tokenizers": "0.23.3"
9
+ }
10
+ }
evaluation.json ADDED
@@ -0,0 +1,282 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "vela",
3
+ "variant": "3-fast",
4
+ "scope": "diagnostic",
5
+ "status": "diagnostic-passed",
6
+ "source_revision": "fa60e3aa41132c60bf05a84cabfdced39cb6d4f7",
7
+ "versions": {
8
+ "torch": "2.14.0",
9
+ "numpy": "2.3.5",
10
+ "transformers": "5.17.0",
11
+ "safetensors": "0.8.0",
12
+ "coreai-core": "1.0.0b3",
13
+ "coreai-torch": "0.4.3"
14
+ },
15
+ "cases_sha256": "779c07609db34ddd9b11a8649937ee7db4b45a3db5c1023ffda190339ca36aac",
16
+ "evaluation_config": {
17
+ "scope": "diagnostic",
18
+ "cases": [
19
+ "cases/decisions.json"
20
+ ],
21
+ "atol": 0.02,
22
+ "rtol": 0.02,
23
+ "require_decision_agreement": true
24
+ },
25
+ "capability_coverage": {
26
+ "choice": "exercised-in-diagnostic",
27
+ "noul": "exercised-in-diagnostic",
28
+ "router_choice": "untested",
29
+ "router_set": "untested",
30
+ "span": "untested",
31
+ "relation": "untested",
32
+ "ner": "untested",
33
+ "span_sets": "untested",
34
+ "evidence": "untested",
35
+ "router_task_adapters": "untested",
36
+ "structured_state": "untested",
37
+ "multiple_questions": "untested",
38
+ "variable_sequence_length": "untested",
39
+ "variable_options": "untested",
40
+ "system_one_response": "untested",
41
+ "domain_adapter": "untested",
42
+ "factcheck_adapter": "untested",
43
+ "feedback_adapter": "untested",
44
+ "feedback_df_adapter": "untested"
45
+ },
46
+ "reference_cases": [
47
+ {
48
+ "id": "coding-en",
49
+ "capability": "choice",
50
+ "inference_ms": 95.21100000711158,
51
+ "status": "evaluated",
52
+ "probabilities": [
53
+ 0.9964854118964818,
54
+ 0.003514588103518185
55
+ ],
56
+ "decision": "coding",
57
+ "expected": "coding",
58
+ "correct": true
59
+ },
60
+ {
61
+ "id": "cooking-zh",
62
+ "capability": "choice",
63
+ "inference_ms": 132.54979200428352,
64
+ "status": "evaluated",
65
+ "probabilities": [
66
+ 0.22242194924412478,
67
+ 0.7775780507558753
68
+ ],
69
+ "decision": "cooking",
70
+ "expected": "cooking",
71
+ "correct": true
72
+ },
73
+ {
74
+ "id": "noul-positive",
75
+ "capability": "noul",
76
+ "inference_ms": 86.67745799175464,
77
+ "status": "evaluated",
78
+ "probabilities": [
79
+ 0.04283435292391378,
80
+ 0.9571656470760861
81
+ ],
82
+ "decision": "yes",
83
+ "expected": "yes",
84
+ "correct": true
85
+ },
86
+ {
87
+ "id": "noul-negative",
88
+ "capability": "noul",
89
+ "inference_ms": 92.96466699743178,
90
+ "status": "evaluated",
91
+ "probabilities": [
92
+ 0.9887530718985025,
93
+ 0.011246928101497617
94
+ ],
95
+ "decision": "no",
96
+ "expected": "no",
97
+ "correct": true
98
+ },
99
+ {
100
+ "id": "coding-zh",
101
+ "capability": "choice",
102
+ "inference_ms": 130.05970799713396,
103
+ "status": "evaluated",
104
+ "probabilities": [
105
+ 0.9965400461728955,
106
+ 0.0034599538271045662
107
+ ],
108
+ "decision": "coding",
109
+ "expected": "coding",
110
+ "correct": true
111
+ },
112
+ {
113
+ "id": "cooking-en",
114
+ "capability": "choice",
115
+ "inference_ms": 100.37370900681708,
116
+ "status": "evaluated",
117
+ "probabilities": [
118
+ 0.0008233419586070937,
119
+ 0.9991766580413929
120
+ ],
121
+ "decision": "cooking",
122
+ "expected": "cooking",
123
+ "correct": true
124
+ }
125
+ ],
126
+ "candidate": {
127
+ "runtime": "coreai",
128
+ "status": "diagnostic-passed",
129
+ "cases": [
130
+ {
131
+ "id": "coding-en",
132
+ "capability": "choice",
133
+ "reference_ms": 95.21100000711158,
134
+ "converted_ms": 5489.578958993661,
135
+ "passed": true,
136
+ "numeric_passed": true,
137
+ "decision_agreement": true,
138
+ "max_absolute_error": 2.504995120188036e-09,
139
+ "mean_absolute_error": 2.504995110213376e-09,
140
+ "reference_probabilities": [
141
+ 0.9964854118964818,
142
+ 0.003514588103518185
143
+ ],
144
+ "converted_probabilities": [
145
+ 0.9964854093914867,
146
+ 0.003514590608513305
147
+ ],
148
+ "reference_decision": "coding",
149
+ "converted_decision": "coding",
150
+ "expected": "coding",
151
+ "reference_correct": true,
152
+ "converted_correct": true,
153
+ "status": "passed"
154
+ },
155
+ {
156
+ "id": "cooking-zh",
157
+ "capability": "choice",
158
+ "reference_ms": 132.54979200428352,
159
+ "converted_ms": 242.97170800855383,
160
+ "passed": true,
161
+ "numeric_passed": true,
162
+ "decision_agreement": true,
163
+ "max_absolute_error": 5.566675266299725e-07,
164
+ "mean_absolute_error": 5.56667526602217e-07,
165
+ "reference_probabilities": [
166
+ 0.22242194924412478,
167
+ 0.7775780507558753
168
+ ],
169
+ "converted_probabilities": [
170
+ 0.22242250591165136,
171
+ 0.7775774940883486
172
+ ],
173
+ "reference_decision": "cooking",
174
+ "converted_decision": "cooking",
175
+ "expected": "cooking",
176
+ "reference_correct": true,
177
+ "converted_correct": true,
178
+ "status": "passed"
179
+ },
180
+ {
181
+ "id": "noul-positive",
182
+ "capability": "noul",
183
+ "reference_ms": 86.67745799175464,
184
+ "converted_ms": 200.55320800747722,
185
+ "passed": true,
186
+ "numeric_passed": true,
187
+ "decision_agreement": true,
188
+ "max_absolute_error": 7.820040781592041e-08,
189
+ "mean_absolute_error": 7.820040778469539e-08,
190
+ "reference_probabilities": [
191
+ 0.04283435292391378,
192
+ 0.9571656470760861
193
+ ],
194
+ "converted_probabilities": [
195
+ 0.042834274723506024,
196
+ 0.9571657252764939
197
+ ],
198
+ "reference_decision": "yes",
199
+ "converted_decision": "yes",
200
+ "expected": "yes",
201
+ "reference_correct": true,
202
+ "converted_correct": true,
203
+ "status": "passed"
204
+ },
205
+ {
206
+ "id": "noul-negative",
207
+ "capability": "noul",
208
+ "reference_ms": 92.96466699743178,
209
+ "converted_ms": 199.48370799829718,
210
+ "passed": true,
211
+ "numeric_passed": true,
212
+ "decision_agreement": true,
213
+ "max_absolute_error": 1.0605268028346382e-08,
214
+ "mean_absolute_error": 1.060526795722272e-08,
215
+ "reference_probabilities": [
216
+ 0.9887530718985025,
217
+ 0.011246928101497617
218
+ ],
219
+ "converted_probabilities": [
220
+ 0.9887530825037704,
221
+ 0.011246917496229589
222
+ ],
223
+ "reference_decision": "no",
224
+ "converted_decision": "no",
225
+ "expected": "no",
226
+ "reference_correct": true,
227
+ "converted_correct": true,
228
+ "status": "passed"
229
+ },
230
+ {
231
+ "id": "coding-zh",
232
+ "capability": "choice",
233
+ "reference_ms": 130.05970799713396,
234
+ "converted_ms": 190.3682919946732,
235
+ "passed": true,
236
+ "numeric_passed": true,
237
+ "decision_agreement": true,
238
+ "max_absolute_error": 1.1097869623277745e-08,
239
+ "mean_absolute_error": 1.1097869601593702e-08,
240
+ "reference_probabilities": [
241
+ 0.9965400461728955,
242
+ 0.0034599538271045662
243
+ ],
244
+ "converted_probabilities": [
245
+ 0.9965400350750259,
246
+ 0.003459964924974146
247
+ ],
248
+ "reference_decision": "coding",
249
+ "converted_decision": "coding",
250
+ "expected": "coding",
251
+ "reference_correct": true,
252
+ "converted_correct": true,
253
+ "status": "passed"
254
+ },
255
+ {
256
+ "id": "cooking-en",
257
+ "capability": "choice",
258
+ "reference_ms": 100.37370900681708,
259
+ "converted_ms": 196.19354100723285,
260
+ "passed": true,
261
+ "numeric_passed": true,
262
+ "decision_agreement": true,
263
+ "max_absolute_error": 1.3729699288285782e-09,
264
+ "mean_absolute_error": 1.3729698888757282e-09,
265
+ "reference_probabilities": [
266
+ 0.0008233419586070937,
267
+ 0.9991766580413929
268
+ ],
269
+ "converted_probabilities": [
270
+ 0.0008233433315770225,
271
+ 0.999176656668423
272
+ ],
273
+ "reference_decision": "cooking",
274
+ "converted_decision": "cooking",
275
+ "expected": "cooking",
276
+ "reference_correct": true,
277
+ "converted_correct": true,
278
+ "status": "passed"
279
+ }
280
+ ]
281
+ }
282
+ }
example.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import asyncio
2
+ import json
3
+ from pathlib import Path
4
+
5
+ from vela_coreai import VelaCoreAI # type: ignore[import-not-found]
6
+
7
+
8
+ async def main() -> None:
9
+ async with VelaCoreAI.open(Path(__file__).parent) as model:
10
+ result = await model.predict(
11
+ "请写一个 Python 排序函数。",
12
+ {
13
+ "type": "choice",
14
+ "instructions": "What is the topic?",
15
+ "criteria": {"coding": "Software", "cooking": "Food"},
16
+ },
17
+ )
18
+ print(json.dumps(result, ensure_ascii=False, indent=2))
19
+ print(
20
+ await model.predict(
21
+ "Python code",
22
+ {
23
+ "type": "noul",
24
+ "instructions": "Is this about software?",
25
+ },
26
+ )
27
+ )
28
+
29
+
30
+ if __name__ == "__main__":
31
+ asyncio.run(main())
manifest.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "repository": "hugging-mac/vela3-fast-CoreAI",
3
+ "source": "vllm-sr/vela3-fast",
4
+ "source_revision": "fa60e3aa41132c60bf05a84cabfdced39cb6d4f7",
5
+ "experimental": true,
6
+ "complete_upstream_model": false,
7
+ "sdk_integrated": false,
8
+ "artifact_scope": "two-option-decision-only",
9
+ "format": "Core AI .aimodel",
10
+ "function": "main",
11
+ "output": "logits",
12
+ "sequence_length": 128,
13
+ "batch_size": 1,
14
+ "option_count": 2,
15
+ "tested_device": "cpu",
16
+ "inputs": {
17
+ "input_ids": {
18
+ "dtype": "int32",
19
+ "shape": [
20
+ 1,
21
+ 128
22
+ ]
23
+ },
24
+ "attention_mask": {
25
+ "dtype": "int32",
26
+ "shape": [
27
+ 1,
28
+ 128
29
+ ]
30
+ },
31
+ "option_positions": {
32
+ "dtype": "int32",
33
+ "shape": [
34
+ 1,
35
+ 2
36
+ ]
37
+ },
38
+ "pool_mask": {
39
+ "dtype": "float32",
40
+ "shape": [
41
+ 1,
42
+ 128
43
+ ]
44
+ }
45
+ },
46
+ "source_weights_sha256": "2294745881d9a01b7d049133b57e5fed2aec6ae1d34ef1ab9fa16f047fc35c8e",
47
+ "artifact_files_sha256": {
48
+ "model.aimodel/main.hash": "f854ff014ef231c04a22951298a0c5560c68d951123b7943a9d232b34db6bee2",
49
+ "model.aimodel/main.mlirb": "e759a2108bf439ee87b10940f26d61a4078853e02f97d181d34165ae086b45ce",
50
+ "model.aimodel/metadata.json": "e9969e2a029f38890ec12496d8e5c2d46f90b6a7554de00fd84bc40db73c884c"
51
+ },
52
+ "export_versions": {
53
+ "torch": "2.13.0",
54
+ "huggingface-hub": "1.33.0",
55
+ "transformers": "5.17.0",
56
+ "safetensors": "0.8.0",
57
+ "coreai-torch": "0.4.2",
58
+ "coreai-core": "1.0.0b2"
59
+ },
60
+ "evaluation_versions": {
61
+ "torch": "2.14.0",
62
+ "numpy": "2.3.5",
63
+ "transformers": "5.17.0",
64
+ "safetensors": "0.8.0",
65
+ "coreai-core": "1.0.0b3",
66
+ "coreai-torch": "0.4.3"
67
+ },
68
+ "upstream_capability_coverage": {
69
+ "choice": "exercised-in-diagnostic",
70
+ "noul": "exercised-in-diagnostic",
71
+ "router_choice": "untested",
72
+ "router_set": "untested",
73
+ "span": "untested",
74
+ "relation": "untested",
75
+ "ner": "untested",
76
+ "span_sets": "untested",
77
+ "evidence": "untested",
78
+ "router_task_adapters": "untested",
79
+ "structured_state": "untested",
80
+ "multiple_questions": "untested",
81
+ "variable_sequence_length": "untested",
82
+ "variable_options": "untested",
83
+ "system_one_response": "untested",
84
+ "domain_adapter": "untested",
85
+ "factcheck_adapter": "untested",
86
+ "feedback_adapter": "untested",
87
+ "feedback_df_adapter": "untested"
88
+ },
89
+ "initial_build_validation": "Auto-device validation interrupted by resource limits; the same artifact subsequently passed CPU task evaluation."
90
+ }
model.aimodel/main.hash ADDED
@@ -0,0 +1 @@
 
 
1
+ �Y���9 @�ma��S�/�с�Ae�kE�
model.aimodel/main.mlirb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e759a2108bf439ee87b10940f26d61a4078853e02f97d181d34165ae086b45ce
3
+ size 1522413878
model.aimodel/metadata.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "assetVersion" : "2.0",
3
+ "creationDate" : "20261116T131125Z",
4
+ "producer" : "coreai-core 1.0.0b2"
5
+ }
package_smoke.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "status": "passed",
3
+ "scope": "experimental two-option decision graph",
4
+ "device": "cpu",
5
+ "cases": [
6
+ {
7
+ "id": "coding-en",
8
+ "decision": "coding",
9
+ "max_probability_error": 2.504995120188036e-09,
10
+ "probabilities": {
11
+ "coding": 0.9964854093914867,
12
+ "cooking": 0.003514590608513305
13
+ }
14
+ },
15
+ {
16
+ "id": "cooking-zh",
17
+ "decision": "cooking",
18
+ "max_probability_error": 5.566675266299725e-07,
19
+ "probabilities": {
20
+ "coding": 0.22242250591165136,
21
+ "cooking": 0.7775774940883486
22
+ }
23
+ },
24
+ {
25
+ "id": "noul-positive",
26
+ "decision": "yes",
27
+ "max_probability_error": 7.820040781592041e-08,
28
+ "probabilities": {
29
+ "no": 0.042834274723506024,
30
+ "yes": 0.9571657252764939
31
+ }
32
+ },
33
+ {
34
+ "id": "noul-negative",
35
+ "decision": "no",
36
+ "max_probability_error": 1.0605268028346382e-08,
37
+ "probabilities": {
38
+ "no": 0.9887530825037704,
39
+ "yes": 0.011246917496229589
40
+ }
41
+ },
42
+ {
43
+ "id": "coding-zh",
44
+ "decision": "coding",
45
+ "max_probability_error": 1.1097869623277745e-08,
46
+ "probabilities": {
47
+ "coding": 0.9965400350750259,
48
+ "cooking": 0.003459964924974146
49
+ }
50
+ },
51
+ {
52
+ "id": "cooking-en",
53
+ "decision": "cooking",
54
+ "max_probability_error": 1.3729699288285782e-09,
55
+ "probabilities": {
56
+ "coding": 0.0008233433315770225,
57
+ "cooking": 0.999176656668423
58
+ }
59
+ }
60
+ ],
61
+ "invalid_requests_rejected": 5,
62
+ "pytorch_imported": false,
63
+ "requires_original_weights": false
64
+ }
pyproject.toml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "vela3-fast-coreai-example"
3
+ version = "0.1.0"
4
+ description = "Experimental two-option Vela3-fast Core AI runtime examples"
5
+ requires-python = ">=3.12,<3.14"
6
+ dependencies = [
7
+ "coreai-core==1.0.0b3",
8
+ "numpy==2.3.5",
9
+ "tokenizers==0.23.3",
10
+ ]
11
+
12
+ [tool.uv]
13
+ package = false
14
+
15
+ [tool.uv.workspace]
16
+ members = []
smoke.py ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Run package-only inference and compare with pinned upstream reference probabilities."""
2
+
3
+ import asyncio
4
+ import json
5
+ import sys
6
+ from pathlib import Path
7
+
8
+ import numpy as np
9
+ from vela_coreai import VelaCoreAI # type: ignore[import-not-found]
10
+
11
+
12
+ async def main() -> None:
13
+ root = Path(__file__).parent
14
+ cases = json.loads((root / "validation_cases.json").read_text())
15
+ rows = []
16
+ async with VelaCoreAI.open(root) as model:
17
+ for case in cases:
18
+ arrays, labels = model.pack(case["payload"]["state"], case["payload"]["question"])
19
+ for name, expected in case["inputs"].items():
20
+ np.testing.assert_array_equal(arrays[name].ravel(), expected)
21
+ probabilities = await model.probabilities(
22
+ case["payload"]["state"], case["payload"]["question"]
23
+ )
24
+ values = np.array([probabilities[label] for label in labels])
25
+ reference = np.array(case["reference_probabilities"])
26
+ np.testing.assert_allclose(values, reference, atol=0.02, rtol=0.02)
27
+ decision = max(probabilities, key=probabilities.__getitem__)
28
+ assert decision == case["reference_decision"] == case["expected"]
29
+ rows.append(
30
+ {
31
+ "id": case["id"],
32
+ "decision": decision,
33
+ "max_probability_error": float(np.max(np.abs(values - reference))),
34
+ "probabilities": probabilities,
35
+ }
36
+ )
37
+ first = cases[0]
38
+ arrays, labels = model.pack(first["payload"]["state"], first["payload"]["question"])
39
+ expected = await model.probabilities(
40
+ first["payload"]["state"], first["payload"]["question"]
41
+ )
42
+ fixture = {name: value.ravel().tolist() for name, value in arrays.items()}
43
+ fixture.update(
44
+ expected=[expected[label] for label in labels], labels=labels, output="logits"
45
+ )
46
+ (root / "swift_fixture.json").write_text(json.dumps(fixture, indent=2) + "\n")
47
+ rejected = 0
48
+ for state, question in [
49
+ ("text", {"type": "span"}),
50
+ ("text", {"type": "choice", "criteria": {"a": "a", "b": "b", "c": "c"}}),
51
+ ("text", {"type": "choice", "criteria": {"a": "a"}}),
52
+ ("word " * 500, first["payload"]["question"]),
53
+ (["image"], first["payload"]["question"]),
54
+ ]:
55
+ try:
56
+ model.pack(state, question)
57
+ except ValueError:
58
+ rejected += 1
59
+ assert rejected == 5
60
+ # Host adapter must preserve the public choice/noul response shape.
61
+ answer = await model.predict(first["payload"]["state"], first["payload"]["question"])
62
+ assert answer["type"] == "choice" and answer["choice"] == first["expected"]
63
+ noul = cases[2]
64
+ answer = await model.predict(noul["payload"]["state"], noul["payload"]["question"])
65
+ assert answer["type"] == "noul" and 0 <= answer["noul"] <= 1
66
+ assert "torch" not in sys.modules
67
+ report = {
68
+ "status": "passed",
69
+ "scope": "experimental two-option decision graph",
70
+ "device": "cpu",
71
+ "cases": rows,
72
+ "invalid_requests_rejected": rejected,
73
+ "pytorch_imported": False,
74
+ "requires_original_weights": False,
75
+ }
76
+ (root / "package_smoke.json").write_text(json.dumps(report, indent=2) + "\n")
77
+ print(json.dumps(report, indent=2))
78
+
79
+
80
+ if __name__ == "__main__":
81
+ asyncio.run(main())
swift_fixture.json ADDED
@@ -0,0 +1,405 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "input_ids": [
3
+ 0,
4
+ 49152,
5
+ 1780,
6
+ 314,
7
+ 260,
8
+ 4234,
9
+ 47,
10
+ 49153,
11
+ 32306,
12
+ 42,
13
+ 12316,
14
+ 49153,
15
+ 83,
16
+ 2088,
17
+ 42,
18
+ 5098,
19
+ 49155,
20
+ 49156,
21
+ 19161,
22
+ 253,
23
+ 5905,
24
+ 1517,
25
+ 30,
26
+ 0,
27
+ 0,
28
+ 0,
29
+ 0,
30
+ 0,
31
+ 0,
32
+ 0,
33
+ 0,
34
+ 0,
35
+ 0,
36
+ 0,
37
+ 0,
38
+ 0,
39
+ 0,
40
+ 0,
41
+ 0,
42
+ 0,
43
+ 0,
44
+ 0,
45
+ 0,
46
+ 0,
47
+ 0,
48
+ 0,
49
+ 0,
50
+ 0,
51
+ 0,
52
+ 0,
53
+ 0,
54
+ 0,
55
+ 0,
56
+ 0,
57
+ 0,
58
+ 0,
59
+ 0,
60
+ 0,
61
+ 0,
62
+ 0,
63
+ 0,
64
+ 0,
65
+ 0,
66
+ 0,
67
+ 0,
68
+ 0,
69
+ 0,
70
+ 0,
71
+ 0,
72
+ 0,
73
+ 0,
74
+ 0,
75
+ 0,
76
+ 0,
77
+ 0,
78
+ 0,
79
+ 0,
80
+ 0,
81
+ 0,
82
+ 0,
83
+ 0,
84
+ 0,
85
+ 0,
86
+ 0,
87
+ 0,
88
+ 0,
89
+ 0,
90
+ 0,
91
+ 0,
92
+ 0,
93
+ 0,
94
+ 0,
95
+ 0,
96
+ 0,
97
+ 0,
98
+ 0,
99
+ 0,
100
+ 0,
101
+ 0,
102
+ 0,
103
+ 0,
104
+ 0,
105
+ 0,
106
+ 0,
107
+ 0,
108
+ 0,
109
+ 0,
110
+ 0,
111
+ 0,
112
+ 0,
113
+ 0,
114
+ 0,
115
+ 0,
116
+ 0,
117
+ 0,
118
+ 0,
119
+ 0,
120
+ 0,
121
+ 0,
122
+ 0,
123
+ 0,
124
+ 0,
125
+ 0,
126
+ 0,
127
+ 0,
128
+ 0,
129
+ 0,
130
+ 0
131
+ ],
132
+ "attention_mask": [
133
+ 1,
134
+ 1,
135
+ 1,
136
+ 1,
137
+ 1,
138
+ 1,
139
+ 1,
140
+ 1,
141
+ 1,
142
+ 1,
143
+ 1,
144
+ 1,
145
+ 1,
146
+ 1,
147
+ 1,
148
+ 1,
149
+ 1,
150
+ 1,
151
+ 1,
152
+ 1,
153
+ 1,
154
+ 1,
155
+ 1,
156
+ 1,
157
+ 0,
158
+ 0,
159
+ 0,
160
+ 0,
161
+ 0,
162
+ 0,
163
+ 0,
164
+ 0,
165
+ 0,
166
+ 0,
167
+ 0,
168
+ 0,
169
+ 0,
170
+ 0,
171
+ 0,
172
+ 0,
173
+ 0,
174
+ 0,
175
+ 0,
176
+ 0,
177
+ 0,
178
+ 0,
179
+ 0,
180
+ 0,
181
+ 0,
182
+ 0,
183
+ 0,
184
+ 0,
185
+ 0,
186
+ 0,
187
+ 0,
188
+ 0,
189
+ 0,
190
+ 0,
191
+ 0,
192
+ 0,
193
+ 0,
194
+ 0,
195
+ 0,
196
+ 0,
197
+ 0,
198
+ 0,
199
+ 0,
200
+ 0,
201
+ 0,
202
+ 0,
203
+ 0,
204
+ 0,
205
+ 0,
206
+ 0,
207
+ 0,
208
+ 0,
209
+ 0,
210
+ 0,
211
+ 0,
212
+ 0,
213
+ 0,
214
+ 0,
215
+ 0,
216
+ 0,
217
+ 0,
218
+ 0,
219
+ 0,
220
+ 0,
221
+ 0,
222
+ 0,
223
+ 0,
224
+ 0,
225
+ 0,
226
+ 0,
227
+ 0,
228
+ 0,
229
+ 0,
230
+ 0,
231
+ 0,
232
+ 0,
233
+ 0,
234
+ 0,
235
+ 0,
236
+ 0,
237
+ 0,
238
+ 0,
239
+ 0,
240
+ 0,
241
+ 0,
242
+ 0,
243
+ 0,
244
+ 0,
245
+ 0,
246
+ 0,
247
+ 0,
248
+ 0,
249
+ 0,
250
+ 0,
251
+ 0,
252
+ 0,
253
+ 0,
254
+ 0,
255
+ 0,
256
+ 0,
257
+ 0,
258
+ 0,
259
+ 0,
260
+ 0
261
+ ],
262
+ "option_positions": [
263
+ 7,
264
+ 11
265
+ ],
266
+ "pool_mask": [
267
+ 0.0,
268
+ 0.0,
269
+ 0.0,
270
+ 0.0,
271
+ 0.0,
272
+ 0.0,
273
+ 0.0,
274
+ 0.0,
275
+ 0.0,
276
+ 0.0,
277
+ 0.0,
278
+ 0.0,
279
+ 0.0,
280
+ 0.0,
281
+ 0.0,
282
+ 0.0,
283
+ 0.0,
284
+ 1.0,
285
+ 1.0,
286
+ 1.0,
287
+ 1.0,
288
+ 1.0,
289
+ 1.0,
290
+ 0.0,
291
+ 0.0,
292
+ 0.0,
293
+ 0.0,
294
+ 0.0,
295
+ 0.0,
296
+ 0.0,
297
+ 0.0,
298
+ 0.0,
299
+ 0.0,
300
+ 0.0,
301
+ 0.0,
302
+ 0.0,
303
+ 0.0,
304
+ 0.0,
305
+ 0.0,
306
+ 0.0,
307
+ 0.0,
308
+ 0.0,
309
+ 0.0,
310
+ 0.0,
311
+ 0.0,
312
+ 0.0,
313
+ 0.0,
314
+ 0.0,
315
+ 0.0,
316
+ 0.0,
317
+ 0.0,
318
+ 0.0,
319
+ 0.0,
320
+ 0.0,
321
+ 0.0,
322
+ 0.0,
323
+ 0.0,
324
+ 0.0,
325
+ 0.0,
326
+ 0.0,
327
+ 0.0,
328
+ 0.0,
329
+ 0.0,
330
+ 0.0,
331
+ 0.0,
332
+ 0.0,
333
+ 0.0,
334
+ 0.0,
335
+ 0.0,
336
+ 0.0,
337
+ 0.0,
338
+ 0.0,
339
+ 0.0,
340
+ 0.0,
341
+ 0.0,
342
+ 0.0,
343
+ 0.0,
344
+ 0.0,
345
+ 0.0,
346
+ 0.0,
347
+ 0.0,
348
+ 0.0,
349
+ 0.0,
350
+ 0.0,
351
+ 0.0,
352
+ 0.0,
353
+ 0.0,
354
+ 0.0,
355
+ 0.0,
356
+ 0.0,
357
+ 0.0,
358
+ 0.0,
359
+ 0.0,
360
+ 0.0,
361
+ 0.0,
362
+ 0.0,
363
+ 0.0,
364
+ 0.0,
365
+ 0.0,
366
+ 0.0,
367
+ 0.0,
368
+ 0.0,
369
+ 0.0,
370
+ 0.0,
371
+ 0.0,
372
+ 0.0,
373
+ 0.0,
374
+ 0.0,
375
+ 0.0,
376
+ 0.0,
377
+ 0.0,
378
+ 0.0,
379
+ 0.0,
380
+ 0.0,
381
+ 0.0,
382
+ 0.0,
383
+ 0.0,
384
+ 0.0,
385
+ 0.0,
386
+ 0.0,
387
+ 0.0,
388
+ 0.0,
389
+ 0.0,
390
+ 0.0,
391
+ 0.0,
392
+ 0.0,
393
+ 0.0,
394
+ 0.0
395
+ ],
396
+ "expected": [
397
+ 0.9964854093914867,
398
+ 0.003514590608513305
399
+ ],
400
+ "labels": [
401
+ "coding",
402
+ "cooking"
403
+ ],
404
+ "output": "logits"
405
+ }
swift_smoke.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "device" : "cpuOnly",
3
+ "labels" : [
4
+ "coding",
5
+ "cooking"
6
+ ],
7
+ "maximum_probability_error_vs_python" : 5.9604644775390625e-08,
8
+ "probabilities" : [
9
+ 0.99648535251617432,
10
+ 0.0035145911388099194
11
+ ],
12
+ "swift_native_coreai" : true
13
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|endoftext|>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|endoftext|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|endoftext|>",
10
+ "<|im_start|>",
11
+ "<|im_end|>",
12
+ "<repo_name>",
13
+ "<reponame>",
14
+ "<file_sep>",
15
+ "<filename>",
16
+ "<gh_stars>",
17
+ "<issue_start>",
18
+ "<issue_comment>",
19
+ "<issue_closed>",
20
+ "<jupyter_start>",
21
+ "<jupyter_text>",
22
+ "<jupyter_code>",
23
+ "<jupyter_output>",
24
+ "<|sep|>",
25
+ "<|mask|>"
26
+ ],
27
+ "mask_token": "<|mask|>",
28
+ "model_max_length": 32768,
29
+ "pad_token": "<|endoftext|>",
30
+ "sep_token": "<|sep|>",
31
+ "tokenizer_class": "GPT2Tokenizer",
32
+ "unk_token": "<|endoftext|>",
33
+ "vocab_size": 49152
34
+ }
uv.lock ADDED
@@ -0,0 +1,409 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version = 1
2
+ revision = 3
3
+ requires-python = ">=3.12, <3.14"
4
+ resolution-markers = [
5
+ "python_full_version >= '3.13'",
6
+ "python_full_version < '3.13'",
7
+ ]
8
+
9
+ [[package]]
10
+ name = "anyio"
11
+ version = "4.16.0"
12
+ source = { registry = "https://pypi.org/simple" }
13
+ dependencies = [
14
+ { name = "idna" },
15
+ { name = "typing-extensions" },
16
+ ]
17
+ sdist = { url = "https://files.pythonhosted.org/packages/a1/98/7e457a3b014976887a050561955c0b76e1e7e2d6e27b78ecef2ef80518f2/anyio-4.16.0.tar.gz", hash = "sha256:59bb03251907983d1603d27c3087ddb1e93299ea2163adcdba37899a4fb12ffb", size = 310971, upload-time = "2026-11-01T11:20:07.282Z" }
18
+ wheels = [
19
+ { url = "https://files.pythonhosted.org/packages/a9/16/7757fb84c819accc7d7e9af5291b261e4abb8627ee040f99e7d35ef2457a/anyio-4.16.0-py3-none-any.whl", hash = "sha256:c66ae634e0b8228396b801741beb3294326d4b6102f7bba4041c0dfb58c29026", size = 134521, upload-time = "2026-11-01T11:20:05.59Z" },
20
+ ]
21
+
22
+ [[package]]
23
+ name = "click"
24
+ version = "8.5.1"
25
+ source = { registry = "https://pypi.org/simple" }
26
+ sdist = { url = "https://files.pythonhosted.org/packages/45/37/edbf1b0707709013c0cf2e8317e03d97ed29bf4cac709fe328904ae92a38/click-8.5.1.tar.gz", hash = "sha256:9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4", size = 399151, upload-time = "2026-11-06T17:37:01.021Z" }
27
+ wheels = [
28
+ { url = "https://files.pythonhosted.org/packages/31/7d/164b7ffc8624fe9efb4221bf9af485d5c1e41b9ae118045d2b6dc5457d8b/click-8.5.1-py3-none-any.whl", hash = "sha256:8bb5376d2006950386f8c6427613334a2acadc5f559cb80e638d00b4df957e37", size = 126163, upload-time = "2026-11-06T17:36:59.287Z" },
29
+ ]
30
+
31
+ [[package]]
32
+ name = "colorama"
33
+ version = "0.4.6"
34
+ source = { registry = "https://pypi.org/simple" }
35
+ sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
36
+ wheels = [
37
+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
38
+ ]
39
+
40
+ [[package]]
41
+ name = "coreai-core"
42
+ version = "1.0.0b3"
43
+ source = { registry = "https://pypi.org/simple" }
44
+ dependencies = [
45
+ { name = "ml-dtypes" },
46
+ { name = "numpy" },
47
+ { name = "pillow" },
48
+ { name = "typing-extensions" },
49
+ { name = "yuvio" },
50
+ ]
51
+ wheels = [
52
+ { url = "https://files.pythonhosted.org/packages/40/af/4a807a56030a2fe3cf18a83dae6a5871fcb89f9831e1e9e32b0ac30832db/coreai_core-1.0.0b3-cp312-cp312-macosx_26_0_arm64.whl", hash = "sha256:8db70074eb049b0a86bd263e137ea173f3298f7f1b60ec1a7f7c592f4c26c4a9", size = 21371930, upload-time = "2026-09-24T16:36:34.598Z" },
53
+ { url = "https://files.pythonhosted.org/packages/68/bd/8a1c8db35cadca6e9dfd9053928f1c747ab782e1ddebcee94e7de47dd798/coreai_core-1.0.0b3-cp312-cp312-manylinux_2_34_x86_64.whl", hash = "sha256:1796f9b619abba780e611ecaacf23c5a70884bd70f5dded9bab08681f22e9723", size = 63324914, upload-time = "2026-09-24T16:36:55.969Z" },
54
+ { url = "https://files.pythonhosted.org/packages/dc/8d/41e1dbb88af80c2171164ef3a762321c0efb6970677a3c0e26a0e98e0cab/coreai_core-1.0.0b3-cp313-cp313-macosx_26_0_arm64.whl", hash = "sha256:e9a11d353fadc81a2ce2fd64a487bd13c67979812a7722b81b40745bee1fcfad", size = 21371414, upload-time = "2026-09-24T16:37:05.977Z" },
55
+ { url = "https://files.pythonhosted.org/packages/4c/78/45f4ba723257caedd54002adff67f6c9663c08fc6458effafdc902da7923/coreai_core-1.0.0b3-cp313-cp313-manylinux_2_34_x86_64.whl", hash = "sha256:d7756fbcefcb04125fec8061e59ff4edf1cf6fdc6511ece6405ad3f15b387bf8", size = 63326574, upload-time = "2026-09-24T16:37:30.562Z" },
56
+ ]
57
+
58
+ [[package]]
59
+ name = "filelock"
60
+ version = "4.2.10"
61
+ source = { registry = "https://pypi.org/simple" }
62
+ sdist = { url = "https://files.pythonhosted.org/packages/a1/cf/05bcdacabdc0aec7dc8e19d76281bd82325df62dae3b6430e9ba57397689/filelock-4.2.10.tar.gz", hash = "sha256:fcc3c0cb8bfe7f4b3bb0e231c04b15dbad068cb3c2515f343d8fde4dce93bd5d", size = 670595, upload-time = "2026-11-09T18:58:00.54Z" }
63
+ wheels = [
64
+ { url = "https://files.pythonhosted.org/packages/ef/90/5d0096a325aa0f83ba7a3968bfb485b67e32c947bdf9cd0fcb4b485be718/filelock-4.2.10-py3-none-any.whl", hash = "sha256:9479aaeb4db20b5a53e3da28493edd24720b66b8a0b84030aa56ccdf243d6857", size = 218040, upload-time = "2026-11-09T18:57:59.088Z" },
65
+ ]
66
+
67
+ [[package]]
68
+ name = "fsspec"
69
+ version = "2026.9.0"
70
+ source = { registry = "https://pypi.org/simple" }
71
+ sdist = { url = "https://files.pythonhosted.org/packages/77/cd/9be253869fc42e764de7f3dedd6969af7d44ff9c3375214a3442a6f3fc08/fsspec-2026.9.0.tar.gz", hash = "sha256:0f08147951c8cb31d844c3547d631053b127863b60be04cf06e121333ee0e2fe", size = 333545, upload-time = "2026-09-18T17:50:42.825Z" }
72
+ wheels = [
73
+ { url = "https://files.pythonhosted.org/packages/6c/c0/a98505f18594f1bce828bb159cec0fcf9860562f1a2c85913409fc8f3d9e/fsspec-2026.9.0-py3-none-any.whl", hash = "sha256:8dd6e646e99ea382bd85f97a45e6b526a442d79423a7dc673f1e2756d05fcb5f", size = 221738, upload-time = "2026-09-18T17:50:41.341Z" },
74
+ ]
75
+
76
+ [[package]]
77
+ name = "h11"
78
+ version = "0.16.0"
79
+ source = { registry = "https://pypi.org/simple" }
80
+ sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" }
81
+ wheels = [
82
+ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },
83
+ ]
84
+
85
+ [[package]]
86
+ name = "hf-xet"
87
+ version = "1.8.0"
88
+ source = { registry = "https://pypi.org/simple" }
89
+ sdist = { url = "https://files.pythonhosted.org/packages/2f/18/d91c20f815df6cc496a5d0ad8db6d274dad5c0cfcd59babfa2440a9aba44/hf_xet-1.8.0.tar.gz", hash = "sha256:10ed23b51dacf7917d64f335c25048deb470efa755e9989b218fc0531386138e", size = 1013014, upload-time = "2026-10-30T10:04:33.741Z" }
90
+ wheels = [
91
+ { url = "https://files.pythonhosted.org/packages/97/74/d89d5235524bc14d8519e12ca8bc5204f45009ae83d63a410f52c29eb4a8/hf_xet-1.8.0-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:e00d8f60170cd3dd55d98306e41dbaf28b27ff1bcfefbfa84279d197221be83e", size = 3875002, upload-time = "2026-10-30T10:04:18.958Z" },
92
+ { url = "https://files.pythonhosted.org/packages/d4/f2/ef25e2085e92dcaeaa675331e443923aed2006f6fe2d984e15d8b8d40766/hf_xet-1.8.0-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:3e8934784425781f0f779b91044df441f3a7af4dab47375d7e3aeaecbb8eecb4", size = 3600947, upload-time = "2026-10-30T10:04:20.906Z" },
93
+ { url = "https://files.pythonhosted.org/packages/f8/1e/1e8ecc05ef034e9a95c18ed32d2ec07905a7cd2ca611a9d88e25ee1f4850/hf_xet-1.8.0-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:29dab7c904cd1914a0439c6e1306c12c7497c8bd32290fbe563ebf51ca4b6d6d", size = 4292483, upload-time = "2026-10-30T10:04:22.875Z" },
94
+ { url = "https://files.pythonhosted.org/packages/35/c4/127a1548df019ea4c80f06e685f263e146075143335a02e78a3c41dbc4eb/hf_xet-1.8.0-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:8800e3444770f2c630b361bc6d5c6ebb770b7830646cf632fbb79d0e5bbc9e7f", size = 4069340, upload-time = "2026-10-30T10:04:24.664Z" },
95
+ { url = "https://files.pythonhosted.org/packages/a5/d5/281cd82736c3e181e597588589d2204d3a5c388a464d4a2a8c546995bae9/hf_xet-1.8.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:a584a7b3268da62f23c3187cc7201ca01f7b610985a36b1b6119c66bccb0383c", size = 4272344, upload-time = "2026-10-30T10:04:26.519Z" },
96
+ { url = "https://files.pythonhosted.org/packages/48/77/886f09e91a5eadb054ce03b8855323cd2a72f20db76ab4119e0ecda65eef/hf_xet-1.8.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:1ebaf248c9bef8bb0c9d1d8d71db1fdf0cac14f922cc7a936a81adbf12eb5f01", size = 4500689, upload-time = "2026-10-30T10:04:28.394Z" },
97
+ { url = "https://files.pythonhosted.org/packages/97/4d/2c76a992b370ff77d0b5219275779f8c9a7dabb8ee649deb265dfed84d0f/hf_xet-1.8.0-cp38-abi3-win_amd64.whl", hash = "sha256:92188598dedc1e1f5609bd718d4db8687a6c89915553912571e2f587892eecec", size = 3911559, upload-time = "2026-10-30T10:04:30.165Z" },
98
+ { url = "https://files.pythonhosted.org/packages/87/91/fdb1454a43eff8011047d176ada2f0fb4926cf3d74b87357ff35793f6d98/hf_xet-1.8.0-cp38-abi3-win_arm64.whl", hash = "sha256:42b66fdc688eaa4ff3eb77dc9275e5a0f1258ecc9fdd083ddaf43bb49bec925b", size = 3738458, upload-time = "2026-10-30T10:04:31.882Z" },
99
+ ]
100
+
101
+ [[package]]
102
+ name = "httpcore2"
103
+ version = "2.16.2"
104
+ source = { registry = "https://pypi.org/simple" }
105
+ dependencies = [
106
+ { name = "h11" },
107
+ { name = "truststore" },
108
+ ]
109
+ sdist = { url = "https://files.pythonhosted.org/packages/92/9d/df40b41f7db0370f82019820709244e7b660c52aa3da3c9e5c4e8141f6e6/httpcore2-2.16.2.tar.gz", hash = "sha256:6c519d0f7b44f7269fa9bbb4d2763db395a4a2370f046d8e8e0a4b38227815d2", size = 70064, upload-time = "2026-11-16T10:12:19.491Z" }
110
+ wheels = [
111
+ { url = "https://files.pythonhosted.org/packages/2a/e8/009c347feac27f8960605aa98d55ed263b5870dd4fd80b82fd1d00d5716c/httpcore2-2.16.2-py3-none-any.whl", hash = "sha256:16051ae2a42f776007543f32de9349a317b23d2cbb4e1456b4bac0e88b87419a", size = 85551, upload-time = "2026-11-16T10:12:16.674Z" },
112
+ ]
113
+
114
+ [[package]]
115
+ name = "httpx2"
116
+ version = "2.16.2"
117
+ source = { registry = "https://pypi.org/simple" }
118
+ dependencies = [
119
+ { name = "anyio", marker = "sys_platform != 'emscripten'" },
120
+ { name = "httpcore2", marker = "sys_platform != 'emscripten'" },
121
+ { name = "httpx2-jsfetch", marker = "sys_platform == 'emscripten'" },
122
+ { name = "idna" },
123
+ { name = "truststore", marker = "sys_platform != 'emscripten'" },
124
+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },
125
+ ]
126
+ sdist = { url = "https://files.pythonhosted.org/packages/1c/77/6515121dc5ac3c743ad1bff5afe635bcd1a3f23cc40db3c5c89f7d02917d/httpx2-2.16.2.tar.gz", hash = "sha256:748b615678f07d8e3b183efe81ad13b655ca88bfc56ce4589219b2d442860574", size = 103370, upload-time = "2026-11-16T10:12:20.49Z" }
127
+ wheels = [
128
+ { url = "https://files.pythonhosted.org/packages/77/de/8c4306a3d6aa2495111986addf33a9e561eff4c47552e4c4b9251160d0ad/httpx2-2.16.2-py3-none-any.whl", hash = "sha256:f05c13aade4c45dbf1c9060647a1058f0acad62398fad96e741269edb33d46f5", size = 97893, upload-time = "2026-11-16T10:12:18.192Z" },
129
+ ]
130
+
131
+ [[package]]
132
+ name = "httpx2-jsfetch"
133
+ version = "1.0"
134
+ source = { registry = "https://pypi.org/simple" }
135
+ sdist = { url = "https://files.pythonhosted.org/packages/cd/c4/0e5636363151a2a1795e0a77617168b9ca438e1748ec05fc9b5687f93d64/httpx2_jsfetch-1.0.tar.gz", hash = "sha256:70a0e3eabfef7cce5ad9c629f7d01ca05e418f586646f4ddf14782e4c1454c60", size = 6872, upload-time = "2026-08-07T00:13:07.492Z" }
136
+ wheels = [
137
+ { url = "https://files.pythonhosted.org/packages/9b/43/832f631d32e4f1211caa2ba368317739fe71f0b8530e4c9d15dc454bac2a/httpx2_jsfetch-1.0-py3-none-any.whl", hash = "sha256:cb916b707601e69a07721aabc8f3f6659be3a6893bc1ff5c6f9e02241df2da32", size = 6382, upload-time = "2026-08-07T00:13:06.567Z" },
138
+ ]
139
+
140
+ [[package]]
141
+ name = "huggingface-hub"
142
+ version = "2.4.0"
143
+ source = { registry = "https://pypi.org/simple" }
144
+ dependencies = [
145
+ { name = "click" },
146
+ { name = "filelock" },
147
+ { name = "fsspec" },
148
+ { name = "hf-xet", marker = "platform_machine == 'AMD64' or platform_machine == 'ARM64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'" },
149
+ { name = "httpx2" },
150
+ { name = "packaging" },
151
+ { name = "pyyaml" },
152
+ { name = "tqdm" },
153
+ { name = "typing-extensions" },
154
+ ]
155
+ sdist = { url = "https://files.pythonhosted.org/packages/b5/3b/2fcef1eabe52aec90fc8cd253cc154da1d02a446d7bbcdec59b4a51d4be7/huggingface_hub-2.4.0.tar.gz", hash = "sha256:13a6158b9e3393d9d3f248ce99074d50c2a0a1449fb9d8e2f710751e2084c188", size = 1066194, upload-time = "2026-10-29T15:30:12.321Z" }
156
+ wheels = [
157
+ { url = "https://files.pythonhosted.org/packages/d4/55/ff47f1b082ecf5f43f4bc1e3b932d68eead171dabbbd1a92666c686301d7/huggingface_hub-2.4.0-py3-none-any.whl", hash = "sha256:42ecfd93ede47bdd333daebbf66a32d7bfe2e18752754fe4d2d4f98a0179d801", size = 857021, upload-time = "2026-10-29T15:30:10.421Z" },
158
+ ]
159
+
160
+ [[package]]
161
+ name = "idna"
162
+ version = "3.20"
163
+ source = { registry = "https://pypi.org/simple" }
164
+ sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" }
165
+ wheels = [
166
+ { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" },
167
+ ]
168
+
169
+ [[package]]
170
+ name = "ml-dtypes"
171
+ version = "0.6.0"
172
+ source = { registry = "https://pypi.org/simple" }
173
+ dependencies = [
174
+ { name = "numpy" },
175
+ ]
176
+ sdist = { url = "https://files.pythonhosted.org/packages/12/72/307d7c4bd0600601c7133fba5cb78af7db968152951c1cd473abb1cda782/ml_dtypes-0.6.0.tar.gz", hash = "sha256:5e60251d32ced5598972e4d5e06a2f044341f9291402551a3f6f0ec44f9299b0", size = 3032327, upload-time = "2026-08-13T14:14:40.215Z" }
177
+ wheels = [
178
+ { url = "https://files.pythonhosted.org/packages/84/6a/441eb053b078954f7fea284dfb288701884d0a1404d39babb858e1649023/ml_dtypes-0.6.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:5359c588cc62de6f78d7430f06b65853d884955494d86d6ad90b6dd64a3f3a08", size = 565447, upload-time = "2026-08-13T14:14:01.737Z" },
179
+ { url = "https://files.pythonhosted.org/packages/ed/cf/87e8a6c57eed63a91782a0d229856ddf73e138ce004dd71e2799a9dcdb33/ml_dtypes-0.6.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:37da32aa97749251025666d62372775019594577b9c9e9cfda83bed48d778fdb", size = 360227, upload-time = "2026-08-13T14:14:02.938Z" },
180
+ { url = "https://files.pythonhosted.org/packages/c7/f9/7d76c1eae866f5d4636401b31b6d6dd90e4b4ced1fa7cfdfcca9c60e4bd3/ml_dtypes-0.6.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3b4a480aa8fd54a1805b8ac10f3f91763926a74f73c0c364c10f9231854f4170", size = 409890, upload-time = "2026-08-13T14:14:04.248Z" },
181
+ { url = "https://files.pythonhosted.org/packages/ba/db/9c61ec2760b5cbfb1c6558d5c991a6d8fd3271053c32db20506a9a90272b/ml_dtypes-0.6.0-cp312-cp312-win_amd64.whl", hash = "sha256:2a3e9d53925597fbffafd2a37048dadeddd0bdaba58058f6ae0869ed709a184d", size = 439333, upload-time = "2026-08-13T14:14:05.501Z" },
182
+ { url = "https://files.pythonhosted.org/packages/6a/57/780ca3e5ab135b9fbdd8e5441abf5f801b30398371b691291e05ab9834c0/ml_dtypes-0.6.0-cp312-cp312-win_arm64.whl", hash = "sha256:6eaed129a4afe90694b8685e2f9b6294849f5eda4af9a15be83a4326eeebd775", size = 552268, upload-time = "2026-08-13T14:14:06.866Z" },
183
+ { url = "https://files.pythonhosted.org/packages/50/51/fd1582b8f5ed8a9e7be0e161a6ea0dff70cb280479a12178df0b3a72700e/ml_dtypes-0.6.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:084dfe51a7ad58b171f05115f8226ed4233a454a1611371947e806e76f0c638d", size = 565468, upload-time = "2026-08-13T14:14:08.5Z" },
184
+ { url = "https://files.pythonhosted.org/packages/d2/22/20fd70ca6ed12446cb92d5b2a7745bd185f9d8b8cdeeadad976574398e6b/ml_dtypes-0.6.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:28d676428b104bb9717b0928bc5c5129f2d6b51b6727587cc4289e7bf8713cb5", size = 360232, upload-time = "2026-08-13T14:14:09.873Z" },
185
+ { url = "https://files.pythonhosted.org/packages/89/a5/da8ae6c6f1babe4b68e3e55d43d39b529e29774f10e0910671a6b8c86eb8/ml_dtypes-0.6.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:26b1f1fa4f0435a2946859823f6e2bf06796f1e9f10f5a05b08a5e3c8f46ff69", size = 410169, upload-time = "2026-08-13T14:14:11.036Z" },
186
+ { url = "https://files.pythonhosted.org/packages/e2/55/4561acefa00fa4bcbfb82ca6a48578b41f372cd7dd7cdd6eb4720abc2e5f/ml_dtypes-0.6.0-cp313-cp313-win_amd64.whl", hash = "sha256:fb87f46b4f7ad7b5d3ad8f4b452b024bd4229d44c8ff934798c1fe656210387a", size = 439357, upload-time = "2026-08-13T14:14:12.172Z" },
187
+ { url = "https://files.pythonhosted.org/packages/b1/5d/6a01538e507ef0ed5e879985b13a92467bf8960696fb1131f8b8cadc60ff/ml_dtypes-0.6.0-cp313-cp313-win_arm64.whl", hash = "sha256:57ed0d6b4ac5e7868361303a9c57fbcf63b768236ee14456f585dfcf260d0292", size = 552278, upload-time = "2026-08-13T14:14:13.539Z" },
188
+ ]
189
+
190
+ [[package]]
191
+ name = "numpy"
192
+ version = "2.3.5"
193
+ source = { registry = "https://pypi.org/simple" }
194
+ sdist = { url = "https://files.pythonhosted.org/packages/76/65/21b3bc86aac7b8f2862db1e808f1ea22b028e30a225a34a5ede9bf8678f2/numpy-2.3.5.tar.gz", hash = "sha256:784db1dcdab56bf0517743e746dfb0f885fc68d948aba86eeec2cba234bdf1c0", size = 20584950, upload-time = "2025-11-16T22:52:42.067Z" }
195
+ wheels = [
196
+ { url = "https://files.pythonhosted.org/packages/44/37/e669fe6cbb2b96c62f6bbedc6a81c0f3b7362f6a59230b23caa673a85721/numpy-2.3.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:74ae7b798248fe62021dbf3c914245ad45d1a6b0cb4a29ecb4b31d0bfbc4cc3e", size = 16733873, upload-time = "2025-11-16T22:49:49.84Z" },
197
+ { url = "https://files.pythonhosted.org/packages/c5/65/df0db6c097892c9380851ab9e44b52d4f7ba576b833996e0080181c0c439/numpy-2.3.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ee3888d9ff7c14604052b2ca5535a30216aa0a58e948cdd3eeb8d3415f638769", size = 12259838, upload-time = "2025-11-16T22:49:52.863Z" },
198
+ { url = "https://files.pythonhosted.org/packages/5b/e1/1ee06e70eb2136797abe847d386e7c0e830b67ad1d43f364dd04fa50d338/numpy-2.3.5-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:612a95a17655e213502f60cfb9bf9408efdc9eb1d5f50535cc6eb365d11b42b5", size = 5088378, upload-time = "2025-11-16T22:49:55.055Z" },
199
+ { url = "https://files.pythonhosted.org/packages/6d/9c/1ca85fb86708724275103b81ec4cf1ac1d08f465368acfc8da7ab545bdae/numpy-2.3.5-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:3101e5177d114a593d79dd79658650fe28b5a0d8abeb8ce6f437c0e6df5be1a4", size = 6628559, upload-time = "2025-11-16T22:49:57.371Z" },
200
+ { url = "https://files.pythonhosted.org/packages/74/78/fcd41e5a0ce4f3f7b003da85825acddae6d7ecb60cf25194741b036ca7d6/numpy-2.3.5-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8b973c57ff8e184109db042c842423ff4f60446239bd585a5131cc47f06f789d", size = 14250702, upload-time = "2025-11-16T22:49:59.632Z" },
201
+ { url = "https://files.pythonhosted.org/packages/b6/23/2a1b231b8ff672b4c450dac27164a8b2ca7d9b7144f9c02d2396518352eb/numpy-2.3.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0d8163f43acde9a73c2a33605353a4f1bc4798745a8b1d73183b28e5b435ae28", size = 16606086, upload-time = "2025-11-16T22:50:02.127Z" },
202
+ { url = "https://files.pythonhosted.org/packages/a0/c5/5ad26fbfbe2012e190cc7d5003e4d874b88bb18861d0829edc140a713021/numpy-2.3.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:51c1e14eb1e154ebd80e860722f9e6ed6ec89714ad2db2d3aa33c31d7c12179b", size = 16025985, upload-time = "2025-11-16T22:50:04.536Z" },
203
+ { url = "https://files.pythonhosted.org/packages/d2/fa/dd48e225c46c819288148d9d060b047fd2a6fb1eb37eae25112ee4cb4453/numpy-2.3.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b46b4ec24f7293f23adcd2d146960559aaf8020213de8ad1909dba6c013bf89c", size = 18542976, upload-time = "2025-11-16T22:50:07.557Z" },
204
+ { url = "https://files.pythonhosted.org/packages/05/79/ccbd23a75862d95af03d28b5c6901a1b7da4803181513d52f3b86ed9446e/numpy-2.3.5-cp312-cp312-win32.whl", hash = "sha256:3997b5b3c9a771e157f9aae01dd579ee35ad7109be18db0e85dbdbe1de06e952", size = 6285274, upload-time = "2025-11-16T22:50:10.746Z" },
205
+ { url = "https://files.pythonhosted.org/packages/2d/57/8aeaf160312f7f489dea47ab61e430b5cb051f59a98ae68b7133ce8fa06a/numpy-2.3.5-cp312-cp312-win_amd64.whl", hash = "sha256:86945f2ee6d10cdfd67bcb4069c1662dd711f7e2a4343db5cecec06b87cf31aa", size = 12782922, upload-time = "2025-11-16T22:50:12.811Z" },
206
+ { url = "https://files.pythonhosted.org/packages/78/a6/aae5cc2ca78c45e64b9ef22f089141d661516856cf7c8a54ba434576900d/numpy-2.3.5-cp312-cp312-win_arm64.whl", hash = "sha256:f28620fe26bee16243be2b7b874da327312240a7cdc38b769a697578d2100013", size = 10194667, upload-time = "2025-11-16T22:50:16.16Z" },
207
+ { url = "https://files.pythonhosted.org/packages/db/69/9cde09f36da4b5a505341180a3f2e6fadc352fd4d2b7096ce9778db83f1a/numpy-2.3.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d0f23b44f57077c1ede8c5f26b30f706498b4862d3ff0a7298b8411dd2f043ff", size = 16728251, upload-time = "2025-11-16T22:50:19.013Z" },
208
+ { url = "https://files.pythonhosted.org/packages/79/fb/f505c95ceddd7027347b067689db71ca80bd5ecc926f913f1a23e65cf09b/numpy-2.3.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:aa5bc7c5d59d831d9773d1170acac7893ce3a5e130540605770ade83280e7188", size = 12254652, upload-time = "2025-11-16T22:50:21.487Z" },
209
+ { url = "https://files.pythonhosted.org/packages/78/da/8c7738060ca9c31b30e9301ee0cf6c5ffdbf889d9593285a1cead337f9a5/numpy-2.3.5-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:ccc933afd4d20aad3c00bcef049cb40049f7f196e0397f1109dba6fed63267b0", size = 5083172, upload-time = "2025-11-16T22:50:24.562Z" },
210
+ { url = "https://files.pythonhosted.org/packages/a4/b4/ee5bb2537fb9430fd2ef30a616c3672b991a4129bb1c7dcc42aa0abbe5d7/numpy-2.3.5-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:afaffc4393205524af9dfa400fa250143a6c3bc646c08c9f5e25a9f4b4d6a903", size = 6622990, upload-time = "2025-11-16T22:50:26.47Z" },
211
+ { url = "https://files.pythonhosted.org/packages/95/03/dc0723a013c7d7c19de5ef29e932c3081df1c14ba582b8b86b5de9db7f0f/numpy-2.3.5-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c75442b2209b8470d6d5d8b1c25714270686f14c749028d2199c54e29f20b4d", size = 14248902, upload-time = "2025-11-16T22:50:28.861Z" },
212
+ { url = "https://files.pythonhosted.org/packages/f5/10/ca162f45a102738958dcec8023062dad0cbc17d1ab99d68c4e4a6c45fb2b/numpy-2.3.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:11e06aa0af8c0f05104d56450d6093ee639e15f24ecf62d417329d06e522e017", size = 16597430, upload-time = "2025-11-16T22:50:31.56Z" },
213
+ { url = "https://files.pythonhosted.org/packages/2a/51/c1e29be863588db58175175f057286900b4b3327a1351e706d5e0f8dd679/numpy-2.3.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ed89927b86296067b4f81f108a2271d8926467a8868e554eaf370fc27fa3ccaf", size = 16024551, upload-time = "2025-11-16T22:50:34.242Z" },
214
+ { url = "https://files.pythonhosted.org/packages/83/68/8236589d4dbb87253d28259d04d9b814ec0ecce7cb1c7fed29729f4c3a78/numpy-2.3.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:51c55fe3451421f3a6ef9a9c1439e82101c57a2c9eab9feb196a62b1a10b58ce", size = 18533275, upload-time = "2025-11-16T22:50:37.651Z" },
215
+ { url = "https://files.pythonhosted.org/packages/40/56/2932d75b6f13465239e3b7b7e511be27f1b8161ca2510854f0b6e521c395/numpy-2.3.5-cp313-cp313-win32.whl", hash = "sha256:1978155dd49972084bd6ef388d66ab70f0c323ddee6f693d539376498720fb7e", size = 6277637, upload-time = "2025-11-16T22:50:40.11Z" },
216
+ { url = "https://files.pythonhosted.org/packages/0c/88/e2eaa6cffb115b85ed7c7c87775cb8bcf0816816bc98ca8dbfa2ee33fe6e/numpy-2.3.5-cp313-cp313-win_amd64.whl", hash = "sha256:00dc4e846108a382c5869e77c6ed514394bdeb3403461d25a829711041217d5b", size = 12779090, upload-time = "2025-11-16T22:50:42.503Z" },
217
+ { url = "https://files.pythonhosted.org/packages/8f/88/3f41e13a44ebd4034ee17baa384acac29ba6a4fcc2aca95f6f08ca0447d1/numpy-2.3.5-cp313-cp313-win_arm64.whl", hash = "sha256:0472f11f6ec23a74a906a00b48a4dcf3849209696dff7c189714511268d103ae", size = 10194710, upload-time = "2025-11-16T22:50:44.971Z" },
218
+ { url = "https://files.pythonhosted.org/packages/13/cb/71744144e13389d577f867f745b7df2d8489463654a918eea2eeb166dfc9/numpy-2.3.5-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:414802f3b97f3c1eef41e530aaba3b3c1620649871d8cb38c6eaff034c2e16bd", size = 16827292, upload-time = "2025-11-16T22:50:47.715Z" },
219
+ { url = "https://files.pythonhosted.org/packages/71/80/ba9dc6f2a4398e7f42b708a7fdc841bb638d353be255655498edbf9a15a8/numpy-2.3.5-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5ee6609ac3604fa7780e30a03e5e241a7956f8e2fcfe547d51e3afa5247ac47f", size = 12378897, upload-time = "2025-11-16T22:50:51.327Z" },
220
+ { url = "https://files.pythonhosted.org/packages/2e/6d/db2151b9f64264bcceccd51741aa39b50150de9b602d98ecfe7e0c4bff39/numpy-2.3.5-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:86d835afea1eaa143012a2d7a3f45a3adce2d7adc8b4961f0b362214d800846a", size = 5207391, upload-time = "2025-11-16T22:50:54.542Z" },
221
+ { url = "https://files.pythonhosted.org/packages/80/ae/429bacace5ccad48a14c4ae5332f6aa8ab9f69524193511d60ccdfdc65fa/numpy-2.3.5-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:30bc11310e8153ca664b14c5f1b73e94bd0503681fcf136a163de856f3a50139", size = 6721275, upload-time = "2025-11-16T22:50:56.794Z" },
222
+ { url = "https://files.pythonhosted.org/packages/74/5b/1919abf32d8722646a38cd527bc3771eb229a32724ee6ba340ead9b92249/numpy-2.3.5-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1062fde1dcf469571705945b0f221b73928f34a20c904ffb45db101907c3454e", size = 14306855, upload-time = "2025-11-16T22:50:59.208Z" },
223
+ { url = "https://files.pythonhosted.org/packages/a5/87/6831980559434973bebc30cd9c1f21e541a0f2b0c280d43d3afd909b66d0/numpy-2.3.5-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ce581db493ea1a96c0556360ede6607496e8bf9b3a8efa66e06477267bc831e9", size = 16657359, upload-time = "2025-11-16T22:51:01.991Z" },
224
+ { url = "https://files.pythonhosted.org/packages/dd/91/c797f544491ee99fd00495f12ebb7802c440c1915811d72ac5b4479a3356/numpy-2.3.5-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:cc8920d2ec5fa99875b670bb86ddeb21e295cb07aa331810d9e486e0b969d946", size = 16093374, upload-time = "2025-11-16T22:51:05.291Z" },
225
+ { url = "https://files.pythonhosted.org/packages/74/a6/54da03253afcbe7a72785ec4da9c69fb7a17710141ff9ac5fcb2e32dbe64/numpy-2.3.5-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:9ee2197ef8c4f0dfe405d835f3b6a14f5fee7782b5de51ba06fb65fc9b36e9f1", size = 18594587, upload-time = "2025-11-16T22:51:08.585Z" },
226
+ { url = "https://files.pythonhosted.org/packages/80/e9/aff53abbdd41b0ecca94285f325aff42357c6b5abc482a3fcb4994290b18/numpy-2.3.5-cp313-cp313t-win32.whl", hash = "sha256:70b37199913c1bd300ff6e2693316c6f869c7ee16378faf10e4f5e3275b299c3", size = 6405940, upload-time = "2025-11-16T22:51:11.541Z" },
227
+ { url = "https://files.pythonhosted.org/packages/d5/81/50613fec9d4de5480de18d4f8ef59ad7e344d497edbef3cfd80f24f98461/numpy-2.3.5-cp313-cp313t-win_amd64.whl", hash = "sha256:b501b5fa195cc9e24fe102f21ec0a44dffc231d2af79950b451e0d99cea02234", size = 12920341, upload-time = "2025-11-16T22:51:14.312Z" },
228
+ { url = "https://files.pythonhosted.org/packages/bb/ab/08fd63b9a74303947f34f0bd7c5903b9c5532c2d287bead5bdf4c556c486/numpy-2.3.5-cp313-cp313t-win_arm64.whl", hash = "sha256:a80afd79f45f3c4a7d341f13acbe058d1ca8ac017c165d3fa0d3de6bc1a079d7", size = 10262507, upload-time = "2025-11-16T22:51:16.846Z" },
229
+ ]
230
+
231
+ [[package]]
232
+ name = "packaging"
233
+ version = "26.3"
234
+ source = { registry = "https://pypi.org/simple" }
235
+ sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" }
236
+ wheels = [
237
+ { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" },
238
+ ]
239
+
240
+ [[package]]
241
+ name = "pillow"
242
+ version = "13.0.0"
243
+ source = { registry = "https://pypi.org/simple" }
244
+ sdist = { url = "https://files.pythonhosted.org/packages/ce/a4/9cc30690a394a8305e8be4c9036aa16d0dfddadd09079860b582f562496d/pillow-13.0.0.tar.gz", hash = "sha256:cdcd1ba258178f7356d74170c9a81ba4eab6a5d55748bc402a5a2a6fe6be3510", size = 47058631, upload-time = "2026-10-16T22:18:09.718Z" }
245
+ wheels = [
246
+ { url = "https://files.pythonhosted.org/packages/7a/b8/58d79332229482eb0d27c82973850808c19d37e5bdc14443d3417bd373f5/pillow-13.0.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:67c8d44ad89fa7eb88de5d6ef6199b1e03dd24974f85a67639fc8badb801fe79", size = 5568643, upload-time = "2026-10-16T22:15:44.474Z" },
247
+ { url = "https://files.pythonhosted.org/packages/39/4b/f2ed53d83aa44ac19599ac0a54897f867fafb95f406980d1e24083f8cbe3/pillow-13.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc481f742ccda20e9ed760b8f978dff50f2a4e9bc253ac167fb0a05b0783ef52", size = 4852329, upload-time = "2026-10-16T22:15:46.284Z" },
248
+ { url = "https://files.pythonhosted.org/packages/3b/bb/9e30e8ed18c20800ee327a12107d5249ad8dc444867b3adfcc21654e3c71/pillow-13.0.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8bf295fe459343bc6093c8e5e0df60bfa189e0fcb775a22e2c2488fdeccc6c0d", size = 6519309, upload-time = "2026-10-16T22:15:48.14Z" },
249
+ { url = "https://files.pythonhosted.org/packages/e6/99/fdf65cc539e266ab93546c261bdf98411fe165c6e4e13f9dbf597097192b/pillow-13.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:42d63be3af4f9b951b199b0a9d23365d37ab14687e6d77b74940432c8515c4ca", size = 7144542, upload-time = "2026-10-16T22:15:50.093Z" },
250
+ { url = "https://files.pythonhosted.org/packages/26/9b/f38b7c4d8f599537e2d1a6d546cec9beef7536ff8f5c49a3f9c78179d8ac/pillow-13.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4bd024d567eca931b668978d672dba914d4b8e2628e2c3073a2ad178de8a2620", size = 6618042, upload-time = "2026-10-16T22:15:52.054Z" },
251
+ { url = "https://files.pythonhosted.org/packages/a8/7c/45ee28531f89ee4582967d8a17f7a26d71ca64cd902b93c269590cd60a00/pillow-13.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:23edf4ec4b6f4f240e8df6e4985e9ee2ced86474632433e55fb1e2548744bf40", size = 7228137, upload-time = "2026-10-16T22:15:54.009Z" },
252
+ { url = "https://files.pythonhosted.org/packages/01/bc/9c2a969cb1b70201d04fa17fd5aedf02a732870b8da86bceaaa30b0ca385/pillow-13.0.0-cp312-cp312-win32.whl", hash = "sha256:02464da86f561f410e13b061ec37c3068a9cb557a095494157742d07b3c24a27", size = 6515423, upload-time = "2026-10-16T22:15:56.25Z" },
253
+ { url = "https://files.pythonhosted.org/packages/ff/cd/73a79ecdc822076002eb24b5e1e4a530b0bb5310fcb6d239abbec877110b/pillow-13.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:ff3fe9eb621fbb9db4c4be33ab946f6bac5f98ab50ca8d3260503653656c961b", size = 7272166, upload-time = "2026-10-16T22:15:58.597Z" },
254
+ { url = "https://files.pythonhosted.org/packages/4a/a3/be5a1236efd085b3984e4305da8f179ae9dab80c991d2ad78f2bd5c4c843/pillow-13.0.0-cp312-cp312-win_arm64.whl", hash = "sha256:c3bc8ee0271387e0b1e3ad0ff893645990a656e79bf9c42f4f734a3642b11d51", size = 2698943, upload-time = "2026-10-16T22:16:00.637Z" },
255
+ { url = "https://files.pythonhosted.org/packages/82/e2/9132d38df320e8099e2642d9fa538f18a7dfebf68a875a31725dc2a115aa/pillow-13.0.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:e98b4f91f99b24b1da72e10621ba181f7281922384a7403094debb4199de6c00", size = 4190620, upload-time = "2026-10-16T22:16:02.527Z" },
256
+ { url = "https://files.pythonhosted.org/packages/cb/be/436dac0996876f65ef1916ffb711c5ef4af2ebc57414b6f16642e07f6b47/pillow-13.0.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:34fb3db1149c879343861831728c243c432d4a5afc8f1878ca7612ef8de2a033", size = 4290286, upload-time = "2026-10-16T22:16:04.861Z" },
257
+ { url = "https://files.pythonhosted.org/packages/60/16/7c1007162e4169ea0d5bec47e2e0b2174f56c50cf5b8c02a1dc23e41037e/pillow-13.0.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:2d50500a4a3bc6469adcdb319cf05d688b08ca3bf0f22a05339f3b25b433a599", size = 3723169, upload-time = "2026-10-16T22:16:06.956Z" },
258
+ { url = "https://files.pythonhosted.org/packages/08/bc/578ab2eaa04705a8978bd9be0fe15c3d43a8fc95097c4f7e39540e79e4fa/pillow-13.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ef5fe6b7db3f501c56000ba8fe7c7e1a35ca1d45824fbeb95a67daa85cff4dbe", size = 5568469, upload-time = "2026-10-16T22:16:08.664Z" },
259
+ { url = "https://files.pythonhosted.org/packages/98/c8/ccede3dcc4f274b80fb49199eed1ef34ba05566c8b71976b9d1f111da2e3/pillow-13.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f11a3c1358bb3c68012a7b1f41b223c3db9f7bfde90b481df028cfe1c3363313", size = 4852187, upload-time = "2026-10-16T22:16:10.693Z" },
260
+ { url = "https://files.pythonhosted.org/packages/fb/3c/cd0770e96d20bfd990db024bcbd43897ff3e88da1f4782cf90ea231b1d4f/pillow-13.0.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:19b66ca0a4d25cc0200b381ce824c7ea090db61427315e73cfb05dbf1b35c369", size = 6515908, upload-time = "2026-10-16T22:16:12.896Z" },
261
+ { url = "https://files.pythonhosted.org/packages/ef/fe/f5cdaa2d1c4086e757430f368c271a58ee29cfe7378e7ae7b9d964015c25/pillow-13.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5f56499c1a74d2b862beb0c33b8016f99d095858455df9d21583bbbc1c15b582", size = 7142544, upload-time = "2026-10-16T22:16:14.844Z" },
262
+ { url = "https://files.pythonhosted.org/packages/fb/b5/a54f6d44adbcd23737c8c12953f42be107e4cca64e247c0ca3a5b563061c/pillow-13.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a2a14cd73d5e6c927f644b0110ee81f59c4ef506259ec9183904747f2caacc81", size = 6613097, upload-time = "2026-10-16T22:16:16.893Z" },
263
+ { url = "https://files.pythonhosted.org/packages/e6/b4/9e6c1207c21b2e91db0d15c16d30f3701ce5add1bd4da0e787761e66cb6e/pillow-13.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:08b826a9bf1265c76de04a42061d61ea6b109418b7826f28ff1ecdfaa26c5502", size = 7224846, upload-time = "2026-10-16T22:16:19.195Z" },
264
+ { url = "https://files.pythonhosted.org/packages/78/9f/d3c3cb0518f3dd1eee0ef501535f53d15597a53c5c4118d178086143397a/pillow-13.0.0-cp313-cp313-win32.whl", hash = "sha256:12b0fa15879fe5a9d9eebe66e4e2d74128a773b1a4448010c9c714f45e04b9d8", size = 6516013, upload-time = "2026-10-16T22:16:21.389Z" },
265
+ { url = "https://files.pythonhosted.org/packages/d7/ed/1b16fb66a37e1b9e41370b93b2c614c7da761a5b2a41dc333f7af4639962/pillow-13.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:9dda0788a9932776a75d8bcc020076edc308ce2508b51f6739a45e3158b3fc42", size = 7284777, upload-time = "2026-10-16T22:16:23.393Z" },
266
+ { url = "https://files.pythonhosted.org/packages/87/7d/8d02eba9f7ecc87f8e90f731e032cc4773802f2a843763afd0c66a535ff4/pillow-13.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:40a266371ece581e5de13b6635ef78d7487824af80561b6ca27694a88c19bc0f", size = 2698826, upload-time = "2026-10-16T22:16:25.382Z" },
267
+ { url = "https://files.pythonhosted.org/packages/60/da/f6d644e631c5b370c5d0b899f3ccadd2780aab070b29a110527cf4e1fd2c/pillow-13.0.0-pp312-pypy312_pp80-macosx_10_15_x86_64.whl", hash = "sha256:8619685cad8efc4c38c66d3b36aad854523297c43d748b3b6f0cc03c90ba3463", size = 5523188, upload-time = "2026-10-16T22:17:59.334Z" },
268
+ { url = "https://files.pythonhosted.org/packages/e4/b0/2594f202d743a35d4fe80682bfd96f277e5ca7aecb27cf64ef5bfc1d000b/pillow-13.0.0-pp312-pypy312_pp80-macosx_11_0_arm64.whl", hash = "sha256:7e91e97a929232cdb828889ee6ad0e48d7f40f4ec38818f4e4a8968b2b1af22e", size = 4806808, upload-time = "2026-10-16T22:18:01.188Z" },
269
+ { url = "https://files.pythonhosted.org/packages/8e/ed/d504165ef79af6fafe25c76726cf30f544cc236002f7ed054f1d51adc4ff/pillow-13.0.0-pp312-pypy312_pp80-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:93ff9c9c3663ce23aaa5d0b6b6abac55359e2a0c06c7e30f3771829af816be63", size = 5464358, upload-time = "2026-10-16T22:18:02.779Z" },
270
+ { url = "https://files.pythonhosted.org/packages/7b/fe/a10aba5503ca13e9e009b8bd0a1a4ce5584bdce246245fd6f3a83701369c/pillow-13.0.0-pp312-pypy312_pp80-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e65dd6e75de67b2362a4fa3e16aa627595f65054dc4ec73d64680c84d592fa61", size = 6043514, upload-time = "2026-10-16T22:18:04.538Z" },
271
+ { url = "https://files.pythonhosted.org/packages/c0/37/66b12dc476041fe523bca29c9d58fbf1ea92a4eaf73acfb9e993948f1191/pillow-13.0.0-pp312-pypy312_pp80-win_amd64.whl", hash = "sha256:567f20f1c75897d7663830da6ea8af719e03d712b1d9ee7f813319f9ece42e5a", size = 7366030, upload-time = "2026-10-16T22:18:06.638Z" },
272
+ ]
273
+
274
+ [[package]]
275
+ name = "psutil"
276
+ version = "7.2.2"
277
+ source = { registry = "https://pypi.org/simple" }
278
+ sdist = { url = "https://files.pythonhosted.org/packages/aa/c6/d1ddf4abb55e93cebc4f2ed8b5d6dbad109ecb8d63748dd2b20ab5e57ebe/psutil-7.2.2.tar.gz", hash = "sha256:0746f5f8d406af344fd547f1c8daa5f5c33dbc293bb8d6a16d80b4bb88f59372", size = 493740, upload-time = "2026-01-28T18:14:54.428Z" }
279
+ wheels = [
280
+ { url = "https://files.pythonhosted.org/packages/51/08/510cbdb69c25a96f4ae523f733cdc963ae654904e8db864c07585ef99875/psutil-7.2.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2edccc433cbfa046b980b0df0171cd25bcaeb3a68fe9022db0979e7aa74a826b", size = 130595, upload-time = "2026-01-28T18:14:57.293Z" },
281
+ { url = "https://files.pythonhosted.org/packages/d6/f5/97baea3fe7a5a9af7436301f85490905379b1c6f2dd51fe3ecf24b4c5fbf/psutil-7.2.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e78c8603dcd9a04c7364f1a3e670cea95d51ee865e4efb3556a3a63adef958ea", size = 131082, upload-time = "2026-01-28T18:14:59.732Z" },
282
+ { url = "https://files.pythonhosted.org/packages/37/d6/246513fbf9fa174af531f28412297dd05241d97a75911ac8febefa1a53c6/psutil-7.2.2-cp313-cp313t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1a571f2330c966c62aeda00dd24620425d4b0cc86881c89861fbc04549e5dc63", size = 181476, upload-time = "2026-01-28T18:15:01.884Z" },
283
+ { url = "https://files.pythonhosted.org/packages/b8/b5/9182c9af3836cca61696dabe4fd1304e17bc56cb62f17439e1154f225dd3/psutil-7.2.2-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:917e891983ca3c1887b4ef36447b1e0873e70c933afc831c6b6da078ba474312", size = 184062, upload-time = "2026-01-28T18:15:04.436Z" },
284
+ { url = "https://files.pythonhosted.org/packages/16/ba/0756dca669f5a9300d0cbcbfae9a4c30e446dfc7440ffe43ded5724bfd93/psutil-7.2.2-cp313-cp313t-win_amd64.whl", hash = "sha256:ab486563df44c17f5173621c7b198955bd6b613fb87c71c161f827d3fb149a9b", size = 139893, upload-time = "2026-01-28T18:15:06.378Z" },
285
+ { url = "https://files.pythonhosted.org/packages/1c/61/8fa0e26f33623b49949346de05ec1ddaad02ed8ba64af45f40a147dbfa97/psutil-7.2.2-cp313-cp313t-win_arm64.whl", hash = "sha256:ae0aefdd8796a7737eccea863f80f81e468a1e4cf14d926bd9b6f5f2d5f90ca9", size = 135589, upload-time = "2026-01-28T18:15:08.03Z" },
286
+ { url = "https://files.pythonhosted.org/packages/e7/36/5ee6e05c9bd427237b11b3937ad82bb8ad2752d72c6969314590dd0c2f6e/psutil-7.2.2-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:ed0cace939114f62738d808fdcecd4c869222507e266e574799e9c0faa17d486", size = 129090, upload-time = "2026-01-28T18:15:22.168Z" },
287
+ { url = "https://files.pythonhosted.org/packages/80/c4/f5af4c1ca8c1eeb2e92ccca14ce8effdeec651d5ab6053c589b074eda6e1/psutil-7.2.2-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:1a7b04c10f32cc88ab39cbf606e117fd74721c831c98a27dc04578deb0c16979", size = 129859, upload-time = "2026-01-28T18:15:23.795Z" },
288
+ { url = "https://files.pythonhosted.org/packages/b5/70/5d8df3b09e25bce090399cf48e452d25c935ab72dad19406c77f4e828045/psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:076a2d2f923fd4821644f5ba89f059523da90dc9014e85f8e45a5774ca5bc6f9", size = 155560, upload-time = "2026-01-28T18:15:25.976Z" },
289
+ { url = "https://files.pythonhosted.org/packages/63/65/37648c0c158dc222aba51c089eb3bdfa238e621674dc42d48706e639204f/psutil-7.2.2-cp36-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b0726cecd84f9474419d67252add4ac0cd9811b04d61123054b9fb6f57df6e9e", size = 156997, upload-time = "2026-01-28T18:15:27.794Z" },
290
+ { url = "https://files.pythonhosted.org/packages/8e/13/125093eadae863ce03c6ffdbae9929430d116a246ef69866dad94da3bfbc/psutil-7.2.2-cp36-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:fd04ef36b4a6d599bbdb225dd1d3f51e00105f6d48a28f006da7f9822f2606d8", size = 148972, upload-time = "2026-01-28T18:15:29.342Z" },
291
+ { url = "https://files.pythonhosted.org/packages/04/78/0acd37ca84ce3ddffaa92ef0f571e073faa6d8ff1f0559ab1272188ea2be/psutil-7.2.2-cp36-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b58fabe35e80b264a4e3bb23e6b96f9e45a3df7fb7eed419ac0e5947c61e47cc", size = 148266, upload-time = "2026-01-28T18:15:31.597Z" },
292
+ { url = "https://files.pythonhosted.org/packages/b4/90/e2159492b5426be0c1fef7acba807a03511f97c5f86b3caeda6ad92351a7/psutil-7.2.2-cp37-abi3-win_amd64.whl", hash = "sha256:eb7e81434c8d223ec4a219b5fc1c47d0417b12be7ea866e24fb5ad6e84b3d988", size = 137737, upload-time = "2026-01-28T18:15:33.849Z" },
293
+ { url = "https://files.pythonhosted.org/packages/8c/c7/7bb2e321574b10df20cbde462a94e2b71d05f9bbda251ef27d104668306a/psutil-7.2.2-cp37-abi3-win_arm64.whl", hash = "sha256:8c233660f575a5a89e6d4cb65d9f938126312bca76d8fe087b947b3a1aaac9ee", size = 134617, upload-time = "2026-01-28T18:15:36.514Z" },
294
+ ]
295
+
296
+ [[package]]
297
+ name = "pyyaml"
298
+ version = "6.0.3"
299
+ source = { registry = "https://pypi.org/simple" }
300
+ sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" }
301
+ wheels = [
302
+ { url = "https://files.pythonhosted.org/packages/d1/33/422b98d2195232ca1826284a76852ad5a86fe23e31b009c9886b2d0fb8b2/pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196", size = 182063, upload-time = "2025-09-25T21:32:11.445Z" },
303
+ { url = "https://files.pythonhosted.org/packages/89/a0/6cf41a19a1f2f3feab0e9c0b74134aa2ce6849093d5517a0c550fe37a648/pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0", size = 173973, upload-time = "2025-09-25T21:32:12.492Z" },
304
+ { url = "https://files.pythonhosted.org/packages/ed/23/7a778b6bd0b9a8039df8b1b1d80e2e2ad78aa04171592c8a5c43a56a6af4/pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28", size = 775116, upload-time = "2025-09-25T21:32:13.652Z" },
305
+ { url = "https://files.pythonhosted.org/packages/65/30/d7353c338e12baef4ecc1b09e877c1970bd3382789c159b4f89d6a70dc09/pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c", size = 844011, upload-time = "2025-09-25T21:32:15.21Z" },
306
+ { url = "https://files.pythonhosted.org/packages/8b/9d/b3589d3877982d4f2329302ef98a8026e7f4443c765c46cfecc8858c6b4b/pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc", size = 807870, upload-time = "2025-09-25T21:32:16.431Z" },
307
+ { url = "https://files.pythonhosted.org/packages/05/c0/b3be26a015601b822b97d9149ff8cb5ead58c66f981e04fedf4e762f4bd4/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e", size = 761089, upload-time = "2025-09-25T21:32:17.56Z" },
308
+ { url = "https://files.pythonhosted.org/packages/be/8e/98435a21d1d4b46590d5459a22d88128103f8da4c2d4cb8f14f2a96504e1/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea", size = 790181, upload-time = "2025-09-25T21:32:18.834Z" },
309
+ { url = "https://files.pythonhosted.org/packages/74/93/7baea19427dcfbe1e5a372d81473250b379f04b1bd3c4c5ff825e2327202/pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5", size = 137658, upload-time = "2025-09-25T21:32:20.209Z" },
310
+ { url = "https://files.pythonhosted.org/packages/86/bf/899e81e4cce32febab4fb42bb97dcdf66bc135272882d1987881a4b519e9/pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b", size = 154003, upload-time = "2025-09-25T21:32:21.167Z" },
311
+ { url = "https://files.pythonhosted.org/packages/1a/08/67bd04656199bbb51dbed1439b7f27601dfb576fb864099c7ef0c3e55531/pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd", size = 140344, upload-time = "2025-09-25T21:32:22.617Z" },
312
+ { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" },
313
+ { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" },
314
+ { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" },
315
+ { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" },
316
+ { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" },
317
+ { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" },
318
+ { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" },
319
+ { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" },
320
+ { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" },
321
+ { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" },
322
+ ]
323
+
324
+ [[package]]
325
+ name = "tokenizers"
326
+ version = "0.23.3"
327
+ source = { registry = "https://pypi.org/simple" }
328
+ dependencies = [
329
+ { name = "huggingface-hub" },
330
+ ]
331
+ sdist = { url = "https://files.pythonhosted.org/packages/e0/7c/2cabb2174e772636683008f2c5621949b645da7d303c596589e84516a184/tokenizers-0.23.3.tar.gz", hash = "sha256:cded33237c77caeef62944d32aa9a7ef42bdce2b3497e18d137e072a8c4be438", size = 385286, upload-time = "2026-10-09T10:16:55.759Z" }
332
+ wheels = [
333
+ { url = "https://files.pythonhosted.org/packages/aa/2e/4ce5b9716f26e526eff6b0502ebed4ea8d7161f03b3c77617c9f25528e97/tokenizers-0.23.3-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:9d2b5c97daf61688c2ad1803ca851800feaba50fb68d5821779e9ea5880d968c", size = 3148800, upload-time = "2026-10-09T10:00:51.457Z" },
334
+ { url = "https://files.pythonhosted.org/packages/b2/72/01e49f032bb346e5aaf06c10c74fe8aeec847173adbadd66eb7c53054bf2/tokenizers-0.23.3-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:68649e97d5b43c44c031d8d848874a6eecae8f8fe40ea989aa777a5a83aca716", size = 3101381, upload-time = "2026-10-09T10:00:54.063Z" },
335
+ { url = "https://files.pythonhosted.org/packages/15/fc/ae987741829b1cd547668c4c94be732ae3eefd1d74344e64c3d2ca714acd/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec82e80e65a862275b97c3d90b7a523df8d9519ee48aeb4e9625b2cc909274e0", size = 3519944, upload-time = "2026-10-09T10:00:55.885Z" },
336
+ { url = "https://files.pythonhosted.org/packages/1c/da/cc8f6c030afaf05fbddc608158fbb761dca46913cbeba6b112e59fc82e2a/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c64a0713180ff16829d4e7f39a658b77ea11443af4e1aa46523692943c9b1414", size = 3397695, upload-time = "2026-10-09T10:00:57.444Z" },
337
+ { url = "https://files.pythonhosted.org/packages/ec/f1/256f78d1365fa2cd3ea6db716883d74667c8cbb6a21f15fa5b89a773cdc2/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ddedfd4b3b4be6be24ff6ca645c4a37fddfd305f6f3e354c54cf10b715c48215", size = 3753125, upload-time = "2026-10-09T10:01:00.165Z" },
338
+ { url = "https://files.pythonhosted.org/packages/60/93/eee007ac2fcbf4ecfce7fbc354826cf3611f56bdb886f3e91b1f7dd06b8f/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2a89614730d7b80940a5d2ed9320e1ec8add5a745c6151d8d05071b7215505b6", size = 4018598, upload-time = "2026-10-09T10:01:02.05Z" },
339
+ { url = "https://files.pythonhosted.org/packages/bf/f9/0c96c4739461fce9d8d865b416728081bf6230022d7163bd6244f35f4b31/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e88646b8580c5ad7f4361477f1298e9cc01771a1ee9aecfe32c47b8ff614cc38", size = 3602442, upload-time = "2026-10-09T10:01:03.77Z" },
340
+ { url = "https://files.pythonhosted.org/packages/3a/40/6706b82693715581457c6d5423eaa7faae576bb0526c5738a57085eb4449/tokenizers-0.23.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:376851d22bcf9d650a5c3090bb83e6cf9e895fbf0595369fa4cd43c1f69b5f87", size = 3396193, upload-time = "2026-10-09T10:01:05.48Z" },
341
+ { url = "https://files.pythonhosted.org/packages/fe/0c/85946de40e25b7364b8f1bcf56def129069acd5bb364b7c86a32919e1a23/tokenizers-0.23.3-cp310-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:bf501c40b72d2d5c8623620210430e9cac1ce47a46e45b34107b70a1557d46b0", size = 3553483, upload-time = "2026-10-09T10:01:07.387Z" },
342
+ { url = "https://files.pythonhosted.org/packages/f1/6b/8d615d92cad1d511ca5ab188d1c7c167f0b3d295cc0d96207f9f82d486d8/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:114e2b55ed177179d59f4ab98200a4471e11e78f9e4b5a922d146740f96fcf52", size = 9972248, upload-time = "2026-10-09T10:01:09.437Z" },
343
+ { url = "https://files.pythonhosted.org/packages/c9/7d/a922e37ddd58d1b463bbc2ad08120c8f59c60b814cd353519a116b24f8ba/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:d3407fb7b9c4d75dd68850ffd7180bc0a5d2dbaf0762d888e612f31fec3f9c6b", size = 9802957, upload-time = "2026-10-09T10:01:11.869Z" },
344
+ { url = "https://files.pythonhosted.org/packages/4b/06/5d3f506a86ae0699a0e4ea05c05978f9aee169ef2c1d844e68c971cf8194/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_i686.whl", hash = "sha256:84513ef0aeb8bf8f4ea11a2e8a7ac163ec5288aa115e649a59b470ac5c3107df", size = 10145487, upload-time = "2026-10-09T10:01:14.268Z" },
345
+ { url = "https://files.pythonhosted.org/packages/26/e5/065625317690ea3548d834dad81f48ea1fd32e4964610e658e195d7fe28e/tokenizers-0.23.3-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:e05ab7baf7f47b406a95fea6f3b0a484b2ddcd9e1d14b68844c457eb755085a3", size = 10266026, upload-time = "2026-10-09T10:16:33.054Z" },
346
+ { url = "https://files.pythonhosted.org/packages/77/4e/babede85d0d19f5e3deeef0063e01848141329934d3d77c31b5cab5ac2b4/tokenizers-0.23.3-cp310-abi3-win32.whl", hash = "sha256:1ebf28794e7e4954e20a7f70fbea410b2d1f0418f7dbbca97ca384fcfef38c25", size = 2588086, upload-time = "2026-10-09T10:16:35.686Z" },
347
+ { url = "https://files.pythonhosted.org/packages/d1/6c/24f074c9a0efb98e61b20aafe6b2641922d5db24e447d5d6daffd9e17555/tokenizers-0.23.3-cp310-abi3-win_amd64.whl", hash = "sha256:1f0823bb00c5fdc98e487354d54dd55a03848d61a1a0bf29a68c77f24f3b26c3", size = 2872101, upload-time = "2026-10-09T10:16:37.533Z" },
348
+ { url = "https://files.pythonhosted.org/packages/53/77/a476b6f73a661c11d113a342d2326b91506cf2285f0995d1212a6bb2022d/tokenizers-0.23.3-cp310-abi3-win_arm64.whl", hash = "sha256:7e48734d2de9260d86f03ab056d2cfeeff3869f61dbd49aaa15a2793b5f3458b", size = 2742580, upload-time = "2026-10-09T10:16:39.244Z" },
349
+ ]
350
+
351
+ [[package]]
352
+ name = "tqdm"
353
+ version = "4.70.1"
354
+ source = { registry = "https://pypi.org/simple" }
355
+ dependencies = [
356
+ { name = "colorama", marker = "sys_platform == 'win32'" },
357
+ ]
358
+ sdist = { url = "https://files.pythonhosted.org/packages/0d/ea/b2a5bd54b28a324dae8211928b2d730b6547500342c7e6c6dea08bd0a485/tqdm-4.70.1.tar.gz", hash = "sha256:cefd0eca11b2a37a3aee776544d4f4ae913f02688135b5556b8788dfa474afc4", size = 171846, upload-time = "2026-09-11T07:25:16.601Z" }
359
+ wheels = [
360
+ { url = "https://files.pythonhosted.org/packages/a7/03/921a3d3c75785aca9ebfbfcabfbc3a1be12e2ab5265deb026d55a5a3f83e/tqdm-4.70.1-py3-none-any.whl", hash = "sha256:c293e525e6fef9c20e8728fd4612df02a0aa31bb5fe91ecd93e123b1b7bffa73", size = 80199, upload-time = "2026-09-11T07:25:14.599Z" },
361
+ ]
362
+
363
+ [[package]]
364
+ name = "truststore"
365
+ version = "0.10.5"
366
+ source = { registry = "https://pypi.org/simple" }
367
+ sdist = { url = "https://files.pythonhosted.org/packages/ee/9f/c5201d42a484c061e528825fc8e2d565f5abd50a4ced6fb7d29c4ec99b2b/truststore-0.10.5.tar.gz", hash = "sha256:30d36967ccaded5cbb38d602c433f53600036c79d502f4533a49b60a03bbefcd", size = 28091, upload-time = "2026-10-12T22:27:31.808Z" }
368
+ wheels = [
369
+ { url = "https://files.pythonhosted.org/packages/51/e9/3a7820be2bb0fe53b6bc9c3be26d3d1158004e4c3ab953aa6840b955b1e9/truststore-0.10.5-py3-none-any.whl", hash = "sha256:9aaaedaefaf06d8b206278cf8b5012bc897f485a874503501e12d776df78951c", size = 19017, upload-time = "2026-10-12T22:27:30.377Z" },
370
+ ]
371
+
372
+ [[package]]
373
+ name = "typing-extensions"
374
+ version = "4.16.0"
375
+ source = { registry = "https://pypi.org/simple" }
376
+ sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" }
377
+ wheels = [
378
+ { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" },
379
+ ]
380
+
381
+ [[package]]
382
+ name = "vela3-fast-coreai-example"
383
+ version = "0.1.0"
384
+ source = { virtual = "." }
385
+ dependencies = [
386
+ { name = "coreai-core" },
387
+ { name = "numpy" },
388
+ { name = "tokenizers" },
389
+ ]
390
+
391
+ [package.metadata]
392
+ requires-dist = [
393
+ { name = "coreai-core", specifier = "==1.0.0b3" },
394
+ { name = "numpy", specifier = "==2.3.5" },
395
+ { name = "tokenizers", specifier = "==0.23.3" },
396
+ ]
397
+
398
+ [[package]]
399
+ name = "yuvio"
400
+ version = "1.6"
401
+ source = { registry = "https://pypi.org/simple" }
402
+ dependencies = [
403
+ { name = "numpy" },
404
+ { name = "psutil" },
405
+ ]
406
+ sdist = { url = "https://files.pythonhosted.org/packages/f9/c3/fd8710dd5c08db9e2780cebd3956a2bcc40a994521333d9a8bdf1db666ea/yuvio-1.6.tar.gz", hash = "sha256:2ca1c7e79b551a76ded33c836bb8dabd34088080405d9560fb455b4a00523e68", size = 15473, upload-time = "2025-06-25T11:37:39.65Z" }
407
+ wheels = [
408
+ { url = "https://files.pythonhosted.org/packages/65/20/4738e1bae06f61833499b6119a0d779acd50131b847ab6dd98a5e324d282/yuvio-1.6-py3-none-any.whl", hash = "sha256:ed31718a24ef3f4510fd0721262ccd7154d9e075302a001bc671ab64edb7bf55", size = 19508, upload-time = "2025-06-25T11:37:38.346Z" },
409
+ ]
validation_cases.json ADDED
@@ -0,0 +1,2496 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "coding-en",
4
+ "capability": "choice",
5
+ "payload": {
6
+ "state": "Write a Python function.",
7
+ "question": {
8
+ "type": "choice",
9
+ "instructions": "What is the topic?",
10
+ "criteria": {
11
+ "coding": "Software",
12
+ "cooking": "Food"
13
+ }
14
+ }
15
+ },
16
+ "expected": "coding",
17
+ "inputs": {
18
+ "input_ids": [
19
+ 0,
20
+ 49152,
21
+ 1780,
22
+ 314,
23
+ 260,
24
+ 4234,
25
+ 47,
26
+ 49153,
27
+ 32306,
28
+ 42,
29
+ 12316,
30
+ 49153,
31
+ 83,
32
+ 2088,
33
+ 42,
34
+ 5098,
35
+ 49155,
36
+ 49156,
37
+ 19161,
38
+ 253,
39
+ 5905,
40
+ 1517,
41
+ 30,
42
+ 0,
43
+ 0,
44
+ 0,
45
+ 0,
46
+ 0,
47
+ 0,
48
+ 0,
49
+ 0,
50
+ 0,
51
+ 0,
52
+ 0,
53
+ 0,
54
+ 0,
55
+ 0,
56
+ 0,
57
+ 0,
58
+ 0,
59
+ 0,
60
+ 0,
61
+ 0,
62
+ 0,
63
+ 0,
64
+ 0,
65
+ 0,
66
+ 0,
67
+ 0,
68
+ 0,
69
+ 0,
70
+ 0,
71
+ 0,
72
+ 0,
73
+ 0,
74
+ 0,
75
+ 0,
76
+ 0,
77
+ 0,
78
+ 0,
79
+ 0,
80
+ 0,
81
+ 0,
82
+ 0,
83
+ 0,
84
+ 0,
85
+ 0,
86
+ 0,
87
+ 0,
88
+ 0,
89
+ 0,
90
+ 0,
91
+ 0,
92
+ 0,
93
+ 0,
94
+ 0,
95
+ 0,
96
+ 0,
97
+ 0,
98
+ 0,
99
+ 0,
100
+ 0,
101
+ 0,
102
+ 0,
103
+ 0,
104
+ 0,
105
+ 0,
106
+ 0,
107
+ 0,
108
+ 0,
109
+ 0,
110
+ 0,
111
+ 0,
112
+ 0,
113
+ 0,
114
+ 0,
115
+ 0,
116
+ 0,
117
+ 0,
118
+ 0,
119
+ 0,
120
+ 0,
121
+ 0,
122
+ 0,
123
+ 0,
124
+ 0,
125
+ 0,
126
+ 0,
127
+ 0,
128
+ 0,
129
+ 0,
130
+ 0,
131
+ 0,
132
+ 0,
133
+ 0,
134
+ 0,
135
+ 0,
136
+ 0,
137
+ 0,
138
+ 0,
139
+ 0,
140
+ 0,
141
+ 0,
142
+ 0,
143
+ 0,
144
+ 0,
145
+ 0,
146
+ 0
147
+ ],
148
+ "attention_mask": [
149
+ 1,
150
+ 1,
151
+ 1,
152
+ 1,
153
+ 1,
154
+ 1,
155
+ 1,
156
+ 1,
157
+ 1,
158
+ 1,
159
+ 1,
160
+ 1,
161
+ 1,
162
+ 1,
163
+ 1,
164
+ 1,
165
+ 1,
166
+ 1,
167
+ 1,
168
+ 1,
169
+ 1,
170
+ 1,
171
+ 1,
172
+ 1,
173
+ 0,
174
+ 0,
175
+ 0,
176
+ 0,
177
+ 0,
178
+ 0,
179
+ 0,
180
+ 0,
181
+ 0,
182
+ 0,
183
+ 0,
184
+ 0,
185
+ 0,
186
+ 0,
187
+ 0,
188
+ 0,
189
+ 0,
190
+ 0,
191
+ 0,
192
+ 0,
193
+ 0,
194
+ 0,
195
+ 0,
196
+ 0,
197
+ 0,
198
+ 0,
199
+ 0,
200
+ 0,
201
+ 0,
202
+ 0,
203
+ 0,
204
+ 0,
205
+ 0,
206
+ 0,
207
+ 0,
208
+ 0,
209
+ 0,
210
+ 0,
211
+ 0,
212
+ 0,
213
+ 0,
214
+ 0,
215
+ 0,
216
+ 0,
217
+ 0,
218
+ 0,
219
+ 0,
220
+ 0,
221
+ 0,
222
+ 0,
223
+ 0,
224
+ 0,
225
+ 0,
226
+ 0,
227
+ 0,
228
+ 0,
229
+ 0,
230
+ 0,
231
+ 0,
232
+ 0,
233
+ 0,
234
+ 0,
235
+ 0,
236
+ 0,
237
+ 0,
238
+ 0,
239
+ 0,
240
+ 0,
241
+ 0,
242
+ 0,
243
+ 0,
244
+ 0,
245
+ 0,
246
+ 0,
247
+ 0,
248
+ 0,
249
+ 0,
250
+ 0,
251
+ 0,
252
+ 0,
253
+ 0,
254
+ 0,
255
+ 0,
256
+ 0,
257
+ 0,
258
+ 0,
259
+ 0,
260
+ 0,
261
+ 0,
262
+ 0,
263
+ 0,
264
+ 0,
265
+ 0,
266
+ 0,
267
+ 0,
268
+ 0,
269
+ 0,
270
+ 0,
271
+ 0,
272
+ 0,
273
+ 0,
274
+ 0,
275
+ 0,
276
+ 0
277
+ ],
278
+ "option_positions": [
279
+ 7,
280
+ 11
281
+ ],
282
+ "pool_mask": [
283
+ 0.0,
284
+ 0.0,
285
+ 0.0,
286
+ 0.0,
287
+ 0.0,
288
+ 0.0,
289
+ 0.0,
290
+ 0.0,
291
+ 0.0,
292
+ 0.0,
293
+ 0.0,
294
+ 0.0,
295
+ 0.0,
296
+ 0.0,
297
+ 0.0,
298
+ 0.0,
299
+ 0.0,
300
+ 1.0,
301
+ 1.0,
302
+ 1.0,
303
+ 1.0,
304
+ 1.0,
305
+ 1.0,
306
+ 0.0,
307
+ 0.0,
308
+ 0.0,
309
+ 0.0,
310
+ 0.0,
311
+ 0.0,
312
+ 0.0,
313
+ 0.0,
314
+ 0.0,
315
+ 0.0,
316
+ 0.0,
317
+ 0.0,
318
+ 0.0,
319
+ 0.0,
320
+ 0.0,
321
+ 0.0,
322
+ 0.0,
323
+ 0.0,
324
+ 0.0,
325
+ 0.0,
326
+ 0.0,
327
+ 0.0,
328
+ 0.0,
329
+ 0.0,
330
+ 0.0,
331
+ 0.0,
332
+ 0.0,
333
+ 0.0,
334
+ 0.0,
335
+ 0.0,
336
+ 0.0,
337
+ 0.0,
338
+ 0.0,
339
+ 0.0,
340
+ 0.0,
341
+ 0.0,
342
+ 0.0,
343
+ 0.0,
344
+ 0.0,
345
+ 0.0,
346
+ 0.0,
347
+ 0.0,
348
+ 0.0,
349
+ 0.0,
350
+ 0.0,
351
+ 0.0,
352
+ 0.0,
353
+ 0.0,
354
+ 0.0,
355
+ 0.0,
356
+ 0.0,
357
+ 0.0,
358
+ 0.0,
359
+ 0.0,
360
+ 0.0,
361
+ 0.0,
362
+ 0.0,
363
+ 0.0,
364
+ 0.0,
365
+ 0.0,
366
+ 0.0,
367
+ 0.0,
368
+ 0.0,
369
+ 0.0,
370
+ 0.0,
371
+ 0.0,
372
+ 0.0,
373
+ 0.0,
374
+ 0.0,
375
+ 0.0,
376
+ 0.0,
377
+ 0.0,
378
+ 0.0,
379
+ 0.0,
380
+ 0.0,
381
+ 0.0,
382
+ 0.0,
383
+ 0.0,
384
+ 0.0,
385
+ 0.0,
386
+ 0.0,
387
+ 0.0,
388
+ 0.0,
389
+ 0.0,
390
+ 0.0,
391
+ 0.0,
392
+ 0.0,
393
+ 0.0,
394
+ 0.0,
395
+ 0.0,
396
+ 0.0,
397
+ 0.0,
398
+ 0.0,
399
+ 0.0,
400
+ 0.0,
401
+ 0.0,
402
+ 0.0,
403
+ 0.0,
404
+ 0.0,
405
+ 0.0,
406
+ 0.0,
407
+ 0.0,
408
+ 0.0,
409
+ 0.0,
410
+ 0.0
411
+ ]
412
+ },
413
+ "reference_probabilities": [
414
+ 0.9964854118964818,
415
+ 0.003514588103518185
416
+ ],
417
+ "reference_decision": "coding"
418
+ },
419
+ {
420
+ "id": "cooking-zh",
421
+ "capability": "choice",
422
+ "payload": {
423
+ "state": "如何煮一碗面条?",
424
+ "question": {
425
+ "type": "choice",
426
+ "instructions": "What is the topic?",
427
+ "criteria": {
428
+ "coding": "Software",
429
+ "cooking": "Food"
430
+ }
431
+ }
432
+ },
433
+ "expected": "cooking",
434
+ "inputs": {
435
+ "input_ids": [
436
+ 0,
437
+ 49152,
438
+ 1780,
439
+ 314,
440
+ 260,
441
+ 4234,
442
+ 47,
443
+ 49153,
444
+ 32306,
445
+ 42,
446
+ 12316,
447
+ 49153,
448
+ 83,
449
+ 2088,
450
+ 42,
451
+ 5098,
452
+ 49155,
453
+ 49156,
454
+ 176,
455
+ 43580,
456
+ 18645,
457
+ 239,
458
+ 178,
459
+ 223,
460
+ 123,
461
+ 22924,
462
+ 178,
463
+ 112,
464
+ 241,
465
+ 45834,
466
+ 112,
467
+ 30679,
468
+ 111,
469
+ 8083,
470
+ 249,
471
+ 0,
472
+ 0,
473
+ 0,
474
+ 0,
475
+ 0,
476
+ 0,
477
+ 0,
478
+ 0,
479
+ 0,
480
+ 0,
481
+ 0,
482
+ 0,
483
+ 0,
484
+ 0,
485
+ 0,
486
+ 0,
487
+ 0,
488
+ 0,
489
+ 0,
490
+ 0,
491
+ 0,
492
+ 0,
493
+ 0,
494
+ 0,
495
+ 0,
496
+ 0,
497
+ 0,
498
+ 0,
499
+ 0,
500
+ 0,
501
+ 0,
502
+ 0,
503
+ 0,
504
+ 0,
505
+ 0,
506
+ 0,
507
+ 0,
508
+ 0,
509
+ 0,
510
+ 0,
511
+ 0,
512
+ 0,
513
+ 0,
514
+ 0,
515
+ 0,
516
+ 0,
517
+ 0,
518
+ 0,
519
+ 0,
520
+ 0,
521
+ 0,
522
+ 0,
523
+ 0,
524
+ 0,
525
+ 0,
526
+ 0,
527
+ 0,
528
+ 0,
529
+ 0,
530
+ 0,
531
+ 0,
532
+ 0,
533
+ 0,
534
+ 0,
535
+ 0,
536
+ 0,
537
+ 0,
538
+ 0,
539
+ 0,
540
+ 0,
541
+ 0,
542
+ 0,
543
+ 0,
544
+ 0,
545
+ 0,
546
+ 0,
547
+ 0,
548
+ 0,
549
+ 0,
550
+ 0,
551
+ 0,
552
+ 0,
553
+ 0,
554
+ 0,
555
+ 0,
556
+ 0,
557
+ 0,
558
+ 0,
559
+ 0,
560
+ 0,
561
+ 0,
562
+ 0,
563
+ 0
564
+ ],
565
+ "attention_mask": [
566
+ 1,
567
+ 1,
568
+ 1,
569
+ 1,
570
+ 1,
571
+ 1,
572
+ 1,
573
+ 1,
574
+ 1,
575
+ 1,
576
+ 1,
577
+ 1,
578
+ 1,
579
+ 1,
580
+ 1,
581
+ 1,
582
+ 1,
583
+ 1,
584
+ 1,
585
+ 1,
586
+ 1,
587
+ 1,
588
+ 1,
589
+ 1,
590
+ 1,
591
+ 1,
592
+ 1,
593
+ 1,
594
+ 1,
595
+ 1,
596
+ 1,
597
+ 1,
598
+ 1,
599
+ 1,
600
+ 1,
601
+ 1,
602
+ 0,
603
+ 0,
604
+ 0,
605
+ 0,
606
+ 0,
607
+ 0,
608
+ 0,
609
+ 0,
610
+ 0,
611
+ 0,
612
+ 0,
613
+ 0,
614
+ 0,
615
+ 0,
616
+ 0,
617
+ 0,
618
+ 0,
619
+ 0,
620
+ 0,
621
+ 0,
622
+ 0,
623
+ 0,
624
+ 0,
625
+ 0,
626
+ 0,
627
+ 0,
628
+ 0,
629
+ 0,
630
+ 0,
631
+ 0,
632
+ 0,
633
+ 0,
634
+ 0,
635
+ 0,
636
+ 0,
637
+ 0,
638
+ 0,
639
+ 0,
640
+ 0,
641
+ 0,
642
+ 0,
643
+ 0,
644
+ 0,
645
+ 0,
646
+ 0,
647
+ 0,
648
+ 0,
649
+ 0,
650
+ 0,
651
+ 0,
652
+ 0,
653
+ 0,
654
+ 0,
655
+ 0,
656
+ 0,
657
+ 0,
658
+ 0,
659
+ 0,
660
+ 0,
661
+ 0,
662
+ 0,
663
+ 0,
664
+ 0,
665
+ 0,
666
+ 0,
667
+ 0,
668
+ 0,
669
+ 0,
670
+ 0,
671
+ 0,
672
+ 0,
673
+ 0,
674
+ 0,
675
+ 0,
676
+ 0,
677
+ 0,
678
+ 0,
679
+ 0,
680
+ 0,
681
+ 0,
682
+ 0,
683
+ 0,
684
+ 0,
685
+ 0,
686
+ 0,
687
+ 0,
688
+ 0,
689
+ 0,
690
+ 0,
691
+ 0,
692
+ 0,
693
+ 0
694
+ ],
695
+ "option_positions": [
696
+ 7,
697
+ 11
698
+ ],
699
+ "pool_mask": [
700
+ 0.0,
701
+ 0.0,
702
+ 0.0,
703
+ 0.0,
704
+ 0.0,
705
+ 0.0,
706
+ 0.0,
707
+ 0.0,
708
+ 0.0,
709
+ 0.0,
710
+ 0.0,
711
+ 0.0,
712
+ 0.0,
713
+ 0.0,
714
+ 0.0,
715
+ 0.0,
716
+ 0.0,
717
+ 1.0,
718
+ 1.0,
719
+ 1.0,
720
+ 1.0,
721
+ 1.0,
722
+ 1.0,
723
+ 1.0,
724
+ 1.0,
725
+ 1.0,
726
+ 1.0,
727
+ 1.0,
728
+ 1.0,
729
+ 1.0,
730
+ 1.0,
731
+ 1.0,
732
+ 1.0,
733
+ 1.0,
734
+ 1.0,
735
+ 0.0,
736
+ 0.0,
737
+ 0.0,
738
+ 0.0,
739
+ 0.0,
740
+ 0.0,
741
+ 0.0,
742
+ 0.0,
743
+ 0.0,
744
+ 0.0,
745
+ 0.0,
746
+ 0.0,
747
+ 0.0,
748
+ 0.0,
749
+ 0.0,
750
+ 0.0,
751
+ 0.0,
752
+ 0.0,
753
+ 0.0,
754
+ 0.0,
755
+ 0.0,
756
+ 0.0,
757
+ 0.0,
758
+ 0.0,
759
+ 0.0,
760
+ 0.0,
761
+ 0.0,
762
+ 0.0,
763
+ 0.0,
764
+ 0.0,
765
+ 0.0,
766
+ 0.0,
767
+ 0.0,
768
+ 0.0,
769
+ 0.0,
770
+ 0.0,
771
+ 0.0,
772
+ 0.0,
773
+ 0.0,
774
+ 0.0,
775
+ 0.0,
776
+ 0.0,
777
+ 0.0,
778
+ 0.0,
779
+ 0.0,
780
+ 0.0,
781
+ 0.0,
782
+ 0.0,
783
+ 0.0,
784
+ 0.0,
785
+ 0.0,
786
+ 0.0,
787
+ 0.0,
788
+ 0.0,
789
+ 0.0,
790
+ 0.0,
791
+ 0.0,
792
+ 0.0,
793
+ 0.0,
794
+ 0.0,
795
+ 0.0,
796
+ 0.0,
797
+ 0.0,
798
+ 0.0,
799
+ 0.0,
800
+ 0.0,
801
+ 0.0,
802
+ 0.0,
803
+ 0.0,
804
+ 0.0,
805
+ 0.0,
806
+ 0.0,
807
+ 0.0,
808
+ 0.0,
809
+ 0.0,
810
+ 0.0,
811
+ 0.0,
812
+ 0.0,
813
+ 0.0,
814
+ 0.0,
815
+ 0.0,
816
+ 0.0,
817
+ 0.0,
818
+ 0.0,
819
+ 0.0,
820
+ 0.0,
821
+ 0.0,
822
+ 0.0,
823
+ 0.0,
824
+ 0.0,
825
+ 0.0,
826
+ 0.0,
827
+ 0.0
828
+ ]
829
+ },
830
+ "reference_probabilities": [
831
+ 0.22242194924412478,
832
+ 0.7775780507558753
833
+ ],
834
+ "reference_decision": "cooking"
835
+ },
836
+ {
837
+ "id": "noul-positive",
838
+ "capability": "noul",
839
+ "payload": {
840
+ "state": "Python code",
841
+ "question": {
842
+ "type": "noul",
843
+ "instructions": "Is this about software?"
844
+ }
845
+ },
846
+ "expected": "yes",
847
+ "inputs": {
848
+ "input_ids": [
849
+ 0,
850
+ 49152,
851
+ 4182,
852
+ 451,
853
+ 563,
854
+ 3197,
855
+ 47,
856
+ 49153,
857
+ 4607,
858
+ 49153,
859
+ 10407,
860
+ 49155,
861
+ 49156,
862
+ 23297,
863
+ 2909,
864
+ 0,
865
+ 0,
866
+ 0,
867
+ 0,
868
+ 0,
869
+ 0,
870
+ 0,
871
+ 0,
872
+ 0,
873
+ 0,
874
+ 0,
875
+ 0,
876
+ 0,
877
+ 0,
878
+ 0,
879
+ 0,
880
+ 0,
881
+ 0,
882
+ 0,
883
+ 0,
884
+ 0,
885
+ 0,
886
+ 0,
887
+ 0,
888
+ 0,
889
+ 0,
890
+ 0,
891
+ 0,
892
+ 0,
893
+ 0,
894
+ 0,
895
+ 0,
896
+ 0,
897
+ 0,
898
+ 0,
899
+ 0,
900
+ 0,
901
+ 0,
902
+ 0,
903
+ 0,
904
+ 0,
905
+ 0,
906
+ 0,
907
+ 0,
908
+ 0,
909
+ 0,
910
+ 0,
911
+ 0,
912
+ 0,
913
+ 0,
914
+ 0,
915
+ 0,
916
+ 0,
917
+ 0,
918
+ 0,
919
+ 0,
920
+ 0,
921
+ 0,
922
+ 0,
923
+ 0,
924
+ 0,
925
+ 0,
926
+ 0,
927
+ 0,
928
+ 0,
929
+ 0,
930
+ 0,
931
+ 0,
932
+ 0,
933
+ 0,
934
+ 0,
935
+ 0,
936
+ 0,
937
+ 0,
938
+ 0,
939
+ 0,
940
+ 0,
941
+ 0,
942
+ 0,
943
+ 0,
944
+ 0,
945
+ 0,
946
+ 0,
947
+ 0,
948
+ 0,
949
+ 0,
950
+ 0,
951
+ 0,
952
+ 0,
953
+ 0,
954
+ 0,
955
+ 0,
956
+ 0,
957
+ 0,
958
+ 0,
959
+ 0,
960
+ 0,
961
+ 0,
962
+ 0,
963
+ 0,
964
+ 0,
965
+ 0,
966
+ 0,
967
+ 0,
968
+ 0,
969
+ 0,
970
+ 0,
971
+ 0,
972
+ 0,
973
+ 0,
974
+ 0,
975
+ 0,
976
+ 0
977
+ ],
978
+ "attention_mask": [
979
+ 1,
980
+ 1,
981
+ 1,
982
+ 1,
983
+ 1,
984
+ 1,
985
+ 1,
986
+ 1,
987
+ 1,
988
+ 1,
989
+ 1,
990
+ 1,
991
+ 1,
992
+ 1,
993
+ 1,
994
+ 1,
995
+ 0,
996
+ 0,
997
+ 0,
998
+ 0,
999
+ 0,
1000
+ 0,
1001
+ 0,
1002
+ 0,
1003
+ 0,
1004
+ 0,
1005
+ 0,
1006
+ 0,
1007
+ 0,
1008
+ 0,
1009
+ 0,
1010
+ 0,
1011
+ 0,
1012
+ 0,
1013
+ 0,
1014
+ 0,
1015
+ 0,
1016
+ 0,
1017
+ 0,
1018
+ 0,
1019
+ 0,
1020
+ 0,
1021
+ 0,
1022
+ 0,
1023
+ 0,
1024
+ 0,
1025
+ 0,
1026
+ 0,
1027
+ 0,
1028
+ 0,
1029
+ 0,
1030
+ 0,
1031
+ 0,
1032
+ 0,
1033
+ 0,
1034
+ 0,
1035
+ 0,
1036
+ 0,
1037
+ 0,
1038
+ 0,
1039
+ 0,
1040
+ 0,
1041
+ 0,
1042
+ 0,
1043
+ 0,
1044
+ 0,
1045
+ 0,
1046
+ 0,
1047
+ 0,
1048
+ 0,
1049
+ 0,
1050
+ 0,
1051
+ 0,
1052
+ 0,
1053
+ 0,
1054
+ 0,
1055
+ 0,
1056
+ 0,
1057
+ 0,
1058
+ 0,
1059
+ 0,
1060
+ 0,
1061
+ 0,
1062
+ 0,
1063
+ 0,
1064
+ 0,
1065
+ 0,
1066
+ 0,
1067
+ 0,
1068
+ 0,
1069
+ 0,
1070
+ 0,
1071
+ 0,
1072
+ 0,
1073
+ 0,
1074
+ 0,
1075
+ 0,
1076
+ 0,
1077
+ 0,
1078
+ 0,
1079
+ 0,
1080
+ 0,
1081
+ 0,
1082
+ 0,
1083
+ 0,
1084
+ 0,
1085
+ 0,
1086
+ 0,
1087
+ 0,
1088
+ 0,
1089
+ 0,
1090
+ 0,
1091
+ 0,
1092
+ 0,
1093
+ 0,
1094
+ 0,
1095
+ 0,
1096
+ 0,
1097
+ 0,
1098
+ 0,
1099
+ 0,
1100
+ 0,
1101
+ 0,
1102
+ 0,
1103
+ 0,
1104
+ 0,
1105
+ 0,
1106
+ 0
1107
+ ],
1108
+ "option_positions": [
1109
+ 7,
1110
+ 9
1111
+ ],
1112
+ "pool_mask": [
1113
+ 0.0,
1114
+ 0.0,
1115
+ 0.0,
1116
+ 0.0,
1117
+ 0.0,
1118
+ 0.0,
1119
+ 0.0,
1120
+ 0.0,
1121
+ 0.0,
1122
+ 0.0,
1123
+ 0.0,
1124
+ 0.0,
1125
+ 1.0,
1126
+ 1.0,
1127
+ 1.0,
1128
+ 0.0,
1129
+ 0.0,
1130
+ 0.0,
1131
+ 0.0,
1132
+ 0.0,
1133
+ 0.0,
1134
+ 0.0,
1135
+ 0.0,
1136
+ 0.0,
1137
+ 0.0,
1138
+ 0.0,
1139
+ 0.0,
1140
+ 0.0,
1141
+ 0.0,
1142
+ 0.0,
1143
+ 0.0,
1144
+ 0.0,
1145
+ 0.0,
1146
+ 0.0,
1147
+ 0.0,
1148
+ 0.0,
1149
+ 0.0,
1150
+ 0.0,
1151
+ 0.0,
1152
+ 0.0,
1153
+ 0.0,
1154
+ 0.0,
1155
+ 0.0,
1156
+ 0.0,
1157
+ 0.0,
1158
+ 0.0,
1159
+ 0.0,
1160
+ 0.0,
1161
+ 0.0,
1162
+ 0.0,
1163
+ 0.0,
1164
+ 0.0,
1165
+ 0.0,
1166
+ 0.0,
1167
+ 0.0,
1168
+ 0.0,
1169
+ 0.0,
1170
+ 0.0,
1171
+ 0.0,
1172
+ 0.0,
1173
+ 0.0,
1174
+ 0.0,
1175
+ 0.0,
1176
+ 0.0,
1177
+ 0.0,
1178
+ 0.0,
1179
+ 0.0,
1180
+ 0.0,
1181
+ 0.0,
1182
+ 0.0,
1183
+ 0.0,
1184
+ 0.0,
1185
+ 0.0,
1186
+ 0.0,
1187
+ 0.0,
1188
+ 0.0,
1189
+ 0.0,
1190
+ 0.0,
1191
+ 0.0,
1192
+ 0.0,
1193
+ 0.0,
1194
+ 0.0,
1195
+ 0.0,
1196
+ 0.0,
1197
+ 0.0,
1198
+ 0.0,
1199
+ 0.0,
1200
+ 0.0,
1201
+ 0.0,
1202
+ 0.0,
1203
+ 0.0,
1204
+ 0.0,
1205
+ 0.0,
1206
+ 0.0,
1207
+ 0.0,
1208
+ 0.0,
1209
+ 0.0,
1210
+ 0.0,
1211
+ 0.0,
1212
+ 0.0,
1213
+ 0.0,
1214
+ 0.0,
1215
+ 0.0,
1216
+ 0.0,
1217
+ 0.0,
1218
+ 0.0,
1219
+ 0.0,
1220
+ 0.0,
1221
+ 0.0,
1222
+ 0.0,
1223
+ 0.0,
1224
+ 0.0,
1225
+ 0.0,
1226
+ 0.0,
1227
+ 0.0,
1228
+ 0.0,
1229
+ 0.0,
1230
+ 0.0,
1231
+ 0.0,
1232
+ 0.0,
1233
+ 0.0,
1234
+ 0.0,
1235
+ 0.0,
1236
+ 0.0,
1237
+ 0.0,
1238
+ 0.0,
1239
+ 0.0,
1240
+ 0.0
1241
+ ]
1242
+ },
1243
+ "reference_probabilities": [
1244
+ 0.04283435292391378,
1245
+ 0.9571656470760861
1246
+ ],
1247
+ "reference_decision": "yes"
1248
+ },
1249
+ {
1250
+ "id": "noul-negative",
1251
+ "capability": "noul",
1252
+ "payload": {
1253
+ "state": "Boil pasta",
1254
+ "question": {
1255
+ "type": "noul",
1256
+ "instructions": "Is this about software?"
1257
+ }
1258
+ },
1259
+ "expected": "no",
1260
+ "inputs": {
1261
+ "input_ids": [
1262
+ 0,
1263
+ 49152,
1264
+ 4182,
1265
+ 451,
1266
+ 563,
1267
+ 3197,
1268
+ 47,
1269
+ 49153,
1270
+ 4607,
1271
+ 49153,
1272
+ 10407,
1273
+ 49155,
1274
+ 49156,
1275
+ 50,
1276
+ 11458,
1277
+ 19904,
1278
+ 0,
1279
+ 0,
1280
+ 0,
1281
+ 0,
1282
+ 0,
1283
+ 0,
1284
+ 0,
1285
+ 0,
1286
+ 0,
1287
+ 0,
1288
+ 0,
1289
+ 0,
1290
+ 0,
1291
+ 0,
1292
+ 0,
1293
+ 0,
1294
+ 0,
1295
+ 0,
1296
+ 0,
1297
+ 0,
1298
+ 0,
1299
+ 0,
1300
+ 0,
1301
+ 0,
1302
+ 0,
1303
+ 0,
1304
+ 0,
1305
+ 0,
1306
+ 0,
1307
+ 0,
1308
+ 0,
1309
+ 0,
1310
+ 0,
1311
+ 0,
1312
+ 0,
1313
+ 0,
1314
+ 0,
1315
+ 0,
1316
+ 0,
1317
+ 0,
1318
+ 0,
1319
+ 0,
1320
+ 0,
1321
+ 0,
1322
+ 0,
1323
+ 0,
1324
+ 0,
1325
+ 0,
1326
+ 0,
1327
+ 0,
1328
+ 0,
1329
+ 0,
1330
+ 0,
1331
+ 0,
1332
+ 0,
1333
+ 0,
1334
+ 0,
1335
+ 0,
1336
+ 0,
1337
+ 0,
1338
+ 0,
1339
+ 0,
1340
+ 0,
1341
+ 0,
1342
+ 0,
1343
+ 0,
1344
+ 0,
1345
+ 0,
1346
+ 0,
1347
+ 0,
1348
+ 0,
1349
+ 0,
1350
+ 0,
1351
+ 0,
1352
+ 0,
1353
+ 0,
1354
+ 0,
1355
+ 0,
1356
+ 0,
1357
+ 0,
1358
+ 0,
1359
+ 0,
1360
+ 0,
1361
+ 0,
1362
+ 0,
1363
+ 0,
1364
+ 0,
1365
+ 0,
1366
+ 0,
1367
+ 0,
1368
+ 0,
1369
+ 0,
1370
+ 0,
1371
+ 0,
1372
+ 0,
1373
+ 0,
1374
+ 0,
1375
+ 0,
1376
+ 0,
1377
+ 0,
1378
+ 0,
1379
+ 0,
1380
+ 0,
1381
+ 0,
1382
+ 0,
1383
+ 0,
1384
+ 0,
1385
+ 0,
1386
+ 0,
1387
+ 0,
1388
+ 0,
1389
+ 0
1390
+ ],
1391
+ "attention_mask": [
1392
+ 1,
1393
+ 1,
1394
+ 1,
1395
+ 1,
1396
+ 1,
1397
+ 1,
1398
+ 1,
1399
+ 1,
1400
+ 1,
1401
+ 1,
1402
+ 1,
1403
+ 1,
1404
+ 1,
1405
+ 1,
1406
+ 1,
1407
+ 1,
1408
+ 1,
1409
+ 0,
1410
+ 0,
1411
+ 0,
1412
+ 0,
1413
+ 0,
1414
+ 0,
1415
+ 0,
1416
+ 0,
1417
+ 0,
1418
+ 0,
1419
+ 0,
1420
+ 0,
1421
+ 0,
1422
+ 0,
1423
+ 0,
1424
+ 0,
1425
+ 0,
1426
+ 0,
1427
+ 0,
1428
+ 0,
1429
+ 0,
1430
+ 0,
1431
+ 0,
1432
+ 0,
1433
+ 0,
1434
+ 0,
1435
+ 0,
1436
+ 0,
1437
+ 0,
1438
+ 0,
1439
+ 0,
1440
+ 0,
1441
+ 0,
1442
+ 0,
1443
+ 0,
1444
+ 0,
1445
+ 0,
1446
+ 0,
1447
+ 0,
1448
+ 0,
1449
+ 0,
1450
+ 0,
1451
+ 0,
1452
+ 0,
1453
+ 0,
1454
+ 0,
1455
+ 0,
1456
+ 0,
1457
+ 0,
1458
+ 0,
1459
+ 0,
1460
+ 0,
1461
+ 0,
1462
+ 0,
1463
+ 0,
1464
+ 0,
1465
+ 0,
1466
+ 0,
1467
+ 0,
1468
+ 0,
1469
+ 0,
1470
+ 0,
1471
+ 0,
1472
+ 0,
1473
+ 0,
1474
+ 0,
1475
+ 0,
1476
+ 0,
1477
+ 0,
1478
+ 0,
1479
+ 0,
1480
+ 0,
1481
+ 0,
1482
+ 0,
1483
+ 0,
1484
+ 0,
1485
+ 0,
1486
+ 0,
1487
+ 0,
1488
+ 0,
1489
+ 0,
1490
+ 0,
1491
+ 0,
1492
+ 0,
1493
+ 0,
1494
+ 0,
1495
+ 0,
1496
+ 0,
1497
+ 0,
1498
+ 0,
1499
+ 0,
1500
+ 0,
1501
+ 0,
1502
+ 0,
1503
+ 0,
1504
+ 0,
1505
+ 0,
1506
+ 0,
1507
+ 0,
1508
+ 0,
1509
+ 0,
1510
+ 0,
1511
+ 0,
1512
+ 0,
1513
+ 0,
1514
+ 0,
1515
+ 0,
1516
+ 0,
1517
+ 0,
1518
+ 0,
1519
+ 0
1520
+ ],
1521
+ "option_positions": [
1522
+ 7,
1523
+ 9
1524
+ ],
1525
+ "pool_mask": [
1526
+ 0.0,
1527
+ 0.0,
1528
+ 0.0,
1529
+ 0.0,
1530
+ 0.0,
1531
+ 0.0,
1532
+ 0.0,
1533
+ 0.0,
1534
+ 0.0,
1535
+ 0.0,
1536
+ 0.0,
1537
+ 0.0,
1538
+ 1.0,
1539
+ 1.0,
1540
+ 1.0,
1541
+ 1.0,
1542
+ 0.0,
1543
+ 0.0,
1544
+ 0.0,
1545
+ 0.0,
1546
+ 0.0,
1547
+ 0.0,
1548
+ 0.0,
1549
+ 0.0,
1550
+ 0.0,
1551
+ 0.0,
1552
+ 0.0,
1553
+ 0.0,
1554
+ 0.0,
1555
+ 0.0,
1556
+ 0.0,
1557
+ 0.0,
1558
+ 0.0,
1559
+ 0.0,
1560
+ 0.0,
1561
+ 0.0,
1562
+ 0.0,
1563
+ 0.0,
1564
+ 0.0,
1565
+ 0.0,
1566
+ 0.0,
1567
+ 0.0,
1568
+ 0.0,
1569
+ 0.0,
1570
+ 0.0,
1571
+ 0.0,
1572
+ 0.0,
1573
+ 0.0,
1574
+ 0.0,
1575
+ 0.0,
1576
+ 0.0,
1577
+ 0.0,
1578
+ 0.0,
1579
+ 0.0,
1580
+ 0.0,
1581
+ 0.0,
1582
+ 0.0,
1583
+ 0.0,
1584
+ 0.0,
1585
+ 0.0,
1586
+ 0.0,
1587
+ 0.0,
1588
+ 0.0,
1589
+ 0.0,
1590
+ 0.0,
1591
+ 0.0,
1592
+ 0.0,
1593
+ 0.0,
1594
+ 0.0,
1595
+ 0.0,
1596
+ 0.0,
1597
+ 0.0,
1598
+ 0.0,
1599
+ 0.0,
1600
+ 0.0,
1601
+ 0.0,
1602
+ 0.0,
1603
+ 0.0,
1604
+ 0.0,
1605
+ 0.0,
1606
+ 0.0,
1607
+ 0.0,
1608
+ 0.0,
1609
+ 0.0,
1610
+ 0.0,
1611
+ 0.0,
1612
+ 0.0,
1613
+ 0.0,
1614
+ 0.0,
1615
+ 0.0,
1616
+ 0.0,
1617
+ 0.0,
1618
+ 0.0,
1619
+ 0.0,
1620
+ 0.0,
1621
+ 0.0,
1622
+ 0.0,
1623
+ 0.0,
1624
+ 0.0,
1625
+ 0.0,
1626
+ 0.0,
1627
+ 0.0,
1628
+ 0.0,
1629
+ 0.0,
1630
+ 0.0,
1631
+ 0.0,
1632
+ 0.0,
1633
+ 0.0,
1634
+ 0.0,
1635
+ 0.0,
1636
+ 0.0,
1637
+ 0.0,
1638
+ 0.0,
1639
+ 0.0,
1640
+ 0.0,
1641
+ 0.0,
1642
+ 0.0,
1643
+ 0.0,
1644
+ 0.0,
1645
+ 0.0,
1646
+ 0.0,
1647
+ 0.0,
1648
+ 0.0,
1649
+ 0.0,
1650
+ 0.0,
1651
+ 0.0,
1652
+ 0.0,
1653
+ 0.0
1654
+ ]
1655
+ },
1656
+ "reference_probabilities": [
1657
+ 0.9887530718985025,
1658
+ 0.011246928101497617
1659
+ ],
1660
+ "reference_decision": "no"
1661
+ },
1662
+ {
1663
+ "id": "coding-zh",
1664
+ "capability": "choice",
1665
+ "payload": {
1666
+ "state": "请写一个Python函数,对数字列表进行排序。",
1667
+ "question": {
1668
+ "type": "choice",
1669
+ "instructions": "What is the topic?",
1670
+ "criteria": {
1671
+ "coding": "Software",
1672
+ "cooking": "Food"
1673
+ }
1674
+ }
1675
+ },
1676
+ "expected": "coding",
1677
+ "inputs": {
1678
+ "input_ids": [
1679
+ 0,
1680
+ 49152,
1681
+ 1780,
1682
+ 314,
1683
+ 260,
1684
+ 4234,
1685
+ 47,
1686
+ 49153,
1687
+ 32306,
1688
+ 42,
1689
+ 12316,
1690
+ 49153,
1691
+ 83,
1692
+ 2088,
1693
+ 42,
1694
+ 5098,
1695
+ 49155,
1696
+ 49156,
1697
+ 16313,
1698
+ 132,
1699
+ 33031,
1700
+ 243,
1701
+ 43340,
1702
+ 23297,
1703
+ 26217,
1704
+ 138,
1705
+ 18265,
1706
+ 12831,
1707
+ 42549,
1708
+ 18265,
1709
+ 36518,
1710
+ 44465,
1711
+ 35739,
1712
+ 18276,
1713
+ 245,
1714
+ 32620,
1715
+ 33185,
1716
+ 236,
1717
+ 24024,
1718
+ 233,
1719
+ 19076,
1720
+ 0,
1721
+ 0,
1722
+ 0,
1723
+ 0,
1724
+ 0,
1725
+ 0,
1726
+ 0,
1727
+ 0,
1728
+ 0,
1729
+ 0,
1730
+ 0,
1731
+ 0,
1732
+ 0,
1733
+ 0,
1734
+ 0,
1735
+ 0,
1736
+ 0,
1737
+ 0,
1738
+ 0,
1739
+ 0,
1740
+ 0,
1741
+ 0,
1742
+ 0,
1743
+ 0,
1744
+ 0,
1745
+ 0,
1746
+ 0,
1747
+ 0,
1748
+ 0,
1749
+ 0,
1750
+ 0,
1751
+ 0,
1752
+ 0,
1753
+ 0,
1754
+ 0,
1755
+ 0,
1756
+ 0,
1757
+ 0,
1758
+ 0,
1759
+ 0,
1760
+ 0,
1761
+ 0,
1762
+ 0,
1763
+ 0,
1764
+ 0,
1765
+ 0,
1766
+ 0,
1767
+ 0,
1768
+ 0,
1769
+ 0,
1770
+ 0,
1771
+ 0,
1772
+ 0,
1773
+ 0,
1774
+ 0,
1775
+ 0,
1776
+ 0,
1777
+ 0,
1778
+ 0,
1779
+ 0,
1780
+ 0,
1781
+ 0,
1782
+ 0,
1783
+ 0,
1784
+ 0,
1785
+ 0,
1786
+ 0,
1787
+ 0,
1788
+ 0,
1789
+ 0,
1790
+ 0,
1791
+ 0,
1792
+ 0,
1793
+ 0,
1794
+ 0,
1795
+ 0,
1796
+ 0,
1797
+ 0,
1798
+ 0,
1799
+ 0,
1800
+ 0,
1801
+ 0,
1802
+ 0,
1803
+ 0,
1804
+ 0,
1805
+ 0,
1806
+ 0
1807
+ ],
1808
+ "attention_mask": [
1809
+ 1,
1810
+ 1,
1811
+ 1,
1812
+ 1,
1813
+ 1,
1814
+ 1,
1815
+ 1,
1816
+ 1,
1817
+ 1,
1818
+ 1,
1819
+ 1,
1820
+ 1,
1821
+ 1,
1822
+ 1,
1823
+ 1,
1824
+ 1,
1825
+ 1,
1826
+ 1,
1827
+ 1,
1828
+ 1,
1829
+ 1,
1830
+ 1,
1831
+ 1,
1832
+ 1,
1833
+ 1,
1834
+ 1,
1835
+ 1,
1836
+ 1,
1837
+ 1,
1838
+ 1,
1839
+ 1,
1840
+ 1,
1841
+ 1,
1842
+ 1,
1843
+ 1,
1844
+ 1,
1845
+ 1,
1846
+ 1,
1847
+ 1,
1848
+ 1,
1849
+ 1,
1850
+ 1,
1851
+ 0,
1852
+ 0,
1853
+ 0,
1854
+ 0,
1855
+ 0,
1856
+ 0,
1857
+ 0,
1858
+ 0,
1859
+ 0,
1860
+ 0,
1861
+ 0,
1862
+ 0,
1863
+ 0,
1864
+ 0,
1865
+ 0,
1866
+ 0,
1867
+ 0,
1868
+ 0,
1869
+ 0,
1870
+ 0,
1871
+ 0,
1872
+ 0,
1873
+ 0,
1874
+ 0,
1875
+ 0,
1876
+ 0,
1877
+ 0,
1878
+ 0,
1879
+ 0,
1880
+ 0,
1881
+ 0,
1882
+ 0,
1883
+ 0,
1884
+ 0,
1885
+ 0,
1886
+ 0,
1887
+ 0,
1888
+ 0,
1889
+ 0,
1890
+ 0,
1891
+ 0,
1892
+ 0,
1893
+ 0,
1894
+ 0,
1895
+ 0,
1896
+ 0,
1897
+ 0,
1898
+ 0,
1899
+ 0,
1900
+ 0,
1901
+ 0,
1902
+ 0,
1903
+ 0,
1904
+ 0,
1905
+ 0,
1906
+ 0,
1907
+ 0,
1908
+ 0,
1909
+ 0,
1910
+ 0,
1911
+ 0,
1912
+ 0,
1913
+ 0,
1914
+ 0,
1915
+ 0,
1916
+ 0,
1917
+ 0,
1918
+ 0,
1919
+ 0,
1920
+ 0,
1921
+ 0,
1922
+ 0,
1923
+ 0,
1924
+ 0,
1925
+ 0,
1926
+ 0,
1927
+ 0,
1928
+ 0,
1929
+ 0,
1930
+ 0,
1931
+ 0,
1932
+ 0,
1933
+ 0,
1934
+ 0,
1935
+ 0,
1936
+ 0
1937
+ ],
1938
+ "option_positions": [
1939
+ 7,
1940
+ 11
1941
+ ],
1942
+ "pool_mask": [
1943
+ 0.0,
1944
+ 0.0,
1945
+ 0.0,
1946
+ 0.0,
1947
+ 0.0,
1948
+ 0.0,
1949
+ 0.0,
1950
+ 0.0,
1951
+ 0.0,
1952
+ 0.0,
1953
+ 0.0,
1954
+ 0.0,
1955
+ 0.0,
1956
+ 0.0,
1957
+ 0.0,
1958
+ 0.0,
1959
+ 0.0,
1960
+ 1.0,
1961
+ 1.0,
1962
+ 1.0,
1963
+ 1.0,
1964
+ 1.0,
1965
+ 1.0,
1966
+ 1.0,
1967
+ 1.0,
1968
+ 1.0,
1969
+ 1.0,
1970
+ 1.0,
1971
+ 1.0,
1972
+ 1.0,
1973
+ 1.0,
1974
+ 1.0,
1975
+ 1.0,
1976
+ 1.0,
1977
+ 1.0,
1978
+ 1.0,
1979
+ 1.0,
1980
+ 1.0,
1981
+ 1.0,
1982
+ 1.0,
1983
+ 1.0,
1984
+ 0.0,
1985
+ 0.0,
1986
+ 0.0,
1987
+ 0.0,
1988
+ 0.0,
1989
+ 0.0,
1990
+ 0.0,
1991
+ 0.0,
1992
+ 0.0,
1993
+ 0.0,
1994
+ 0.0,
1995
+ 0.0,
1996
+ 0.0,
1997
+ 0.0,
1998
+ 0.0,
1999
+ 0.0,
2000
+ 0.0,
2001
+ 0.0,
2002
+ 0.0,
2003
+ 0.0,
2004
+ 0.0,
2005
+ 0.0,
2006
+ 0.0,
2007
+ 0.0,
2008
+ 0.0,
2009
+ 0.0,
2010
+ 0.0,
2011
+ 0.0,
2012
+ 0.0,
2013
+ 0.0,
2014
+ 0.0,
2015
+ 0.0,
2016
+ 0.0,
2017
+ 0.0,
2018
+ 0.0,
2019
+ 0.0,
2020
+ 0.0,
2021
+ 0.0,
2022
+ 0.0,
2023
+ 0.0,
2024
+ 0.0,
2025
+ 0.0,
2026
+ 0.0,
2027
+ 0.0,
2028
+ 0.0,
2029
+ 0.0,
2030
+ 0.0,
2031
+ 0.0,
2032
+ 0.0,
2033
+ 0.0,
2034
+ 0.0,
2035
+ 0.0,
2036
+ 0.0,
2037
+ 0.0,
2038
+ 0.0,
2039
+ 0.0,
2040
+ 0.0,
2041
+ 0.0,
2042
+ 0.0,
2043
+ 0.0,
2044
+ 0.0,
2045
+ 0.0,
2046
+ 0.0,
2047
+ 0.0,
2048
+ 0.0,
2049
+ 0.0,
2050
+ 0.0,
2051
+ 0.0,
2052
+ 0.0,
2053
+ 0.0,
2054
+ 0.0,
2055
+ 0.0,
2056
+ 0.0,
2057
+ 0.0,
2058
+ 0.0,
2059
+ 0.0,
2060
+ 0.0,
2061
+ 0.0,
2062
+ 0.0,
2063
+ 0.0,
2064
+ 0.0,
2065
+ 0.0,
2066
+ 0.0,
2067
+ 0.0,
2068
+ 0.0,
2069
+ 0.0,
2070
+ 0.0
2071
+ ]
2072
+ },
2073
+ "reference_probabilities": [
2074
+ 0.9965400461728955,
2075
+ 0.0034599538271045662
2076
+ ],
2077
+ "reference_decision": "coding"
2078
+ },
2079
+ {
2080
+ "id": "cooking-en",
2081
+ "capability": "choice",
2082
+ "payload": {
2083
+ "state": "How do I bake chocolate cookies?",
2084
+ "question": {
2085
+ "type": "choice",
2086
+ "instructions": "What is the topic?",
2087
+ "criteria": {
2088
+ "coding": "Software",
2089
+ "cooking": "Food"
2090
+ }
2091
+ }
2092
+ },
2093
+ "expected": "cooking",
2094
+ "inputs": {
2095
+ "input_ids": [
2096
+ 0,
2097
+ 49152,
2098
+ 1780,
2099
+ 314,
2100
+ 260,
2101
+ 4234,
2102
+ 47,
2103
+ 49153,
2104
+ 32306,
2105
+ 42,
2106
+ 12316,
2107
+ 49153,
2108
+ 83,
2109
+ 2088,
2110
+ 42,
2111
+ 5098,
2112
+ 49155,
2113
+ 49156,
2114
+ 2020,
2115
+ 536,
2116
+ 339,
2117
+ 26975,
2118
+ 9678,
2119
+ 12834,
2120
+ 47,
2121
+ 0,
2122
+ 0,
2123
+ 0,
2124
+ 0,
2125
+ 0,
2126
+ 0,
2127
+ 0,
2128
+ 0,
2129
+ 0,
2130
+ 0,
2131
+ 0,
2132
+ 0,
2133
+ 0,
2134
+ 0,
2135
+ 0,
2136
+ 0,
2137
+ 0,
2138
+ 0,
2139
+ 0,
2140
+ 0,
2141
+ 0,
2142
+ 0,
2143
+ 0,
2144
+ 0,
2145
+ 0,
2146
+ 0,
2147
+ 0,
2148
+ 0,
2149
+ 0,
2150
+ 0,
2151
+ 0,
2152
+ 0,
2153
+ 0,
2154
+ 0,
2155
+ 0,
2156
+ 0,
2157
+ 0,
2158
+ 0,
2159
+ 0,
2160
+ 0,
2161
+ 0,
2162
+ 0,
2163
+ 0,
2164
+ 0,
2165
+ 0,
2166
+ 0,
2167
+ 0,
2168
+ 0,
2169
+ 0,
2170
+ 0,
2171
+ 0,
2172
+ 0,
2173
+ 0,
2174
+ 0,
2175
+ 0,
2176
+ 0,
2177
+ 0,
2178
+ 0,
2179
+ 0,
2180
+ 0,
2181
+ 0,
2182
+ 0,
2183
+ 0,
2184
+ 0,
2185
+ 0,
2186
+ 0,
2187
+ 0,
2188
+ 0,
2189
+ 0,
2190
+ 0,
2191
+ 0,
2192
+ 0,
2193
+ 0,
2194
+ 0,
2195
+ 0,
2196
+ 0,
2197
+ 0,
2198
+ 0,
2199
+ 0,
2200
+ 0,
2201
+ 0,
2202
+ 0,
2203
+ 0,
2204
+ 0,
2205
+ 0,
2206
+ 0,
2207
+ 0,
2208
+ 0,
2209
+ 0,
2210
+ 0,
2211
+ 0,
2212
+ 0,
2213
+ 0,
2214
+ 0,
2215
+ 0,
2216
+ 0,
2217
+ 0,
2218
+ 0,
2219
+ 0,
2220
+ 0,
2221
+ 0,
2222
+ 0,
2223
+ 0
2224
+ ],
2225
+ "attention_mask": [
2226
+ 1,
2227
+ 1,
2228
+ 1,
2229
+ 1,
2230
+ 1,
2231
+ 1,
2232
+ 1,
2233
+ 1,
2234
+ 1,
2235
+ 1,
2236
+ 1,
2237
+ 1,
2238
+ 1,
2239
+ 1,
2240
+ 1,
2241
+ 1,
2242
+ 1,
2243
+ 1,
2244
+ 1,
2245
+ 1,
2246
+ 1,
2247
+ 1,
2248
+ 1,
2249
+ 1,
2250
+ 1,
2251
+ 1,
2252
+ 0,
2253
+ 0,
2254
+ 0,
2255
+ 0,
2256
+ 0,
2257
+ 0,
2258
+ 0,
2259
+ 0,
2260
+ 0,
2261
+ 0,
2262
+ 0,
2263
+ 0,
2264
+ 0,
2265
+ 0,
2266
+ 0,
2267
+ 0,
2268
+ 0,
2269
+ 0,
2270
+ 0,
2271
+ 0,
2272
+ 0,
2273
+ 0,
2274
+ 0,
2275
+ 0,
2276
+ 0,
2277
+ 0,
2278
+ 0,
2279
+ 0,
2280
+ 0,
2281
+ 0,
2282
+ 0,
2283
+ 0,
2284
+ 0,
2285
+ 0,
2286
+ 0,
2287
+ 0,
2288
+ 0,
2289
+ 0,
2290
+ 0,
2291
+ 0,
2292
+ 0,
2293
+ 0,
2294
+ 0,
2295
+ 0,
2296
+ 0,
2297
+ 0,
2298
+ 0,
2299
+ 0,
2300
+ 0,
2301
+ 0,
2302
+ 0,
2303
+ 0,
2304
+ 0,
2305
+ 0,
2306
+ 0,
2307
+ 0,
2308
+ 0,
2309
+ 0,
2310
+ 0,
2311
+ 0,
2312
+ 0,
2313
+ 0,
2314
+ 0,
2315
+ 0,
2316
+ 0,
2317
+ 0,
2318
+ 0,
2319
+ 0,
2320
+ 0,
2321
+ 0,
2322
+ 0,
2323
+ 0,
2324
+ 0,
2325
+ 0,
2326
+ 0,
2327
+ 0,
2328
+ 0,
2329
+ 0,
2330
+ 0,
2331
+ 0,
2332
+ 0,
2333
+ 0,
2334
+ 0,
2335
+ 0,
2336
+ 0,
2337
+ 0,
2338
+ 0,
2339
+ 0,
2340
+ 0,
2341
+ 0,
2342
+ 0,
2343
+ 0,
2344
+ 0,
2345
+ 0,
2346
+ 0,
2347
+ 0,
2348
+ 0,
2349
+ 0,
2350
+ 0,
2351
+ 0,
2352
+ 0,
2353
+ 0
2354
+ ],
2355
+ "option_positions": [
2356
+ 7,
2357
+ 11
2358
+ ],
2359
+ "pool_mask": [
2360
+ 0.0,
2361
+ 0.0,
2362
+ 0.0,
2363
+ 0.0,
2364
+ 0.0,
2365
+ 0.0,
2366
+ 0.0,
2367
+ 0.0,
2368
+ 0.0,
2369
+ 0.0,
2370
+ 0.0,
2371
+ 0.0,
2372
+ 0.0,
2373
+ 0.0,
2374
+ 0.0,
2375
+ 0.0,
2376
+ 0.0,
2377
+ 1.0,
2378
+ 1.0,
2379
+ 1.0,
2380
+ 1.0,
2381
+ 1.0,
2382
+ 1.0,
2383
+ 1.0,
2384
+ 1.0,
2385
+ 0.0,
2386
+ 0.0,
2387
+ 0.0,
2388
+ 0.0,
2389
+ 0.0,
2390
+ 0.0,
2391
+ 0.0,
2392
+ 0.0,
2393
+ 0.0,
2394
+ 0.0,
2395
+ 0.0,
2396
+ 0.0,
2397
+ 0.0,
2398
+ 0.0,
2399
+ 0.0,
2400
+ 0.0,
2401
+ 0.0,
2402
+ 0.0,
2403
+ 0.0,
2404
+ 0.0,
2405
+ 0.0,
2406
+ 0.0,
2407
+ 0.0,
2408
+ 0.0,
2409
+ 0.0,
2410
+ 0.0,
2411
+ 0.0,
2412
+ 0.0,
2413
+ 0.0,
2414
+ 0.0,
2415
+ 0.0,
2416
+ 0.0,
2417
+ 0.0,
2418
+ 0.0,
2419
+ 0.0,
2420
+ 0.0,
2421
+ 0.0,
2422
+ 0.0,
2423
+ 0.0,
2424
+ 0.0,
2425
+ 0.0,
2426
+ 0.0,
2427
+ 0.0,
2428
+ 0.0,
2429
+ 0.0,
2430
+ 0.0,
2431
+ 0.0,
2432
+ 0.0,
2433
+ 0.0,
2434
+ 0.0,
2435
+ 0.0,
2436
+ 0.0,
2437
+ 0.0,
2438
+ 0.0,
2439
+ 0.0,
2440
+ 0.0,
2441
+ 0.0,
2442
+ 0.0,
2443
+ 0.0,
2444
+ 0.0,
2445
+ 0.0,
2446
+ 0.0,
2447
+ 0.0,
2448
+ 0.0,
2449
+ 0.0,
2450
+ 0.0,
2451
+ 0.0,
2452
+ 0.0,
2453
+ 0.0,
2454
+ 0.0,
2455
+ 0.0,
2456
+ 0.0,
2457
+ 0.0,
2458
+ 0.0,
2459
+ 0.0,
2460
+ 0.0,
2461
+ 0.0,
2462
+ 0.0,
2463
+ 0.0,
2464
+ 0.0,
2465
+ 0.0,
2466
+ 0.0,
2467
+ 0.0,
2468
+ 0.0,
2469
+ 0.0,
2470
+ 0.0,
2471
+ 0.0,
2472
+ 0.0,
2473
+ 0.0,
2474
+ 0.0,
2475
+ 0.0,
2476
+ 0.0,
2477
+ 0.0,
2478
+ 0.0,
2479
+ 0.0,
2480
+ 0.0,
2481
+ 0.0,
2482
+ 0.0,
2483
+ 0.0,
2484
+ 0.0,
2485
+ 0.0,
2486
+ 0.0,
2487
+ 0.0
2488
+ ]
2489
+ },
2490
+ "reference_probabilities": [
2491
+ 0.0008233419586070937,
2492
+ 0.9991766580413929
2493
+ ],
2494
+ "reference_decision": "cooking"
2495
+ }
2496
+ ]
vela_coreai.py ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Standalone Vela decision adapter; rendering adapted from Apache-2.0 upstream.
2
+
3
+ See NOTICE. Neural inference uses Core AI; no PyTorch or source weights are needed.
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ import json
9
+ from collections.abc import AsyncIterator
10
+ from contextlib import asynccontextmanager
11
+ from pathlib import Path
12
+ from typing import Any
13
+
14
+ import numpy as np
15
+ from tokenizers import Tokenizer
16
+
17
+
18
+ class VelaCoreAI:
19
+ def __init__(self, root: str | Path) -> None:
20
+ self.root = Path(root)
21
+ self.manifest = json.loads((self.root / "manifest.json").read_text())
22
+ self.config = json.loads((self.root / "decision.json").read_text())
23
+ self.tokenizer = Tokenizer.from_file(str(self.root / "tokenizer.json"))
24
+ self.tokenizer.no_truncation()
25
+ self.tokenizer.no_padding()
26
+ self._model: Any = None
27
+ self._function: Any = None
28
+ self._busy = False
29
+
30
+ @classmethod
31
+ @asynccontextmanager
32
+ async def open(cls, root: str | Path = ".") -> AsyncIterator[VelaCoreAI]:
33
+ from coreai.runtime import AIModel, SpecializationOptions
34
+
35
+ instance = cls(root)
36
+ if not SpecializationOptions.is_supported():
37
+ raise RuntimeError("CPU specialization requires the macOS Core AI runtime")
38
+ instance._model = await AIModel.load(
39
+ instance.root / "model.aimodel", SpecializationOptions.cpu_only()
40
+ )
41
+ try:
42
+ instance._function = instance._model.load_function(instance.manifest["function"])
43
+ yield instance
44
+ finally:
45
+ instance._function = instance._model = None
46
+
47
+ @staticmethod
48
+ def _text(value: Any) -> str:
49
+ return (
50
+ value
51
+ if isinstance(value, str)
52
+ else json.dumps(value, ensure_ascii=False, separators=(",", ":"), allow_nan=False)
53
+ )
54
+
55
+ def pack(self, state: Any, question: Any) -> tuple[dict[str, np.ndarray[Any, Any]], list[str]]:
56
+ if not isinstance(state, (str, dict)):
57
+ raise ValueError("state must be text or a JSON object; media is not supported")
58
+ if not isinstance(question, dict) or set(question) - {"type", "instructions", "criteria"}:
59
+ raise ValueError("Provide one choice/noul question; unknown fields are rejected")
60
+ kind = question.get("type")
61
+ options: dict[str, Any]
62
+ if kind == "noul":
63
+ if "criteria" in question:
64
+ raise ValueError("noul uses the fixed no/yes options")
65
+ options = {"no": "", "yes": ""}
66
+ elif kind == "choice":
67
+ criteria = question.get("criteria")
68
+ if not isinstance(criteria, dict) or len(criteria) != 2:
69
+ raise ValueError("This experimental graph requires exactly two choice options")
70
+ options = criteria
71
+ if any(not isinstance(k, str) or not k for k in options):
72
+ raise ValueError("Option names must be nonempty strings")
73
+ else:
74
+ raise ValueError("Only choice and noul are included in this experimental artifact")
75
+
76
+ def encode(value: str) -> list[int]:
77
+ return list(self.tokenizer.encode(value, add_special_tokens=False).ids)
78
+
79
+ markers = self.config["marker_ids"]
80
+ ids = [self.config["bos_token_id"], markers["[Q]"]]
81
+ ids += encode(self._text(question.get("instructions", "")))
82
+ option_positions = []
83
+ for name, description in options.items():
84
+ text = "" if description is None else self._text(description)
85
+ option_positions.append(len(ids))
86
+ ids += [markers["[O]"], *encode(f"{name}: {text}" if text else name)]
87
+ ids.append(markers["[SEP_SCHEMA]"])
88
+ start = len(ids)
89
+ ids += [markers["[SEG_user]"], *encode(self._text(state))]
90
+ end = len(ids)
91
+ ids.append(self.config["eos_token_id"])
92
+ width = self.manifest["sequence_length"]
93
+ if len(ids) > width:
94
+ raise ValueError(f"Prompt needs {len(ids)} tokens; capacity is {width}; no truncation")
95
+ input_ids = np.full((1, width), self.config["pad_token_id"], dtype=np.int32)
96
+ input_ids[0, : len(ids)] = ids
97
+ attention_mask = np.zeros((1, width), dtype=np.int32)
98
+ attention_mask[0, : len(ids)] = 1
99
+ pool_mask = np.zeros((1, width), dtype=np.float32)
100
+ pool_mask[0, start:end] = 1
101
+ return {
102
+ "input_ids": input_ids,
103
+ "attention_mask": attention_mask,
104
+ "option_positions": np.array([option_positions], dtype=np.int32),
105
+ "pool_mask": pool_mask,
106
+ }, list(options)
107
+
108
+ async def probabilities(self, state: Any, question: Any) -> dict[str, float]:
109
+ from coreai.runtime import NDArray
110
+
111
+ if self._function is None:
112
+ raise RuntimeError("Use async with VelaCoreAI.open(...)")
113
+ if self._busy:
114
+ raise RuntimeError("This model instance is busy; await the previous request")
115
+ arrays, labels = self.pack(state, question)
116
+ self._busy = True
117
+ try:
118
+ output = await self._function({k: NDArray(v) for k, v in arrays.items()})
119
+ logits = np.asarray(output[self.manifest["output"]].numpy(), dtype=np.float64)
120
+ if logits.shape != (1, 2) or not np.isfinite(logits).all():
121
+ raise FloatingPointError("Invalid Core AI logits")
122
+ probabilities = np.exp(logits[0] - logits[0].max())
123
+ probabilities /= probabilities.sum()
124
+ return dict(zip(labels, probabilities.tolist(), strict=True))
125
+ finally:
126
+ self._busy = False
127
+
128
+ async def predict(self, state: Any, question: Any) -> dict[str, Any]:
129
+ probabilities = await self.probabilities(state, question)
130
+ if question["type"] == "noul":
131
+ return {"type": "noul", "noul": probabilities["yes"]}
132
+ return {
133
+ "type": "choice",
134
+ "choice": max(probabilities, key=probabilities.__getitem__),
135
+ "probabilities": probabilities,
136
+ }
verify_coreai.swift ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Foundation
2
+ import CoreAI
3
+
4
+ struct Fixture: Decodable {
5
+ let input_ids: [Int32]
6
+ let attention_mask: [Int32]
7
+ let option_positions: [Int32]
8
+ let pool_mask: [Float]
9
+ let expected: [Float]
10
+ let labels: [String]
11
+ let output: String
12
+ }
13
+
14
+ @main struct VerifyVela {
15
+ static func main() async throws {
16
+ guard CommandLine.arguments.count == 2 else {
17
+ fatalError("Usage: verify-vela /path/to/model-directory")
18
+ }
19
+ let root = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true)
20
+ let fixture = try JSONDecoder().decode(
21
+ Fixture.self, from: Data(contentsOf: root.appendingPathComponent("swift_fixture.json"))
22
+ )
23
+ let model = try await AIModel(
24
+ contentsOf: root.appendingPathComponent("model.aimodel"), options: .cpuOnly
25
+ )
26
+ guard let descriptor = model.functionDescriptor(for: "main"),
27
+ descriptor.stateNames.isEmpty,
28
+ let function = try model.loadFunction(named: "main") else {
29
+ fatalError("Missing stateless main function")
30
+ }
31
+ var inputs: [String: NDArray] = [:]
32
+ for (name, values) in [
33
+ ("input_ids", fixture.input_ids),
34
+ ("attention_mask", fixture.attention_mask),
35
+ ("option_positions", fixture.option_positions),
36
+ ] {
37
+ guard case .ndArray(let shape) = descriptor.inputDescriptor(of: name) else {
38
+ fatalError("Missing input \(name)")
39
+ }
40
+ var array = NDArray(descriptor: shape)
41
+ var view = array.mutableView(as: Int32.self)
42
+ view.copyElements(fromContentsOf: values)
43
+ inputs[name] = array
44
+ }
45
+ guard case .ndArray(let shape) = descriptor.inputDescriptor(of: "pool_mask") else {
46
+ fatalError("Missing pool_mask")
47
+ }
48
+ var pool = NDArray(descriptor: shape)
49
+ var poolView = pool.mutableView(as: Float.self)
50
+ poolView.copyElements(fromContentsOf: fixture.pool_mask)
51
+ inputs["pool_mask"] = pool
52
+ var result = try await function.run(inputs: inputs)
53
+ guard let output = result.remove(fixture.output)?.ndArray else {
54
+ fatalError("Missing logits")
55
+ }
56
+ let logits: [Float] = output.view(as: Float.self).withUnsafePointer { ptr, _, _ in
57
+ Array(UnsafeBufferPointer(start: ptr, count: 2))
58
+ }
59
+ guard logits.allSatisfy({ $0.isFinite }) else { fatalError("Nonfinite logits") }
60
+ let maximum = logits.max()!
61
+ let exps = logits.map { exp($0 - maximum) }
62
+ let total = exps.reduce(0, +)
63
+ let probabilities = exps.map { $0 / total }
64
+ let error = zip(probabilities, fixture.expected).map { abs($0 - $1) }.max()!
65
+ guard error < 1e-5 else { fatalError("Swift/Python parity failed: \(error)") }
66
+ let report: [String: Any] = [
67
+ "swift_native_coreai": true,
68
+ "device": "cpuOnly",
69
+ "labels": fixture.labels,
70
+ "probabilities": probabilities,
71
+ "maximum_probability_error_vs_python": error,
72
+ ]
73
+ print(String(data: try JSONSerialization.data(
74
+ withJSONObject: report, options: [.prettyPrinted, .sortedKeys]
75
+ ), encoding: .utf8)!)
76
+ }
77
+ }