Start the private MagicEightBall model card
Browse files- .gitattributes +2 -0
- COMPETITORS.md +27 -0
- LICENSE +228 -0
- NOTICE.txt +9 -0
- README.md +78 -0
- SHA256SUMS.txt +29 -0
- assets/relay-decisions-still.webp +0 -0
- assets/relay-decisions.webp +3 -0
- assets/workbench.webp +3 -0
- blob_layout.py +43 -0
- bundles/magiceightball.m8b +0 -0
- compact_tokenizer.py +142 -0
- measurements/compact-gather-physical-ncs1.json +398 -0
- measurements/compare-compiled-table-cpu.json +189 -0
- measurements/compare-openvino-2020-cpu.json +204 -0
- measurements/constant-free-pooling.json +62 -0
- measurements/decision-diagram-native-controls.json +57 -0
- measurements/native-release-and-stock-controls.json +258 -0
- measurements/ncs1-cpu-comparison.json +985 -0
- measurements/release-stream-ncs1.json +57 -0
- measurements/release-vector-ncs1.json +139 -0
- measurements/soak-release-30m-ncs1.json +1584 -0
- measurements/streamed-parameters-compatibility.json +184 -0
- measurements/two-banks-ncs1.json +65 -0
- needle3-tokenizer.m8t.xz +3 -0
- policy.py +308 -0
- radix.py +31 -0
- release.py +65 -0
- runtime.py +455 -0
- stream.py +85 -0
- support.json +22 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ 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 |
+
assets/relay-decisions.webp filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/workbench.webp filter=lfs diff=lfs merge=lfs -text
|
COMPETITORS.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MagicEightBall NCS1 size and competitor comparison
|
| 2 |
+
|
| 3 |
+
The comparison target is a physically loaded executable for the original Intel Neural Compute Stick. It must evaluate the seven support-policy facts, return all raw rule bits, and preserve the yes/no answer, category and action. The host uses the same exact token count and evidence extractor for the 131,072-token test. Report the executable, resident policy data, application files and cold/warm timing separately.
|
| 4 |
+
|
| 5 |
+
## Matched decisions
|
| 6 |
+
|
| 7 |
+
The shipped physical NCS1 Gather and six CPU backends agreed on all 128 fact assignments, both 131,072-token fixtures, and overflow rejection. The controls cover Gather on OpenVINO 2020.3.2 and 2022.3.1, a Boolean interpreter, a 128-byte lookup table in Python and C, and a 46-byte decision diagram. The table and diagram figures count decision data. The compiled C kernel uses a separate 2,560-byte DLL, and the 512-byte NCS1 figure counts the native executable. [Matched measurements](measurements/ncs1-cpu-comparison.json) · [Compiled C lookup](measurements/compare-compiled-table-cpu.json) · [Legacy OpenVINO CPU](measurements/compare-openvino-2020-cpu.json)
|
| 8 |
+
|
| 9 |
+
For 128 short decisions in one batch, the compiled CPU lookup took 3.29 ms median and the legacy OpenVINO CPU control took 4.04 ms. The NCS1 took 6.43 ms median in one batch, down from 223.70 ms as separate submissions. The compiled CPU lookup processed a prepared batch of 128 decisions in 0.015 ms median, including the Python-to-C call and packing. [Compiled C timings](measurements/compare-compiled-table-cpu.json) · [Legacy CPU timings](measurements/compare-openvino-2020-cpu.json) · [NCS1 timings](measurements/ncs1-cpu-comparison.json)
|
| 10 |
+
|
| 11 |
+
The native alternatives include convolution, dense and gates, a phrase scanner, radix Gather and weight-free clause evaluation. MaxPool and ReduceMax kept their truth-table results but increased the compiled size or transferred more data. A constant-free I32 Gather with one input also returned all 128 exact outputs. Splitting that input into the policy words and addresses produced a 136-byte serialized stage that occupied 192 bytes after alignment. The single-input artifact stayed at 512 bytes and required another 32 bytes of policy data. Separate inputs raised the artifact to 576 bytes. [Stock compiler controls](measurements/native-release-and-stock-controls.json) · [Pooling controls](measurements/constant-free-pooling.json) · [Streamed-parameter controls](measurements/streamed-parameters-compatibility.json)
|
| 12 |
+
|
| 13 |
+
The arithmetic lowering of the 46-byte decision diagram compiled to a **9,600-byte** MA2450 executable with 44 stages. The legacy FP16 IR matched all 128 assignments on the OpenVINO 2020.3.2 CPU plugin and 115 on 2022.3.1 CPU. The `Where` lowering passed the ONNX Runtime test and was rejected by the legacy Model Optimizer. Both remain offline comparisons. [Decision diagram lowering controls](measurements/decision-diagram-native-controls.json)
|
| 14 |
+
|
| 15 |
+
The resident rank-one Gather occupies 192 bytes of headers, 64 bytes each for input and output descriptors, 128 bytes for its stage and 64 bytes for the constants section in the stock 2020.3.2 exporter. This establishes a floor for that exporter and layout. Other stage types, toolchains and device-accepted layouts remain part of the search. [Intel section serializer](https://github.com/openvinotoolkit/openvino/blob/2020.3.2/inference-engine/src/vpu/graph_transformer/src/backend/serialize.cpp#L150-L175) · [Intel Gather stage](https://github.com/openvinotoolkit/openvino/blob/2020.3.2/inference-engine/src/vpu/graph_transformer/src/stages/gather.cpp#L62-L82)
|
| 16 |
+
|
| 17 |
+
## Published context
|
| 18 |
+
|
| 19 |
+
| Reference | What its published evidence covers |
|
| 20 |
+
|---|---|
|
| 21 |
+
| Intel NCSDK and Neural Compute Application Zoo | Original-stick compiler and application examples. The applications provide VPU compatibility context across model families. [NCSDK](https://github.com/movidius/ncsdk/releases) · [Application zoo](https://github.com/movidius/ncappzoo) |
|
| 22 |
+
| Blouw et al. | Physical Movidius NCS and CPU, GPU, Jetson and Loihi comparisons on a trained keyword spotter. [Paper](https://arxiv.org/abs/1812.01739) · [Benchmark source](https://github.com/abr/power_benchmarks) |
|
| 23 |
+
| fastText.zip | Learned text classification down to 16 KiB on public datasets. [Table 2](https://arxiv.org/pdf/1612.03651#page=7) |
|
| 24 |
+
| Bonsai | Learned feature classifiers at 2 KB and experiments on resource-constrained microcontrollers. [Paper](https://proceedings.mlr.press/v70/kumar17a.html) |
|
| 25 |
+
| FastGRNN | A 1 KB trained wake-word model with microcontroller deployment. [Paper](https://proceedings.neurips.cc/paper_files/paper/2018/file/ab013ca67cf2d50796b0c11d1b8bc95d-Paper.pdf) |
|
| 26 |
+
|
| 27 |
+
These public results have different tasks, inputs and storage boundaries. The search across original-stick toolchain examples, published hardware benchmarks and compact decision-model papers found no public artifact with the same support-policy and full-context contract. The defensible size claim is the smallest physically verified native artifact in this comparison. A worldwide record remains unverified.
|
LICENSE
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MyriadForge source and policy
|
| 2 |
+
|
| 3 |
+
MIT License
|
| 4 |
+
|
| 5 |
+
Copyright (c) 2026 Chad St. Thomas
|
| 6 |
+
|
| 7 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 8 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 9 |
+
in the Software without restriction, including without limitation the rights
|
| 10 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 11 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 12 |
+
furnished to do so, subject to the following conditions:
|
| 13 |
+
|
| 14 |
+
The above copyright notice and this permission notice shall be included in all
|
| 15 |
+
copies or substantial portions of the Software.
|
| 16 |
+
|
| 17 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 18 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 19 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 20 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 21 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 22 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 23 |
+
SOFTWARE.
|
| 24 |
+
|
| 25 |
+
Needle 3 tokenizer
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
Apache License
|
| 29 |
+
Version 2.0, January 2004
|
| 30 |
+
http://www.apache.org/licenses/
|
| 31 |
+
|
| 32 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 33 |
+
|
| 34 |
+
1. Definitions.
|
| 35 |
+
|
| 36 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 37 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 38 |
+
|
| 39 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 40 |
+
the copyright owner that is granting the License.
|
| 41 |
+
|
| 42 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 43 |
+
other entities that control, are controlled by, or are under common
|
| 44 |
+
control with that entity. For the purposes of this definition,
|
| 45 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 46 |
+
direction or management of such entity, whether by contract or
|
| 47 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 48 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 49 |
+
|
| 50 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 51 |
+
exercising permissions granted by this License.
|
| 52 |
+
|
| 53 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 54 |
+
including but not limited to software source code, documentation
|
| 55 |
+
source, and configuration files.
|
| 56 |
+
|
| 57 |
+
"Object" form shall mean any form resulting from mechanical
|
| 58 |
+
transformation or translation of a Source form, including but
|
| 59 |
+
not limited to compiled object code, generated documentation,
|
| 60 |
+
and conversions to other media types.
|
| 61 |
+
|
| 62 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 63 |
+
Object form, made available under the License, as indicated by a
|
| 64 |
+
copyright notice that is included in or attached to the work
|
| 65 |
+
(an example is provided in the Appendix below).
|
| 66 |
+
|
| 67 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 68 |
+
form, that is based on (or derived from) the Work and for which the
|
| 69 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 70 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 71 |
+
of this License, Derivative Works shall not include works that remain
|
| 72 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 73 |
+
the Work and Derivative Works thereof.
|
| 74 |
+
|
| 75 |
+
"Contribution" shall mean any work of authorship, including
|
| 76 |
+
the original version of the Work and any modifications or additions
|
| 77 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 78 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 79 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 80 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 81 |
+
means any form of electronic, verbal, or written communication sent
|
| 82 |
+
to the Licensor or its representatives, including but not limited to
|
| 83 |
+
communication on electronic mailing lists, source code control systems,
|
| 84 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 85 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 86 |
+
excluding communication that is conspicuously marked or otherwise
|
| 87 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 88 |
+
|
| 89 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 90 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 91 |
+
subsequently incorporated within the Work.
|
| 92 |
+
|
| 93 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 94 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 95 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 96 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 97 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 98 |
+
Work and such Derivative Works in Source or Object form.
|
| 99 |
+
|
| 100 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 101 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 102 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 103 |
+
(except as stated in this section) patent license to make, have made,
|
| 104 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 105 |
+
where such license applies only to those patent claims licensable
|
| 106 |
+
by such Contributor that are necessarily infringed by their
|
| 107 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 108 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 109 |
+
institute patent litigation against any entity (including a
|
| 110 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 111 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 112 |
+
or contributory patent infringement, then any patent licenses
|
| 113 |
+
granted to You under this License for that Work shall terminate
|
| 114 |
+
as of the date such litigation is filed.
|
| 115 |
+
|
| 116 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 117 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 118 |
+
modifications, and in Source or Object form, provided that You
|
| 119 |
+
meet the following conditions:
|
| 120 |
+
|
| 121 |
+
(a) You must give any other recipients of the Work or
|
| 122 |
+
Derivative Works a copy of this License; and
|
| 123 |
+
|
| 124 |
+
(b) You must cause any modified files to carry prominent notices
|
| 125 |
+
stating that You changed the files; and
|
| 126 |
+
|
| 127 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 128 |
+
that You distribute, all copyright, patent, trademark, and
|
| 129 |
+
attribution notices from the Source form of the Work,
|
| 130 |
+
excluding those notices that do not pertain to any part of
|
| 131 |
+
the Derivative Works; and
|
| 132 |
+
|
| 133 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 134 |
+
distribution, then any Derivative Works that You distribute must
|
| 135 |
+
include a readable copy of the attribution notices contained
|
| 136 |
+
within such NOTICE file, excluding those notices that do not
|
| 137 |
+
pertain to any part of the Derivative Works, in at least one
|
| 138 |
+
of the following places: within a NOTICE text file distributed
|
| 139 |
+
as part of the Derivative Works; within the Source form or
|
| 140 |
+
documentation, if provided along with the Derivative Works; or,
|
| 141 |
+
within a display generated by the Derivative Works, if and
|
| 142 |
+
wherever such third-party notices normally appear. The contents
|
| 143 |
+
of the NOTICE file are for informational purposes only and
|
| 144 |
+
do not modify the License. You may add Your own attribution
|
| 145 |
+
notices within Derivative Works that You distribute, alongside
|
| 146 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 147 |
+
that such additional attribution notices cannot be construed
|
| 148 |
+
as modifying the License.
|
| 149 |
+
|
| 150 |
+
You may add Your own copyright statement to Your modifications and
|
| 151 |
+
may provide additional or different license terms and conditions
|
| 152 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 153 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 154 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 155 |
+
the conditions stated in this License.
|
| 156 |
+
|
| 157 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 158 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 159 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 160 |
+
this License, without any additional terms or conditions.
|
| 161 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 162 |
+
the terms of any separate license agreement you may have executed
|
| 163 |
+
with Licensor regarding such Contributions.
|
| 164 |
+
|
| 165 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 166 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 167 |
+
except as required for reasonable and customary use in describing the
|
| 168 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 169 |
+
|
| 170 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 171 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 172 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 173 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 174 |
+
implied, including, without limitation, any warranties or conditions
|
| 175 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 176 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 177 |
+
appropriateness of using or redistributing the Work and assume any
|
| 178 |
+
risks associated with Your exercise of permissions under this License.
|
| 179 |
+
|
| 180 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 181 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 182 |
+
unless required by applicable law (such as deliberate and grossly
|
| 183 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 184 |
+
liable to You for damages, including any direct, indirect, special,
|
| 185 |
+
incidental, or consequential damages of any character arising as a
|
| 186 |
+
result of this License or out of the use or inability to use the
|
| 187 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 188 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 189 |
+
other commercial damages or losses), even if such Contributor
|
| 190 |
+
has been advised of the possibility of such damages.
|
| 191 |
+
|
| 192 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 193 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 194 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 195 |
+
or other liability obligations and/or rights consistent with this
|
| 196 |
+
License. However, in accepting such obligations, You may act only
|
| 197 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 198 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 199 |
+
defend, and hold each Contributor harmless for any liability
|
| 200 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 201 |
+
of your accepting any such warranty or additional liability.
|
| 202 |
+
|
| 203 |
+
END OF TERMS AND CONDITIONS
|
| 204 |
+
|
| 205 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 206 |
+
|
| 207 |
+
To apply the Apache License to your work, attach the following
|
| 208 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 209 |
+
replaced with your own identifying information. (Don't include
|
| 210 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 211 |
+
comment syntax for the file format. We also recommend that a
|
| 212 |
+
file or class name and description of purpose be included on the
|
| 213 |
+
same "printed page" as the copyright notice for easier
|
| 214 |
+
identification within third-party archives.
|
| 215 |
+
|
| 216 |
+
Copyright [yyyy] [name of copyright owner]
|
| 217 |
+
|
| 218 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 219 |
+
you may not use this file except in compliance with the License.
|
| 220 |
+
You may obtain a copy of the License at
|
| 221 |
+
|
| 222 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 223 |
+
|
| 224 |
+
Unless required by applicable law or agreed to in writing, software
|
| 225 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 226 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 227 |
+
See the License for the specific language governing permissions and
|
| 228 |
+
limitations under the License.
|
NOTICE.txt
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MagicEightBall
|
| 2 |
+
MyriadForge source and policy are distributed under the MIT License.
|
| 3 |
+
|
| 4 |
+
The Needle 3 tokenizer is distributed under the Apache License, Version 2.0.
|
| 5 |
+
Source: Cactus Compute, Cactus-Compute/needle3
|
| 6 |
+
Revision: d6c7d6a2e9655505e0f8e23339356dd1705900eb
|
| 7 |
+
URL: https://huggingface.co/Cactus-Compute/needle3/blob/d6c7d6a2e9655505e0f8e23339356dd1705900eb/tokenizer/tokenizer.model
|
| 8 |
+
Source SHA-256: 97dfd5666620b19875deba9e55953d312364e7763bd08bee428b94f1b9491b25
|
| 9 |
+
The tokenizer is repackaged losslessly. The loader restores and verifies the source bytes.
|
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: other
|
| 5 |
+
license_name: mit-and-apache-2.0
|
| 6 |
+
license_link: LICENSE
|
| 7 |
+
tags:
|
| 8 |
+
- intel-ncs1
|
| 9 |
+
- myriad-2
|
| 10 |
+
- openvino
|
| 11 |
+
- fp16
|
| 12 |
+
- decision-model
|
| 13 |
+
- rule-engine
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# MagicEightBall for Intel NCS1
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+
|
| 20 |
+
MagicEightBall reads up to **131,072 Needle 3 tokens** and returns a Boolean answer, a category, and a proposed action. The host counts tokens and extracts evidence. This private development preview packages the **512-byte** native build that passed the sustained NCS1 run. A **480-byte** candidate has passed direct physical replay with the same decision contract.
|
| 21 |
+
|
| 22 |
+
## Three decisions at the workbench
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+
- **Approve a billing review.** `Duplicate charge. Review authorized.` returns `true`, `billing`, and `review_billing`.
|
| 27 |
+
- **Clear a proposed action.** `Duplicate charge. Review authorized. Do not route.` returns `false`, `billing`, and `null`.
|
| 28 |
+
- **Abstain when evidence is absent.** `General help requested.` returns `false`, `null`, and `null`.
|
| 29 |
+
|
| 30 |
+
The three fields are `may_route`, `category`, and `action`. The caller receives the proposal as data. [Support policy](./support.json) · [Still image](./assets/relay-decisions-still.webp)
|
| 31 |
+
|
| 32 |
+
## Run on the original stick
|
| 33 |
+
|
| 34 |
+
Use a Windows NCS1 toolchain with OpenVINO 2020.3.2, Python 3.7, NumPy, and SentencePiece 0.1.99. Download or clone these files together and keep the tokenizer beside `runtime.py`. Replace the toolchain path with your installation. [MyriadForge setup guide](https://github.com/chadstthomas-svg/myriadforge/blob/main/docs/NCS1_ROADMAP.md)
|
| 35 |
+
|
| 36 |
+
```powershell
|
| 37 |
+
$toolchain = 'D:/NTVStudy/tools/ncs1'
|
| 38 |
+
$python = Join-Path $toolchain '.venv/Scripts/python.exe'
|
| 39 |
+
& $python runtime.py bundles/magiceightball.m8b --toolchain $toolchain --release-stick ncs1 --text 'duplicate charge. review authorized.'
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
For a batch, use `--serve` and send one JSON line containing a `documents` array. For updates to an existing document, use `--stream` and send `{"append":"next fragment"}` per line. The final accepted document may contain exactly 131,072 tokens. An append that would exceed the limit is rejected and preserves the prior document state. [Runtime source](./runtime.py) · [Physical stream replay](./measurements/release-stream-ncs1.json)
|
| 43 |
+
|
| 44 |
+
## Measurements
|
| 45 |
+
|
| 46 |
+
The release passed all 128 support-policy assignments on a physical NCS1, including full-context fixtures, a late veto, and rejection at 131,073 tokens. The matched comparison used 31 warmed repeats per workload on the same Intel Core i7-12650H Windows host. All rows below use the same tokenizer and evidence extraction. [Physical release replay](./measurements/release-vector-ncs1.json) · [Complete comparison report](./measurements/ncs1-cpu-comparison.json)
|
| 47 |
+
|
| 48 |
+
| Backend | Decision artifact | 128 short decisions, p50 / p95 | Fresh 131,072-token authorization, p50 / p95 |
|
| 49 |
+
|---|---:|---:|---:|
|
| 50 |
+
| Physical NCS1, one request | 512-byte native executable | 6.43 / 10.73 ms | 44.24 / 55.55 ms |
|
| 51 |
+
| OpenVINO CPU, matched Gather | 258-byte source ONNX | 3.91 / 5.99 ms | 44.25 / 55.24 ms |
|
| 52 |
+
| CPU Boolean interpreter | 714-byte source policy | 4.57 / 8.26 ms | 39.26 / 49.48 ms |
|
| 53 |
+
| CPU lookup | 128-byte generated table | 3.82 / 6.95 ms | 37.63 / 50.03 ms |
|
| 54 |
+
| CPU decision diagram | 46-byte generated diagram | 4.03 / 7.37 ms | 37.92 / 52.50 ms |
|
| 55 |
+
|
| 56 |
+
The CPU table and diagram figures cover decision data. Their runners also use the policy, tokenizer, and output mapping. The NCS1 took 223.70 ms median for the same 128 decisions issued one by one, about 35 times as long as the batch. In the streaming replay, short appends near the context limit took **1.90 ms median** after ingesting the initial prefix. Fresh full-context requests spend most of their time in host preparation. [Complete comparison report](./measurements/ncs1-cpu-comparison.json) · [Physical stream replay](./measurements/release-stream-ncs1.json)
|
| 57 |
+
|
| 58 |
+
The **480-byte radix Gather** is the smallest native artifact verified in this comparison. It passed all 128 assignments, two exact-limit documents and overflow rejection on NCS1. It took 5.31 ms median for one batch of 128 short decisions, compared with 5.37 ms for its 512-byte padded control. The candidate is recorded separately from the sustained build in this draft. [Physical compact comparison](./measurements/compact-gather-physical-ncs1.json) · [Size and competitor comparison](./COMPETITORS.md)
|
| 59 |
+
|
| 60 |
+
A **30-minute** mixed workload on the physical NCS1 completed **107,104 native requests** and **3,507,656 checked decisions**, with **26,776 overflows rejected**. The run exercised full documents, incremental vetoes and 128-decision batches on the resident release. [Physical soak report](./measurements/soak-release-30m-ncs1.json)
|
| 61 |
+
|
| 62 |
+
## Industry use cases
|
| 63 |
+
|
| 64 |
+
The public version will include runnable industry policies, illustrative input documents and labeled simulation reports. Each simulation will publish the expected answer, category and proposed action, and cover incomplete evidence, explicit vetoes and distracting text. Simulated results measure behavior against the declared policy. Physical load and latency results are tracked separately.
|
| 65 |
+
|
| 66 |
+
## Scope and downloads
|
| 67 |
+
|
| 68 |
+
The shipped English support policy recognizes specific phrases and evaluates authored Boolean rules. Use it for deterministic routing and action proposals within that policy. General support chat, interpretation of new intents, and execution of actions belong in the surrounding application. The native NCS1 evidence applies to the original stick and the pinned runtime. The archive carries a separately compiled legacy NCS2 image.
|
| 69 |
+
|
| 70 |
+
| Artifact | Bytes |
|
| 71 |
+
|---|---:|
|
| 72 |
+
| [Native release archive](./bundles/magiceightball.m8b), including both targets | 735 |
|
| 73 |
+
| [Shared tokenizer](./needle3-tokenizer.m8t.xz) | 23,412 |
|
| 74 |
+
| Release data total | **24,147** |
|
| 75 |
+
|
| 76 |
+
The totals cover those two files. Python, OpenVINO, firmware, runner source and the artwork have separate sizes. [Checksums](./SHA256SUMS.txt)
|
| 77 |
+
|
| 78 |
+
MyriadForge source and policy use the MIT license. The shared tokenizer restores the original Apache-2.0 Needle 3 tokenizer bytes and verifies the pinned SHA-256. [License](./LICENSE) · [Tokenizer provenance](./NOTICE.txt)
|
SHA256SUMS.txt
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
b3306882eafa0140c64782511e2410f7c3af67f65c60e602ff0b13a8d890c665 assets/relay-decisions-still.webp
|
| 2 |
+
8159a4e6eee107efef2311842a81ec3dcf0a763dc6d7bf10dd969c43f3cebe99 assets/relay-decisions.webp
|
| 3 |
+
e9775806f7bdc8b8d68c3dad5c83b289503110bed04a4596bf9662ee9ef801a1 assets/workbench.webp
|
| 4 |
+
eecb32e0e68e90fef5e0b55f52a6958e1155e2687ba7ef8c5af35cddef947185 blob_layout.py
|
| 5 |
+
6076cc698d9948e5a133ea63b331195aa5c0e2e00c4173310a84614748917850 bundles/magiceightball.m8b
|
| 6 |
+
81b1fa3936a84bf8736ad900d35754b5166a2fa129aac2c0b83818c3a0e4a5fe compact_tokenizer.py
|
| 7 |
+
e05dfd67f37d302212427f94157d841982763c7056e27d57678a159ca3640701 COMPETITORS.md
|
| 8 |
+
d5c201295a6e23eaf03fcdd529af31629b48bb1a13c5c5f24c75477506434dc9 LICENSE
|
| 9 |
+
cfd533aaa0b4750b644be9425680bbd362f106de85c82a69f20621c6155436bc measurements/compact-gather-physical-ncs1.json
|
| 10 |
+
ddf47356e856ad45ebf207c0ad7ae3d7f2bb959595d98f8048072ab1b1afaab5 measurements/compare-compiled-table-cpu.json
|
| 11 |
+
6230f1f350a25bf4a32962ba7d79e03dbd07ccd97995db241b8b7ec9a407bee6 measurements/compare-openvino-2020-cpu.json
|
| 12 |
+
d1b5024052a92673d728eb08b8f89fa50977db0a36635b53414d0edc8c5a49e9 measurements/constant-free-pooling.json
|
| 13 |
+
c8ef45bb68c3ce6660a62b92279fdb109ec4c483824c508a7b862a2290d9297d measurements/decision-diagram-native-controls.json
|
| 14 |
+
109a416a538d082feed498c8643c9ddcd682d49dd29a1ca764b85475f5d2d7df measurements/native-release-and-stock-controls.json
|
| 15 |
+
92ff4284bb33c5bfcc267e34798ac257799cbd327ce80d3d6689219bd4507cdf measurements/ncs1-cpu-comparison.json
|
| 16 |
+
e5b13cf4a935892eabe91f7e9a8b7e1766dadcfc01d7602f4bc0bbf1dfbd9906 measurements/release-stream-ncs1.json
|
| 17 |
+
4c75d00a389d03b4eed35c6d88ad4d1100ae37d65eec2bf42f5a2748dee26518 measurements/release-vector-ncs1.json
|
| 18 |
+
13bbcedfccc4af494095e117ebea92caaa4e41b1f4dc6662332da9588ce02d52 measurements/soak-release-30m-ncs1.json
|
| 19 |
+
573a90902a5eb06a3ca2ed3cdc225992d5bf021fdb7c1a923ca8c84954770a7d measurements/streamed-parameters-compatibility.json
|
| 20 |
+
f4ea979d548c51410e8bce44cf25980dc8813fe0ce2999319e8dc62ef14ff769 measurements/two-banks-ncs1.json
|
| 21 |
+
97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9 needle3-tokenizer.m8t.xz
|
| 22 |
+
ece5848c64d031c0e17952cda3232d805cb5841f3a8c06ac009f399b57b266d1 NOTICE.txt
|
| 23 |
+
52ef0bb07e52712d16073c73030790e5d6a746c0291492e03917e13749dccdc2 policy.py
|
| 24 |
+
1f530b66213e4c46939580856dcb4ccf57516b7f55202516bb7128ea4414110a radix.py
|
| 25 |
+
cb4ec9b4a73de98bc2adc585761a66e76b38a66cde04849f143221fde64e4a38 README.md
|
| 26 |
+
4c122588a2f03c2fe09baf9f9308ca2785fe508634dc558b2c4e855aea381c8e release.py
|
| 27 |
+
ee797b0ff94fbf99117cf0c580f118f447f0dd0100d1a19f64c6e7e4ffdfef8f runtime.py
|
| 28 |
+
a1215ecf1dd1cec6f13221a00e48a44435b136291287fa7dccc05f5dbef4b9bc stream.py
|
| 29 |
+
9b9c5c754c41e0dd8b8c5e2f2d7415e30c709d1915f333fabb7c83261ff35a22 support.json
|
assets/relay-decisions-still.webp
ADDED
|
assets/relay-decisions.webp
ADDED
|
Git LFS Details
|
assets/workbench.webp
ADDED
|
Git LFS Details
|
blob_layout.py
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Read the documented section layout of an OpenVINO 2020.3 MYRIAD blob."""
|
| 2 |
+
import argparse
|
| 3 |
+
import hashlib
|
| 4 |
+
import json
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
import struct
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
# OpenVINO 2020.3.2 blob_format.hpp and backend/serialize.cpp.
|
| 10 |
+
ELF_HEADER_SIZE = 52
|
| 11 |
+
HEADER = struct.Struct("<20I")
|
| 12 |
+
SECTION_NAMES = ("headers", "input_descriptor", "output_descriptor", "stages", "constants")
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def inspect_blob(data):
|
| 16 |
+
if not data.startswith(b"\x7felf") or len(data) < ELF_HEADER_SIZE + HEADER.size:
|
| 17 |
+
raise ValueError("Expected an OpenVINO 2020.3 MYRIAD blob")
|
| 18 |
+
fields = HEADER.unpack_from(data, ELF_HEADER_SIZE)
|
| 19 |
+
magic, size, major, minor = fields[:4]
|
| 20 |
+
boundaries = (0, *fields[16:], size)
|
| 21 |
+
if (magic != 9709 or major != 5 or size != len(data)
|
| 22 |
+
or list(boundaries) != sorted(boundaries) or any(n % 64 for n in boundaries)):
|
| 23 |
+
raise ValueError("Invalid legacy MYRIAD header or section layout")
|
| 24 |
+
layout = {name: end - start for name, start, end in zip(SECTION_NAMES, boundaries, boundaries[1:])}
|
| 25 |
+
stage_count = fields[6]
|
| 26 |
+
stage = None
|
| 27 |
+
if stage_count == 1:
|
| 28 |
+
if layout["stages"] < 12:
|
| 29 |
+
raise ValueError("Invalid MYRIAD stage")
|
| 30 |
+
length, operation, shaves = struct.unpack_from("<3I", data, fields[18])
|
| 31 |
+
if not 12 <= length <= layout["stages"]:
|
| 32 |
+
raise ValueError("Invalid legacy MYRIAD stage length")
|
| 33 |
+
stage = {"length": length, "type": operation, "shaves_field": shaves}
|
| 34 |
+
return dict(bytes=size, sha256=hashlib.sha256(data).hexdigest(), version=[major, minor],
|
| 35 |
+
inputs=fields[4], outputs=fields[5], stage_count=stage_count,
|
| 36 |
+
input_bytes=fields[7], output_bytes=fields[8], sections=layout, sole_stage=stage)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
if __name__ == "__main__":
|
| 40 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 41 |
+
parser.add_argument("blobs", nargs="+", type=Path)
|
| 42 |
+
args = parser.parse_args()
|
| 43 |
+
print(json.dumps({str(path): inspect_blob(path.read_bytes()) for path in args.blobs}, indent=2))
|
bundles/magiceightball.m8b
ADDED
|
Binary file (735 Bytes). View file
|
|
|
compact_tokenizer.py
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Lossless storage for the pinned Needle 3 SentencePiece model."""
|
| 2 |
+
import argparse
|
| 3 |
+
from collections import Counter
|
| 4 |
+
import hashlib
|
| 5 |
+
import lzma
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
import struct
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
TOKENIZER_HASH = "97dfd5666620b19875deba9e55953d312364e7763bd08bee428b94f1b9491b25"
|
| 11 |
+
LEGACY_MAGIC = b"M8T1"
|
| 12 |
+
MAGIC = b"M8T2"
|
| 13 |
+
HEADER = struct.Struct("<4s3H")
|
| 14 |
+
SPECIAL_PIECES = 284
|
| 15 |
+
MAX_SHORT_PIECE = 120
|
| 16 |
+
METASPACE = "\u2581".encode("utf8")
|
| 17 |
+
HAS_METASPACE = 128
|
| 18 |
+
LENGTH_TABLE = bytes(range(HAS_METASPACE)) * 2
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def _varint(number):
|
| 22 |
+
encoded = bytearray()
|
| 23 |
+
while number >= 128:
|
| 24 |
+
encoded.append((number & 127) | 128)
|
| 25 |
+
number >>= 7
|
| 26 |
+
encoded.append(number)
|
| 27 |
+
return bytes(encoded)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def _field(tag, contents):
|
| 31 |
+
return bytes([tag]) + _varint(len(contents)) + contents
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def _byte_fallback():
|
| 35 |
+
# SentencePiece BYTE messages are the same except for the hex spelling.
|
| 36 |
+
return b"".join(b"\x0a\x0f\x0a\x06<0x%02X>\x15\0\0\0\0\x18\x06" % value
|
| 37 |
+
for value in range(256))
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def _restore(data):
|
| 41 |
+
if len(data) < HEADER.size:
|
| 42 |
+
raise ValueError("Missing compact tokenizer header")
|
| 43 |
+
magic, prefix_size, suffix_size, count = HEADER.unpack_from(data)
|
| 44 |
+
prefix_end = HEADER.size + prefix_size
|
| 45 |
+
suffix_end = prefix_end + suffix_size
|
| 46 |
+
lengths_end = suffix_end + count
|
| 47 |
+
descriptors = data[suffix_end:lengths_end]
|
| 48 |
+
if magic not in (MAGIC, LEGACY_MAGIC) or count == 0 or len(descriptors) != count:
|
| 49 |
+
raise ValueError("Invalid compact tokenizer layout")
|
| 50 |
+
bucketed = magic == MAGIC
|
| 51 |
+
lengths = descriptors.translate(LENGTH_TABLE) if bucketed else descriptors
|
| 52 |
+
if sum(lengths) != len(data) - lengths_end:
|
| 53 |
+
raise ValueError("Invalid compact tokenizer layout")
|
| 54 |
+
original = bytearray(data[HEADER.size:prefix_end])
|
| 55 |
+
# The outer length is piece length plus the two string bytes and five score bytes.
|
| 56 |
+
prefixes = [None] * 256
|
| 57 |
+
for desc in set(descriptors):
|
| 58 |
+
marker = METASPACE if bucketed and desc & HAS_METASPACE else b""
|
| 59 |
+
length = (LENGTH_TABLE[desc] if bucketed else desc) + len(marker)
|
| 60 |
+
if not 1 <= length <= MAX_SHORT_PIECE:
|
| 61 |
+
raise ValueError("Invalid compact tokenizer piece length")
|
| 62 |
+
prefixes[desc] = bytes([10, length + 7, 10, length]) + marker
|
| 63 |
+
scores = struct.pack("<%df" % count, *(-float(rank) for rank in range(count)))
|
| 64 |
+
offset = lengths_end
|
| 65 |
+
score_offset = 0
|
| 66 |
+
# NORMAL is the protobuf default. Rank zero has the original -0.0 bit pattern.
|
| 67 |
+
if bucketed:
|
| 68 |
+
original.extend(_byte_fallback())
|
| 69 |
+
positions = [0] * HAS_METASPACE
|
| 70 |
+
for length, amount in sorted(Counter(lengths).items()):
|
| 71 |
+
positions[length] = offset
|
| 72 |
+
offset += length * amount
|
| 73 |
+
for desc in descriptors:
|
| 74 |
+
length = desc & (HAS_METASPACE - 1)
|
| 75 |
+
start = positions[length]
|
| 76 |
+
end = start + length
|
| 77 |
+
positions[length] = end
|
| 78 |
+
original.extend(prefixes[desc] + data[start:end] + b"\x15" + scores[score_offset:score_offset + 4])
|
| 79 |
+
score_offset += 4
|
| 80 |
+
else:
|
| 81 |
+
for length in lengths:
|
| 82 |
+
end = offset + length
|
| 83 |
+
original.extend(prefixes[length] + data[offset:end] + b"\x15" + scores[score_offset:score_offset + 4])
|
| 84 |
+
offset = end
|
| 85 |
+
score_offset += 4
|
| 86 |
+
original.extend(data[prefix_end:suffix_end])
|
| 87 |
+
return bytes(original)
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
def read_tokenizer(path):
|
| 91 |
+
data = path.read_bytes()
|
| 92 |
+
if path.suffix == ".xz":
|
| 93 |
+
data = lzma.decompress(data)
|
| 94 |
+
if data.startswith((MAGIC, LEGACY_MAGIC)):
|
| 95 |
+
data = _restore(data)
|
| 96 |
+
if hashlib.sha256(data).hexdigest() != TOKENIZER_HASH:
|
| 97 |
+
raise ValueError("Unexpected Needle 3 tokenizer hash")
|
| 98 |
+
return data
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def pack_tokenizer(original):
|
| 102 |
+
# Only the build tool uses protobuf. Runtime reconstruction is stdlib-only.
|
| 103 |
+
from sentencepiece import sentencepiece_model_pb2
|
| 104 |
+
|
| 105 |
+
if hashlib.sha256(original).hexdigest() != TOKENIZER_HASH:
|
| 106 |
+
raise ValueError("Expected the pinned Needle 3 tokenizer")
|
| 107 |
+
model = sentencepiece_model_pb2.ModelProto.FromString(original)
|
| 108 |
+
prefix = b"".join(_field(10, piece.SerializeToString(deterministic=True))
|
| 109 |
+
for piece in model.pieces[:SPECIAL_PIECES])
|
| 110 |
+
fallback = _byte_fallback()
|
| 111 |
+
if not prefix.endswith(fallback):
|
| 112 |
+
raise ValueError("Unexpected Needle 3 byte fallback ordering")
|
| 113 |
+
prefix = prefix[:-len(fallback)]
|
| 114 |
+
words = []
|
| 115 |
+
descriptors = bytearray()
|
| 116 |
+
for piece in model.pieces[SPECIAL_PIECES:]:
|
| 117 |
+
word = piece.piece.encode("utf8")
|
| 118 |
+
has_metaspace = word.startswith(METASPACE)
|
| 119 |
+
if has_metaspace:
|
| 120 |
+
word = word[len(METASPACE):]
|
| 121 |
+
words.append(word)
|
| 122 |
+
descriptors.append(len(word) | (HAS_METASPACE if has_metaspace else 0))
|
| 123 |
+
del model.pieces[:]
|
| 124 |
+
suffix = model.SerializeToString(deterministic=True)
|
| 125 |
+
header = HEADER.pack(MAGIC, len(prefix), len(suffix), len(words))
|
| 126 |
+
# Stable grouping by length keeps each bucket in vocabulary rank order.
|
| 127 |
+
packed = header + prefix + suffix + descriptors + b"".join(sorted(words, key=len))
|
| 128 |
+
if _restore(packed) != original:
|
| 129 |
+
raise ValueError("Compact format failed to reproduce the exact SentencePiece bytes")
|
| 130 |
+
filters = [{"id": lzma.FILTER_LZMA2, "preset": 9, "dict_size": 65536, "pb": 0}]
|
| 131 |
+
return lzma.compress(packed, filters=filters)
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
if __name__ == "__main__":
|
| 135 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 136 |
+
parser.add_argument("source", type=Path)
|
| 137 |
+
parser.add_argument("output", type=Path)
|
| 138 |
+
args = parser.parse_args()
|
| 139 |
+
original = read_tokenizer(args.source)
|
| 140 |
+
compressed = pack_tokenizer(original)
|
| 141 |
+
args.output.write_bytes(compressed)
|
| 142 |
+
print("%d original bytes, %d compact bytes" % (len(original), len(compressed)))
|
measurements/compact-gather-physical-ncs1.json
ADDED
|
@@ -0,0 +1,398 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"stock_bytes": 512,
|
| 3 |
+
"candidate_bytes": 480,
|
| 4 |
+
"constant_start": 448,
|
| 5 |
+
"live_fp16_bytes": 32,
|
| 6 |
+
"removed_trailing_zero_bytes": 32,
|
| 7 |
+
"changed_header_field": "file_size",
|
| 8 |
+
"stock_sha256": "812c8f393db056c68cbca7f42fe7ac72ec9570d18f4e15f8e6eac2460ca04e46",
|
| 9 |
+
"candidate_sha256": "80509434dc2b38cf067db8308a4396f0d946bada7e67a8fae105a19f23472003",
|
| 10 |
+
"physical_device_verified": true,
|
| 11 |
+
"replays": {
|
| 12 |
+
"stock": {
|
| 13 |
+
"sha256": "812c8f393db056c68cbca7f42fe7ac72ec9570d18f4e15f8e6eac2460ca04e46",
|
| 14 |
+
"native_bytes": 512,
|
| 15 |
+
"physical_usb_preflight": {
|
| 16 |
+
"stick": "ncs1",
|
| 17 |
+
"boot_usb_id": "03E7:2150"
|
| 18 |
+
},
|
| 19 |
+
"status": "passed",
|
| 20 |
+
"backend": "MYRIAD",
|
| 21 |
+
"runtime": "2.1.2020.3.2-3506-c35b42b1d89-releases/2020/3",
|
| 22 |
+
"onnx_sha256": "9d8bb1854edfbdc43d36084fb858e76b72d23fd46d63e1c86ae1845d8f582ce5",
|
| 23 |
+
"load_ms": 1814.5270000000003,
|
| 24 |
+
"corpus_sha256": "48e0522844402a86a3ea98f0947ba85ea54838db3c59022299298ed968a5a163",
|
| 25 |
+
"fixture_contract_sha256": "b09f44b4ce946499533fcc6bcae4e2ec5ed249a103401cdb68476d418e36306a",
|
| 26 |
+
"truth_table_assignments": 128,
|
| 27 |
+
"full_context": [
|
| 28 |
+
{
|
| 29 |
+
"name": "full_authorized",
|
| 30 |
+
"input_sha256": "bd18e69336d27b79a4112ffaf75fd42e174ea923d3f1d9f926d799a9efb50382",
|
| 31 |
+
"tokens": 131072,
|
| 32 |
+
"atoms": [
|
| 33 |
+
0.0,
|
| 34 |
+
1.0,
|
| 35 |
+
0.0,
|
| 36 |
+
0.0,
|
| 37 |
+
1.0,
|
| 38 |
+
0.0,
|
| 39 |
+
0.0
|
| 40 |
+
],
|
| 41 |
+
"bits": [
|
| 42 |
+
1.0,
|
| 43 |
+
0.0,
|
| 44 |
+
1.0,
|
| 45 |
+
0.0,
|
| 46 |
+
0.0,
|
| 47 |
+
1.0,
|
| 48 |
+
0.0
|
| 49 |
+
],
|
| 50 |
+
"result": {
|
| 51 |
+
"answers": {
|
| 52 |
+
"may_route": true
|
| 53 |
+
},
|
| 54 |
+
"category": "billing",
|
| 55 |
+
"action": "review_billing"
|
| 56 |
+
}
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"name": "full_late_veto",
|
| 60 |
+
"input_sha256": "8472fa9b8a48701237449c53e242cbf58f1975484652a75222023a3c2f611b17",
|
| 61 |
+
"tokens": 131072,
|
| 62 |
+
"atoms": [
|
| 63 |
+
0.0,
|
| 64 |
+
1.0,
|
| 65 |
+
0.0,
|
| 66 |
+
0.0,
|
| 67 |
+
1.0,
|
| 68 |
+
0.0,
|
| 69 |
+
1.0
|
| 70 |
+
],
|
| 71 |
+
"bits": [
|
| 72 |
+
0.0,
|
| 73 |
+
0.0,
|
| 74 |
+
1.0,
|
| 75 |
+
0.0,
|
| 76 |
+
0.0,
|
| 77 |
+
0.0,
|
| 78 |
+
0.0
|
| 79 |
+
],
|
| 80 |
+
"result": {
|
| 81 |
+
"answers": {
|
| 82 |
+
"may_route": false
|
| 83 |
+
},
|
| 84 |
+
"category": "billing",
|
| 85 |
+
"action": null
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
],
|
| 89 |
+
"overflow": {
|
| 90 |
+
"tokens": 131073,
|
| 91 |
+
"rejected": true,
|
| 92 |
+
"input_sha256": "8c9b69a81459a9e68de3719f3a01382c5d274946224f0ff7fdf2333e2c4e6a00"
|
| 93 |
+
},
|
| 94 |
+
"repeats": 13,
|
| 95 |
+
"warmups": 3,
|
| 96 |
+
"timings": {
|
| 97 |
+
"short_128_sequential": {
|
| 98 |
+
"wall_ms": {
|
| 99 |
+
"p50": 219.23950000000048,
|
| 100 |
+
"p95": 228.9065600000004,
|
| 101 |
+
"max": 229.3037000000009
|
| 102 |
+
},
|
| 103 |
+
"host_prepare_ms": {
|
| 104 |
+
"p50": 6.517499999997511,
|
| 105 |
+
"p95": 8.47699999999314,
|
| 106 |
+
"max": 8.822900000000189
|
| 107 |
+
},
|
| 108 |
+
"decision_and_decode_ms": {
|
| 109 |
+
"p50": 212.0559999999969,
|
| 110 |
+
"p95": 220.1636200000017,
|
| 111 |
+
"max": 220.90239999999994
|
| 112 |
+
},
|
| 113 |
+
"openvino_infer_ms": {
|
| 114 |
+
"p50": 202.1059999999899,
|
| 115 |
+
"p95": 209.99170000000015,
|
| 116 |
+
"max": 210.56140000000488
|
| 117 |
+
},
|
| 118 |
+
"openvino_requests": 128
|
| 119 |
+
},
|
| 120 |
+
"short_128_vector": {
|
| 121 |
+
"wall_ms": {
|
| 122 |
+
"p50": 5.373000000000516,
|
| 123 |
+
"p95": 6.749420000000583,
|
| 124 |
+
"max": 6.832400000000405
|
| 125 |
+
},
|
| 126 |
+
"host_prepare_ms": {
|
| 127 |
+
"p50": 2.7159000000001043,
|
| 128 |
+
"p95": 3.1077599999996153,
|
| 129 |
+
"max": 3.144899999998785
|
| 130 |
+
},
|
| 131 |
+
"decision_and_decode_ms": {
|
| 132 |
+
"p50": 2.6557000000000386,
|
| 133 |
+
"p95": 3.649060000000403,
|
| 134 |
+
"max": 3.803800000000024
|
| 135 |
+
},
|
| 136 |
+
"openvino_infer_ms": {
|
| 137 |
+
"p50": 1.8010000000003856,
|
| 138 |
+
"p95": 2.581020000000222,
|
| 139 |
+
"max": 2.818500000000057
|
| 140 |
+
},
|
| 141 |
+
"openvino_requests": 1
|
| 142 |
+
},
|
| 143 |
+
"full_authorized_one": {
|
| 144 |
+
"wall_ms": {
|
| 145 |
+
"p50": 35.28559999999992,
|
| 146 |
+
"p95": 49.252859999999245,
|
| 147 |
+
"max": 65.62109999999954
|
| 148 |
+
},
|
| 149 |
+
"host_prepare_ms": {
|
| 150 |
+
"p50": 32.08650000000013,
|
| 151 |
+
"p95": 46.7950399999999,
|
| 152 |
+
"max": 63.10219999999944
|
| 153 |
+
},
|
| 154 |
+
"decision_and_decode_ms": {
|
| 155 |
+
"p50": 2.6876000000006783,
|
| 156 |
+
"p95": 3.7475399999994585,
|
| 157 |
+
"max": 4.753799999999586
|
| 158 |
+
},
|
| 159 |
+
"openvino_infer_ms": {
|
| 160 |
+
"p50": 2.5441999999999965,
|
| 161 |
+
"p95": 3.566980000000439,
|
| 162 |
+
"max": 4.608700000000354
|
| 163 |
+
},
|
| 164 |
+
"openvino_requests": 1
|
| 165 |
+
},
|
| 166 |
+
"full_late_veto_one": {
|
| 167 |
+
"wall_ms": {
|
| 168 |
+
"p50": 34.43599999999947,
|
| 169 |
+
"p95": 42.27634000000008,
|
| 170 |
+
"max": 44.051800000000085
|
| 171 |
+
},
|
| 172 |
+
"host_prepare_ms": {
|
| 173 |
+
"p50": 31.299399999999977,
|
| 174 |
+
"p95": 39.36655999999984,
|
| 175 |
+
"max": 41.42509999999966
|
| 176 |
+
},
|
| 177 |
+
"decision_and_decode_ms": {
|
| 178 |
+
"p50": 2.6205000000008027,
|
| 179 |
+
"p95": 3.228000000000008,
|
| 180 |
+
"max": 3.426299999999216
|
| 181 |
+
},
|
| 182 |
+
"openvino_infer_ms": {
|
| 183 |
+
"p50": 2.4695000000001244,
|
| 184 |
+
"p95": 2.9182199999992164,
|
| 185 |
+
"max": 2.92979999999865
|
| 186 |
+
},
|
| 187 |
+
"openvino_requests": 1
|
| 188 |
+
},
|
| 189 |
+
"prepared_head_128_vector": {
|
| 190 |
+
"wall_ms": {
|
| 191 |
+
"p50": 1.9436999999999927,
|
| 192 |
+
"p95": 2.2739800000000088,
|
| 193 |
+
"max": 2.320899999999959
|
| 194 |
+
},
|
| 195 |
+
"openvino_infer_ms": {
|
| 196 |
+
"p50": 1.5721000000006313,
|
| 197 |
+
"p95": 1.8669599999995512,
|
| 198 |
+
"max": 1.886700000000019
|
| 199 |
+
},
|
| 200 |
+
"openvino_requests": 1
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
},
|
| 204 |
+
"compact": {
|
| 205 |
+
"sha256": "80509434dc2b38cf067db8308a4396f0d946bada7e67a8fae105a19f23472003",
|
| 206 |
+
"native_bytes": 480,
|
| 207 |
+
"physical_usb_preflight": {
|
| 208 |
+
"stick": "ncs1",
|
| 209 |
+
"boot_usb_id": "03E7:2150"
|
| 210 |
+
},
|
| 211 |
+
"status": "passed",
|
| 212 |
+
"backend": "MYRIAD",
|
| 213 |
+
"runtime": "2.1.2020.3.2-3506-c35b42b1d89-releases/2020/3",
|
| 214 |
+
"onnx_sha256": "9d8bb1854edfbdc43d36084fb858e76b72d23fd46d63e1c86ae1845d8f582ce5",
|
| 215 |
+
"load_ms": 1676.6887,
|
| 216 |
+
"corpus_sha256": "48e0522844402a86a3ea98f0947ba85ea54838db3c59022299298ed968a5a163",
|
| 217 |
+
"fixture_contract_sha256": "b09f44b4ce946499533fcc6bcae4e2ec5ed249a103401cdb68476d418e36306a",
|
| 218 |
+
"truth_table_assignments": 128,
|
| 219 |
+
"full_context": [
|
| 220 |
+
{
|
| 221 |
+
"name": "full_authorized",
|
| 222 |
+
"input_sha256": "bd18e69336d27b79a4112ffaf75fd42e174ea923d3f1d9f926d799a9efb50382",
|
| 223 |
+
"tokens": 131072,
|
| 224 |
+
"atoms": [
|
| 225 |
+
0.0,
|
| 226 |
+
1.0,
|
| 227 |
+
0.0,
|
| 228 |
+
0.0,
|
| 229 |
+
1.0,
|
| 230 |
+
0.0,
|
| 231 |
+
0.0
|
| 232 |
+
],
|
| 233 |
+
"bits": [
|
| 234 |
+
1.0,
|
| 235 |
+
0.0,
|
| 236 |
+
1.0,
|
| 237 |
+
0.0,
|
| 238 |
+
0.0,
|
| 239 |
+
1.0,
|
| 240 |
+
0.0
|
| 241 |
+
],
|
| 242 |
+
"result": {
|
| 243 |
+
"answers": {
|
| 244 |
+
"may_route": true
|
| 245 |
+
},
|
| 246 |
+
"category": "billing",
|
| 247 |
+
"action": "review_billing"
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "full_late_veto",
|
| 252 |
+
"input_sha256": "8472fa9b8a48701237449c53e242cbf58f1975484652a75222023a3c2f611b17",
|
| 253 |
+
"tokens": 131072,
|
| 254 |
+
"atoms": [
|
| 255 |
+
0.0,
|
| 256 |
+
1.0,
|
| 257 |
+
0.0,
|
| 258 |
+
0.0,
|
| 259 |
+
1.0,
|
| 260 |
+
0.0,
|
| 261 |
+
1.0
|
| 262 |
+
],
|
| 263 |
+
"bits": [
|
| 264 |
+
0.0,
|
| 265 |
+
0.0,
|
| 266 |
+
1.0,
|
| 267 |
+
0.0,
|
| 268 |
+
0.0,
|
| 269 |
+
0.0,
|
| 270 |
+
0.0
|
| 271 |
+
],
|
| 272 |
+
"result": {
|
| 273 |
+
"answers": {
|
| 274 |
+
"may_route": false
|
| 275 |
+
},
|
| 276 |
+
"category": "billing",
|
| 277 |
+
"action": null
|
| 278 |
+
}
|
| 279 |
+
}
|
| 280 |
+
],
|
| 281 |
+
"overflow": {
|
| 282 |
+
"tokens": 131073,
|
| 283 |
+
"rejected": true,
|
| 284 |
+
"input_sha256": "8c9b69a81459a9e68de3719f3a01382c5d274946224f0ff7fdf2333e2c4e6a00"
|
| 285 |
+
},
|
| 286 |
+
"repeats": 13,
|
| 287 |
+
"warmups": 3,
|
| 288 |
+
"timings": {
|
| 289 |
+
"short_128_sequential": {
|
| 290 |
+
"wall_ms": {
|
| 291 |
+
"p50": 214.4055999999992,
|
| 292 |
+
"p95": 219.75172,
|
| 293 |
+
"max": 219.75310000000013
|
| 294 |
+
},
|
| 295 |
+
"host_prepare_ms": {
|
| 296 |
+
"p50": 6.404199999995974,
|
| 297 |
+
"p95": 7.32027999999687,
|
| 298 |
+
"max": 7.435300000004474
|
| 299 |
+
},
|
| 300 |
+
"decision_and_decode_ms": {
|
| 301 |
+
"p50": 207.0285000000158,
|
| 302 |
+
"p95": 212.29067999998995,
|
| 303 |
+
"max": 212.48129999999588
|
| 304 |
+
},
|
| 305 |
+
"openvino_infer_ms": {
|
| 306 |
+
"p50": 197.16709999999438,
|
| 307 |
+
"p95": 202.32163999999938,
|
| 308 |
+
"max": 202.39399999998753
|
| 309 |
+
},
|
| 310 |
+
"openvino_requests": 128
|
| 311 |
+
},
|
| 312 |
+
"short_128_vector": {
|
| 313 |
+
"wall_ms": {
|
| 314 |
+
"p50": 5.306499999999659,
|
| 315 |
+
"p95": 5.868179999999867,
|
| 316 |
+
"max": 5.919899999999423
|
| 317 |
+
},
|
| 318 |
+
"host_prepare_ms": {
|
| 319 |
+
"p50": 2.8210999999984665,
|
| 320 |
+
"p95": 3.089019999999465,
|
| 321 |
+
"max": 3.184599999999982
|
| 322 |
+
},
|
| 323 |
+
"decision_and_decode_ms": {
|
| 324 |
+
"p50": 2.4332999999998606,
|
| 325 |
+
"p95": 2.841000000000626,
|
| 326 |
+
"max": 3.007500000000718
|
| 327 |
+
},
|
| 328 |
+
"openvino_infer_ms": {
|
| 329 |
+
"p50": 1.6515999999997533,
|
| 330 |
+
"p95": 2.0188799999996117,
|
| 331 |
+
"max": 2.2250999999986476
|
| 332 |
+
},
|
| 333 |
+
"openvino_requests": 1
|
| 334 |
+
},
|
| 335 |
+
"full_authorized_one": {
|
| 336 |
+
"wall_ms": {
|
| 337 |
+
"p50": 36.357299999998816,
|
| 338 |
+
"p95": 40.95759999999994,
|
| 339 |
+
"max": 44.65209999999864
|
| 340 |
+
},
|
| 341 |
+
"host_prepare_ms": {
|
| 342 |
+
"p50": 34.23169999999942,
|
| 343 |
+
"p95": 38.59660000000103,
|
| 344 |
+
"max": 42.28000000000165
|
| 345 |
+
},
|
| 346 |
+
"decision_and_decode_ms": {
|
| 347 |
+
"p50": 2.1959999999996427,
|
| 348 |
+
"p95": 2.611619999999881,
|
| 349 |
+
"max": 2.7455999999999037
|
| 350 |
+
},
|
| 351 |
+
"openvino_infer_ms": {
|
| 352 |
+
"p50": 2.057100000000034,
|
| 353 |
+
"p95": 2.4564999999995503,
|
| 354 |
+
"max": 2.5902999999996013
|
| 355 |
+
},
|
| 356 |
+
"openvino_requests": 1
|
| 357 |
+
},
|
| 358 |
+
"full_late_veto_one": {
|
| 359 |
+
"wall_ms": {
|
| 360 |
+
"p50": 33.67710000000024,
|
| 361 |
+
"p95": 39.23971999999977,
|
| 362 |
+
"max": 41.856799999999694
|
| 363 |
+
},
|
| 364 |
+
"host_prepare_ms": {
|
| 365 |
+
"p50": 31.270199999999804,
|
| 366 |
+
"p95": 36.67346000000044,
|
| 367 |
+
"max": 39.30170000000022
|
| 368 |
+
},
|
| 369 |
+
"decision_and_decode_ms": {
|
| 370 |
+
"p50": 2.511800000000619,
|
| 371 |
+
"p95": 2.8770199999998525,
|
| 372 |
+
"max": 2.9869999999991848
|
| 373 |
+
},
|
| 374 |
+
"openvino_infer_ms": {
|
| 375 |
+
"p50": 2.3021000000005287,
|
| 376 |
+
"p95": 2.676160000000749,
|
| 377 |
+
"max": 2.6842000000009136
|
| 378 |
+
},
|
| 379 |
+
"openvino_requests": 1
|
| 380 |
+
},
|
| 381 |
+
"prepared_head_128_vector": {
|
| 382 |
+
"wall_ms": {
|
| 383 |
+
"p50": 2.0042000000000115,
|
| 384 |
+
"p95": 2.5844999999993234,
|
| 385 |
+
"max": 2.684399999999698
|
| 386 |
+
},
|
| 387 |
+
"openvino_infer_ms": {
|
| 388 |
+
"p50": 1.6465999999999426,
|
| 389 |
+
"p95": 2.169059999998879,
|
| 390 |
+
"max": 2.201699999998752
|
| 391 |
+
},
|
| 392 |
+
"openvino_requests": 1
|
| 393 |
+
}
|
| 394 |
+
}
|
| 395 |
+
}
|
| 396 |
+
},
|
| 397 |
+
"timing_scope": "Sequential cold sessions with direct native blob imports and OpenVINO 2020.3.2 MYRIAD. The pinned corpus, raw rule bits and canonical result records matched between the two sessions."
|
| 398 |
+
}
|
measurements/compare-compiled-table-cpu.json
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"corpus_sha256": "48e0522844402a86a3ea98f0947ba85ea54838db3c59022299298ed968a5a163",
|
| 3 |
+
"fixture_contract_sha256": "b09f44b4ce946499533fcc6bcae4e2ec5ed249a103401cdb68476d418e36306a",
|
| 4 |
+
"truth_table_assignments": 128,
|
| 5 |
+
"full_context": [
|
| 6 |
+
{
|
| 7 |
+
"name": "full_authorized",
|
| 8 |
+
"input_sha256": "bd18e69336d27b79a4112ffaf75fd42e174ea923d3f1d9f926d799a9efb50382",
|
| 9 |
+
"tokens": 131072,
|
| 10 |
+
"atoms": [
|
| 11 |
+
0.0,
|
| 12 |
+
1.0,
|
| 13 |
+
0.0,
|
| 14 |
+
0.0,
|
| 15 |
+
1.0,
|
| 16 |
+
0.0,
|
| 17 |
+
0.0
|
| 18 |
+
],
|
| 19 |
+
"bits": [
|
| 20 |
+
1.0,
|
| 21 |
+
0.0,
|
| 22 |
+
1.0,
|
| 23 |
+
0.0,
|
| 24 |
+
0.0,
|
| 25 |
+
1.0,
|
| 26 |
+
0.0
|
| 27 |
+
],
|
| 28 |
+
"result": {
|
| 29 |
+
"answers": {
|
| 30 |
+
"may_route": true
|
| 31 |
+
},
|
| 32 |
+
"category": "billing",
|
| 33 |
+
"action": "review_billing"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "full_late_veto",
|
| 38 |
+
"input_sha256": "8472fa9b8a48701237449c53e242cbf58f1975484652a75222023a3c2f611b17",
|
| 39 |
+
"tokens": 131072,
|
| 40 |
+
"atoms": [
|
| 41 |
+
0.0,
|
| 42 |
+
1.0,
|
| 43 |
+
0.0,
|
| 44 |
+
0.0,
|
| 45 |
+
1.0,
|
| 46 |
+
0.0,
|
| 47 |
+
1.0
|
| 48 |
+
],
|
| 49 |
+
"bits": [
|
| 50 |
+
0.0,
|
| 51 |
+
0.0,
|
| 52 |
+
1.0,
|
| 53 |
+
0.0,
|
| 54 |
+
0.0,
|
| 55 |
+
0.0,
|
| 56 |
+
0.0
|
| 57 |
+
],
|
| 58 |
+
"result": {
|
| 59 |
+
"answers": {
|
| 60 |
+
"may_route": false
|
| 61 |
+
},
|
| 62 |
+
"category": "billing",
|
| 63 |
+
"action": null
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
],
|
| 67 |
+
"overflow": {
|
| 68 |
+
"tokens": 131073,
|
| 69 |
+
"rejected": true,
|
| 70 |
+
"input_sha256": "8c9b69a81459a9e68de3719f3a01382c5d274946224f0ff7fdf2333e2c4e6a00"
|
| 71 |
+
},
|
| 72 |
+
"repeats": 31,
|
| 73 |
+
"warmups": 4,
|
| 74 |
+
"timings": {
|
| 75 |
+
"short_128_sequential": {
|
| 76 |
+
"wall_ms": {
|
| 77 |
+
"p50": 4.706000000000099,
|
| 78 |
+
"p95": 5.598850000000155,
|
| 79 |
+
"max": 5.79960000000046
|
| 80 |
+
},
|
| 81 |
+
"host_prepare_ms": {
|
| 82 |
+
"p50": 2.865900000001531,
|
| 83 |
+
"p95": 3.310100000002425,
|
| 84 |
+
"max": 3.3771000000042406
|
| 85 |
+
},
|
| 86 |
+
"decision_and_decode_ms": {
|
| 87 |
+
"p50": 1.7982999999999194,
|
| 88 |
+
"p95": 2.212650000000149,
|
| 89 |
+
"max": 2.4077999999914113
|
| 90 |
+
},
|
| 91 |
+
"openvino_requests": 0
|
| 92 |
+
},
|
| 93 |
+
"short_128_vector": {
|
| 94 |
+
"wall_ms": {
|
| 95 |
+
"p50": 3.2933000000001655,
|
| 96 |
+
"p95": 4.022249999999783,
|
| 97 |
+
"max": 4.410799999999604
|
| 98 |
+
},
|
| 99 |
+
"host_prepare_ms": {
|
| 100 |
+
"p50": 2.742500000000092,
|
| 101 |
+
"p95": 3.2408499999996287,
|
| 102 |
+
"max": 3.4079000000000192
|
| 103 |
+
},
|
| 104 |
+
"decision_and_decode_ms": {
|
| 105 |
+
"p50": 0.5165000000002529,
|
| 106 |
+
"p95": 0.8345000000000713,
|
| 107 |
+
"max": 0.9964000000000084
|
| 108 |
+
},
|
| 109 |
+
"openvino_requests": 0
|
| 110 |
+
},
|
| 111 |
+
"full_authorized_one": {
|
| 112 |
+
"wall_ms": {
|
| 113 |
+
"p50": 33.57700000000019,
|
| 114 |
+
"p95": 38.089649999999864,
|
| 115 |
+
"max": 40.13440000000035
|
| 116 |
+
},
|
| 117 |
+
"host_prepare_ms": {
|
| 118 |
+
"p50": 33.47800000000012,
|
| 119 |
+
"p95": 37.964549999999875,
|
| 120 |
+
"max": 40.02019999999984
|
| 121 |
+
},
|
| 122 |
+
"decision_and_decode_ms": {
|
| 123 |
+
"p50": 0.09809999999976782,
|
| 124 |
+
"p95": 0.1452500000000967,
|
| 125 |
+
"max": 0.175200000000153
|
| 126 |
+
},
|
| 127 |
+
"openvino_requests": 0
|
| 128 |
+
},
|
| 129 |
+
"full_late_veto_one": {
|
| 130 |
+
"wall_ms": {
|
| 131 |
+
"p50": 32.90959999999998,
|
| 132 |
+
"p95": 37.83619999999966,
|
| 133 |
+
"max": 38.185899999999776
|
| 134 |
+
},
|
| 135 |
+
"host_prepare_ms": {
|
| 136 |
+
"p50": 32.79980000000027,
|
| 137 |
+
"p95": 37.72530000000019,
|
| 138 |
+
"max": 38.05810000000021
|
| 139 |
+
},
|
| 140 |
+
"decision_and_decode_ms": {
|
| 141 |
+
"p50": 0.10189999999976607,
|
| 142 |
+
"p95": 0.15855000000009056,
|
| 143 |
+
"max": 0.19749999999962853
|
| 144 |
+
},
|
| 145 |
+
"openvino_requests": 0
|
| 146 |
+
},
|
| 147 |
+
"prepared_head_128_vector": {
|
| 148 |
+
"wall_ms": {
|
| 149 |
+
"p50": 0.015099999999712566,
|
| 150 |
+
"p95": 0.032449999999961676,
|
| 151 |
+
"max": 0.07219999999996674
|
| 152 |
+
},
|
| 153 |
+
"openvino_requests": 0
|
| 154 |
+
}
|
| 155 |
+
},
|
| 156 |
+
"backend": "compiled-table-cpu",
|
| 157 |
+
"device": "CPU",
|
| 158 |
+
"artifacts": {
|
| 159 |
+
"generated_uint8_truth_table": {
|
| 160 |
+
"bytes": 128,
|
| 161 |
+
"sha256": "4bc46860c0208ed5c0e6be6b790f18477665e7710d0c58826ecc8bda303160ad"
|
| 162 |
+
},
|
| 163 |
+
"compiled_kernel_library": {
|
| 164 |
+
"bytes": 2560,
|
| 165 |
+
"sha256": "1181c9b0622729b7573476e4b61e2017577c2ed9557f71f3e8a6ab7a8d439f0d"
|
| 166 |
+
},
|
| 167 |
+
"kernel_c_source": {
|
| 168 |
+
"bytes": 887,
|
| 169 |
+
"sha256": "95bc376f5f227706d648035e0ed093ec0485a3ecbd074fdeb88b6495d073c7fe"
|
| 170 |
+
},
|
| 171 |
+
"source_policy_json": {
|
| 172 |
+
"bytes": 714,
|
| 173 |
+
"sha256": "9b9c5c754c41e0dd8b8c5e2f2d7415e30c709d1915f333fabb7c83261ff35a22"
|
| 174 |
+
},
|
| 175 |
+
"shared_tokenizer_archive": {
|
| 176 |
+
"bytes": 23412,
|
| 177 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 178 |
+
}
|
| 179 |
+
},
|
| 180 |
+
"host": {
|
| 181 |
+
"processor": "Intel64 Family 6 Model 154 Stepping 3, GenuineIntel",
|
| 182 |
+
"platform": "Windows-10-10.0.26100-SP0",
|
| 183 |
+
"logical_cpus": 16,
|
| 184 |
+
"python": "3.7.9"
|
| 185 |
+
},
|
| 186 |
+
"runner_initialization_ms": 21.40510000000001,
|
| 187 |
+
"timing_scope": "The shared harness includes text preparation and result records in wall time. Prepared head timing includes the Python-to-C call, packing, lookup, and unpacking.",
|
| 188 |
+
"artifact_scope": "Truth table bytes count decision data. The compiled library includes native CPU code and loader metadata, and receives the table from the host. The Python runner is separate."
|
| 189 |
+
}
|
measurements/compare-openvino-2020-cpu.json
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"corpus_sha256": "48e0522844402a86a3ea98f0947ba85ea54838db3c59022299298ed968a5a163",
|
| 3 |
+
"fixture_contract_sha256": "b09f44b4ce946499533fcc6bcae4e2ec5ed249a103401cdb68476d418e36306a",
|
| 4 |
+
"truth_table_assignments": 128,
|
| 5 |
+
"full_context": [
|
| 6 |
+
{
|
| 7 |
+
"name": "full_authorized",
|
| 8 |
+
"input_sha256": "bd18e69336d27b79a4112ffaf75fd42e174ea923d3f1d9f926d799a9efb50382",
|
| 9 |
+
"tokens": 131072,
|
| 10 |
+
"atoms": [
|
| 11 |
+
0.0,
|
| 12 |
+
1.0,
|
| 13 |
+
0.0,
|
| 14 |
+
0.0,
|
| 15 |
+
1.0,
|
| 16 |
+
0.0,
|
| 17 |
+
0.0
|
| 18 |
+
],
|
| 19 |
+
"bits": [
|
| 20 |
+
1.0,
|
| 21 |
+
0.0,
|
| 22 |
+
1.0,
|
| 23 |
+
0.0,
|
| 24 |
+
0.0,
|
| 25 |
+
1.0,
|
| 26 |
+
0.0
|
| 27 |
+
],
|
| 28 |
+
"result": {
|
| 29 |
+
"answers": {
|
| 30 |
+
"may_route": true
|
| 31 |
+
},
|
| 32 |
+
"category": "billing",
|
| 33 |
+
"action": "review_billing"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "full_late_veto",
|
| 38 |
+
"input_sha256": "8472fa9b8a48701237449c53e242cbf58f1975484652a75222023a3c2f611b17",
|
| 39 |
+
"tokens": 131072,
|
| 40 |
+
"atoms": [
|
| 41 |
+
0.0,
|
| 42 |
+
1.0,
|
| 43 |
+
0.0,
|
| 44 |
+
0.0,
|
| 45 |
+
1.0,
|
| 46 |
+
0.0,
|
| 47 |
+
1.0
|
| 48 |
+
],
|
| 49 |
+
"bits": [
|
| 50 |
+
0.0,
|
| 51 |
+
0.0,
|
| 52 |
+
1.0,
|
| 53 |
+
0.0,
|
| 54 |
+
0.0,
|
| 55 |
+
0.0,
|
| 56 |
+
0.0
|
| 57 |
+
],
|
| 58 |
+
"result": {
|
| 59 |
+
"answers": {
|
| 60 |
+
"may_route": false
|
| 61 |
+
},
|
| 62 |
+
"category": "billing",
|
| 63 |
+
"action": null
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
],
|
| 67 |
+
"overflow": {
|
| 68 |
+
"tokens": 131073,
|
| 69 |
+
"rejected": true,
|
| 70 |
+
"input_sha256": "8c9b69a81459a9e68de3719f3a01382c5d274946224f0ff7fdf2333e2c4e6a00"
|
| 71 |
+
},
|
| 72 |
+
"repeats": 31,
|
| 73 |
+
"warmups": 4,
|
| 74 |
+
"timings": {
|
| 75 |
+
"short_128_sequential": {
|
| 76 |
+
"wall_ms": {
|
| 77 |
+
"p50": 25.791100000000178,
|
| 78 |
+
"p95": 31.88354999999987,
|
| 79 |
+
"max": 33.13159999999993
|
| 80 |
+
},
|
| 81 |
+
"host_prepare_ms": {
|
| 82 |
+
"p50": 4.889299999992325,
|
| 83 |
+
"p95": 6.050900000000414,
|
| 84 |
+
"max": 6.373200000002299
|
| 85 |
+
},
|
| 86 |
+
"decision_and_decode_ms": {
|
| 87 |
+
"p50": 20.73400000000092,
|
| 88 |
+
"p95": 25.509699999999746,
|
| 89 |
+
"max": 26.947899999997915
|
| 90 |
+
},
|
| 91 |
+
"openvino_infer_ms": {
|
| 92 |
+
"p50": 13.040700000001237,
|
| 93 |
+
"p95": 16.511699999998797,
|
| 94 |
+
"max": 17.937900000001505
|
| 95 |
+
},
|
| 96 |
+
"openvino_requests": 128
|
| 97 |
+
},
|
| 98 |
+
"short_128_vector": {
|
| 99 |
+
"wall_ms": {
|
| 100 |
+
"p50": 4.035099999999403,
|
| 101 |
+
"p95": 4.802049999999891,
|
| 102 |
+
"max": 6.0171000000002195
|
| 103 |
+
},
|
| 104 |
+
"host_prepare_ms": {
|
| 105 |
+
"p50": 2.76809999999994,
|
| 106 |
+
"p95": 3.177749999999868,
|
| 107 |
+
"max": 4.60130000000003
|
| 108 |
+
},
|
| 109 |
+
"decision_and_decode_ms": {
|
| 110 |
+
"p50": 1.2653000000000247,
|
| 111 |
+
"p95": 1.5743000000001395,
|
| 112 |
+
"max": 1.7671999999997468
|
| 113 |
+
},
|
| 114 |
+
"openvino_infer_ms": {
|
| 115 |
+
"p50": 0.23689999999998435,
|
| 116 |
+
"p95": 0.3921999999998427,
|
| 117 |
+
"max": 0.4477999999998872
|
| 118 |
+
},
|
| 119 |
+
"openvino_requests": 1
|
| 120 |
+
},
|
| 121 |
+
"full_authorized_one": {
|
| 122 |
+
"wall_ms": {
|
| 123 |
+
"p50": 33.53209999999951,
|
| 124 |
+
"p95": 41.246899999999975,
|
| 125 |
+
"max": 43.12629999999995
|
| 126 |
+
},
|
| 127 |
+
"host_prepare_ms": {
|
| 128 |
+
"p50": 33.025000000000304,
|
| 129 |
+
"p95": 40.638550000000166,
|
| 130 |
+
"max": 42.66129999999979
|
| 131 |
+
},
|
| 132 |
+
"decision_and_decode_ms": {
|
| 133 |
+
"p50": 0.4910999999996335,
|
| 134 |
+
"p95": 0.6887999999996008,
|
| 135 |
+
"max": 0.7529000000001673
|
| 136 |
+
},
|
| 137 |
+
"openvino_infer_ms": {
|
| 138 |
+
"p50": 0.35100000000021225,
|
| 139 |
+
"p95": 0.490150000000078,
|
| 140 |
+
"max": 0.5763999999999214
|
| 141 |
+
},
|
| 142 |
+
"openvino_requests": 1
|
| 143 |
+
},
|
| 144 |
+
"full_late_veto_one": {
|
| 145 |
+
"wall_ms": {
|
| 146 |
+
"p50": 32.94730000000001,
|
| 147 |
+
"p95": 41.37479999999982,
|
| 148 |
+
"max": 44.12390000000066
|
| 149 |
+
},
|
| 150 |
+
"host_prepare_ms": {
|
| 151 |
+
"p50": 32.21499999999988,
|
| 152 |
+
"p95": 40.804149999999595,
|
| 153 |
+
"max": 43.720699999999724
|
| 154 |
+
},
|
| 155 |
+
"decision_and_decode_ms": {
|
| 156 |
+
"p50": 0.5121999999992966,
|
| 157 |
+
"p95": 0.7249499999999465,
|
| 158 |
+
"max": 0.7630999999994614
|
| 159 |
+
},
|
| 160 |
+
"openvino_infer_ms": {
|
| 161 |
+
"p50": 0.3696999999993622,
|
| 162 |
+
"p95": 0.529850000000387,
|
| 163 |
+
"max": 0.5756000000003425
|
| 164 |
+
},
|
| 165 |
+
"openvino_requests": 1
|
| 166 |
+
},
|
| 167 |
+
"prepared_head_128_vector": {
|
| 168 |
+
"wall_ms": {
|
| 169 |
+
"p50": 0.8181000000000438,
|
| 170 |
+
"p95": 1.171499999999881,
|
| 171 |
+
"max": 1.2313999999999936
|
| 172 |
+
},
|
| 173 |
+
"openvino_infer_ms": {
|
| 174 |
+
"p50": 0.2275999999996614,
|
| 175 |
+
"p95": 0.33769999999999634,
|
| 176 |
+
"max": 0.3988999999999798
|
| 177 |
+
},
|
| 178 |
+
"openvino_requests": 1
|
| 179 |
+
}
|
| 180 |
+
},
|
| 181 |
+
"backend": "openvino-2020-cpu",
|
| 182 |
+
"device": "CPU",
|
| 183 |
+
"openvino_version": "2.1.2020.3.2-3506-c35b42b1d89-releases/2020/3",
|
| 184 |
+
"onnx_sha256": "42f0273a56da0e142ffb88f580f931cfbcd5ceeb0beb189ac62c770026270de7",
|
| 185 |
+
"runner_initialization_ms": 173.35920000000004,
|
| 186 |
+
"artifacts": {
|
| 187 |
+
"shared_tokenizer_archive": {
|
| 188 |
+
"bytes": 23412,
|
| 189 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 190 |
+
},
|
| 191 |
+
"ir_xml": {
|
| 192 |
+
"bytes": 2723,
|
| 193 |
+
"sha256": "6b827ca84421a9f7248d30e54a87c4f685558838e090005a3735cca4c7f4653e"
|
| 194 |
+
},
|
| 195 |
+
"ir_weights": {
|
| 196 |
+
"bytes": 72,
|
| 197 |
+
"sha256": "7eddf104bd84e51288e7c526132dec73ec55db5e0a1901e7dbeb26ad0125c9c2"
|
| 198 |
+
},
|
| 199 |
+
"onnx": {
|
| 200 |
+
"bytes": 258,
|
| 201 |
+
"sha256": "42f0273a56da0e142ffb88f580f931cfbcd5ceeb0beb189ac62c770026270de7"
|
| 202 |
+
}
|
| 203 |
+
}
|
| 204 |
+
}
|
measurements/constant-free-pooling.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "magiceightball",
|
| 3 |
+
"policy": "support.json",
|
| 4 |
+
"purpose": "Measure a constant-free one-operation clause evaluator against the resident Gather head",
|
| 5 |
+
"design": "Enumerate the 128 fact vectors and derive a deterministic cover of true rows from each output's prime implicants. Assign each distinct conjunction one row per document. Feed 1 minus the fact for a positive literal, the fact for a negative literal and zero for pad cells. A row maximum of zero satisfies the conjunction. Decode each rule by checking whether any of its conjunction rows is zero.",
|
| 6 |
+
"slots": 128,
|
| 7 |
+
"raw_facts": 7,
|
| 8 |
+
"distinct_conjunctions": 16,
|
| 9 |
+
"max_literals_per_conjunction": 5,
|
| 10 |
+
"model_optimizer_and_compiler": "2020.3.2-3506-c35b42b1d89-releases/2020/3",
|
| 11 |
+
"offline_config": {
|
| 12 |
+
"VPU_MYRIAD_PROTOCOL": "VPU_MYRIAD_PCIE",
|
| 13 |
+
"VPU_MYRIAD_FORCE_RESET": "NO"
|
| 14 |
+
},
|
| 15 |
+
"cpu_verifier": "OpenVINO 2022.3.1 CPU plugin",
|
| 16 |
+
"gather_control": {
|
| 17 |
+
"bytes_per_native_graph": 512,
|
| 18 |
+
"batch_tensor_bytes": 768,
|
| 19 |
+
"verified_assignments": 128
|
| 20 |
+
},
|
| 21 |
+
"candidates": {
|
| 22 |
+
"MaxPool": {
|
| 23 |
+
"onnx_opset": 9,
|
| 24 |
+
"input_shape": [1, 1, 2048, 5],
|
| 25 |
+
"kernel_shape": [1, 5],
|
| 26 |
+
"verified_assignments": 128,
|
| 27 |
+
"batch_tensor_bytes": 24576,
|
| 28 |
+
"resident_constants_bytes": 0,
|
| 29 |
+
"2450": {
|
| 30 |
+
"bytes": 960,
|
| 31 |
+
"stage_count": 3,
|
| 32 |
+
"sha256": "1cfe8d87a4b2af96e69b40a98ba18c533bc4ee16657f0f5f8621edb69b57d224"
|
| 33 |
+
},
|
| 34 |
+
"2480": {
|
| 35 |
+
"bytes": 960,
|
| 36 |
+
"stage_count": 3,
|
| 37 |
+
"sha256": "5e36384447333843aca0f5d10255eb116d7c7f16576d152b6894bcd41857ab01"
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"ReduceMax": {
|
| 41 |
+
"onnx_opset": 9,
|
| 42 |
+
"input_shape": [2048, 5],
|
| 43 |
+
"axes": [1],
|
| 44 |
+
"keep_dims": true,
|
| 45 |
+
"verified_assignments": 128,
|
| 46 |
+
"batch_tensor_bytes": 24576,
|
| 47 |
+
"resident_constants_bytes": 0,
|
| 48 |
+
"2450": {
|
| 49 |
+
"bytes": 512,
|
| 50 |
+
"stage_count": 1,
|
| 51 |
+
"stage_bytes_before_alignment": 172,
|
| 52 |
+
"sha256": "a5d7549e9ca23bef96dcad31c68992cccd10e2ce15f9fd0600d7f568b4d2fc11"
|
| 53 |
+
},
|
| 54 |
+
"2480": {
|
| 55 |
+
"bytes": 832,
|
| 56 |
+
"stage_count": 3,
|
| 57 |
+
"sha256": "29eece97a130574bee3e6991f99657f96d20438608d91813c04066671c9628a7"
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"physical_device_verified": false
|
| 62 |
+
}
|
measurements/decision-diagram-native-controls.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"policy_sha256": "9b9c5c754c41e0dd8b8c5e2f2d7415e30c709d1915f333fabb7c83261ff35a22",
|
| 3 |
+
"diagram_bytes": 46,
|
| 4 |
+
"diagram_nodes": 15,
|
| 5 |
+
"onnxruntime": "1.24.1",
|
| 6 |
+
"variants": {
|
| 7 |
+
"where": {
|
| 8 |
+
"onnx_bytes": 1524,
|
| 9 |
+
"onnx_nodes": 23,
|
| 10 |
+
"exact_assignments": 128,
|
| 11 |
+
"legacy_model_optimizer_exit": 1,
|
| 12 |
+
"legacy_failure": "No registered infer function for ONNX Where"
|
| 13 |
+
},
|
| 14 |
+
"arithmetic": {
|
| 15 |
+
"onnx_bytes": 2611,
|
| 16 |
+
"onnx_nodes": 46,
|
| 17 |
+
"exact_assignments": 128,
|
| 18 |
+
"legacy_model_optimizer_exit": 0,
|
| 19 |
+
"myriad_compile_exit": 0,
|
| 20 |
+
"fp16_legacy_ir_cpu_assignments": {
|
| 21 |
+
"openvino_2020_3_2": 128,
|
| 22 |
+
"openvino_2022_3_1": 115
|
| 23 |
+
},
|
| 24 |
+
"native": {
|
| 25 |
+
"bytes": 9600,
|
| 26 |
+
"sha256": "58b245626fe6c509f4ffa888c82a078ba7e8d93ac1dde3c57128dbdeab4be26c",
|
| 27 |
+
"version": [
|
| 28 |
+
5,
|
| 29 |
+
0
|
| 30 |
+
],
|
| 31 |
+
"inputs": 1,
|
| 32 |
+
"outputs": 1,
|
| 33 |
+
"stage_count": 44,
|
| 34 |
+
"input_bytes": 1792,
|
| 35 |
+
"output_bytes": 256,
|
| 36 |
+
"sections": {
|
| 37 |
+
"headers": 192,
|
| 38 |
+
"input_descriptor": 128,
|
| 39 |
+
"output_descriptor": 128,
|
| 40 |
+
"stages": 9152,
|
| 41 |
+
"constants": 0
|
| 42 |
+
},
|
| 43 |
+
"sole_stage": null
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
"controls": {
|
| 48 |
+
"resident_gather_native_bytes": 512,
|
| 49 |
+
"myriad_target": "VPU_MYRIAD_2450",
|
| 50 |
+
"legacy_model_optimizer_and_compiler": "2020.3.2-3506-c35b42b1d89-releases/2020/3",
|
| 51 |
+
"offline_configuration": [
|
| 52 |
+
"VPU_MYRIAD_PROTOCOL VPU_MYRIAD_PCIE",
|
| 53 |
+
"VPU_MYRIAD_FORCE_RESET NO"
|
| 54 |
+
],
|
| 55 |
+
"hardware_replay_performed": false
|
| 56 |
+
}
|
| 57 |
+
}
|
measurements/native-release-and-stock-controls.json
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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+
"bytes": 735,
|
| 5 |
+
"sha256": "6076cc698d9948e5a133ea63b331195aa5c0e2e00c4173310a84614748917850"
|
| 6 |
+
},
|
| 7 |
+
"tokenizer": {
|
| 8 |
+
"bytes": 26136,
|
| 9 |
+
"sha256": "36747e603fcafa0726d38a25d7f71861da227b6d074746e06e9a77c6b1bec8e6"
|
| 10 |
+
},
|
| 11 |
+
"shipped_data_bytes": 26871,
|
| 12 |
+
"restored_native_bytes": {
|
| 13 |
+
"ncs1": {
|
| 14 |
+
"bytes": 512,
|
| 15 |
+
"sha256": "6c3b0d0cd33174e45cff98b474e7b86f698daee46c02a10c9a17b48ce69b629f",
|
| 16 |
+
"version": [
|
| 17 |
+
5,
|
| 18 |
+
0
|
| 19 |
+
],
|
| 20 |
+
"inputs": 1,
|
| 21 |
+
"outputs": 1,
|
| 22 |
+
"stage_count": 1,
|
| 23 |
+
"input_bytes": 512,
|
| 24 |
+
"output_bytes": 256,
|
| 25 |
+
"sections": {
|
| 26 |
+
"headers": 192,
|
| 27 |
+
"input_descriptor": 64,
|
| 28 |
+
"output_descriptor": 64,
|
| 29 |
+
"stages": 128,
|
| 30 |
+
"constants": 64
|
| 31 |
+
},
|
| 32 |
+
"sole_stage": {
|
| 33 |
+
"length": 128,
|
| 34 |
+
"type": 100,
|
| 35 |
+
"shaves_field": 12
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"ncs2": {
|
| 39 |
+
"bytes": 512,
|
| 40 |
+
"sha256": "ce65466cd18f6490ace177b3386afac485300d479de4659b3f9b3b2d9791d8fb",
|
| 41 |
+
"version": [
|
| 42 |
+
5,
|
| 43 |
+
0
|
| 44 |
+
],
|
| 45 |
+
"inputs": 1,
|
| 46 |
+
"outputs": 1,
|
| 47 |
+
"stage_count": 1,
|
| 48 |
+
"input_bytes": 512,
|
| 49 |
+
"output_bytes": 256,
|
| 50 |
+
"sections": {
|
| 51 |
+
"headers": 192,
|
| 52 |
+
"input_descriptor": 64,
|
| 53 |
+
"output_descriptor": 64,
|
| 54 |
+
"stages": 128,
|
| 55 |
+
"constants": 64
|
| 56 |
+
},
|
| 57 |
+
"sole_stage": {
|
| 58 |
+
"length": 128,
|
| 59 |
+
"type": 100,
|
| 60 |
+
"shaves_field": 1
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
},
|
| 64 |
+
"rank_zero_gather": {
|
| 65 |
+
"source": "bundles/magiceightball-radix/model.onnx with the input and output dimensions cleared",
|
| 66 |
+
"onnx_sha256": "0aeec48cd7832c5ba7483560fdbd8c6ce15aef9af4a878dfba2477cb7313c811",
|
| 67 |
+
"compiler_version": "OpenVINO 2020.3.2",
|
| 68 |
+
"offline_protocol": "VPU_MYRIAD_PCIE",
|
| 69 |
+
"force_reset": false,
|
| 70 |
+
"rank_zero_shape_in_ir": [],
|
| 71 |
+
"rank_one_control_shape_in_ir": [128],
|
| 72 |
+
"cpu_control_version": "OpenVINO 2022.3.1",
|
| 73 |
+
"matching_cpu_lookup_words": 16,
|
| 74 |
+
"rank_zero_native_blobs_emitted": 0,
|
| 75 |
+
"compiler_exit": {
|
| 76 |
+
"2450": -1073741819,
|
| 77 |
+
"2480": -1073741819
|
| 78 |
+
},
|
| 79 |
+
"rank_one_control": {
|
| 80 |
+
"2450": {
|
| 81 |
+
"bytes": 512,
|
| 82 |
+
"sha256": "812c8f393db056c68cbca7f42fe7ac72ec9570d18f4e15f8e6eac2460ca04e46"
|
| 83 |
+
},
|
| 84 |
+
"2480": {
|
| 85 |
+
"bytes": 512,
|
| 86 |
+
"sha256": "6ca8785bd10a0c2f7f8cb97d1a922cffdc238a5669dfae7fb4a520d75f709d8b"
|
| 87 |
+
}
|
| 88 |
+
}
|
| 89 |
+
},
|
| 90 |
+
"stock_controls": {
|
| 91 |
+
"input": "128-element FP16 vector",
|
| 92 |
+
"outputs": "128-element FP16 vector",
|
| 93 |
+
"compiler_version": "OpenVINO 2020.3.2",
|
| 94 |
+
"purpose": "Measure native container overhead with simple unary stages",
|
| 95 |
+
"operations": {
|
| 96 |
+
"Relu": {
|
| 97 |
+
"2450": {
|
| 98 |
+
"bytes": 448,
|
| 99 |
+
"sha256": "4f5394fe2c41648e495e6d5b5033ff9fd28e3a90b79ea7e4ce165555ec97e0a1",
|
| 100 |
+
"version": [
|
| 101 |
+
5,
|
| 102 |
+
0
|
| 103 |
+
],
|
| 104 |
+
"inputs": 1,
|
| 105 |
+
"outputs": 1,
|
| 106 |
+
"stage_count": 1,
|
| 107 |
+
"input_bytes": 256,
|
| 108 |
+
"output_bytes": 256,
|
| 109 |
+
"sections": {
|
| 110 |
+
"headers": 192,
|
| 111 |
+
"input_descriptor": 64,
|
| 112 |
+
"output_descriptor": 64,
|
| 113 |
+
"stages": 128,
|
| 114 |
+
"constants": 0
|
| 115 |
+
},
|
| 116 |
+
"sole_stage": {
|
| 117 |
+
"length": 104,
|
| 118 |
+
"type": 6,
|
| 119 |
+
"shaves_field": 12
|
| 120 |
+
}
|
| 121 |
+
},
|
| 122 |
+
"2480": {
|
| 123 |
+
"bytes": 448,
|
| 124 |
+
"sha256": "41889e3d48e7177b626b5d425ff61e1c63ec1df8e72241535e15c611abc6326f",
|
| 125 |
+
"version": [
|
| 126 |
+
5,
|
| 127 |
+
0
|
| 128 |
+
],
|
| 129 |
+
"inputs": 1,
|
| 130 |
+
"outputs": 1,
|
| 131 |
+
"stage_count": 1,
|
| 132 |
+
"input_bytes": 256,
|
| 133 |
+
"output_bytes": 256,
|
| 134 |
+
"sections": {
|
| 135 |
+
"headers": 192,
|
| 136 |
+
"input_descriptor": 64,
|
| 137 |
+
"output_descriptor": 64,
|
| 138 |
+
"stages": 128,
|
| 139 |
+
"constants": 0
|
| 140 |
+
},
|
| 141 |
+
"sole_stage": {
|
| 142 |
+
"length": 104,
|
| 143 |
+
"type": 6,
|
| 144 |
+
"shaves_field": 2
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
},
|
| 148 |
+
"Clip": {
|
| 149 |
+
"2450": {
|
| 150 |
+
"bytes": 448,
|
| 151 |
+
"sha256": "c6bccba08e5269c77500f35eb7d67a30e8c136d1dcd18d1461bdf46b794aa89e",
|
| 152 |
+
"version": [
|
| 153 |
+
5,
|
| 154 |
+
0
|
| 155 |
+
],
|
| 156 |
+
"inputs": 1,
|
| 157 |
+
"outputs": 1,
|
| 158 |
+
"stage_count": 1,
|
| 159 |
+
"input_bytes": 256,
|
| 160 |
+
"output_bytes": 256,
|
| 161 |
+
"sections": {
|
| 162 |
+
"headers": 192,
|
| 163 |
+
"input_descriptor": 64,
|
| 164 |
+
"output_descriptor": 64,
|
| 165 |
+
"stages": 128,
|
| 166 |
+
"constants": 0
|
| 167 |
+
},
|
| 168 |
+
"sole_stage": {
|
| 169 |
+
"length": 104,
|
| 170 |
+
"type": 57,
|
| 171 |
+
"shaves_field": 12
|
| 172 |
+
}
|
| 173 |
+
},
|
| 174 |
+
"2480": {
|
| 175 |
+
"bytes": 448,
|
| 176 |
+
"sha256": "bc4044d072a4a23983c6ab834b22b18f08abfb60cad55a21a62a9c3f35eacb64",
|
| 177 |
+
"version": [
|
| 178 |
+
5,
|
| 179 |
+
0
|
| 180 |
+
],
|
| 181 |
+
"inputs": 1,
|
| 182 |
+
"outputs": 1,
|
| 183 |
+
"stage_count": 1,
|
| 184 |
+
"input_bytes": 256,
|
| 185 |
+
"output_bytes": 256,
|
| 186 |
+
"sections": {
|
| 187 |
+
"headers": 192,
|
| 188 |
+
"input_descriptor": 64,
|
| 189 |
+
"output_descriptor": 64,
|
| 190 |
+
"stages": 128,
|
| 191 |
+
"constants": 0
|
| 192 |
+
},
|
| 193 |
+
"sole_stage": {
|
| 194 |
+
"length": 104,
|
| 195 |
+
"type": 57,
|
| 196 |
+
"shaves_field": 2
|
| 197 |
+
}
|
| 198 |
+
}
|
| 199 |
+
},
|
| 200 |
+
"Sigmoid": {
|
| 201 |
+
"2450": {
|
| 202 |
+
"bytes": 448,
|
| 203 |
+
"sha256": "533ad6beb31e35fe3db2490f7b8e981f6f63b44f9037103c7ddcd637042b71ea",
|
| 204 |
+
"version": [
|
| 205 |
+
5,
|
| 206 |
+
0
|
| 207 |
+
],
|
| 208 |
+
"inputs": 1,
|
| 209 |
+
"outputs": 1,
|
| 210 |
+
"stage_count": 1,
|
| 211 |
+
"input_bytes": 256,
|
| 212 |
+
"output_bytes": 256,
|
| 213 |
+
"sections": {
|
| 214 |
+
"headers": 192,
|
| 215 |
+
"input_descriptor": 64,
|
| 216 |
+
"output_descriptor": 64,
|
| 217 |
+
"stages": 128,
|
| 218 |
+
"constants": 0
|
| 219 |
+
},
|
| 220 |
+
"sole_stage": {
|
| 221 |
+
"length": 96,
|
| 222 |
+
"type": 20,
|
| 223 |
+
"shaves_field": 12
|
| 224 |
+
}
|
| 225 |
+
},
|
| 226 |
+
"2480": {
|
| 227 |
+
"bytes": 448,
|
| 228 |
+
"sha256": "7831b38be8547dc999290ded3d01427b5ad0e7ee134b4fdd47c8ee677b455662",
|
| 229 |
+
"version": [
|
| 230 |
+
5,
|
| 231 |
+
0
|
| 232 |
+
],
|
| 233 |
+
"inputs": 1,
|
| 234 |
+
"outputs": 1,
|
| 235 |
+
"stage_count": 1,
|
| 236 |
+
"input_bytes": 256,
|
| 237 |
+
"output_bytes": 256,
|
| 238 |
+
"sections": {
|
| 239 |
+
"headers": 192,
|
| 240 |
+
"input_descriptor": 64,
|
| 241 |
+
"output_descriptor": 64,
|
| 242 |
+
"stages": 128,
|
| 243 |
+
"constants": 0
|
| 244 |
+
},
|
| 245 |
+
"sole_stage": {
|
| 246 |
+
"length": 96,
|
| 247 |
+
"type": 20,
|
| 248 |
+
"shaves_field": 2
|
| 249 |
+
}
|
| 250 |
+
}
|
| 251 |
+
},
|
| 252 |
+
"Abs": {
|
| 253 |
+
"2450": "unsupported layer type"
|
| 254 |
+
}
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"physical_release_verified": false
|
| 258 |
+
}
|
measurements/ncs1-cpu-comparison.json
ADDED
|
@@ -0,0 +1,985 @@
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "magiceightball",
|
| 3 |
+
"host": "Intel Core i7-12650H",
|
| 4 |
+
"sessions": "One sequential session per backend on the same Windows host. Within each session the workload order alternated. A timing claim is scoped to these sessions.",
|
| 5 |
+
"results": {
|
| 6 |
+
"ncs1": {
|
| 7 |
+
"corpus_sha256": "48e0522844402a86a3ea98f0947ba85ea54838db3c59022299298ed968a5a163",
|
| 8 |
+
"fixture_contract_sha256": "b09f44b4ce946499533fcc6bcae4e2ec5ed249a103401cdb68476d418e36306a",
|
| 9 |
+
"truth_table_assignments": 128,
|
| 10 |
+
"full_context": [
|
| 11 |
+
{
|
| 12 |
+
"name": "full_authorized",
|
| 13 |
+
"input_sha256": "bd18e69336d27b79a4112ffaf75fd42e174ea923d3f1d9f926d799a9efb50382",
|
| 14 |
+
"tokens": 131072,
|
| 15 |
+
"atoms": [
|
| 16 |
+
0.0,
|
| 17 |
+
1.0,
|
| 18 |
+
0.0,
|
| 19 |
+
0.0,
|
| 20 |
+
1.0,
|
| 21 |
+
0.0,
|
| 22 |
+
0.0
|
| 23 |
+
],
|
| 24 |
+
"bits": [
|
| 25 |
+
1.0,
|
| 26 |
+
0.0,
|
| 27 |
+
1.0,
|
| 28 |
+
0.0,
|
| 29 |
+
0.0,
|
| 30 |
+
1.0,
|
| 31 |
+
0.0
|
| 32 |
+
],
|
| 33 |
+
"result": {
|
| 34 |
+
"answers": {
|
| 35 |
+
"may_route": true
|
| 36 |
+
},
|
| 37 |
+
"category": "billing",
|
| 38 |
+
"action": "review_billing"
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"name": "full_late_veto",
|
| 43 |
+
"input_sha256": "8472fa9b8a48701237449c53e242cbf58f1975484652a75222023a3c2f611b17",
|
| 44 |
+
"tokens": 131072,
|
| 45 |
+
"atoms": [
|
| 46 |
+
0.0,
|
| 47 |
+
1.0,
|
| 48 |
+
0.0,
|
| 49 |
+
0.0,
|
| 50 |
+
1.0,
|
| 51 |
+
0.0,
|
| 52 |
+
1.0
|
| 53 |
+
],
|
| 54 |
+
"bits": [
|
| 55 |
+
0.0,
|
| 56 |
+
0.0,
|
| 57 |
+
1.0,
|
| 58 |
+
0.0,
|
| 59 |
+
0.0,
|
| 60 |
+
0.0,
|
| 61 |
+
0.0
|
| 62 |
+
],
|
| 63 |
+
"result": {
|
| 64 |
+
"answers": {
|
| 65 |
+
"may_route": false
|
| 66 |
+
},
|
| 67 |
+
"category": "billing",
|
| 68 |
+
"action": null
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
],
|
| 72 |
+
"overflow": {
|
| 73 |
+
"tokens": 131073,
|
| 74 |
+
"rejected": true,
|
| 75 |
+
"input_sha256": "8c9b69a81459a9e68de3719f3a01382c5d274946224f0ff7fdf2333e2c4e6a00"
|
| 76 |
+
},
|
| 77 |
+
"repeats": 31,
|
| 78 |
+
"warmups": 4,
|
| 79 |
+
"timings": {
|
| 80 |
+
"short_128_sequential": {
|
| 81 |
+
"wall_ms": {
|
| 82 |
+
"p50": 223.70489999999955,
|
| 83 |
+
"p95": 232.73324999999988,
|
| 84 |
+
"max": 250.3390000000003
|
| 85 |
+
},
|
| 86 |
+
"host_prepare_ms": {
|
| 87 |
+
"p50": 6.699199999998129,
|
| 88 |
+
"p95": 8.012850000007177,
|
| 89 |
+
"max": 11.061599999987237
|
| 90 |
+
},
|
| 91 |
+
"decision_and_decode_ms": {
|
| 92 |
+
"p50": 217.0243999999908,
|
| 93 |
+
"p95": 225.01110000000057,
|
| 94 |
+
"max": 239.01700000000758
|
| 95 |
+
},
|
| 96 |
+
"openvino_infer_ms": {
|
| 97 |
+
"p50": 208.326200000009,
|
| 98 |
+
"p95": 216.38274999999751,
|
| 99 |
+
"max": 224.7112999999885
|
| 100 |
+
},
|
| 101 |
+
"openvino_requests": 128
|
| 102 |
+
},
|
| 103 |
+
"short_128_vector": {
|
| 104 |
+
"wall_ms": {
|
| 105 |
+
"p50": 6.428399999997225,
|
| 106 |
+
"p95": 10.73294999999952,
|
| 107 |
+
"max": 15.828200000001402
|
| 108 |
+
},
|
| 109 |
+
"host_prepare_ms": {
|
| 110 |
+
"p50": 3.3311999999998676,
|
| 111 |
+
"p95": 6.423550000000056,
|
| 112 |
+
"max": 12.021800000001193
|
| 113 |
+
},
|
| 114 |
+
"decision_and_decode_ms": {
|
| 115 |
+
"p50": 2.99749999999932,
|
| 116 |
+
"p95": 4.5932999999998,
|
| 117 |
+
"max": 5.176599999998643
|
| 118 |
+
},
|
| 119 |
+
"openvino_infer_ms": {
|
| 120 |
+
"p50": 1.8001999999999185,
|
| 121 |
+
"p95": 2.240500000000978,
|
| 122 |
+
"max": 2.9170000000000584
|
| 123 |
+
},
|
| 124 |
+
"openvino_requests": 1
|
| 125 |
+
},
|
| 126 |
+
"full_authorized_one": {
|
| 127 |
+
"wall_ms": {
|
| 128 |
+
"p50": 44.24100000000131,
|
| 129 |
+
"p95": 55.55420000000044,
|
| 130 |
+
"max": 57.882199999999884
|
| 131 |
+
},
|
| 132 |
+
"host_prepare_ms": {
|
| 133 |
+
"p50": 41.823899999998915,
|
| 134 |
+
"p95": 53.227050000000276,
|
| 135 |
+
"max": 55.039900000000586
|
| 136 |
+
},
|
| 137 |
+
"decision_and_decode_ms": {
|
| 138 |
+
"p50": 2.4124000000007584,
|
| 139 |
+
"p95": 2.872349999999635,
|
| 140 |
+
"max": 3.15259999999995
|
| 141 |
+
},
|
| 142 |
+
"openvino_infer_ms": {
|
| 143 |
+
"p50": 2.3028999999983313,
|
| 144 |
+
"p95": 2.7231000000007555,
|
| 145 |
+
"max": 2.9914000000008656
|
| 146 |
+
},
|
| 147 |
+
"openvino_requests": 1
|
| 148 |
+
},
|
| 149 |
+
"full_late_veto_one": {
|
| 150 |
+
"wall_ms": {
|
| 151 |
+
"p50": 41.47619999999996,
|
| 152 |
+
"p95": 55.037450000000376,
|
| 153 |
+
"max": 60.07490000000004
|
| 154 |
+
},
|
| 155 |
+
"host_prepare_ms": {
|
| 156 |
+
"p50": 38.88149999999868,
|
| 157 |
+
"p95": 52.649650000000214,
|
| 158 |
+
"max": 57.50160000000015
|
| 159 |
+
},
|
| 160 |
+
"decision_and_decode_ms": {
|
| 161 |
+
"p50": 2.4073999999991713,
|
| 162 |
+
"p95": 2.8106999999994997,
|
| 163 |
+
"max": 3.1636000000005993
|
| 164 |
+
},
|
| 165 |
+
"openvino_infer_ms": {
|
| 166 |
+
"p50": 2.282900000000865,
|
| 167 |
+
"p95": 2.661699999999989,
|
| 168 |
+
"max": 3.003200000001982
|
| 169 |
+
},
|
| 170 |
+
"openvino_requests": 1
|
| 171 |
+
},
|
| 172 |
+
"prepared_head_128_vector": {
|
| 173 |
+
"wall_ms": {
|
| 174 |
+
"p50": 2.2780999999998386,
|
| 175 |
+
"p95": 2.773950000000802,
|
| 176 |
+
"max": 3.0090999999998758
|
| 177 |
+
},
|
| 178 |
+
"openvino_infer_ms": {
|
| 179 |
+
"p50": 1.6012000000014126,
|
| 180 |
+
"p95": 2.0153499999997493,
|
| 181 |
+
"max": 2.171700000001664
|
| 182 |
+
},
|
| 183 |
+
"openvino_requests": 1
|
| 184 |
+
}
|
| 185 |
+
},
|
| 186 |
+
"backend": "ncs1",
|
| 187 |
+
"device": "MYRIAD",
|
| 188 |
+
"openvino_version": "2.1.2020.3.2-3506-c35b42b1d89-releases/2020/3",
|
| 189 |
+
"onnx_sha256": "42f0273a56da0e142ffb88f580f931cfbcd5ceeb0beb189ac62c770026270de7",
|
| 190 |
+
"artifacts": {
|
| 191 |
+
"shared_tokenizer_archive": {
|
| 192 |
+
"bytes": 23412,
|
| 193 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 194 |
+
},
|
| 195 |
+
"dual_target_release_archive": {
|
| 196 |
+
"bytes": 735,
|
| 197 |
+
"sha256": "6076cc698d9948e5a133ea63b331195aa5c0e2e00c4173310a84614748917850"
|
| 198 |
+
},
|
| 199 |
+
"ncs1_native_blob": {
|
| 200 |
+
"bytes": 512,
|
| 201 |
+
"sha256": "6c3b0d0cd33174e45cff98b474e7b86f698daee46c02a10c9a17b48ce69b629f"
|
| 202 |
+
},
|
| 203 |
+
"native_fp16_coefficients_bytes": 64
|
| 204 |
+
},
|
| 205 |
+
"host": {
|
| 206 |
+
"processor": "Intel64 Family 6 Model 154 Stepping 3, GenuineIntel",
|
| 207 |
+
"platform": "Windows-10-10.0.26100-SP0",
|
| 208 |
+
"logical_cpus": 16,
|
| 209 |
+
"python": "3.7.9"
|
| 210 |
+
},
|
| 211 |
+
"runner_initialization_ms": 1764.2291,
|
| 212 |
+
"physical_usb_preflight": {
|
| 213 |
+
"stick": "ncs1",
|
| 214 |
+
"boot_usb_id": "03E7:2150"
|
| 215 |
+
},
|
| 216 |
+
"timing_scope": "Resident in-process UTF-8 text decisions. Wall time includes tokenization, evidence, submission and output records. Corpus reads, validation and JSON serialization are outside it. Prepared head timing includes packing and unpacking without text preparation. OpenVINO infer time includes plugin dispatch and any device transfer, not isolated accelerator compute.",
|
| 217 |
+
"artifact_scope": "File and generated data sizes exclude runtime libraries, firmware and host code."
|
| 218 |
+
},
|
| 219 |
+
"openvino-cpu": {
|
| 220 |
+
"corpus_sha256": "48e0522844402a86a3ea98f0947ba85ea54838db3c59022299298ed968a5a163",
|
| 221 |
+
"fixture_contract_sha256": "b09f44b4ce946499533fcc6bcae4e2ec5ed249a103401cdb68476d418e36306a",
|
| 222 |
+
"truth_table_assignments": 128,
|
| 223 |
+
"full_context": [
|
| 224 |
+
{
|
| 225 |
+
"name": "full_authorized",
|
| 226 |
+
"input_sha256": "bd18e69336d27b79a4112ffaf75fd42e174ea923d3f1d9f926d799a9efb50382",
|
| 227 |
+
"tokens": 131072,
|
| 228 |
+
"atoms": [
|
| 229 |
+
0.0,
|
| 230 |
+
1.0,
|
| 231 |
+
0.0,
|
| 232 |
+
0.0,
|
| 233 |
+
1.0,
|
| 234 |
+
0.0,
|
| 235 |
+
0.0
|
| 236 |
+
],
|
| 237 |
+
"bits": [
|
| 238 |
+
1.0,
|
| 239 |
+
0.0,
|
| 240 |
+
1.0,
|
| 241 |
+
0.0,
|
| 242 |
+
0.0,
|
| 243 |
+
1.0,
|
| 244 |
+
0.0
|
| 245 |
+
],
|
| 246 |
+
"result": {
|
| 247 |
+
"answers": {
|
| 248 |
+
"may_route": true
|
| 249 |
+
},
|
| 250 |
+
"category": "billing",
|
| 251 |
+
"action": "review_billing"
|
| 252 |
+
}
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"name": "full_late_veto",
|
| 256 |
+
"input_sha256": "8472fa9b8a48701237449c53e242cbf58f1975484652a75222023a3c2f611b17",
|
| 257 |
+
"tokens": 131072,
|
| 258 |
+
"atoms": [
|
| 259 |
+
0.0,
|
| 260 |
+
1.0,
|
| 261 |
+
0.0,
|
| 262 |
+
0.0,
|
| 263 |
+
1.0,
|
| 264 |
+
0.0,
|
| 265 |
+
1.0
|
| 266 |
+
],
|
| 267 |
+
"bits": [
|
| 268 |
+
0.0,
|
| 269 |
+
0.0,
|
| 270 |
+
1.0,
|
| 271 |
+
0.0,
|
| 272 |
+
0.0,
|
| 273 |
+
0.0,
|
| 274 |
+
0.0
|
| 275 |
+
],
|
| 276 |
+
"result": {
|
| 277 |
+
"answers": {
|
| 278 |
+
"may_route": false
|
| 279 |
+
},
|
| 280 |
+
"category": "billing",
|
| 281 |
+
"action": null
|
| 282 |
+
}
|
| 283 |
+
}
|
| 284 |
+
],
|
| 285 |
+
"overflow": {
|
| 286 |
+
"tokens": 131073,
|
| 287 |
+
"rejected": true,
|
| 288 |
+
"input_sha256": "8c9b69a81459a9e68de3719f3a01382c5d274946224f0ff7fdf2333e2c4e6a00"
|
| 289 |
+
},
|
| 290 |
+
"repeats": 31,
|
| 291 |
+
"warmups": 4,
|
| 292 |
+
"timings": {
|
| 293 |
+
"short_128_sequential": {
|
| 294 |
+
"wall_ms": {
|
| 295 |
+
"p50": 14.397299964912236,
|
| 296 |
+
"p95": 20.60814999276772,
|
| 297 |
+
"max": 21.439700038172305
|
| 298 |
+
},
|
| 299 |
+
"host_prepare_ms": {
|
| 300 |
+
"p50": 4.125999170355499,
|
| 301 |
+
"p95": 5.354750202968717,
|
| 302 |
+
"max": 5.55479945614934
|
| 303 |
+
},
|
| 304 |
+
"decision_and_decode_ms": {
|
| 305 |
+
"p50": 10.164300329051912,
|
| 306 |
+
"p95": 15.155549976043403,
|
| 307 |
+
"max": 15.741800656542182
|
| 308 |
+
},
|
| 309 |
+
"openvino_infer_ms": {
|
| 310 |
+
"p50": 5.778199760243297,
|
| 311 |
+
"p95": 8.581800269894302,
|
| 312 |
+
"max": 8.814499946311116
|
| 313 |
+
},
|
| 314 |
+
"openvino_requests": 128
|
| 315 |
+
},
|
| 316 |
+
"short_128_vector": {
|
| 317 |
+
"wall_ms": {
|
| 318 |
+
"p50": 3.9126999909058213,
|
| 319 |
+
"p95": 5.992849997710437,
|
| 320 |
+
"max": 6.719400058500469
|
| 321 |
+
},
|
| 322 |
+
"host_prepare_ms": {
|
| 323 |
+
"p50": 2.9254999244585633,
|
| 324 |
+
"p95": 4.358499951194972,
|
| 325 |
+
"max": 4.7836999874562025
|
| 326 |
+
},
|
| 327 |
+
"decision_and_decode_ms": {
|
| 328 |
+
"p50": 1.0319999419152737,
|
| 329 |
+
"p95": 1.936800021212548,
|
| 330 |
+
"max": 3.028700011782348
|
| 331 |
+
},
|
| 332 |
+
"openvino_infer_ms": {
|
| 333 |
+
"p50": 0.09790004696696997,
|
| 334 |
+
"p95": 0.2527999458834529,
|
| 335 |
+
"max": 0.29090000316500664
|
| 336 |
+
},
|
| 337 |
+
"openvino_requests": 1
|
| 338 |
+
},
|
| 339 |
+
"full_authorized_one": {
|
| 340 |
+
"wall_ms": {
|
| 341 |
+
"p50": 44.251900049857795,
|
| 342 |
+
"p95": 55.238749948330224,
|
| 343 |
+
"max": 62.24210001528263
|
| 344 |
+
},
|
| 345 |
+
"host_prepare_ms": {
|
| 346 |
+
"p50": 43.921199976466596,
|
| 347 |
+
"p95": 54.67420001514256,
|
| 348 |
+
"max": 61.491800006479025
|
| 349 |
+
},
|
| 350 |
+
"decision_and_decode_ms": {
|
| 351 |
+
"p50": 0.36619999445974827,
|
| 352 |
+
"p95": 0.6140000186860561,
|
| 353 |
+
"max": 0.7449000841006637
|
| 354 |
+
},
|
| 355 |
+
"openvino_infer_ms": {
|
| 356 |
+
"p50": 0.2136999974027276,
|
| 357 |
+
"p95": 0.4370500100776553,
|
| 358 |
+
"max": 0.4403999773785472
|
| 359 |
+
},
|
| 360 |
+
"openvino_requests": 1
|
| 361 |
+
},
|
| 362 |
+
"full_late_veto_one": {
|
| 363 |
+
"wall_ms": {
|
| 364 |
+
"p50": 43.94299990963191,
|
| 365 |
+
"p95": 58.16065001999959,
|
| 366 |
+
"max": 61.02749996352941
|
| 367 |
+
},
|
| 368 |
+
"host_prepare_ms": {
|
| 369 |
+
"p50": 43.60189998988062,
|
| 370 |
+
"p95": 57.54670000169426,
|
| 371 |
+
"max": 60.54320000112057
|
| 372 |
+
},
|
| 373 |
+
"decision_and_decode_ms": {
|
| 374 |
+
"p50": 0.43789995834231377,
|
| 375 |
+
"p95": 0.6232500309124589,
|
| 376 |
+
"max": 1.2762999394908547
|
| 377 |
+
},
|
| 378 |
+
"openvino_infer_ms": {
|
| 379 |
+
"p50": 0.295999925583601,
|
| 380 |
+
"p95": 0.4252999206073582,
|
| 381 |
+
"max": 1.1694999411702156
|
| 382 |
+
},
|
| 383 |
+
"openvino_requests": 1
|
| 384 |
+
},
|
| 385 |
+
"prepared_head_128_vector": {
|
| 386 |
+
"wall_ms": {
|
| 387 |
+
"p50": 0.5165999755263329,
|
| 388 |
+
"p95": 0.9838499245233834,
|
| 389 |
+
"max": 2.512499922886491
|
| 390 |
+
},
|
| 391 |
+
"openvino_infer_ms": {
|
| 392 |
+
"p50": 0.08169992361217737,
|
| 393 |
+
"p95": 0.1811000402085483,
|
| 394 |
+
"max": 0.3035999834537506
|
| 395 |
+
},
|
| 396 |
+
"openvino_requests": 1
|
| 397 |
+
}
|
| 398 |
+
},
|
| 399 |
+
"backend": "openvino-cpu",
|
| 400 |
+
"device": "CPU",
|
| 401 |
+
"openvino_version": "2022.3.1-9227-cf2c7da5689-releases/2022/3",
|
| 402 |
+
"onnx_sha256": "42f0273a56da0e142ffb88f580f931cfbcd5ceeb0beb189ac62c770026270de7",
|
| 403 |
+
"artifacts": {
|
| 404 |
+
"shared_tokenizer_archive": {
|
| 405 |
+
"bytes": 23412,
|
| 406 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 407 |
+
},
|
| 408 |
+
"onnx": {
|
| 409 |
+
"bytes": 258,
|
| 410 |
+
"sha256": "42f0273a56da0e142ffb88f580f931cfbcd5ceeb0beb189ac62c770026270de7"
|
| 411 |
+
},
|
| 412 |
+
"ir_xml": {
|
| 413 |
+
"bytes": 2723,
|
| 414 |
+
"sha256": "6b827ca84421a9f7248d30e54a87c4f685558838e090005a3735cca4c7f4653e"
|
| 415 |
+
},
|
| 416 |
+
"ir_weights": {
|
| 417 |
+
"bytes": 72,
|
| 418 |
+
"sha256": "7eddf104bd84e51288e7c526132dec73ec55db5e0a1901e7dbeb26ad0125c9c2"
|
| 419 |
+
},
|
| 420 |
+
"cpu_bundle_manifest": {
|
| 421 |
+
"bytes": 1757,
|
| 422 |
+
"sha256": "cceab78379a9f0bf37cac202fefa60c1028c19a84c9fce36da2602fd6c23cfe6"
|
| 423 |
+
}
|
| 424 |
+
},
|
| 425 |
+
"host": {
|
| 426 |
+
"processor": "Intel64 Family 6 Model 154 Stepping 3, GenuineIntel",
|
| 427 |
+
"platform": "Windows-10-10.0.26200-SP0",
|
| 428 |
+
"logical_cpus": 16,
|
| 429 |
+
"python": "3.10.20"
|
| 430 |
+
},
|
| 431 |
+
"runner_initialization_ms": 1183.3397999871522,
|
| 432 |
+
"physical_usb_preflight": null,
|
| 433 |
+
"timing_scope": "Resident in-process UTF-8 text decisions. Wall time includes tokenization, evidence, submission and output records. Corpus reads, validation and JSON serialization are outside it. Prepared head timing includes packing and unpacking without text preparation. OpenVINO infer time includes plugin dispatch and any device transfer, not isolated accelerator compute.",
|
| 434 |
+
"artifact_scope": "File and generated data sizes exclude runtime libraries, firmware and host code."
|
| 435 |
+
},
|
| 436 |
+
"policy-cpu": {
|
| 437 |
+
"corpus_sha256": "48e0522844402a86a3ea98f0947ba85ea54838db3c59022299298ed968a5a163",
|
| 438 |
+
"fixture_contract_sha256": "b09f44b4ce946499533fcc6bcae4e2ec5ed249a103401cdb68476d418e36306a",
|
| 439 |
+
"truth_table_assignments": 128,
|
| 440 |
+
"full_context": [
|
| 441 |
+
{
|
| 442 |
+
"name": "full_authorized",
|
| 443 |
+
"input_sha256": "bd18e69336d27b79a4112ffaf75fd42e174ea923d3f1d9f926d799a9efb50382",
|
| 444 |
+
"tokens": 131072,
|
| 445 |
+
"atoms": [
|
| 446 |
+
0.0,
|
| 447 |
+
1.0,
|
| 448 |
+
0.0,
|
| 449 |
+
0.0,
|
| 450 |
+
1.0,
|
| 451 |
+
0.0,
|
| 452 |
+
0.0
|
| 453 |
+
],
|
| 454 |
+
"bits": [
|
| 455 |
+
1.0,
|
| 456 |
+
0.0,
|
| 457 |
+
1.0,
|
| 458 |
+
0.0,
|
| 459 |
+
0.0,
|
| 460 |
+
1.0,
|
| 461 |
+
0.0
|
| 462 |
+
],
|
| 463 |
+
"result": {
|
| 464 |
+
"answers": {
|
| 465 |
+
"may_route": true
|
| 466 |
+
},
|
| 467 |
+
"category": "billing",
|
| 468 |
+
"action": "review_billing"
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"name": "full_late_veto",
|
| 473 |
+
"input_sha256": "8472fa9b8a48701237449c53e242cbf58f1975484652a75222023a3c2f611b17",
|
| 474 |
+
"tokens": 131072,
|
| 475 |
+
"atoms": [
|
| 476 |
+
0.0,
|
| 477 |
+
1.0,
|
| 478 |
+
0.0,
|
| 479 |
+
0.0,
|
| 480 |
+
1.0,
|
| 481 |
+
0.0,
|
| 482 |
+
1.0
|
| 483 |
+
],
|
| 484 |
+
"bits": [
|
| 485 |
+
0.0,
|
| 486 |
+
0.0,
|
| 487 |
+
1.0,
|
| 488 |
+
0.0,
|
| 489 |
+
0.0,
|
| 490 |
+
0.0,
|
| 491 |
+
0.0
|
| 492 |
+
],
|
| 493 |
+
"result": {
|
| 494 |
+
"answers": {
|
| 495 |
+
"may_route": false
|
| 496 |
+
},
|
| 497 |
+
"category": "billing",
|
| 498 |
+
"action": null
|
| 499 |
+
}
|
| 500 |
+
}
|
| 501 |
+
],
|
| 502 |
+
"overflow": {
|
| 503 |
+
"tokens": 131073,
|
| 504 |
+
"rejected": true,
|
| 505 |
+
"input_sha256": "8c9b69a81459a9e68de3719f3a01382c5d274946224f0ff7fdf2333e2c4e6a00"
|
| 506 |
+
},
|
| 507 |
+
"repeats": 31,
|
| 508 |
+
"warmups": 4,
|
| 509 |
+
"timings": {
|
| 510 |
+
"short_128_sequential": {
|
| 511 |
+
"wall_ms": {
|
| 512 |
+
"p50": 4.975100000000232,
|
| 513 |
+
"p95": 10.27424999999993,
|
| 514 |
+
"max": 11.297100000000171
|
| 515 |
+
},
|
| 516 |
+
"host_prepare_ms": {
|
| 517 |
+
"p50": 3.11740000000027,
|
| 518 |
+
"p95": 6.007600000001334,
|
| 519 |
+
"max": 6.664100000001394
|
| 520 |
+
},
|
| 521 |
+
"decision_and_decode_ms": {
|
| 522 |
+
"p50": 1.7972000000061605,
|
| 523 |
+
"p95": 4.11229999999696,
|
| 524 |
+
"max": 4.488499999999451
|
| 525 |
+
},
|
| 526 |
+
"openvino_requests": 0
|
| 527 |
+
},
|
| 528 |
+
"short_128_vector": {
|
| 529 |
+
"wall_ms": {
|
| 530 |
+
"p50": 4.568199999999578,
|
| 531 |
+
"p95": 8.256800000000064,
|
| 532 |
+
"max": 8.770200000000283
|
| 533 |
+
},
|
| 534 |
+
"host_prepare_ms": {
|
| 535 |
+
"p50": 3.0529999999999724,
|
| 536 |
+
"p95": 5.406800000000045,
|
| 537 |
+
"max": 5.99430000000023
|
| 538 |
+
},
|
| 539 |
+
"decision_and_decode_ms": {
|
| 540 |
+
"p50": 1.4544000000000779,
|
| 541 |
+
"p95": 3.005749999999807,
|
| 542 |
+
"max": 3.5050999999999277
|
| 543 |
+
},
|
| 544 |
+
"openvino_requests": 0
|
| 545 |
+
},
|
| 546 |
+
"full_authorized_one": {
|
| 547 |
+
"wall_ms": {
|
| 548 |
+
"p50": 39.26120000000033,
|
| 549 |
+
"p95": 49.47639999999986,
|
| 550 |
+
"max": 51.841700000000216
|
| 551 |
+
},
|
| 552 |
+
"host_prepare_ms": {
|
| 553 |
+
"p50": 39.19859999999975,
|
| 554 |
+
"p95": 49.40735000000007,
|
| 555 |
+
"max": 51.73950000000005
|
| 556 |
+
},
|
| 557 |
+
"decision_and_decode_ms": {
|
| 558 |
+
"p50": 0.05719999999964642,
|
| 559 |
+
"p95": 0.08864999999991241,
|
| 560 |
+
"max": 0.1407999999996079
|
| 561 |
+
},
|
| 562 |
+
"openvino_requests": 0
|
| 563 |
+
},
|
| 564 |
+
"full_late_veto_one": {
|
| 565 |
+
"wall_ms": {
|
| 566 |
+
"p50": 35.80130000000015,
|
| 567 |
+
"p95": 44.254849999999955,
|
| 568 |
+
"max": 45.59119999999961
|
| 569 |
+
},
|
| 570 |
+
"host_prepare_ms": {
|
| 571 |
+
"p50": 35.7151,
|
| 572 |
+
"p95": 44.18340000000009,
|
| 573 |
+
"max": 45.494299999999654
|
| 574 |
+
},
|
| 575 |
+
"decision_and_decode_ms": {
|
| 576 |
+
"p50": 0.05730000000081503,
|
| 577 |
+
"p95": 0.08175000000010257,
|
| 578 |
+
"max": 0.09230000000037819
|
| 579 |
+
},
|
| 580 |
+
"openvino_requests": 0
|
| 581 |
+
},
|
| 582 |
+
"prepared_head_128_vector": {
|
| 583 |
+
"wall_ms": {
|
| 584 |
+
"p50": 0.9851000000002941,
|
| 585 |
+
"p95": 1.5812499999998675,
|
| 586 |
+
"max": 1.822999999999908
|
| 587 |
+
},
|
| 588 |
+
"openvino_requests": 0
|
| 589 |
+
}
|
| 590 |
+
},
|
| 591 |
+
"backend": "policy-cpu",
|
| 592 |
+
"device": "CPU",
|
| 593 |
+
"openvino_version": null,
|
| 594 |
+
"onnx_sha256": null,
|
| 595 |
+
"artifacts": {
|
| 596 |
+
"shared_tokenizer_archive": {
|
| 597 |
+
"bytes": 23412,
|
| 598 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 599 |
+
},
|
| 600 |
+
"source_policy_json": {
|
| 601 |
+
"bytes": 714,
|
| 602 |
+
"sha256": "9b9c5c754c41e0dd8b8c5e2f2d7415e30c709d1915f333fabb7c83261ff35a22"
|
| 603 |
+
}
|
| 604 |
+
},
|
| 605 |
+
"host": {
|
| 606 |
+
"processor": "Intel64 Family 6 Model 154 Stepping 3, GenuineIntel",
|
| 607 |
+
"platform": "Windows-10-10.0.26100-SP0",
|
| 608 |
+
"logical_cpus": 16,
|
| 609 |
+
"python": "3.7.9"
|
| 610 |
+
},
|
| 611 |
+
"runner_initialization_ms": 12.243499999999962,
|
| 612 |
+
"physical_usb_preflight": null,
|
| 613 |
+
"timing_scope": "Resident in-process UTF-8 text decisions. Wall time includes tokenization, evidence, submission and output records. Corpus reads, validation and JSON serialization are outside it. Prepared head timing includes packing and unpacking without text preparation. OpenVINO infer time includes plugin dispatch and any device transfer, not isolated accelerator compute.",
|
| 614 |
+
"artifact_scope": "File and generated data sizes exclude runtime libraries, firmware and host code."
|
| 615 |
+
},
|
| 616 |
+
"table-cpu": {
|
| 617 |
+
"corpus_sha256": "48e0522844402a86a3ea98f0947ba85ea54838db3c59022299298ed968a5a163",
|
| 618 |
+
"fixture_contract_sha256": "b09f44b4ce946499533fcc6bcae4e2ec5ed249a103401cdb68476d418e36306a",
|
| 619 |
+
"truth_table_assignments": 128,
|
| 620 |
+
"full_context": [
|
| 621 |
+
{
|
| 622 |
+
"name": "full_authorized",
|
| 623 |
+
"input_sha256": "bd18e69336d27b79a4112ffaf75fd42e174ea923d3f1d9f926d799a9efb50382",
|
| 624 |
+
"tokens": 131072,
|
| 625 |
+
"atoms": [
|
| 626 |
+
0.0,
|
| 627 |
+
1.0,
|
| 628 |
+
0.0,
|
| 629 |
+
0.0,
|
| 630 |
+
1.0,
|
| 631 |
+
0.0,
|
| 632 |
+
0.0
|
| 633 |
+
],
|
| 634 |
+
"bits": [
|
| 635 |
+
1.0,
|
| 636 |
+
0.0,
|
| 637 |
+
1.0,
|
| 638 |
+
0.0,
|
| 639 |
+
0.0,
|
| 640 |
+
1.0,
|
| 641 |
+
0.0
|
| 642 |
+
],
|
| 643 |
+
"result": {
|
| 644 |
+
"answers": {
|
| 645 |
+
"may_route": true
|
| 646 |
+
},
|
| 647 |
+
"category": "billing",
|
| 648 |
+
"action": "review_billing"
|
| 649 |
+
}
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"name": "full_late_veto",
|
| 653 |
+
"input_sha256": "8472fa9b8a48701237449c53e242cbf58f1975484652a75222023a3c2f611b17",
|
| 654 |
+
"tokens": 131072,
|
| 655 |
+
"atoms": [
|
| 656 |
+
0.0,
|
| 657 |
+
1.0,
|
| 658 |
+
0.0,
|
| 659 |
+
0.0,
|
| 660 |
+
1.0,
|
| 661 |
+
0.0,
|
| 662 |
+
1.0
|
| 663 |
+
],
|
| 664 |
+
"bits": [
|
| 665 |
+
0.0,
|
| 666 |
+
0.0,
|
| 667 |
+
1.0,
|
| 668 |
+
0.0,
|
| 669 |
+
0.0,
|
| 670 |
+
0.0,
|
| 671 |
+
0.0
|
| 672 |
+
],
|
| 673 |
+
"result": {
|
| 674 |
+
"answers": {
|
| 675 |
+
"may_route": false
|
| 676 |
+
},
|
| 677 |
+
"category": "billing",
|
| 678 |
+
"action": null
|
| 679 |
+
}
|
| 680 |
+
}
|
| 681 |
+
],
|
| 682 |
+
"overflow": {
|
| 683 |
+
"tokens": 131073,
|
| 684 |
+
"rejected": true,
|
| 685 |
+
"input_sha256": "8c9b69a81459a9e68de3719f3a01382c5d274946224f0ff7fdf2333e2c4e6a00"
|
| 686 |
+
},
|
| 687 |
+
"repeats": 31,
|
| 688 |
+
"warmups": 4,
|
| 689 |
+
"timings": {
|
| 690 |
+
"short_128_sequential": {
|
| 691 |
+
"wall_ms": {
|
| 692 |
+
"p50": 4.531800000000086,
|
| 693 |
+
"p95": 11.113099999999987,
|
| 694 |
+
"max": 14.059100000000768
|
| 695 |
+
},
|
| 696 |
+
"host_prepare_ms": {
|
| 697 |
+
"p50": 3.0269999999976704,
|
| 698 |
+
"p95": 6.662850000000109,
|
| 699 |
+
"max": 8.759800000003537
|
| 700 |
+
},
|
| 701 |
+
"decision_and_decode_ms": {
|
| 702 |
+
"p50": 1.4477999999975566,
|
| 703 |
+
"p95": 4.30299999999928,
|
| 704 |
+
"max": 5.129000000002826
|
| 705 |
+
},
|
| 706 |
+
"openvino_requests": 0
|
| 707 |
+
},
|
| 708 |
+
"short_128_vector": {
|
| 709 |
+
"wall_ms": {
|
| 710 |
+
"p50": 3.8171000000000177,
|
| 711 |
+
"p95": 6.951999999999847,
|
| 712 |
+
"max": 7.275199999999593
|
| 713 |
+
},
|
| 714 |
+
"host_prepare_ms": {
|
| 715 |
+
"p50": 2.9815000000001923,
|
| 716 |
+
"p95": 5.415549999999936,
|
| 717 |
+
"max": 5.6885999999995995
|
| 718 |
+
},
|
| 719 |
+
"decision_and_decode_ms": {
|
| 720 |
+
"p50": 0.8415999999997759,
|
| 721 |
+
"p95": 1.7087500000003697,
|
| 722 |
+
"max": 1.7148000000002384
|
| 723 |
+
},
|
| 724 |
+
"openvino_requests": 0
|
| 725 |
+
},
|
| 726 |
+
"full_authorized_one": {
|
| 727 |
+
"wall_ms": {
|
| 728 |
+
"p50": 37.626099999999774,
|
| 729 |
+
"p95": 50.03100000000016,
|
| 730 |
+
"max": 53.85970000000029
|
| 731 |
+
},
|
| 732 |
+
"host_prepare_ms": {
|
| 733 |
+
"p50": 37.55689999999934,
|
| 734 |
+
"p95": 49.94134999999966,
|
| 735 |
+
"max": 53.76280000000033
|
| 736 |
+
},
|
| 737 |
+
"decision_and_decode_ms": {
|
| 738 |
+
"p50": 0.06489999999992335,
|
| 739 |
+
"p95": 0.09769999999997836,
|
| 740 |
+
"max": 0.10889999999985633
|
| 741 |
+
},
|
| 742 |
+
"openvino_requests": 0
|
| 743 |
+
},
|
| 744 |
+
"full_late_veto_one": {
|
| 745 |
+
"wall_ms": {
|
| 746 |
+
"p50": 36.775000000000446,
|
| 747 |
+
"p95": 48.95959999999988,
|
| 748 |
+
"max": 56.30980000000019
|
| 749 |
+
},
|
| 750 |
+
"host_prepare_ms": {
|
| 751 |
+
"p50": 36.702400000000246,
|
| 752 |
+
"p95": 48.87775000000016,
|
| 753 |
+
"max": 56.1588000000004
|
| 754 |
+
},
|
| 755 |
+
"decision_and_decode_ms": {
|
| 756 |
+
"p50": 0.06620000000001625,
|
| 757 |
+
"p95": 0.12214999999970999,
|
| 758 |
+
"max": 0.1693999999998752
|
| 759 |
+
},
|
| 760 |
+
"openvino_requests": 0
|
| 761 |
+
},
|
| 762 |
+
"prepared_head_128_vector": {
|
| 763 |
+
"wall_ms": {
|
| 764 |
+
"p50": 0.4055999999996729,
|
| 765 |
+
"p95": 1.458449999999889,
|
| 766 |
+
"max": 1.5617999999997245
|
| 767 |
+
},
|
| 768 |
+
"openvino_requests": 0
|
| 769 |
+
}
|
| 770 |
+
},
|
| 771 |
+
"backend": "table-cpu",
|
| 772 |
+
"device": "CPU",
|
| 773 |
+
"openvino_version": null,
|
| 774 |
+
"onnx_sha256": null,
|
| 775 |
+
"artifacts": {
|
| 776 |
+
"shared_tokenizer_archive": {
|
| 777 |
+
"bytes": 23412,
|
| 778 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 779 |
+
},
|
| 780 |
+
"source_policy_json": {
|
| 781 |
+
"bytes": 714,
|
| 782 |
+
"sha256": "9b9c5c754c41e0dd8b8c5e2f2d7415e30c709d1915f333fabb7c83261ff35a22"
|
| 783 |
+
},
|
| 784 |
+
"generated_uint8_truth_table": {
|
| 785 |
+
"bytes": 128,
|
| 786 |
+
"sha256": "4bc46860c0208ed5c0e6be6b790f18477665e7710d0c58826ecc8bda303160ad"
|
| 787 |
+
}
|
| 788 |
+
},
|
| 789 |
+
"host": {
|
| 790 |
+
"processor": "Intel64 Family 6 Model 154 Stepping 3, GenuineIntel",
|
| 791 |
+
"platform": "Windows-10-10.0.26100-SP0",
|
| 792 |
+
"logical_cpus": 16,
|
| 793 |
+
"python": "3.7.9"
|
| 794 |
+
},
|
| 795 |
+
"runner_initialization_ms": 12.289999999999967,
|
| 796 |
+
"physical_usb_preflight": null,
|
| 797 |
+
"timing_scope": "Resident in-process UTF-8 text decisions. Wall time includes tokenization, evidence, submission and output records. Corpus reads, validation and JSON serialization are outside it. Prepared head timing includes packing and unpacking without text preparation. OpenVINO infer time includes plugin dispatch and any device transfer, not isolated accelerator compute.",
|
| 798 |
+
"artifact_scope": "File and generated data sizes exclude runtime libraries, firmware and host code."
|
| 799 |
+
},
|
| 800 |
+
"tree-cpu": {
|
| 801 |
+
"corpus_sha256": "48e0522844402a86a3ea98f0947ba85ea54838db3c59022299298ed968a5a163",
|
| 802 |
+
"fixture_contract_sha256": "b09f44b4ce946499533fcc6bcae4e2ec5ed249a103401cdb68476d418e36306a",
|
| 803 |
+
"truth_table_assignments": 128,
|
| 804 |
+
"full_context": [
|
| 805 |
+
{
|
| 806 |
+
"name": "full_authorized",
|
| 807 |
+
"input_sha256": "bd18e69336d27b79a4112ffaf75fd42e174ea923d3f1d9f926d799a9efb50382",
|
| 808 |
+
"tokens": 131072,
|
| 809 |
+
"atoms": [
|
| 810 |
+
0.0,
|
| 811 |
+
1.0,
|
| 812 |
+
0.0,
|
| 813 |
+
0.0,
|
| 814 |
+
1.0,
|
| 815 |
+
0.0,
|
| 816 |
+
0.0
|
| 817 |
+
],
|
| 818 |
+
"bits": [
|
| 819 |
+
1.0,
|
| 820 |
+
0.0,
|
| 821 |
+
1.0,
|
| 822 |
+
0.0,
|
| 823 |
+
0.0,
|
| 824 |
+
1.0,
|
| 825 |
+
0.0
|
| 826 |
+
],
|
| 827 |
+
"result": {
|
| 828 |
+
"answers": {
|
| 829 |
+
"may_route": true
|
| 830 |
+
},
|
| 831 |
+
"category": "billing",
|
| 832 |
+
"action": "review_billing"
|
| 833 |
+
}
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"name": "full_late_veto",
|
| 837 |
+
"input_sha256": "8472fa9b8a48701237449c53e242cbf58f1975484652a75222023a3c2f611b17",
|
| 838 |
+
"tokens": 131072,
|
| 839 |
+
"atoms": [
|
| 840 |
+
0.0,
|
| 841 |
+
1.0,
|
| 842 |
+
0.0,
|
| 843 |
+
0.0,
|
| 844 |
+
1.0,
|
| 845 |
+
0.0,
|
| 846 |
+
1.0
|
| 847 |
+
],
|
| 848 |
+
"bits": [
|
| 849 |
+
0.0,
|
| 850 |
+
0.0,
|
| 851 |
+
1.0,
|
| 852 |
+
0.0,
|
| 853 |
+
0.0,
|
| 854 |
+
0.0,
|
| 855 |
+
0.0
|
| 856 |
+
],
|
| 857 |
+
"result": {
|
| 858 |
+
"answers": {
|
| 859 |
+
"may_route": false
|
| 860 |
+
},
|
| 861 |
+
"category": "billing",
|
| 862 |
+
"action": null
|
| 863 |
+
}
|
| 864 |
+
}
|
| 865 |
+
],
|
| 866 |
+
"overflow": {
|
| 867 |
+
"tokens": 131073,
|
| 868 |
+
"rejected": true,
|
| 869 |
+
"input_sha256": "8c9b69a81459a9e68de3719f3a01382c5d274946224f0ff7fdf2333e2c4e6a00"
|
| 870 |
+
},
|
| 871 |
+
"repeats": 31,
|
| 872 |
+
"warmups": 4,
|
| 873 |
+
"timings": {
|
| 874 |
+
"short_128_sequential": {
|
| 875 |
+
"wall_ms": {
|
| 876 |
+
"p50": 4.769900000000327,
|
| 877 |
+
"p95": 9.381249999999897,
|
| 878 |
+
"max": 9.460600000000152
|
| 879 |
+
},
|
| 880 |
+
"host_prepare_ms": {
|
| 881 |
+
"p50": 3.0727000000005944,
|
| 882 |
+
"p95": 5.472249999998402,
|
| 883 |
+
"max": 5.646999999999736
|
| 884 |
+
},
|
| 885 |
+
"decision_and_decode_ms": {
|
| 886 |
+
"p50": 1.6610000000030212,
|
| 887 |
+
"p95": 3.8166500000014203,
|
| 888 |
+
"max": 3.8776000000009248
|
| 889 |
+
},
|
| 890 |
+
"openvino_requests": 0
|
| 891 |
+
},
|
| 892 |
+
"short_128_vector": {
|
| 893 |
+
"wall_ms": {
|
| 894 |
+
"p50": 4.0295999999999665,
|
| 895 |
+
"p95": 7.374849999999933,
|
| 896 |
+
"max": 7.929299999999806
|
| 897 |
+
},
|
| 898 |
+
"host_prepare_ms": {
|
| 899 |
+
"p50": 2.9703000000003144,
|
| 900 |
+
"p95": 5.217500000000097,
|
| 901 |
+
"max": 6.0173999999997285
|
| 902 |
+
},
|
| 903 |
+
"decision_and_decode_ms": {
|
| 904 |
+
"p50": 1.0268999999993866,
|
| 905 |
+
"p95": 2.0573000000001507,
|
| 906 |
+
"max": 2.897499999999553
|
| 907 |
+
},
|
| 908 |
+
"openvino_requests": 0
|
| 909 |
+
},
|
| 910 |
+
"full_authorized_one": {
|
| 911 |
+
"wall_ms": {
|
| 912 |
+
"p50": 37.92469999999959,
|
| 913 |
+
"p95": 52.49849999999956,
|
| 914 |
+
"max": 59.78350000000043
|
| 915 |
+
},
|
| 916 |
+
"host_prepare_ms": {
|
| 917 |
+
"p50": 37.86109999999976,
|
| 918 |
+
"p95": 52.3570499999999,
|
| 919 |
+
"max": 59.68319999999983
|
| 920 |
+
},
|
| 921 |
+
"decision_and_decode_ms": {
|
| 922 |
+
"p50": 0.07070000000020116,
|
| 923 |
+
"p95": 0.10835000000009032,
|
| 924 |
+
"max": 0.18160000000033705
|
| 925 |
+
},
|
| 926 |
+
"openvino_requests": 0
|
| 927 |
+
},
|
| 928 |
+
"full_late_veto_one": {
|
| 929 |
+
"wall_ms": {
|
| 930 |
+
"p50": 38.95129999999991,
|
| 931 |
+
"p95": 52.465849999999925,
|
| 932 |
+
"max": 54.515100000000146
|
| 933 |
+
},
|
| 934 |
+
"host_prepare_ms": {
|
| 935 |
+
"p50": 38.87670000000032,
|
| 936 |
+
"p95": 52.36710000000011,
|
| 937 |
+
"max": 54.42250000000026
|
| 938 |
+
},
|
| 939 |
+
"decision_and_decode_ms": {
|
| 940 |
+
"p50": 0.07219999999996674,
|
| 941 |
+
"p95": 0.09644999999958159,
|
| 942 |
+
"max": 0.09760000000014202
|
| 943 |
+
},
|
| 944 |
+
"openvino_requests": 0
|
| 945 |
+
},
|
| 946 |
+
"prepared_head_128_vector": {
|
| 947 |
+
"wall_ms": {
|
| 948 |
+
"p50": 0.5512999999996993,
|
| 949 |
+
"p95": 0.9714499999997628,
|
| 950 |
+
"max": 0.984800000000341
|
| 951 |
+
},
|
| 952 |
+
"openvino_requests": 0
|
| 953 |
+
}
|
| 954 |
+
},
|
| 955 |
+
"backend": "tree-cpu",
|
| 956 |
+
"device": "CPU",
|
| 957 |
+
"openvino_version": null,
|
| 958 |
+
"onnx_sha256": null,
|
| 959 |
+
"artifacts": {
|
| 960 |
+
"shared_tokenizer_archive": {
|
| 961 |
+
"bytes": 23412,
|
| 962 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 963 |
+
},
|
| 964 |
+
"source_policy_json": {
|
| 965 |
+
"bytes": 714,
|
| 966 |
+
"sha256": "9b9c5c754c41e0dd8b8c5e2f2d7415e30c709d1915f333fabb7c83261ff35a22"
|
| 967 |
+
},
|
| 968 |
+
"generated_binary_decision_diagram": {
|
| 969 |
+
"bytes": 46,
|
| 970 |
+
"sha256": "903d27ddf73c92a5338504c0a74d5a5cd1e91acff811980c484dd34aa3c8ec27"
|
| 971 |
+
}
|
| 972 |
+
},
|
| 973 |
+
"host": {
|
| 974 |
+
"processor": "Intel64 Family 6 Model 154 Stepping 3, GenuineIntel",
|
| 975 |
+
"platform": "Windows-10-10.0.26100-SP0",
|
| 976 |
+
"logical_cpus": 16,
|
| 977 |
+
"python": "3.7.9"
|
| 978 |
+
},
|
| 979 |
+
"runner_initialization_ms": 204.09439999999998,
|
| 980 |
+
"physical_usb_preflight": null,
|
| 981 |
+
"timing_scope": "Resident in-process UTF-8 text decisions. Wall time includes tokenization, evidence, submission and output records. Corpus reads, validation and JSON serialization are outside it. Prepared head timing includes packing and unpacking without text preparation. OpenVINO infer time includes plugin dispatch and any device transfer, not isolated accelerator compute.",
|
| 982 |
+
"artifact_scope": "File and generated data sizes exclude runtime libraries, firmware and host code."
|
| 983 |
+
}
|
| 984 |
+
}
|
| 985 |
+
}
|
measurements/release-stream-ncs1.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "magiceightball",
|
| 3 |
+
"backend": "MYRIAD",
|
| 4 |
+
"openvino_version": "2.1.2020.3.2-3506-c35b42b1d89-releases/2020/3",
|
| 5 |
+
"onnx_sha256": "42f0273a56da0e142ffb88f580f931cfbcd5ceeb0beb189ac62c770026270de7",
|
| 6 |
+
"samples": 24,
|
| 7 |
+
"initial_tokens": 130432,
|
| 8 |
+
"initial_ms": 51.83779999999949,
|
| 9 |
+
"final_tokens": 131072,
|
| 10 |
+
"final_veto": {
|
| 11 |
+
"answers": {
|
| 12 |
+
"may_route": false
|
| 13 |
+
},
|
| 14 |
+
"category": "billing",
|
| 15 |
+
"action": null
|
| 16 |
+
},
|
| 17 |
+
"overflow_rejected": true,
|
| 18 |
+
"timing": {
|
| 19 |
+
"full_text": {
|
| 20 |
+
"host_preparation_ms": {
|
| 21 |
+
"p50": 49.43475000000008,
|
| 22 |
+
"p95": 57.28821999999995,
|
| 23 |
+
"max": 59.33309999999992
|
| 24 |
+
},
|
| 25 |
+
"total_ms": {
|
| 26 |
+
"p50": 52.07215000000032,
|
| 27 |
+
"p95": 59.687849999999585,
|
| 28 |
+
"max": 62.420099999999756
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
"stream": {
|
| 32 |
+
"host_preparation_ms": {
|
| 33 |
+
"p50": 0.08650000000010039,
|
| 34 |
+
"p95": 0.13952999999982113,
|
| 35 |
+
"max": 0.17919999999982394
|
| 36 |
+
},
|
| 37 |
+
"total_ms": {
|
| 38 |
+
"p50": 1.8972000000001543,
|
| 39 |
+
"p95": 2.222930000000556,
|
| 40 |
+
"max": 2.479800000000587
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"physical_device_verified": true,
|
| 45 |
+
"physical_usb_preflight": {
|
| 46 |
+
"stick": "ncs1",
|
| 47 |
+
"boot_usb_id": "03E7:2150"
|
| 48 |
+
},
|
| 49 |
+
"shipped_tokenizer": {
|
| 50 |
+
"bytes": 23412,
|
| 51 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 52 |
+
},
|
| 53 |
+
"shipped_release": {
|
| 54 |
+
"bytes": 735,
|
| 55 |
+
"sha256": "6076cc698d9948e5a133ea63b331195aa5c0e2e00c4173310a84614748917850"
|
| 56 |
+
}
|
| 57 |
+
}
|
measurements/release-vector-ncs1.json
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "magiceightball",
|
| 3 |
+
"backend": "MYRIAD",
|
| 4 |
+
"lane": "ncs1",
|
| 5 |
+
"toolchain": "2.1.2020.3.2-3506-c35b42b1d89-releases/2020/3",
|
| 6 |
+
"capacity": 128,
|
| 7 |
+
"onnx_sha256": "42f0273a56da0e142ffb88f580f931cfbcd5ceeb0beb189ac62c770026270de7",
|
| 8 |
+
"truth_table_cases": 128,
|
| 9 |
+
"repeats": 13,
|
| 10 |
+
"timing": {
|
| 11 |
+
"1": {
|
| 12 |
+
"ms_per_128_documents": {
|
| 13 |
+
"p50": 224.96770000000055,
|
| 14 |
+
"p95": 245.61680000000052,
|
| 15 |
+
"max": 250.01420000000076
|
| 16 |
+
},
|
| 17 |
+
"device_requests": 128
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"ms_per_128_documents": {
|
| 21 |
+
"p50": 117.83459999999835,
|
| 22 |
+
"p95": 131.642239999999,
|
| 23 |
+
"max": 133.3177999999986
|
| 24 |
+
},
|
| 25 |
+
"device_requests": 64
|
| 26 |
+
},
|
| 27 |
+
"8": {
|
| 28 |
+
"ms_per_128_documents": {
|
| 29 |
+
"p50": 35.807900000000004,
|
| 30 |
+
"p95": 41.56259999999996,
|
| 31 |
+
"max": 42.346799999999796
|
| 32 |
+
},
|
| 33 |
+
"device_requests": 16
|
| 34 |
+
},
|
| 35 |
+
"16": {
|
| 36 |
+
"ms_per_128_documents": {
|
| 37 |
+
"p50": 20.212700000000083,
|
| 38 |
+
"p95": 23.63155999999904,
|
| 39 |
+
"max": 23.63179999999865
|
| 40 |
+
},
|
| 41 |
+
"device_requests": 8
|
| 42 |
+
},
|
| 43 |
+
"32": {
|
| 44 |
+
"ms_per_128_documents": {
|
| 45 |
+
"p50": 12.926099999999607,
|
| 46 |
+
"p95": 17.198360000000427,
|
| 47 |
+
"max": 20.61200000000074
|
| 48 |
+
},
|
| 49 |
+
"device_requests": 4
|
| 50 |
+
},
|
| 51 |
+
"64": {
|
| 52 |
+
"ms_per_128_documents": {
|
| 53 |
+
"p50": 10.716400000001514,
|
| 54 |
+
"p95": 13.9665800000003,
|
| 55 |
+
"max": 16.044200000001396
|
| 56 |
+
},
|
| 57 |
+
"device_requests": 2
|
| 58 |
+
},
|
| 59 |
+
"128": {
|
| 60 |
+
"ms_per_128_documents": {
|
| 61 |
+
"p50": 9.123599999999676,
|
| 62 |
+
"p95": 11.659800000000683,
|
| 63 |
+
"max": 13.410600000000272
|
| 64 |
+
},
|
| 65 |
+
"device_requests": 1
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
"mixed_length_device_requests": 1,
|
| 69 |
+
"mixed_length_results": [
|
| 70 |
+
{
|
| 71 |
+
"id": "early",
|
| 72 |
+
"tokens": 131072,
|
| 73 |
+
"result": {
|
| 74 |
+
"answers": {
|
| 75 |
+
"may_route": true
|
| 76 |
+
},
|
| 77 |
+
"category": "billing",
|
| 78 |
+
"action": "review_billing"
|
| 79 |
+
},
|
| 80 |
+
"error": null
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"id": "overflow",
|
| 84 |
+
"tokens": null,
|
| 85 |
+
"result": null,
|
| 86 |
+
"error": "Input has 131073 Needle tokens; maximum is 131072"
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"id": "late",
|
| 90 |
+
"tokens": 131072,
|
| 91 |
+
"result": {
|
| 92 |
+
"answers": {
|
| 93 |
+
"may_route": true
|
| 94 |
+
},
|
| 95 |
+
"category": "delivery",
|
| 96 |
+
"action": "review_delivery"
|
| 97 |
+
},
|
| 98 |
+
"error": null
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"id": "veto",
|
| 102 |
+
"tokens": 131072,
|
| 103 |
+
"result": {
|
| 104 |
+
"answers": {
|
| 105 |
+
"may_route": false
|
| 106 |
+
},
|
| 107 |
+
"category": "delivery",
|
| 108 |
+
"action": null
|
| 109 |
+
},
|
| 110 |
+
"error": null
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"id": "empty",
|
| 114 |
+
"tokens": 0,
|
| 115 |
+
"result": {
|
| 116 |
+
"answers": {
|
| 117 |
+
"may_route": false
|
| 118 |
+
},
|
| 119 |
+
"category": null,
|
| 120 |
+
"action": null
|
| 121 |
+
},
|
| 122 |
+
"error": null
|
| 123 |
+
}
|
| 124 |
+
],
|
| 125 |
+
"physical_usb_preflight": {
|
| 126 |
+
"stick": "ncs1",
|
| 127 |
+
"boot_usb_id": "03E7:2150"
|
| 128 |
+
},
|
| 129 |
+
"release_archive_bytes": 735,
|
| 130 |
+
"shipped_tokenizer": {
|
| 131 |
+
"bytes": 23412,
|
| 132 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 133 |
+
},
|
| 134 |
+
"shipped_release": {
|
| 135 |
+
"bytes": 735,
|
| 136 |
+
"sha256": "6076cc698d9948e5a133ea63b331195aa5c0e2e00c4173310a84614748917850"
|
| 137 |
+
},
|
| 138 |
+
"firmware_teardown": "XLinkResetRemote emitted a dispatcherClosedSem diagnostic after the report was written. The process exited 0 and Windows enumerated cold USB 03E7:2150 again."
|
| 139 |
+
}
|
measurements/soak-release-30m-ncs1.json
ADDED
|
@@ -0,0 +1,1584 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "magiceightball",
|
| 3 |
+
"backend": "MYRIAD",
|
| 4 |
+
"openvino_version": "2.1.2020.3.2-3506-c35b42b1d89-releases/2020/3",
|
| 5 |
+
"physical_usb_preflight": {
|
| 6 |
+
"stick": "ncs1",
|
| 7 |
+
"boot_usb_id": "03E7:2150"
|
| 8 |
+
},
|
| 9 |
+
"onnx_sha256": "42f0273a56da0e142ffb88f580f931cfbcd5ceeb0beb189ac62c770026270de7",
|
| 10 |
+
"archive": {
|
| 11 |
+
"bytes": 735,
|
| 12 |
+
"sha256": "6076cc698d9948e5a133ea63b331195aa5c0e2e00c4173310a84614748917850"
|
| 13 |
+
},
|
| 14 |
+
"tokenizer": {
|
| 15 |
+
"bytes": 23412,
|
| 16 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 17 |
+
},
|
| 18 |
+
"corpus_sha256": "48e0522844402a86a3ea98f0947ba85ea54838db3c59022299298ed968a5a163",
|
| 19 |
+
"duration_seconds": 1800.0,
|
| 20 |
+
"intervals": [
|
| 21 |
+
{
|
| 22 |
+
"until_seconds": 30.079111000000005,
|
| 23 |
+
"cycles": 441,
|
| 24 |
+
"wall_ms": {
|
| 25 |
+
"short_batch": {
|
| 26 |
+
"p50": 5.529299999999182,
|
| 27 |
+
"p95": 7.378700000003846,
|
| 28 |
+
"max": 17.547299999996824
|
| 29 |
+
},
|
| 30 |
+
"full_text": {
|
| 31 |
+
"p50": 34.11489999999873,
|
| 32 |
+
"p95": 43.79560000000282,
|
| 33 |
+
"max": 103.13190000000105
|
| 34 |
+
},
|
| 35 |
+
"stream_prefix": {
|
| 36 |
+
"p50": 23.417500000000757,
|
| 37 |
+
"p95": 30.720899999998608,
|
| 38 |
+
"max": 71.30940000000408
|
| 39 |
+
},
|
| 40 |
+
"stream_append": {
|
| 41 |
+
"p50": 1.7283999999975208,
|
| 42 |
+
"p95": 2.2517999999962512,
|
| 43 |
+
"max": 4.328000000000998
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"until_seconds": 60.1473263,
|
| 49 |
+
"cycles": 287,
|
| 50 |
+
"wall_ms": {
|
| 51 |
+
"short_batch": {
|
| 52 |
+
"p50": 6.676200000001131,
|
| 53 |
+
"p95": 14.890469999999565,
|
| 54 |
+
"max": 85.01869999999911
|
| 55 |
+
},
|
| 56 |
+
"full_text": {
|
| 57 |
+
"p50": 43.74540000000593,
|
| 58 |
+
"p95": 116.14786999999893,
|
| 59 |
+
"max": 224.018700000002
|
| 60 |
+
},
|
| 61 |
+
"stream_prefix": {
|
| 62 |
+
"p50": 30.171799999997972,
|
| 63 |
+
"p95": 76.46441000000264,
|
| 64 |
+
"max": 190.73850000000192
|
| 65 |
+
},
|
| 66 |
+
"stream_append": {
|
| 67 |
+
"p50": 1.8795999999952073,
|
| 68 |
+
"p95": 4.922139999997199,
|
| 69 |
+
"max": 30.937599999994347
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"until_seconds": 90.211113,
|
| 75 |
+
"cycles": 434,
|
| 76 |
+
"wall_ms": {
|
| 77 |
+
"short_batch": {
|
| 78 |
+
"p50": 5.696150000005673,
|
| 79 |
+
"p95": 7.016779999993613,
|
| 80 |
+
"max": 12.109399999999937
|
| 81 |
+
},
|
| 82 |
+
"full_text": {
|
| 83 |
+
"p50": 35.23524999999239,
|
| 84 |
+
"p95": 45.33798499999121,
|
| 85 |
+
"max": 62.70569999999509
|
| 86 |
+
},
|
| 87 |
+
"stream_prefix": {
|
| 88 |
+
"p50": 24.14904999999834,
|
| 89 |
+
"p95": 30.585770000002547,
|
| 90 |
+
"max": 40.13349999999605
|
| 91 |
+
},
|
| 92 |
+
"stream_append": {
|
| 93 |
+
"p50": 1.7381500000084316,
|
| 94 |
+
"p95": 2.1214550000053123,
|
| 95 |
+
"max": 2.5810000000063837
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"until_seconds": 120.24174579999999,
|
| 101 |
+
"cycles": 432,
|
| 102 |
+
"wall_ms": {
|
| 103 |
+
"short_batch": {
|
| 104 |
+
"p50": 5.704749999992487,
|
| 105 |
+
"p95": 6.813590000002989,
|
| 106 |
+
"max": 12.272199999998179
|
| 107 |
+
},
|
| 108 |
+
"full_text": {
|
| 109 |
+
"p50": 35.99229999998954,
|
| 110 |
+
"p95": 43.69898500000602,
|
| 111 |
+
"max": 79.3342999999993
|
| 112 |
+
},
|
| 113 |
+
"stream_prefix": {
|
| 114 |
+
"p50": 24.30525000000472,
|
| 115 |
+
"p95": 29.3917300000075,
|
| 116 |
+
"max": 38.827299999994125
|
| 117 |
+
},
|
| 118 |
+
"stream_append": {
|
| 119 |
+
"p50": 1.730549999997777,
|
| 120 |
+
"p95": 2.1038799999942626,
|
| 121 |
+
"max": 4.755700000004026
|
| 122 |
+
}
|
| 123 |
+
}
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"until_seconds": 150.2901006,
|
| 127 |
+
"cycles": 439,
|
| 128 |
+
"wall_ms": {
|
| 129 |
+
"short_batch": {
|
| 130 |
+
"p50": 5.639900000005582,
|
| 131 |
+
"p95": 6.480990000005703,
|
| 132 |
+
"max": 11.253899999985606
|
| 133 |
+
},
|
| 134 |
+
"full_text": {
|
| 135 |
+
"p50": 35.34279999999512,
|
| 136 |
+
"p95": 43.350540000008664,
|
| 137 |
+
"max": 57.09950000002095
|
| 138 |
+
},
|
| 139 |
+
"stream_prefix": {
|
| 140 |
+
"p50": 23.79260000000727,
|
| 141 |
+
"p95": 28.512240000011943,
|
| 142 |
+
"max": 38.500999999996566
|
| 143 |
+
},
|
| 144 |
+
"stream_append": {
|
| 145 |
+
"p50": 1.7459999999971387,
|
| 146 |
+
"p95": 2.0795600000099053,
|
| 147 |
+
"max": 4.2424000000096385
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"until_seconds": 180.2962744,
|
| 153 |
+
"cycles": 449,
|
| 154 |
+
"wall_ms": {
|
| 155 |
+
"short_batch": {
|
| 156 |
+
"p50": 5.53249999998684,
|
| 157 |
+
"p95": 6.4883400000042,
|
| 158 |
+
"max": 14.120600000012473
|
| 159 |
+
},
|
| 160 |
+
"full_text": {
|
| 161 |
+
"p50": 34.113300000001345,
|
| 162 |
+
"p95": 41.74378000000161,
|
| 163 |
+
"max": 60.75629999998
|
| 164 |
+
},
|
| 165 |
+
"stream_prefix": {
|
| 166 |
+
"p50": 23.228000000017346,
|
| 167 |
+
"p95": 28.914959999985964,
|
| 168 |
+
"max": 42.30050000001029
|
| 169 |
+
},
|
| 170 |
+
"stream_append": {
|
| 171 |
+
"p50": 1.7110999999943033,
|
| 172 |
+
"p95": 2.0892000000060307,
|
| 173 |
+
"max": 5.307099999981801
|
| 174 |
+
}
|
| 175 |
+
}
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"until_seconds": 210.3435805,
|
| 179 |
+
"cycles": 432,
|
| 180 |
+
"wall_ms": {
|
| 181 |
+
"short_batch": {
|
| 182 |
+
"p50": 5.5907999999931235,
|
| 183 |
+
"p95": 6.768674999993607,
|
| 184 |
+
"max": 12.799699999987979
|
| 185 |
+
},
|
| 186 |
+
"full_text": {
|
| 187 |
+
"p50": 35.57585000000074,
|
| 188 |
+
"p95": 45.561595000006605,
|
| 189 |
+
"max": 55.49240000001987
|
| 190 |
+
},
|
| 191 |
+
"stream_prefix": {
|
| 192 |
+
"p50": 24.2144000000053,
|
| 193 |
+
"p95": 30.611720000011644,
|
| 194 |
+
"max": 38.586299999991525
|
| 195 |
+
},
|
| 196 |
+
"stream_append": {
|
| 197 |
+
"p50": 1.7112000000025773,
|
| 198 |
+
"p95": 2.0984500000110984,
|
| 199 |
+
"max": 2.9634999999927913
|
| 200 |
+
}
|
| 201 |
+
}
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"until_seconds": 240.385264,
|
| 205 |
+
"cycles": 449,
|
| 206 |
+
"wall_ms": {
|
| 207 |
+
"short_batch": {
|
| 208 |
+
"p50": 5.447500000002492,
|
| 209 |
+
"p95": 6.506740000003217,
|
| 210 |
+
"max": 12.448300000016843
|
| 211 |
+
},
|
| 212 |
+
"full_text": {
|
| 213 |
+
"p50": 34.095199999995884,
|
| 214 |
+
"p95": 42.52899999999612,
|
| 215 |
+
"max": 60.05410000000211
|
| 216 |
+
},
|
| 217 |
+
"stream_prefix": {
|
| 218 |
+
"p50": 23.182200000007924,
|
| 219 |
+
"p95": 28.237919999997985,
|
| 220 |
+
"max": 41.735100000011016
|
| 221 |
+
},
|
| 222 |
+
"stream_append": {
|
| 223 |
+
"p50": 1.6990999999961787,
|
| 224 |
+
"p95": 2.0875799999998885,
|
| 225 |
+
"max": 4.4204999999806205
|
| 226 |
+
}
|
| 227 |
+
}
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"until_seconds": 270.4429414,
|
| 231 |
+
"cycles": 451,
|
| 232 |
+
"wall_ms": {
|
| 233 |
+
"short_batch": {
|
| 234 |
+
"p50": 5.593900000008034,
|
| 235 |
+
"p95": 6.346549999989293,
|
| 236 |
+
"max": 11.208799999963048
|
| 237 |
+
},
|
| 238 |
+
"full_text": {
|
| 239 |
+
"p50": 34.189300000008416,
|
| 240 |
+
"p95": 41.568350000005694,
|
| 241 |
+
"max": 63.24329999998213
|
| 242 |
+
},
|
| 243 |
+
"stream_prefix": {
|
| 244 |
+
"p50": 23.32109999997556,
|
| 245 |
+
"p95": 27.927849999997534,
|
| 246 |
+
"max": 36.51680000001534
|
| 247 |
+
},
|
| 248 |
+
"stream_append": {
|
| 249 |
+
"p50": 1.7167999999969652,
|
| 250 |
+
"p95": 2.0045999999922515,
|
| 251 |
+
"max": 2.9528000000027532
|
| 252 |
+
}
|
| 253 |
+
}
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"until_seconds": 300.5017443,
|
| 257 |
+
"cycles": 445,
|
| 258 |
+
"wall_ms": {
|
| 259 |
+
"short_batch": {
|
| 260 |
+
"p50": 5.555200000003424,
|
| 261 |
+
"p95": 6.4161600000034005,
|
| 262 |
+
"max": 9.969699999999193
|
| 263 |
+
},
|
| 264 |
+
"full_text": {
|
| 265 |
+
"p50": 34.501499999976204,
|
| 266 |
+
"p95": 42.256700000018554,
|
| 267 |
+
"max": 60.585699999990084
|
| 268 |
+
},
|
| 269 |
+
"stream_prefix": {
|
| 270 |
+
"p50": 23.448700000017197,
|
| 271 |
+
"p95": 28.817779999985756,
|
| 272 |
+
"max": 49.54739999999447
|
| 273 |
+
},
|
| 274 |
+
"stream_append": {
|
| 275 |
+
"p50": 1.746099999991202,
|
| 276 |
+
"p95": 2.1699199999943626,
|
| 277 |
+
"max": 3.2249999999862666
|
| 278 |
+
}
|
| 279 |
+
}
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"until_seconds": 330.512735,
|
| 283 |
+
"cycles": 436,
|
| 284 |
+
"wall_ms": {
|
| 285 |
+
"short_batch": {
|
| 286 |
+
"p50": 5.566049999998768,
|
| 287 |
+
"p95": 6.97707499999467,
|
| 288 |
+
"max": 12.157199999990098
|
| 289 |
+
},
|
| 290 |
+
"full_text": {
|
| 291 |
+
"p50": 34.559150000006866,
|
| 292 |
+
"p95": 45.73522499998717,
|
| 293 |
+
"max": 81.7639999999642
|
| 294 |
+
},
|
| 295 |
+
"stream_prefix": {
|
| 296 |
+
"p50": 23.58839999999418,
|
| 297 |
+
"p95": 31.97079999998209,
|
| 298 |
+
"max": 51.59529999997403
|
| 299 |
+
},
|
| 300 |
+
"stream_append": {
|
| 301 |
+
"p50": 1.727500000015425,
|
| 302 |
+
"p95": 2.149799999997981,
|
| 303 |
+
"max": 3.261399999985315
|
| 304 |
+
}
|
| 305 |
+
}
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"until_seconds": 360.5533305,
|
| 309 |
+
"cycles": 448,
|
| 310 |
+
"wall_ms": {
|
| 311 |
+
"short_batch": {
|
| 312 |
+
"p50": 5.524100000002363,
|
| 313 |
+
"p95": 6.335475000025781,
|
| 314 |
+
"max": 12.176800000020194
|
| 315 |
+
},
|
| 316 |
+
"full_text": {
|
| 317 |
+
"p50": 34.15210000000002,
|
| 318 |
+
"p95": 42.79665000000534,
|
| 319 |
+
"max": 68.06810000000496
|
| 320 |
+
},
|
| 321 |
+
"stream_prefix": {
|
| 322 |
+
"p50": 23.38409999998703,
|
| 323 |
+
"p95": 28.46038499999395,
|
| 324 |
+
"max": 43.32959999999275
|
| 325 |
+
},
|
| 326 |
+
"stream_append": {
|
| 327 |
+
"p50": 1.717049999996334,
|
| 328 |
+
"p95": 2.082894999986706,
|
| 329 |
+
"max": 3.247900000019399
|
| 330 |
+
}
|
| 331 |
+
}
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"until_seconds": 390.5775455,
|
| 335 |
+
"cycles": 453,
|
| 336 |
+
"wall_ms": {
|
| 337 |
+
"short_batch": {
|
| 338 |
+
"p50": 5.486899999993966,
|
| 339 |
+
"p95": 6.127680000020064,
|
| 340 |
+
"max": 11.795799999958945
|
| 341 |
+
},
|
| 342 |
+
"full_text": {
|
| 343 |
+
"p50": 33.778199999972,
|
| 344 |
+
"p95": 41.37711999999283,
|
| 345 |
+
"max": 60.83399999999983
|
| 346 |
+
},
|
| 347 |
+
"stream_prefix": {
|
| 348 |
+
"p50": 23.324699999989207,
|
| 349 |
+
"p95": 27.681280000001607,
|
| 350 |
+
"max": 38.87090000000626
|
| 351 |
+
},
|
| 352 |
+
"stream_append": {
|
| 353 |
+
"p50": 1.7066999999997279,
|
| 354 |
+
"p95": 2.0307800000068705,
|
| 355 |
+
"max": 3.3262000000036096
|
| 356 |
+
}
|
| 357 |
+
}
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"until_seconds": 420.6351775,
|
| 361 |
+
"cycles": 441,
|
| 362 |
+
"wall_ms": {
|
| 363 |
+
"short_batch": {
|
| 364 |
+
"p50": 5.598200000008546,
|
| 365 |
+
"p95": 6.808399999954418,
|
| 366 |
+
"max": 14.067000000011376
|
| 367 |
+
},
|
| 368 |
+
"full_text": {
|
| 369 |
+
"p50": 34.53319999999849,
|
| 370 |
+
"p95": 43.332500000019536,
|
| 371 |
+
"max": 76.1550000000284
|
| 372 |
+
},
|
| 373 |
+
"stream_prefix": {
|
| 374 |
+
"p50": 23.69379999998955,
|
| 375 |
+
"p95": 29.336599999965074,
|
| 376 |
+
"max": 54.11839999999302
|
| 377 |
+
},
|
| 378 |
+
"stream_append": {
|
| 379 |
+
"p50": 1.7313000000171996,
|
| 380 |
+
"p95": 2.1993999999949665,
|
| 381 |
+
"max": 4.723099999978331
|
| 382 |
+
}
|
| 383 |
+
}
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"until_seconds": 450.6869256,
|
| 387 |
+
"cycles": 450,
|
| 388 |
+
"wall_ms": {
|
| 389 |
+
"short_batch": {
|
| 390 |
+
"p50": 5.5211000000099375,
|
| 391 |
+
"p95": 6.5587899999997035,
|
| 392 |
+
"max": 10.445600000025479
|
| 393 |
+
},
|
| 394 |
+
"full_text": {
|
| 395 |
+
"p50": 34.20040000000313,
|
| 396 |
+
"p95": 41.492014999994346,
|
| 397 |
+
"max": 66.08399999998937
|
| 398 |
+
},
|
| 399 |
+
"stream_prefix": {
|
| 400 |
+
"p50": 23.388749999980973,
|
| 401 |
+
"p95": 28.17070000003809,
|
| 402 |
+
"max": 42.09299999996574
|
| 403 |
+
},
|
| 404 |
+
"stream_append": {
|
| 405 |
+
"p50": 1.7145000000198252,
|
| 406 |
+
"p95": 2.0535650000056194,
|
| 407 |
+
"max": 4.65660000003254
|
| 408 |
+
}
|
| 409 |
+
}
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"until_seconds": 480.6964889,
|
| 413 |
+
"cycles": 451,
|
| 414 |
+
"wall_ms": {
|
| 415 |
+
"short_batch": {
|
| 416 |
+
"p50": 5.494599999963157,
|
| 417 |
+
"p95": 6.464399999970283,
|
| 418 |
+
"max": 13.732100000027003
|
| 419 |
+
},
|
| 420 |
+
"full_text": {
|
| 421 |
+
"p50": 33.67680000002338,
|
| 422 |
+
"p95": 41.724349999981314,
|
| 423 |
+
"max": 65.13999999998532
|
| 424 |
+
},
|
| 425 |
+
"stream_prefix": {
|
| 426 |
+
"p50": 23.291500000027554,
|
| 427 |
+
"p95": 28.492050000011204,
|
| 428 |
+
"max": 48.68469999996705
|
| 429 |
+
},
|
| 430 |
+
"stream_append": {
|
| 431 |
+
"p50": 1.7129999999951906,
|
| 432 |
+
"p95": 2.0540000000153213,
|
| 433 |
+
"max": 3.1530999999631604
|
| 434 |
+
}
|
| 435 |
+
}
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"until_seconds": 510.7426147,
|
| 439 |
+
"cycles": 458,
|
| 440 |
+
"wall_ms": {
|
| 441 |
+
"short_batch": {
|
| 442 |
+
"p50": 5.502649999982623,
|
| 443 |
+
"p95": 6.347030000057428,
|
| 444 |
+
"max": 12.091800000007424
|
| 445 |
+
},
|
| 446 |
+
"full_text": {
|
| 447 |
+
"p50": 33.49350000002005,
|
| 448 |
+
"p95": 40.82905000006747,
|
| 449 |
+
"max": 56.44489999997404
|
| 450 |
+
},
|
| 451 |
+
"stream_prefix": {
|
| 452 |
+
"p50": 23.098149999981388,
|
| 453 |
+
"p95": 27.43244499999946,
|
| 454 |
+
"max": 38.97310000002108
|
| 455 |
+
},
|
| 456 |
+
"stream_append": {
|
| 457 |
+
"p50": 1.6927000000066528,
|
| 458 |
+
"p95": 2.012855000040758,
|
| 459 |
+
"max": 3.16859999998087
|
| 460 |
+
}
|
| 461 |
+
}
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"until_seconds": 540.7788779,
|
| 465 |
+
"cycles": 450,
|
| 466 |
+
"wall_ms": {
|
| 467 |
+
"short_batch": {
|
| 468 |
+
"p50": 5.487099999982092,
|
| 469 |
+
"p95": 6.405570000026728,
|
| 470 |
+
"max": 13.37660000001506
|
| 471 |
+
},
|
| 472 |
+
"full_text": {
|
| 473 |
+
"p50": 33.67294999998194,
|
| 474 |
+
"p95": 40.96684000001572,
|
| 475 |
+
"max": 76.83959999997114
|
| 476 |
+
},
|
| 477 |
+
"stream_prefix": {
|
| 478 |
+
"p50": 23.379999999974643,
|
| 479 |
+
"p95": 29.199580000016567,
|
| 480 |
+
"max": 38.02659999996649
|
| 481 |
+
},
|
| 482 |
+
"stream_append": {
|
| 483 |
+
"p50": 1.7179999999257234,
|
| 484 |
+
"p95": 2.070344999970075,
|
| 485 |
+
"max": 3.3820000001014705
|
| 486 |
+
}
|
| 487 |
+
}
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"until_seconds": 570.8143989,
|
| 491 |
+
"cycles": 440,
|
| 492 |
+
"wall_ms": {
|
| 493 |
+
"short_batch": {
|
| 494 |
+
"p50": 5.580350000002454,
|
| 495 |
+
"p95": 6.765440000060607,
|
| 496 |
+
"max": 13.485299999956624
|
| 497 |
+
},
|
| 498 |
+
"full_text": {
|
| 499 |
+
"p50": 34.27614999998241,
|
| 500 |
+
"p95": 44.02852499999879,
|
| 501 |
+
"max": 63.6895000000095
|
| 502 |
+
},
|
| 503 |
+
"stream_prefix": {
|
| 504 |
+
"p50": 23.699400000054993,
|
| 505 |
+
"p95": 30.412350000011646,
|
| 506 |
+
"max": 39.235800000028576
|
| 507 |
+
},
|
| 508 |
+
"stream_append": {
|
| 509 |
+
"p50": 1.7336999999884029,
|
| 510 |
+
"p95": 2.2304300000143913,
|
| 511 |
+
"max": 6.546500000013111
|
| 512 |
+
}
|
| 513 |
+
}
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"until_seconds": 600.8517906,
|
| 517 |
+
"cycles": 444,
|
| 518 |
+
"wall_ms": {
|
| 519 |
+
"short_batch": {
|
| 520 |
+
"p50": 5.517550000035953,
|
| 521 |
+
"p95": 6.708720000005996,
|
| 522 |
+
"max": 11.929499999951076
|
| 523 |
+
},
|
| 524 |
+
"full_text": {
|
| 525 |
+
"p50": 34.534850000000006,
|
| 526 |
+
"p95": 43.47216000004436,
|
| 527 |
+
"max": 63.82419999999911
|
| 528 |
+
},
|
| 529 |
+
"stream_prefix": {
|
| 530 |
+
"p50": 23.56954999993377,
|
| 531 |
+
"p95": 29.22143499995968,
|
| 532 |
+
"max": 40.102999999930944
|
| 533 |
+
},
|
| 534 |
+
"stream_append": {
|
| 535 |
+
"p50": 1.7131000000176755,
|
| 536 |
+
"p95": 2.0903099999657115,
|
| 537 |
+
"max": 3.708799999913026
|
| 538 |
+
}
|
| 539 |
+
}
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"until_seconds": 630.9185663,
|
| 543 |
+
"cycles": 437,
|
| 544 |
+
"wall_ms": {
|
| 545 |
+
"short_batch": {
|
| 546 |
+
"p50": 5.574799999976676,
|
| 547 |
+
"p95": 7.238580000034744,
|
| 548 |
+
"max": 12.918700000000172
|
| 549 |
+
},
|
| 550 |
+
"full_text": {
|
| 551 |
+
"p50": 35.02040000000761,
|
| 552 |
+
"p95": 44.64796000004298,
|
| 553 |
+
"max": 63.3488999999372
|
| 554 |
+
},
|
| 555 |
+
"stream_prefix": {
|
| 556 |
+
"p50": 23.762799999985873,
|
| 557 |
+
"p95": 30.370640000001004,
|
| 558 |
+
"max": 43.622099999993225
|
| 559 |
+
},
|
| 560 |
+
"stream_append": {
|
| 561 |
+
"p50": 1.72870000005787,
|
| 562 |
+
"p95": 2.138019999961216,
|
| 563 |
+
"max": 4.244999999968968
|
| 564 |
+
}
|
| 565 |
+
}
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"until_seconds": 660.9721751,
|
| 569 |
+
"cycles": 437,
|
| 570 |
+
"wall_ms": {
|
| 571 |
+
"short_batch": {
|
| 572 |
+
"p50": 5.630600000017694,
|
| 573 |
+
"p95": 6.561780000015459,
|
| 574 |
+
"max": 11.373100000014347
|
| 575 |
+
},
|
| 576 |
+
"full_text": {
|
| 577 |
+
"p50": 34.83959999994113,
|
| 578 |
+
"p95": 44.79831999999533,
|
| 579 |
+
"max": 53.92119999999068
|
| 580 |
+
},
|
| 581 |
+
"stream_prefix": {
|
| 582 |
+
"p50": 23.99800000000596,
|
| 583 |
+
"p95": 29.655559999969228,
|
| 584 |
+
"max": 37.362300000040705
|
| 585 |
+
},
|
| 586 |
+
"stream_append": {
|
| 587 |
+
"p50": 1.7292999999654057,
|
| 588 |
+
"p95": 2.0726600000443796,
|
| 589 |
+
"max": 3.33520000003773
|
| 590 |
+
}
|
| 591 |
+
}
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"until_seconds": 690.9820009,
|
| 595 |
+
"cycles": 448,
|
| 596 |
+
"wall_ms": {
|
| 597 |
+
"short_batch": {
|
| 598 |
+
"p50": 5.564800000001924,
|
| 599 |
+
"p95": 6.4801950000457955,
|
| 600 |
+
"max": 11.005500000010215
|
| 601 |
+
},
|
| 602 |
+
"full_text": {
|
| 603 |
+
"p50": 33.878549999997176,
|
| 604 |
+
"p95": 42.19006500004525,
|
| 605 |
+
"max": 56.38310000006186
|
| 606 |
+
},
|
| 607 |
+
"stream_prefix": {
|
| 608 |
+
"p50": 23.58470000001489,
|
| 609 |
+
"p95": 28.26328499996862,
|
| 610 |
+
"max": 42.36109999999371
|
| 611 |
+
},
|
| 612 |
+
"stream_append": {
|
| 613 |
+
"p50": 1.7212000000199623,
|
| 614 |
+
"p95": 2.0309000000111155,
|
| 615 |
+
"max": 4.445499999974345
|
| 616 |
+
}
|
| 617 |
+
}
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"until_seconds": 721.0261781,
|
| 621 |
+
"cycles": 437,
|
| 622 |
+
"wall_ms": {
|
| 623 |
+
"short_batch": {
|
| 624 |
+
"p50": 5.68390000000818,
|
| 625 |
+
"p95": 6.588600000009137,
|
| 626 |
+
"max": 12.295099999960257
|
| 627 |
+
},
|
| 628 |
+
"full_text": {
|
| 629 |
+
"p50": 35.39709999995466,
|
| 630 |
+
"p95": 43.16813999998885,
|
| 631 |
+
"max": 64.24439999989318
|
| 632 |
+
},
|
| 633 |
+
"stream_prefix": {
|
| 634 |
+
"p50": 24.271600000020044,
|
| 635 |
+
"p95": 28.76315999999406,
|
| 636 |
+
"max": 41.93780000002789
|
| 637 |
+
},
|
| 638 |
+
"stream_append": {
|
| 639 |
+
"p50": 1.7393999999057996,
|
| 640 |
+
"p95": 2.1365599999398905,
|
| 641 |
+
"max": 4.394300000058138
|
| 642 |
+
}
|
| 643 |
+
}
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"until_seconds": 751.0959547,
|
| 647 |
+
"cycles": 442,
|
| 648 |
+
"wall_ms": {
|
| 649 |
+
"short_batch": {
|
| 650 |
+
"p50": 5.63169999998081,
|
| 651 |
+
"p95": 6.347339999916812,
|
| 652 |
+
"max": 12.204300000007606
|
| 653 |
+
},
|
| 654 |
+
"full_text": {
|
| 655 |
+
"p50": 34.69760000001543,
|
| 656 |
+
"p95": 42.79855999999427,
|
| 657 |
+
"max": 56.44119999999475
|
| 658 |
+
},
|
| 659 |
+
"stream_prefix": {
|
| 660 |
+
"p50": 23.96045000000413,
|
| 661 |
+
"p95": 29.61283500004583,
|
| 662 |
+
"max": 41.75010000005841
|
| 663 |
+
},
|
| 664 |
+
"stream_append": {
|
| 665 |
+
"p50": 1.7281500000194683,
|
| 666 |
+
"p95": 2.1143050000887342,
|
| 667 |
+
"max": 4.063200000018696
|
| 668 |
+
}
|
| 669 |
+
}
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"until_seconds": 781.1541784,
|
| 673 |
+
"cycles": 435,
|
| 674 |
+
"wall_ms": {
|
| 675 |
+
"short_batch": {
|
| 676 |
+
"p50": 5.624100000090948,
|
| 677 |
+
"p95": 6.714439999973363,
|
| 678 |
+
"max": 11.901699999953053
|
| 679 |
+
},
|
| 680 |
+
"full_text": {
|
| 681 |
+
"p50": 35.385100000098646,
|
| 682 |
+
"p95": 45.101900000008754,
|
| 683 |
+
"max": 68.85049999993953
|
| 684 |
+
},
|
| 685 |
+
"stream_prefix": {
|
| 686 |
+
"p50": 24.20680000000175,
|
| 687 |
+
"p95": 29.284629999995104,
|
| 688 |
+
"max": 44.31940000006307
|
| 689 |
+
},
|
| 690 |
+
"stream_append": {
|
| 691 |
+
"p50": 1.7497999999704916,
|
| 692 |
+
"p95": 2.158599999972921,
|
| 693 |
+
"max": 3.7357999999585445
|
| 694 |
+
}
|
| 695 |
+
}
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"until_seconds": 811.1677411000001,
|
| 699 |
+
"cycles": 452,
|
| 700 |
+
"wall_ms": {
|
| 701 |
+
"short_batch": {
|
| 702 |
+
"p50": 5.50199999997858,
|
| 703 |
+
"p95": 6.39641499998902,
|
| 704 |
+
"max": 11.48200000000088
|
| 705 |
+
},
|
| 706 |
+
"full_text": {
|
| 707 |
+
"p50": 33.325649999994766,
|
| 708 |
+
"p95": 40.89531499998316,
|
| 709 |
+
"max": 61.7174999999861
|
| 710 |
+
},
|
| 711 |
+
"stream_prefix": {
|
| 712 |
+
"p50": 23.392600000022412,
|
| 713 |
+
"p95": 28.02690499998448,
|
| 714 |
+
"max": 41.145400000004884
|
| 715 |
+
},
|
| 716 |
+
"stream_append": {
|
| 717 |
+
"p50": 1.7180999999482083,
|
| 718 |
+
"p95": 2.041805000021668,
|
| 719 |
+
"max": 5.36910000005264
|
| 720 |
+
}
|
| 721 |
+
}
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"until_seconds": 841.1690092,
|
| 725 |
+
"cycles": 445,
|
| 726 |
+
"wall_ms": {
|
| 727 |
+
"short_batch": {
|
| 728 |
+
"p50": 5.5704000000105225,
|
| 729 |
+
"p95": 6.44049999998515,
|
| 730 |
+
"max": 13.091700000018136
|
| 731 |
+
},
|
| 732 |
+
"full_text": {
|
| 733 |
+
"p50": 34.07820000006723,
|
| 734 |
+
"p95": 42.58635999997295,
|
| 735 |
+
"max": 62.59479999994255
|
| 736 |
+
},
|
| 737 |
+
"stream_prefix": {
|
| 738 |
+
"p50": 23.84319999998752,
|
| 739 |
+
"p95": 28.560079999988368,
|
| 740 |
+
"max": 45.592199999987315
|
| 741 |
+
},
|
| 742 |
+
"stream_append": {
|
| 743 |
+
"p50": 1.718999999980042,
|
| 744 |
+
"p95": 2.0562600000630478,
|
| 745 |
+
"max": 4.041199999960554
|
| 746 |
+
}
|
| 747 |
+
}
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"until_seconds": 871.2117731,
|
| 751 |
+
"cycles": 452,
|
| 752 |
+
"wall_ms": {
|
| 753 |
+
"short_batch": {
|
| 754 |
+
"p50": 5.471850000049017,
|
| 755 |
+
"p95": 6.303059999970628,
|
| 756 |
+
"max": 12.903399999913745
|
| 757 |
+
},
|
| 758 |
+
"full_text": {
|
| 759 |
+
"p50": 33.56174999998984,
|
| 760 |
+
"p95": 41.452734999995755,
|
| 761 |
+
"max": 66.94509999999809
|
| 762 |
+
},
|
| 763 |
+
"stream_prefix": {
|
| 764 |
+
"p50": 23.33354999996118,
|
| 765 |
+
"p95": 28.194974999956912,
|
| 766 |
+
"max": 43.53349999996681
|
| 767 |
+
},
|
| 768 |
+
"stream_append": {
|
| 769 |
+
"p50": 1.707999999950971,
|
| 770 |
+
"p95": 2.0538100000294435,
|
| 771 |
+
"max": 3.3742000000529515
|
| 772 |
+
}
|
| 773 |
+
}
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"until_seconds": 901.2305606,
|
| 777 |
+
"cycles": 448,
|
| 778 |
+
"wall_ms": {
|
| 779 |
+
"short_batch": {
|
| 780 |
+
"p50": 5.533649999961199,
|
| 781 |
+
"p95": 6.454999999994014,
|
| 782 |
+
"max": 10.944799999947463
|
| 783 |
+
},
|
| 784 |
+
"full_text": {
|
| 785 |
+
"p50": 33.97770000009359,
|
| 786 |
+
"p95": 41.88472500003968,
|
| 787 |
+
"max": 64.02280000008886
|
| 788 |
+
},
|
| 789 |
+
"stream_prefix": {
|
| 790 |
+
"p50": 23.494250000055672,
|
| 791 |
+
"p95": 28.831360000015135,
|
| 792 |
+
"max": 41.23760000004495
|
| 793 |
+
},
|
| 794 |
+
"stream_append": {
|
| 795 |
+
"p50": 1.7235500000083448,
|
| 796 |
+
"p95": 2.0464649999951234,
|
| 797 |
+
"max": 3.6475999999083797
|
| 798 |
+
}
|
| 799 |
+
}
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"until_seconds": 931.2387337,
|
| 803 |
+
"cycles": 457,
|
| 804 |
+
"wall_ms": {
|
| 805 |
+
"short_batch": {
|
| 806 |
+
"p50": 5.459299999984069,
|
| 807 |
+
"p95": 6.357440000056158,
|
| 808 |
+
"max": 14.53819999994721
|
| 809 |
+
},
|
| 810 |
+
"full_text": {
|
| 811 |
+
"p50": 33.44609999999193,
|
| 812 |
+
"p95": 40.55265999995754,
|
| 813 |
+
"max": 68.33230000006552
|
| 814 |
+
},
|
| 815 |
+
"stream_prefix": {
|
| 816 |
+
"p50": 23.030500000004395,
|
| 817 |
+
"p95": 27.22421999999369,
|
| 818 |
+
"max": 35.02719999994497
|
| 819 |
+
},
|
| 820 |
+
"stream_append": {
|
| 821 |
+
"p50": 1.7052000000603584,
|
| 822 |
+
"p95": 2.033859999960441,
|
| 823 |
+
"max": 13.433899999995447
|
| 824 |
+
}
|
| 825 |
+
}
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"until_seconds": 961.2425743,
|
| 829 |
+
"cycles": 462,
|
| 830 |
+
"wall_ms": {
|
| 831 |
+
"short_batch": {
|
| 832 |
+
"p50": 5.417950000037308,
|
| 833 |
+
"p95": 6.178034999999227,
|
| 834 |
+
"max": 10.681900000008682
|
| 835 |
+
},
|
| 836 |
+
"full_text": {
|
| 837 |
+
"p50": 33.053800000004685,
|
| 838 |
+
"p95": 39.39017499990882,
|
| 839 |
+
"max": 49.806799999942086
|
| 840 |
+
},
|
| 841 |
+
"stream_prefix": {
|
| 842 |
+
"p50": 23.003899999991972,
|
| 843 |
+
"p95": 27.182525000006308,
|
| 844 |
+
"max": 32.60690000001887
|
| 845 |
+
},
|
| 846 |
+
"stream_append": {
|
| 847 |
+
"p50": 1.6986499999802618,
|
| 848 |
+
"p95": 2.001869999958217,
|
| 849 |
+
"max": 3.752399999939371
|
| 850 |
+
}
|
| 851 |
+
}
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"until_seconds": 991.2816432,
|
| 855 |
+
"cycles": 456,
|
| 856 |
+
"wall_ms": {
|
| 857 |
+
"short_batch": {
|
| 858 |
+
"p50": 5.490899999983867,
|
| 859 |
+
"p95": 6.259749999969699,
|
| 860 |
+
"max": 13.170599999966726
|
| 861 |
+
},
|
| 862 |
+
"full_text": {
|
| 863 |
+
"p50": 33.62735000007433,
|
| 864 |
+
"p95": 40.853900000001886,
|
| 865 |
+
"max": 65.3884000000744
|
| 866 |
+
},
|
| 867 |
+
"stream_prefix": {
|
| 868 |
+
"p50": 23.325649999947018,
|
| 869 |
+
"p95": 27.06189999992148,
|
| 870 |
+
"max": 38.23660000000473
|
| 871 |
+
},
|
| 872 |
+
"stream_append": {
|
| 873 |
+
"p50": 1.7064499999719374,
|
| 874 |
+
"p95": 2.0334749999904034,
|
| 875 |
+
"max": 3.4558000000970424
|
| 876 |
+
}
|
| 877 |
+
}
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"until_seconds": 1021.3224688,
|
| 881 |
+
"cycles": 455,
|
| 882 |
+
"wall_ms": {
|
| 883 |
+
"short_batch": {
|
| 884 |
+
"p50": 5.484700000010889,
|
| 885 |
+
"p95": 6.390659999942726,
|
| 886 |
+
"max": 12.262500000019827
|
| 887 |
+
},
|
| 888 |
+
"full_text": {
|
| 889 |
+
"p50": 33.713699999907476,
|
| 890 |
+
"p95": 40.56152999993401,
|
| 891 |
+
"max": 47.201000000086424
|
| 892 |
+
},
|
| 893 |
+
"stream_prefix": {
|
| 894 |
+
"p50": 23.265799999990122,
|
| 895 |
+
"p95": 27.66250000005356,
|
| 896 |
+
"max": 37.55910000006679
|
| 897 |
+
},
|
| 898 |
+
"stream_append": {
|
| 899 |
+
"p50": 1.707899999928486,
|
| 900 |
+
"p95": 1.985329999990881,
|
| 901 |
+
"max": 5.179199999929551
|
| 902 |
+
}
|
| 903 |
+
}
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"until_seconds": 1051.3350796,
|
| 907 |
+
"cycles": 457,
|
| 908 |
+
"wall_ms": {
|
| 909 |
+
"short_batch": {
|
| 910 |
+
"p50": 5.4554999999254505,
|
| 911 |
+
"p95": 6.204699999898366,
|
| 912 |
+
"max": 14.2287999999553
|
| 913 |
+
},
|
| 914 |
+
"full_text": {
|
| 915 |
+
"p50": 33.48170000003847,
|
| 916 |
+
"p95": 40.75079999988702,
|
| 917 |
+
"max": 47.53230000005715
|
| 918 |
+
},
|
| 919 |
+
"stream_prefix": {
|
| 920 |
+
"p50": 23.227899999938018,
|
| 921 |
+
"p95": 27.394640000056818,
|
| 922 |
+
"max": 30.795200000056866
|
| 923 |
+
},
|
| 924 |
+
"stream_append": {
|
| 925 |
+
"p50": 1.6984999999749562,
|
| 926 |
+
"p95": 1.9542000001365523,
|
| 927 |
+
"max": 4.281900000023597
|
| 928 |
+
}
|
| 929 |
+
}
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"until_seconds": 1081.3526304,
|
| 933 |
+
"cycles": 442,
|
| 934 |
+
"wall_ms": {
|
| 935 |
+
"short_batch": {
|
| 936 |
+
"p50": 5.556299999966541,
|
| 937 |
+
"p95": 6.499949999931687,
|
| 938 |
+
"max": 11.979099999962273
|
| 939 |
+
},
|
| 940 |
+
"full_text": {
|
| 941 |
+
"p50": 34.18229999999767,
|
| 942 |
+
"p95": 43.96517500003937,
|
| 943 |
+
"max": 60.22280000001956
|
| 944 |
+
},
|
| 945 |
+
"stream_prefix": {
|
| 946 |
+
"p50": 23.768450000034136,
|
| 947 |
+
"p95": 29.608240000027305,
|
| 948 |
+
"max": 51.035399999818765
|
| 949 |
+
},
|
| 950 |
+
"stream_append": {
|
| 951 |
+
"p50": 1.71754999996665,
|
| 952 |
+
"p95": 2.0468400000936526,
|
| 953 |
+
"max": 3.007300000035684
|
| 954 |
+
}
|
| 955 |
+
}
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"until_seconds": 1111.3724163,
|
| 959 |
+
"cycles": 451,
|
| 960 |
+
"wall_ms": {
|
| 961 |
+
"short_batch": {
|
| 962 |
+
"p50": 5.470000000059372,
|
| 963 |
+
"p95": 6.110199999966426,
|
| 964 |
+
"max": 11.802100000068094
|
| 965 |
+
},
|
| 966 |
+
"full_text": {
|
| 967 |
+
"p50": 33.644099999946775,
|
| 968 |
+
"p95": 42.00394999986656,
|
| 969 |
+
"max": 50.672999999960666
|
| 970 |
+
},
|
| 971 |
+
"stream_prefix": {
|
| 972 |
+
"p50": 23.514699999850563,
|
| 973 |
+
"p95": 28.262100000006285,
|
| 974 |
+
"max": 39.43920000006074
|
| 975 |
+
},
|
| 976 |
+
"stream_append": {
|
| 977 |
+
"p50": 1.6996000001654465,
|
| 978 |
+
"p95": 2.0097500000701984,
|
| 979 |
+
"max": 3.1828999999561347
|
| 980 |
+
}
|
| 981 |
+
}
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"until_seconds": 1141.3828367,
|
| 985 |
+
"cycles": 445,
|
| 986 |
+
"wall_ms": {
|
| 987 |
+
"short_batch": {
|
| 988 |
+
"p50": 5.502299999989191,
|
| 989 |
+
"p95": 6.511679999857732,
|
| 990 |
+
"max": 14.231600000130129
|
| 991 |
+
},
|
| 992 |
+
"full_text": {
|
| 993 |
+
"p50": 34.17699999999968,
|
| 994 |
+
"p95": 43.06685999995352,
|
| 995 |
+
"max": 57.65819999987798
|
| 996 |
+
},
|
| 997 |
+
"stream_prefix": {
|
| 998 |
+
"p50": 23.54590000004464,
|
| 999 |
+
"p95": 29.287839999869888,
|
| 1000 |
+
"max": 39.45829999997841
|
| 1001 |
+
},
|
| 1002 |
+
"stream_append": {
|
| 1003 |
+
"p50": 1.714699999865843,
|
| 1004 |
+
"p95": 2.0647800001370338,
|
| 1005 |
+
"max": 3.6754000000200904
|
| 1006 |
+
}
|
| 1007 |
+
}
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"until_seconds": 1171.4327358,
|
| 1011 |
+
"cycles": 449,
|
| 1012 |
+
"wall_ms": {
|
| 1013 |
+
"short_batch": {
|
| 1014 |
+
"p50": 5.49549999982446,
|
| 1015 |
+
"p95": 6.251960000054168,
|
| 1016 |
+
"max": 10.796300000038173
|
| 1017 |
+
},
|
| 1018 |
+
"full_text": {
|
| 1019 |
+
"p50": 33.78470000006928,
|
| 1020 |
+
"p95": 42.13052000004608,
|
| 1021 |
+
"max": 55.42579999996633
|
| 1022 |
+
},
|
| 1023 |
+
"stream_prefix": {
|
| 1024 |
+
"p50": 23.658800000021074,
|
| 1025 |
+
"p95": 28.296960000034225,
|
| 1026 |
+
"max": 45.47780000007151
|
| 1027 |
+
},
|
| 1028 |
+
"stream_append": {
|
| 1029 |
+
"p50": 1.6993000001548353,
|
| 1030 |
+
"p95": 2.0075999998880434,
|
| 1031 |
+
"max": 3.6106000000017957
|
| 1032 |
+
}
|
| 1033 |
+
}
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"until_seconds": 1201.4867972,
|
| 1037 |
+
"cycles": 452,
|
| 1038 |
+
"wall_ms": {
|
| 1039 |
+
"short_batch": {
|
| 1040 |
+
"p50": 5.514599999969505,
|
| 1041 |
+
"p95": 6.259995000027629,
|
| 1042 |
+
"max": 11.52019999994991
|
| 1043 |
+
},
|
| 1044 |
+
"full_text": {
|
| 1045 |
+
"p50": 33.84254999991754,
|
| 1046 |
+
"p95": 41.55215500004488,
|
| 1047 |
+
"max": 46.849600000086866
|
| 1048 |
+
},
|
| 1049 |
+
"stream_prefix": {
|
| 1050 |
+
"p50": 23.516500000027918,
|
| 1051 |
+
"p95": 28.13212500005875,
|
| 1052 |
+
"max": 33.55080000005728
|
| 1053 |
+
},
|
| 1054 |
+
"stream_append": {
|
| 1055 |
+
"p50": 1.7115499999817985,
|
| 1056 |
+
"p95": 1.9980049999844596,
|
| 1057 |
+
"max": 3.7316000000373606
|
| 1058 |
+
}
|
| 1059 |
+
}
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"until_seconds": 1231.5121941,
|
| 1063 |
+
"cycles": 456,
|
| 1064 |
+
"wall_ms": {
|
| 1065 |
+
"short_batch": {
|
| 1066 |
+
"p50": 5.43405000007624,
|
| 1067 |
+
"p95": 6.313249999948312,
|
| 1068 |
+
"max": 14.100200000029872
|
| 1069 |
+
},
|
| 1070 |
+
"full_text": {
|
| 1071 |
+
"p50": 33.54080000008253,
|
| 1072 |
+
"p95": 40.84442499998886,
|
| 1073 |
+
"max": 48.62679999996544
|
| 1074 |
+
},
|
| 1075 |
+
"stream_prefix": {
|
| 1076 |
+
"p50": 23.229899999932968,
|
| 1077 |
+
"p95": 27.444350000109807,
|
| 1078 |
+
"max": 36.832300000014584
|
| 1079 |
+
},
|
| 1080 |
+
"stream_append": {
|
| 1081 |
+
"p50": 1.6852999999628082,
|
| 1082 |
+
"p95": 2.01924999998937,
|
| 1083 |
+
"max": 4.054500000165717
|
| 1084 |
+
}
|
| 1085 |
+
}
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"until_seconds": 1261.5424033,
|
| 1089 |
+
"cycles": 455,
|
| 1090 |
+
"wall_ms": {
|
| 1091 |
+
"short_batch": {
|
| 1092 |
+
"p50": 5.471700000043711,
|
| 1093 |
+
"p95": 6.227910000075099,
|
| 1094 |
+
"max": 11.974899999813715
|
| 1095 |
+
},
|
| 1096 |
+
"full_text": {
|
| 1097 |
+
"p50": 33.60270000007404,
|
| 1098 |
+
"p95": 41.25575999994452,
|
| 1099 |
+
"max": 47.27309999998397
|
| 1100 |
+
},
|
| 1101 |
+
"stream_prefix": {
|
| 1102 |
+
"p50": 23.37020000004486,
|
| 1103 |
+
"p95": 27.73779000001467,
|
| 1104 |
+
"max": 32.926299999871844
|
| 1105 |
+
},
|
| 1106 |
+
"stream_append": {
|
| 1107 |
+
"p50": 1.696799999990617,
|
| 1108 |
+
"p95": 2.0238200000903817,
|
| 1109 |
+
"max": 3.7807999999586173
|
| 1110 |
+
}
|
| 1111 |
+
}
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"until_seconds": 1291.5430865,
|
| 1115 |
+
"cycles": 457,
|
| 1116 |
+
"wall_ms": {
|
| 1117 |
+
"short_batch": {
|
| 1118 |
+
"p50": 5.447300000014366,
|
| 1119 |
+
"p95": 6.352019999985714,
|
| 1120 |
+
"max": 11.183000000073662
|
| 1121 |
+
},
|
| 1122 |
+
"full_text": {
|
| 1123 |
+
"p50": 33.34209999979976,
|
| 1124 |
+
"p95": 40.920980000100826,
|
| 1125 |
+
"max": 63.594600000214996
|
| 1126 |
+
},
|
| 1127 |
+
"stream_prefix": {
|
| 1128 |
+
"p50": 23.195299999997587,
|
| 1129 |
+
"p95": 27.35865999998168,
|
| 1130 |
+
"max": 38.45890000002328
|
| 1131 |
+
},
|
| 1132 |
+
"stream_append": {
|
| 1133 |
+
"p50": 1.698199999964345,
|
| 1134 |
+
"p95": 2.0493800000622286,
|
| 1135 |
+
"max": 3.3161999999720138
|
| 1136 |
+
}
|
| 1137 |
+
}
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"until_seconds": 1321.5505603,
|
| 1141 |
+
"cycles": 455,
|
| 1142 |
+
"wall_ms": {
|
| 1143 |
+
"short_batch": {
|
| 1144 |
+
"p50": 5.464100000153849,
|
| 1145 |
+
"p95": 6.22205000008762,
|
| 1146 |
+
"max": 11.762399999952322
|
| 1147 |
+
},
|
| 1148 |
+
"full_text": {
|
| 1149 |
+
"p50": 33.568800000011834,
|
| 1150 |
+
"p95": 41.27597000001514,
|
| 1151 |
+
"max": 47.466699999858974
|
| 1152 |
+
},
|
| 1153 |
+
"stream_prefix": {
|
| 1154 |
+
"p50": 23.258899999973437,
|
| 1155 |
+
"p95": 28.142189999994102,
|
| 1156 |
+
"max": 32.56699999997181
|
| 1157 |
+
},
|
| 1158 |
+
"stream_append": {
|
| 1159 |
+
"p50": 1.7115999999077758,
|
| 1160 |
+
"p95": 2.101589999983843,
|
| 1161 |
+
"max": 3.5474999999678403
|
| 1162 |
+
}
|
| 1163 |
+
}
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"until_seconds": 1351.6178837,
|
| 1167 |
+
"cycles": 456,
|
| 1168 |
+
"wall_ms": {
|
| 1169 |
+
"short_batch": {
|
| 1170 |
+
"p50": 5.451950000065153,
|
| 1171 |
+
"p95": 6.304899999918234,
|
| 1172 |
+
"max": 13.889500000004773
|
| 1173 |
+
},
|
| 1174 |
+
"full_text": {
|
| 1175 |
+
"p50": 33.53640000011637,
|
| 1176 |
+
"p95": 40.84317499984991,
|
| 1177 |
+
"max": 53.0932000001485
|
| 1178 |
+
},
|
| 1179 |
+
"stream_prefix": {
|
| 1180 |
+
"p50": 23.33760000010443,
|
| 1181 |
+
"p95": 28.050725000070997,
|
| 1182 |
+
"max": 33.74209999992672
|
| 1183 |
+
},
|
| 1184 |
+
"stream_append": {
|
| 1185 |
+
"p50": 1.6968999999562584,
|
| 1186 |
+
"p95": 2.0502499999679458,
|
| 1187 |
+
"max": 3.4896999998181855
|
| 1188 |
+
}
|
| 1189 |
+
}
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"until_seconds": 1381.6685712,
|
| 1193 |
+
"cycles": 461,
|
| 1194 |
+
"wall_ms": {
|
| 1195 |
+
"short_batch": {
|
| 1196 |
+
"p50": 5.4259999999430875,
|
| 1197 |
+
"p95": 6.097100000033606,
|
| 1198 |
+
"max": 11.906899999985399
|
| 1199 |
+
},
|
| 1200 |
+
"full_text": {
|
| 1201 |
+
"p50": 33.016200000020035,
|
| 1202 |
+
"p95": 40.15849999996135,
|
| 1203 |
+
"max": 47.702899999876536
|
| 1204 |
+
},
|
| 1205 |
+
"stream_prefix": {
|
| 1206 |
+
"p50": 23.035899999968024,
|
| 1207 |
+
"p95": 27.94890000018313,
|
| 1208 |
+
"max": 35.94369999996161
|
| 1209 |
+
},
|
| 1210 |
+
"stream_append": {
|
| 1211 |
+
"p50": 1.7022000001816195,
|
| 1212 |
+
"p95": 2.0242000000507687,
|
| 1213 |
+
"max": 3.6878999999316875
|
| 1214 |
+
}
|
| 1215 |
+
}
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"until_seconds": 1411.6907099,
|
| 1219 |
+
"cycles": 455,
|
| 1220 |
+
"wall_ms": {
|
| 1221 |
+
"short_batch": {
|
| 1222 |
+
"p50": 5.450399999972433,
|
| 1223 |
+
"p95": 6.539309999948271,
|
| 1224 |
+
"max": 12.332300000025498
|
| 1225 |
+
},
|
| 1226 |
+
"full_text": {
|
| 1227 |
+
"p50": 33.20039999994151,
|
| 1228 |
+
"p95": 40.77563000005284,
|
| 1229 |
+
"max": 65.74479999994765
|
| 1230 |
+
},
|
| 1231 |
+
"stream_prefix": {
|
| 1232 |
+
"p50": 23.26819999984764,
|
| 1233 |
+
"p95": 28.45244999998613,
|
| 1234 |
+
"max": 45.459100000016406
|
| 1235 |
+
},
|
| 1236 |
+
"stream_append": {
|
| 1237 |
+
"p50": 1.711000000113927,
|
| 1238 |
+
"p95": 2.0204100000000835,
|
| 1239 |
+
"max": 3.595900000163965
|
| 1240 |
+
}
|
| 1241 |
+
}
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"until_seconds": 1441.7496856,
|
| 1245 |
+
"cycles": 458,
|
| 1246 |
+
"wall_ms": {
|
| 1247 |
+
"short_batch": {
|
| 1248 |
+
"p50": 5.45675000000756,
|
| 1249 |
+
"p95": 6.213670000147431,
|
| 1250 |
+
"max": 12.197000000014668
|
| 1251 |
+
},
|
| 1252 |
+
"full_text": {
|
| 1253 |
+
"p50": 33.000600000036684,
|
| 1254 |
+
"p95": 40.6167249999271,
|
| 1255 |
+
"max": 55.041699999947014
|
| 1256 |
+
},
|
| 1257 |
+
"stream_prefix": {
|
| 1258 |
+
"p50": 23.210249999920052,
|
| 1259 |
+
"p95": 28.16139500008603,
|
| 1260 |
+
"max": 37.95690000015384
|
| 1261 |
+
},
|
| 1262 |
+
"stream_append": {
|
| 1263 |
+
"p50": 1.6943500000934364,
|
| 1264 |
+
"p95": 2.0354900000370435,
|
| 1265 |
+
"max": 2.7034999998249987
|
| 1266 |
+
}
|
| 1267 |
+
}
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"until_seconds": 1471.7593846,
|
| 1271 |
+
"cycles": 461,
|
| 1272 |
+
"wall_ms": {
|
| 1273 |
+
"short_batch": {
|
| 1274 |
+
"p50": 5.443999999897642,
|
| 1275 |
+
"p95": 6.039999999984502,
|
| 1276 |
+
"max": 12.912099999994098
|
| 1277 |
+
},
|
| 1278 |
+
"full_text": {
|
| 1279 |
+
"p50": 32.98469999981535,
|
| 1280 |
+
"p95": 39.546000000200365,
|
| 1281 |
+
"max": 45.770400000037625
|
| 1282 |
+
},
|
| 1283 |
+
"stream_prefix": {
|
| 1284 |
+
"p50": 23.023299999977098,
|
| 1285 |
+
"p95": 27.87069999999403,
|
| 1286 |
+
"max": 32.327699999996184
|
| 1287 |
+
},
|
| 1288 |
+
"stream_append": {
|
| 1289 |
+
"p50": 1.7034000002240646,
|
| 1290 |
+
"p95": 1.9772999999077001,
|
| 1291 |
+
"max": 4.046099999868602
|
| 1292 |
+
}
|
| 1293 |
+
}
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"until_seconds": 1501.7749019,
|
| 1297 |
+
"cycles": 456,
|
| 1298 |
+
"wall_ms": {
|
| 1299 |
+
"short_batch": {
|
| 1300 |
+
"p50": 5.432449999943856,
|
| 1301 |
+
"p95": 6.3581749999457315,
|
| 1302 |
+
"max": 21.63980000000265
|
| 1303 |
+
},
|
| 1304 |
+
"full_text": {
|
| 1305 |
+
"p50": 33.23230000000876,
|
| 1306 |
+
"p95": 41.07152499989297,
|
| 1307 |
+
"max": 52.86670000009508
|
| 1308 |
+
},
|
| 1309 |
+
"stream_prefix": {
|
| 1310 |
+
"p50": 23.119050000104835,
|
| 1311 |
+
"p95": 27.571574999967652,
|
| 1312 |
+
"max": 35.52860000013425
|
| 1313 |
+
},
|
| 1314 |
+
"stream_append": {
|
| 1315 |
+
"p50": 1.7080499999337917,
|
| 1316 |
+
"p95": 2.0222250000756503,
|
| 1317 |
+
"max": 3.6823999998887302
|
| 1318 |
+
}
|
| 1319 |
+
}
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"until_seconds": 1531.7870228,
|
| 1323 |
+
"cycles": 459,
|
| 1324 |
+
"wall_ms": {
|
| 1325 |
+
"short_batch": {
|
| 1326 |
+
"p50": 5.447499999945649,
|
| 1327 |
+
"p95": 6.308179999996354,
|
| 1328 |
+
"max": 11.190299999952913
|
| 1329 |
+
},
|
| 1330 |
+
"full_text": {
|
| 1331 |
+
"p50": 32.87410000007185,
|
| 1332 |
+
"p95": 41.58950999994886,
|
| 1333 |
+
"max": 45.8944000001793
|
| 1334 |
+
},
|
| 1335 |
+
"stream_prefix": {
|
| 1336 |
+
"p50": 23.101799999949435,
|
| 1337 |
+
"p95": 28.131890000122436,
|
| 1338 |
+
"max": 31.40750000011394
|
| 1339 |
+
},
|
| 1340 |
+
"stream_append": {
|
| 1341 |
+
"p50": 1.7050999999810301,
|
| 1342 |
+
"p95": 2.0246500000439482,
|
| 1343 |
+
"max": 3.913799999963885
|
| 1344 |
+
}
|
| 1345 |
+
}
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"until_seconds": 1561.8381358,
|
| 1349 |
+
"cycles": 458,
|
| 1350 |
+
"wall_ms": {
|
| 1351 |
+
"short_batch": {
|
| 1352 |
+
"p50": 5.442550000111623,
|
| 1353 |
+
"p95": 6.232459999989715,
|
| 1354 |
+
"max": 12.678199999982098
|
| 1355 |
+
},
|
| 1356 |
+
"full_text": {
|
| 1357 |
+
"p50": 33.17345000016303,
|
| 1358 |
+
"p95": 40.949305000106044,
|
| 1359 |
+
"max": 45.94279999992068
|
| 1360 |
+
},
|
| 1361 |
+
"stream_prefix": {
|
| 1362 |
+
"p50": 23.119049999991148,
|
| 1363 |
+
"p95": 27.801729999964664,
|
| 1364 |
+
"max": 34.477599999945596
|
| 1365 |
+
},
|
| 1366 |
+
"stream_append": {
|
| 1367 |
+
"p50": 1.715950000061639,
|
| 1368 |
+
"p95": 2.0919350000099257,
|
| 1369 |
+
"max": 4.048300000022209
|
| 1370 |
+
}
|
| 1371 |
+
}
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"until_seconds": 1591.8413923,
|
| 1375 |
+
"cycles": 449,
|
| 1376 |
+
"wall_ms": {
|
| 1377 |
+
"short_batch": {
|
| 1378 |
+
"p50": 5.502100000057908,
|
| 1379 |
+
"p95": 6.552900000087902,
|
| 1380 |
+
"max": 13.187900000048103
|
| 1381 |
+
},
|
| 1382 |
+
"full_text": {
|
| 1383 |
+
"p50": 33.707999999933236,
|
| 1384 |
+
"p95": 42.11017999996329,
|
| 1385 |
+
"max": 72.13600000000042
|
| 1386 |
+
},
|
| 1387 |
+
"stream_prefix": {
|
| 1388 |
+
"p50": 23.53920000018661,
|
| 1389 |
+
"p95": 28.85304000014912,
|
| 1390 |
+
"max": 41.17939999991904
|
| 1391 |
+
},
|
| 1392 |
+
"stream_append": {
|
| 1393 |
+
"p50": 1.6995000000861182,
|
| 1394 |
+
"p95": 2.0781199998509687,
|
| 1395 |
+
"max": 3.7566000000879285
|
| 1396 |
+
}
|
| 1397 |
+
}
|
| 1398 |
+
},
|
| 1399 |
+
{
|
| 1400 |
+
"until_seconds": 1621.8427264,
|
| 1401 |
+
"cycles": 457,
|
| 1402 |
+
"wall_ms": {
|
| 1403 |
+
"short_batch": {
|
| 1404 |
+
"p50": 5.4364000000077795,
|
| 1405 |
+
"p95": 6.159540000135166,
|
| 1406 |
+
"max": 12.468000000126267
|
| 1407 |
+
},
|
| 1408 |
+
"full_text": {
|
| 1409 |
+
"p50": 33.301899999969464,
|
| 1410 |
+
"p95": 41.45112000014706,
|
| 1411 |
+
"max": 45.731700000033015
|
| 1412 |
+
},
|
| 1413 |
+
"stream_prefix": {
|
| 1414 |
+
"p50": 23.185400000102163,
|
| 1415 |
+
"p95": 28.04027999995924,
|
| 1416 |
+
"max": 33.80519999996068
|
| 1417 |
+
},
|
| 1418 |
+
"stream_append": {
|
| 1419 |
+
"p50": 1.6906000000744825,
|
| 1420 |
+
"p95": 2.0402000000103726,
|
| 1421 |
+
"max": 4.029500000115149
|
| 1422 |
+
}
|
| 1423 |
+
}
|
| 1424 |
+
},
|
| 1425 |
+
{
|
| 1426 |
+
"until_seconds": 1651.869723,
|
| 1427 |
+
"cycles": 455,
|
| 1428 |
+
"wall_ms": {
|
| 1429 |
+
"short_batch": {
|
| 1430 |
+
"p50": 5.45149999993555,
|
| 1431 |
+
"p95": 6.129179999902588,
|
| 1432 |
+
"max": 14.46980000014264
|
| 1433 |
+
},
|
| 1434 |
+
"full_text": {
|
| 1435 |
+
"p50": 33.344599999963975,
|
| 1436 |
+
"p95": 41.37409000002206,
|
| 1437 |
+
"max": 48.24870000015835
|
| 1438 |
+
},
|
| 1439 |
+
"stream_prefix": {
|
| 1440 |
+
"p50": 23.2843999999659,
|
| 1441 |
+
"p95": 28.18498999995426,
|
| 1442 |
+
"max": 40.7018999999309
|
| 1443 |
+
},
|
| 1444 |
+
"stream_append": {
|
| 1445 |
+
"p50": 1.7162999999982276,
|
| 1446 |
+
"p95": 2.0406699998829936,
|
| 1447 |
+
"max": 3.5540999999739142
|
| 1448 |
+
}
|
| 1449 |
+
}
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"until_seconds": 1681.8766832,
|
| 1453 |
+
"cycles": 455,
|
| 1454 |
+
"wall_ms": {
|
| 1455 |
+
"short_batch": {
|
| 1456 |
+
"p50": 5.479400000012902,
|
| 1457 |
+
"p95": 6.184080000070934,
|
| 1458 |
+
"max": 12.03069999996842
|
| 1459 |
+
},
|
| 1460 |
+
"full_text": {
|
| 1461 |
+
"p50": 33.56970000004367,
|
| 1462 |
+
"p95": 41.065220000041336,
|
| 1463 |
+
"max": 44.51770000014221
|
| 1464 |
+
},
|
| 1465 |
+
"stream_prefix": {
|
| 1466 |
+
"p50": 23.267899999837027,
|
| 1467 |
+
"p95": 28.494159999877404,
|
| 1468 |
+
"max": 35.90270000017881
|
| 1469 |
+
},
|
| 1470 |
+
"stream_append": {
|
| 1471 |
+
"p50": 1.6900999999052146,
|
| 1472 |
+
"p95": 2.0449600000802084,
|
| 1473 |
+
"max": 3.9839999999458087
|
| 1474 |
+
}
|
| 1475 |
+
}
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"until_seconds": 1711.9330432,
|
| 1479 |
+
"cycles": 456,
|
| 1480 |
+
"wall_ms": {
|
| 1481 |
+
"short_batch": {
|
| 1482 |
+
"p50": 5.461199999899691,
|
| 1483 |
+
"p95": 6.284724999943592,
|
| 1484 |
+
"max": 15.309000000115702
|
| 1485 |
+
},
|
| 1486 |
+
"full_text": {
|
| 1487 |
+
"p50": 33.56810000002497,
|
| 1488 |
+
"p95": 41.16862499995477,
|
| 1489 |
+
"max": 48.949999999877036
|
| 1490 |
+
},
|
| 1491 |
+
"stream_prefix": {
|
| 1492 |
+
"p50": 23.32145000013952,
|
| 1493 |
+
"p95": 27.540425000040614,
|
| 1494 |
+
"max": 34.6686000000318
|
| 1495 |
+
},
|
| 1496 |
+
"stream_append": {
|
| 1497 |
+
"p50": 1.6867999999021777,
|
| 1498 |
+
"p95": 2.002950000075998,
|
| 1499 |
+
"max": 3.644599999915954
|
| 1500 |
+
}
|
| 1501 |
+
}
|
| 1502 |
+
},
|
| 1503 |
+
{
|
| 1504 |
+
"until_seconds": 1741.975963,
|
| 1505 |
+
"cycles": 454,
|
| 1506 |
+
"wall_ms": {
|
| 1507 |
+
"short_batch": {
|
| 1508 |
+
"p50": 5.479150000041955,
|
| 1509 |
+
"p95": 6.390415000066694,
|
| 1510 |
+
"max": 11.824200000091878
|
| 1511 |
+
},
|
| 1512 |
+
"full_text": {
|
| 1513 |
+
"p50": 33.63280000007762,
|
| 1514 |
+
"p95": 40.92087000005904,
|
| 1515 |
+
"max": 46.38939999995273
|
| 1516 |
+
},
|
| 1517 |
+
"stream_prefix": {
|
| 1518 |
+
"p50": 23.331149999989975,
|
| 1519 |
+
"p95": 27.976270000010565,
|
| 1520 |
+
"max": 34.502499999916836
|
| 1521 |
+
},
|
| 1522 |
+
"stream_append": {
|
| 1523 |
+
"p50": 1.7110499999262174,
|
| 1524 |
+
"p95": 2.01354999992418,
|
| 1525 |
+
"max": 3.388699999959499
|
| 1526 |
+
}
|
| 1527 |
+
}
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"until_seconds": 1772.0366747,
|
| 1531 |
+
"cycles": 456,
|
| 1532 |
+
"wall_ms": {
|
| 1533 |
+
"short_batch": {
|
| 1534 |
+
"p50": 5.435150000039357,
|
| 1535 |
+
"p95": 6.062374999999065,
|
| 1536 |
+
"max": 13.343900000108988
|
| 1537 |
+
},
|
| 1538 |
+
"full_text": {
|
| 1539 |
+
"p50": 33.36760000001959,
|
| 1540 |
+
"p95": 41.1114500000167,
|
| 1541 |
+
"max": 50.578099999938786
|
| 1542 |
+
},
|
| 1543 |
+
"stream_prefix": {
|
| 1544 |
+
"p50": 23.362699999893266,
|
| 1545 |
+
"p95": 28.23035000000118,
|
| 1546 |
+
"max": 46.60499999999956
|
| 1547 |
+
},
|
| 1548 |
+
"stream_append": {
|
| 1549 |
+
"p50": 1.6910999999026899,
|
| 1550 |
+
"p95": 1.9603999999162625,
|
| 1551 |
+
"max": 5.24449999988974
|
| 1552 |
+
}
|
| 1553 |
+
}
|
| 1554 |
+
}
|
| 1555 |
+
],
|
| 1556 |
+
"status": "passed",
|
| 1557 |
+
"elapsed_seconds": 1800.0042106,
|
| 1558 |
+
"cycles": 26776,
|
| 1559 |
+
"openvino_requests": 107104,
|
| 1560 |
+
"successful_decisions": 3507656,
|
| 1561 |
+
"rejected_stream_overflows": 26776,
|
| 1562 |
+
"timing_ms": {
|
| 1563 |
+
"short_batch": {
|
| 1564 |
+
"p50": 5.513000000064494,
|
| 1565 |
+
"p95": 6.507324999992292,
|
| 1566 |
+
"max": 85.01869999999911
|
| 1567 |
+
},
|
| 1568 |
+
"full_text": {
|
| 1569 |
+
"p50": 33.895900000061374,
|
| 1570 |
+
"p95": 42.50274999989756,
|
| 1571 |
+
"max": 224.018700000002
|
| 1572 |
+
},
|
| 1573 |
+
"stream_prefix": {
|
| 1574 |
+
"p50": 23.440450000013158,
|
| 1575 |
+
"p95": 28.88517500001342,
|
| 1576 |
+
"max": 190.73850000000192
|
| 1577 |
+
},
|
| 1578 |
+
"stream_append": {
|
| 1579 |
+
"p50": 1.7133000001194887,
|
| 1580 |
+
"p95": 2.0799500000094895,
|
| 1581 |
+
"max": 30.937599999994347
|
| 1582 |
+
}
|
| 1583 |
+
}
|
| 1584 |
+
}
|
measurements/streamed-parameters-compatibility.json
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"hypothesis": "Single rank-one input contains packed policy words followed by Gather addresses",
|
| 3 |
+
"graph_input_type": "I32",
|
| 4 |
+
"cpu_verifier": "2022.3.1-9227-cf2c7da5689-releases/2022/3",
|
| 5 |
+
"native_compiler": "OpenVINO 2020.3.2",
|
| 6 |
+
"compiler_target": "VPU_MYRIAD_2450",
|
| 7 |
+
"physical_device_verified": false,
|
| 8 |
+
"tests": {
|
| 9 |
+
"slice-1": {
|
| 10 |
+
"verified_assignments": 128,
|
| 11 |
+
"compiled_layout": {
|
| 12 |
+
"bytes": 512,
|
| 13 |
+
"sha256": "6b7e8a9753e4b9866cb91bbd80ff6b82f668de4f8827964145145540139fbe9d",
|
| 14 |
+
"version": [
|
| 15 |
+
5,
|
| 16 |
+
0
|
| 17 |
+
],
|
| 18 |
+
"inputs": 1,
|
| 19 |
+
"outputs": 1,
|
| 20 |
+
"stage_count": 1,
|
| 21 |
+
"input_bytes": 68,
|
| 22 |
+
"output_bytes": 4,
|
| 23 |
+
"sections": {
|
| 24 |
+
"headers": 192,
|
| 25 |
+
"input_descriptor": 64,
|
| 26 |
+
"output_descriptor": 64,
|
| 27 |
+
"stages": 192,
|
| 28 |
+
"constants": 0
|
| 29 |
+
},
|
| 30 |
+
"sole_stage": {
|
| 31 |
+
"length": 136,
|
| 32 |
+
"type": 100,
|
| 33 |
+
"shaves_field": 12
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"required_radix_data_bytes": 32
|
| 37 |
+
},
|
| 38 |
+
"slice-128": {
|
| 39 |
+
"verified_assignments": 128,
|
| 40 |
+
"compiled_layout": {
|
| 41 |
+
"bytes": 512,
|
| 42 |
+
"sha256": "0716636237425fde6a9b94f99898150a5bd05a6c353273bcf6ad1b4e46aa7775",
|
| 43 |
+
"version": [
|
| 44 |
+
5,
|
| 45 |
+
0
|
| 46 |
+
],
|
| 47 |
+
"inputs": 1,
|
| 48 |
+
"outputs": 1,
|
| 49 |
+
"stage_count": 1,
|
| 50 |
+
"input_bytes": 576,
|
| 51 |
+
"output_bytes": 512,
|
| 52 |
+
"sections": {
|
| 53 |
+
"headers": 192,
|
| 54 |
+
"input_descriptor": 64,
|
| 55 |
+
"output_descriptor": 64,
|
| 56 |
+
"stages": 192,
|
| 57 |
+
"constants": 0
|
| 58 |
+
},
|
| 59 |
+
"sole_stage": {
|
| 60 |
+
"length": 136,
|
| 61 |
+
"type": 100,
|
| 62 |
+
"shaves_field": 12
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"required_radix_data_bytes": 32
|
| 66 |
+
},
|
| 67 |
+
"split-1": {
|
| 68 |
+
"verified_assignments": 128,
|
| 69 |
+
"compiled_layout": {
|
| 70 |
+
"bytes": 512,
|
| 71 |
+
"sha256": "fca7aaaff0348addbc5f38fc3cb20c136fde55654def91f0176f1c00f0c2c2db",
|
| 72 |
+
"version": [
|
| 73 |
+
5,
|
| 74 |
+
0
|
| 75 |
+
],
|
| 76 |
+
"inputs": 1,
|
| 77 |
+
"outputs": 1,
|
| 78 |
+
"stage_count": 1,
|
| 79 |
+
"input_bytes": 68,
|
| 80 |
+
"output_bytes": 4,
|
| 81 |
+
"sections": {
|
| 82 |
+
"headers": 192,
|
| 83 |
+
"input_descriptor": 64,
|
| 84 |
+
"output_descriptor": 64,
|
| 85 |
+
"stages": 192,
|
| 86 |
+
"constants": 0
|
| 87 |
+
},
|
| 88 |
+
"sole_stage": {
|
| 89 |
+
"length": 136,
|
| 90 |
+
"type": 100,
|
| 91 |
+
"shaves_field": 12
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
"required_radix_data_bytes": 32
|
| 95 |
+
},
|
| 96 |
+
"split-128": {
|
| 97 |
+
"verified_assignments": 128,
|
| 98 |
+
"compiled_layout": {
|
| 99 |
+
"bytes": 512,
|
| 100 |
+
"sha256": "be93270270d0553fbb8d8e7df06cae29eddcfeb30cc650a28fa14a770a37bc8e",
|
| 101 |
+
"version": [
|
| 102 |
+
5,
|
| 103 |
+
0
|
| 104 |
+
],
|
| 105 |
+
"inputs": 1,
|
| 106 |
+
"outputs": 1,
|
| 107 |
+
"stage_count": 1,
|
| 108 |
+
"input_bytes": 576,
|
| 109 |
+
"output_bytes": 512,
|
| 110 |
+
"sections": {
|
| 111 |
+
"headers": 192,
|
| 112 |
+
"input_descriptor": 64,
|
| 113 |
+
"output_descriptor": 64,
|
| 114 |
+
"stages": 192,
|
| 115 |
+
"constants": 0
|
| 116 |
+
},
|
| 117 |
+
"sole_stage": {
|
| 118 |
+
"length": 136,
|
| 119 |
+
"type": 100,
|
| 120 |
+
"shaves_field": 12
|
| 121 |
+
}
|
| 122 |
+
},
|
| 123 |
+
"required_radix_data_bytes": 32
|
| 124 |
+
},
|
| 125 |
+
"two_inputs-1": {
|
| 126 |
+
"verified_assignments": 128,
|
| 127 |
+
"compiled_layout": {
|
| 128 |
+
"bytes": 576,
|
| 129 |
+
"sha256": "8ff1f0aa63462e679adf5d7cb8b915e3e0c2ec37f7eea3140ed1c1f4b4b92245",
|
| 130 |
+
"version": [
|
| 131 |
+
5,
|
| 132 |
+
0
|
| 133 |
+
],
|
| 134 |
+
"inputs": 2,
|
| 135 |
+
"outputs": 1,
|
| 136 |
+
"stage_count": 1,
|
| 137 |
+
"input_bytes": 128,
|
| 138 |
+
"output_bytes": 4,
|
| 139 |
+
"sections": {
|
| 140 |
+
"headers": 192,
|
| 141 |
+
"input_descriptor": 128,
|
| 142 |
+
"output_descriptor": 64,
|
| 143 |
+
"stages": 192,
|
| 144 |
+
"constants": 0
|
| 145 |
+
},
|
| 146 |
+
"sole_stage": {
|
| 147 |
+
"length": 136,
|
| 148 |
+
"type": 100,
|
| 149 |
+
"shaves_field": 12
|
| 150 |
+
}
|
| 151 |
+
},
|
| 152 |
+
"required_radix_data_bytes": 32
|
| 153 |
+
},
|
| 154 |
+
"two_inputs-128": {
|
| 155 |
+
"verified_assignments": 128,
|
| 156 |
+
"compiled_layout": {
|
| 157 |
+
"bytes": 576,
|
| 158 |
+
"sha256": "dc58b1f39c7244d5d68384e49a50982fdc654f9af08e1377936329c85dbfb180",
|
| 159 |
+
"version": [
|
| 160 |
+
5,
|
| 161 |
+
0
|
| 162 |
+
],
|
| 163 |
+
"inputs": 2,
|
| 164 |
+
"outputs": 1,
|
| 165 |
+
"stage_count": 1,
|
| 166 |
+
"input_bytes": 576,
|
| 167 |
+
"output_bytes": 512,
|
| 168 |
+
"sections": {
|
| 169 |
+
"headers": 192,
|
| 170 |
+
"input_descriptor": 128,
|
| 171 |
+
"output_descriptor": 64,
|
| 172 |
+
"stages": 192,
|
| 173 |
+
"constants": 0
|
| 174 |
+
},
|
| 175 |
+
"sole_stage": {
|
| 176 |
+
"length": 136,
|
| 177 |
+
"type": 100,
|
| 178 |
+
"shaves_field": 12
|
| 179 |
+
}
|
| 180 |
+
},
|
| 181 |
+
"required_radix_data_bytes": 32
|
| 182 |
+
}
|
| 183 |
+
}
|
| 184 |
+
}
|
measurements/two-banks-ncs1.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "magiceightball",
|
| 3 |
+
"backend": "MYRIAD",
|
| 4 |
+
"runtime": "2.1.2020.3.2-3506-c35b42b1d89-releases/2020/3",
|
| 5 |
+
"onnx_sha256": "72481bf69d70da97d0d0055c02f555ef2bd6b08625fdbf7c5d10b8995db5f6bb",
|
| 6 |
+
"capacity": 128,
|
| 7 |
+
"constants_bytes": 64,
|
| 8 |
+
"distinct_policy_cases": 256,
|
| 9 |
+
"full_truth_table_requests": 2,
|
| 10 |
+
"full_context_cases": 3,
|
| 11 |
+
"overflow_rejected": true,
|
| 12 |
+
"full_context_requests": 1,
|
| 13 |
+
"repeated_trials": 13,
|
| 14 |
+
"timing_128_documents": {
|
| 15 |
+
"mixed": {
|
| 16 |
+
"wall_ms": {
|
| 17 |
+
"p50": 6.815199999999688,
|
| 18 |
+
"p95": 11.034960000000009,
|
| 19 |
+
"max": 13.875000000000082
|
| 20 |
+
},
|
| 21 |
+
"calls": 1
|
| 22 |
+
},
|
| 23 |
+
"separate": {
|
| 24 |
+
"wall_ms": {
|
| 25 |
+
"p50": 8.244799999999941,
|
| 26 |
+
"p95": 11.64486000000009,
|
| 27 |
+
"max": 11.710200000000004
|
| 28 |
+
},
|
| 29 |
+
"calls": 2
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
"physical_usb_preflight": {
|
| 33 |
+
"stick": "ncs1",
|
| 34 |
+
"boot_usb_id": "03E7:2150"
|
| 35 |
+
},
|
| 36 |
+
"blob": {
|
| 37 |
+
"bytes": 512,
|
| 38 |
+
"sha256": "fdbe4ace9b7d936db8da5a2daa11262e44c4ffad35336f0090683d60c7966c34",
|
| 39 |
+
"version": [
|
| 40 |
+
5,
|
| 41 |
+
0
|
| 42 |
+
],
|
| 43 |
+
"inputs": 1,
|
| 44 |
+
"outputs": 1,
|
| 45 |
+
"stage_count": 1,
|
| 46 |
+
"input_bytes": 512,
|
| 47 |
+
"output_bytes": 256,
|
| 48 |
+
"sections": {
|
| 49 |
+
"headers": 192,
|
| 50 |
+
"input_descriptor": 64,
|
| 51 |
+
"output_descriptor": 64,
|
| 52 |
+
"stages": 128,
|
| 53 |
+
"constants": 64
|
| 54 |
+
},
|
| 55 |
+
"sole_stage": {
|
| 56 |
+
"length": 128,
|
| 57 |
+
"type": 100,
|
| 58 |
+
"shaves_field": 12
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"shipped_tokenizer": {
|
| 62 |
+
"bytes": 23412,
|
| 63 |
+
"sha256": "97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9"
|
| 64 |
+
}
|
| 65 |
+
}
|
needle3-tokenizer.m8t.xz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97405c9a70aca43a4a3a2604203ff4b4a749eceef69493792f2d81c25abc7fd9
|
| 3 |
+
size 23412
|
policy.py
ADDED
|
@@ -0,0 +1,308 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Boolean expressions, evidence extraction and a reference independent of OpenVINO."""
|
| 2 |
+
import json
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
import re
|
| 5 |
+
from collections import Counter, OrderedDict
|
| 6 |
+
|
| 7 |
+
import numpy as np
|
| 8 |
+
|
| 9 |
+
from compact_tokenizer import read_tokenizer
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
LIMIT = 131072
|
| 13 |
+
PARTS = re.compile(r'"(?:[^"\\]|\\.)*"|@[a-zA-Z_][a-zA-Z_0-9]*|AND\b|OR\b|NOT\b|[()]')
|
| 14 |
+
LEXEME = re.compile(r"\w+|[^\w\s]", re.UNICODE)
|
| 15 |
+
GROUPS = ("answers", "categories", "actions")
|
| 16 |
+
RULE_NAME = re.compile(r"[a-zA-Z_][a-zA-Z_0-9]*")
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class Expression:
|
| 20 |
+
def __init__(self, text, named):
|
| 21 |
+
self.tokens = []
|
| 22 |
+
self.named = named
|
| 23 |
+
pos = 0
|
| 24 |
+
while pos < len(text):
|
| 25 |
+
if text[pos].isspace():
|
| 26 |
+
pos += 1
|
| 27 |
+
continue
|
| 28 |
+
match = PARTS.match(text, pos)
|
| 29 |
+
if not match:
|
| 30 |
+
raise ValueError("Unrecognized expression near %r" % text[pos:pos+20])
|
| 31 |
+
self.tokens.append(match.group())
|
| 32 |
+
pos = match.end()
|
| 33 |
+
self.i = 0
|
| 34 |
+
|
| 35 |
+
def take(self, token):
|
| 36 |
+
if self.i < len(self.tokens) and self.tokens[self.i] == token:
|
| 37 |
+
self.i += 1
|
| 38 |
+
return True
|
| 39 |
+
return False
|
| 40 |
+
|
| 41 |
+
def parse(self):
|
| 42 |
+
expr = self.either()
|
| 43 |
+
if self.i != len(self.tokens):
|
| 44 |
+
raise ValueError("Unexpected trailing expression")
|
| 45 |
+
return expr
|
| 46 |
+
|
| 47 |
+
def either(self):
|
| 48 |
+
expr = self.both()
|
| 49 |
+
while self.take("OR"):
|
| 50 |
+
expr = ("or", expr, self.both())
|
| 51 |
+
return expr
|
| 52 |
+
|
| 53 |
+
def both(self):
|
| 54 |
+
expr = self.term()
|
| 55 |
+
while self.take("AND"):
|
| 56 |
+
expr = ("and", expr, self.term())
|
| 57 |
+
return expr
|
| 58 |
+
|
| 59 |
+
def term(self):
|
| 60 |
+
if self.take("NOT"):
|
| 61 |
+
return ("not", self.term())
|
| 62 |
+
if self.take("("):
|
| 63 |
+
expr = self.either()
|
| 64 |
+
if not self.take(")"):
|
| 65 |
+
raise ValueError("Missing closing parenthesis")
|
| 66 |
+
return expr
|
| 67 |
+
if self.i >= len(self.tokens):
|
| 68 |
+
raise ValueError("Missing expression")
|
| 69 |
+
token = self.tokens[self.i]
|
| 70 |
+
self.i += 1
|
| 71 |
+
if token.startswith("@") and token[1:] in self.named:
|
| 72 |
+
return self.named[token[1:]]
|
| 73 |
+
if token.startswith('"'):
|
| 74 |
+
words = tuple(LEXEME.findall(json.loads(token).casefold()))
|
| 75 |
+
if words:
|
| 76 |
+
return ("literal", words)
|
| 77 |
+
raise ValueError("Expected a nonempty literal or earlier rule: " + token)
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def value(node, facts):
|
| 81 |
+
op = node[0]
|
| 82 |
+
if op == "literal":
|
| 83 |
+
return facts[node[1]]
|
| 84 |
+
if op == "not":
|
| 85 |
+
return not value(node[1], facts)
|
| 86 |
+
if op == "and":
|
| 87 |
+
return value(node[1], facts) and value(node[2], facts)
|
| 88 |
+
return value(node[1], facts) or value(node[2], facts)
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
def word_character(character):
|
| 92 |
+
return character == "_" or character.isalnum()
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def token_at(text, token, start):
|
| 96 |
+
if start < 0 or not text.startswith(token, start):
|
| 97 |
+
return False
|
| 98 |
+
if not word_character(token[0]):
|
| 99 |
+
return True
|
| 100 |
+
end = start + len(token)
|
| 101 |
+
return ((start == 0 or not word_character(text[start - 1]))
|
| 102 |
+
and (end == len(text) or not word_character(text[end])))
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def anchored_match(text, phrase, anchor):
|
| 106 |
+
offset = 0
|
| 107 |
+
word = phrase[anchor]
|
| 108 |
+
# A dense adversarial anchor is cheaper to check with the full projection.
|
| 109 |
+
for _ in range(64):
|
| 110 |
+
match = text.find(word, offset)
|
| 111 |
+
if match < 0:
|
| 112 |
+
return False
|
| 113 |
+
offset = match + 1
|
| 114 |
+
if not token_at(text, word, match):
|
| 115 |
+
continue
|
| 116 |
+
left = match
|
| 117 |
+
for token in reversed(phrase[:anchor]):
|
| 118 |
+
while left and text[left - 1].isspace():
|
| 119 |
+
left -= 1
|
| 120 |
+
left -= len(token)
|
| 121 |
+
if not token_at(text, token, left):
|
| 122 |
+
break
|
| 123 |
+
else:
|
| 124 |
+
right = match + len(word)
|
| 125 |
+
for token in phrase[anchor + 1:]:
|
| 126 |
+
while right < len(text) and text[right].isspace():
|
| 127 |
+
right += 1
|
| 128 |
+
if not token_at(text, token, right):
|
| 129 |
+
break
|
| 130 |
+
right += len(token)
|
| 131 |
+
else:
|
| 132 |
+
return True
|
| 133 |
+
return None
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
class Policy:
|
| 137 |
+
def __init__(self, spec):
|
| 138 |
+
if not isinstance(spec, dict):
|
| 139 |
+
raise ValueError("Expected a JSON policy object")
|
| 140 |
+
for group in ("rules",) + GROUPS:
|
| 141 |
+
items = spec.get(group, {})
|
| 142 |
+
if not isinstance(items, dict) or any(not isinstance(expr, str) for expr in items.values()):
|
| 143 |
+
raise ValueError("Expected an object of Boolean strings for " + group)
|
| 144 |
+
rules = {}
|
| 145 |
+
for name, expression in spec.get("rules", {}).items():
|
| 146 |
+
if not RULE_NAME.fullmatch(name):
|
| 147 |
+
raise ValueError("Invalid rule name: " + name)
|
| 148 |
+
rules[name] = Expression(expression, rules).parse()
|
| 149 |
+
self.rules = rules
|
| 150 |
+
self.names, self.outputs = [], []
|
| 151 |
+
self.literals = []
|
| 152 |
+
def visit(node, found):
|
| 153 |
+
if node[0] == "literal":
|
| 154 |
+
if node[1] not in found:
|
| 155 |
+
found.append(node[1])
|
| 156 |
+
else:
|
| 157 |
+
for child in node[1:]:
|
| 158 |
+
visit(child, found)
|
| 159 |
+
for group in GROUPS:
|
| 160 |
+
for name, expression in spec.get(group, {}).items():
|
| 161 |
+
node = Expression(expression, rules).parse()
|
| 162 |
+
self.names.append((group, name))
|
| 163 |
+
self.outputs.append(node)
|
| 164 |
+
visit(node, self.literals)
|
| 165 |
+
if not self.literals:
|
| 166 |
+
raise ValueError("At least one evidence literal is required")
|
| 167 |
+
words = sorted({w for phrase in self.literals for w in phrase})
|
| 168 |
+
if len(words) > 255:
|
| 169 |
+
raise ValueError("The byte projection supports up to 255 different literal lexemes")
|
| 170 |
+
self.word_ids = {w: i+1 for i, w in enumerate(words)}
|
| 171 |
+
self.patterns = [bytes(self.word_ids[w] for w in p) for p in self.literals]
|
| 172 |
+
self.text_patterns = [self.literal_regex(words) for words in self.literals]
|
| 173 |
+
self.anchors = [max(range(len(words)), key=lambda i: len(words[i])) for words in self.literals]
|
| 174 |
+
explained = list(self.literals)
|
| 175 |
+
for node in self.rules.values():
|
| 176 |
+
visit(node, explained)
|
| 177 |
+
self.explanation_patterns = {words: self.literal_regex(words)
|
| 178 |
+
for words in explained[len(self.literals):]}
|
| 179 |
+
|
| 180 |
+
@staticmethod
|
| 181 |
+
def literal_regex(words):
|
| 182 |
+
# Place the left boundary check after the fixed prefix so the regex
|
| 183 |
+
# engine can use its native substring search on long documents.
|
| 184 |
+
first = re.escape(words[0])
|
| 185 |
+
def is_word(w):
|
| 186 |
+
return bool(re.fullmatch(r"\w+", w))
|
| 187 |
+
expr = first + (r"(?<!\w" + first + ")" if is_word(words[0]) else "")
|
| 188 |
+
for left, right in zip(words, words[1:]):
|
| 189 |
+
expr += (r"\s+" if is_word(left) and is_word(right) else r"\s*") + re.escape(right)
|
| 190 |
+
if is_word(words[-1]):
|
| 191 |
+
expr += r"(?!\w)"
|
| 192 |
+
return re.compile(expr)
|
| 193 |
+
|
| 194 |
+
def text_atoms(self, text):
|
| 195 |
+
folded = text.casefold()
|
| 196 |
+
return np.array([pattern.search(folded) is not None for pattern in self.text_patterns],
|
| 197 |
+
dtype=np.float32)
|
| 198 |
+
|
| 199 |
+
def anchored_atoms(self, text):
|
| 200 |
+
"""Independently verify literal evidence, with a bounded projection fallback."""
|
| 201 |
+
folded = text.casefold()
|
| 202 |
+
flags = []
|
| 203 |
+
for phrase, anchor in zip(self.literals, self.anchors):
|
| 204 |
+
matched = anchored_match(folded, phrase, anchor)
|
| 205 |
+
if matched is None:
|
| 206 |
+
return self.atoms(self.project(text))
|
| 207 |
+
flags.append(matched)
|
| 208 |
+
return np.asarray(flags, dtype=np.float32)
|
| 209 |
+
|
| 210 |
+
def project(self, text):
|
| 211 |
+
# 0 represents every lexeme unused by this policy. Preserve occurrences
|
| 212 |
+
# and their order, including punctuation between adjacent phrase words.
|
| 213 |
+
return bytes(self.word_ids.get(w, 0) for w in LEXEME.findall(text.casefold()))
|
| 214 |
+
|
| 215 |
+
def atoms(self, encoded):
|
| 216 |
+
return np.array([p in encoded for p in self.patterns], dtype=np.float32)
|
| 217 |
+
|
| 218 |
+
def reference(self, atoms):
|
| 219 |
+
facts = dict(zip(self.literals, map(bool, atoms)))
|
| 220 |
+
return np.array([value(node, facts) for node in self.outputs], dtype=np.float32)
|
| 221 |
+
|
| 222 |
+
def result(self, bits):
|
| 223 |
+
out = {"answers": {}, "category": None, "action": None}
|
| 224 |
+
singular = {"categories": "category", "actions": "action"}
|
| 225 |
+
for (group, name), bit in zip(self.names, bits):
|
| 226 |
+
if group == "answers":
|
| 227 |
+
out[group][name] = bool(bit)
|
| 228 |
+
elif bit and out[singular[group]] is None:
|
| 229 |
+
out[singular[group]] = name
|
| 230 |
+
return out
|
| 231 |
+
|
| 232 |
+
def explain(self, text, atoms):
|
| 233 |
+
facts = dict(zip(self.literals, map(bool, atoms)))
|
| 234 |
+
if self.explanation_patterns:
|
| 235 |
+
folded = text.casefold()
|
| 236 |
+
facts.update({words: pattern.search(folded) is not None
|
| 237 |
+
for words, pattern in self.explanation_patterns.items()})
|
| 238 |
+
return {"matched": [" ".join(p) for p, present in facts.items() if present],
|
| 239 |
+
"named_rules": {key: bool(value(node, facts)) for key,node in self.rules.items()}}
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
def load_tokenizer(path=None):
|
| 243 |
+
import sentencepiece as spm
|
| 244 |
+
path = Path(path) if path else Path(__file__).with_name("needle3-tokenizer.m8t.xz")
|
| 245 |
+
return spm.SentencePieceProcessor(model_proto=read_tokenizer(path))
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
def needle_count(tokenizer, text, fast=True, memo=None):
|
| 249 |
+
if not fast or len(text) < 4096 or " " not in text:
|
| 250 |
+
return len(tokenizer.encode(text, out_type=int))
|
| 251 |
+
# The SHA-pinned BPE has identity normalization, no added leading space,
|
| 252 |
+
# byte fallback, and no regular piece with a non-initial metaspace. No
|
| 253 |
+
# user-defined symbol spans ASCII space. Thus merges cannot span these
|
| 254 |
+
# boundaries. Count each distinct space-prefixed segment once per request.
|
| 255 |
+
first, _, rest = text.partition(" ")
|
| 256 |
+
frequency = Counter(rest.split(" "))
|
| 257 |
+
total = len(tokenizer.encode(first, out_type=int))
|
| 258 |
+
if memo is not None:
|
| 259 |
+
missing = {}
|
| 260 |
+
for segment, repetitions in frequency.items():
|
| 261 |
+
count = memo.prior.get(segment)
|
| 262 |
+
if count is None:
|
| 263 |
+
count = memo.counts.get(segment)
|
| 264 |
+
if count is None:
|
| 265 |
+
missing[segment] = repetitions
|
| 266 |
+
else:
|
| 267 |
+
total += repetitions * count
|
| 268 |
+
frequency = missing
|
| 269 |
+
if not frequency:
|
| 270 |
+
return total
|
| 271 |
+
segments = list(frequency)
|
| 272 |
+
encodings = tokenizer.encode([" " + s for s in segments], out_type=int, num_threads=4)
|
| 273 |
+
for segment, ids in zip(segments, encodings):
|
| 274 |
+
count = len(ids)
|
| 275 |
+
total += frequency[segment] * count
|
| 276 |
+
if memo is not None and len(segment) <= 96:
|
| 277 |
+
memo.counts[segment] = count
|
| 278 |
+
if len(memo.counts) > memo.capacity:
|
| 279 |
+
memo.counts.popitem(last=False)
|
| 280 |
+
return total
|
| 281 |
+
|
| 282 |
+
|
| 283 |
+
class SegmentMemo:
|
| 284 |
+
"""Bounded, process-local counts of exact space-prefixed segments."""
|
| 285 |
+
|
| 286 |
+
def __init__(self, capacity=8192, prior=None):
|
| 287 |
+
self.counts = OrderedDict()
|
| 288 |
+
self.capacity = capacity
|
| 289 |
+
self.prior = prior if prior is not None else {}
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
def tokenizer_prior(tokenizer):
|
| 293 |
+
"""Seed reusable counts from the pinned vocabulary itself."""
|
| 294 |
+
metaspace = "\u2581"
|
| 295 |
+
words = (tokenizer.id_to_piece(i) for i in range(tokenizer.get_piece_size()))
|
| 296 |
+
# The pinned model encodes each of these 4,200 segments as one token.
|
| 297 |
+
# The differential test checks the entire set against SentencePiece.
|
| 298 |
+
return {word[1:]: 1 for word in words if word.startswith(metaspace)}
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
def validate_count(count):
|
| 302 |
+
if count > LIMIT:
|
| 303 |
+
raise ValueError("Input has %d Needle tokens; maximum is %d" % (count, LIMIT))
|
| 304 |
+
return count
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
def count_tokens(tokenizer, text, fast=False):
|
| 308 |
+
return validate_count(needle_count(tokenizer, text, fast=fast))
|
radix.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Lossless integer words stored in the normal finite FP16 encodings."""
|
| 2 |
+
import numpy as np
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
SIGN_BIT = 0x8000
|
| 6 |
+
FIRST_NORMAL = 0x0400
|
| 7 |
+
NORMAL_PER_SIGN = 0x7800
|
| 8 |
+
CAPACITY = 2 * NORMAL_PER_SIGN
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def encode_ranks(ranks):
|
| 12 |
+
ranks = np.asarray(ranks, dtype=np.int32)
|
| 13 |
+
if np.any((ranks < 0) | (ranks >= CAPACITY)):
|
| 14 |
+
raise ValueError("Radix word is outside the finite FP16 code space")
|
| 15 |
+
bits = FIRST_NORMAL + ranks + np.where(ranks < NORMAL_PER_SIGN, 0, SIGN_BIT - NORMAL_PER_SIGN)
|
| 16 |
+
return bits.astype(np.uint16).view(np.float16)
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def decode_ranks(words):
|
| 20 |
+
halves = words
|
| 21 |
+
if words.dtype != np.float16:
|
| 22 |
+
if not np.isfinite(words).all() or np.any(np.abs(words) > 65504):
|
| 23 |
+
raise RuntimeError("Radix head returned an invalid FP16 word")
|
| 24 |
+
halves = words.astype(np.float16)
|
| 25 |
+
if not np.array_equal(halves, words):
|
| 26 |
+
raise RuntimeError("Radix head returned an inexact FP16 word")
|
| 27 |
+
bits = halves.view(np.uint16).astype(np.int32)
|
| 28 |
+
magnitude = bits & (SIGN_BIT - 1)
|
| 29 |
+
if np.any((magnitude < FIRST_NORMAL) | (magnitude >= FIRST_NORMAL + NORMAL_PER_SIGN)):
|
| 30 |
+
raise RuntimeError("Radix head returned a non-normal FP16 word")
|
| 31 |
+
return magnitude - FIRST_NORMAL + np.where(bits & SIGN_BIT, NORMAL_PER_SIGN, 0)
|
release.py
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Transport a Gather manifest and both native 2020.3 blobs losslessly."""
|
| 2 |
+
import argparse
|
| 3 |
+
import json
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
import struct
|
| 6 |
+
import zlib
|
| 7 |
+
|
| 8 |
+
from blob_layout import inspect_blob
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
MAGIC = b"M8B1"
|
| 12 |
+
HEADER = struct.Struct("<4s3I")
|
| 13 |
+
TARGETS = {"ncs1": ("ncs1-native.blob", "VPU_MYRIAD_2450"),
|
| 14 |
+
"ncs2": ("ncs2-2020.3.blob", "VPU_MYRIAD_2480")}
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def _validate(manifest, blobs):
|
| 18 |
+
if not isinstance(manifest, dict) or manifest.get("variant") != "gather":
|
| 19 |
+
raise ValueError("Release requires a Gather manifest")
|
| 20 |
+
inputs = manifest.get("input_shapes")
|
| 21 |
+
shape = inputs.get("features") if isinstance(inputs, dict) else None
|
| 22 |
+
if not isinstance(shape, list) or len(shape) != 1 or type(shape[0]) is not int or shape[0] < 1:
|
| 23 |
+
raise ValueError("Release has invalid Gather geometry")
|
| 24 |
+
for blob in blobs.values():
|
| 25 |
+
layout = inspect_blob(blob)
|
| 26 |
+
if (layout["input_bytes"] != shape[0] * 4 or layout["output_bytes"] != shape[0] * 2
|
| 27 |
+
or layout["stage_count"] != 1 or layout["sole_stage"]["type"] != 100):
|
| 28 |
+
raise ValueError("Native Gather blob does not match the release geometry")
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def pack_bundle(directory):
|
| 32 |
+
manifest = (directory / "model.json").read_bytes()
|
| 33 |
+
blobs = {stick: (directory / filename).read_bytes()
|
| 34 |
+
for stick, (filename, _) in TARGETS.items()}
|
| 35 |
+
_validate(json.loads(manifest), blobs)
|
| 36 |
+
fields = (manifest, blobs["ncs1"], blobs["ncs2"])
|
| 37 |
+
return zlib.compress(HEADER.pack(MAGIC, *(len(field) for field in fields)) + b"".join(fields), 9)
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def read_release(path):
|
| 41 |
+
try:
|
| 42 |
+
data = zlib.decompress(path.read_bytes())
|
| 43 |
+
except zlib.error as exc:
|
| 44 |
+
raise ValueError("Unreadable MagicEightBall release") from exc
|
| 45 |
+
if len(data) < HEADER.size:
|
| 46 |
+
raise ValueError("Missing MagicEightBall release header")
|
| 47 |
+
magic, manifest_size, ncs1_size, ncs2_size = HEADER.unpack_from(data)
|
| 48 |
+
boundary = HEADER.size + manifest_size
|
| 49 |
+
split = boundary + ncs1_size
|
| 50 |
+
if magic != MAGIC or split + ncs2_size != len(data):
|
| 51 |
+
raise ValueError("Invalid MagicEightBall release layout")
|
| 52 |
+
manifest = json.loads(data[HEADER.size:boundary])
|
| 53 |
+
blobs = {"ncs1": data[boundary:split], "ncs2": data[split:]}
|
| 54 |
+
_validate(manifest, blobs)
|
| 55 |
+
return manifest, blobs
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
if __name__ == "__main__":
|
| 59 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 60 |
+
parser.add_argument("bundle", type=Path)
|
| 61 |
+
parser.add_argument("output", type=Path)
|
| 62 |
+
args = parser.parse_args()
|
| 63 |
+
archive = pack_bundle(args.bundle)
|
| 64 |
+
args.output.write_bytes(archive)
|
| 65 |
+
print("%d bytes" % len(archive))
|
runtime.py
ADDED
|
@@ -0,0 +1,455 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Persistent MYRIAD runner for document-wide Boolean policies."""
|
| 2 |
+
import argparse
|
| 3 |
+
from copy import copy
|
| 4 |
+
from dataclasses import dataclass
|
| 5 |
+
import hashlib
|
| 6 |
+
import json
|
| 7 |
+
import os
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
import subprocess
|
| 10 |
+
import sys
|
| 11 |
+
import tempfile
|
| 12 |
+
import time
|
| 13 |
+
from typing import Optional
|
| 14 |
+
|
| 15 |
+
import numpy as np
|
| 16 |
+
from policy import Policy, count_tokens, load_tokenizer, validate_count
|
| 17 |
+
from radix import decode_ranks
|
| 18 |
+
from release import TARGETS, read_release
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
@dataclass
|
| 22 |
+
class Prepared:
|
| 23 |
+
tokens: int
|
| 24 |
+
atoms: Optional[np.ndarray]
|
| 25 |
+
projected: Optional[bytes]
|
| 26 |
+
started: float
|
| 27 |
+
counted: float
|
| 28 |
+
ready: float
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class Runtime:
|
| 32 |
+
def __init__(self, bundle, toolchain=None, fast_count=True, lane="ncs1", target=None, blob=None, bank=None,
|
| 33 |
+
release_stick="ncs1"):
|
| 34 |
+
self.folder = Path(bundle).resolve()
|
| 35 |
+
native_release = None
|
| 36 |
+
if self.folder.suffix.lower() == ".m8b":
|
| 37 |
+
if lane != "ncs1" or blob is not None:
|
| 38 |
+
raise ValueError("Release archives use the 2020.3 runtime and contain their own native blobs")
|
| 39 |
+
if release_stick not in TARGETS:
|
| 40 |
+
raise ValueError("Choose ncs1 or ncs2 for the native release")
|
| 41 |
+
self.bundle_info, blobs = read_release(self.folder)
|
| 42 |
+
native_release = blobs[release_stick]
|
| 43 |
+
else:
|
| 44 |
+
self.bundle_info = json.loads((self.folder/"model.json").read_text(encoding="utf8"))
|
| 45 |
+
self._use_bank(bank)
|
| 46 |
+
self.tokenizer = load_tokenizer()
|
| 47 |
+
self.fast_count = fast_count
|
| 48 |
+
self.lane = lane
|
| 49 |
+
self.output = self.info["decisions"]
|
| 50 |
+
if lane == "ncs1":
|
| 51 |
+
if toolchain is None:
|
| 52 |
+
toolchain = Path(__file__).resolve().parents[3] / "tools" / "ncs1"
|
| 53 |
+
sys.path.insert(0, str(Path(toolchain).resolve()))
|
| 54 |
+
import ncs1_paths
|
| 55 |
+
ncs1_paths.setup()
|
| 56 |
+
from openvino.inference_engine import IECore, get_version
|
| 57 |
+
self.core = IECore()
|
| 58 |
+
elif lane == "ncs2":
|
| 59 |
+
from openvino.runtime import Core, get_version
|
| 60 |
+
self.core = Core()
|
| 61 |
+
else:
|
| 62 |
+
raise ValueError("Unknown MYRIAD lane: " + lane)
|
| 63 |
+
self.openvino_version = get_version()
|
| 64 |
+
self.devices = list(self.core.available_devices)
|
| 65 |
+
myriad = [name for name in self.devices if name.split(".", 1)[0] == "MYRIAD"]
|
| 66 |
+
if not myriad:
|
| 67 |
+
raise RuntimeError("No physical MYRIAD device visible to %s (%s)" % (lane, self.openvino_version))
|
| 68 |
+
if target is None and len(myriad) != 1:
|
| 69 |
+
raise ValueError("Choose --target from %s" % myriad)
|
| 70 |
+
self.target = target if target is not None else myriad[0]
|
| 71 |
+
if self.target not in myriad:
|
| 72 |
+
raise ValueError("Expected a visible MYRIAD device from %s" % myriad)
|
| 73 |
+
|
| 74 |
+
self.ir = None if blob is not None or native_release is not None else self.resolve_ir()
|
| 75 |
+
start = time.perf_counter()
|
| 76 |
+
if lane == "ncs1":
|
| 77 |
+
if native_release is not None:
|
| 78 |
+
platform = TARGETS[release_stick][1]
|
| 79 |
+
config = {"VPU_MYRIAD_PLATFORM": platform, "VPU_MYRIAD_PROTOCOL": "VPU_MYRIAD_USB"}
|
| 80 |
+
with tempfile.TemporaryDirectory(prefix="magiceightball-") as directory:
|
| 81 |
+
native = Path(directory) / "network.blob"
|
| 82 |
+
native.write_bytes(native_release)
|
| 83 |
+
self.compiled = self.core.import_network(str(native), self.target, config=config, num_requests=1)
|
| 84 |
+
elif blob is not None:
|
| 85 |
+
self.compiled = self.core.import_network(str(blob), self.target, num_requests=1)
|
| 86 |
+
else:
|
| 87 |
+
net = self.core.read_network(model=str(self.ir), weights=str(self.ir.with_suffix(".bin")))
|
| 88 |
+
if self.output not in net.outputs and not (self.info["variant"] == "gather" and len(net.outputs) == 1):
|
| 89 |
+
raise ValueError("Unexpected IR outputs: %s" % list(net.outputs))
|
| 90 |
+
if self.info["variant"] == "gather":
|
| 91 |
+
net.outputs[next(iter(net.outputs))].precision = "FP16"
|
| 92 |
+
self.compiled = self.core.load_network(network=net, device_name=self.target, num_requests=1)
|
| 93 |
+
self.request = self.compiled
|
| 94 |
+
else:
|
| 95 |
+
self.compiled = (self.core.import_model(blob.read_bytes(), self.target) if blob is not None
|
| 96 |
+
else self.core.compile_model(str(self.ir), self.target))
|
| 97 |
+
self.output = self.compiled.output(0 if self.info["variant"] == "gather" else self.output)
|
| 98 |
+
self.request = self.compiled.create_infer_request()
|
| 99 |
+
self.load_ms = 1000*(time.perf_counter()-start)
|
| 100 |
+
|
| 101 |
+
def _use_bank(self, bank):
|
| 102 |
+
banks = self.bundle_info.get("banks", {})
|
| 103 |
+
self.bank = self.bundle_info.get("default_bank") if bank is None else bank
|
| 104 |
+
if self.bank is not None and (not isinstance(self.bank, str) or self.bank not in banks):
|
| 105 |
+
raise ValueError("Unknown policy bank: %r" % (self.bank,))
|
| 106 |
+
self.info = dict(self.bundle_info, **banks.get(self.bank, {}))
|
| 107 |
+
self.policy = Policy(self.info["policy"])
|
| 108 |
+
self.model_name = self.bundle_info.get("name", self.info["policy"].get("name", self.folder.name))
|
| 109 |
+
|
| 110 |
+
def policy_view(self, bank):
|
| 111 |
+
if bank is None or bank == self.bank:
|
| 112 |
+
return self
|
| 113 |
+
view = copy(self)
|
| 114 |
+
view._use_bank(bank)
|
| 115 |
+
return view
|
| 116 |
+
|
| 117 |
+
def resolve_ir(self):
|
| 118 |
+
source = self.folder/"model.onnx"
|
| 119 |
+
model_hash = hashlib.sha256(source.read_bytes()).hexdigest()
|
| 120 |
+
if model_hash != self.info["onnx_sha256"]:
|
| 121 |
+
raise ValueError("Unexpected ONNX artifact")
|
| 122 |
+
ir = self.folder/"ir"/model_hash
|
| 123 |
+
xml = ir/"model.xml"
|
| 124 |
+
binary = ir/"model.bin"
|
| 125 |
+
if not xml.exists() or not binary.exists():
|
| 126 |
+
if self.lane == "ncs1":
|
| 127 |
+
import ncs1_paths
|
| 128 |
+
ir.mkdir(exist_ok=True, parents=True)
|
| 129 |
+
subprocess.run([sys.executable, str(ncs1_paths.MO/"mo_onnx.py"),
|
| 130 |
+
"--input_model", str(source), "--data_type", "FP16",
|
| 131 |
+
"--output_dir", str(ir)], timeout=120, check=True,
|
| 132 |
+
env=dict(os.environ, PYTHONPATH=str(ncs1_paths.MO)))
|
| 133 |
+
else:
|
| 134 |
+
from openvino.runtime import serialize
|
| 135 |
+
from openvino.tools.mo import convert_model
|
| 136 |
+
# Cache separately so a new toolchain never overwrites the IR10 pair.
|
| 137 |
+
xml = ir / "2022.3" / "model.xml"
|
| 138 |
+
if not xml.exists() or not xml.with_suffix(".bin").exists():
|
| 139 |
+
xml.parent.mkdir(exist_ok=True, parents=True)
|
| 140 |
+
serialize(convert_model(str(source), compress_to_fp16=True), str(xml))
|
| 141 |
+
return xml
|
| 142 |
+
|
| 143 |
+
def export_blob(self, path):
|
| 144 |
+
if self.lane == "ncs1":
|
| 145 |
+
self.compiled.export(str(path))
|
| 146 |
+
else:
|
| 147 |
+
path.write_bytes(self.compiled.export_model())
|
| 148 |
+
|
| 149 |
+
def head(self, atoms):
|
| 150 |
+
variant = self.info["variant"]
|
| 151 |
+
if variant == "gather":
|
| 152 |
+
return self.gather_heads([atoms])[0]
|
| 153 |
+
if variant in ("lookup", "packed"):
|
| 154 |
+
mask = sum(int(bit) << j for j, bit in enumerate(atoms))
|
| 155 |
+
features = np.zeros(self.info["input_shapes"]["features"], dtype=np.float32)
|
| 156 |
+
features[0, mask >> self.info.get("lane_bits", 0), 0, 0] = 1
|
| 157 |
+
packed = self.request.infer({"features": features})[self.output].reshape(-1)
|
| 158 |
+
self.validate_words(packed)
|
| 159 |
+
if variant == "packed":
|
| 160 |
+
return self.unpack(packed[0], mask)
|
| 161 |
+
return np.array([(int(packed[k//10]) >> (k%10)) & 1
|
| 162 |
+
for k in range(len(self.policy.outputs))],dtype=np.float32)
|
| 163 |
+
result = self.request.infer({"features": atoms.reshape(1,-1,1,1)})
|
| 164 |
+
return result[self.output].reshape(-1).copy()
|
| 165 |
+
|
| 166 |
+
@property
|
| 167 |
+
def batch_capacity(self):
|
| 168 |
+
return self.info["input_shapes"]["features"][0] if self.info["variant"] == "gather" else 1
|
| 169 |
+
|
| 170 |
+
@staticmethod
|
| 171 |
+
def validate_words(packed):
|
| 172 |
+
if not np.isfinite(packed).all() or not np.array_equal(packed, packed.round()):
|
| 173 |
+
raise RuntimeError("Invalid output from exact lookup head")
|
| 174 |
+
|
| 175 |
+
def unpack(self, number, mask):
|
| 176 |
+
lane = mask & ((1 << self.info["lane_bits"]) - 1)
|
| 177 |
+
width = self.info["code_width"]
|
| 178 |
+
offset = self.info["offset"]
|
| 179 |
+
word = int(number) + offset
|
| 180 |
+
code = (word >> (lane * width)) & ((1 << width) - 1)
|
| 181 |
+
codebook = self.info["codebook"]
|
| 182 |
+
if not 0 <= word < 2 * offset or code >= len(codebook):
|
| 183 |
+
raise RuntimeError("Invalid codeword from exact packed head")
|
| 184 |
+
return np.asarray(codebook[code], dtype=np.float32)
|
| 185 |
+
|
| 186 |
+
def _gather_indices(self, facts):
|
| 187 |
+
pair_order = self.info.get("pair_fact_order")
|
| 188 |
+
if pair_order is None:
|
| 189 |
+
masks = [sum(int(bit) << j for j, bit in enumerate(row)) for row in facts]
|
| 190 |
+
else:
|
| 191 |
+
masks = [sum(int(row[fact]) << bit for bit, fact in enumerate(pair_order)) for row in facts]
|
| 192 |
+
radix_digits = self.info.get("radix_digits")
|
| 193 |
+
offset = self.info.get("bank_offset", 0)
|
| 194 |
+
if radix_digits is None:
|
| 195 |
+
addresses = [offset + (mask >> self.info["lane_bits"]) for mask in masks]
|
| 196 |
+
else:
|
| 197 |
+
addresses = [offset + mask // radix_digits for mask in masks]
|
| 198 |
+
return addresses, masks
|
| 199 |
+
|
| 200 |
+
def _gather_words(self, addresses):
|
| 201 |
+
if not 1 <= len(addresses) <= self.batch_capacity:
|
| 202 |
+
raise ValueError("Gather needs 1–%d decisions per request" % self.batch_capacity)
|
| 203 |
+
features = np.zeros(self.batch_capacity, dtype=np.int32)
|
| 204 |
+
features[:len(addresses)] = addresses
|
| 205 |
+
outputs = self.request.infer({"features": features})
|
| 206 |
+
# The legacy ONNX converter renames the sole Gather output.
|
| 207 |
+
if len(outputs) != 1:
|
| 208 |
+
raise RuntimeError("Expected exactly one packed Gather result")
|
| 209 |
+
words = next(iter(outputs.values())).reshape(-1)
|
| 210 |
+
if words.size != self.batch_capacity:
|
| 211 |
+
raise RuntimeError("Unexpected Gather result width")
|
| 212 |
+
if self.lane == "ncs1" and words.dtype == np.int16:
|
| 213 |
+
# IECore 2020.3 exposes native FP16 buffers as signed words.
|
| 214 |
+
words = words.view(np.float16)
|
| 215 |
+
return words[:len(addresses)]
|
| 216 |
+
|
| 217 |
+
def _gather_decode(self, used, masks):
|
| 218 |
+
radix_digits = self.info.get("radix_digits")
|
| 219 |
+
if radix_digits is not None:
|
| 220 |
+
ranks = decode_ranks(used)
|
| 221 |
+
codebook = np.asarray(self.info["codebook"], dtype=np.float32)
|
| 222 |
+
base = len(codebook)
|
| 223 |
+
if "pair_fact_order" in self.info:
|
| 224 |
+
if np.any(ranks >= base * base * 256):
|
| 225 |
+
raise RuntimeError("Radix head returned an invalid policy pair")
|
| 226 |
+
results = []
|
| 227 |
+
for rank, mask in zip(ranks, masks):
|
| 228 |
+
pair, selectors = divmod(int(rank), 256)
|
| 229 |
+
low, high = divmod(pair, base)
|
| 230 |
+
if high < low:
|
| 231 |
+
raise RuntimeError("Radix head returned an unordered policy pair")
|
| 232 |
+
results.append(codebook[high if selectors & (1 << (mask & 7)) else low])
|
| 233 |
+
return results
|
| 234 |
+
if np.any(ranks >= base ** radix_digits):
|
| 235 |
+
raise RuntimeError("Radix head returned an invalid policy word")
|
| 236 |
+
return [codebook[(int(rank) // base ** (mask % radix_digits)) % base]
|
| 237 |
+
for rank, mask in zip(ranks, masks)]
|
| 238 |
+
self.validate_words(used)
|
| 239 |
+
return [self.unpack(word, mask) for word, mask in zip(used, masks)]
|
| 240 |
+
|
| 241 |
+
def gather_heads(self, facts):
|
| 242 |
+
addresses, masks = self._gather_indices(facts)
|
| 243 |
+
return self._gather_decode(self._gather_words(addresses), masks)
|
| 244 |
+
|
| 245 |
+
def scan(self, projected):
|
| 246 |
+
side = self.info["tile_side"]
|
| 247 |
+
halo = max(map(len, self.policy.patterns))-1
|
| 248 |
+
count = max(1, (len(projected)+side*side-1)//(side*side))
|
| 249 |
+
storage = np.zeros(halo + count*side*side, dtype=np.float32)
|
| 250 |
+
storage[halo:halo+len(projected)] = np.frombuffer(projected, dtype=np.uint8)
|
| 251 |
+
prior = np.zeros((1,len(self.policy.literals),1,1), dtype=np.float32)
|
| 252 |
+
# Each row includes the real preceding lexemes. A phrase can cross either
|
| 253 |
+
# a row or a USB request boundary. Padding code 0 matches no literal.
|
| 254 |
+
rows = np.lib.stride_tricks.as_strided(storage, shape=(count*side, side+halo),
|
| 255 |
+
strides=(side*storage.itemsize,storage.itemsize),
|
| 256 |
+
writeable=False)
|
| 257 |
+
for i in range(count):
|
| 258 |
+
tile = np.ascontiguousarray(rows[i*side:(i+1)*side])[None,None]
|
| 259 |
+
result = self.request.infer({"lexemes": tile, "prior": prior})
|
| 260 |
+
values = result[self.output].reshape(-1)
|
| 261 |
+
n = self.info["state_channels"]
|
| 262 |
+
prior = values[:n].reshape(1,n,1,1).copy()
|
| 263 |
+
return values[n:].copy(), prior.reshape(-1), count
|
| 264 |
+
|
| 265 |
+
def prepare_decision(self, text, prepare=None):
|
| 266 |
+
start = time.perf_counter()
|
| 267 |
+
projected = atoms = None
|
| 268 |
+
scanning = self.info["variant"] == "scan"
|
| 269 |
+
if prepare is not None:
|
| 270 |
+
if scanning:
|
| 271 |
+
raise ValueError("Batch lane selection needs a decision head that accepts fact bits")
|
| 272 |
+
tokens, atoms, counted = prepare(text)
|
| 273 |
+
validate_count(tokens)
|
| 274 |
+
else:
|
| 275 |
+
tokens = count_tokens(self.tokenizer, text, fast=self.fast_count)
|
| 276 |
+
counted = time.perf_counter()
|
| 277 |
+
if scanning or not self.fast_count:
|
| 278 |
+
projected = self.policy.project(text)
|
| 279 |
+
if not scanning:
|
| 280 |
+
atoms = self.policy.atoms(projected)
|
| 281 |
+
else:
|
| 282 |
+
atoms = self.policy.text_atoms(text)
|
| 283 |
+
return Prepared(tokens, atoms, projected, start, counted, time.perf_counter())
|
| 284 |
+
|
| 285 |
+
def decide_prepared(self, documents):
|
| 286 |
+
if not 1 <= len(documents) <= self.batch_capacity:
|
| 287 |
+
raise ValueError("Unexpected number of prepared documents")
|
| 288 |
+
start = time.perf_counter()
|
| 289 |
+
variant = self.info["variant"]
|
| 290 |
+
if variant == "scan":
|
| 291 |
+
document = documents[0]
|
| 292 |
+
bits, atoms, calls = self.scan(document.projected)
|
| 293 |
+
decisions = [(bits, atoms)]
|
| 294 |
+
elif variant == "gather":
|
| 295 |
+
facts = [document.atoms for document in documents]
|
| 296 |
+
decisions = list(zip(self.gather_heads(facts), facts))
|
| 297 |
+
calls = 1
|
| 298 |
+
else:
|
| 299 |
+
atoms = documents[0].atoms
|
| 300 |
+
decisions = [(self.head(atoms), atoms)]
|
| 301 |
+
calls = 1
|
| 302 |
+
return [self._record(doc, bits, atoms, calls, len(documents), start)
|
| 303 |
+
for doc, (bits, atoms) in zip(documents, decisions)]
|
| 304 |
+
|
| 305 |
+
def _record(self, doc, bits, atoms, calls, group_size, start):
|
| 306 |
+
result = self.policy.result(bits > 0.5)
|
| 307 |
+
end = time.perf_counter()
|
| 308 |
+
record = dict(
|
| 309 |
+
model=self.model_name, result=result, bits=bits.tolist(), atoms=atoms.tolist(),
|
| 310 |
+
needle_tokens=doc.tokens, lexemes=len(doc.projected) if doc.projected is not None else None,
|
| 311 |
+
requests=calls, request_documents=group_size, tokenization_ms=(doc.counted-doc.started)*1000,
|
| 312 |
+
host_projection_ms=(doc.ready-doc.counted)*1000,
|
| 313 |
+
inference_path_ms=(end-start)*1000, total_ms=(end-doc.started)*1000,
|
| 314 |
+
)
|
| 315 |
+
if getattr(self, "bank", None) is not None:
|
| 316 |
+
record["bank"] = self.bank
|
| 317 |
+
return record
|
| 318 |
+
|
| 319 |
+
def decide_mixed(self, documents, explain=False):
|
| 320 |
+
"""Submit documents from several policy banks in the same Gather request."""
|
| 321 |
+
if self.info["variant"] != "gather" or not isinstance(documents, list) or not documents:
|
| 322 |
+
raise ValueError("A Gather batch needs a nonempty documents array")
|
| 323 |
+
results, pending, views = [None] * len(documents), [], {}
|
| 324 |
+
requests = 0
|
| 325 |
+
|
| 326 |
+
def flush():
|
| 327 |
+
nonlocal requests
|
| 328 |
+
if not pending:
|
| 329 |
+
return
|
| 330 |
+
start = time.perf_counter()
|
| 331 |
+
groups = {}
|
| 332 |
+
for position, (_, view, _, doc) in enumerate(pending):
|
| 333 |
+
groups.setdefault(view, []).append((position, doc.atoms))
|
| 334 |
+
addresses = np.empty(len(pending), dtype=np.int32)
|
| 335 |
+
indices = {}
|
| 336 |
+
for view, entries in groups.items():
|
| 337 |
+
positions, facts = zip(*entries)
|
| 338 |
+
bank_addresses, masks = view._gather_indices(facts)
|
| 339 |
+
addresses[list(positions)] = bank_addresses
|
| 340 |
+
indices[view] = (list(positions), masks)
|
| 341 |
+
words = self._gather_words(addresses)
|
| 342 |
+
requests += 1
|
| 343 |
+
for view, (positions, masks) in indices.items():
|
| 344 |
+
for position, bits in zip(positions, view._gather_decode(words[positions], masks)):
|
| 345 |
+
index, _, text, doc = pending[position]
|
| 346 |
+
record = view._record(doc, bits, doc.atoms, 1, len(pending), start)
|
| 347 |
+
if explain:
|
| 348 |
+
record["explanation"] = view.policy.explain(text, doc.atoms)
|
| 349 |
+
results[index] = dict(record, id=documents[index].get("id"))
|
| 350 |
+
pending.clear()
|
| 351 |
+
|
| 352 |
+
for index, row in enumerate(documents):
|
| 353 |
+
request_id = row.get("id") if isinstance(row, dict) else None
|
| 354 |
+
try:
|
| 355 |
+
if not isinstance(row, dict) or not isinstance(row.get("text"), str):
|
| 356 |
+
raise ValueError("Each document needs a text string")
|
| 357 |
+
bank = row.get("bank")
|
| 358 |
+
if bank is not None and not isinstance(bank, str):
|
| 359 |
+
raise ValueError("Policy bank must be a string")
|
| 360 |
+
if bank not in views:
|
| 361 |
+
views[bank] = self.policy_view(bank)
|
| 362 |
+
view = views[bank]
|
| 363 |
+
pending.append((index, view, row["text"], view.prepare_decision(row["text"])))
|
| 364 |
+
except ValueError as exc:
|
| 365 |
+
results[index] = {"id": request_id, "error": str(exc)}
|
| 366 |
+
continue
|
| 367 |
+
if len(pending) == self.batch_capacity:
|
| 368 |
+
flush()
|
| 369 |
+
flush()
|
| 370 |
+
return {"documents": results, "device_requests": requests}
|
| 371 |
+
|
| 372 |
+
def decide(self, text, explain=False, prepare=None):
|
| 373 |
+
record = self.decide_prepared([self.prepare_decision(text, prepare)])[0]
|
| 374 |
+
if explain:
|
| 375 |
+
record["explanation"] = self.policy.explain(text, record["atoms"])
|
| 376 |
+
return record
|
| 377 |
+
|
| 378 |
+
|
| 379 |
+
def json_output_stream():
|
| 380 |
+
# Legacy MYRIAD prints firmware messages to native stdout, including
|
| 381 |
+
# during teardown. Save the caller's stream and redirect diagnostics
|
| 382 |
+
# before loading the plugin so stdout remains a clean JSON protocol.
|
| 383 |
+
sys.stdout.flush()
|
| 384 |
+
stdout_fd = sys.stdout.fileno()
|
| 385 |
+
output = os.fdopen(os.dup(stdout_fd), "w", encoding="utf8")
|
| 386 |
+
os.dup2(sys.stderr.fileno(), stdout_fd)
|
| 387 |
+
if os.name == "nt":
|
| 388 |
+
import ctypes
|
| 389 |
+
from ctypes import wintypes
|
| 390 |
+
import msvcrt
|
| 391 |
+
set_handle = ctypes.windll.kernel32.SetStdHandle
|
| 392 |
+
set_handle.argtypes = (wintypes.DWORD, wintypes.HANDLE)
|
| 393 |
+
set_handle.restype = wintypes.BOOL
|
| 394 |
+
if not set_handle(0xFFFFFFF5, msvcrt.get_osfhandle(stdout_fd)): # STD_OUTPUT_HANDLE
|
| 395 |
+
output.close()
|
| 396 |
+
raise OSError("Could not redirect native stdout")
|
| 397 |
+
return output
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
def main():
|
| 401 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 402 |
+
parser.add_argument("bundle", type=Path)
|
| 403 |
+
parser.add_argument("--toolchain", type=Path, help="Override the NCS1 toolchain directory")
|
| 404 |
+
parser.add_argument("--lane", choices=["ncs1", "ncs2"], default="ncs1")
|
| 405 |
+
parser.add_argument("--target", help="Explicit OpenVINO name when several MYRIAD devices are visible")
|
| 406 |
+
parser.add_argument("--blob", type=Path, help="Load a binary exported by the matching device/toolchain")
|
| 407 |
+
parser.add_argument("--bank", help="Default policy bank for a banked bundle")
|
| 408 |
+
parser.add_argument("--release-stick", choices=list(TARGETS), default="ncs1",
|
| 409 |
+
help="Physical target for a .m8b archive on OpenVINO 2020.3")
|
| 410 |
+
parser.add_argument("--explain", action="store_true")
|
| 411 |
+
source = parser.add_mutually_exclusive_group(required=True)
|
| 412 |
+
source.add_argument("--text")
|
| 413 |
+
source.add_argument("--file", type=Path)
|
| 414 |
+
source.add_argument("--serve", action="store_true", help="Read one JSON request with text and optional id per line")
|
| 415 |
+
source.add_argument("--stream", action="store_true", help="Append JSONL fragments to one resident document")
|
| 416 |
+
args = parser.parse_args()
|
| 417 |
+
with json_output_stream() as output:
|
| 418 |
+
engine = Runtime(args.bundle, args.toolchain, lane=args.lane, target=args.target, blob=args.blob, bank=args.bank,
|
| 419 |
+
release_stick=args.release_stick)
|
| 420 |
+
if args.serve or args.stream:
|
| 421 |
+
stream = None
|
| 422 |
+
if args.stream:
|
| 423 |
+
from stream import DecisionStream
|
| 424 |
+
stream = DecisionStream(engine, args.explain)
|
| 425 |
+
for line in sys.stdin.buffer:
|
| 426 |
+
request_id = None
|
| 427 |
+
try:
|
| 428 |
+
request = json.loads(line)
|
| 429 |
+
if not isinstance(request, dict):
|
| 430 |
+
raise ValueError("Expected an object with a text string")
|
| 431 |
+
request_id = request.get("id")
|
| 432 |
+
if stream is not None:
|
| 433 |
+
if "append" not in request and request.get("reset") is not True:
|
| 434 |
+
raise ValueError("Expected an append string or reset=true")
|
| 435 |
+
response = stream.append(request.get("append", ""), request.get("reset", False))
|
| 436 |
+
elif "documents" in request:
|
| 437 |
+
response = engine.decide_mixed(request["documents"], args.explain)
|
| 438 |
+
elif not isinstance(request.get("text"), str):
|
| 439 |
+
raise ValueError("Expected an object with a text string")
|
| 440 |
+
else:
|
| 441 |
+
response = engine.policy_view(request.get("bank")).decide(request["text"], args.explain)
|
| 442 |
+
except ValueError as exc:
|
| 443 |
+
response = {"error": str(exc)}
|
| 444 |
+
except RuntimeError as exc:
|
| 445 |
+
if stream is None:
|
| 446 |
+
raise
|
| 447 |
+
response = {"error": str(exc)}
|
| 448 |
+
print(json.dumps(dict(response, id=request_id)), file=output, flush=True)
|
| 449 |
+
else:
|
| 450 |
+
document = args.text if args.text is not None else args.file.read_bytes().decode("utf8")
|
| 451 |
+
print(json.dumps(engine.decide(document, args.explain)), file=output)
|
| 452 |
+
|
| 453 |
+
|
| 454 |
+
if __name__ == "__main__":
|
| 455 |
+
main()
|
stream.py
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Incremental evidence and Needle token counts for one append-only document."""
|
| 2 |
+
from dataclasses import dataclass
|
| 3 |
+
import time
|
| 4 |
+
|
| 5 |
+
import numpy as np
|
| 6 |
+
|
| 7 |
+
from policy import SegmentMemo, needle_count, validate_count
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
@dataclass(frozen=True)
|
| 11 |
+
class StreamState:
|
| 12 |
+
tokens: int
|
| 13 |
+
suffix: str
|
| 14 |
+
halo: bytes
|
| 15 |
+
stable_facts: np.ndarray
|
| 16 |
+
explanation_text: str
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class DecisionStream:
|
| 20 |
+
def __init__(self, engine, explain=False):
|
| 21 |
+
if engine.info["variant"] == "scan":
|
| 22 |
+
raise ValueError("Streaming requires a decision head that accepts fact bits")
|
| 23 |
+
self.engine = engine
|
| 24 |
+
self.explain = explain
|
| 25 |
+
self.memo = SegmentMemo()
|
| 26 |
+
self.halo_size = max(map(len, engine.policy.patterns)) - 1
|
| 27 |
+
self.state = self.empty_state()
|
| 28 |
+
|
| 29 |
+
def empty_state(self):
|
| 30 |
+
facts = np.zeros(len(self.engine.policy.literals), dtype=np.float32)
|
| 31 |
+
return StreamState(0, "", b"", facts, "")
|
| 32 |
+
|
| 33 |
+
def _initial_halo(self, text):
|
| 34 |
+
if not self.halo_size:
|
| 35 |
+
return b""
|
| 36 |
+
width = 256
|
| 37 |
+
while width < len(text):
|
| 38 |
+
begin = text.find(" ", len(text) - width)
|
| 39 |
+
if begin >= 0:
|
| 40 |
+
encoded = self.engine.policy.project(text[begin:])
|
| 41 |
+
if len(encoded) >= self.halo_size:
|
| 42 |
+
return encoded[-self.halo_size:]
|
| 43 |
+
width *= 2
|
| 44 |
+
return self.engine.policy.project(text)[-self.halo_size:]
|
| 45 |
+
|
| 46 |
+
def append(self, fragment, reset=False):
|
| 47 |
+
if not isinstance(fragment, str) or type(reset) is not bool:
|
| 48 |
+
raise ValueError("Append must be a string and reset must be a Boolean")
|
| 49 |
+
current = self.empty_state() if reset else self.state
|
| 50 |
+
next_state = None
|
| 51 |
+
policy = self.engine.policy
|
| 52 |
+
|
| 53 |
+
def prepare(delta):
|
| 54 |
+
nonlocal next_state
|
| 55 |
+
pending = current.suffix + delta
|
| 56 |
+
split = pending.rfind(" ")
|
| 57 |
+
committed = pending[:split] if split > 0 else ""
|
| 58 |
+
suffix = pending[split:] if split > 0 else pending
|
| 59 |
+
|
| 60 |
+
# The pinned Needle model cannot merge across an ASCII space. Keep
|
| 61 |
+
# that space with the uncommitted segment so its prefix is exact.
|
| 62 |
+
stable_tokens = current.tokens + needle_count(self.engine.tokenizer, committed, memo=self.memo)
|
| 63 |
+
tokens = validate_count(stable_tokens + needle_count(self.engine.tokenizer, suffix, memo=self.memo))
|
| 64 |
+
counted = time.perf_counter()
|
| 65 |
+
|
| 66 |
+
if not current.halo and len(committed) >= 4096:
|
| 67 |
+
stable_facts = np.maximum(current.stable_facts, policy.text_atoms(committed))
|
| 68 |
+
halo = self._initial_halo(committed)
|
| 69 |
+
else:
|
| 70 |
+
text = current.halo + policy.project(committed)
|
| 71 |
+
stable_facts = np.maximum(current.stable_facts, policy.atoms(text))
|
| 72 |
+
halo = text[-self.halo_size:] if self.halo_size else b""
|
| 73 |
+
tail_facts = policy.atoms(halo + policy.project(suffix)) if halo else policy.text_atoms(suffix)
|
| 74 |
+
facts = np.maximum(stable_facts, tail_facts)
|
| 75 |
+
explanation_text = current.explanation_text + delta if self.explain else ""
|
| 76 |
+
next_state = StreamState(stable_tokens, suffix, halo, stable_facts, explanation_text)
|
| 77 |
+
return tokens, facts, counted
|
| 78 |
+
|
| 79 |
+
prepared = self.engine.prepare_decision(fragment, prepare=prepare)
|
| 80 |
+
result = self.engine.decide_prepared([prepared])[0]
|
| 81 |
+
if self.explain:
|
| 82 |
+
result["explanation"] = policy.explain(next_state.explanation_text, prepared.atoms)
|
| 83 |
+
# A rejected append or a failed inference leaves the previous stream intact.
|
| 84 |
+
self.state = next_state
|
| 85 |
+
return result
|
support.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "magiceightball",
|
| 3 |
+
"rules": {
|
| 4 |
+
"billing": "\"charged twice\" OR \"duplicate charge\"",
|
| 5 |
+
"delivery": "\"package missing\" OR \"parcel missing\"",
|
| 6 |
+
"permission": "\"review authorized\"",
|
| 7 |
+
"hold": "\"do not route\" OR \"review cancelled\"",
|
| 8 |
+
"case_found": "@billing OR @delivery",
|
| 9 |
+
"ready": "@case_found AND @permission AND NOT @hold"
|
| 10 |
+
},
|
| 11 |
+
"answers": {"may_route": "@ready"},
|
| 12 |
+
"categories": {
|
| 13 |
+
"mixed": "@billing AND @delivery",
|
| 14 |
+
"billing": "@billing",
|
| 15 |
+
"delivery": "@delivery"
|
| 16 |
+
},
|
| 17 |
+
"actions": {
|
| 18 |
+
"triage_mixed": "@ready AND @billing AND @delivery",
|
| 19 |
+
"review_billing": "@ready AND @billing",
|
| 20 |
+
"review_delivery": "@ready AND @delivery"
|
| 21 |
+
}
|
| 22 |
+
}
|