Sariel00 commited on
Commit
3fd1a35
·
verified ·
1 Parent(s): d52b2af

Publish Ling-3.0-tiny RKNN engine and model

Browse files

Includes the final RK3588 model, verified portable runtime, canonical C++ source, conversion tooling, evaluation docs, and third-party notices.

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +5 -35
  2. CMakeLists.txt +138 -0
  3. LICENSE +202 -0
  4. LICENSES.md +15 -0
  5. README.md +232 -0
  6. calibration/calibration-v1.json +0 -0
  7. calibration/dataset/calibration_v1.json +26 -0
  8. calibration/dataset/deployment.txt +7 -0
  9. calibration/dataset/meeting.txt +7 -0
  10. calibration/dataset/support.txt +13 -0
  11. calibration/dataset/think_loss_cases.json +23 -0
  12. deployment/notices/BUILD-AND-LICENSES.md +11 -0
  13. deployment/notices/GCC.txt +1641 -0
  14. deployment/notices/GLIBC.txt +1418 -0
  15. deployment/notices/GPL-3.txt +674 -0
  16. deployment/notices/ICU.txt +49 -0
  17. deployment/notices/LGPL-2.1.txt +501 -0
  18. deployment/notices/MODEL-CARD.md +44 -0
  19. deployment/notices/NLOHMANN-JSON.txt +20 -0
  20. deployment/notices/RKNN-2.3.2.txt +13 -0
  21. deployment/notices/RKNN-SDK-LICENSE.txt +44 -0
  22. docs/BOARD_BENCHMARK_AND_INT4_20260922.md +56 -0
  23. docs/INT4_BOARD_ACCURACY_20260922.md +111 -0
  24. docs/KV_CACHE_BENCHMARK_20260922.md +53 -0
  25. docs/KV_HIT_OPTIMIZATION_20260922.md +35 -0
  26. docs/KV_UTILIZATION_16K_20260922.md +73 -0
  27. docs/LONG_DECODE_16K_16K_20260922.md +81 -0
  28. docs/README.md +26 -0
  29. docs/measurements/16k-profile-20260922/bf16.result.json +91 -0
  30. docs/measurements/16k-profile-20260922/decode.png +3 -0
  31. docs/measurements/16k-profile-20260922/environment-after.json +22 -0
  32. docs/measurements/16k-profile-20260922/environment-before.json +27 -0
  33. docs/measurements/16k-profile-20260922/environment-test.json +20 -0
  34. docs/measurements/16k-profile-20260922/int8.result.json +91 -0
  35. docs/measurements/16k-profile-20260922/summary.json +872 -0
  36. docs/measurements/16k-profile-20260922/timeline.png +3 -0
  37. docs/measurements/benchmark-current-20260922/candidate-bf16-0-chinese.result.json +91 -0
  38. docs/measurements/benchmark-current-20260922/candidate-bf16-1024-0.result.json +91 -0
  39. docs/measurements/benchmark-current-20260922/candidate-bf16-128-0.result.json +91 -0
  40. docs/measurements/benchmark-current-20260922/candidate-bf16-128-1.result.json +91 -0
  41. docs/measurements/benchmark-current-20260922/candidate-bf16-128-2.result.json +91 -0
  42. docs/measurements/benchmark-current-20260922/candidate-bf16-128-warmup0.result.json +90 -0
  43. docs/measurements/benchmark-current-20260922/candidate-bf16-128-warmup1.result.json +90 -0
  44. docs/measurements/benchmark-current-20260922/candidate-bf16-16384-0.result.json +91 -0
  45. docs/measurements/benchmark-current-20260922/candidate-bf16-2048-0.result.json +91 -0
  46. docs/measurements/benchmark-current-20260922/candidate-bf16-4096-0.result.json +91 -0
  47. docs/measurements/benchmark-current-20260922/candidate-bf16-512-0.result.json +91 -0
  48. docs/measurements/benchmark-current-20260922/candidate-bf16-8192-0.result.json +91 -0
  49. docs/measurements/benchmark-current-20260922/environment-after.json +22 -0
  50. docs/measurements/benchmark-current-20260922/environment-before.json +27 -0
.gitattributes CHANGED
@@ -1,35 +1,5 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz 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
 
1
+ *.l3r filter=lfs diff=lfs merge=lfs -text
2
+ docs/measurements/16k-profile-20260922/decode.png filter=lfs diff=lfs merge=lfs -text
3
+ docs/measurements/16k-profile-20260922/timeline.png filter=lfs diff=lfs merge=lfs -text
4
+ docs/measurements/long-decode-20260922/run/long-decode.png filter=lfs diff=lfs merge=lfs -text
5
+ models/local-final/v6-board-test/mindnano-infer filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
CMakeLists.txt ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.20)
2
+
3
+ project(ling3_rknn VERSION 0.1.0 LANGUAGES CXX)
4
+
5
+ option(LING3_WITH_RKNN "Build the direct RKNN backend" OFF)
6
+ option(LING3_TUNE_A76 "Tune release builds for Cortex-A76" ON)
7
+ option(LING3_WITH_ICU "Use ICU for exact tokenizer normalization and splitting" ON)
8
+ set(RKNN_ROOT "" CACHE PATH "Local RKNPU2 root from https://github.com/airockchip/rknpu2 (contains include/ and lib/)")
9
+
10
+ add_library(ling3_core STATIC
11
+ src/core_workers.cpp
12
+ src/cpu_kernels.cpp
13
+ src/decoder.cpp
14
+ src/decoder_state.cpp
15
+ src/execution_plan.cpp
16
+ src/gdn_step.cpp
17
+ src/layer0.cpp
18
+ src/linear.cpp
19
+ src/model_package.cpp
20
+ src/mla_npu.cpp
21
+ src/quantization.cpp
22
+ src/rknn_backend.cpp
23
+ src/router.cpp
24
+ src/tokenizer.cpp
25
+ src/w4_linear.cpp
26
+ )
27
+ target_include_directories(ling3_core PUBLIC include)
28
+ target_compile_features(ling3_core PUBLIC cxx_std_20)
29
+ target_compile_options(ling3_core PRIVATE -Wall -Wextra -Wpedantic)
30
+ target_compile_definitions(ling3_core PUBLIC LING3_WITH_RKNN=$<BOOL:${LING3_WITH_RKNN}>)
31
+
32
+ if(LING3_WITH_ICU)
33
+ find_package(ICU COMPONENTS uc i18n QUIET)
34
+ endif()
35
+ if(ICU_FOUND)
36
+ target_compile_definitions(ling3_core PUBLIC LING3_WITH_ICU=1)
37
+ target_link_libraries(ling3_core PUBLIC ICU::uc ICU::i18n)
38
+ else()
39
+ target_compile_definitions(ling3_core PUBLIC LING3_WITH_ICU=0)
40
+ message(STATUS "ICU development files not found; tokenizer uses a non-production fallback")
41
+ endif()
42
+
43
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64)$" AND LING3_TUNE_A76)
44
+ target_compile_options(ling3_core PRIVATE $<$<CONFIG:Release>:-mcpu=cortex-a76>)
45
+ endif()
46
+
47
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64)$")
48
+ include(CheckLibraryExists)
49
+ check_library_exists(mvec _ZGVnN4v_expf "" LING3_HAS_VECTOR_EXP)
50
+ if(LING3_HAS_VECTOR_EXP)
51
+ target_compile_definitions(ling3_core PRIVATE LING3_WITH_VECTOR_EXP=1)
52
+ target_link_libraries(ling3_core PUBLIC mvec)
53
+ endif()
54
+ endif()
55
+
56
+ if(LING3_WITH_RKNN)
57
+ # Support both a flattened SDK tree and the official rknpu2 checkout:
58
+ # runtime/Linux/librknn_api/{include,aarch64}.
59
+ find_path(RKNN_INCLUDE_DIR rknn_api.h
60
+ HINTS "${RKNN_ROOT}"
61
+ PATH_SUFFIXES include runtime/Linux/librknn_api/include
62
+ REQUIRED)
63
+ find_library(RKNN_LIBRARY rknnrt
64
+ HINTS "${RKNN_ROOT}"
65
+ PATH_SUFFIXES lib aarch64 runtime/Linux/librknn_api/aarch64
66
+ REQUIRED)
67
+ target_include_directories(ling3_core PRIVATE "${RKNN_INCLUDE_DIR}")
68
+ target_link_libraries(ling3_core PUBLIC "${RKNN_LIBRARY}" pthread)
69
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64)$")
70
+ add_executable(ling3-quant-loss-probe EXCLUDE_FROM_ALL tools/quant_loss_probe.cpp)
71
+ add_executable(ling3-linear-bridge-check EXCLUDE_FROM_ALL tools/linear_bridge_check.cpp)
72
+ target_link_libraries(ling3-linear-bridge-check PRIVATE ling3_core)
73
+ target_include_directories(ling3-quant-loss-probe PRIVATE third_party/nlohmann)
74
+ target_link_libraries(ling3-quant-loss-probe PRIVATE ling3_core)
75
+ add_executable(ling3-mla-npu-probe EXCLUDE_FROM_ALL tools/mla_npu_probe.cpp)
76
+ target_include_directories(ling3-mla-npu-probe PRIVATE src third_party/nlohmann "${RKNN_INCLUDE_DIR}")
77
+ target_compile_options(ling3-mla-npu-probe PRIVATE -O3 -mcpu=cortex-a76 -Wall -Wextra)
78
+ target_link_libraries(ling3-mla-npu-probe PRIVATE ling3_core)
79
+ endif()
80
+ endif()
81
+
82
+ set_target_properties(ling3_core PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
83
+
84
+ add_executable(ling3-rknn
85
+ src/main.cpp
86
+ src/service.cpp
87
+ )
88
+ target_link_libraries(ling3-rknn PRIVATE ling3_core)
89
+
90
+ add_executable(mindnano-infer src/portable_main.cpp)
91
+ target_include_directories(mindnano-infer PRIVATE third_party/nlohmann)
92
+ target_link_libraries(mindnano-infer PRIVATE ling3_core)
93
+
94
+ include(CTest)
95
+ if(BUILD_TESTING)
96
+ add_executable(ling3-decoder-state-test tests/decoder_state_test.cpp)
97
+ target_link_libraries(ling3-decoder-state-test PRIVATE ling3_core)
98
+ add_test(NAME ling3-decoder-state-test COMMAND ling3-decoder-state-test)
99
+ add_executable(ling3-generation-control-test tests/generation_control_test.cpp)
100
+ target_compile_features(ling3-generation-control-test PRIVATE cxx_std_20)
101
+ target_include_directories(ling3-generation-control-test PRIVATE include third_party/nlohmann)
102
+ target_link_libraries(ling3-generation-control-test PRIVATE pthread)
103
+ add_test(NAME ling3-generation-control-test COMMAND ling3-generation-control-test)
104
+ add_executable(ling3-precision-policy-test tests/precision_policy_test.cpp)
105
+ target_link_libraries(ling3-precision-policy-test PRIVATE ling3_core)
106
+ add_test(NAME ling3-precision-policy-test COMMAND ling3-precision-policy-test)
107
+ if(LING3_WITH_RKNN)
108
+ # Explicit model-backed test: run with MODEL.l3r, one model process at a time.
109
+ add_executable(ling3-checkpoint-model-test tests/checkpoint_model_test.cpp)
110
+ target_link_libraries(ling3-checkpoint-model-test PRIVATE ling3_core)
111
+ add_executable(ling3-w4-workspace-test tests/w4_workspace_test.cpp)
112
+ target_link_libraries(ling3-w4-workspace-test PRIVATE ling3_core)
113
+ add_test(NAME ling3-w4-workspace-test COMMAND ling3-w4-workspace-test)
114
+ set_tests_properties(ling3-w4-workspace-test PROPERTIES LABELS rknn_hardware)
115
+ endif()
116
+ add_executable(ling3-model-reclaim-test tests/model_reclaim_test.cpp)
117
+ target_link_libraries(ling3-model-reclaim-test PRIVATE ling3_core)
118
+ add_test(NAME ling3-model-reclaim-test COMMAND ling3-model-reclaim-test)
119
+ add_executable(ling3-chat-protocol-test tests/chat_protocol_test.cpp)
120
+ target_compile_features(ling3-chat-protocol-test PRIVATE cxx_std_20)
121
+ target_include_directories(ling3-chat-protocol-test PRIVATE include third_party/nlohmann)
122
+ add_test(NAME ling3-chat-protocol-test COMMAND ling3-chat-protocol-test)
123
+ add_executable(ling3-router-test tests/router_test.cpp)
124
+ target_link_libraries(ling3-router-test PRIVATE ling3_core)
125
+ add_test(NAME ling3-router-test COMMAND ling3-router-test)
126
+
127
+ add_executable(ling3-quantization-test tests/quantization_test.cpp)
128
+ target_link_libraries(ling3-quantization-test PRIVATE ling3_core)
129
+ add_test(NAME ling3-quantization-test COMMAND ling3-quantization-test)
130
+
131
+ add_executable(ling3-activation-test tests/activation_test.cpp)
132
+ target_link_libraries(ling3-activation-test PRIVATE ling3_core)
133
+ add_test(NAME ling3-activation-test COMMAND ling3-activation-test)
134
+ if(LING3_HAS_VECTOR_EXP)
135
+ add_test(NAME ling3-vector-activation-test COMMAND ling3-activation-test)
136
+ set_tests_properties(ling3-vector-activation-test PROPERTIES ENVIRONMENT "LING3_VECTOR_MATH=1")
137
+ endif()
138
+ endif()
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
LICENSES.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 许可边界
2
+
3
+ 本仓库包含两类独立资产:
4
+
5
+ ## 代码
6
+
7
+ 根目录 `src/`、`include/`、`tools/`、`tests/`、`calibration/`、`docs/` 以及相关构建脚本(第三方组件除外)采用 [Apache License 2.0](LICENSE) 许可。
8
+
9
+ ## 转换模型资产
10
+
11
+ 本项目发布的 `ling3-tiny-w4.l3r` 及其转换/打包成果标注为 [CC BY-NC 4.0 International](https://creativecommons.org/licenses/by-nc/4.0/),仅限非商业、学术研究和教育用途。使用时须保留基模型署名,并说明本项目进行了 RK3588 W4A8/W8A8 转换和 `.l3r` 打包。本标注不改变上游基模型原有权利或许可边界;商业使用或商业集成请先取得相应授权。
12
+
13
+ ## 第三方组件
14
+
15
+ Rockchip RKNN SDK/runtime、ICU、nlohmann JSON、glibc、GCC runtime 等组件不适用上述项目许可,分别遵守其原始许可证和再分发条款。来源与说明见 [`deployment/notices/`](deployment/notices/)。
README.md ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: apache-2.0-source-cc-by-nc-4.0-model
4
+ license_link: https://creativecommons.org/licenses/by-nc/4.0/
5
+ base_model: inclusionAI/Ling-3.0-tiny
6
+ pipeline_tag: text-generation
7
+ library_name: ling3rknn
8
+ tags:
9
+ - rk3588
10
+ - rknn
11
+ - edge-inference
12
+ - custom-format
13
+ language:
14
+ - zh
15
+ ---
16
+
17
+ # Ling-3.0-tiny-RKNN
18
+
19
+ 这是面向 RK3588/RK3588S 的 Ling-3.0-tiny 专用推理引擎和 W4A8/W8A8 转换模型。
20
+ 本仓库同时提供 C++ 源码、转换工具、校准数据、测试报告和可选的 `.l3r` 部署模型。
21
+
22
+ Ling-3.0-rknn 是在 RK3588/RK3588S 上的专用 C++ 推理工程。
23
+
24
+ 引擎使用 A76 CPU 和三核 RKNPU,提供终端对话与 OpenAI 兼容的 Chat Completions 接口。
25
+
26
+ 支持 KV cache 命中;非连续缓存命中仍属于实验功能。
27
+
28
+ 端侧知识库方案另见 [mindnano-ling3-compass](https://huggingface.co/Sariel00/mindnano-ling3-compass),该项目仍在实验阶段。
29
+
30
+ 推理不依赖 RKLLM、llama.cpp 或 Python 服务。模型为纯文本 MoE,约 7.9B 总参数、每 token 约 1.3B 激活参数,当前未启用 MTP。
31
+
32
+ 在16K以内上下文在可用范畴内,32K~256K均为测试,目前由于是专用推理引擎所以速度会随着上下文的增大而降低。
33
+
34
+ 如果您有这方面的经验,或者可以优化这些请与我联系,非常感谢。
35
+
36
+ ## 项目简介
37
+
38
+ 本项目把 Ling-3.0-tiny 转换为 RK3588/RK3588S 可运行的专用 C++ 推理程序。模型是纯文本 MoE;权重采用 W4A8/W8A8 混合量化,推理由 A76 CPU 与 RKNPU 协同完成。程序提供终端模式和 OpenAI 风格的 Chat Completions HTTP 接口。公开源码使用设备上从 Rockchip 官方仓库安装的 RKNPU2 runtime,不需要 Python、RKLLM 或 llama.cpp 才能运行。
39
+
40
+ 这是面向单板验证和端侧优化的工程。当前默认路径是单请求、无鉴权、无 TLS;部分 NPU MLA、FP8/INT8 KV 和非连续缓存仍属于实验功能。性能、内存和质量会随 RKNPU 驱动、频率、散热、后台服务及上下文长度变化。
41
+
42
+ ## 目录与文件
43
+
44
+ | 路径 | 作用 |
45
+ | --- | --- |
46
+ | `src/`、`include/` | canonical public C++ decoder, MoE, MLA/KDA, KV manager, service and RKNN backend |
47
+ | `engine/source/` | historical experimental snapshot; it is not included in this public repository and must not be mixed with the root build |
48
+ | `CMakeLists.txt` | 根构建入口 |
49
+ | `tools/` | 量化、打包、部署和 benchmark 脚本 |
50
+ | `tests/` | 单元测试、模型测试和 API 测试 |
51
+ | `models/local-final/v6-board-test/` | v6 发布包:最终模型、板端验证的便携二进制、manifest、许可声明和校验文件 |
52
+ | `calibration/` | 权重/激活量化使用的校准输入,不是运行时必需文件 |
53
+ | `docs/` | [文档索引](docs/README.md):性能、KV 与数值误差报告;`measurements/` 保留结果摘要、曲线和校验信息 |
54
+ | `deployment/notices/` | 第三方许可、来源链接和模型许可摘要 |
55
+
56
+ 原始 BF16 模型不随本工作区保存。转换前请从上游仓库下载指定 revision;RKNN SDK/runtime 请从 Rockchip 官方仓库获取。发布模型时应同时提供 `MODEL.json`、`SHA256SUMS.PUBLIC` 和许可说明。
57
+
58
+ `engine/source/` 是历史实验快照,不是第二个稳定入口;它包含板端探针和维护脚本,不能与根目录 `src/` 混合编译,因此本公开仓库不包含该目录。部分历史性能报告引用当时使用的实验脚本;公开构建和测试入口以根目录 `CMakeLists.txt`、`tools/` 和 `tests/` 为准。
59
+
60
+ ## 当前功能与限制
61
+
62
+ 已实现的主要功能:
63
+
64
+ - 终端对话和 OpenAI 风格 `POST /v1/chat/completions`;
65
+ - 流式输出、thinking 开关、请求取消、暂停/恢复和流控;
66
+ - `session_id` 会话缓存、完整前缀命中和已生成状态复用;恢复 checkpoint 时可保留未覆盖的 NPU KV tile;
67
+ - `--mla-backend auto|cpu|npu`、性能指标日志和设备检查;
68
+ - `--kv-cache bf16|fp16|fp8|int8`。BF16 是默认且验证最充分的格式;FP8/INT8 只改变 MLA K/V 缓存,仍需按场景验证;
69
+ - 可选的 NPU MLA 预填充/解码路径和混合 W4A8/W8A8 权重。
70
+
71
+ 当前限制:一次只执行一个推理请求,忙时可能返回 429;接口没有用户鉴权和 TLS;KV 缓存是进程内资源,不是跨重启的持久聊天记录;128K/256K 只提供容量选项,尚未完成完整板端质量和性能认证;MTP 未启用。
72
+
73
+ ## 板端性能
74
+
75
+ 下表来自 NanoPi M6(RK3588、16GB)2026-09-22 实测。CPU、NPU、DMC 测试期间固定最高频率;模型为 `ling3-tiny-w4.l3r`,BF16 KV,32K 初始化,关闭 thinking,temperature=0,每次冷启动会话输入后生成 64 tokens,未命中 KV 缓存。TTFT 不包括服务启动时间。
76
+
77
+ | 输入/输出 | TTFT | Prefill tok/s | 解码计算 tok/s | 峰值 RSS |
78
+ | ---: | ---: | ---: | ---: | ---: |
79
+ | 128 / 64 | 753 ms | 170.69 | 19.98 | 7197 MiB |
80
+ | 512 / 64 | 2.759 s | 185.75 | 18.26 | 7230 MiB |
81
+ | 1024 / 64 | 5.691 s | 180.03 | 16.86 | 7258 MiB |
82
+ | 2048 / 64 | 12.754 s | 160.64 | 13.85 | 7322 MiB |
83
+ | 4096 / 64 | 29.043 s | 141.06 | 11.21 | 7429 MiB |
84
+ | 8192 / 64 | 76.447 s | 107.17 | 8.37 | 7661 MiB |
85
+ | 16384 / 64 | 226.045 s | 72.49 | 6.06 | 8162 MiB |
86
+
87
+ TTFT 随输入长度增加,解码速度也会因每个新 token 需要访问更长的历史 KV 而下降;因此 128/64 的结果不能代表长上下文表现。完整原始结果和测试环境见 [BOARD_BENCHMARK_AND_INT4_20260922.md](docs/BOARD_BENCHMARK_AND_INT4_20260922.md)。频率、散热和后台负载改变时应重新测量。
88
+
89
+ ## 量化与数值损失
90
+
91
+ 当前发布模型不是全 W4:部分线性层和专家使用 W4A8,其他指定投影使用 W8A8。默认 KV 为 BF16,KDA 状态保留 FP32。量化存在损失,以下是固定 teacher-forcing 序列、4,322 个预测位置、完整 157,184 词表,以 BF16 为参考的 logits 分布指标:
92
+
93
+ | 路径 | Logits MAE | RMSE | 最大绝对差 | 平均 TV | 平均 KL | Top1 一致率 |
94
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: |
95
+ | 官方 INT4(桌面重建) | 0.281598 | 0.371417 | 8.390625 | 5.7605% | 0.026054 | 92.6886% |
96
+ | 板端 W4A8/W8A8 + NPU MLA | 0.421164 | 0.549502 | 12.022694 | 8.9992% | 0.061127 | 89.5187% |
97
+
98
+ 官方 INT4 一行是 group32 INT4 权重在桌面 CUDA BF16 参考实现中的重建计算,不是 RK3588 原生 INT4 速度测试。板端当前 MAE 约为官方 INT4 的 1.50 倍,RMSE 约 1.48 倍,Top1 一致率低 3.1699 个百分点。上述指标衡量 logits/概率分布保真,不等于问答正确率;完整口径见 [INT4_BOARD_ACCURACY_20260922.md](docs/INT4_BOARD_ACCURACY_20260922.md)。
99
+
100
+ FP8 和 INT8 KV 选项仍是实验实现:它们可以降低缓存容量或改变 MLA 的 NPU 计算路径,但当前样本不足以证明长期生成质量优于默认 BF16。需要复现实验时,应记录 KV 格式、上下文长度、频率和 `metrics.jsonl`,不要只比较单条回复。
101
+
102
+ ## 模型转换
103
+
104
+ 转换前需要自行获取原始模型。上游仓库为 [inclusionAI/Ling-3.0-tiny](https://huggingface.co/inclusionAI/Ling-3.0-tiny),本项目量化脚本固定的来源 revision 为 `e3a47d5b986e7141b6efd62597d598ebb392060d`。推荐使用 Hugging Face CLI 下载完整 BF16 权重、配置和 tokenizer:
105
+
106
+ ```bash
107
+ hf download inclusionAI/Ling-3.0-tiny \
108
+ --revision e3a47d5b986e7141b6efd62597d598ebb392060d \
109
+ --local-dir ./work/Ling-3.0-tiny
110
+ ```
111
+
112
+ 转换需要该目录包含 `model.safetensors.index.json`、全部 safetensors 分片、`config.json` 和 tokenizer,还需要 Python、PyTorch、safetensors 以及对应的 RKNN 工具链。校准输入位于 `calibration/dataset/calibration_v1.json`;可选的激活校准 scale 由 `--calibration-scales` 提供。
113
+
114
+ 示例流程如下,路径请替换为实际目录:
115
+
116
+ ```bash
117
+ # 1. 从原始 BF16 模型生成 RKNN 资产和 manifest
118
+ python3 tools/quantize_model.py \
119
+ --source ./work/Ling-3.0-tiny \
120
+ --output build/ling3-assets \
121
+ --max-context 32768 \
122
+ --calibration-scales ./work/calibration-scales.safetensors
123
+
124
+ # 2. 将 manifest 和资产打包为运行时模型
125
+ python3 tools/pack_model.py \
126
+ build/ling3-assets/manifest.json \
127
+ build/ling3-tiny-w4.l3r
128
+ ```
129
+
130
+ `quantize_model.py` 的默认布局对应本项目运行时的混合 W4A8/W8A8 方案;改变层范围、校准 scale 或上下文上限都应重新做数值和板端回归。完整部署包还需要把 `.l3r`、二进制、`MANIFEST.json`、`MODEL.json` 和校验文件放入独立目录;不要把中间 `assets/` 当作板端模型。
131
+
132
+ ## 编译与部署包
133
+
134
+ 在 ARM64 构建机上安装 C++20 编译器、CMake、ICU 开发文件,以及 Rockchip 官方 [rknn-toolkit2](https://github.com/airockchip/rknn-toolkit2) 和 [rknpu2](https://github.com/airockchip/rknpu2)。`RKNN_ROOT` 应指向本地下载的 RKNPU2 目录,该目录需要包含 `include/rknn_api.h` 和目标平台的 `librknnrt`:
135
+
136
+ ```bash
137
+ cmake -S . -B build \
138
+ -DCMAKE_BUILD_TYPE=Release \
139
+ -DLING3_WITH_RKNN=ON \
140
+ -DRKNN_ROOT=./vendor/rknpu2
141
+ cmake --build build -j4 --target mindnano-infer ling3-rknn
142
+ ```
143
+
144
+ RKNN 头文件和运行库来自 Rockchip 官方仓库;`RKNN_ROOT` 既可以指向整理为 `include/` 与 `lib/` 的 SDK 目录,也可以直接指向官方 `rknpu2` checkout,CMake 会搜索其 `runtime/Linux/librknn_api/include` 和 `runtime/Linux/librknn_api/aarch64`。构建时使用本地 SDK,便携打包时可按其许可随包转发匹配版本的 runtime。请按照 Rockchip 仓库中的许可、版本和硬件兼容性要求使用对应文件。
145
+
146
+ 不带 RKNN SDK 时可以用 `-DLING3_WITH_RKNN=OFF` 构建主机检查和部分单元测试,但该二进制不能在 RK3588 上执行真实 NPU 推理。使用 `tools/build_portable.py` 可把引擎及其用户态依赖封装进便携启动器;模型文件仍单独放在发布目录:
147
+
148
+ ```bash
149
+ python3 tools/build_portable.py \
150
+ --engine build/mindnano-infer \
151
+ --output release/mindnano-infer \
152
+ --notices deployment/notices
153
+
154
+ # 将转换后的模型复制为 release/ling3-tiny-w4.l3r,
155
+ # 再生成 MANIFEST、MODEL.json、SHA256SUMS 等发布元数据。
156
+ python3 tools/finalize_release.py \
157
+ --directory release \
158
+ --model-source build/ling3-tiny-w4.l3r
159
+ ```
160
+
161
+ `build_portable.py` 默认会把匹配版本的 `librknnrt.so` 和其他动态依赖写入启动器,并同时嵌入
162
+ `deployment/notices/` 中的声明。若目标环境必须使用设备已有 runtime,可使用
163
+ `--without-rknn-runtime`;公开转发时仍须遵守 Rockchip [rknpu2](https://github.com/airockchip/rknpu2)
164
+ 仓库的许可、版本和硬件兼容性要求。
165
+
166
+ `finalize_release.py` 还会读取发布用 README 模板;如果源码包中没有该模板,需要先补齐模板或手动生成 `MODEL.json`、`SHA256SUMS`,不要把失败的中间目录当作发布包。
167
+
168
+ 公开源码构建使用从 Rockchip 官方仓库获取的 RKNN 用户态库;便携启动器可将匹配版本的 `librknnrt.so` 一并分发。运行时仍要求 64 位 RK3588/RK3588S Linux 和可访问的 RKNPU 驱动(已按 0.9.8 版本验证)。公开发布前必须检查 `MANIFEST.json`、`SHA256SUMS` 和所有第三方 notices。
169
+ 当前目录中的 v6 二进制已按当前源码和 NOTICE 在 ARM64 RK3588 板端重新构建,并通过 `--check`;重新构建任何变体后都必须同步生成新的 `MANIFEST.json` 和校验文件。
170
+
171
+ ## 使用
172
+
173
+ 进入部署包目录后先做设备检查,再选择上下文长度:
174
+
175
+ ```bash
176
+ cd models/local-final/v6-board-test
177
+ sha256sum --ignore-missing -c SHA256SUMS
178
+ ./mindnano-infer --check
179
+ ./mindnano-infer --context 8K
180
+ ```
181
+
182
+ 支持的上下文选项为 `4K`、`8K`、`16K`、`32K`、`64K`、`128K` 和 `256K`。程序会输出内存估算和不足提示,但当前是告警模式,不会替用户做内存保证;256K 超出原生 128K 位置范围,属于未经验证的外推。`--list-contexts` 可查看估算值。
183
+
184
+ 启动 HTTP 服务(仅在可信局域网使用):
185
+
186
+ ```bash
187
+ ./mindnano-infer --context 8K --host 0.0.0.0 --port 9092 \
188
+ --no-console --log metrics.jsonl
189
+ ```
190
+
191
+ 发送 OpenAI 风格请求:
192
+
193
+ ```bash
194
+ curl --noproxy '*' -N http://127.0.0.1:9092/v1/chat/completions \
195
+ -H 'Content-Type: application/json' \
196
+ -d '{"model":"mindnano-ling3-tiny","session_id":"demo","messages":[{"role":"user","content":"你好"}],"stream":true,"max_tokens":128,"enable_thinking":false}'
197
+ ```
198
+
199
+ 常用接口为 `GET /health`、`GET /v1/models`、`POST /v1/chat/completions` 和 `POST /v1/cancel`。响应中的 `request_id` 可用于取消请求,流式事件中的 `mindnano_metrics` 包含 TTFT、解码速度和缓存状态。终端模式下 `/reset` 清空当前会话,`/quit` 退出;模型加载和预热只在进程启动时进行。
200
+
201
+ 可选运行参数:
202
+
203
+ ```text
204
+ --mla-backend auto|cpu|npu
205
+ --kv-cache bf16|fp16|fp8|int8
206
+ --session-cache-mib N
207
+ --prefix-checkpoints N
208
+ ```
209
+
210
+ `--kv-cache bf16` 是默认推荐值;`fp8` 和 `int8` 需要重新测量精度和性能。`session_id` 只用于进程内缓存复用,客户端仍应在每轮发送完整 `messages`;缓存不等于持久化聊天记录。服务未提供鉴权、TLS 或稳定并发保证。
211
+
212
+ ## 性能测试
213
+
214
+ 部署包内的 `benchmark.py` 会启动本机服务、预热并测量短请求;端口冲突时使用其他端口:
215
+
216
+ ```bash
217
+ python3 benchmark.py --port 19092 --output board-test-result.json
218
+ ```
219
+
220
+ 测试指标中,TTFT 是首 token 前的时间,Prefill tok/s 是输入处理速度,解码计算 tok/s 是模型生成阶段速度,RSS 是进程峰值常驻内存。长上下文专项和 KV 容量测试见 [KV_CACHE_BENCHMARK_20260922.md](docs/KV_CACHE_BENCHMARK_20260922.md);NPU/CPU 占用分析见 [KV_UTILIZATION_16K_20260922.md](docs/KV_UTILIZATION_16K_20260922.md)。数值损失复现入口和数据说明见 [INT4_BOARD_ACCURACY_20260922.md](docs/INT4_BOARD_ACCURACY_20260922.md)。
221
+
222
+ ## Hugging Face 发布边界
223
+
224
+ 当前工作区的模型、元数据和已通过板端检查的便携二进制保存在 `models/local-final/v6-board-test/`;发布独立 Hugging Face 模型仓库时,可将其中的 `ling3-tiny-w4.l3r`、`MODEL.json`、`SHA256SUMS.PUBLIC` 和部署用 README 平铺到模型仓库根目录。`SHA256SUMS` 是包含当前二进制的部署包清单;如果公开上传 `mindnano-infer`,应同时保留匹配的 `MANIFEST.json` 和全部第三方 notices。
225
+
226
+ ## 来源与许可
227
+
228
+ 本仓库中的 C++ 源码、转换脚本、测试工具和文档(第三方组件除外)采用 [Apache-2.0](LICENSE) 许可,完整资产边界见 [LICENSES.md](LICENSES.md)。
229
+ 本项目发布的转换/打包模型资产 `ling3-tiny-w4.l3r` 标注为 [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0),仅限非商业、学术研究和教育用途;该标注不改变上游基模型的权利或许可边界。商业使用或商业集成请先取得相应授权。
230
+ 文件顶部的 Hugging Face 自定义许可元数据以转换模型资产为主,许可链接指向模型 CC BY-NC 4.0;本仓库源码仍按根目录 [LICENSE](LICENSE) 使用 Apache-2.0,完整资产边界见 [LICENSES.md](LICENSES.md)。
231
+
232
+ 转换模型的基模型为 [inclusionAI/Ling-3.0-tiny](https://huggingface.co/inclusionAI/Ling-3.0-tiny),来源 revision 为 `e3a47d5b986e7141b6efd62597d598ebb392060d`。原始 BF16 权重和完整上游模型卡不随本仓库分发;使用者仍须遵守上游模型条款。Rockchip RKNN SDK/runtime 是独立的第三方组件,来源和许可链接见 `deployment/notices/BUILD-AND-LICENSES.md`。
calibration/calibration-v1.json ADDED
The diff for this file is too large to render. See raw diff
 
calibration/dataset/calibration_v1.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {"prompt":"写一封预约图书馆讨论室的邮件,说明人数、用途和时间,并询问是否有白板。","reasoning":"预约邮件需要明确日期、时段和资源需求,措辞礼貌,避免把尚未确认的预约当作已经成功。","answer":"老师您好:我们小组共有六人,希望预约下周三下午两点至四点的讨论室,用于讨论读书报告。请问该时段是否有空闲房间,房间内是否配有白板和白板笔?如果需要提前提交申请表,也请告知办理方式。感谢您的帮助,期待回复。"},
3
+ {"prompt":"为一家小面包店拟一个减少浪费的办法,不降低食品安全标准。","reasoning":"应先从需求预测和生产批次入手,再考虑临期信息提示。过期食品不能通过促销继续出售。","answer":"连续记录两周各时段的销量、天气和剩余数量,按工作日与周末分别预测需求。早晨先生产基础数量,下午根据销售情况补烤。对仍在保质期内的商品可以清楚标注制作时间并适当优惠,过期或储存不当的食品必须按规定处理。每天闭店后复盘报损原因,避免仅凭印象扩大产量。"},
4
+ {"prompt":"解释为什么冬天室内窗户上容易出现水珠。","reasoning":"现象取决于水蒸气遇冷凝结,需区分空气中看不见的水蒸气和可见的小水滴。","answer":"室内空气通常含有水蒸气,做饭、洗澡和呼吸都会增加湿度。冬天玻璃温度较低,靠近玻璃的空气被冷却,当温度降到露点以下时,一部分水蒸气会凝结成水滴。适度通风、降低湿度和改善窗户保温都有帮助。水珠多并不意味着玻璃在向室内漏水。"},
5
+ {"prompt":"一个水箱有180升水,每分钟放出12升,同时流入3升,多久排空?请列算式。","reasoning":"流入和流出同时发生,净减少速度是每分钟九升。用总量除以净减少速度即可。","answer":"每分钟净减少的水量为12-3=9升,因此排空时间是180÷9=20分钟。这里假设流入和流出的速度一直保持不变,并且水箱排空之前两个过程都持续进行。"},
6
+ {"prompt":"将这条公告改得清楚些:周五系统要维护,可能用不了,大家提前弄。","reasoning":"原文缺失具体时间和受影响服务,不能编造为已经确定的事实。可使用待填写项并提示保存工作。","answer":"维护通知:本周五【开始时间】至【结束时间】,我们将对【服务名称】进行维护。期间该服务可能暂时无法访问,请提前保存正在编辑的内容并安排相关工作。维护完成后将另行通知。如有紧急需求,请联系【联系人及联系方式】。发布前请补齐括号中的信息。"},
7
+ {"prompt":"写一段温和的短故事,主角是第一次学做饭的孩子和奶奶。","reasoning":"采用简单生活场景,保持人物关系一致,用具体动作表达鼓励,不突然引入无关人物。","answer":"小禾第一次拿起锅铲,紧张得把盐罐推到了桌子边。奶奶伸手扶住它,笑着说,先尝一口,再决定放多少。番茄在锅里慢慢变软,厨房里升起暖暖的香气。小禾端着做好的面条走到桌前,发现两只碗里的面都少了一点。原来奶奶早已偷偷尝过。她认真地点点头:下次换你教我。小禾知道这是鼓励,却还是开心了很久。"},
8
+ {"prompt":"Python里统计字符串中各字符的出现次数,返回普通字典,并说明空串的结果。","reasoning":"可以逐字符遍历并累加,不能用单词切分替代字符统计。空输入不进入循环,所以结果为空字典。","answer":"可以这样写:\n```python\ndef count_chars(text):\n result = {}\n for char in text:\n result[char] = result.get(char, 0) + 1\n return result\n\nassert count_chars('aba') == {'a': 2, 'b': 1}\nassert count_chars('') == {}\n```\n空格、标点也会作为字符计数。这个实现按Python字符串的码点遍历,复杂表情的显示单位不一定只对应一个码点。"},
9
+ {"prompt":"解释SQL中WHERE与HAVING的区别,给出销售额分组例子。","reasoning":"WHERE在分组前过滤记录,HAVING在聚合之后筛选分组。示例应避免引用不存在的别名。","answer":"WHERE筛选参与计算的行,HAVING筛选已经聚合的组。例如统计今年销售额超过一万元的部门:\n```sql\nSELECT department, SUM(amount) AS total\nFROM sales\nWHERE sold_at >= '2026-01-01' AND sold_at < '2027-01-01'\nGROUP BY department\nHAVING SUM(amount) > 10000;\n```\n日期条件先减少参与分组的记录,然后对每个部门求和,最后用HAVING筛选满足金额条件的部门。"},
10
+ {"prompt":"Translate into English: 请在提交报销申请前核对发票金额,并保留原始凭证。","reasoning":"翻译需要保留先后顺序、报销申请和原始凭证三个信息点,使用自然的商务英语。","answer":"Please verify the invoice amount before submitting your reimbursement request, and retain the original supporting documents.\n其中 reimbursement request 对应报销申请,supporting documents 指用于证明支出的相关凭证。"},
11
+ {"prompt":"Explain to a beginner what a retry with exponential backoff does. Mention one limitation.","reasoning":"Describe delays increasing after failures, use a small numerical example, and mention that retrying a non-idempotent operation can duplicate effects.","answer":"After a temporary failure, the client waits before trying again. With exponential backoff, the delay grows, for example from one second to two seconds, then four seconds. A maximum delay and a retry limit prevent endless waiting. Random jitter helps avoid many clients retrying at the same instant. Retries must be designed carefully for operations such as payments, because a repeated request can create a duplicate unless the service provides an idempotency mechanism."},
12
+ {"prompt":"一件商品原价240元,先打八折,再减20元,最后价格多少?和直接减40元相同吗?","reasoning":"百分比折扣先计算,固定金额后扣除。比较方案需分别算最终价格。","answer":"先打八折得到240×0.8=192元,再减20元,最终价格为172元。直接在原价上减40元则是200元。两者不相同,前一种方案比后一种便宜28元。"},
13
+ {"prompt":"如何向刚入职的同事解释备份和文件同步不是一回事?","reasoning":"区别在于历史版本、删除传播和恢复目标,不能保证所有备份产品都拥有相同功能。","answer":"文件同步的目标是让多个位置保持一致。如果一个文件被误删,删除操作也可能同步到其他设备。备份的目标是保留可恢复的副本,通常还需要明确版本、保留期限和恢复流程。选择工具时要确认是否保留历史版本,并实际演练恢复。仅看到另一台电脑里也有同名文件,并不足以证明已经具备可靠备份。"},
14
+ {"prompt":"把这些事实整理成摘要:公交线路增加两班早班车;从下月开始试行;一个月后评估;票价不变。","reasoning":"摘要必须保留试行时间、增班数量、评估节点和票价,不能推断夜班或线路走向变化。","answer":"该公交线路将从下月起试行增加两班早班车,票价保持不变。试行一个月后,将根据运行情况进行评估。公告尚未给出新增班次的具体发车时间,乘客可关注后续时刻表。"},
15
+ {"prompt":"为刚开始跑步的人设计一周安排,不追求成绩。","reasoning":"建议需要循序渐进并保留休息日,避免把一般性安排当成针对疾病的专业处方。","answer":"周一快走二十分钟,周二休息。周三采用走跑交替:慢跑一分钟、步行两分钟,重复六次。周四轻松散步,周五休息,周六根据感受重复周三的安排,周日做轻柔拉伸。以能正常说话的强度为宜,疼痛或明显不适时停止运动。已有相关疾病或伤病的人,应先向医生咨询适合自己的运动方式。"},
16
+ {"prompt":"JavaScript中如何用async和await读取JSON响应并处理HTTP错误?","reasoning":"fetch遇到HTTP错误状态不一定抛异常,因此要显式检查response.ok,再解析JSON。","answer":"```javascript\nasync function loadJson(url) {\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(`HTTP ${response.status}`);\n }\n return await response.json();\n}\n```\n调用方使用try/catch处理网络错误、HTTP错误和JSON解析错误。实际应用还可以加入超时或取消机制,但不要无限重试所有错误。"},
17
+ {"prompt":"比较地铁和骑自行车通勤各自适合什么情况。","reasoning":"按照距离、天气、可达性和时间稳定性比较,给出条件化结论,不假设用户居住地。","answer":"地铁适合距离较长、沿线站点方便的通勤,通常受道路拥堵影响较小,但需要考虑步行到站和换乘时间。自行车适合距离较短、有安全骑行路线的通勤,时间灵活,也能顺便运动,但更受天气和体力影响。可以分别记录一周的门到门耗时和舒适度,再决定日常方式,也可以把骑车与地铁组合起来。"},
18
+ {"prompt":"温度计读数上午为负3摄氏度,中午升高8度,傍晚下降4度,傍晚是多少?","reasoning":"按照时间顺序计算带符号的温度变化,中午是五度,傍晚再减四度。","answer":"中午温度为-3+8=5摄氏度;傍晚温度为5-4=1摄氏度。因此傍晚的读数是1摄氏度,比上午高4度。"},
19
+ {"prompt":"解释月相为什么会变化,它是否主要由地球的影子造成?","reasoning":"普通月相由观察几何和日照方向决定,地球阴影遮挡对应月食,应明确区分。","answer":"月球本身不发光,我们看到的是它反射的太阳光。月球绕地球运动时,我们看见的受光部分比例发生变化,于是出现新月、上弦月、满月等月相。普通月相变化不是主要由地球影子造成的。当地球恰好挡住照向月球的阳���时,才可能发生月食。"},
20
+ {"prompt":"帮我回复客户:包裹比预计晚了一天,目前只能确认已经离开发货仓。","reasoning":"应承认延迟并说明已知信息,不捏造送达时间或虚构已经联系物流。","answer":"您好,很抱歉包裹未能按原预计时间送达。目前可以确认包裹已离开发货仓,但我们暂时还不能确定准确送达时间。我们会继续核实运输进度,并在获得可靠信息后及时向您反馈。感谢您的耐心,也请您保留订单信息,便于后续查询。"},
21
+ {"prompt":"把会议议程写成三个项目:回顾上周完成情况,讨论本周风险,确认负责人。","reasoning":"使用清晰项目顺序,不添加已经做出的决定。议程和会议纪要的时态应区分。","answer":"1. 回顾上周任务的完成情况,说明尚未完成事项及原因。\n2. 讨论本周可能影响进度或质量的风险,收集应对建议。\n3. 确认后续事项的负责人和预计完成时间,并在会后整理记录。\n这是一份待执行的会议议程,具体结论需要在讨论后填写。"},
22
+ {"prompt":"写一个Python函数,只保留列表中第一次出现的元素,假设元素可哈希。","reasoning":"用集合检查是否见过,同时用列表保存顺序。不使用set直接返回,因为它不能表达首次出现的列表顺序要求。","answer":"```python\ndef unique_first(items):\n seen = set()\n result = []\n for item in items:\n if item not in seen:\n seen.add(item)\n result.append(item)\n return result\n\nassert unique_first([3, 1, 3, 2, 1]) == [3, 1, 2]\nassert unique_first([]) == []\n```\n函数不会修改输入列表。由于使用集合,输入元素需要可哈希;平均时间复杂度为O(n)。"},
23
+ {"prompt":"用中文解释precision和recall的区别,场景是垃圾邮件识别。","reasoning":"精确率关注判为垃圾的邮件中有多少真的垃圾,召回率关注全部垃圾邮件中找到了多少。两个分母必须区分。","answer":"Precision通常译为精确率:被系统判为垃圾邮件的邮件中,真正垃圾邮件所占的比例。Recall通常译为召回率:所有真正垃圾邮件中,被系统成功识别出来的比例。例如系统标记了十封邮件,其中八封确实是垃圾,而实际一共有二十封垃圾邮件,那么精确率为8/10=80%,召回率为8/20=40%。"},
24
+ {"prompt":"给小学生解释植物为什么需要光,也需要水。","reasoning":"用简单语言介绍光合作用,说明光是能量来源而水是原料之一,避免把肥料等同于食物。","answer":"植物像一个小小的工厂。叶片可以利用阳光提供的能量,把水和空气中的二氧化碳变成糖等物质,这个过程叫光合作用。水还帮助植物运输养分、保持形态。不过不同植物需要的光照和水量不同,水太多可能让根部缺氧,阳光太强也可能损伤叶片。照顾植物要看它的具体需要。"},
25
+ {"prompt":"写一个简短结尾,让两位许久未见的朋友告别后仍期待再次相见。","reasoning":"保留温柔克制的叙事,使用一个具体物件或动作连接下一次见面,不改变人物数量。","answer":"车站的钟响了,两个人终于把聊不完的话暂时收好。阿宁将那本旧书递回去,书页里多了一张写着地址的纸。等桂花开了,你来找我。朋友点点头,登上车后还隔着窗挥手。车子离开的时候,阿宁没有急着转身。她第一次觉得,告别也可以是一种有日期的约定。"}
26
+ ]
calibration/dataset/deployment.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ 本地设备部署与维护说明
2
+ 设备首次安装时,应当先检查电源、网络和存储空间。管理人员需要确认系统时间正确,并为设备设置固定的内部地址。完成配置后,可以使用浏览器访问管理页面,检查模型服务、文档检索服务和音频服务是否启动成功。如果某个服务无法连接,应先查看该服务的状态和日志,不要直接重装整个系统。
3
+ 模型文件加载完成后,可以保留在内存中供多个请求复用。没有用户访问时,系统可以根据内存压力和空闲时间决定是否释放模型。释放之前必须确认当前没有正在执行的任务,也没有尚未发送完毕的音频。下一次请求到来时,应当重新初始化必要的运行资源,并在界面上显示准备状态。
4
+ 维护人员需要区分三类问题。第一类是网络连接中断,通常表现为页面无法打开或者连接超时。第二类是服务进程异常退出,通常能在日志中找到退出原因。第三类是模型推理失败,例如输入长度超过支持范围、文件损坏或者设备内存不足。这些问题需要分别处理,不能用同一种重启策略覆盖所有情况。
5
+ 升级软件时,应保留旧版程序和配置文件,并记录新旧版本的文件校验值。先在测试目录中运行新版本,确认基本功能正常,再切换正式服务。如果新版本出现问题,应当能够恢复到旧版本。恢复操作不能删除用户已经上传的文档、注册的音色或者已有的对话记录。
6
+ 性能测试应使用固定的输入和输出长度,同时记录处理器频率、内存占用和温度。测试前需要确认没有其他大型任务同时运行。对于需要持续服务的设备,还应安排混合负载测试,例如在生成回答时同时进行语音识别和文档检索,以判断这些功能之间是否会相互影响。
7
+ 数据备份应当定期执行,并验证备份文件是否能够恢复。只保存文件而不检查恢复过程,并不能保证数据安全。管理员可以先恢复一份小规模样本,确认文档数量、用户权限和索引状态一致,再决定是否进行完整恢复。涉及真实用户数据的操作必须遵循公司的管理制度。
calibration/dataset/meeting.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ 项目会议纪要
2
+ 本次会议围绕本地办公助手的试运行展开。产品负责人介绍了三个主要场景:整理会议记录、查询内部文档,以及根据客户问题生成回复草稿。参会人员一致认为,系统首先需要准确保留人名、日期和数字,不能为了让表达流畅而补充没有依据的信息。如果材料中存在矛盾,助手应当指出矛盾,并请用户核实。
3
+ 研发组说明,目前已经完成语音输入、文字检索和语音播放的基本连接。下一阶段将集中测试连续对话,特别是用户在助手发言时插话的情况。测试人员需要记录开始讲话、识别文字出现、旧回复停止以及新回复开始播放的时间。对于偶尔出现的延迟,不能只看平均值,还需要保留最慢的样本和当时的设备负载。
4
+ 文档组提出,知识库中的旧版本说明容易造成误导。上传文件时应当记录文档所属部门、发布日期、有效期和访问范围。如果检索结果来自已经废止的制度,回答中必须明确说明,不能直接作为当前规则使用。涉及财务和人事的资料,只能由具有相应权限的用户查询。
5
+ 会议确定了以下安排。小林负责在周三之前整理二十条常见问题,覆盖请假流程、设备报修和项目交付。小周负责检查模型服务的错误日志,并为每一次请求补充统一的编号。陈经理负责联系试用部门,选择五名员工参与为期一周的测试。所有问题都记录在同一份表格中,包含复现步骤、预期结果、实际结果和处理人。
6
+ 对于性能目标,大家同意在相同输入长度和相同设备设置下进行比较。第一次加载模型的耗时与模型已经驻留内存之后的响应时间应当分别报告。任何优化都必须先经过准确性检查,尤其不能通过省略文本、缩短回答或跳过必要的权限判断来获得更漂亮的数据。
7
+ 会议最后讨论了验收方式。试用员工需要分别评价回答是否正确、是否容易理解,以及是否节省了实际工作时间。技术人员则负责检查服务能否稳定运行、发生错误后能否恢复,并确认日志中没有泄露不应该记录的个人信息。下周一将根据这些材料决定是否扩大试用范围。
calibration/dataset/support.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 客户支持问答整理
2
+ 问题:上传资料之后为什么暂时搜索不到内容?
3
+ 回答:上传文件和建立检索索引是两个步骤。文件上传完成后,系统还需要提取文字、切分段落并计算向量。在处理结束之前,新内容可能不会出现在搜索结果中。您可以先查看处理状态。如果显示失败,请检查文件是否有密码、是否损坏,以及是否属于支持的格式。
4
+ 问题:助手回答中引用的内容与我看到的文档不同,应该怎么办?
5
+ 回答:请先核对引用的文档名称和版本。不同日期发布的文件可能包含不同规定。也有可能是原始文件中的表格或图片没有被正确识别。建议打开引用片段,查看其上下文,并将有问题的位置反馈给管理员。在确认之前,不应把存在疑问的内容作为正式依据。
6
+ 问题:是否可以让普通员工使用对话页面,但不允许他们修改工作流?
7
+ 回答:可以通过区分管理入口和使用入口来实现。管理员负责配置工作流、连接模型和维护知识库,普通员工只访问指定的对话应用。不过,页面入口的区分不等于数据权限已经完整实现。还需要确认不同员工能够访问哪些文档,以及检索时是否执行了相应的权限检查。
8
+ 问题:当设备没有连接显示器时,语音和对话功能还能工作吗?
9
+ 回答:如果相关服务按照后台运行方式部署,它们可以在没有显示器的情况下继续工作。依赖桌面会话的组件则需要单独检查。例如画面采集、窗口显示和某些音频设备可能受到桌面登录状态影响。验收时应实际拔掉显示器,并重新连接客户端验证,而不是只根据配置推断。
10
+ 问题:为什么第一次回答比后续回答慢?
11
+ 回答:首次请求可能包含模型加载、内存分配和运行资源准备。后续请求通常能够复用已经准备好的资源,所以等待时间会减少。报告性能时,应分别说明首次加载时间、预热后的首字延迟和持续输出速度。如果每一轮对话都重新加载模型,就需要检查服务是否正确保留了运行实例。
12
+ 问题:系统遇到不确定的问题时应该怎样回复?
13
+ 回答:应明确指出当前资料不足,并说明需要补充什么信息。对于涉及合同、费用和责任归属的问题,最好提供可核对的原文引用,必要时请相应负责人确认。助手可以帮助整理信息,但不能通过编造细节来填补缺失的证据。
calibration/dataset/think_loss_cases.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "office_zh",
4
+ "domain": "中文办公与事实约束",
5
+ "prompt": "请根据以下记录编写一份可直接发给项目组的中文部署说明,覆盖结论、职责、验收、异常处理和限制。不要补造事实。记录:公司部署一台本地推理设备,管理员陈敏负责模型更新,李舟负责知识库整理,周宁负责验收。第一阶段只处理内部制度与会议记录,不允许访问公网。周一整理资料,周二建立知识库,周三执行验收;周三未通过则顺延,不承诺周四上线。检索结果必须带出处;证据不足时明确说明,不猜测。允许更换模型,但需先保存旧版本和配置,故障时恢复。访问分为管理员和普通员工;员工只使用对话页面。会议纪要有草稿与已确认两种状态,草稿不能作为制度依据。验收问题覆盖检索、引用、权限与重启恢复;具体响应时间暂未设定。",
6
+ "reasoning": "我需要把记录中的明确事实转换为一份部署说明,并保留所有尚未确定的事项。人员职责已经指定,不能交换姓名或额外增加负责人。时间表只约定周一至周三的工作,没有给出周四一定上线的承诺,因此应采用条件式表述。第一阶段资料类型有限,不能扩大到客户数据、互联网资料或外部工具。权限只有管理员和普通员工两类,不能自行增加第三类角色或编造审批步骤。检索必须给出处,证据不足时承认不足;草稿会议纪要虽然可以保存,却不能作为有效制度依据。模型可以更新,但是必须保存旧版本和配置,并提供恢复路径。验收范围包括检索、引用、权限与重启恢复,不应自行写入毫秒数、吞吐量或准确率。说明可以分为目的、职责、日程、使用规则、验收与回退几个部分。各段可以解释操作意义,但不能把建议写成已经实施的事实。尤其要区分访问公网的禁止条件与本地知识库的可用范围,也要区分已确认纪要和制度文件的效力。最后应明确上线以周三验收结果为依据,未通过时顺延,响应时间指标仍待确定。\n",
7
+ "answer": "本地推理设备第一阶段部署说明\n\n一、范围与结论\n本阶段使用一台本地推理设备处理公司内部制度与会议记录,不访问公网。系统的回答应以已经整理并允许使用的资料为依据。当前安排包括资料整理、知识库建立和验收,上线时间以验收结果为准,不承诺周四上线。\n\n二、人员职责\n陈敏负责模型更新,更新前保存旧版本和相关配置。李舟负责知识库资料整理,区分制度文件、已确认会议纪要和草稿会议纪要。周宁负责验收,检查检索、引用、权限以及重启恢复情况。各项问题应记录对应现象和检查结果,避免只凭一次成功回答判断整个流程已经通过。\n\n三、实施日程\n周一整理资料,检查资料类别与确认状态;周二建立知识库;周三执行验收。如果周三验收未通过,后续安排顺延。不能把预定验收日期等同于实际通过日期,也不能向使用人员保证尚未确认的上线时间。\n\n四、访问与回答规则\n系统区分管理员和普通员工。普通员工只使用对话页面,后台管理由管理员处理。检索结果必须附带出处,便于使用人员核对原文。遇到证据不足、资料冲突或无法确定的问题,应明确说明已有证据的范围,不通过猜测补齐答案。草稿会议纪要不能作为制度依据;引用会议内容时,应先确认其状态,不能将未确认内容当作正式规定。\n\n五、验收内容\n验收应覆盖资料能否被正确检索、引用能否对应原文、普通员工能否按规定使用对话页面,以及设备重启后能否恢复预期功能。响应时间指标目前尚未设定,应如实记录实际情况,不自行认定已有具体时限。单个问题回答正确不能替代对其他验收项目的检查。发现问题时,应保留输入、输出及相关出处,方便区分资料问题与系统问题。\n\n六、异常与恢复\n更换模型前保存旧版本和配置,发生故障时恢复旧版本。恢复后仍需核对检索、引用、权限与重启恢复功能,不能仅凭进程启动就认定恢复完成。模型更新、资料整理和业务验收是不同环节,应按各自职责跟进。对于尚未设定的响应时间和未确认的上线日期,本说明保持未定状态,不补造承诺。"
8
+ },
9
+ {
10
+ "id": "math_probability",
11
+ "domain": "数学与多步推理",
12
+ "prompt": "袋中有5个红球、4个蓝球和3个绿球,球除颜色外没有区别。等概率不放回抽取4个球。求恰好抽到两种颜色的概率,以及在恰好抽到两种颜色的条件下至少有一个红球的概率。请给出组合计数、避免重复的方法、约分结果,并解释为什么不是把各颜色独立抽取概率直接相乘��",
13
+ "reasoning": "总数是十二个球,抽四个球且不放回,所以等可能样本空间可以用十二选四计数,总计四百九十五种。恰好两种颜色可以按照红蓝、红绿、蓝绿三个互斥事件分别计算。每组先从这两色的全部球中抽四个,再减去仅有单色的情况。红蓝共有九个球,九选四是一百二十六,减去五红选四的五种和四蓝选四的一种,得到一百二十。红绿共有八个球,八选四是七十,减去五红选四的五种,三个绿球不足以单独抽四个,因此得到六十五。蓝绿共有七个球,七选四是三十五,减去四蓝选四的一种,得到三十四。这三组相加是二百一十九,除以四百九十五,可以同时除以三,得到一百六十五分之七十三,即73/165。条件事件至少有一个红球,只包含红蓝和红绿两组,一共一百八十五种。条件概率分母应使用恰好两色的二百一十九,而不是全部四百九十五。185与219的最大公约数是1,所以185/219已经最简。为避免分数语言颠倒,最后直接用数学符号表示。也可以做补集检查:恰好两色但没有红球只有蓝绿三十四种,因此一减去34/219等于185/219。抽样不放回会改变后续的球数和颜色比例,不满足独立条件。\n",
14
+ "answer": "设A表示抽到的4个球恰好有两种颜色,R表示至少抽到1个红球。\n\n一、等可能样本空间\n袋中共有12个球。将每个实体球作为一个可区分的抽样对象,所有4球组合等可能,因此总组合数为C(12,4)=495。颜色相同不影响使用组合计数,因为最后只按颜色条件筛选这些等可能组合。\n\n二、计算恰好两种颜色\n把A分成红蓝、红绿、蓝绿三个互斥情况。各情况要求两种颜色都出现,而且不能出现第三种颜色。先选取该颜色对所包含的球,再扣除只有一种颜色的组合,可以避免把单色情况误算进去。\n\n红蓝:C(9,4)-C(5,4)-C(4,4)=126-5-1=120。\n红绿:C(8,4)-C(5,4)-C(3,4)=70-5-0=65。\n蓝绿:C(7,4)-C(4,4)-C(3,4)=35-1-0=34。这里C(3,4)=0,因为3个球无法组成4球组合。\n\n上述三个事件没有交集:一个恰好两色的组合具有唯一的颜色对。因此不需要再做交集修正,直接相加得到120+65+34=219。于是P(A)=219/495=73/165,约为0.4424。\n\n三、条件概率\n在已经知道恰好抽到两种颜色的条件下,样本空间应缩小为这219个符合条件的组合。至少有一个红球,意味着颜色对只能是红蓝或红绿,符合条件的组合数为120+65=185。因此P(R|A)=185/219,约为0.8447。这个分数已经不能继续约分。\n\n可以用补集核对结果:在A成立时,没有红球的情况只有蓝绿,对应34个组合。因此P(R|A)=1-34/219=185/219,与直接计数相同。\n\n四、为什么不能直接相乘\n不放回抽样不是独立抽样。每抽走一个球,袋中总球数会减少,相关颜色的球数也可能减少,后续抽取的概率随前面的结果变化。如果按抽取顺序计算,需要使用条件概率连乘,并把符合要求的颜色排列全部计入;不能把始终不变的初始颜色比例直接相乘。组合方法一次性计算无序抽样结果,避免了枚举所有排列,但仍然正确体现不放回条件。\n\n答案:恰好两种颜色的概率为73/165;在此条件下至少有一个红球的概率为185/219。"
15
+ },
16
+ {
17
+ "id": "code_python",
18
+ "domain": "代码与边界条件",
19
+ "prompt": "用Python编写一个函数merge_intervals,输入为整数闭区间的列表,输出合并重叠区间后的列表。不得修改输入,负数合法,空列表返回空列表;端点相等算重叠,例如[1,3]与[3,5]合并,但[1,3]与[4,5]不合并。每个区间必须恰有两个整数且起点不大于终点,布尔值不当作整数,非法数据抛出ValueError。请给出实现、边界测试,并解释排序与时间空间复杂度。",
20
+ "reasoning": "需要先确定输入验证和合并语义。Python中bool是int的子类,所以isinstance(value,int)会误收True或False,可以使用type(value) is int进行严格判断。输入要求列表,我会检查外层是list,并允许每个区间使用list或tuple,长度必须为2。端点必须是严格整数,且start不能大于end。先验证全部区间并复制到新的二元组列表,再排序,因此即使遇到非法输入,也不会改动原来的列表或内部区间。排序以起点为第一关键字、终点为第二关键字,默认元组排序即可满足。合并时维护输出列表最后一个区间。当前起点小于等于最后区间终点就重叠,应把终点更新为两者最大值;否则创建新输出区间。输入已经排序后,尚未处理区间的起点不会小于当前起点,所以只需与输出中最后一个区间比较。闭区间端点相同应合并,但相差1并不代表实数区间重叠,不能用end+1作为判断条件。负数和单点区间不需要特殊分支。复杂��方面,验证与复制是线性,排序为O(n log n),扫描为O(n),额外保存副本和输出最多O(n)。测试应包含空输入、无序重叠、共享端点、不相交相邻整数、包含关系、负数、单点以及非法布尔值和反向区间。还需要保存一份输入快照,验证调用后没有改变原始嵌套列表。\n",
21
+ "answer": "下面的实现会先验证并复制数据,再排序和合并,不修改输入。\n\n```python\ndef merge_intervals(intervals):\n if not isinstance(intervals, list):\n raise ValueError('intervals must be a list')\n\n copied = []\n for interval in intervals:\n if not isinstance(interval, (list, tuple)) or len(interval) != 2:\n raise ValueError('each interval must have two endpoints')\n start, end = interval\n if type(start) is not int or type(end) is not int:\n raise ValueError('endpoints must be integers, excluding bool')\n if start > end:\n raise ValueError('start must not exceed end')\n copied.append((start, end))\n\n copied.sort()\n merged = []\n for start, end in copied:\n if not merged or start > merged[-1][1]:\n merged.append([start, end])\n else:\n merged[-1][1] = max(merged[-1][1], end)\n return merged\n```\n\n边界测试:\n\n```python\nassert merge_intervals([]) == []\nassert merge_intervals([[3, 5], [1, 3]]) == [[1, 5]]\nassert merge_intervals([[1, 3], [4, 5]]) == [[1, 3], [4, 5]]\nassert merge_intervals([[1, 10], [2, 3]]) == [[1, 10]]\nassert merge_intervals([[-4, -1], [-2, 2]]) == [[-4, 2]]\nassert merge_intervals([[2, 2], [2, 4]]) == [[2, 4]]\n\nsource = [[5, 8], [1, 3], [3, 6]]\nsnapshot = [interval[:] for interval in source]\nassert merge_intervals(source) == [[1, 8]]\nassert source == snapshot\n\nfor bad in ([[True, 2]], [[1, False]], [[3, 1]],\n [[1, 2, 3]], [[1.0, 2]], [None]):\n try:\n merge_intervals(bad)\n except ValueError:\n pass\n else:\n raise AssertionError('invalid input was accepted')\n```\n\n排序使区间按起点递增排列。扫描时,已经输出的区间彼此不重叠;当前区间只可能与最后一个输出区间发生新的合并。如果当前起点大于最后终点,两者不相交,可以直接追加。否则它们存在公共点,合并后的终点取较大值。\n\n判断使用start <= end的重叠语义,而不是把终点加一,因此[1,3]与[3,5]会合并,[1,3]与[4,5]保持分离。每个输出区间都是新建列表,后续修改返回结果也不会改变原输入。\n\n设输入有n个区间。验证和复制耗时O(n),排序耗时O(n log n),扫描耗时O(n),总体时间复杂度为O(n log n)。副本、排序辅助空间和输出都至多为O(n),额外空间复杂度为O(n)。"
22
+ }
23
+ ]
deployment/notices/BUILD-AND-LICENSES.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 构建与组件说明
2
+
3
+ 本项目是面向 RK3588/RK3588S 的 C++ Ling3RKNN 推理引擎,不包含 llama.cpp、RKLLM、Python 推理服务或远端模型调用。
4
+
5
+ 构建时请从官方 [rknn-toolkit2](https://github.com/airockchip/rknn-toolkit2) 和 [rknpu2](https://github.com/airockchip/rknpu2) 获取 `rknn_api.h` 与 `librknnrt.so`。官方 `rknpu2` checkout 中通常位于 `runtime/Linux/librknn_api/include` 和 `runtime/Linux/librknn_api/aarch64`;CMake 也支持整理后的 `include/` 与 `lib/` 布局。请遵守 Rockchip 的许可、版本和再分发限制。经许可的便携部署包可以包含匹配版本的 runtime;各组件的许可证和来源见同目录 NOTICE 文件。
6
+
7
+ 本项目代码和 C++ 推理引擎采用 [Apache-2.0](../../LICENSE) 许可;本项目发布的转换/打包模型资产标注为 [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) 非商业许可,不改变上游基模型的权利或许可边界。完整上游模型和原始权重请从 [inclusionAI/Ling-3.0-tiny](https://huggingface.co/inclusionAI/Ling-3.0-tiny) 获取。
8
+
9
+ nlohmann JSON 3.10.5 使用 MIT 许可,完整声明保留在随源码提供的 `third_party/nlohmann/nlohmann/json.hpp` 中。
10
+
11
+ 源码和构建入口:`CMakeLists.txt`、`src/portable_main.cpp`、`tools/portable_launcher.c` 和 `tools/build_portable.py`。使用 CMake Release 编译 `mindnano-infer`,将 `RKNN_ROOT` 指向本地 RKNPU2 目录。便携包发布前应重新生成二进制、MANIFEST、NOTICE 和 SHA256SUMS,并保留所有第三方条款。
deployment/notices/GCC.txt ADDED
@@ -0,0 +1,1641 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This is the Debian GNU/Linux prepackaged version of the GNU compiler
2
+ collection, containing Ada, C, C++, D, Fortran 95, Go, Objective-C,
3
+ Objective-C++, and Modula-2 compilers, documentation, and support
4
+ libraries. In addition, Debian provides the gm2 compiler, either in
5
+ the same source package, or built from a separate same source package.
6
+ Packaging is done by the Debian GCC Maintainers
7
+ <debian-gcc@lists.debian.org>, with sources obtained from:
8
+
9
+ ftp://gcc.gnu.org/pub/gcc/releases/ (for full releases)
10
+ https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git (for prereleases)
11
+ ftp://sourceware.org/pub/newlib/ (for newlib)
12
+
13
+ The current gcc-16 source package is taken from the git gcc-16-branch.
14
+
15
+ Changes: See changelog.Debian.gz
16
+
17
+ Debian splits the GNU Compiler Collection into packages for each language,
18
+ library, and documentation as follows:
19
+
20
+ Language Compiler package Library package Documentation
21
+ ---------------------------------------------------------------------------
22
+ Ada gnat-16 libgnat-16 gnat-16-doc
23
+ Algol-68 ga68-16 libga68-1 libga68-16-doc
24
+ C gcc-16 gcc-16-doc
25
+ C++ g++-16 libstdc++6 libstdc++6-16-doc
26
+ COBOL gcobol-16 libgcobol1
27
+ D gdc-16 libgphobos6
28
+ Fortran 95 gfortran-16 libgfortran5 gfortran-16-doc
29
+ Go gccgo-16 libgo0
30
+ Objective C gobjc-16 libobjc4
31
+ Objective C++ gobjc++-16
32
+ Modula-2 gm2-16 libgm2 libgm2-16-doc
33
+ Rust gccrs-16
34
+
35
+ For some language run-time libraries, Debian provides source files,
36
+ development files, debugging symbols and libraries containing position-
37
+ independent code in separate packages:
38
+
39
+ Language Sources Development Debugging Position-Independent
40
+ ------------------------------------------------------------------------------
41
+ C++ libstdc++6-16-dbg libstdc++6-16-pic
42
+ D libphobos-16-dev
43
+
44
+ Additional packages include:
45
+
46
+ All languages:
47
+ libgcc1, libgcc2, libgcc4 GCC intrinsics (platform-dependent)
48
+ gcc-16-base Base files common to all compilers
49
+ gcc-16-soft-float Software floating point (ARM only)
50
+ gcc-16-source The sources with patches
51
+
52
+ Ada:
53
+ libgnat-util16-dev, libgnat-util16 GNAT version library
54
+
55
+ C:
56
+ cpp-16, cpp-16-doc GNU C Preprocessor
57
+ libssp0-dev, libssp0 GCC stack smashing protection library
58
+ libquadmath0 Math routines for the __float128 type
59
+ fixincludes Fix non-ANSI header files
60
+
61
+ C, C++ and Fortran 95:
62
+ libgomp1-dev, libgomp1 GCC OpenMP (GOMP) support library
63
+ libitm1-dev, libitm1 GNU Transactional Memory Library
64
+
65
+ Biarch support: On some 64-bit platforms which can also run 32-bit code,
66
+ Debian provides additional packages containing 32-bit versions of some
67
+ libraries. These packages have names beginning with 'lib32' instead of
68
+ 'lib', for example lib32stdc++6. Similarly, on some 32-bit platforms which
69
+ can also run 64-bit code, Debian provides additional packages with names
70
+ beginning with 'lib64' instead of 'lib'. These packages contain 64-bit
71
+ versions of the libraries. (At this time, not all platforms and not all
72
+ libraries support biarch.) The license terms for these lib32 or lib64
73
+ packages are identical to the ones for the lib packages.
74
+
75
+
76
+ COPYRIGHT STATEMENTS AND LICENSING TERMS
77
+
78
+
79
+ GCC is Copyright (C) 1986-2025 Free Software Foundation, Inc.
80
+
81
+ GCC is free software; you can redistribute it and/or modify it under
82
+ the terms of the GNU General Public License as published by the Free
83
+ Software Foundation; either version 3, or (at your option) any later
84
+ version.
85
+
86
+ GCC is distributed in the hope that it will be useful, but WITHOUT ANY
87
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
88
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
89
+ for more details.
90
+
91
+ Files that have exception clauses are licensed under the terms of the
92
+ GNU General Public License; either version 3, or (at your option) any
93
+ later version.
94
+
95
+ On Debian GNU/Linux systems, the complete text of the GNU General
96
+ Public License is in `/usr/share/common-licenses/GPL', version 3 of this
97
+ license in `/usr/share/common-licenses/GPL-3'.
98
+
99
+ The following runtime libraries are licensed under the terms of the
100
+ GNU General Public License (v3 or later) with version 3.1 of the GCC
101
+ Runtime Library Exception (included in this file):
102
+
103
+ - libgcc (libgcc/, gcc/libgcc2.[ch], gcc/unwind*, gcc/gthr*,
104
+ gcc/coretypes.h, gcc/crtstuff.c, gcc/defaults.h, gcc/dwarf2.h,
105
+ gcc/emults.c, gcc/gbl-ctors.h, gcc/gcov-io.h, gcc/libgcov.c,
106
+ gcc/tsystem.h, gcc/typeclass.h).
107
+ - libatomic
108
+ - libdecnumber
109
+ - libgm2
110
+ - libgomp
111
+ - libgrust
112
+ - libitm
113
+ - libssp
114
+ - libstdc++-v3
115
+ - libobjc
116
+ - libgfortran
117
+ - The libgnat-16 Ada support library and libgnat-util16 library.
118
+ - Various config files in gcc/config/ used in runtime libraries.
119
+ - libvtv
120
+
121
+ The libbacktrace library is licensed under the following terms:
122
+
123
+ Redistribution and use in source and binary forms, with or without
124
+ modification, are permitted provided that the following conditions are
125
+ met:
126
+
127
+ (1) Redistributions of source code must retain the above copyright
128
+ notice, this list of conditions and the following disclaimer.
129
+
130
+ (2) Redistributions in binary form must reproduce the above copyright
131
+ notice, this list of conditions and the following disclaimer in
132
+ the documentation and/or other materials provided with the
133
+ distribution.
134
+
135
+ (3) The name of the author may not be used to
136
+ endorse or promote products derived from this software without
137
+ specific prior written permission.
138
+
139
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
140
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
141
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
142
+ DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
143
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
144
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
145
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
146
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
147
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
148
+ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
149
+ POSSIBILITY OF SUCH DAMAGE.
150
+
151
+
152
+ The libsanitizer libraries (libasan, liblsan, libtsan, libubsan) are
153
+ licensed under the following terms:
154
+
155
+ Copyright (c) 2009-2019 by the LLVM contributors.
156
+
157
+ All rights reserved.
158
+
159
+ Developed by:
160
+
161
+ LLVM Team
162
+
163
+ University of Illinois at Urbana-Champaign
164
+
165
+ http://llvm.org
166
+
167
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
168
+ this software and associated documentation files (the "Software"), to deal with
169
+ the Software without restriction, including without limitation the rights to
170
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
171
+ of the Software, and to permit persons to whom the Software is furnished to do
172
+ so, subject to the following conditions:
173
+
174
+ * Redistributions of source code must retain the above copyright notice,
175
+ this list of conditions and the following disclaimers.
176
+
177
+ * Redistributions in binary form must reproduce the above copyright notice,
178
+ this list of conditions and the following disclaimers in the
179
+ documentation and/or other materials provided with the distribution.
180
+
181
+ * Neither the names of the LLVM Team, University of Illinois at
182
+ Urbana-Champaign, nor the names of its contributors may be used to
183
+ endorse or promote products derived from this Software without specific
184
+ prior written permission.
185
+
186
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
187
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
188
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
189
+ CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
190
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
191
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
192
+ SOFTWARE.
193
+
194
+ Permission is hereby granted, free of charge, to any person obtaining a copy
195
+ of this software and associated documentation files (the "Software"), to deal
196
+ in the Software without restriction, including without limitation the rights
197
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
198
+ copies of the Software, and to permit persons to whom the Software is
199
+ furnished to do so, subject to the following conditions:
200
+
201
+ The above copyright notice and this permission notice shall be included in
202
+ all copies or substantial portions of the Software.
203
+
204
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
205
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
206
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
207
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
208
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
209
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
210
+ THE SOFTWARE.
211
+
212
+
213
+ The libffi library is licensed under the following terms:
214
+
215
+ libffi - Copyright (c) 1996-2011 Red Hat, Inc.
216
+
217
+ Permission is hereby granted, free of charge, to any person obtaining
218
+ a copy of this software and associated documentation files (the
219
+ ``Software''), to deal in the Software without restriction, including
220
+ without limitation the rights to use, copy, modify, merge, publish,
221
+ distribute, sublicense, and/or sell copies of the Software, and to
222
+ permit persons to whom the Software is furnished to do so, subject to
223
+ the following conditions:
224
+
225
+ The above copyright notice and this permission notice shall be included
226
+ in all copies or substantial portions of the Software.
227
+
228
+ THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
229
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
230
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
231
+ IN NO EVENT SHALL CYGNUS SOLUTIONS BE LIABLE FOR ANY CLAIM, DAMAGES OR
232
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
233
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
234
+ OTHER DEALINGS IN THE SOFTWARE.
235
+
236
+
237
+ The documentation is licensed under the GNU Free Documentation License (v1.2).
238
+ On Debian GNU/Linux systems, the complete text of this license is in
239
+ `/usr/share/common-licenses/GFDL-1.2'.
240
+
241
+
242
+ GCC RUNTIME LIBRARY EXCEPTION
243
+
244
+ Version 3.1, 31 March 2009
245
+
246
+ Copyright (C) 2009 Free Software Foundation, Inc. <http://fsf.org/>
247
+
248
+ Everyone is permitted to copy and distribute verbatim copies of this
249
+ license document, but changing it is not allowed.
250
+
251
+ This GCC Runtime Library Exception ("Exception") is an additional
252
+ permission under section 7 of the GNU General Public License, version
253
+ 3 ("GPLv3"). It applies to a given file (the "Runtime Library") that
254
+ bears a notice placed by the copyright holder of the file stating that
255
+ the file is governed by GPLv3 along with this Exception.
256
+
257
+ When you use GCC to compile a program, GCC may combine portions of
258
+ certain GCC header files and runtime libraries with the compiled
259
+ program. The purpose of this Exception is to allow compilation of
260
+ non-GPL (including proprietary) programs to use, in this way, the
261
+ header files and runtime libraries covered by this Exception.
262
+
263
+ 0. Definitions.
264
+
265
+ A file is an "Independent Module" if it either requires the Runtime
266
+ Library for execution after a Compilation Process, or makes use of an
267
+ interface provided by the Runtime Library, but is not otherwise based
268
+ on the Runtime Library.
269
+
270
+ "GCC" means a version of the GNU Compiler Collection, with or without
271
+ modifications, governed by version 3 (or a specified later version) of
272
+ the GNU General Public License (GPL) with the option of using any
273
+ subsequent versions published by the FSF.
274
+
275
+ "GPL-compatible Software" is software whose conditions of propagation,
276
+ modification and use would permit combination with GCC in accord with
277
+ the license of GCC.
278
+
279
+ "Target Code" refers to output from any compiler for a real or virtual
280
+ target processor architecture, in executable form or suitable for
281
+ input to an assembler, loader, linker and/or execution
282
+ phase. Notwithstanding that, Target Code does not include data in any
283
+ format that is used as a compiler intermediate representation, or used
284
+ for producing a compiler intermediate representation.
285
+
286
+ The "Compilation Process" transforms code entirely represented in
287
+ non-intermediate languages designed for human-written code, and/or in
288
+ Java Virtual Machine byte code, into Target Code. Thus, for example,
289
+ use of source code generators and preprocessors need not be considered
290
+ part of the Compilation Process, since the Compilation Process can be
291
+ understood as starting with the output of the generators or
292
+ preprocessors.
293
+
294
+ A Compilation Process is "Eligible" if it is done using GCC, alone or
295
+ with other GPL-compatible software, or if it is done without using any
296
+ work based on GCC. For example, using non-GPL-compatible Software to
297
+ optimize any GCC intermediate representations would not qualify as an
298
+ Eligible Compilation Process.
299
+
300
+ 1. Grant of Additional Permission.
301
+
302
+ You have permission to propagate a work of Target Code formed by
303
+ combining the Runtime Library with Independent Modules, even if such
304
+ propagation would otherwise violate the terms of GPLv3, provided that
305
+ all Target Code was generated by Eligible Compilation Processes. You
306
+ may then convey such a combination under terms of your choice,
307
+ consistent with the licensing of the Independent Modules.
308
+
309
+ 2. No Weakening of GCC Copyleft.
310
+
311
+ The availability of this Exception does not imply any general
312
+ presumption that third-party software is unaffected by the copyleft
313
+ requirements of the license of GCC.
314
+
315
+
316
+ libquadmath/
317
+ Copyright (C) 1992-2018 Free Software Foundation, Inc.
318
+
319
+ Written by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
320
+ Written by Tobias Burnus <burnus@net-b.de>
321
+ Contributions by Ulrich Drepper <drepper@gnu.ai.mit.edu>
322
+ Conversion to long double by Jakub Jelinek <jj@ultra.linux.cz>
323
+
324
+ This file is part of the libquadmath library.
325
+ Libquadmath is free software; you can redistribute it and/or
326
+ modify it under the terms of the GNU Library General Public
327
+ License as published by the Free Software Foundation; either
328
+ version 2 of the License, or (at your option) any later version.
329
+
330
+ Libiberty is distributed in the hope that it will be useful,
331
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
332
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
333
+ Library General Public License for more details.
334
+
335
+ libquadmath/math:
336
+
337
+ atanq.c, expm1q.c, j0q.c, j1q.c, log1pq.c, logq.c:
338
+ Copyright 2001 by Stephen L. Moshier <moshier@na-net.ornl.gov>
339
+
340
+ This library is free software; you can redistribute it and/or
341
+ modify it under the terms of the GNU Lesser General Public
342
+ License as published by the Free Software Foundation; either
343
+ version 2.1 of the License, or (at your option) any later version.
344
+
345
+ This library is distributed in the hope that it will be useful,
346
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
347
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
348
+ Lesser General Public License for more details.
349
+
350
+ coshq.c, erfq.c, jnq.c, lgammaq.c, powq.c, roundq.c:
351
+ Changes for 128-bit __float128 are
352
+ Copyright (C) 2001 Stephen L. Moshier <moshier@na-net.ornl.gov>
353
+ and are incorporated herein by permission of the author. The author
354
+ reserves the right to distribute this material elsewhere under different
355
+ copying permissions. These modifications are distributed here under
356
+ the following terms:
357
+
358
+ This library is free software; you can redistribute it and/or
359
+ modify it under the terms of the GNU Lesser General Public
360
+ License as published by the Free Software Foundation; either
361
+ version 2.1 of the License, or (at your option) any later version.
362
+
363
+ This library is distributed in the hope that it will be useful,
364
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
365
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
366
+ Lesser General Public License for more details.
367
+
368
+ libquadmath/math/
369
+
370
+ cosq_kernel.c, expq.c, sincos_table.c, sincosq.c, sincosq_kernel.c,
371
+ sinq_kernel.c, truncq.c:
372
+ Copyright (C) 1997, 1999 Free Software Foundation, Inc.
373
+
374
+ The GNU C Library is free software; you can redistribute it and/or
375
+ modify it under the terms of the GNU Lesser General Public
376
+ License as published by the Free Software Foundation; either
377
+ version 2.1 of the License, or (at your option) any later version.
378
+
379
+ The GNU C Library is distributed in the hope that it will be useful,
380
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
381
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
382
+ Lesser General Public License for more details.
383
+
384
+ libquadmath/math/isinfq.c:
385
+ Written by J.T. Conklin <jtc@netbsd.org>.
386
+ Change for long double by Jakub Jelinek <jj@ultra.linux.cz>
387
+ Public domain.
388
+
389
+ libquadmath/math/
390
+ llroundq.c, lroundq.c, tgammaq.c:
391
+
392
+ Copyright (C) 1997, 1999, 2002, 2004 Free Software Foundation, Inc.
393
+ This file is part of the GNU C Library.
394
+ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997 and
395
+ Jakub Jelinek <jj@ultra.linux.cz>, 1999.
396
+
397
+ The GNU C Library is free software; you can redistribute it and/or
398
+ modify it under the terms of the GNU Lesser General Public
399
+ License as published by the Free Software Foundation; either
400
+ version 2.1 of the License, or (at your option) any later version.
401
+
402
+ The GNU C Library is distributed in the hope that it will be useful,
403
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
404
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
405
+ Lesser General Public License for more details.
406
+
407
+ libquadmath/math/log10q.c:
408
+ Cephes Math Library Release 2.2: January, 1991
409
+ Copyright 1984, 1991 by Stephen L. Moshier
410
+ Adapted for glibc November, 2001
411
+
412
+ This library is free software; you can redistribute it and/or
413
+ modify it under the terms of the GNU Lesser General Public
414
+ License as published by the Free Software Foundation; either
415
+ version 2.1 of the License, or (at your option) any later version.
416
+
417
+ This library is distributed in the hope that it will be useful,
418
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
419
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
420
+ Lesser General Public License for more details.
421
+
422
+ libquadmath/math/
423
+ acoshq.c, acosq.c, asinhq.c, asinq.c, atan2q.c, atanhq.c, ceilq.c,
424
+ copysignq.c, coshq.c, cosq.c, erfq.c, fabsq.c, finiteq.c, floorq.c,
425
+ fmodq.c, frexpq.c, hypotq.c, ilogbq.c, isnanq.c, jnq.c, ldexpq.c,
426
+ logbq.c, modfq.c, nearbyintq.c, nextafterq.c, powq.c, remainderq.c,
427
+ rem_pio2q.c, rintq.c, scalblnq.c, scalbnq.c, sinhq.c, sinq.c,
428
+ tanhq.c, tanq.c, tanq_kernel.c:
429
+
430
+ Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
431
+ .
432
+ Developed at SunPro, a Sun Microsystems, Inc. business.
433
+ Permission to use, copy, modify, and distribute this
434
+ software is freely granted, provided that this notice
435
+ is preserved.
436
+
437
+ libquadmath/math/
438
+ acosq.c, asinq.c, coshq.c, erfq.c, jnq.c, powq.c, sinhq.c, tanq_kernel.c:
439
+
440
+ In addition to the Sun Microsystems copyright:
441
+
442
+ Long double expansions are
443
+ Copyright (C) 2001 Stephen L. Moshier <moshier@na-net.ornl.gov>
444
+ and are incorporated herein by permission of the author. The author
445
+ reserves the right to distribute this material elsewhere under different
446
+ copying permissions. These modifications are distributed here under
447
+ the LGPL 2.1 or later.
448
+
449
+
450
+ gcc/go/gofrontend, libgo:
451
+
452
+ Copyright (c) 2009-2023 The Go Authors. All rights reserved.
453
+
454
+ Redistribution and use in source and binary forms, with or without
455
+ modification, are permitted provided that the following conditions are
456
+ met:
457
+
458
+ * Redistributions of source code must retain the above copyright
459
+ notice, this list of conditions and the following disclaimer.
460
+ * Redistributions in binary form must reproduce the above
461
+ copyright notice, this list of conditions and the following disclaimer
462
+ in the documentation and/or other materials provided with the
463
+ distribution.
464
+ * Neither the name of Google Inc. nor the names of its
465
+ contributors may be used to endorse or promote products derived from
466
+ this software without specific prior written permission.
467
+
468
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
469
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
470
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
471
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
472
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
473
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
474
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
475
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
476
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
477
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
478
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
479
+
480
+
481
+ D:
482
+ gdc-16 GNU D Compiler
483
+ libphobos-16-dev D standard runtime library
484
+
485
+ The D source package is made up of the following components.
486
+
487
+ The D front-end for GCC:
488
+ - d/*
489
+
490
+ Copyright (C) 2004-2007 David Friedman
491
+ Modified by Vincenzo Ampolo, Michael Parrot, Iain Buclaw, (C) 2009, 2010
492
+ Copyright (C) 2015-2024 Free Software Foundation, Inc.
493
+
494
+ This program is free software; you can redistribute it and/or modify
495
+ it under the terms of the GNU General Public License as published by
496
+ the Free Software Foundation; either version 3 of the License, or
497
+ (at your option) any later version.
498
+
499
+ On Debian GNU/Linux systems, the complete text of the GNU General
500
+ Public License is in `/usr/share/common-licenses/GPL', version 2 of this
501
+ license in `/usr/share/common-licenses/GPL-3'.
502
+
503
+ The DMD Compiler implementation of the D programming language:
504
+ - d/dmd/*
505
+
506
+ Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved
507
+ All Rights Reserved
508
+ written by Walter Bright
509
+ http://www.digitalmars.com
510
+ License for redistribution is by either the Artistic License or
511
+ the GNU General Public License (v1).
512
+
513
+ On Debian GNU/Linux systems, the complete text of the GNU General
514
+ Public License is in `/usr/share/common-licenses/GPL', the Artistic
515
+ license in `/usr/share/common-licenses/Artistic'.
516
+
517
+
518
+ The Zlib data compression library:
519
+ - zlib/*
520
+
521
+ (C) 1995-2016 Jean-loup Gailly and Mark Adler
522
+
523
+ This software is provided 'as-is', without any express or implied
524
+ warranty. In no event will the authors be held liable for any damages
525
+ arising from the use of this software.
526
+
527
+ Permission is granted to anyone to use this software for any purpose,
528
+ including commercial applications, and to alter it and redistribute it
529
+ freely, subject to the following restrictions:
530
+
531
+ 1. The origin of this software must not be misrepresented; you must not
532
+ claim that you wrote the original software. If you use this software
533
+ in a product, an acknowledgment in the product documentation would be
534
+ appreciated but is not required.
535
+ 2. Altered source versions must be plainly marked as such, and must not be
536
+ misrepresented as being the original software.
537
+ 3. This notice may not be removed or altered from any source distribution.
538
+
539
+
540
+ The Phobos standard runtime library:
541
+ - libphobos/*
542
+
543
+ Unless otherwise marked within the file, each file in the source
544
+ is under the following licenses:
545
+
546
+ Copyright (C) 2004-2022 by Digital Mars, www.digitalmars.com
547
+ Written by Walter Bright
548
+ Copyright (C) 2018-2023, The D Language Foundation
549
+
550
+ This software is provided 'as-is', without any express or implied
551
+ warranty. In no event will the authors be held liable for any damages
552
+ arising from the use of this software.
553
+
554
+ Permission is granted to anyone to use this software for any purpose,
555
+ including commercial applications, and to alter it and redistribute it
556
+ freely, in both source and binary form, subject to the following
557
+ restrictions:
558
+
559
+ o The origin of this software must not be misrepresented; you must not
560
+ claim that you wrote the original software. If you use this software
561
+ in a product, an acknowledgment in the product documentation would be
562
+ appreciated but is not required.
563
+ o Altered source versions must be plainly marked as such, and must not
564
+ be misrepresented as being the original software.
565
+ o This notice may not be removed or altered from any source
566
+ distribution.
567
+
568
+ By plainly marking modifications, something along the lines of adding to each
569
+ file that has been changed a "Modified by Foo Bar" line
570
+ underneath the "Written by" line would be adequate.
571
+
572
+ gcc/m2:
573
+ gcc/m2/gm2-libiberty:
574
+ gcc/m2/mc-boot/:
575
+ gcc/m2/mc-boot-ch/:
576
+ Copyright (C) 2001-2019 Free Software Foundation, Inc.
577
+ Contributed by Gaius Mulley <gaius@glam.ac.uk>.
578
+
579
+ This file is part of GNU Modula-2.
580
+
581
+ GNU Modula-2 is free software; you can redistribute it and/or modify
582
+ it under the terms of the GNU General Public License as published by
583
+ the Free Software Foundation; either version 3, or (at your option)
584
+ any later version.
585
+
586
+ GNU Modula-2 is distributed in the hope that it will be useful, but
587
+ WITHOUT ANY WARRANTY; without even the implied warranty of
588
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
589
+ General Public License for more details.
590
+
591
+ gcc/m2/**/*.texi:
592
+ Copyright (C) 2000-2024 Free Software Foundation, Inc.
593
+
594
+ Permission is granted to copy, distribute and/or modify this document
595
+ under the terms of the GNU Free Documentation License, Version 1.3 or
596
+ any later version published by the Free Software Foundation; with no
597
+ Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
598
+
599
+ gcc/m2/gm2-coroutines:
600
+ gcc/m2/gm2-libs:
601
+ gcc/m2/gm2-libs-min:
602
+ gcc/m2/gm2-libs-pim:
603
+ gcc/m2/gm2-libs-ch:
604
+ Copyright (C) 2002-2024 Free Software Foundation, Inc.
605
+
606
+ This library is free software; you can redistribute it and/or
607
+ modify it under the terms of the GNU Lesser General Public
608
+ License as published by the Free Software Foundation; either
609
+ version 2.1 of the License, or (at your option) any later version.
610
+
611
+ This library is distributed in the hope that it will be useful,
612
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
613
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
614
+ Lesser General Public License for more details.
615
+
616
+ Under Section 7 of GPL version 3, you are granted additional
617
+ permissions described in the GCC Runtime Library Exception, version
618
+ 3.1, as published by the Free Software Foundation.
619
+
620
+ gcc/m2/gm2-libs-iso/:
621
+ This has a mix of licenses, most as GPL-3+ plus GCC Runtime Library
622
+ Exception, version 3.1.
623
+
624
+ gcc/m2/gm2-libs-iso/*.def:
625
+ Library module defined by the International Standard
626
+ Information technology - programming languages
627
+ BS ISO/IEC 10514-1:1996E Part 1: Modula-2, Base Language.
628
+
629
+ Copyright ISO/IEC (International Organization for Standardization
630
+ and International Electrotechnical Commission) 1996, 1997, 1998,
631
+ 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
632
+
633
+ Copyright (C) 2001-2024 Free Software Foundation, Inc.
634
+ mix of GPL-3.0 and LGPL-2.1/3
635
+
636
+ Copyright (C) 2001-2024 Free Software Foundation, Inc.
637
+ mix of GPL-3.0 and LGPL-2.1/3
638
+
639
+ gcc/m2/examples:
640
+ Copyright (C) 2005-2024 Free Software Foundation, Inc.
641
+ Mix of LGPL-2.1 and GPL-3.0.
642
+
643
+ gcc/m2/images:
644
+ GPL-3+
645
+
646
+ gcc/m2/el/gm2-mode.el:
647
+ ;; Everyone is granted permission to copy, modify and redistribute
648
+ ;; GNU Emacs, but only under the conditions described in the
649
+ ;; GNU Emacs General Public License. A copy of this license is
650
+ ;; supposed to have been given to you along with GNU Emacs so you
651
+ ;; can know your rights and responsibilities. It should be in a
652
+ ;; file named COPYING. Among other things, the copyright notice
653
+ ;; and this notice must be preserved on all copies.
654
+
655
+ Copyright (C) 2001-2024 Free Software Foundation, Inc.
656
+ Contributed by Gaius Mulley <gaius@glam.ac.uk>.
657
+ Mix of GPL-3 and LGPL-2.1.
658
+
659
+ gcc/testsuite/gm2/:
660
+ Copyright (C) 2001-2019 Free Software Foundation, Inc.
661
+ Mix of GPL-2+ and GPL-3+
662
+
663
+ libgm2:
664
+
665
+ libgm2/libiso/:
666
+ libgm2/libpim/:
667
+ libgm2/liblog/:
668
+ libgm2/libcor/:
669
+ libgm2/libmin/:
670
+ Copyright (C) 2002-2024 Free Software Foundation, Inc.
671
+
672
+ This library is free software; you can redistribute it and/or
673
+ modify it under the terms of the GNU Lesser General Public
674
+ License as published by the Free Software Foundation; either
675
+ version 2.1 of the License, or (at your option) any later version.
676
+
677
+ This library is distributed in the hope that it will be useful,
678
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
679
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
680
+ Lesser General Public License for more details.
681
+
682
+ Under Section 7 of GPL version 3, you are granted additional
683
+ permissions described in the GCC Runtime Library Exception, version
684
+ 3.1, as published by the Free Software Foundation.
685
+
686
+ newlib-X.Y.Z/ (only for the offload compilers):
687
+
688
+ Upstream Authors:
689
+ newlib@sources.redhat.com
690
+ Jeff Johnston <jjohnstn@redhat.com>
691
+ Tom Fitzsimmons <fitzsim@redhat.com>
692
+
693
+ The newlib subdirectory is a collection of software from several sources.
694
+ Each file may have its own copyright/license that is embedded in the source
695
+ file.
696
+
697
+ This list documents those licenses which are more restrictive than
698
+ a BSD-like license or require the copyright notice
699
+ to be duplicated in documentation and/or other materials associated with
700
+ the distribution. Certain licenses documented here only apply to
701
+ specific targets. Certain clauses only apply if you are building the
702
+ code as part of your binary.
703
+
704
+ Note that this list may omit certain licenses that
705
+ only pertain to the copying/modifying of the individual source code.
706
+ If you are distributing the source code, then you do not need to
707
+ worry about these omitted licenses, so long as you do not modify the
708
+ copyright information already in place.
709
+
710
+ Parts of this work are licensed under the terms of the GNU General
711
+ Public License. On Debian systems, the complete text of this license
712
+ can be found in /usr/share/common-licenses/GPL.
713
+
714
+ Parts of this work are licensed under the terms of the GNU Library
715
+ General Public License. On Debian systems, the complete text of this
716
+ license be found in /usr/share/common-licenses/LGPL.
717
+
718
+ (1) University of California, Berkeley
719
+
720
+ [1a]
721
+
722
+ Copyright (c) 1990 The Regents of the University of California.
723
+ All rights reserved.
724
+
725
+ Redistribution and use in source and binary forms are permitted
726
+ provided that the above copyright notice and this paragraph are
727
+ duplicated in all such forms and that any documentation,
728
+ and other materials related to such distribution and use
729
+ acknowledge that the software was developed
730
+ by the University of California, Berkeley. The name of the
731
+ University may not be used to endorse or promote products derived
732
+ from this software without specific prior written permission.
733
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
734
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
735
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
736
+
737
+ [1b]
738
+
739
+ Copyright (c) 1990 The Regents of the University of California.
740
+ All rights reserved.
741
+
742
+ Redistribution and use in source and binary forms are permitted
743
+ provided that the above copyright notice and this paragraph are
744
+ duplicated in all such forms and that any documentation,
745
+ advertising materials, and other materials related to such
746
+ distribution and use acknowledge that the software was developed
747
+ by the University of California, Berkeley. The name of the
748
+ University may not be used to endorse or promote products derived
749
+ from this software without specific prior written permission.
750
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
751
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
752
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
753
+
754
+ [1c]
755
+
756
+ Copyright (c) 1981, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
757
+ The Regents of the University of California.
758
+ All rights reserved.
759
+
760
+ Redistribution and use in source and binary forms, with or without
761
+ modification, are permitted provided that the following conditions
762
+ are met:
763
+ 1. Redistributions of source code must retain the above copyright
764
+ notice, this list of conditions and the following disclaimer.
765
+ 2. Redistributions in binary form must reproduce the above copyright
766
+ notice, this list of conditions and the following disclaimer in the
767
+ documentation and/or other materials provided with the distribution.
768
+ 3. All advertising materials mentioning features or use of this software
769
+ must display the following acknowledgement:
770
+ This product includes software developed by the University of
771
+ California, Berkeley and its contributors.
772
+ 4. Neither the name of the University nor the names of its contributors
773
+ may be used to endorse or promote products derived from this software
774
+ without specific prior written permission.
775
+
776
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
777
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
778
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
779
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
780
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
781
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
782
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
783
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
784
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
785
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
786
+ SUCH DAMAGE.
787
+
788
+ [1d]
789
+
790
+ Copyright (c) 1988, 1990, 1993 Regents of the University of California.
791
+ All rights reserved.
792
+
793
+ Redistribution and use in source and binary forms, with or without
794
+ modification, are permitted provided that the following conditions
795
+ are met:
796
+ 1. Redistributions of source code must retain the above copyright
797
+ notice, this list of conditions and the following disclaimer.
798
+ 2. Redistributions in binary form must reproduce the above copyright
799
+ notice, this list of conditions and the following disclaimer in the
800
+ documentation and/or other materials provided with the distribution.
801
+ 3. Neither the name of the University nor the names of its contributors
802
+ may be used to endorse or promote products derived from this software
803
+ without specific prior written permission.
804
+
805
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
806
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
807
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
808
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
809
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
810
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
811
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
812
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
813
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
814
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
815
+ SUCH DAMAGE.
816
+
817
+ [1e]
818
+
819
+ Copyright (c) 1982, 1986, 1989, 1991, 1993, 1994
820
+ The Regents of the University of California. All rights reserved.
821
+ (c) UNIX System Laboratories, Inc.
822
+ All or some portions of this file are derived from material licensed
823
+ to the University of California by American Telephone and Telegraph
824
+ Co. or Unix System Laboratories, Inc. and are reproduced herein with
825
+ the permission of UNIX System Laboratories, Inc.
826
+
827
+ Redistribution and use in source and binary forms, with or without
828
+ modification, are permitted provided that the following conditions
829
+ are met:
830
+ 1. Redistributions of source code must retain the above copyright
831
+ notice, this list of conditions and the following disclaimer.
832
+ 2. Redistributions in binary form must reproduce the above copyright
833
+ notice, this list of conditions and the following disclaimer in the
834
+ documentation and/or other materials provided with the distribution.
835
+ 3. All advertising materials mentioning features or use of this software
836
+ must display the following acknowledgement:
837
+ This product includes software developed by the University of
838
+ California, Berkeley and its contributors.
839
+ 4. Neither the name of the University nor the names of its contributors
840
+ may be used to endorse or promote products derived from this software
841
+ without specific prior written permission.
842
+
843
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
844
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
845
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
846
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
847
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
848
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
849
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
850
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
851
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
852
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
853
+ SUCH DAMAGE.
854
+
855
+ [1f]
856
+
857
+ Copyright (c) 1987, 1988, 2000 Regents of the University of California.
858
+ All rights reserved.
859
+
860
+ Redistribution and use in source and binary forms are permitted
861
+ provided that: (1) source distributions retain this entire copyright
862
+ notice and comment, and (2) distributions including binaries display
863
+ the following acknowledgement: ``This product includes software
864
+ developed by the University of California, Berkeley and its contributors''
865
+ in the documentation or other materials provided with the distribution
866
+ and in all advertising materials mentioning features or use of this
867
+ software. Neither the name of the University nor the names of its
868
+ contributors may be used to endorse or promote products derived
869
+ from this software without specific prior written permission.
870
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
871
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
872
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
873
+
874
+ -------------------------------------------------------------
875
+ Please note that in some of the above alternate licenses, there is a
876
+ statement regarding that acknowledgement must be made in any
877
+ advertising materials for products using the code. This restriction
878
+ no longer applies due to the following license change:
879
+
880
+ ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
881
+
882
+ In some cases the defunct clause has been removed in modified newlib code and
883
+ in some cases, the clause has been left as-is.
884
+ -------------------------------------------------------------
885
+
886
+ (2) Cygwin (cygwin targets only)
887
+
888
+ Copyright 2001 Red Hat, Inc.
889
+
890
+ This software is a copyrighted work licensed under the terms of the
891
+ Cygwin license. Please consult the file "CYGWIN_LICENSE" for
892
+ details.
893
+
894
+ (3) David M. Gay at AT&T
895
+
896
+ The author of this software is David M. Gay.
897
+
898
+ Copyright (c) 1991 by AT&T.
899
+
900
+ Permission to use, copy, modify, and distribute this software for any
901
+ purpose without fee is hereby granted, provided that this entire notice
902
+ is included in all copies of any software which is or includes a copy
903
+ or modification of this software and in all copies of the supporting
904
+ documentation for such software.
905
+
906
+ THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
907
+ WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR AT&T MAKES ANY
908
+ REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
909
+ OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
910
+
911
+ (4) Advanced Micro Devices
912
+
913
+ Copyright 1989, 1990 Advanced Micro Devices, Inc.
914
+
915
+ This software is the property of Advanced Micro Devices, Inc (AMD) which
916
+ specifically grants the user the right to modify, use and distribute this
917
+ software provided this notice is not removed or altered. All other rights
918
+ are reserved by AMD.
919
+
920
+ AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
921
+ SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL
922
+ DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR
923
+ USE OF THIS SOFTWARE.
924
+
925
+ So that all may benefit from your experience, please report any problems
926
+ or suggestions about this software to the 29K Technical Support Center at
927
+ 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131 in the UK, or
928
+ 0031-11-1129 in Japan, toll free. The direct dial number is 512-462-4118.
929
+
930
+ Advanced Micro Devices, Inc.
931
+ 29K Support Products
932
+ Mail Stop 573
933
+ 5900 E. Ben White Blvd.
934
+ Austin, TX 78741
935
+ 800-292-9263
936
+
937
+ (5) C.W. Sandmann
938
+
939
+ Copyright (C) 1993 C.W. Sandmann
940
+
941
+ This file may be freely distributed as long as the author's name remains.
942
+
943
+ (6) Eric Backus
944
+
945
+ (C) Copyright 1992 Eric Backus
946
+
947
+ This software may be used freely so long as this copyright notice is
948
+ left intact. There is no warrantee on this software.
949
+
950
+ (7) Sun Microsystems
951
+
952
+ Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
953
+
954
+ Developed at SunPro, a Sun Microsystems, Inc. business.
955
+ Permission to use, copy, modify, and distribute this
956
+ software is freely granted, provided that this notice
957
+ is preserved.
958
+
959
+ (8) Hewlett Packard
960
+
961
+ (c) Copyright 1986 HEWLETT-PACKARD COMPANY
962
+
963
+ To anyone who acknowledges that this file is provided "AS IS"
964
+ without any express or implied warranty:
965
+ permission to use, copy, modify, and distribute this file
966
+ for any purpose is hereby granted without fee, provided that
967
+ the above copyright notice and this notice appears in all
968
+ copies, and that the name of Hewlett-Packard Company not be
969
+ used in advertising or publicity pertaining to distribution
970
+ of the software without specific, written prior permission.
971
+ Hewlett-Packard Company makes no representations about the
972
+ suitability of this software for any purpose.
973
+
974
+ (9) Hans-Peter Nilsson
975
+
976
+ Copyright (C) 2001 Hans-Peter Nilsson
977
+
978
+ Permission to use, copy, modify, and distribute this software is
979
+ freely granted, provided that the above copyright notice, this notice
980
+ and the following disclaimer are preserved with no changes.
981
+
982
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
983
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
984
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
985
+ PURPOSE.
986
+
987
+ (10) Stephane Carrez (m68hc11-elf/m68hc12-elf targets only)
988
+
989
+ Copyright (C) 1999, 2000, 2001, 2002 Stephane Carrez (stcarrez@nerim.fr)
990
+
991
+ The authors hereby grant permission to use, copy, modify, distribute,
992
+ and license this software and its documentation for any purpose, provided
993
+ that existing copyright notices are retained in all copies and that this
994
+ notice is included verbatim in any distributions. No written agreement,
995
+ license, or royalty fee is required for any of the authorized uses.
996
+ Modifications to this software may be copyrighted by their authors
997
+ and need not follow the licensing terms described here, provided that
998
+ the new terms are clearly indicated on the first page of each file where
999
+ they apply.
1000
+
1001
+ (11) Christopher G. Demetriou
1002
+
1003
+ Copyright (c) 2001 Christopher G. Demetriou
1004
+ All rights reserved.
1005
+
1006
+ Redistribution and use in source and binary forms, with or without
1007
+ modification, are permitted provided that the following conditions
1008
+ are met:
1009
+ 1. Redistributions of source code must retain the above copyright
1010
+ notice, this list of conditions and the following disclaimer.
1011
+ 2. Redistributions in binary form must reproduce the above copyright
1012
+ notice, this list of conditions and the following disclaimer in the
1013
+ documentation and/or other materials provided with the distribution.
1014
+ 3. The name of the author may not be used to endorse or promote products
1015
+ derived from this software without specific prior written permission.
1016
+
1017
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1018
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1019
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1020
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1021
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1022
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1023
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1024
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1025
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
1026
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1027
+
1028
+ (12) SuperH, Inc.
1029
+
1030
+ Copyright 2002 SuperH, Inc. All rights reserved
1031
+
1032
+ This software is the property of SuperH, Inc (SuperH) which specifically
1033
+ grants the user the right to modify, use and distribute this software
1034
+ provided this notice is not removed or altered. All other rights are
1035
+ reserved by SuperH.
1036
+
1037
+ SUPERH MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO
1038
+ THIS SOFTWARE. IN NO EVENT SHALL SUPERH BE LIABLE FOR INDIRECT, SPECIAL,
1039
+ INCIDENTAL OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH OR ARISING FROM
1040
+ THE FURNISHING, PERFORMANCE, OR USE OF THIS SOFTWARE.
1041
+
1042
+ So that all may benefit from your experience, please report any problems
1043
+ or suggestions about this software to the SuperH Support Center via
1044
+ e-mail at softwaresupport@superh.com .
1045
+
1046
+ SuperH, Inc.
1047
+ 405 River Oaks Parkway
1048
+ San Jose
1049
+ CA 95134
1050
+ USA
1051
+
1052
+ (13) Royal Institute of Technology
1053
+
1054
+ Copyright (c) 1999 Kungliga Tekniska Hgskolan
1055
+ (Royal Institute of Technology, Stockholm, Sweden).
1056
+ All rights reserved.
1057
+
1058
+ Redistribution and use in source and binary forms, with or without
1059
+ modification, are permitted provided that the following conditions
1060
+ are met:
1061
+
1062
+ 1. Redistributions of source code must retain the above copyright
1063
+ notice, this list of conditions and the following disclaimer.
1064
+
1065
+ 2. Redistributions in binary form must reproduce the above copyright
1066
+ notice, this list of conditions and the following disclaimer in the
1067
+ documentation and/or other materials provided with the distribution.
1068
+
1069
+ 3. Neither the name of KTH nor the names of its contributors may be
1070
+ used to endorse or promote products derived from this software without
1071
+ specific prior written permission.
1072
+
1073
+ THIS SOFTWARE IS PROVIDED BY KTH AND ITS CONTRIBUTORS ``AS IS'' AND ANY
1074
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1075
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1076
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL KTH OR ITS CONTRIBUTORS BE
1077
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1078
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1079
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
1080
+ BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1081
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
1082
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
1083
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1084
+
1085
+ (14) Alexey Zelkin
1086
+
1087
+ Copyright (c) 2000, 2001 Alexey Zelkin <phantom@FreeBSD.org>
1088
+ All rights reserved.
1089
+
1090
+ Redistribution and use in source and binary forms, with or without
1091
+ modification, are permitted provided that the following conditions
1092
+ are met:
1093
+ 1. Redistributions of source code must retain the above copyright
1094
+ notice, this list of conditions and the following disclaimer.
1095
+ 2. Redistributions in binary form must reproduce the above copyright
1096
+ notice, this list of conditions and the following disclaimer in the
1097
+ documentation and/or other materials provided with the distribution.
1098
+
1099
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1100
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1101
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1102
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1103
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1104
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1105
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1106
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1107
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1108
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1109
+ SUCH DAMAGE.
1110
+
1111
+ (15) Andrey A. Chernov
1112
+
1113
+ Copyright (C) 1997 by Andrey A. Chernov, Moscow, Russia.
1114
+ All rights reserved.
1115
+
1116
+ Redistribution and use in source and binary forms, with or without
1117
+ modification, are permitted provided that the following conditions
1118
+ are met:
1119
+ 1. Redistributions of source code must retain the above copyright
1120
+ notice, this list of conditions and the following disclaimer.
1121
+ 2. Redistributions in binary form must reproduce the above copyright
1122
+ notice, this list of conditions and the following disclaimer in the
1123
+ documentation and/or other materials provided with the distribution.
1124
+
1125
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
1126
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1127
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1128
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
1129
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1130
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1131
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1132
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1133
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1134
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1135
+ SUCH DAMAGE.
1136
+
1137
+ (16) FreeBSD
1138
+
1139
+ Copyright (c) 1997-2002 FreeBSD Project.
1140
+ All rights reserved.
1141
+
1142
+ Redistribution and use in source and binary forms, with or without
1143
+ modification, are permitted provided that the following conditions
1144
+ are met:
1145
+ 1. Redistributions of source code must retain the above copyright
1146
+ notice, this list of conditions and the following disclaimer.
1147
+ 2. Redistributions in binary form must reproduce the above copyright
1148
+ notice, this list of conditions and the following disclaimer in the
1149
+ documentation and/or other materials provided with the distribution.
1150
+
1151
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1152
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1153
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1154
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1155
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1156
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1157
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1158
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1159
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1160
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1161
+ SUCH DAMAGE.
1162
+
1163
+ (17) S. L. Moshier
1164
+
1165
+ Author: S. L. Moshier.
1166
+
1167
+ Copyright (c) 1984,2000 S.L. Moshier
1168
+
1169
+ Permission to use, copy, modify, and distribute this software for any
1170
+ purpose without fee is hereby granted, provided that this entire notice
1171
+ is included in all copies of any software which is or includes a copy
1172
+ or modification of this software and in all copies of the supporting
1173
+ documentation for such software.
1174
+
1175
+ THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
1176
+ WARRANTY. IN PARTICULAR, THE AUTHOR MAKES NO REPRESENTATION
1177
+ OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS
1178
+ SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
1179
+
1180
+ (18) Citrus Project
1181
+
1182
+ Copyright (c)1999 Citrus Project,
1183
+ All rights reserved.
1184
+
1185
+ Redistribution and use in source and binary forms, with or without
1186
+ modification, are permitted provided that the following conditions
1187
+ are met:
1188
+ 1. Redistributions of source code must retain the above copyright
1189
+ notice, this list of conditions and the following disclaimer.
1190
+ 2. Redistributions in binary form must reproduce the above copyright
1191
+ notice, this list of conditions and the following disclaimer in the
1192
+ documentation and/or other materials provided with the distribution.
1193
+
1194
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1195
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1196
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1197
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1198
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1199
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1200
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1201
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1202
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1203
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1204
+ SUCH DAMAGE.
1205
+
1206
+ (19) Todd C. Miller
1207
+
1208
+ Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
1209
+ All rights reserved.
1210
+
1211
+ Redistribution and use in source and binary forms, with or without
1212
+ modification, are permitted provided that the following conditions
1213
+ are met:
1214
+ 1. Redistributions of source code must retain the above copyright
1215
+ notice, this list of conditions and the following disclaimer.
1216
+ 2. Redistributions in binary form must reproduce the above copyright
1217
+ notice, this list of conditions and the following disclaimer in the
1218
+ documentation and/or other materials provided with the distribution.
1219
+ 3. The name of the author may not be used to endorse or promote products
1220
+ derived from this software without specific prior written permission.
1221
+
1222
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
1223
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
1224
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
1225
+ THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
1226
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
1227
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
1228
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1229
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
1230
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
1231
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1232
+
1233
+ (20) DJ Delorie (i386)
1234
+
1235
+ Copyright (C) 1991 DJ Delorie
1236
+ All rights reserved.
1237
+
1238
+ Redistribution and use in source and binary forms is permitted
1239
+ provided that the above copyright notice and following paragraph are
1240
+ duplicated in all such forms.
1241
+
1242
+ This file is distributed WITHOUT ANY WARRANTY; without even the implied
1243
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1244
+
1245
+ (21) Free Software Foundation LGPL License (*-linux* targets only)
1246
+
1247
+ Copyright (C) 1990-1999, 2000, 2001
1248
+ Free Software Foundation, Inc.
1249
+ This file is part of the GNU C Library.
1250
+ Contributed by Mark Kettenis <kettenis@phys.uva.nl>, 1997.
1251
+
1252
+ The GNU C Library is free software; you can redistribute it and/or
1253
+ modify it under the terms of the GNU Lesser General Public
1254
+ License as published by the Free Software Foundation; either
1255
+ version 2.1 of the License, or (at your option) any later version.
1256
+
1257
+ The GNU C Library is distributed in the hope that it will be useful,
1258
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1259
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1260
+ Lesser General Public License for more details.
1261
+
1262
+ You should have received a copy of the GNU Lesser General Public
1263
+ License along with the GNU C Library; if not, write to the Free
1264
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
1265
+ 02110-1301 USA
1266
+
1267
+ (22) Xavier Leroy LGPL License (i[3456]86-*-linux* targets only)
1268
+
1269
+ Copyright (C) 1996 Xavier Leroy (Xavier.Leroy@inria.fr)
1270
+
1271
+ This program is free software; you can redistribute it and/or
1272
+ modify it under the terms of the GNU Library General Public License
1273
+ as published by the Free Software Foundation; either version 2
1274
+ of the License, or (at your option) any later version.
1275
+
1276
+ This program is distributed in the hope that it will be useful,
1277
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1278
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1279
+ GNU Library General Public License for more details.
1280
+
1281
+ (23) Intel (i960)
1282
+
1283
+ Copyright (c) 1993 Intel Corporation
1284
+
1285
+ Intel hereby grants you permission to copy, modify, and distribute this
1286
+ software and its documentation. Intel grants this permission provided
1287
+ that the above copyright notice appears in all copies and that both the
1288
+ copyright notice and this permission notice appear in supporting
1289
+ documentation. In addition, Intel grants this permission provided that
1290
+ you prominently mark as "not part of the original" any modifications
1291
+ made to this software or documentation, and that the name of Intel
1292
+ Corporation not be used in advertising or publicity pertaining to
1293
+ distribution of the software or the documentation without specific,
1294
+ written prior permission.
1295
+
1296
+ Intel Corporation provides this AS IS, WITHOUT ANY WARRANTY, EXPRESS OR
1297
+ IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY
1298
+ OR FITNESS FOR A PARTICULAR PURPOSE. Intel makes no guarantee or
1299
+ representations regarding the use of, or the results of the use of,
1300
+ the software and documentation in terms of correctness, accuracy,
1301
+ reliability, currentness, or otherwise; and you rely on the software,
1302
+ documentation and results solely at your own risk.
1303
+
1304
+ IN NO EVENT SHALL INTEL BE LIABLE FOR ANY LOSS OF USE, LOSS OF BUSINESS,
1305
+ LOSS OF PROFITS, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES
1306
+ OF ANY KIND. IN NO EVENT SHALL INTEL'S TOTAL LIABILITY EXCEED THE SUM
1307
+ PAID TO INTEL FOR THE PRODUCT LICENSED HEREUNDER.
1308
+
1309
+ (24) Hewlett-Packard (hppa targets only)
1310
+
1311
+ (c) Copyright 1986 HEWLETT-PACKARD COMPANY
1312
+
1313
+ To anyone who acknowledges that this file is provided "AS IS"
1314
+ without any express or implied warranty:
1315
+ permission to use, copy, modify, and distribute this file
1316
+ for any purpose is hereby granted without fee, provided that
1317
+ the above copyright notice and this notice appears in all
1318
+ copies, and that the name of Hewlett-Packard Company not be
1319
+ used in advertising or publicity pertaining to distribution
1320
+ of the software without specific, written prior permission.
1321
+ Hewlett-Packard Company makes no representations about the
1322
+ suitability of this software for any purpose.
1323
+
1324
+ (25) Henry Spencer (only *-linux targets)
1325
+
1326
+ Copyright 1992, 1993, 1994 Henry Spencer. All rights reserved.
1327
+ This software is not subject to any license of the American Telephone
1328
+ and Telegraph Company or of the Regents of the University of California.
1329
+
1330
+ Permission is granted to anyone to use this software for any purpose on
1331
+ any computer system, and to alter it and redistribute it, subject
1332
+ to the following restrictions:
1333
+
1334
+ 1. The author is not responsible for the consequences of use of this
1335
+ software, no matter how awful, even if they arise from flaws in it.
1336
+
1337
+ 2. The origin of this software must not be misrepresented, either by
1338
+ explicit claim or by omission. Since few users ever read sources,
1339
+ credits must appear in the documentation.
1340
+
1341
+ 3. Altered versions must be plainly marked as such, and must not be
1342
+ misrepresented as being the original software. Since few users
1343
+ ever read sources, credits must appear in the documentation.
1344
+
1345
+ 4. This notice may not be removed or altered.
1346
+
1347
+ (26) Mike Barcroft
1348
+
1349
+ Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
1350
+ All rights reserved.
1351
+
1352
+ Redistribution and use in source and binary forms, with or without
1353
+ modification, are permitted provided that the following conditions
1354
+ are met:
1355
+ 1. Redistributions of source code must retain the above copyright
1356
+ notice, this list of conditions and the following disclaimer.
1357
+ 2. Redistributions in binary form must reproduce the above copyright
1358
+ notice, this list of conditions and the following disclaimer in the
1359
+ documentation and/or other materials provided with the distribution.
1360
+
1361
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1362
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1363
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1364
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1365
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1366
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1367
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1368
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1369
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1370
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1371
+ SUCH DAMAGE.
1372
+
1373
+ (27) Konstantin Chuguev (--enable-newlib-iconv)
1374
+
1375
+ Copyright (c) 1999, 2000
1376
+ Konstantin Chuguev. All rights reserved.
1377
+
1378
+ Redistribution and use in source and binary forms, with or without
1379
+ modification, are permitted provided that the following conditions
1380
+ are met:
1381
+ 1. Redistributions of source code must retain the above copyright
1382
+ notice, this list of conditions and the following disclaimer.
1383
+ 2. Redistributions in binary form must reproduce the above copyright
1384
+ notice, this list of conditions and the following disclaimer in the
1385
+ documentation and/or other materials provided with the distribution.
1386
+
1387
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1388
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1389
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1390
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1391
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1392
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1393
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1394
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1395
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1396
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1397
+ SUCH DAMAGE.
1398
+
1399
+ iconv (Charset Conversion Library) v2.0
1400
+
1401
+ (27) Artem Bityuckiy (--enable-newlib-iconv)
1402
+
1403
+ Copyright (c) 2003, Artem B. Bityuckiy, SoftMine Corporation.
1404
+ Rights transferred to Franklin Electronic Publishers.
1405
+
1406
+ Redistribution and use in source and binary forms, with or without
1407
+ modification, are permitted provided that the following conditions
1408
+ are met:
1409
+ 1. Redistributions of source code must retain the above copyright
1410
+ notice, this list of conditions and the following disclaimer.
1411
+ 2. Redistributions in binary form must reproduce the above copyright
1412
+ notice, this list of conditions and the following disclaimer in the
1413
+ documentation and/or other materials provided with the distribution.
1414
+
1415
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1416
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1417
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1418
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1419
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1420
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1421
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1422
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1423
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1424
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1425
+ SUCH DAMAGE.
1426
+
1427
+ (28) Red Hat Incorporated
1428
+
1429
+ Unless otherwise stated in each remaining newlib file, the remaining
1430
+ files in the newlib subdirectory default to the following copyright.
1431
+ It should be noted that Red Hat Incorporated now owns copyrights
1432
+ belonging to Cygnus Solutions and Cygnus Support.
1433
+
1434
+ Copyright (c) 1994, 1997, 2001, 2002, 2003, 2004 Red Hat Incorporated.
1435
+ All rights reserved.
1436
+
1437
+ Redistribution and use in source and binary forms, with or without
1438
+ modification, are permitted provided that the following conditions are met:
1439
+
1440
+ Redistributions of source code must retain the above copyright
1441
+ notice, this list of conditions and the following disclaimer.
1442
+
1443
+ Redistributions in binary form must reproduce the above copyright
1444
+ notice, this list of conditions and the following disclaimer in the
1445
+ documentation and/or other materials provided with the distribution.
1446
+
1447
+ The name of Red Hat Incorporated may not be used to endorse
1448
+ or promote products derived from this software without specific
1449
+ prior written permission.
1450
+
1451
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1452
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1453
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1454
+ DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY
1455
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1456
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1457
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
1458
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1459
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1460
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1461
+
1462
+
1463
+ contrib/unicode:
1464
+
1465
+ UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
1466
+
1467
+ Unicode Data Files include all data files under the directories
1468
+ http://www.unicode.org/Public/, http://www.unicode.org/reports/, and
1469
+ http://www.unicode.org/cldr/data/. Unicode Data Files do not include PDF
1470
+ online code charts under the directory http://www.unicode.org/Public/.
1471
+ Software includes any source code published in the Unicode Standard or under
1472
+ the directories http://www.unicode.org/Public/,
1473
+ http://www.unicode.org/reports/, and http://www.unicode.org/cldr/data/.
1474
+
1475
+ NOTICE TO USER: Carefully read the following legal agreement. BY
1476
+ DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S DATA FILES
1477
+ ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"), YOU UNEQUIVOCALLY ACCEPT, AND
1478
+ AGREE TO BE BOUND BY, ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF
1479
+ YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA
1480
+ FILES OR SOFTWARE.
1481
+
1482
+ COPYRIGHT AND PERMISSION NOTICE
1483
+
1484
+ Copyright © 1991-2013 Unicode, Inc. All rights reserved. Distributed under
1485
+ the Terms of Use in http://www.unicode.org/copyright.html.
1486
+
1487
+ Permission is hereby granted, free of charge, to any person obtaining a
1488
+ copy of the Unicode data files and any associated documentation (the "Data
1489
+ Files") or Unicode software and any associated documentation (the "Software")
1490
+ to deal in the Data Files or Software without restriction, including without
1491
+ limitation the rights to use, copy, modify, merge, publish, distribute, and/or
1492
+ sell copies of the Data Files or Software, and to permit persons to whom the
1493
+ Data Files or Software are furnished to do so, provided that (a) the above
1494
+ copyright notice(s) and this permission notice appear with all copies of the
1495
+ Data Files or Software, (b) both the above copyright notice(s) and this
1496
+ permission notice appear in associated documentation, and (c) there is clear
1497
+ notice in each modified Data File or in the Software as well as in the
1498
+ documentation associated with the Data File(s) or Software that the data or
1499
+ software has been modified.
1500
+
1501
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
1502
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1503
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD
1504
+ PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
1505
+ THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
1506
+ DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
1507
+ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
1508
+ ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE
1509
+ DATA FILES OR SOFTWARE.
1510
+
1511
+ Except as contained in this notice, the name of a copyright holder shall
1512
+ not be used in advertising or otherwise to promote the sale, use or other
1513
+ dealings in these Data Files or Software without prior written authorization
1514
+ of the copyright holder.
1515
+
1516
+ contrib/unicode/from_glibc:
1517
+
1518
+ # Copyright (C) 2014-2019 Free Software Foundation, Inc.
1519
+ # This file is part of the GNU C Library.
1520
+ #
1521
+ # The GNU C Library is free software; you can redistribute it and/or
1522
+ # modify it under the terms of the GNU Lesser General Public
1523
+ # License as published by the Free Software Foundation; either
1524
+ # version 2.1 of the License, or (at your option) any later version.
1525
+ #
1526
+ # The GNU C Library is distributed in the hope that it will be useful,
1527
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
1528
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1529
+ # Lesser General Public License for more details.
1530
+ #
1531
+ # You should have received a copy of the GNU Lesser General Public
1532
+ # License along with the GNU C Library; if not, see
1533
+ # <https://www.gnu.org/licenses/>.
1534
+
1535
+ gcc/cobol, libgcobol:
1536
+
1537
+ * Copyright (c) 2021-2024 Symas Corporation
1538
+ *
1539
+ * Redistribution and use in source and binary forms, with or without
1540
+ * modification, are permitted provided that the following conditions are
1541
+ * met:
1542
+ *
1543
+ * * Redistributions of source code must retain the above copyright
1544
+ * notice, this list of conditions and the following disclaimer.
1545
+ * * Redistributions in binary form must reproduce the above
1546
+ * copyright notice, this list of conditions and the following disclaimer
1547
+ * in the documentation and/or other materials provided with the
1548
+ * distribution.
1549
+ * * Neither the name of the Symas Corporation nor the names of its
1550
+ * contributors may be used to endorse or promote products derived from
1551
+ * this software without specific prior written permission.
1552
+ *
1553
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1554
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1555
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1556
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1557
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1558
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1559
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1560
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1561
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1562
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1563
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1564
+
1565
+ gcc/algol68
1566
+
1567
+ Copyright (C) 2025 Jose E. Marchesi.
1568
+
1569
+ This file is NOT part of GCC.
1570
+
1571
+ GCC is free software; you can redistribute it and/or modify it under the
1572
+ terms of the GNU General Public License as published by the Free Software
1573
+ Foundation; either version 3, or (at your option) any later version.
1574
+
1575
+ GCC is distributed in the hope that it will be useful, but WITHOUT ANY
1576
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1577
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1578
+ details.
1579
+
1580
+ You should have received a copy of the GNU General Public License along with
1581
+ GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
1582
+
1583
+ libga68:
1584
+
1585
+ Copyright (C) 2025 Jose E. Marchesi.
1586
+
1587
+ This file is NOT part of GCC.
1588
+
1589
+ GCC is free software; you can redistribute it and/or modify it under the
1590
+ terms of the GNU General Public License as published by the Free Software
1591
+ Foundation; either version 3, or (at your option) any later version.
1592
+
1593
+ GCC is distributed in the hope that it will be useful, but WITHOUT ANY
1594
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1595
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1596
+ details.
1597
+
1598
+ Under Section 7 of GPL version 3, you are granted additional permissions
1599
+ described in the GCC Runtime Library Exception, version 3.1, as published by
1600
+ the Free Software Foundation.
1601
+
1602
+ You should have received a copy of the GNU General Public License and a copy
1603
+ of the GCC Runtime Library Exception along with this program; see the files
1604
+ COPYING3 and COPYING.RUNTIME respectively. If not, see
1605
+ <http://www.gnu.org/licenses/>.
1606
+
1607
+ gcc/rust/checks/errors/borrowck/ffi-polonius/vendor/
1608
+ libgrust/libformat_parser/vendor/
1609
+ libgrust/rustc-lib
1610
+
1611
+ Vendored crates are authored by "The Rust Project Developers",
1612
+ licensed under the Apache-2.0/MIT licenses.
1613
+
1614
+ MIT License:
1615
+
1616
+ Permission is hereby granted, free of charge, to any
1617
+ person obtaining a copy of this software and associated
1618
+ documentation files (the "Software"), to deal in the
1619
+ Software without restriction, including without
1620
+ limitation the rights to use, copy, modify, merge,
1621
+ publish, distribute, sublicense, and/or sell copies of
1622
+ the Software, and to permit persons to whom the Software
1623
+ is furnished to do so, subject to the following
1624
+ conditions:
1625
+
1626
+ The above copyright notice and this permission notice
1627
+ shall be included in all copies or substantial portions
1628
+ of the Software.
1629
+
1630
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
1631
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
1632
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
1633
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
1634
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1635
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1636
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1637
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1638
+ DEALINGS IN THE SOFTWARE.
1639
+
1640
+ On Debian GNU/Linux systems, the complete text of Apache 2.0 License
1641
+ is in `/usr/share/common-licenses/Apache-2.0'.
deployment/notices/GLIBC.txt ADDED
@@ -0,0 +1,1418 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2
+ Upstream-Name: GNU C Library
3
+ Source: https://sourceware.org/git/glibc.git
4
+
5
+ Files: *
6
+ Copyright: 1991-2026 Free Software Foundation, Inc.
7
+ License: LGPL-2.1+
8
+
9
+ Files: manual/*
10
+ License: GFDL-1.3
11
+ Copyright (C) 1993-2017 Free Software Foundation, Inc.
12
+ .
13
+ Permission is granted to copy, distribute and/or modify this document
14
+ under the terms of the GNU Free Documentation License, Version 1.3 or
15
+ any later version published by the Free Software Foundation; with the
16
+ Invariant Sections being "Free Software Needs Free Documentation" and
17
+ "GNU Lesser General Public License", the Front-Cover texts being "A
18
+ GNU Manual", and with the Back-Cover Texts as in (a) below. A copy of
19
+ the license is included in the section entitled "GNU Free
20
+ Documentation License".
21
+ .
22
+ (a) The FSF’s Back-Cover Text is: "You have the freedom to copy and
23
+ modify this GNU manual. Buying copies from the FSF supports it in
24
+ developing GNU and promoting software freedom."
25
+ .
26
+ On Debian systems, the complete text of the GNU Free Documentation
27
+ License Version 1.3 can be found in `/usr/share/common-licenses/GFDL-1.3'.
28
+
29
+ Files:
30
+ nptl/default-sched.h
31
+ nss/nss_db/db-initgroups.c
32
+ sysdeps/powerpc/fpu/round_to_integer.h
33
+ sysdeps/powerpc/fpu/s_ceil.c
34
+ sysdeps/powerpc/fpu/s_ceilf.c
35
+ sysdeps/powerpc/fpu/s_floor.c
36
+ sysdeps/powerpc/fpu/s_floorf.c
37
+ sysdeps/powerpc/fpu/s_nearbyint.c
38
+ sysdeps/powerpc/fpu/s_nearbyintf.c
39
+ sysdeps/powerpc/fpu/s_round.c
40
+ sysdeps/powerpc/fpu/s_roundf.c
41
+ sysdeps/powerpc/fpu/s_trunc.c
42
+ sysdeps/powerpc/fpu/s_truncf.c
43
+ sysdeps/powerpc/powerpc32/fpu/s_lrint.c
44
+ sysdeps/powerpc/powerpc64/dl-machine.c
45
+ sysdeps/powerpc/powerpc64/dl-machine.h
46
+ sysdeps/powerpc/powerpc64/fpu/s_llrint.c
47
+ sysdeps/powerpc/powerpc64/fpu/s_llround.c
48
+ sysdeps/powerpc/powerpc64/fpu/s_llroundf.c
49
+ sysdeps/sparc/backtrace.c
50
+ sysdeps/unix/sysv/linux/alpha/bits/pthread_stack_min.h
51
+ sysdeps/unix/sysv/linux/default-sched.h
52
+ sysdeps/unix/sysv/linux/sparc/bits/pthread_stack_min.h
53
+ Copyright: 1995-2026 Free Software Foundation, Inc.
54
+ License: LGPL-2+
55
+
56
+ Files:
57
+ soft-fp/*.c
58
+ soft-fp/*.h
59
+ sysdeps/ieee754/soft-fp/s_fma*.c
60
+ sysdeps/powerpc/nofpu/sqrt*f2.c
61
+ sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
62
+ sysdeps/x86/fpu/e_sqrtf128.c
63
+ Copyright: 1997-2026 Free Software Foundation, Inc.
64
+ License: LGPL-2.1+-with-link-exception
65
+
66
+ Files: sysdeps/htl/raise.c
67
+ Copyright: 2008-2026 Free Software Foundation, Inc.
68
+ License: LGPL-3+
69
+
70
+ Files:
71
+ catgets/gencat.c
72
+ catgets/xopen-msg.awk
73
+ elf/cache.c
74
+ elf/chroot_canon.c
75
+ elf/endswith.h
76
+ elf/ldconfig.c
77
+ elf/readlib.c
78
+ elf/stringtable.c
79
+ elf/stringtable.h
80
+ elf/stringtable_free.c
81
+ elf/tst-stringtable.c
82
+ iconv/dummy-repertoire.c
83
+ iconv/iconv_charmap.c
84
+ iconv/iconv_prog.c
85
+ iconv/iconvconfig.c
86
+ iconv/strtab.c
87
+ include/programs/xasprintf.h
88
+ include/programs/xmalloc.h
89
+ intl/locale.alias
90
+ intl/po2test.awk
91
+ io/tst-fcntl-lock.c
92
+ io/tst-lockf.c
93
+ locale/programs/3level.h
94
+ locale/programs/charmap-dir.c
95
+ locale/programs/charmap-dir.h
96
+ locale/programs/charmap-kw.gperf
97
+ locale/programs/charmap-kw.h
98
+ locale/programs/charmap.c
99
+ locale/programs/charmap.h
100
+ locale/programs/config.h
101
+ locale/programs/ld-address.c
102
+ locale/programs/ld-collate.c
103
+ locale/programs/ld-ctype.c
104
+ locale/programs/ld-identification.c
105
+ locale/programs/ld-measurement.c
106
+ locale/programs/ld-messages.c
107
+ locale/programs/ld-monetary.c
108
+ locale/programs/ld-name.c
109
+ locale/programs/ld-numeric.c
110
+ locale/programs/ld-paper.c
111
+ locale/programs/ld-telephone.c
112
+ locale/programs/ld-time.c
113
+ locale/programs/linereader.c
114
+ locale/programs/linereader.h
115
+ locale/programs/locale-spec.c
116
+ locale/programs/locale.c
117
+ locale/programs/localedef.c
118
+ locale/programs/localedef.h
119
+ locale/programs/locarchive.c
120
+ locale/programs/locfile-kw.gperf
121
+ locale/programs/locfile-kw.h
122
+ locale/programs/locfile-token.h
123
+ locale/programs/locfile.c
124
+ locale/programs/locfile.h
125
+ locale/programs/record-status.c
126
+ locale/programs/record-status.h
127
+ locale/programs/repertoire.c
128
+ locale/programs/repertoire.h
129
+ locale/programs/simple-hash.c
130
+ locale/programs/simple-hash.h
131
+ locale/programs/xasprintf.c
132
+ locale/programs/xmalloc.c
133
+ locale/programs/xstrdup.c
134
+ localedata/tst-rpmatch.sh
135
+ malloc/memusagestat.c
136
+ nscd/aicache.c
137
+ nscd/cache.c
138
+ nscd/cachedumper.c
139
+ nscd/connections.c
140
+ nscd/dbg_log.c
141
+ nscd/getgrgid_r.c
142
+ nscd/getgrnam_r.c
143
+ nscd/gethstbyad_r.c
144
+ nscd/gethstbynm3_r.c
145
+ nscd/getpwnam_r.c
146
+ nscd/getpwuid_r.c
147
+ nscd/getsrvbynm_r.c
148
+ nscd/getsrvbypt_r.c
149
+ nscd/grpcache.c
150
+ nscd/hstcache.c
151
+ nscd/initgrcache.c
152
+ nscd/mem.c
153
+ nscd/netgroupcache.c
154
+ nscd/nscd.c
155
+ nscd/nscd_conf.c
156
+ nscd/nscd_setup_thread.c
157
+ nscd/pwdcache.c
158
+ nscd/servicescache.c
159
+ posix/getconf.c
160
+ scripts/rellns-sh
161
+ sysdeps/unix/sysv/linux/nscd_setup_thread.c
162
+ sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c
163
+ sysdeps/unix/sysv/linux/tst-ofdlocks.c
164
+ Copyright: 1991-2026 Free Software Foundation, Inc.
165
+ License: GPL-2+
166
+
167
+ Files: sysdeps/arm/unwind.h
168
+ Copyright: 2003-2026 Free Software Foundation, Inc.
169
+ License: GPL-2+-with-link-exception
170
+
171
+ Files: sysdeps/unix/sysv/linux/mips/sys/user.h
172
+ Copyright:
173
+ 1995, 1999 by Ralf Baechle
174
+ 2002-2026 Free Software Foundation
175
+ License: LGPL-2.1+ and GPL-2
176
+
177
+ Files: scripts/move-if-change
178
+ Copyright: 2002-2022 Free Software Foundation, Inc.
179
+ License: GPL-3+
180
+
181
+ Files:
182
+ libio/tst-fgetc-after-eof.c
183
+ malloc/tst-malloc-stats-cancellation.c
184
+ wcsmbs/tst-fgetwc-after-eof.c
185
+ Copyright: 2018 Free Software Foundation
186
+ License: FSFAP
187
+
188
+ Files:
189
+ hurd/hurdmalloc.c
190
+ mach/err_boot.sub
191
+ mach/err_ipc.sub
192
+ mach/err_kern.sub
193
+ mach/err_mach.sub
194
+ mach/err_server.sub
195
+ mach/err_us.sub
196
+ mach/error_compat.c
197
+ mach/errorlib.h
198
+ mach/errstring.c
199
+ mach/mach/error.h
200
+ mach/mach_error.c
201
+ mach/mach_error.h
202
+ mach/msg-destroy.c
203
+ mach/msg.c
204
+ sysdeps/mach/sys/reboot.h
205
+ Copyright: 1987-1982 Carnegie Mellon University
206
+ License: Carnegie
207
+
208
+ Files:
209
+ mach/msgserver.c
210
+ Copyright:
211
+ 1991,1990,1989 Carnegie Mellon University
212
+ 1993-2026 Free Software Foundation, Inc.
213
+ License: Carnegie and LGPL-2.1+
214
+
215
+ Files:
216
+ nss/getaddrinfo.c
217
+ nss/getnameinfo.c
218
+ Copyright:
219
+ 1996 by Craig Metz
220
+ 1997-2026 Free Software Foundation, Inc.
221
+ License: Inner-Net and LGPL-2.1+
222
+
223
+ Files: posix/runtests.c
224
+ Copyright: 1995 by Tom Lord
225
+ License: MIT-like-Lord
226
+ Permission to use, copy, modify, and distribute this software and its
227
+ documentation for any purpose and without fee is hereby granted,
228
+ provided that the above copyright notice appear in all copies and that
229
+ both that copyright notice and this permission notice appear in
230
+ supporting documentation, and that the name of the copyright holder not be
231
+ used in advertising or publicity pertaining to distribution of the
232
+ software without specific, written prior permission.
233
+ .
234
+ Tom Lord DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
235
+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
236
+ EVENT SHALL TOM LORD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
237
+ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
238
+ USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
239
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
240
+ PERFORMANCE OF THIS SOFTWARE.
241
+
242
+ Files: posix/rxspencer/*
243
+ Copyright: 1992, 1993, 1994, 1997 Henry Spencer
244
+ License: BSD-like-Spencer
245
+ This software is not subject to any license of the American Telephone
246
+ and Telegraph Company or of the Regents of the University of California.
247
+ .
248
+ Permission is granted to anyone to use this software for any purpose on
249
+ any computer system, and to alter it and redistribute it, subject
250
+ to the following restrictions:
251
+ .
252
+ 1. The author is not responsible for the consequences of use of this
253
+ software, no matter how awful, even if they arise from flaws in it.
254
+ .
255
+ 2. The origin of this software must not be misrepresented, either by
256
+ explicit claim or by omission. Since few users ever read sources,
257
+ credits must appear in the documentation.
258
+ .
259
+ 3. Altered versions must be plainly marked as such, and must not be
260
+ misrepresented as being the original software. Since few users
261
+ ever read sources, credits must appear in the documentation.
262
+ .
263
+ 4. This notice may not be removed or altered.
264
+
265
+ Files: posix/PCRE.tests
266
+ Copyright: 1997-2003 University of Cambridge
267
+ License: PCRE
268
+
269
+ Files: sysdeps/unix/sysv/linux/net/if_ppp.h
270
+ Copyright: 1989 Carnegie Mellon University
271
+ License: BSD-3-clause-Carnegie
272
+
273
+ Files:
274
+ localedata/unicode-gen/unicode-license.txt
275
+ localedata/unicode-gen/UnicodeData.txt
276
+ Copyright: 1991-2024 Unicode, Inc.
277
+ License: Unicode-DFS-2016
278
+
279
+ Files: posix/BOOST.tests
280
+ License: BSL-1.0
281
+ Copyright: 2004 John Maddock
282
+ Comment: Tests taken from BOOST testsuite and adapted to glibc regex.
283
+
284
+ Files:
285
+ math/s_ldexp_template.c
286
+ math/s_nextafter.c
287
+ math/s_nexttowardf.c
288
+ math/w_cosh_compat.c
289
+ math/w_coshf_compat.c
290
+ math/w_coshl_compat.c
291
+ math/w_expl_compat.c
292
+ math/w_hypot_compat.c
293
+ math/w_hypotf_compat.c
294
+ math/w_hypotl_compat.c
295
+ math/w_jnl_compat.c
296
+ math/w_lgamma_main.c
297
+ math/w_lgamma_r_compat.c
298
+ math/w_lgammaf_main.c
299
+ math/w_lgammaf_r_compat.c
300
+ math/w_lgammal_main.c
301
+ math/w_lgammal_r_compat.c
302
+ math/w_sinh_compat.c
303
+ math/w_sinhf_compat.c
304
+ math/w_sinhl_compat.c
305
+ math/w_tgamma_compat.c
306
+ math/w_tgammaf_compat.c
307
+ math/w_tgammal_compat.c
308
+ sysdeps/generic/math_private.h
309
+ sysdeps/i386/fpu/s_nextafterl.c
310
+ sysdeps/i386/fpu/s_nexttoward.c
311
+ sysdeps/i386/fpu/s_nexttowardf.c
312
+ sysdeps/ieee754/dbl-64/e_cosh.c
313
+ sysdeps/ieee754/dbl-64/e_ilogb.c
314
+ sysdeps/ieee754/dbl-64/e_j0.c
315
+ sysdeps/ieee754/dbl-64/e_j1.c
316
+ sysdeps/ieee754/dbl-64/e_jn.c
317
+ sysdeps/ieee754/dbl-64/e_log10.c
318
+ sysdeps/ieee754/dbl-64/e_sinh.c
319
+ sysdeps/ieee754/dbl-64/k_rem_pio2.c
320
+ sysdeps/ieee754/dbl-64/s_ceil.c
321
+ sysdeps/ieee754/dbl-64/s_copysign.c
322
+ sysdeps/ieee754/dbl-64/s_expm1.c
323
+ sysdeps/ieee754/dbl-64/s_fabs.c
324
+ sysdeps/ieee754/dbl-64/s_finite.c
325
+ sysdeps/ieee754/dbl-64/s_isnan.c
326
+ sysdeps/ieee754/dbl-64/s_log1p.c
327
+ sysdeps/ieee754/dbl-64/s_modf.c
328
+ sysdeps/ieee754/dbl-64/s_nearbyint.c
329
+ sysdeps/ieee754/dbl-64/s_rint.c
330
+ sysdeps/ieee754/dbl-64/s_scalbln.c
331
+ sysdeps/ieee754/dbl-64/s_scalbn.c
332
+ sysdeps/ieee754/dbl-64/s_tanh.c
333
+ sysdeps/ieee754/flt-32/e_ilogbf.c
334
+ sysdeps/ieee754/flt-32/e_j0f.c
335
+ sysdeps/ieee754/flt-32/e_j1f.c
336
+ sysdeps/ieee754/flt-32/e_jnf.c
337
+ sysdeps/ieee754/flt-32/e_remainderf.c
338
+ sysdeps/ieee754/flt-32/e_sqrtf.c
339
+ sysdeps/ieee754/flt-32/s_ceilf.c
340
+ sysdeps/ieee754/flt-32/s_copysignf.c
341
+ sysdeps/ieee754/flt-32/s_fabsf.c
342
+ sysdeps/ieee754/flt-32/s_finitef.c
343
+ sysdeps/ieee754/flt-32/s_floorf.c
344
+ sysdeps/ieee754/flt-32/s_frexpf.c
345
+ sysdeps/ieee754/flt-32/s_isnanf.c
346
+ sysdeps/ieee754/flt-32/s_logbf.c
347
+ sysdeps/ieee754/flt-32/s_modff.c
348
+ sysdeps/ieee754/flt-32/s_nearbyintf.c
349
+ sysdeps/ieee754/flt-32/s_nextafterf.c
350
+ sysdeps/ieee754/flt-32/s_rintf.c
351
+ sysdeps/ieee754/flt-32/s_scalblnf.c
352
+ sysdeps/ieee754/flt-32/s_scalbnf.c
353
+ sysdeps/ieee754/k_standard.c
354
+ sysdeps/ieee754/ldbl-128/e_atan2l.c
355
+ sysdeps/ieee754/ldbl-128/e_atanhl.c
356
+ sysdeps/ieee754/ldbl-128/e_fmodl.c
357
+ sysdeps/ieee754/ldbl-128/e_ilogbl.c
358
+ sysdeps/ieee754/ldbl-128/e_remainderl.c
359
+ sysdeps/ieee754/ldbl-128/s_asinhl.c
360
+ sysdeps/ieee754/ldbl-128/s_ceill.c
361
+ sysdeps/ieee754/ldbl-128/s_copysignl.c
362
+ sysdeps/ieee754/ldbl-128/s_cosl.c
363
+ sysdeps/ieee754/ldbl-128/s_fabsl.c
364
+ sysdeps/ieee754/ldbl-128/s_finitel.c
365
+ sysdeps/ieee754/ldbl-128/s_floorl.c
366
+ sysdeps/ieee754/ldbl-128/s_frexpl.c
367
+ sysdeps/ieee754/ldbl-128/s_isnanl.c
368
+ sysdeps/ieee754/ldbl-128/s_logbl.c
369
+ sysdeps/ieee754/ldbl-128/s_modfl.c
370
+ sysdeps/ieee754/ldbl-128/s_nearbyintl.c
371
+ sysdeps/ieee754/ldbl-128/s_nextafterl.c
372
+ sysdeps/ieee754/ldbl-128/s_nexttoward.c
373
+ sysdeps/ieee754/ldbl-128/s_nexttowardf.c
374
+ sysdeps/ieee754/ldbl-128/s_rintl.c
375
+ sysdeps/ieee754/ldbl-128/s_scalblnl.c
376
+ sysdeps/ieee754/ldbl-128/s_scalbnl.c
377
+ sysdeps/ieee754/ldbl-128/s_sinl.c
378
+ sysdeps/ieee754/ldbl-128/s_tanhl.c
379
+ sysdeps/ieee754/ldbl-128/s_tanl.c
380
+ sysdeps/ieee754/ldbl-128ibm/e_acoshl.c
381
+ sysdeps/ieee754/ldbl-128ibm/e_atan2l.c
382
+ sysdeps/ieee754/ldbl-128ibm/e_atanhl.c
383
+ sysdeps/ieee754/ldbl-128ibm/e_coshl.c
384
+ sysdeps/ieee754/ldbl-128ibm/e_fmodl.c
385
+ sysdeps/ieee754/ldbl-128ibm/e_hypotl.c
386
+ sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c
387
+ sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
388
+ sysdeps/ieee754/ldbl-128ibm/e_sinhl.c
389
+ sysdeps/ieee754/ldbl-128ibm/s_asinhl.c
390
+ sysdeps/ieee754/ldbl-128ibm/s_copysignl.c
391
+ sysdeps/ieee754/ldbl-128ibm/s_cosl.c
392
+ sysdeps/ieee754/ldbl-128ibm/s_fabsl.c
393
+ sysdeps/ieee754/ldbl-128ibm/s_finitel.c
394
+ sysdeps/ieee754/ldbl-128ibm/s_frexpl.c
395
+ sysdeps/ieee754/ldbl-128ibm/s_isnanl.c
396
+ sysdeps/ieee754/ldbl-128ibm/s_logbl.c
397
+ sysdeps/ieee754/ldbl-128ibm/s_modfl.c
398
+ sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c
399
+ sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c
400
+ sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c
401
+ sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c
402
+ sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c
403
+ sysdeps/ieee754/ldbl-128ibm/s_sinl.c
404
+ sysdeps/ieee754/ldbl-128ibm/s_tanhl.c
405
+ sysdeps/ieee754/ldbl-128ibm/s_tanl.c
406
+ sysdeps/ieee754/ldbl-96/e_acoshl.c
407
+ sysdeps/ieee754/ldbl-96/e_atanhl.c
408
+ sysdeps/ieee754/ldbl-96/e_coshl.c
409
+ sysdeps/ieee754/ldbl-96/e_sinhl.c
410
+ sysdeps/ieee754/ldbl-96/s_asinhl.c
411
+ sysdeps/ieee754/ldbl-96/s_copysignl.c
412
+ sysdeps/ieee754/ldbl-96/s_cosl.c
413
+ sysdeps/ieee754/ldbl-96/s_frexpl.c
414
+ sysdeps/ieee754/ldbl-96/s_modfl.c
415
+ sysdeps/ieee754/ldbl-96/s_nexttoward.c
416
+ sysdeps/ieee754/ldbl-96/s_nexttowardf.c
417
+ sysdeps/ieee754/ldbl-96/s_scalblnl.c
418
+ sysdeps/ieee754/ldbl-96/s_sinl.c
419
+ sysdeps/ieee754/ldbl-96/s_tanhl.c
420
+ sysdeps/ieee754/ldbl-96/s_tanl.c
421
+ sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c
422
+ sysdeps/ieee754/s_lib_version.c
423
+ sysdeps/ieee754/s_matherr.c
424
+ sysdeps/m68k/m680x0/fpu/s_logbl.c
425
+ sysdeps/m68k/m680x0/fpu/s_nextafterl.c
426
+ sysdeps/x86/fpu/s_isnanl.c
427
+ Copyright: 1993 by Sun Microsystems, Inc.
428
+ License: SunPro
429
+ Comment: Files from Sun fdlibm
430
+
431
+ Files:
432
+ sysdeps/ieee754/dbl-64/s_floor.c
433
+ sysdeps/ieee754/k_standardl.c
434
+ sysdeps/ieee754/ldbl-128/e_acosl.c
435
+ sysdeps/ieee754/ldbl-128/e_asinl.c
436
+ sysdeps/ieee754/ldbl-128/e_coshl.c
437
+ sysdeps/ieee754/ldbl-128/e_jnl.c
438
+ sysdeps/ieee754/ldbl-128/e_powl.c
439
+ sysdeps/ieee754/ldbl-128/e_sinhl.c
440
+ sysdeps/ieee754/ldbl-128/k_tanl.c
441
+ sysdeps/ieee754/ldbl-128/s_erfl.c
442
+ sysdeps/ieee754/ldbl-128ibm/e_acosl.c
443
+ sysdeps/ieee754/ldbl-128ibm/e_asinl.c
444
+ sysdeps/ieee754/ldbl-128ibm/e_jnl.c
445
+ sysdeps/ieee754/ldbl-128ibm/e_powl.c
446
+ sysdeps/ieee754/ldbl-128ibm/k_tanl.c
447
+ sysdeps/ieee754/ldbl-128ibm/s_erfl.c
448
+ sysdeps/ieee754/ldbl-96/e_asinl.c
449
+ sysdeps/ieee754/ldbl-96/e_j0l.c
450
+ sysdeps/ieee754/ldbl-96/e_j1l.c
451
+ sysdeps/ieee754/ldbl-96/e_jnl.c
452
+ sysdeps/ieee754/ldbl-96/e_lgammal_r.c
453
+ sysdeps/ieee754/ldbl-96/k_tanl.c
454
+ sysdeps/ieee754/ldbl-96/s_erfl.c
455
+ Copyright:
456
+ 1993 by Sun Microsystems, Inc.
457
+ 1984, 1991, 2001 by Stephen L. Moshier
458
+ 2011-2026 Free Software Foundation, Inc.
459
+ 2012-2026 Free Software Foundation, Inc.
460
+ License: LGPL-2.1+ and SunPro
461
+
462
+ Files:
463
+ sysdeps/ieee754/dbl-64/ddcoremath.h
464
+ sysdeps/ieee754/dbl-64/e_acosh.c
465
+ sysdeps/ieee754/dbl-64/e_atanh.c
466
+ sysdeps/ieee754/dbl-64/e_gamma_r.c
467
+ sysdeps/ieee754/dbl-64/e_lgamma_r.c
468
+ sysdeps/ieee754/dbl-64/s_asincosh_data.c
469
+ sysdeps/ieee754/dbl-64/s_asincosh_data.h
470
+ sysdeps/ieee754/dbl-64/s_asinh.c
471
+ sysdeps/ieee754/dbl-64/s_atanh_data.c
472
+ sysdeps/ieee754/dbl-64/s_atanh_data.h
473
+ sysdeps/ieee754/dbl-64/s_erf.c
474
+ sysdeps/ieee754/dbl-64/s_erf_common.c
475
+ sysdeps/ieee754/dbl-64/s_erf_common.h
476
+ sysdeps/ieee754/dbl-64/s_erf_data.c
477
+ sysdeps/ieee754/dbl-64/s_erf_data.h
478
+ sysdeps/ieee754/dbl-64/s_erfc.c
479
+ sysdeps/ieee754/dbl-64/s_erfc_data.c
480
+ sysdeps/ieee754/dbl-64/s_erfc_data.h
481
+ sysdeps/ieee754/flt-32/e_acosf.c
482
+ sysdeps/ieee754/flt-32/e_acoshf.c
483
+ sysdeps/ieee754/flt-32/e_asinf.c
484
+ sysdeps/ieee754/flt-32/e_atan2f.c
485
+ sysdeps/ieee754/flt-32/e_atanhf.c
486
+ sysdeps/ieee754/flt-32/e_coshf.c
487
+ sysdeps/ieee754/flt-32/e_gammaf_r.c
488
+ sysdeps/ieee754/flt-32/e_lgammaf_r.c
489
+ sysdeps/ieee754/flt-32/e_log10f.c
490
+ sysdeps/ieee754/flt-32/e_sincoshf_data.c
491
+ sysdeps/ieee754/flt-32/e_sincoshf_data.h
492
+ sysdeps/ieee754/flt-32/e_sinhf.c
493
+ sysdeps/ieee754/flt-32/s_acospif.c
494
+ sysdeps/ieee754/flt-32/s_asincosf_data.c
495
+ sysdeps/ieee754/flt-32/s_asincosf_data.h
496
+ sysdeps/ieee754/flt-32/s_asincoshf_data.c
497
+ sysdeps/ieee754/flt-32/s_asincoshf_data.h
498
+ sysdeps/ieee754/flt-32/s_asincospif_data.c
499
+ sysdeps/ieee754/flt-32/s_asincospif_data.h
500
+ sysdeps/ieee754/flt-32/s_asinhf.c
501
+ sysdeps/ieee754/flt-32/s_asinpif.c
502
+ sysdeps/ieee754/flt-32/s_atan2pif.c
503
+ sysdeps/ieee754/flt-32/s_atanf.c
504
+ sysdeps/ieee754/flt-32/s_atanpif.c
505
+ sysdeps/ieee754/flt-32/s_cbrtf.c
506
+ sysdeps/ieee754/flt-32/s_cospif.c
507
+ sysdeps/ieee754/flt-32/s_erfcf.c
508
+ sysdeps/ieee754/flt-32/s_erff.c
509
+ sysdeps/ieee754/flt-32/s_exp10m1f.c
510
+ sysdeps/ieee754/flt-32/s_exp2m1f.c
511
+ sysdeps/ieee754/flt-32/s_expm1f.c
512
+ sysdeps/ieee754/flt-32/s_log10p1f.c
513
+ sysdeps/ieee754/flt-32/s_log1pf.c
514
+ sysdeps/ieee754/flt-32/s_log2p1f.c
515
+ sysdeps/ieee754/flt-32/s_sincospif_data.c
516
+ sysdeps/ieee754/flt-32/s_sincospif_data.h
517
+ sysdeps/ieee754/flt-32/s_sinpif.c
518
+ sysdeps/ieee754/flt-32/s_tanf.c
519
+ sysdeps/ieee754/flt-32/s_tanhf.c
520
+ sysdeps/ieee754/flt-32/s_tanpif.c
521
+ Copyright: 2022-2026 Alexei Sibidanov and Paul Zimmermann
522
+ License: CORE-MATH
523
+
524
+ Files:
525
+ gmon/gmon.c
526
+ gmon/mcount.c
527
+ gmon/prof-freq.c
528
+ gmon/sys/gmon.h
529
+ inet/arpa/ftp.h
530
+ inet/arpa/telnet.h
531
+ inet/arpa/tftp.h
532
+ inet/inet_lnaof.c
533
+ inet/inet_mkadr.c
534
+ inet/inet_netof.c
535
+ inet/protocols/routed.h
536
+ inet/protocols/rwhod.h
537
+ inet/protocols/talkd.h
538
+ inet/protocols/timed.h
539
+ inet/rexec.c
540
+ inet/ruserpass.c
541
+ login/login_tty.c
542
+ misc/daemon.c
543
+ misc/fstab.h
544
+ misc/getttyent.c
545
+ misc/getusershell.c
546
+ misc/sys/queue.h
547
+ misc/sys/syslog.h
548
+ misc/sysexits.h
549
+ misc/syslog.c
550
+ misc/ttyent.h
551
+ misc/ttyslot.c
552
+ resolv/arpa/nameser_compat.h
553
+ sysdeps/generic/netinet/tcp.h
554
+ sysdeps/generic/paths.h
555
+ sysdeps/generic/sys/ttydefaults.h
556
+ sysdeps/gnu/netinet/tcp.h
557
+ sysdeps/unix/sysv/linux/paths.h
558
+ sysdeps/unix/sysv/linux/sys/ttydefaults.h
559
+ termios/sys/ttychars.h
560
+ Copyright: 1980-2011 Regents of the University of California
561
+ License: BSD-3-clause-Berkeley
562
+ Comment: Code incorporated from 4.4 BSD
563
+
564
+ Files: inet/rcmd.c
565
+ Copyright:
566
+ 1998 WIDE Project
567
+ 1983, 1993, 1994 The Regents of the University of California
568
+ License: BSD-3-clause-Berkeley and BSD-3-clause-WIDE
569
+
570
+ Files:
571
+ inet/inet_net.c
572
+ inet/netinet/igmp.h
573
+ io/fts.c
574
+ io/fts.h
575
+ libio/filedoalloc.c
576
+ libio/wfiledoalloc.c
577
+ stdlib/div.c
578
+ stdlib/random.c
579
+ stdlib/random_r.c
580
+ sysdeps/gnu/netinet/udp.h
581
+ sysdeps/mach/hurd/bits/param.h
582
+ sysdeps/unix/sysv/linux/netinet/if_ether.h
583
+ sysdeps/unix/sysv/linux/sys/quota.h
584
+ Copyright:
585
+ 1982-1994 Regents of the University of California
586
+ 1991-2026 Free Software Foundation, Inc.
587
+ 1988 Stephen Deering
588
+ License: BSD-3-clause-Berkeley and LGPL-2.1+
589
+ Comment: Code incorporated from 4.4 BSD
590
+
591
+ Files: support/bundled/linux/include/uapi/linux/fuse.h
592
+ Copyright: 2001-2007 Miklos Szeredi
593
+ License: BSD-2-clause or GPL-2
594
+
595
+ Files:
596
+ inet/bindresvport.c
597
+ inet/rpc/netdb.h
598
+ nis/rpcsvc/nis.h
599
+ nis/rpcsvc/nis_callback.h
600
+ nis/rpcsvc/nis_tags.h
601
+ nis/rpcsvc/yp.h
602
+ nis/rpcsvc/ypupd.h
603
+ nis/yp_xdr.c
604
+ nis/ypupdate_xdr.c
605
+ sunrpc/auth_des.c
606
+ sunrpc/auth_none.c
607
+ sunrpc/auth_unix.c
608
+ sunrpc/authdes_prot.c
609
+ sunrpc/authuxprot.c
610
+ sunrpc/clnt_gen.c
611
+ sunrpc/clnt_perr.c
612
+ sunrpc/clnt_raw.c
613
+ sunrpc/clnt_simp.c
614
+ sunrpc/clnt_tcp.c
615
+ sunrpc/clnt_udp.c
616
+ sunrpc/clnt_unix.c
617
+ sunrpc/des_crypt.c
618
+ sunrpc/des_soft.c
619
+ sunrpc/get_myaddr.c
620
+ sunrpc/getrpcport.c
621
+ sunrpc/key_call.c
622
+ sunrpc/key_prot.c
623
+ sunrpc/openchild.c
624
+ sunrpc/pm_getmaps.c
625
+ sunrpc/pm_getport.c
626
+ sunrpc/pmap_clnt.c
627
+ sunrpc/pmap_prot.c
628
+ sunrpc/pmap_prot2.c
629
+ sunrpc/pmap_rmt.c
630
+ sunrpc/rpc/auth.h
631
+ sunrpc/rpc/auth_unix.h
632
+ sunrpc/rpc/clnt.h
633
+ sunrpc/rpc/des_crypt.h
634
+ sunrpc/rpc/key_prot.h
635
+ sunrpc/rpc/pmap_clnt.h
636
+ sunrpc/rpc/pmap_prot.h
637
+ sunrpc/rpc/pmap_rmt.h
638
+ sunrpc/rpc/rpc.h
639
+ sunrpc/rpc/rpc_des.h
640
+ sunrpc/rpc/rpc_msg.h
641
+ sunrpc/rpc/svc.h
642
+ sunrpc/rpc/svc_auth.h
643
+ sunrpc/rpc/types.h
644
+ sunrpc/rpc/xdr.h
645
+ sunrpc/rpc_cmsg.c
646
+ sunrpc/rpc_common.c
647
+ sunrpc/rpc_dtable.c
648
+ sunrpc/rpc_prot.c
649
+ sunrpc/rtime.c
650
+ sunrpc/svc.c
651
+ sunrpc/svc_auth.c
652
+ sunrpc/svc_authux.c
653
+ sunrpc/svc_raw.c
654
+ sunrpc/svc_run.c
655
+ sunrpc/svc_simple.c
656
+ sunrpc/svc_tcp.c
657
+ sunrpc/svc_udp.c
658
+ sunrpc/svc_unix.c
659
+ sunrpc/svcauth_des.c
660
+ sunrpc/xcrypt.c
661
+ sunrpc/xdr.c
662
+ sunrpc/xdr_array.c
663
+ sunrpc/xdr_float.c
664
+ sunrpc/xdr_mem.c
665
+ sunrpc/xdr_rec.c
666
+ sunrpc/xdr_ref.c
667
+ sunrpc/xdr_sizeof.c
668
+ sunrpc/xdr_stdio.c
669
+ Copyright: 2010, Oracle America, Inc.
670
+ License: BSD-3-clause-Oracle
671
+ Comment: Sun RPC support (from rpcsrc-4.0)
672
+
673
+ Files:
674
+ resolv/compat-gethnamaddr.c
675
+ resolv/mapv4v6addr.h
676
+ Copyright:
677
+ 1985, 1988, 1993 The Regents of the University of California
678
+ 1993 by Digital Equipment Corporation
679
+ License: BSD-3-clause-Berkeley and DEC
680
+ Comment: DNS resolver code, taken from BIND 4.9.5
681
+
682
+ Files: resolv/res_debug.c
683
+ Copyright:
684
+ 1985 The Regents of the University of California
685
+ 1993 by Digital Equipment Corporation
686
+ 1995 IBM Corporation
687
+ 1996-1999 by Internet Software Consortium
688
+ License: BSD-3-clause-Berkeley and DEC and IBM and ISC
689
+ Comment: DNS resolver code, taken from BIND 4.9.5
690
+
691
+ Files: resolv/res_query.c
692
+ Copyright:
693
+ 1988, 1993 The Regents of the University of California
694
+ 1993 by Digital Equipment Corporation
695
+ 1996-1999 by Internet Software Consortium
696
+ License: BSD-3-clause-Berkeley and DEC and ISC
697
+ Comment: DNS resolver code, taken from BIND 4.9.5
698
+
699
+ Files:
700
+ resolv/dn_comp.c
701
+ resolv/dn_expand.c
702
+ resolv/dn_skipname.c
703
+ resolv/inet_addr.c
704
+ resolv/res-close.c
705
+ resolv/res-name-checking.c
706
+ resolv/res-putget.c
707
+ resolv/res_context_hostalias.c
708
+ resolv/res_init.c
709
+ resolv/res_isourserver.c
710
+ resolv/res_mkquery.c
711
+ resolv/res_nameinquery.c
712
+ resolv/res_queriesmatch.c
713
+ resolv/res_randomid.c
714
+ resolv/res_send.c
715
+ Copyright:
716
+ 1983, 1985, 1988, 1989, 1990, 1993 The Regents of the University of California
717
+ 1993 by Digital Equipment Corporation.
718
+ 1995-2026 Free Software Foundation, Inc.
719
+ 1996-1999 by Internet Software Consortium.
720
+ License: BSD-3-clause-Berkeley and DEC and ISC and LGPL-2.1+
721
+ Comment: DNS resolver code, taken from BIND 4.9.5
722
+
723
+ Files: resolv/nss_dns/dns-host.c
724
+ Copyright:
725
+ 1996-2026 Free Software Foundation, Inc.
726
+ 1985, 1988, 1993 The Regents of the University of California
727
+ 1993 by Digital Equipment Corporation
728
+ License: BSD-3-clause-Berkeley and DEC and LGPL-2.1+
729
+ Comment: DNS resolver code, taken from BIND 4.9.5
730
+
731
+ Files:
732
+ resolv/arpa/nameser.h
733
+ resolv/herror.c
734
+ resolv/resolv.h
735
+ Copyright:
736
+ 1983, 1987, 1989, 1993 The Regents of the University of California
737
+ 1996-1999 by Internet Software Consortium.
738
+ 2004 by Internet Systems Consortium, Inc. ("ISC")
739
+ License: BSD-3-clause-Berkeley and ISC
740
+ Comment: DNS resolver code, taken from BIND 4.9.5
741
+
742
+ Files: resolv/nss_dns/dns-network.c
743
+ Copyright:
744
+ 1993 Carlos Leandro and Rui Salgueiro Dep. Matematica Universidade de Coimbra, Portugal, Europe
745
+ 1983, 1993 The Regents of the University of California
746
+ 1996-2026 Free Software Foundation, Inc.
747
+ License: BSD-3-clause-Berkeley and LGPL-2.1+ and Univ-Coimbra
748
+ Comment: DNS resolver code, taken from BIND 4.9.5
749
+
750
+ Files: resolv/base64.c
751
+ Copyright:
752
+ 1995 IBM Corporation
753
+ 1996-1999 by Internet Software Consortium
754
+ License: IBM and ISC
755
+ Comment: DNS resolver code, taken from BIND 4.9.5
756
+
757
+ Files:
758
+ resolv/inet_net_ntop.c
759
+ resolv/inet_net_pton.c
760
+ resolv/inet_neta.c
761
+ resolv/inet_ntop.c
762
+ resolv/ns_date.c
763
+ resolv/ns_makecanon.c
764
+ resolv/ns_name.c
765
+ resolv/ns_name_compress.c
766
+ resolv/ns_name_ntop.c
767
+ resolv/ns_name_pack.c
768
+ resolv/ns_name_pton.c
769
+ resolv/ns_name_skip.c
770
+ resolv/ns_name_uncompress.c
771
+ resolv/ns_name_unpack.c
772
+ resolv/ns_netint.c
773
+ resolv/ns_parse.c
774
+ resolv/ns_print.c
775
+ resolv/ns_samedomain.c
776
+ resolv/ns_samename.c
777
+ resolv/ns_ttl.c
778
+ resolv/nsap_addr.c
779
+ Copyright:
780
+ 1995-1999 by Internet Software Consortium.
781
+ 2004 by Internet Systems Consortium, Inc. ("ISC")
782
+ License: ISC
783
+ Comment: DNS resolver code, taken from BIND 4.9.5
784
+
785
+ Files:
786
+ hesiod/hesiod.c
787
+ hesiod/hesiod.h
788
+ hesiod/hesiod_p.h
789
+ resolv/compat-hooks.c
790
+ resolv/inet_pton.c
791
+ resolv/res_data.c
792
+ resolv/res_libc.c
793
+ Copyright:
794
+ 1996-2026 Free Software Foundation, Inc.
795
+ 1995-1999 by Internet Software Consortium
796
+ License: ISC and LGPL-2.1+
797
+ Comment: DNS resolver code, taken from BIND 4.9.5
798
+
799
+ Files:
800
+ localedata/locales/eo
801
+ localedata/locales/kk_KZ
802
+ localedata/locales/syr
803
+ localedata/locales/tok
804
+ Copyright: None
805
+ License: public-domain
806
+ These files are in Public Domain.
807
+
808
+ Files:
809
+ timezone/africa
810
+ timezone/antarctica
811
+ timezone/asia
812
+ timezone/australasia
813
+ timezone/backward
814
+ timezone/etcetera
815
+ timezone/europe
816
+ timezone/factory
817
+ timezone/iso3166.tab
818
+ timezone/leapseconds
819
+ timezone/northamerica
820
+ timezone/pacificnew
821
+ timezone/private.h
822
+ timezone/simplebackw
823
+ timezone/solar87
824
+ timezone/solar88
825
+ timezone/solar89
826
+ timezone/southamerica
827
+ timezone/systemv
828
+ timezone/tzfile.h
829
+ timezone/tzselect.ksh
830
+ timezone/yearistype
831
+ timezone/zdump.c
832
+ timezone/zic.c
833
+ timezone/zone.tab
834
+ Copyright: The Internet Assigned Numbers Authority (IANA)
835
+ Comment: tzcode and tzdata packages by Arthur David Olson et.al.
836
+ License: public-domain
837
+ This database is in the public domain.
838
+
839
+ Files: debian/*
840
+ Copyright:
841
+ 2000-2004 Ben Collins <bcollins@debian.org>
842
+ 2002-2004 Jeff Bailey <jbailey@debian.org>
843
+ 2002-2005 Philip Blundell <pb@debian.org>
844
+ 2002-2006 Daniel Jacobowitz <dan@debian.org>
845
+ 2002-2006 GOTO Masanori <gotom@debian.org>
846
+ 2006 Denis Barbier <barbier@debian.org>
847
+ 2006-2026 Aurelien Jarno <aurel32@debian.org>
848
+ 2007-2008 Pierre Habouzit <madcoder@debian.org>
849
+ 2010-2013 Clint Adams <clint@debian.org>
850
+ 2012-2019 Adam Conrad <adconrad@0c3.net>
851
+ 2016-2026 Samuel Thibault <sthibault@debian.org>
852
+ License: GPL-2+
853
+
854
+ License: BSD-2-clause
855
+ Redistribution and use in source and binary forms, with or without
856
+ modification, are permitted provided that the following conditions
857
+ are met:
858
+ 1. Redistributions of source code must retain the above copyright
859
+ notice, this list of conditions and the following disclaimer.
860
+ 2. Redistributions in binary form must reproduce the above copyright
861
+ notice, this list of conditions and the following disclaimer in the
862
+ documentation and/or other materials provided with the distribution.
863
+ .
864
+ THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
865
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
866
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
867
+ ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
868
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
869
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
870
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
871
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
872
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
873
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
874
+ SUCH DAMAGE.
875
+
876
+ License: BSD-3-clause-Berkeley
877
+ Redistribution and use in source and binary forms, with or without
878
+ modification, are permitted provided that the following conditions
879
+ are met:
880
+ .
881
+ 1. Redistributions of source code must retain the above copyright
882
+ notice, this list of conditions and the following disclaimer.
883
+ 2. Redistributions in binary form must reproduce the above copyright
884
+ notice, this list of conditions and the following disclaimer in the
885
+ documentation and/or other materials provided with the distribution.
886
+ 3. [This condition was removed.]
887
+ 4. Neither the name of the University nor the names of its contributors
888
+ may be used to endorse or promote products derived from this software
889
+ without specific prior written permission.
890
+ .
891
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
892
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
893
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
894
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
895
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
896
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
897
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
898
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
899
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
900
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
901
+ SUCH DAMAGE.
902
+
903
+ License: BSD-3-clause-Carnegie
904
+ Redistribution and use in source and binary forms, with or without
905
+ modification, are permitted provided that the following conditions
906
+ are met:
907
+ 1. Redistributions of source code must retain the above copyright
908
+ notice, this list of conditions and the following disclaimer.
909
+ 2. Redistributions in binary form must reproduce the above copyright
910
+ notice, this list of conditions and the following disclaimer in the
911
+ documentation and/or other materials provided with the distribution.
912
+ 3. Neither the name of the University nor the names of its contributors
913
+ may be used to endorse or promote products derived from this software
914
+ without specific prior written permission.
915
+ .
916
+ THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY AND
917
+ CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
918
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
919
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
920
+ IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE FOR ANY
921
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
922
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
923
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
924
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
925
+ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
926
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
927
+ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
928
+
929
+ License: BSD-3-clause-Oracle
930
+ Redistribution and use in source and binary forms, with or without
931
+ modification, are permitted provided that the following conditions are
932
+ met:
933
+ .
934
+ * Redistributions of source code must retain the above copyright
935
+ notice, this list of conditions and the following disclaimer.
936
+ * Redistributions in binary form must reproduce the above
937
+ copyright notice, this list of conditions and the following
938
+ disclaimer in the documentation and/or other materials
939
+ provided with the distribution.
940
+ * Neither the name of the "Oracle America, Inc." nor the names of its
941
+ contributors may be used to endorse or promote products derived
942
+ from this software without specific prior written permission.
943
+ .
944
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
945
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
946
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
947
+ FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
948
+ COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
949
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
950
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
951
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
952
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
953
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
954
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
955
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
956
+
957
+ License: BSD-3-clause-WIDE
958
+ Redistribution and use in source and binary forms, with or without
959
+ modification, are permitted provided that the following conditions
960
+ are met:
961
+ 1. Redistributions of source code must retain the above copyright
962
+ notice, this list of conditions and the following disclaimer.
963
+ 2. Redistributions in binary form must reproduce the above copyright
964
+ notice, this list of conditions and the following disclaimer in the
965
+ documentation and/or other materials provided with the distribution.
966
+ 3. Neither the name of the project nor the names of its contributors
967
+ may be used to endorse or promote products derived from this software
968
+ without specific prior written permission.
969
+ .
970
+ THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
971
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
972
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
973
+ ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
974
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
975
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
976
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
977
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
978
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
979
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
980
+ SUCH DAMAGE.
981
+
982
+ License: BSL-1.0
983
+ Boost Software License - Version 1.0 - August 17th, 2003
984
+ .
985
+ Permission is hereby granted, free of charge, to any person or organization
986
+ obtaining a copy of the software and accompanying documentation covered by
987
+ this license (the "Software") to use, reproduce, display, distribute,
988
+ execute, and transmit the Software, and to prepare derivative works of the
989
+ Software, and to permit third-parties to whom the Software is furnished to
990
+ do so, all subject to the following:
991
+ .
992
+ The copyright notices in the Software and this entire statement, including
993
+ the above license grant, this restriction and the following disclaimer,
994
+ must be included in all copies of the Software, in whole or in part, and
995
+ all derivative works of the Software, unless such copies or derivative
996
+ works are solely in the form of machine-executable object code generated by
997
+ a source language processor.
998
+ .
999
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1000
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1001
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
1002
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
1003
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
1004
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1005
+ DEALINGS IN THE SOFTWARE.
1006
+
1007
+ License: Carnegie
1008
+ Permission to use, copy, modify and distribute this software and its
1009
+ documentation is hereby granted, provided that both the copyright
1010
+ notice and this permission notice appear in all copies of the
1011
+ software, derivative works or modified versions, and any portions
1012
+ thereof, and that both notices appear in supporting documentation.
1013
+ .
1014
+ CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
1015
+ CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
1016
+ ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1017
+ .
1018
+ Carnegie Mellon requests users of this software to return to
1019
+ .
1020
+ Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
1021
+ School of Computer Science
1022
+ Carnegie Mellon University
1023
+ Pittsburgh PA 15213-3890
1024
+ .
1025
+ any improvements or extensions that they make and grant Carnegie Mellon
1026
+ the rights to redistribute these changes.
1027
+
1028
+ License: Univ-Coimbra
1029
+ Permission to use, copy, modify, and distribute this software for any
1030
+ purpose with or without fee is hereby granted, provided that the above
1031
+ copyright notice and this permission notice appear in all copies.
1032
+
1033
+ License: CORE-MATH
1034
+ This file is part of the CORE-MATH project
1035
+ .
1036
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1037
+ of this software and associated documentation files (the "Software"), to deal
1038
+ in the Software without restriction, including without limitation the rights
1039
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1040
+ copies of the Software, and to permit persons to whom the Software is
1041
+ furnished to do so, subject to the following conditions:
1042
+ .
1043
+ The above copyright notice and this permission notice shall be included in all
1044
+ copies or substantial portions of the Software.
1045
+ .
1046
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1047
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1048
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1049
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1050
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1051
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1052
+ SOFTWARE.
1053
+
1054
+ License: DEC
1055
+ Permission to use, copy, modify, and distribute this software for any
1056
+ purpose with or without fee is hereby granted, provided that the above
1057
+ copyright notice and this permission notice appear in all copies, and
1058
+ that the name of Digital Equipment Corporation not be used in
1059
+ advertising or publicity pertaining to distribution of the document or
1060
+ software without specific, written prior permission.
1061
+ .
1062
+ THE SOFTWARE IS PROVIDED ``AS IS'' AND DIGITAL EQUIPMENT CORP.
1063
+ DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
1064
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1065
+ DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT,
1066
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1067
+ FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1068
+ NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1069
+ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1070
+
1071
+ License: FSFAP
1072
+ Copying and distribution of this file, with or without modification,
1073
+ are permitted in any medium without royalty provided the copyright
1074
+ notice and this notice are preserved. This file is offered as-is,
1075
+ without any warranty.
1076
+
1077
+ License: GPL-2
1078
+ This file is free software; you can redistribute it and/or modify it
1079
+ under the terms of the GNU General Public License version 2 as published
1080
+ by the Free Software Foundation.
1081
+ .
1082
+ This file is distributed in the hope that it will be useful,
1083
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1084
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1085
+ GNU General Public License for more details.
1086
+ .
1087
+ You should have received a copy of the GNU Lesser General Public
1088
+ License along with the GNU C Library; if not, see
1089
+ <https://www.gnu.org/licenses/>.
1090
+ .
1091
+ On Debian systems, the complete text of the GNU General Public License
1092
+ version 2 can be found in `/usr/share/common-licenses/GPL-2'.
1093
+
1094
+ License: GPL-2+
1095
+ This file is part of the GNU C Library.
1096
+ .
1097
+ This file is free software; you can redistribute it and/or modify it
1098
+ under the terms of the GNU General Public License as published by the
1099
+ Free Software Foundation; either version 2, or (at your option) any
1100
+ later version.
1101
+ .
1102
+ The GNU C Library is distributed in the hope that it will be useful,
1103
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1104
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1105
+ Lesser General Public License for more details.
1106
+ .
1107
+ You should have received a copy of the GNU Lesser General Public
1108
+ License along with the GNU C Library; if not, see
1109
+ <https://www.gnu.org/licenses/>.
1110
+ .
1111
+ On Debian systems, the complete text of the GNU General Public License
1112
+ version 2 can be found in `/usr/share/common-licenses/GPL-2'.
1113
+
1114
+ License: GPL-2+-with-link-exception
1115
+ This file is free software; you can redistribute it and/or modify it
1116
+ under the terms of the GNU General Public License as published by the
1117
+ Free Software Foundation; either version 2, or (at your option) any
1118
+ later version.
1119
+ .
1120
+ In addition to the permissions in the GNU General Public License, the
1121
+ Free Software Foundation gives you unlimited permission to link the
1122
+ compiled version of this file into combinations with other programs,
1123
+ and to distribute those combinations without any restriction coming
1124
+ from the use of this file. (The General Public License restrictions
1125
+ do apply in other respects; for example, they cover modification of
1126
+ the file, and distribution when not linked into a combine
1127
+ executable.)
1128
+ .
1129
+ This file is distributed in the hope that it will be useful, but
1130
+ WITHOUT ANY WARRANTY; without even the implied warranty of
1131
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1132
+ General Public License for more details.
1133
+ .
1134
+ You should have received a copy of the GNU General Public License
1135
+ along with this program. If not, see
1136
+ <https://www.gnu.org/licenses/>.
1137
+ .
1138
+ On Debian systems, the complete text of the GNU General Public License
1139
+ version 2 can be found in `/usr/share/common-licenses/GPL-2'.
1140
+
1141
+ License: GPL-3+
1142
+ This program is free software: you can redistribute it and/or modify
1143
+ it under the terms of the GNU General Public License as published by
1144
+ the Free Software Foundation, either version 3 of the License, or
1145
+ (at your option) any later version.
1146
+ .
1147
+ This program is distributed in the hope that it will be useful,
1148
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1149
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1150
+ GNU General Public License for more details.
1151
+ .
1152
+ You should have received a copy of the GNU General Public License
1153
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
1154
+ .
1155
+ On Debian systems, the complete text of the GNU General Public License
1156
+ version 2 can be found in `/usr/share/common-licenses/GPL-3'.
1157
+
1158
+ License: IBM
1159
+ Permission is hereby granted, free of charge, to any person obtaining
1160
+ a copy of this software and associated documentation files (the
1161
+ 'Software'), to deal in the Software without restriction, including
1162
+ without limitation the rights to use, copy, modify, merge, publish,
1163
+ distribute, sublicense, and/or sell copies of the Software, and to
1164
+ permit persons to whom the Software is furnished to do so, subject to
1165
+ the following conditions:
1166
+ .
1167
+ The above copyright notice and this permission notice shall be
1168
+ included in all copies or substantial portions of the Software.
1169
+ .
1170
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
1171
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1172
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1173
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1174
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
1175
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1176
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1177
+
1178
+ License: Inner-Net
1179
+ The Inner Net License, Version 2.00
1180
+ .
1181
+ The author(s) grant permission for redistribution and use in source and
1182
+ binary forms, with or without modification, of the software and documentation
1183
+ provided that the following conditions are met:
1184
+ .
1185
+ 0. If you receive a version of the software that is specifically labelled
1186
+ as not being for redistribution (check the version message and/or README),
1187
+ you are not permitted to redistribute that version of the software in any
1188
+ way or form.
1189
+ 1. All terms of the all other applicable copyrights and licenses must be
1190
+ followed.
1191
+ 2. Redistributions of source code must retain the authors' copyright
1192
+ notice(s), this list of conditions, and the following disclaimer.
1193
+ 3. Redistributions in binary form must reproduce the authors' copyright
1194
+ notice(s), this list of conditions, and the following disclaimer in the
1195
+ documentation and/or other materials provided with the distribution.
1196
+ 4. [The copyright holder has authorized the removal of this clause.]
1197
+ 5. Neither the name(s) of the author(s) nor the names of its contributors
1198
+ may be used to endorse or promote products derived from this software
1199
+ without specific prior written permission.
1200
+ .
1201
+ THIS SOFTWARE IS PROVIDED BY ITS AUTHORS AND CONTRIBUTORS ``AS IS'' AND ANY
1202
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1203
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1204
+ DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY
1205
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1206
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1207
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
1208
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1209
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1210
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1211
+ .
1212
+ If these license terms cause you a real problem, contact the author.
1213
+
1214
+ License: ISC
1215
+ Permission to use, copy, modify, and distribute this software for any
1216
+ purpose with or without fee is hereby granted, provided that the above
1217
+ copyright notice and this permission notice appear in all copies.
1218
+ .
1219
+ THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
1220
+ ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
1221
+ OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
1222
+ CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
1223
+ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
1224
+ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
1225
+ ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
1226
+ SOFTWARE.
1227
+
1228
+ License: LGPL-2+
1229
+ This file is part of the GNU C Library.
1230
+ .
1231
+ The GNU C Library is free software; you can redistribute it and/or
1232
+ modify it under the terms of the GNU Library General Public License as
1233
+ published by the Free Software Foundation; either version 2 of the
1234
+ License, or (at your option) any later version.
1235
+ .
1236
+ The GNU C Library is distributed in the hope that it will be useful,
1237
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1238
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1239
+ Library General Public License for more details.
1240
+ .
1241
+ You should have received a copy of the GNU Library General Public
1242
+ License along with the GNU C Library. If not, see
1243
+ <https://www.gnu.org/licenses/>.
1244
+ .
1245
+ On Debian systems, the complete text of the GNU Library General Public
1246
+ License version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
1247
+
1248
+ License: LGPL-2.1+
1249
+ This file is part of the GNU C Library.
1250
+ .
1251
+ The GNU C Library is free software; you can redistribute it and/or
1252
+ modify it under the terms of the GNU Lesser General Public
1253
+ License as published by the Free Software Foundation; either
1254
+ version 2.1 of the License, or (at your option) any later version.
1255
+ .
1256
+ The GNU C Library is distributed in the hope that it will be useful,
1257
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1258
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1259
+ Lesser General Public License for more details.
1260
+ .
1261
+ You should have received a copy of the GNU Lesser General Public
1262
+ License along with the GNU C Library; if not, see
1263
+ <https://www.gnu.org/licenses/>.
1264
+ .
1265
+ On Debian systems, the complete text of the GNU Library General Public
1266
+ License version 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'.
1267
+
1268
+ License: LGPL-2.1+-with-link-exception
1269
+ This file is part of the GNU C Library.
1270
+ .
1271
+ The GNU C Library is free software; you can redistribute it and/or
1272
+ modify it under the terms of the GNU Lesser General Public
1273
+ License as published by the Free Software Foundation; either
1274
+ version 2.1 of the License, or (at your option) any later version.
1275
+ .
1276
+ In addition to the permissions in the GNU Lesser General Public
1277
+ License, the Free Software Foundation gives you unlimited
1278
+ permission to link the compiled version of this file into
1279
+ combinations with other programs, and to distribute those
1280
+ combinations without any restriction coming from the use of this
1281
+ file. (The Lesser General Public License restrictions do apply in
1282
+ other respects; for example, they cover modification of the file,
1283
+ and distribution when not linked into a combine executable.)
1284
+ .
1285
+ The GNU C Library is distributed in the hope that it will be useful,
1286
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1287
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1288
+ Lesser General Public License for more details.
1289
+ .
1290
+ You should have received a copy of the GNU Lesser General Public
1291
+ License along with the GNU C Library; if not, see
1292
+ <https://www.gnu.org/licenses/>.
1293
+ .
1294
+ On Debian systems, the complete text of the GNU Library General Public
1295
+ License version 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'.
1296
+
1297
+ License: LGPL-3+
1298
+ This file is part of the GNU Hurd.
1299
+ .
1300
+ The GNU Hurd is free software; you can redistribute it and/or
1301
+ modify it under the terms of the GNU Lesser General Public License
1302
+ as published by the Free Software Foundation; either version 3 of
1303
+ the License, or (at your option) any later version.
1304
+ .
1305
+ The GNU Hurd is distributed in the hope that it will be useful, but
1306
+ WITHOUT ANY WARRANTY; without even the implied warranty of
1307
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1308
+ Lesser General Public License for more details.
1309
+ .
1310
+ You should have received a copy of the GNU Lesser General Public
1311
+ License along with this program. If not, see
1312
+ <https://www.gnu.org/licenses/>.
1313
+ .
1314
+ On Debian systems, the complete text of the GNU Library General Public
1315
+ License version 3 can be found in `/usr/share/common-licenses/LGPL-3'.
1316
+
1317
+ License: PCRE
1318
+ PCRE LICENCE
1319
+ ------------
1320
+ .
1321
+ PCRE is a library of functions to support regular expressions whose syntax
1322
+ and semantics are as close as possible to those of the Perl 5 language.
1323
+ .
1324
+ Written by: Philip Hazel <ph10@cam.ac.uk>
1325
+ .
1326
+ University of Cambridge Computing Service,
1327
+ Cambridge, England. Phone: +44 1223 334714.
1328
+ .
1329
+ Copyright (c) 1997-2003 University of Cambridge
1330
+ .
1331
+ Permission is granted to anyone to use this software for any purpose on any
1332
+ computer system, and to redistribute it freely, subject to the following
1333
+ restrictions:
1334
+ .
1335
+ 1. This software is distributed in the hope that it will be useful,
1336
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1337
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1338
+ .
1339
+ 2. The origin of this software must not be misrepresented, either by
1340
+ explicit claim or by omission. In practice, this means that if you use
1341
+ PCRE in software that you distribute to others, commercially or
1342
+ otherwise, you must put a sentence like this
1343
+ .
1344
+ Regular expression support is provided by the PCRE library package,
1345
+ which is open source software, written by Philip Hazel, and copyright
1346
+ by the University of Cambridge, England.
1347
+ .
1348
+ somewhere reasonably visible in your documentation and in any relevant
1349
+ files or online help data or similar. A reference to the ftp site for
1350
+ the source, that is, to
1351
+ .
1352
+ ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
1353
+ .
1354
+ should also be given in the documentation. However, this condition is not
1355
+ intended to apply to whole chains of software. If package A includes PCRE,
1356
+ it must acknowledge it, but if package B is software that includes package
1357
+ A, the condition is not imposed on package B (unless it uses PCRE
1358
+ independently).
1359
+ .
1360
+ 3. Altered versions must be plainly marked as such, and must not be
1361
+ misrepresented as being the original software.
1362
+ .
1363
+ 4. If PCRE is embedded in any software that is released under the GNU
1364
+ General Purpose Licence (GPL), or Lesser General Purpose Licence (LGPL),
1365
+ then the terms of that licence shall supersede any condition above with
1366
+ which it is incompatible.
1367
+ .
1368
+ The documentation for PCRE, supplied in the "doc" directory, is distributed
1369
+ under the same terms as the software itself.
1370
+ .
1371
+ End
1372
+
1373
+ License: SunPro
1374
+ Developed at SunPro, a Sun Microsystems, Inc. business.
1375
+ Permission to use, copy, modify, and distribute this
1376
+ software is freely granted, provided that this notice
1377
+ is preserved.
1378
+
1379
+ License: Unicode-DFS-2016
1380
+ UNICODE LICENSE V3
1381
+ .
1382
+ COPYRIGHT AND PERMISSION NOTICE
1383
+ .
1384
+ Copyright © 1991-2024 Unicoe, Inc.
1385
+ .
1386
+ NOTICE TO USER: Carefully read the following legal agreement. BY
1387
+ DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
1388
+ SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
1389
+ TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
1390
+ DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
1391
+ .
1392
+ Permission is hereby granted, free of charge, to any person obtaining a
1393
+ copy of data files and any associated documentation (the "Data Files") or
1394
+ software and any associated documentation (the "Software") to deal in the
1395
+ Data Files or Software without restriction, including without limitation
1396
+ the rights to use, copy, modify, merge, publish, distribute, and/or sell
1397
+ copies of the Data Files or Software, and to permit persons to whom the
1398
+ Data Files or Software are furnished to do so, provided that either (a)
1399
+ this copyright and permission notice appear with all copies of the Data
1400
+ Files or Software, or (b) this copyright and permission notice appear in
1401
+ associated Documentation.
1402
+ .
1403
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
1404
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1405
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
1406
+ THIRD PARTY RIGHTS.
1407
+ .
1408
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
1409
+ BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
1410
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
1411
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
1412
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
1413
+ FILES OR SOFTWARE.
1414
+ .
1415
+ Except as contained in this notice, the name of a copyright holder shall
1416
+ not be used in advertising or otherwise to promote the sale, use or other
1417
+ dealings in these Data Files or Software without prior written
1418
+ authorization of the copyright holder.
deployment/notices/GPL-3.txt ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ <one line to give the program's name and a brief idea of what it does.>
635
+ Copyright (C) <year> <name of author>
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ <program> Copyright (C) <year> <name of author>
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <https://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
deployment/notices/ICU.txt ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2
+ X-Format: https://dep.debian.net/deps/dep5
3
+ Upstream-Name: ICU
4
+ Upstream-Contact: https://icu.unicode.org/contacts
5
+ Source: https://github.com/unicode-org/icu
6
+
7
+ Files: *
8
+ Copyright: Copyright © 1991-2022 Unicode, Inc.
9
+ License: MIT
10
+ Permission is hereby granted, free of charge, to any person
11
+ obtaining a copy of this software and associated
12
+ documentation files (the "Software"), to deal in the
13
+ Software without restriction, including without limitation
14
+ the rights to use, copy, modify, merge, publish, distribute,
15
+ sublicense, and/or sell copies of the Software, and to
16
+ permit persons to whom the Software is furnished to do so,
17
+ subject to the following conditions:
18
+ .
19
+ The above copyright notice and this permission notice shall
20
+ be included in all copies or substantial portions of the
21
+ Software.
22
+ .
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
24
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
25
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
26
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
27
+ OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
28
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
29
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+
32
+ Files: debian/*
33
+ Copyright: 2005-2015 Jay Berkenbilt <qjb@debian.org>,
34
+ 2015- Laszlo Boszormenyi (GCS) <gcs@debian.org>
35
+ License: GPL-3
36
+ This program is free software: you can redistribute it and/or modify
37
+ it under the terms of the GNU General Public License as published by
38
+ the Free Software Foundation version 3 of the License.
39
+ .
40
+ This program is distributed in the hope that it will be useful,
41
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
42
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43
+ GNU General Public License for more details.
44
+ .
45
+ You should have received a copy of the GNU General Public License
46
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
47
+ .
48
+ On Debian systems, the complete text of the GNU General Public
49
+ License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
deployment/notices/LGPL-2.1.txt ADDED
@@ -0,0 +1,501 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 2.1, February 1999
3
+
4
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
5
+ <https://fsf.org/>
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ [This is the first released version of the Lesser GPL. It also counts
10
+ as the successor of the GNU Library Public License, version 2, hence
11
+ the version number 2.1.]
12
+
13
+ Preamble
14
+
15
+ The licenses for most software are designed to take away your
16
+ freedom to share and change it. By contrast, the GNU General Public
17
+ Licenses are intended to guarantee your freedom to share and change
18
+ free software--to make sure the software is free for all its users.
19
+
20
+ This license, the Lesser General Public License, applies to some
21
+ specially designated software packages--typically libraries--of the
22
+ Free Software Foundation and other authors who decide to use it. You
23
+ can use it too, but we suggest you first think carefully about whether
24
+ this license or the ordinary General Public License is the better
25
+ strategy to use in any particular case, based on the explanations below.
26
+
27
+ When we speak of free software, we are referring to freedom of use,
28
+ not price. Our General Public Licenses are designed to make sure that
29
+ you have the freedom to distribute copies of free software (and charge
30
+ for this service if you wish); that you receive source code or can get
31
+ it if you want it; that you can change the software and use pieces of
32
+ it in new free programs; and that you are informed that you can do
33
+ these things.
34
+
35
+ To protect your rights, we need to make restrictions that forbid
36
+ distributors to deny you these rights or to ask you to surrender these
37
+ rights. These restrictions translate to certain responsibilities for
38
+ you if you distribute copies of the library or if you modify it.
39
+
40
+ For example, if you distribute copies of the library, whether gratis
41
+ or for a fee, you must give the recipients all the rights that we gave
42
+ you. You must make sure that they, too, receive or can get the source
43
+ code. If you link other code with the library, you must provide
44
+ complete object files to the recipients, so that they can relink them
45
+ with the library after making changes to the library and recompiling
46
+ it. And you must show them these terms so they know their rights.
47
+
48
+ We protect your rights with a two-step method: (1) we copyright the
49
+ library, and (2) we offer you this license, which gives you legal
50
+ permission to copy, distribute and/or modify the library.
51
+
52
+ To protect each distributor, we want to make it very clear that
53
+ there is no warranty for the free library. Also, if the library is
54
+ modified by someone else and passed on, the recipients should know
55
+ that what they have is not the original version, so that the original
56
+ author's reputation will not be affected by problems that might be
57
+ introduced by others.
58
+
59
+ Finally, software patents pose a constant threat to the existence of
60
+ any free program. We wish to make sure that a company cannot
61
+ effectively restrict the users of a free program by obtaining a
62
+ restrictive license from a patent holder. Therefore, we insist that
63
+ any patent license obtained for a version of the library must be
64
+ consistent with the full freedom of use specified in this license.
65
+
66
+ Most GNU software, including some libraries, is covered by the
67
+ ordinary GNU General Public License. This license, the GNU Lesser
68
+ General Public License, applies to certain designated libraries, and
69
+ is quite different from the ordinary General Public License. We use
70
+ this license for certain libraries in order to permit linking those
71
+ libraries into non-free programs.
72
+
73
+ When a program is linked with a library, whether statically or using
74
+ a shared library, the combination of the two is legally speaking a
75
+ combined work, a derivative of the original library. The ordinary
76
+ General Public License therefore permits such linking only if the
77
+ entire combination fits its criteria of freedom. The Lesser General
78
+ Public License permits more lax criteria for linking other code with
79
+ the library.
80
+
81
+ We call this license the "Lesser" General Public License because it
82
+ does Less to protect the user's freedom than the ordinary General
83
+ Public License. It also provides other free software developers Less
84
+ of an advantage over competing non-free programs. These disadvantages
85
+ are the reason we use the ordinary General Public License for many
86
+ libraries. However, the Lesser license provides advantages in certain
87
+ special circumstances.
88
+
89
+ For example, on rare occasions, there may be a special need to
90
+ encourage the widest possible use of a certain library, so that it becomes
91
+ a de-facto standard. To achieve this, non-free programs must be
92
+ allowed to use the library. A more frequent case is that a free
93
+ library does the same job as widely used non-free libraries. In this
94
+ case, there is little to gain by limiting the free library to free
95
+ software only, so we use the Lesser General Public License.
96
+
97
+ In other cases, permission to use a particular library in non-free
98
+ programs enables a greater number of people to use a large body of
99
+ free software. For example, permission to use the GNU C Library in
100
+ non-free programs enables many more people to use the whole GNU
101
+ operating system, as well as its variant, the GNU/Linux operating
102
+ system.
103
+
104
+ Although the Lesser General Public License is Less protective of the
105
+ users' freedom, it does ensure that the user of a program that is
106
+ linked with the Library has the freedom and the wherewithal to run
107
+ that program using a modified version of the Library.
108
+
109
+ The precise terms and conditions for copying, distribution and
110
+ modification follow. Pay close attention to the difference between a
111
+ "work based on the library" and a "work that uses the library". The
112
+ former contains code derived from the library, whereas the latter must
113
+ be combined with the library in order to run.
114
+
115
+ GNU LESSER GENERAL PUBLIC LICENSE
116
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
117
+
118
+ 0. This License Agreement applies to any software library or other
119
+ program which contains a notice placed by the copyright holder or
120
+ other authorized party saying it may be distributed under the terms of
121
+ this Lesser General Public License (also called "this License").
122
+ Each licensee is addressed as "you".
123
+
124
+ A "library" means a collection of software functions and/or data
125
+ prepared so as to be conveniently linked with application programs
126
+ (which use some of those functions and data) to form executables.
127
+
128
+ The "Library", below, refers to any such software library or work
129
+ which has been distributed under these terms. A "work based on the
130
+ Library" means either the Library or any derivative work under
131
+ copyright law: that is to say, a work containing the Library or a
132
+ portion of it, either verbatim or with modifications and/or translated
133
+ straightforwardly into another language. (Hereinafter, translation is
134
+ included without limitation in the term "modification".)
135
+
136
+ "Source code" for a work means the preferred form of the work for
137
+ making modifications to it. For a library, complete source code means
138
+ all the source code for all modules it contains, plus any associated
139
+ interface definition files, plus the scripts used to control compilation
140
+ and installation of the library.
141
+
142
+ Activities other than copying, distribution and modification are not
143
+ covered by this License; they are outside its scope. The act of
144
+ running a program using the Library is not restricted, and output from
145
+ such a program is covered only if its contents constitute a work based
146
+ on the Library (independent of the use of the Library in a tool for
147
+ writing it). Whether that is true depends on what the Library does
148
+ and what the program that uses the Library does.
149
+
150
+ 1. You may copy and distribute verbatim copies of the Library's
151
+ complete source code as you receive it, in any medium, provided that
152
+ you conspicuously and appropriately publish on each copy an
153
+ appropriate copyright notice and disclaimer of warranty; keep intact
154
+ all the notices that refer to this License and to the absence of any
155
+ warranty; and distribute a copy of this License along with the
156
+ Library.
157
+
158
+ You may charge a fee for the physical act of transferring a copy,
159
+ and you may at your option offer warranty protection in exchange for a
160
+ fee.
161
+
162
+ 2. You may modify your copy or copies of the Library or any portion
163
+ of it, thus forming a work based on the Library, and copy and
164
+ distribute such modifications or work under the terms of Section 1
165
+ above, provided that you also meet all of these conditions:
166
+
167
+ a) The modified work must itself be a software library.
168
+
169
+ b) You must cause the files modified to carry prominent notices
170
+ stating that you changed the files and the date of any change.
171
+
172
+ c) You must cause the whole of the work to be licensed at no
173
+ charge to all third parties under the terms of this License.
174
+
175
+ d) If a facility in the modified Library refers to a function or a
176
+ table of data to be supplied by an application program that uses
177
+ the facility, other than as an argument passed when the facility
178
+ is invoked, then you must make a good faith effort to ensure that,
179
+ in the event an application does not supply such function or
180
+ table, the facility still operates, and performs whatever part of
181
+ its purpose remains meaningful.
182
+
183
+ (For example, a function in a library to compute square roots has
184
+ a purpose that is entirely well-defined independent of the
185
+ application. Therefore, Subsection 2d requires that any
186
+ application-supplied function or table used by this function must
187
+ be optional: if the application does not supply it, the square
188
+ root function must still compute square roots.)
189
+
190
+ These requirements apply to the modified work as a whole. If
191
+ identifiable sections of that work are not derived from the Library,
192
+ and can be reasonably considered independent and separate works in
193
+ themselves, then this License, and its terms, do not apply to those
194
+ sections when you distribute them as separate works. But when you
195
+ distribute the same sections as part of a whole which is a work based
196
+ on the Library, the distribution of the whole must be on the terms of
197
+ this License, whose permissions for other licensees extend to the
198
+ entire whole, and thus to each and every part regardless of who wrote
199
+ it.
200
+
201
+ Thus, it is not the intent of this section to claim rights or contest
202
+ your rights to work written entirely by you; rather, the intent is to
203
+ exercise the right to control the distribution of derivative or
204
+ collective works based on the Library.
205
+
206
+ In addition, mere aggregation of another work not based on the Library
207
+ with the Library (or with a work based on the Library) on a volume of
208
+ a storage or distribution medium does not bring the other work under
209
+ the scope of this License.
210
+
211
+ 3. You may opt to apply the terms of the ordinary GNU General Public
212
+ License instead of this License to a given copy of the Library. To do
213
+ this, you must alter all the notices that refer to this License, so
214
+ that they refer to the ordinary GNU General Public License, version 2,
215
+ instead of to this License. (If a newer version than version 2 of the
216
+ ordinary GNU General Public License has appeared, then you can specify
217
+ that version instead if you wish.) Do not make any other change in
218
+ these notices.
219
+
220
+ Once this change is made in a given copy, it is irreversible for
221
+ that copy, so the ordinary GNU General Public License applies to all
222
+ subsequent copies and derivative works made from that copy.
223
+
224
+ This option is useful when you wish to copy part of the code of
225
+ the Library into a program that is not a library.
226
+
227
+ 4. You may copy and distribute the Library (or a portion or
228
+ derivative of it, under Section 2) in object code or executable form
229
+ under the terms of Sections 1 and 2 above provided that you accompany
230
+ it with the complete corresponding machine-readable source code, which
231
+ must be distributed under the terms of Sections 1 and 2 above on a
232
+ medium customarily used for software interchange.
233
+
234
+ If distribution of object code is made by offering access to copy
235
+ from a designated place, then offering equivalent access to copy the
236
+ source code from the same place satisfies the requirement to
237
+ distribute the source code, even though third parties are not
238
+ compelled to copy the source along with the object code.
239
+
240
+ 5. A program that contains no derivative of any portion of the
241
+ Library, but is designed to work with the Library by being compiled or
242
+ linked with it, is called a "work that uses the Library". Such a
243
+ work, in isolation, is not a derivative work of the Library, and
244
+ therefore falls outside the scope of this License.
245
+
246
+ However, linking a "work that uses the Library" with the Library
247
+ creates an executable that is a derivative of the Library (because it
248
+ contains portions of the Library), rather than a "work that uses the
249
+ library". The executable is therefore covered by this License.
250
+ Section 6 states terms for distribution of such executables.
251
+
252
+ When a "work that uses the Library" uses material from a header file
253
+ that is part of the Library, the object code for the work may be a
254
+ derivative work of the Library even though the source code is not.
255
+ Whether this is true is especially significant if the work can be
256
+ linked without the Library, or if the work is itself a library. The
257
+ threshold for this to be true is not precisely defined by law.
258
+
259
+ If such an object file uses only numerical parameters, data
260
+ structure layouts and accessors, and small macros and small inline
261
+ functions (ten lines or less in length), then the use of the object
262
+ file is unrestricted, regardless of whether it is legally a derivative
263
+ work. (Executables containing this object code plus portions of the
264
+ Library will still fall under Section 6.)
265
+
266
+ Otherwise, if the work is a derivative of the Library, you may
267
+ distribute the object code for the work under the terms of Section 6.
268
+ Any executables containing that work also fall under Section 6,
269
+ whether or not they are linked directly with the Library itself.
270
+
271
+ 6. As an exception to the Sections above, you may also combine or
272
+ link a "work that uses the Library" with the Library to produce a
273
+ work containing portions of the Library, and distribute that work
274
+ under terms of your choice, provided that the terms permit
275
+ modification of the work for the customer's own use and reverse
276
+ engineering for debugging such modifications.
277
+
278
+ You must give prominent notice with each copy of the work that the
279
+ Library is used in it and that the Library and its use are covered by
280
+ this License. You must supply a copy of this License. If the work
281
+ during execution displays copyright notices, you must include the
282
+ copyright notice for the Library among them, as well as a reference
283
+ directing the user to the copy of this License. Also, you must do one
284
+ of these things:
285
+
286
+ a) Accompany the work with the complete corresponding
287
+ machine-readable source code for the Library including whatever
288
+ changes were used in the work (which must be distributed under
289
+ Sections 1 and 2 above); and, if the work is an executable linked
290
+ with the Library, with the complete machine-readable "work that
291
+ uses the Library", as object code and/or source code, so that the
292
+ user can modify the Library and then relink to produce a modified
293
+ executable containing the modified Library. (It is understood
294
+ that the user who changes the contents of definitions files in the
295
+ Library will not necessarily be able to recompile the application
296
+ to use the modified definitions.)
297
+
298
+ b) Use a suitable shared library mechanism for linking with the
299
+ Library. A suitable mechanism is one that (1) uses at run time a
300
+ copy of the library already present on the user's computer system,
301
+ rather than copying library functions into the executable, and (2)
302
+ will operate properly with a modified version of the library, if
303
+ the user installs one, as long as the modified version is
304
+ interface-compatible with the version that the work was made with.
305
+
306
+ c) Accompany the work with a written offer, valid for at
307
+ least three years, to give the same user the materials
308
+ specified in Subsection 6a, above, for a charge no more
309
+ than the cost of performing this distribution.
310
+
311
+ d) If distribution of the work is made by offering access to copy
312
+ from a designated place, offer equivalent access to copy the above
313
+ specified materials from the same place.
314
+
315
+ e) Verify that the user has already received a copy of these
316
+ materials or that you have already sent this user a copy.
317
+
318
+ For an executable, the required form of the "work that uses the
319
+ Library" must include any data and utility programs needed for
320
+ reproducing the executable from it. However, as a special exception,
321
+ the materials to be distributed need not include anything that is
322
+ normally distributed (in either source or binary form) with the major
323
+ components (compiler, kernel, and so on) of the operating system on
324
+ which the executable runs, unless that component itself accompanies
325
+ the executable.
326
+
327
+ It may happen that this requirement contradicts the license
328
+ restrictions of other proprietary libraries that do not normally
329
+ accompany the operating system. Such a contradiction means you cannot
330
+ use both them and the Library together in an executable that you
331
+ distribute.
332
+
333
+ 7. You may place library facilities that are a work based on the
334
+ Library side-by-side in a single library together with other library
335
+ facilities not covered by this License, and distribute such a combined
336
+ library, provided that the separate distribution of the work based on
337
+ the Library and of the other library facilities is otherwise
338
+ permitted, and provided that you do these two things:
339
+
340
+ a) Accompany the combined library with a copy of the same work
341
+ based on the Library, uncombined with any other library
342
+ facilities. This must be distributed under the terms of the
343
+ Sections above.
344
+
345
+ b) Give prominent notice with the combined library of the fact
346
+ that part of it is a work based on the Library, and explaining
347
+ where to find the accompanying uncombined form of the same work.
348
+
349
+ 8. You may not copy, modify, sublicense, link with, or distribute
350
+ the Library except as expressly provided under this License. Any
351
+ attempt otherwise to copy, modify, sublicense, link with, or
352
+ distribute the Library is void, and will automatically terminate your
353
+ rights under this License. However, parties who have received copies,
354
+ or rights, from you under this License will not have their licenses
355
+ terminated so long as such parties remain in full compliance.
356
+
357
+ 9. You are not required to accept this License, since you have not
358
+ signed it. However, nothing else grants you permission to modify or
359
+ distribute the Library or its derivative works. These actions are
360
+ prohibited by law if you do not accept this License. Therefore, by
361
+ modifying or distributing the Library (or any work based on the
362
+ Library), you indicate your acceptance of this License to do so, and
363
+ all its terms and conditions for copying, distributing or modifying
364
+ the Library or works based on it.
365
+
366
+ 10. Each time you redistribute the Library (or any work based on the
367
+ Library), the recipient automatically receives a license from the
368
+ original licensor to copy, distribute, link with or modify the Library
369
+ subject to these terms and conditions. You may not impose any further
370
+ restrictions on the recipients' exercise of the rights granted herein.
371
+ You are not responsible for enforcing compliance by third parties with
372
+ this License.
373
+
374
+ 11. If, as a consequence of a court judgment or allegation of patent
375
+ infringement or for any other reason (not limited to patent issues),
376
+ conditions are imposed on you (whether by court order, agreement or
377
+ otherwise) that contradict the conditions of this License, they do not
378
+ excuse you from the conditions of this License. If you cannot
379
+ distribute so as to satisfy simultaneously your obligations under this
380
+ License and any other pertinent obligations, then as a consequence you
381
+ may not distribute the Library at all. For example, if a patent
382
+ license would not permit royalty-free redistribution of the Library by
383
+ all those who receive copies directly or indirectly through you, then
384
+ the only way you could satisfy both it and this License would be to
385
+ refrain entirely from distribution of the Library.
386
+
387
+ If any portion of this section is held invalid or unenforceable under any
388
+ particular circumstance, the balance of the section is intended to apply,
389
+ and the section as a whole is intended to apply in other circumstances.
390
+
391
+ It is not the purpose of this section to induce you to infringe any
392
+ patents or other property right claims or to contest validity of any
393
+ such claims; this section has the sole purpose of protecting the
394
+ integrity of the free software distribution system which is
395
+ implemented by public license practices. Many people have made
396
+ generous contributions to the wide range of software distributed
397
+ through that system in reliance on consistent application of that
398
+ system; it is up to the author/donor to decide if he or she is willing
399
+ to distribute software through any other system and a licensee cannot
400
+ impose that choice.
401
+
402
+ This section is intended to make thoroughly clear what is believed to
403
+ be a consequence of the rest of this License.
404
+
405
+ 12. If the distribution and/or use of the Library is restricted in
406
+ certain countries either by patents or by copyrighted interfaces, the
407
+ original copyright holder who places the Library under this License may add
408
+ an explicit geographical distribution limitation excluding those countries,
409
+ so that distribution is permitted only in or among countries not thus
410
+ excluded. In such case, this License incorporates the limitation as if
411
+ written in the body of this License.
412
+
413
+ 13. The Free Software Foundation may publish revised and/or new
414
+ versions of the Lesser General Public License from time to time.
415
+ Such new versions will be similar in spirit to the present version,
416
+ but may differ in detail to address new problems or concerns.
417
+
418
+ Each version is given a distinguishing version number. If the Library
419
+ specifies a version number of this License which applies to it and
420
+ "any later version", you have the option of following the terms and
421
+ conditions either of that version or of any later version published by
422
+ the Free Software Foundation. If the Library does not specify a
423
+ license version number, you may choose any version ever published by
424
+ the Free Software Foundation.
425
+
426
+ 14. If you wish to incorporate parts of the Library into other free
427
+ programs whose distribution conditions are incompatible with these,
428
+ write to the author to ask for permission. For software which is
429
+ copyrighted by the Free Software Foundation, write to the Free
430
+ Software Foundation; we sometimes make exceptions for this. Our
431
+ decision will be guided by the two goals of preserving the free status
432
+ of all derivatives of our free software and of promoting the sharing
433
+ and reuse of software generally.
434
+
435
+ NO WARRANTY
436
+
437
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
438
+ WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
439
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
440
+ OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
441
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
442
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
443
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
444
+ LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
445
+ THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
446
+
447
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
448
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
449
+ AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
450
+ FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
451
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
452
+ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
453
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
454
+ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
455
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
456
+ DAMAGES.
457
+
458
+ END OF TERMS AND CONDITIONS
459
+
460
+ How to Apply These Terms to Your New Libraries
461
+
462
+ If you develop a new library, and you want it to be of the greatest
463
+ possible use to the public, we recommend making it free software that
464
+ everyone can redistribute and change. You can do so by permitting
465
+ redistribution under these terms (or, alternatively, under the terms of the
466
+ ordinary General Public License).
467
+
468
+ To apply these terms, attach the following notices to the library. It is
469
+ safest to attach them to the start of each source file to most effectively
470
+ convey the exclusion of warranty; and each file should have at least the
471
+ "copyright" line and a pointer to where the full notice is found.
472
+
473
+ <one line to give the library's name and a brief idea of what it does.>
474
+ Copyright (C) <year> <name of author>
475
+
476
+ This library is free software; you can redistribute it and/or
477
+ modify it under the terms of the GNU Lesser General Public
478
+ License as published by the Free Software Foundation; either
479
+ version 2.1 of the License, or (at your option) any later version.
480
+
481
+ This library is distributed in the hope that it will be useful,
482
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
483
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
484
+ Lesser General Public License for more details.
485
+
486
+ You should have received a copy of the GNU Lesser General Public
487
+ License along with this library; if not, see <https://www.gnu.org/licenses/>.
488
+
489
+ Also add information on how to contact you by electronic and paper mail.
490
+
491
+ You should also get your employer (if you work as a programmer) or your
492
+ school, if any, to sign a "copyright disclaimer" for the library, if
493
+ necessary. Here is a sample; alter the names:
494
+
495
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
496
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
497
+
498
+ <signature of Moe Ghoul>, 1 April 1990
499
+ Moe Ghoul, President of Vice
500
+
501
+ That's all there is to it!
deployment/notices/MODEL-CARD.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ base_model: inclusionAI/Ling-3.0-tiny
4
+ pipeline_tag: text-generation
5
+ library_name: ling3rknn
6
+ tags:
7
+ - rk3588
8
+ - rknn
9
+ - edge-inference
10
+ - custom-format
11
+ language:
12
+ - zh
13
+ ---
14
+
15
+ # Ling3RKNN Ling-3.0-tiny W4
16
+
17
+ 这是面向 Rockchip RK3588/RK3588S 的 Ling-3.0-tiny 专用量化模型,运行格式为
18
+ `ling3-tiny-w4.l3r`,由 Ling3RKNN C++ 推理引擎加载。
19
+
20
+ ## 模型来源与许可
21
+
22
+ - 基模型:[inclusionAI/Ling-3.0-tiny](https://huggingface.co/inclusionAI/Ling-3.0-tiny)
23
+ - 来源 revision:`e3a47d5b986e7141b6efd62597d598ebb392060d`
24
+ - 本仓库发布的转换/打包模型资产:**CC BY-NC 4.0**,仅限非商业、学术研究和教育用途;该标注不改变上游基模型的权利或许可边界。
25
+ - Ling3RKNN 源码、转换脚本和测试工具:见仓库根目录 [Apache-2.0](../../LICENSE)。
26
+
27
+ 本文件只授权本仓库发布的转换模型资产,不重新发布上游 BF16 权重。使用者仍须遵守上游模型条款并保留基模型署名。商业使用或商业集成请私聊获取授权。
28
+
29
+ ## 使用方式
30
+
31
+ 请使用本仓库的 Ling3RKNN C++ 推理引擎,并按照根目录 README 安装 Rockchip [rknpu2](https://github.com/airockchip/rknpu2) runtime。将模型文件与引擎放在同一目录后运行:
32
+
33
+ ```bash
34
+ ./mindnano-infer --model ./ling3-tiny-w4.l3r --context 8K
35
+ ```
36
+
37
+ 模型格式不是 GGUF、Safetensors 或 RKLLM,不能直接交给其他推理框架加载。
38
+
39
+ ## 已知限制
40
+
41
+ - 面向单请求 RK3588/RK3588S 设备验证;不提供鉴权、TLS 或稳定并发保证。
42
+ - 默认 KV cache 为 BF16;FP8/INT8 KV 仍是实验功能。
43
+ - 128K/256K 上下文选项尚未完成完整板端质量和性能认证。
44
+ - 性能会随 RKNPU 驱动、频率、散热和后台负载变化。
deployment/notices/NLOHMANN-JSON.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ JSON for Modern C++ version 3.10.5
2
+ Copyright (c) 2013-2022 Niels Lohmann <http://nlohmann.me>.
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE.
deployment/notices/RKNN-2.3.2.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Rockchip RKNN is an external build and runtime dependency.
2
+
3
+ Official sources:
4
+ - https://github.com/airockchip/rknn-toolkit2
5
+ - https://github.com/airockchip/rknpu2
6
+
7
+ The applicable Rockchip SDK terms are reproduced in `RKNN-SDK-LICENSE.txt`
8
+ from the official rknn-toolkit2 checkout. The bundled `librknnrt.so` is an
9
+ unmodified runtime obtained from the official rknpu2 runtime package. Use,
10
+ reproduction, or redistribution is subject to those Rockchip terms and any
11
+ applicable third-party notices. Retain this notice, the original license,
12
+ and runtime version/hash information with the binary. Obtain and accept the
13
+ matching SDK/runtime terms before building or deploying with RKNPU2.
deployment/notices/RKNN-SDK-LICENSE.txt ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ RKNN SDK License
2
+
3
+ This License Agreement for RKNN Software Development Kit Package (this “Agreement”) is a legally binding agreement between Rockchip Electronics Co., Ltd. (“Rockchip”) and the person or legal entity You represent (“You”).
4
+
5
+ DO NOT DOWNLOAD, INSTALL OR USE THE RKNN SOFTWARE DEVELOPMENT KIT PACKAGE (THE “SOFTWARE) UNTIL YOU HAVE CAREFULLY READ AND ACCEPTED THIS AGREEMENT. BY DOWNLOADLING, INSTALLING OR USING THE SOFTWARE, YOU ACKNOWLEDGE THAT YOU HAVE READ AND AGREED TO BE BOUND BY THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT, CANCEL THE DOWNLOADLING, INSTALLING OR USING OF THE SOFTWARE.
6
+
7
+ 1. License Grant
8
+ 1.1 Subject to the terms and conditions of this Agreement, Rockchip hereby grants to You a limited, non-exclusive, royalty-free copyright license to use, reproduce, modify, and create derivative works of the Software and redistribute its modifications or derivative works that are made by You solely for the design, development and testing of applications that are compatible with Products (as defined below) of Rockchip or its affiliates.
9
+ 1.2 Subject to the terms and conditions of this Agreement, You may reproduce and use, on an internal basis only, a reasonable number of copies of the documentation made available by Rockchip in connection with Software (“Documentation”’), solely in support of the license to the Software.
10
+ 1.3 Except as expressly provided in this Agreement, no other license is granted explicitly, by implication, or otherwise under any intellectual property rights, including patent or copyrights.
11
+
12
+ 2. License Restrictions
13
+ 2.1 Except as expressively granted in this Agreement or expressively authorized by Rockchip in writing, You may NOT:
14
+ (a)decompile, reverse-engineer, dissemble, or attempt to derive any source code from the Software;
15
+ (b) remove or obscure any copyright, patent, or trademark statement or notice associated with the Software;
16
+ (c) use Third Party Software (as defined below), Open Source Software (as defined below) in any manner other than as permitted in this Agreement.
17
+ 2.2 The Software may contain Third Party Software that are proprietary to third parties or subjected to separate licenses and restrictions from third parties for any types of usages. The license terms associated with those software apply to Your use of them, and in some instances such software cannot be used or further distributed without a license from the respective owner of such third party software. You shall be solely responsible to obtain, if necessary, a separate and independent license from such owner with respect to any such use. The delivery of the Software does not convey a license, nor imply any rights, to use Third Party Software.
18
+ 2.3 The Software may contain Open Source Software that is licensed pursuant to the applicable Open Source Software license agreement(s) (such as BSD, GPL, MIT etc.), which are either identified in the Open Source Software comments in the applicable source code file(s) and/or file header(s). With respect to the Open Source Software, nothing in this Agreement limits any rights under, or grants rights that supersede, the terms of any applicable Open Source Software license agreement(s). You must comply with Open Source Software licenses that may prevail over the terms of this Agreement. In no event may You cause any part of the Software that is not Open Source Software to become Open Source Software.
19
+
20
+ 3. Updates, Upgrades and Support Services
21
+ 3.1 Rockchip may, in its sole discretion, release any updates, upgrades, or new versions of the Software and/or Documentation at any time on the website. If You decide to download, intall or use any updates, upgrades, or new versions of the Software and/or Documentation, the terms and conditions of this Agreement will govern such updates, upgrades, or new versions.
22
+ 3.2 Rockchip is under no obligation to provide any form of technical support for the Software and/or Documentation.
23
+
24
+ 4. Ownership
25
+ Rockchip and/or its licensor(s) retain all rights, titles, and interests in and to the Software and/or Documentation and its updates, upgrades.
26
+
27
+ 5. No Warranties
28
+ YOU EXPRESSLY ACKNOWLEDGE AND AGREE THAT THE USE OF THE SOFTWARE AND DOCUMENTATION IS AT YOUR SOLE RISK. THE SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL ROCKCHIP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE AND DOCUMENTATION.
29
+
30
+ 6. Indemnifications
31
+ You should indemnify, hold harmless, and defend Rockchip from and against any claims, damages, losses, liabilities, obligations, and costs (including attorney fees) associated with an allegation arising out of Your failure to adhere to the terms and conditions of this Agreement.
32
+
33
+ 7. Feedback
34
+ If You provide Rockchip with any feedback, suggestions, comments, ideas, reviews, bug reports, or any similar or related information (“Feedback”), You agree that: (a) Rockhip will be able to free use and share such Feedback without Your consent; (b) Rockchip will have no obligation to keep confidentiality to such Feedback. If You do not agree with these terms regarding Feedback, Your sole option is to not submit such specific Feedback to Rockchip.
35
+
36
+ 8. Export Controls
37
+ You acknowledge that all hardware, software, source code and technology (collectively, "Products") obtained from Rockchip or its affiliates may be subject to the applicable export control laws and regulations of the U.N., P.R.C., U.S., E.U., and/or other countries, as amended (collectively, the “Export Control and Economic Sanctions Laws and Regulations”). You shall comply with any applicable Export Control and Economic Sanctions Laws and Regulations, when using, exporting, re-exporting, selling, or otherwise disposing of the Products and fulfilling the rights and obligations under this Agreement. You assure that You will not directly or indirectly export, re-export, transfer or release (collectively, "export") any Products to any destination, person, entity or end use prohibited or restricted under Export Control and Economic Sanctions Laws and Regulations in violation of these laws and regulations. You further acknowledge that You are not a person or entity that is listed on any applicable sanctions lists. This section shall survive the termination of this Agreement.
38
+
39
+ 9. Term and Termination
40
+ 9.1 This Agreement will come into effect on the date You accept this Agreement and shall continue until terminated. This Agreement terminates immediately and automatically, with or without notice, if You fail to comply with any provision hereof. Additionally, Rockchip may at any time terminate this Agreement, either with or without cause, upon notice to You.
41
+ 9.2 Upon termination of this Agreement, You must delete or destroy all copies of the Software and Documentation in Your possession, and the license and other rights granted to You in this Agreement shall terminate.
42
+
43
+ 10. Governing Law and Jurisdiction
44
+ This Agreement will be governed by and construed in accordance with the laws of the People’s Republic of China (“PRC”), without regard to principles of conflict of laws. You agree that any dispute arising out of or in connection with this Agreement will be decided to a court of competent jurisdiction which located in Fuzhou City, PRC.
docs/BOARD_BENCHMARK_AND_INT4_20260922.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 当前板端性能与官方 INT4 损失对比
2
+
3
+ 日期:2026-09-22。设备为 NanoPi M6 / RK3588 / 16GB,CPU 使用 A76 大核,CPU、NPU、DMC 锁定最高频率;测试时暂停 MindNano、WebUI、Android 流媒体和 redroid,结束后已恢复。模型为 `ling3-tiny-w4.l3r`,BF16 KV,32K 初始化,关闭 thinking,temperature=0,输入后生成 64 tokens,无 KV 命中。
4
+
5
+ ## 当前版本性能
6
+
7
+ 解码速度同时列出模型计算速度和 API 端到端解码速度;前者是 `decode_compute_tokens_per_second`,适合和推理 benchmark 对比。
8
+
9
+ | 输入/输出 | TTFT | Prefill | Prefill tok/s | 解码计算 tok/s | API 解码 tok/s | 峰值 RSS | NPU MLA 调用 | CPU MLA 调用 |
10
+ | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
11
+ | 128 / 64 | 753 ms | 750 ms | 170.69 | **19.98** | 19.66 | 7197 MiB | 0 | 390 |
12
+ | 512 / 64 | 2.759 s | 2.756 s | 185.75 | **18.26** | 18.03 | 7230 MiB | 18 | 390 |
13
+ | 1024 / 64 | 5.691 s | 5.688 s | 180.03 | **16.86** | 16.66 | 7258 MiB | 42 | 390 |
14
+ | 2048 / 64 | 12.754 s | 12.749 s | 160.64 | **13.85** | 13.72 | 7322 MiB | 90 | 390 |
15
+ | 4096 / 64 | 29.043 s | 29.039 s | 141.06 | **11.21** | 11.12 | 7429 MiB | 186 | 390 |
16
+ | 8192 / 64 | 76.447 s | 76.442 s | 107.17 | **8.37** | 8.32 | 7661 MiB | 756 | 12 |
17
+ | 16384 / 64 | 226.045 s | 226.037 s | 72.49 | **6.06** | 6.04 | 8162 MiB | 1140 | 12 |
18
+
19
+ 所有请求均实际生成 64 tokens,`mla_fallbacks=0`。8K 和 16K 的 NPU 调用覆盖长历史 attention;当前 1536 MiB 原生解码副本在这两档仍有足够空间,未出现本次请求内的 CPU 回退。16K 的 960 MiB 是原生预填充副本峰值,不等同于进程 RSS。
20
+
21
+ 原始结果保存在 [`measurements/benchmark-current-20260922/`](measurements/benchmark-current-20260922/)。本轮使用的候选二进制是在加入 KV 局部失效后的版本;这些请求关闭了 prompt cache,因此性能表反映普通冷 prefill/解码路径。
22
+
23
+ ## 官方 INT4 量化损失
24
+
25
+ 本轮性能配置使用 `engine/source/` 中的实验实现;原 v6 部署包和根目录源码不能直接视为同一测试版本。相关开关如下,均须在启动进程前设置:
26
+
27
+ ```bash
28
+ export LING3_MLA_PREFILL_CACHE_MIB=1536
29
+ export LING3_MLA_DECODE_NPU=1
30
+ export LING3_MLA_DECODE_CACHE_MIB=1536
31
+ export LING3_MLA_DECODE_TILE=4096
32
+ export LING3_MOE_COST_SCHEDULE=1
33
+ ```
34
+
35
+ BF16 单 token NPU MLA 默认从 8192 历史长度启用;预填充副本默认关闭。本轮未启用 `LING3_MLA_PREFILL_PAIR`。CPU attention 到 NPU attention 的严格数值门槛尚未通过,新路径仍属实验功能;早期 32 个合成位置的 Top1 为 32/32,但最大 logits 差 2.135、RMSE 0.134、平均 KL 0.000184752,不能据此称为无损。后续完整对比见下表。
36
+
37
+ 更长历史下的预算回退见[长解码报告](LONG_DECODE_16K_16K_20260922.md),重复请求的缓存行为见[KV 命中报告](KV_HIT_OPTIMIZATION_20260922.md)。已清理被本报告替代的 NPU 阶段实验文档与候选日志,不再保留其全部中间结果。
38
+
39
+ 官方 INT4 是官方 group32 codes/scales 在桌面 CUDA BF16 参考实现中重建后计算,不是 RK3588 原生 INT4 速度测试。以下是在同一固定 token 序列、4,322 个预测位置、完整 157,184 词表上的 BF16 参考对比:
40
+
41
+ | 路径 | Logits MAE | RMSE | 最大绝对差 | 平均 TV | 平均 KL | Top1 一致率 |
42
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: |
43
+ | 官方 INT4(桌面重建) | 0.281598 | 0.371417 | 8.390625 | 5.7605% | 0.026054 | 92.6886% |
44
+ | 板端当前 W4A8/W8A8 + NPU MLA | 0.421164 | 0.549502 | 12.022694 | 8.9992% | 0.061127 | 89.5187% |
45
+
46
+ 以 BF16 为共同参考,板端当前相对官方 INT4:
47
+
48
+ - Logits MAE 高 **0.139566**,约为官方误差的 **1.50 倍**;
49
+ - RMSE 高 **0.178085**,约为 **1.48 倍**;
50
+ - 平均 TV 高 **3.2387 个百分点**;
51
+ - 平均 KL 高 **0.035073 nat**;
52
+ - Top1 一致率低 **3.1699 个百分点**。
53
+
54
+ 板端当前与上一版板端基线的直接差异为 TV **2.4451%**、KL **0.004768**、Top1 一致率 **96.9921%**;这部分主要来自 NPU MLA 数值路径,不能和权重量化损失混为一谈。完整 think/no-think、8K 子集和测量口径见[官方 INT4 对照报告](INT4_BOARD_ACCURACY_20260922.md)。
55
+
56
+ 结论是:当前板端性能已经覆盖 128/64 到 16K/64,但长上下文 TTFT 增长快于输入长度,解码速度随历史增长下降;精度方面,官方 INT4 在本组固定 teacher-forcing 测试中明显更接近 BF16,当前板端仍有约 1.5 倍的 logits 误差。官方 INT4 结果不能直接说明板端能达到同样速度或内存占用。
docs/INT4_BOARD_ACCURACY_20260922.md ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 官方 INT4 与板端 v6 数值误差对照
2
+
3
+ 日期:2026-09-22。桌面 RTX 5090 与 RK3588 / NanoPi M6。本轮不测试 FP8,不重新量化模型,不修改线上模型或默认 attention 路径。
4
+
5
+ 结论:**官方 INT4 在本组固定前缀上更接近 BF16;板端当前版与基线的总误差接近,但 NPU 路径有可测得的新增偏移,不能称为无损。** 本组结果支持继续定位 NPU 数值差异,同时说明板端与官方 INT4 的主要差距在本轮优化前就已存在。
6
+
7
+ ## 结果
8
+
9
+ 以下统一以原始 BF16 为参考,按 4,322 个预测位置加权,不按题目平均。短输入当前版强制启用 NPU,8K 当前版按默认门槛启用;详见下方测量口径。
10
+
11
+ | 路径 | logits MAE ↓ | logits RMSE ↓ | 最大绝对差 ↓ | 平均 TV ↓ | 平均 KL ↓ | Top1 一致率 ↑ |
12
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: |
13
+ | 官方 INT4,桌面重建计算 | 0.281598 | 0.371417 | 8.390625 | 5.7605% | 0.026054 | 92.6886% |
14
+ | 板端基线 | 0.420840 | 0.548970 | 11.764828 | 8.9246% | 0.060074 | 89.2642% |
15
+ | 板端当前 NPU 版 | 0.421164 | 0.549502 | 12.022694 | 8.9992% | 0.061127 | 89.5187% |
16
+
17
+ 相对 BF16,当前版 TV 比基线增加约 0.0746 个百分点,KL 增加约 0.001053;Top1 一致率反而增加约 0.2545 个百分点。指标有升有降,不能把所有改变简单归类为改善或退化,也不应把数值接近解释为自由生成结果相同。
18
+
19
+ 直接两两比较如下;每行 KL 的参考方向按第一列指定。
20
+
21
+ | 参考 → 候选 | logits MAE | logits RMSE | 最大绝对差 | 平均 TV | 平均 KL | Top1 一致率 |
22
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: |
23
+ | 板端基线 → 当前 | 0.121644 | 0.165286 | 7.663408 | 2.4451% | 0.004768 | 96.9921% |
24
+ | 官方 INT4 → 板端基线 | 0.462391 | 0.600889 | 11.749203 | 9.7555% | 0.073287 | 88.6627% |
25
+ | 官方 INT4 → 板端当前 | 0.462421 | 0.600880 | 11.190662 | 9.7997% | 0.074147 | 88.6395% |
26
+
27
+ 当前与基线有 **130 / 4322** 个位置的 Top1 不同。以基线第一名比第二名至少高 1 nat 筛选,2,998 个位置中仅 1 个不同,一致率 99.9666%;说明本批选词变化大多发生在接近的候选之间。这不是事实正确性保证。
28
+
29
+ 新增偏移的 TV P95 为 7.5762%,单位置最大 TV 为 44.1294%,最大 KL 为 0.408940。极端位置不能被均值掩盖。较早 32 个合成位置的最大 logits 差仅 2.135,本轮扩大到真实语言续写后观察到 7.663;样本不同,不能把两者当成同一条件下的退化趋势。仍不满足此前严格数值门槛,新路径保留实验开关。
30
+
31
+ ### Think / No-think
32
+
33
+ 常规输入的完整续写,共 4,217 个位置:
34
+
35
+ | 路径(BF16 为参考) | No-think TV / KL / Top1 | Think TV / KL / Top1 |
36
+ | --- | --- | --- |
37
+ | 官方 INT4 | 5.2640% / 0.023242 / 93.874% | 6.0769% / 0.027367 / 91.890% |
38
+ | 板端基线 | 8.1693% / 0.054577 / 89.673% | 9.4016% / 0.062229 / 89.093% |
39
+ | 板端当前 | 8.2878% / 0.056439 / 90.082% | 9.4601% / 0.062958 / 89.253% |
40
+
41
+ 直接比较新旧板端,No-think / Think 的 TV 为 2.1454% / 2.6740%,Top1 一致率 97.725% / 96.524%。中文办公 Think 的一致率最低,为 93.563%。各题 256-token 窗口的 TV 有升有降,未见所有题目都随生成长度单调增大的模式。
42
+
43
+ ### 8K 输入
44
+
45
+ 以下单独列出两组长输入的 105 个预测位置,不能由总体中占多数的短输入代替:
46
+
47
+ | 路径(BF16 为参考) | logits RMSE | 平均 TV | 平均 KL | Top1 一致率 |
48
+ | --- | ---: | ---: | ---: | ---: |
49
+ | 官方 INT4 | 0.44417 | 6.3228% | 0.040650 | 92.381% |
50
+ | 板端基线 | 0.69348 | 9.8851% | 0.098455 | 86.667% |
51
+ | 板端当前 | 0.69724 | 9.6228% | 0.094009 | 86.667% |
52
+
53
+ 新旧板端直接对比:TV 1.8828%、KL 0.003537、RMSE 0.18262、Top1 一致率 96.190%(4 个位置改变),最大 logits 差 2.8247。本组没有表现为 NPU 启用后的整体分布明显恶化;但只包含 33 / 72 个续写位置,不能证明数千 token 自由回复的稳定性。
54
+
55
+ 后续应冻结真实 Q/K/V,比较 QK、概率、PV、输出投影、激活量化编码和首次路由分歧。不要仅凭某项总误差略有改善,就跳过新路径的数值定位或宣布可以替换默认实现。
56
+
57
+ ## 测量口径
58
+
59
+ 所有路径使用同一 token 序列、官方聊天模板和固定参考续写,比较整个 157,184 词表。逐步强制输入相同 token,避免采样分叉干扰比较。这是固定前缀数值保真测试,不是任务正确率,也不是自由生成质量测试。
60
+
61
+ | 路径 | 权重与计算 |
62
+ | --- | --- |
63
+ | BF16 参考 | 原始 BF16 模型,官方 Transformers 实现、CUDA eager attention;保留模型指定的 FP32 参数 |
64
+ | 官方 INT4 | 官方 group32 INT4 专家 codes × scales 重建至 BF16,在同一 CUDA 实现中计算;未做二次权重量化,没有 A8 激活量化 |
65
+ | 板端基线 | v6 混合 W4A8/W8A8;BF16 KV;单 token MLA 使用 CPU |
66
+ | 板端当前 | 与基线相同的 v6 权重和同一个 C++ 探针��开启 NPU 单 token MLA、双行残差、原生 KV 副本及 MoE 成本调度 |
67
+
68
+ 官方 INT4 一行不是原生 INT4 GPU 内核实测,因此不用于说明桌面 INT4 的速度或内存。它与板端采用不同量化方案,差距不能全部归因于 RKNN 或 NPU。当前与基线的直接对照才隔离本轮路径变更;先前单独验证过 MoE 成本调度的逐值一致性。
69
+
70
+ 桌面 PyTorch 2.12.1+cu130、Transformers 4.57.1;禁用 TF32。为避免投影未评分的长输入位置,使用官方 `model.model` 后,仅对目标位置执行原有 `lm_head`。中文办公 No-think 的 BF16 全词表结果与历史参考逐值一致。
71
+
72
+ 官方 INT4 revision:`65a6d1d71e01f73ba01e572992bbd69ea92c865f`。读取 8,832 个量化矩阵、6,945,767,424 个专家权重元素;非量化张量没有发现值差异。解包与 compressed-tensors 官方 helper 交叉核对。
73
+
74
+ ## 输入与覆盖
75
+
76
+ | 组别 | 输入 token | 评分位置 | 说明 |
77
+ | --- | ---: | ---: | --- |
78
+ | 中文办公 No-think / Think | 189 / 188 | 447 / 668 | 历史回归题,完整固定续写 |
79
+ | 数学 No-think / Think | 98 / 97 | 581 / 873 | 同上 |
80
+ | Python No-think / Think | 124 / 123 | 686 / 962 | 同上 |
81
+ | 8K 资料 No-think / Think | 8,226 / 8,225 | 33 / 72 | 新增资料与干扰条目,固定目标事实 |
82
+
83
+ 合计 8 组、4,322 个预测位置,其中短输入 4,217 个、8K 输入 105 个。Think 覆盖推理文本和最终答案。短输入对当前版强制设置 `LING3_MLA_DECODE_MIN_HISTORY=1`,以覆盖新路径;这不是实际服务的默认短输入行为。8K 组使用默认门槛 8192,历史跨越两个以上 4096-token 块。8K 续写较短,不能外推到长时间自由生成。
84
+
85
+ 板端容量 8,297 token,BF16 KV,预填充块最大 128;当前版 tile=4096、native cache 预算 1536MiB。两条路径均固定 A76 大核、NPU、DMC 最高频率,暂时停止既有应用服务,测试后恢复。所有位置有限、C++ 与 Python tokenizer 一致、无 attention fallback。当前版每个续写步骤均使用六层 NPU MLA,合计 25,884 次;基线解码 NPU 调用为零。首个评分位置来自预填充,故调用数为 `6 × (4322 − 8)`。
86
+
87
+ ## 指标解释
88
+
89
+ MAE、RMSE、最大绝对差针对未归一化 logits,不是百分比。TV 为两下一词概率分布的总变差距离,表中以百分比显示;KL 为 `KL(参考 || 候选)`,单位 nat。Top1 是在相同输入前缀下第一候选 token 的一致率,不是问答正确率。
90
+
91
+ RMSE 由全部位置、全部词表元素的均方误差开方,未逐位置开方后平均。JSON 另保留去除整体平移的 logits RMSE、TV/KL 的 P50/P95/最大值、每题及每 256 个位置的统计。不同参照下的误差不能直接相加。
92
+
93
+ ## 复现与原始数据
94
+
95
+ 本地已不保留 `.f32`,仅运行 `score` 无法重新计算误差。复测应沿用保留的 `suite.json`,重新执行 PC 和板端推理以生成 logits,再评分;当前摘要用于查阅已有测量结果。
96
+
97
+ 入口:`engine/source/tests/cross_platform_accuracy.py`,阶段依次为 `prepare`、`pc`、`board`、`score`。PC 阶段需要可运行官方模型的 Torch/Transformers/FLA 环境,INT4 解包校验需要 compressed-tensors helper;评分阶段只需要 NumPy。板端编译 `ling3-quant-loss-probe`,用 `run_board_experiment.py` 管理并恢复服务与频率。
98
+
99
+ ```bash
100
+ python engine/source/tests/cross_platform_accuracy.py prepare \
101
+ --source ./work/Ling-3.0-tiny --output ./work/results
102
+ python engine/source/tests/cross_platform_accuracy.py pc --output ./work/results \
103
+ --source ./work/BF16 --official ./work/official-int4
104
+ # 将 suite.json 复制到板端结果目录,执行以下板端阶段:
105
+ python engine/source/tests/cross_platform_accuracy.py board --output ./work/board-results \
106
+ --probe ./work/ling3-quant-loss-probe --model ./models/local-final/v6-board-test/ling3-tiny-w4.l3r
107
+ # 将 board_baseline、board_current 两个目录复制回 PC 后:
108
+ python engine/source/tests/cross_platform_accuracy.py score --output ./work/results
109
+ ```
110
+
111
+ 完整统计:[comparison.json](measurements/cross-platform-int4-20260922/comparison.json)。目录中保留固定输入 `suite.json`、权重审计、板端结果摘要、环境校验和 SHA256 记录;逐词表 logits 与大型运行日志已清理,不作为仓库数据分发。原始 v6 权重 SHA256 为 `80f0086247328fe77b2f939df460b4955287b6f75f6aaada85512c56e652f435`,与发布包校验记录一致。
docs/KV_CACHE_BENCHMARK_20260922.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # RK3588 KV 缓存容量与长输入测试(2026-09-22)
2
+
3
+ 后续 16K/64 复测、CPU/NPU 曲线和优化分析见 [占用分析](KV_UTILIZATION_16K_20260922.md)。
4
+
5
+ 测试设备:NanoPi M6(RK3588,物理内存 15959 MiB,RKNPU 驱动 0.9.8),Ling3 v6 混合 W4A8/W8A8 权重。只比较 BF16 MLA KV 和 INT8 MLA KV(批量注意力采用原生 NPU INT8 矩阵乘,即此处的 W8A8 KV 路径);其他模型权重、KDA FP32 状态不变。FP16 仍保留为可选实验模式,不参与此表。
6
+
7
+ 测试期间暂时停止 MindNano WebUI、OpenAI 适配服务、安卓视频桥、redroid 和 GNOME 会话;CPU 小核 1.8 GHz、大核 2.304/2.352 GHz,NPU 1 GHz,DMC 2.4 GHz,均固定最高频率。测试后恢复此前服务与调频设置。每一容量档独立启动服务,关闭历史会话快照和前缀检查点,以隔离模型及常驻 KV 内存。
8
+
9
+ ## 上下文容量
10
+
11
+ `RSS` 是服务完成模型加载和预热时的进程常驻内存,**已经包含该档 KV 容量**;不是后续还要加上 KV 容量。`KV` 是按 6 层 MLA、每层 16 头计算的缓存字节数,BF16 每元素 2 字节,INT8 每元素 1 字节另加每 token/head 两个 FP32 scale。`余量` 是测量时系统的 `MemAvailable`,不是可供该服务独占的配额;RSS 也包含 NPU 共享映射。
12
+
13
+ | 上下文 | BF16 KV | BF16 启动 RSS | BF16 余量 | INT8 KV | INT8 启动 RSS | INT8 余量 |
14
+ | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
15
+ | 8K | 480 MiB | 5750 MiB | 7006 MiB | 246 MiB | 5512 MiB | 7411 MiB |
16
+ | 16K | 960 MiB | 6230 MiB | 6482 MiB | 492 MiB | 5760 MiB | 7116 MiB |
17
+ | 32K | 1920 MiB | 7192 MiB | 5473 MiB | 984 MiB | 6253 MiB | 6570 MiB |
18
+ | 64K | 3840 MiB | 9115 MiB | 3642 MiB | 1968 MiB | 7242 MiB | 5583 MiB |
19
+ | 128K | 7680 MiB | 12457 MiB | 334 MiB | 3936 MiB | 9217 MiB | 3605 MiB |
20
+ | 256K | 15360 MiB | **约 19–21 GiB(推测,未启动)** | 不适用 | 7872 MiB | 12745 MiB | 95 MiB |
21
+
22
+ BF16 128K 和 INT8 256K 虽完成初始化,但内存余量过低并观察到少量系统 swap 增长,不适合作为此设备的可靠工作档位;BF16 256K 明显超过 16GB,因此没有强行启动。INT8 256K 只是初始化成功,位置大于模型原生 128K 尚未验证质量,不能算作 256K 长文本可用。
23
+
24
+ 容量阶段原始 JSONL 中早期脚本产生的 `predicted_filled_rss_mib` **错误地在启动 RSS 上再次叠加 KV**,不要使用;表中的 `rss_mib`、`kv_capacity_mib` 和 `mem_available_mib` 是实测值或直接按布局计算的值。现有脚本已改为根据 8K 基线只外推容量的增量。
25
+
26
+ ## 输入与输出性能
27
+
28
+ 请求的目标是 `输入 token/最多输出 64 token`,相同模型与 ASCII 数字输入,各请求独立、缓存命中 0、关闭 thinking。小于等于 4096 输入使用 8K 上下文;8K、16K、32K、64K 输入分别使用 16K、32K、64K、128K 上下文,以给输出留足空间。下表填写实际 tokenizer 与 API 返回的 token 数、TTFT 和解码计算速度;每档运行一次,无法代表统计分布。初次短输入可能由于自动调度未达到 NPU 注意力启用门槛,不能归因于 INT8 矩阵乘。
29
+
30
+ | 输入/输出 | BF16 TTFT (s) | INT8 TTFT (s) | INT8 TTFT 改善 | BF16 解码 tok/s | INT8 解码 tok/s |
31
+ | ---: | ---: | ---: | ---: | ---: | ---: |
32
+ | 128/64 | 0.778 | 0.808 | -4% | 18.38 | 18.53 |
33
+ | 256/64 | 1.487 | 1.485 | 0% | 18.18 | 18.19 |
34
+ | 512/64 | 2.834 | 2.755 | 3% | 17.15 | 17.71 |
35
+ | 1024/64 | 5.902 | 5.559 | 6% | 16.08 | 16.16 |
36
+ | 2048/64 | 13.217 | 12.111 | 8% | 13.45 | 13.51 |
37
+ | 4096/64 | 32.731 | 28.834 | 12% | 10.64 | 10.22 |
38
+ | 8192/64 | 90.562 | 76.846 | 15% | 7.11 | 7.11 |
39
+ | 16384/64 | 285.410 | 231.574 | 19% | 4.28 | 4.45 |
40
+ | 32768/64 | 986.870 | 772.622 | 22% | 2.32 | 2.53 |
41
+ | 65536/64 | 内存余量不足 | 2780.517 | 不可直接比较 | 不适用 | 1.35 |
42
+
43
+ BF16 128K 上下文启动时只剩约 334 MiB 可用,本次速度测试启动后最低仅约 65 MiB,故未请求 65536/64;不能把该项写成实测性能。短输入 128 token 两格式均为 `mla_npu_calls=0`;256 输入起逐步进入 NPU 路径,32K 输入为 1530 次 NPU MLA 调用、390 次 CPU MLA 调用(主要对应解码)。长输入下 TTFT 增长显著快于输入长度,32K 后解码仅约 2.3–2.5 token/s。单次结果用于观察趋势,不能据此断言百分比差异的统计显著性。
44
+
45
+ 32K 输入时 MLA NPU 路径记录的耗时约 BF16 840 秒、INT8 624 秒,已占 TTFT 的 81%~85%;64K INT8 约 2484 秒,占 TTFT 的 89%。此字段包含排布、内存同步及 attention 计算,并非纯 NPU 矩阵乘耗时。这说明继续优化长输入,应优先检查 MLA 的历史 KV 搬运与批量注意力,而不仅是启动内存。
46
+
47
+ INT8 的 65536/64 在 128K 上下文中完整返回:输入、输出 token 数均准确,`finish_reason=length`,3066 次 NPU MLA 调用、0 回退,进程峰值 RSS 9225 MiB、进程 `VmSwap=0`,系统测试时余量约 3593 MiB。TTFT 约 46 分 21 秒,64-token 解码约 47 秒,证明这档能运行���不适合交互响应。INT8 256K 只是启动成功且仅余 95 MiB,超过模型原生 128K 位置范围,不做 128K 以上实际输入测试。
48
+
49
+ 在本机同时考虑内存余量时,可先以 BF16 64K、INT8 128K 作为**有余量的初始化档位**;这不是交互可用长度的建议。即便 INT8,4096 输入的 TTFT 也约 29 秒,32K 达约 13 分钟;对低延迟应用仍需压缩输入或改进长预填充。这里只测速度和内存,不代表两种 KV 格式的长文本回答质量相同。
50
+
51
+ 脚本:[kv_context_benchmark.py](../engine/source/tests/kv_context_benchmark.py);板端原始 JSONL 和逐请求引擎日志保存在测试设备的独立运行目录,未纳入仓库。FP16 独立实验仍可用相同脚本指定 `--mode fp16` 重测,旧版 `mla_int8_api_benchmark.py` 与既有 FP16 数据保留在板端 `run/`;本次正式结论不混入 FP16。
52
+
53
+ 复现时在仓库根目录执行 `python3 engine/source/tests/kv_context_benchmark.py --help`,分别对 `--mode bf16` 和 `--mode int8` 运行 `--phase capacity` 与 `--phase perf`,使用相对路径传入 `--binary`、`--model` 和 `--output-dir` 即可。脚本只停止自己启动的测试服务,不会自动暂停其他系统服务或调整频率;测试前应检查可用内存与电源、散热状态。
docs/KV_HIT_OPTIMIZATION_20260922.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # KV 命中后的 NPU 副本复用
2
+
3
+ 状态:2026-09-22 已实现并在 RK3588 实测。
4
+
5
+ ## 问题
6
+
7
+ exact prompt 命中只跳过 prefill,但 checkpoint 恢复原先会调用完整的 `InvalidateCaches()`。因此即使 prompt 前缀完全相同,NPU 解码路径也会重新打包整段历史 KV。长上下文每次命中都会重复支付这部分搬运成本。
8
+
9
+ ## 改动
10
+
11
+ 恢复轻量 checkpoint 时,根据恢复位置对 NPU 原生副本做局部失效:
12
+
13
+ - 恢复位置之前已经完整结束的 tile 保留;
14
+ - 包含被覆盖后缀的 tile 删除并在后续 decode 中重建;
15
+ - canonical BF16 KV、checkpoint 内容和 logits 逻辑不变;
16
+ - 完整 `DecoderState` 恢复仍执行全量失效,避免跨状态复用旧副本。
17
+
18
+ 这只优化副本打包和同步,不减少长上下文 attention 的矩阵乘计算量。
19
+
20
+ ## 板端验证
21
+
22
+ NanoPi M6 / RK3588,16K context,8,192-token prompt,BF16 KV,4096 tile,NPU decode,1536 MiB decode cache,输出 8 token。冷请求和第一次 miss 后连续两次 exact hit 均在同一进程执行。
23
+
24
+ | 请求 | 状态 | TTFT | 解码计算速度 | MLA NPU/CPU 调用 | MLA NPU 时间 |
25
+ | --- | --- | ---: | ---: | ---: | ---: |
26
+ | 冷请求 | disabled | 87.72 s | 3.01 tok/s | 420 / 12 | 43.28 s |
27
+ | 首次同 session 请求 | miss | 88.64 s | 3.00 tok/s | 420 / 12 | 43.62 s |
28
+ | 第一次 exact hit | exact_prompt_hit | 0.410 s | 3.48 tok/s | 42 / 0 | 1.411 s |
29
+ | 第二次 exact hit | exact_prompt_hit | 0.434 s | 3.50 tok/s | 42 / 0 | 1.407 s |
30
+
31
+ 对照是旧的全量失效逻辑下 16K exact hit 约 3.25–3.29 tok/s;上下文长度不同,不能把两个绝对速度当成严格同条件提升,但 8K 复测已经证明恢复后保留完整 tile 能减少重复工作。结果原始文件在 [`measurements/prefix-hit-20260922/selective-8k/`](measurements/prefix-hit-20260922/selective-8k/)。
32
+
33
+ ## 边界
34
+
35
+ 恢复位置不在 tile 边界时,包含该位置的 tile 也会删除,保证被覆盖的 token 不会残留在 NPU 副本中。若切换 session、修改前缀或执行完整状态恢复,仍会清空全部副本。后续应在同一配置下补测 16K exact hit,并同时检查输出 token 和完整 logits 一致性。
docs/KV_UTILIZATION_16K_20260922.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 16K/64 CPU 与 NPU 占用分析
2
+
3
+ 2026-09-22,NanoPi M6 / RK3588 / 16GB。结论:当前长上下文路径未持续占满 NPU;优先检查 CPU 重排、量化、同步和任务粒度,再评估单 token attention 的 NPU 实现。低 NPU busy 不等于可直接获得对应倍数的加速。
4
+
5
+ ## 性能复测
6
+
7
+ 同一 v6 权重,32K 初始化,实际输入 16384、输出 64 token,关闭 thinking 和缓存复用。服务加载预热后发起请求;TTFT 不含初始化时间。使用合成数字输入,只测性能,不代表语义质量。每格式一次复测。
8
+
9
+ | KV | 上次 TTFT | 本次 TTFT | 上次解码 token/s | 本次解码 token/s | 本次峰值 RSS |
10
+ | --- | ---: | ---: | ---: | ---: | ---: |
11
+ | BF16 | 285.410 s | 283.127 s | 4.283 | 4.268 | 7200 MiB |
12
+ | INT8 | 231.574 s | 228.706 s | 4.453 | 4.360 | 6262 MiB |
13
+
14
+ INT8 指 KV 量化;批量 MLA 使用原生 NPU W8A8,单 token attention 仍在 CPU。解码计算速度为首 token 后 63 次模型计算的速度。单次差异不作统计显著性结论。
15
+
16
+ ## 占用曲线
17
+
18
+ 每约 100ms 读取 `/proc/stat` 和 `/sys/kernel/debug/rknpu/load`,监测程序置于小核。表格为按采样间隔加权的平均值,阶段边缘各排除 1 秒。CPU 百分数按单核计算,NPU 为驱动报告的各核 busy。
19
+
20
+ | KV / 阶段 | CPU4 | CPU5 | CPU6 | CPU7 | NPU0 | NPU1 | NPU2 |
21
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
22
+ | BF16 预填充 | 84.0% | 72.7% | 71.8% | 14.4% | 12.6% | 11.9% | 12.1% |
23
+ | INT8 预填充 | 87.0% | 75.6% | 74.3% | 17.9% | 8.5% | 8.4% | 8.7% |
24
+ | BF16 解码 | 75.4% | 76.1% | 80.5% | 78.6% | 13.7% | 13.7% | 13.3% |
25
+ | INT8 解码 | 80.4% | 80.3% | 79.5% | 79.8% | 13.8% | 13.9% | 13.5% |
26
+
27
+ BF16/INT8 预填充 NPU 单核 P95 分别约 13% / 11%~12%,解码约 14%~15%;上述阶段没有采到任一 NPU 核 busy≥90%。预填充最后 30 秒,CPU7 平均仅 8.4% / 11.1%,三核 NPU 分别约 11%~13% / 7%。
28
+
29
+ ![完整请求占用曲线](measurements/16k-profile-20260922/timeline.png)
30
+
31
+ ![解码占用曲线](measurements/16k-profile-20260922/decode.png)
32
+
33
+ 曲线橙色部分为解码。全程图按 1 秒分箱;解码图保留原始采样。驱动自身的统计窗口尚未核实,100ms 读取不代表 100ms 硬件分辨率,因此不能排除更短的满载脉冲,也不能用这些曲线证明逐算子的 CPU/NPU 重叠关系。
34
+
35
+ ## 与实现的对应关系
36
+
37
+ 1. **预填充已有 NPU 加速,但其前后处理仍在 CPU。** `mla_npu.cpp` 每个 head、每个 512-token 历史块都重新排列 K/V,执行输入同步、矩阵乘、输出同步和 CPU softmax。BF16 路径还有 Q/P 的残差补偿计算;INT8 路径还要重新量化 V 块。旧历史块会被后续 query 批次反复处理。
38
+ 2. **预填充三个工作线程分别驱动三个 NPU 核。** `CoreWorkers` 将它们绑定到 CPU4–6,MLA 阶段没有使用第四个工作线程。CPU7 随上下文增长越来越空闲,与 MLA 占比上升一致。不能直接把第四个线程加入现有缓冲区,必须处理所有权与同步。
39
+ 3. **单 token 的 QK、softmax、PV 在四个大核上扫描历史 KV。** `decoder.cpp` 的 `MlaAttention::Run` 走 CPU;批量 NPU 入口对 rows<16 返回 false。权重投影和专家仍使用 NPU,因此解码 NPU 并非完全空闲。
40
+ 4. **日志的 MLA NPU 时间不是硬件纯计算时间。** 本次 BF16 为 210.606 秒、INT8 为 155.815 秒,计入了上述 CPU 与同步开销。不能据此声称 NPU 占用了 TTFT 的 74% / 68%。
41
+
42
+ 代码见 [mla_npu.cpp](../engine/source/src/mla_npu.cpp)、[decoder.cpp](../engine/source/src/decoder.cpp)、[core_workers.cpp](../engine/source/src/core_workers.cpp)。CPU busy 也包含访存停顿,当前数据还不能区分算术瓶颈与内存带宽瓶颈。
43
+
44
+ ## 优化顺序与可验证目标
45
+
46
+ | 顺序 | 方向 | 原因与验收 |
47
+ | --- | --- | --- |
48
+ | 1 | 拆分计时:KV 排布、量化、mem_sync、matmul、softmax、线程等待 | 先确定关键路径,不能把低 NPU busy 全部归因于一种操作 |
49
+ | 2 | 历史 KV 按块维护 NPU 原生布局,增量更新 | 避免每个 query 批次重复转换同一历史;检查是否需要双份缓存、INT8 V 重量化是否改变数值 |
50
+ | 3 | CPU7 准备下一块,双缓冲衔接三核 NPU | 使用已有空闲大核;计入 cache coherency 与同步成本,保证无数据竞争 |
51
+ | 4 | 单 token 专用 NPU attention 原型,与 CPU SIMD 对照 | 当前 NPU 有时间空隙,值得尝试;不能简单放开 rows<16,把填充和重复重排带入解码 |
52
+ | 5 | CPU INT8 内核及 KV 访问布局优化 | 目前 INT8 dot/accumulate 无专用手写 NEON;需检查编译产物,不能假定编译器完全未向量化 |
53
+
54
+ 建议先测 attention 微基准,再以相同的 16K/64 完整请求验收 TTFT、解码、RSS、数值误差及长回复质量。不能仅以 NPU 利用率提升为成功标准。
55
+
56
+ **目前能确定还有调度与数据处理优化空间,不能确定能加速几倍。** 例如某优化若覆盖总耗时的 50% 且该部���快一倍,整体也仅快 1.33 倍;若覆盖 80%,整体才为 1.67 倍。这只是计算示例,不是本次测得的可优化比例。仅凭约 14% 的 NPU busy,无法承诺 16K 解码回到 20 token/s。
57
+
58
+ ## 测量条件与复现
59
+
60
+ 测试暂停 MindNano、安卓视频桥、redroid 和 GNOME;CPU 小核 1.8GHz、大核 2.304/2.352GHz、NPU 1GHz、DMC 2.4GHz。采样未见频率变化;BF16/INT8 温度峰值约 70.2/73.9℃,进程 VmSwap 均为 0。两种格式采样均通过,输入输出计数正确,缓存命中为 0。测试后原调频快照完全恢复、四项服务和 redroid 恢复,WebUI HTTP 200;测试进程已退出。
61
+
62
+ 采样器:[kv_utilization_profile.py](../engine/source/tests/kv_utilization_profile.py)。`--manage-board` 会临时修改服务和频率并在 finally 恢复,适用于本板的服务名和 sysfs 路径;强制断电或 SIGKILL 不保证自动恢复。
63
+
64
+ ```bash
65
+ sudo python3 engine/source/tests/kv_utilization_profile.py \
66
+ --binary ./models/local-final/v6-board-test/mindnano-infer \
67
+ --model ./models/local-final/v6-board-test/ling3-tiny-w4.l3r \
68
+ --output-dir ./docs/measurements/new-profile-dir --manage-board
69
+ uv run --no-project --with matplotlib python \
70
+ engine/source/tests/plot_kv_utilization.py ./docs/measurements/new-profile-dir
71
+ ```
72
+
73
+ 本地[统计摘要](measurements/16k-profile-20260922/summary.json)同目录保留曲线、请求结果和环境快照;逐次采样与引擎日志已清理,重新计算曲线需重新采样。历史板端运行目录未纳入仓库,本次文档清理未检查远端副本。
docs/LONG_DECODE_16K_16K_20260922.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 16K 输入 / 16K 输出长解码负载测试
2
+
3
+ 状态:2026-09-22 已完成。
4
+
5
+ 已观测到首个明确的后端切换:`position=20481`、第 4098 个输出 token 时,每步 MLA 调用从 NPU/CPU = 6/0 变为 4/2。切换前近期速度约 7.46 token/s、NPU busy 约 56%;切换后近期约 5.50 token/s、约 36%。这是短滚动窗口观察,最终表格采用完整分段统计。没有进程换页或频率下降。
6
+
7
+ 第二个切换点为 `position=24577`、第 8194 个输出 token:MLA 从 4/2 变为 0/6。最终 16,384 个输出 token 全部完成,没有 EOS 提前结束、非有限 logits、NPU fallback 或换页。
8
+
9
+ ## 测试口径
10
+
11
+ - NanoPi M6 / RK3588 / 16GB,同一 v6 混合 W4A8/W8A8 权重,BF16 KV,32K 初始化。
12
+ - 输入严格 16,384 token,连续生成 16,384 token;no-think、贪心解码,未使用会话/前缀命中。与前轮相同的合成数字输入。
13
+ - 独立 C++ 性能入口调用当前 decoder;只在此入口屏蔽 EOS 以保证固定输出长度,不修改服务的停止规则。记录被屏蔽次数和所有输出 token;这是性能压力测试,不证明长篇生成质量。
14
+ - 使用与服务相同的环境配置、128-token 预热、system 边界及 128-token 批次划分;输出每个 token 的计算耗时、输出头耗时、MLA CPU/NPU 调用数和 NPU 耗时。
15
+ - 开启预填充 KV 副本 1536MiB、NPU 解码、解码副本 1536MiB、4096 历史块、MoE 成本调度。保持当前预算,以检查随历史增长发生的后端变化。
16
+ - CPU4–7 推理、NPU 三核;监控位于小核,每约 100ms 采样 CPU/NPU busy、CPU/NPU/DMC 频率、温度、RSS、系统 MemAvailable 和进程 VmSwap。
17
+ - 测试临时停止应用并固定性能频率;后台任务退出时恢复。进程托管于 systemd,SSH 断开不影响测试。
18
+
19
+ 短入口校验:128/64 TTFT 760ms,解码 19.92 token/s,64 个 token 的文本与前轮服务版一致;未屏蔽 EOS,无后端错误,环境已正常恢复后才开始长测。
20
+
21
+ ## 需要验证的预算边界
22
+
23
+ 解码副本总预算按三个 NPU 工作线程等分。16 个 attention head 按 6/5/5 分配,第一条线程可能先达到限额;当前按“完整层能否放下”决定是否走 NPU,预算不足时使用 CPU。
24
+
25
+ 转为 CPU 的层仍保留已分配的历史副本。历史达到 24577(第 8194 个输出)时,实测从 NPU/CPU = 4/2 变成 0/6,与旧副本继续占据预算的代码逻辑一致。此情况不增加 `mla_fallbacks`,后者目前主要统计 NPU 执行错误,不能用 0 fallback 证明所有 attention 始终在 NPU。
26
+
27
+ 当前 4096-token 块中,一个 head 的 K+V 副本为 2.5MiB。第一条线程处理 6 个 head,每层每块需要 15MiB;其预算为 512MiB。历史 16385–20480 时需 5 块,六层共 450MiB。增长到第 6 块时,只能给前四层各追加 15MiB,共 510MiB;余下两层准入失败。这与实测切换位置一致。
28
+
29
+ 因此总预算未完全用满也会拒绝整层:此时三条线程分别约 510/425/425MiB,合计 1360MiB。进入第 7 块(历史 24577)后第一条线程连一层的新块也无法再容纳,实测六层全部转 CPU。历史 24577 后副本也没有主动淘汰,不能把这 1360MiB 当成仍有 attention 加速收益的缓存。
30
+
31
+ 若沿用三等分预算而希望 32K 历史的六层全部常驻,第一条线程需 720MiB,总预算至少 2160MiB,实际副本总量为 1920MiB。仅把总预算提高到 2048MiB 仍不够第一条线程使用。这是当前布局的容量计算,尚不是更高预算的实测结果;本次不在运行中改变预算。
32
+
33
+ ## 完整实测结果
34
+
35
+ 预填充 TTFT 为 **228.61s**;16,383 次解码计算共 **4,034.88s**,平均 **4.06 token/s**。预填充阶段 NPU 三核平均 busy 13.29%、A76 等效 2.42 核;解码全程平均 NPU busy 20.72%、A76 等效 2.81 核。解码平均值掩盖了后端切换,必须看下表。
36
+
37
+ | 历史范围 | MLA NPU/CPU 层数 | 解码计算 token/s | NPU busy | A76 等效核数 |
38
+ | --- | ---: | ---: | ---: | ---: |
39
+ | 16,384–20,480 | 6 / 0 | 7.53 | 57.26% | 0.87 |
40
+ | 20,480–22,528 | 4 / 2 | 5.44 | 36.50% | 1.98 |
41
+ | 22,528–24,576 | 4 / 2 | 5.23 | 35.12% | 2.05 |
42
+ | 24,576–26,624 | 0 / 6 | 3.15 | 9.30% | 3.40 |
43
+ | 26,624–28,672 | 0 / 6 | 3.13 | 9.54% | 3.39 |
44
+ | 28,672–30,720 | 0 / 6 | 2.97 | 9.09% | 3.42 |
45
+ | 30,720–32,768 | 0 / 6 | 2.81 | 8.66% | 3.45 |
46
+
47
+ 历史增长本身也会让 attention 变慢,但本次最大性能断点来自缓存预算:6 层 NPU → 4 层 NPU+2 层 CPU 后下降约 28%;再变成全 CPU 后,24,576–26,624 段相比前一段下降约 40%。因此“提高 NPU 利用率”的首要工程问题不是继续压榨 NPU 算力,而是避免当前预算管理造成整层阶梯式回退。
48
+
49
+ 全程固定 CPU4/5/6/7 为 2.304/2.304/2.352GHz、NPU 1GHz、DMC 2.4GHz;解码最高温度约 80.4℃,采样中最低 MemAvailable 2,138MiB,进程峰值 RSS 约 8.1GiB,VmSwap 为 0。预填充副本峰值约 960MiB。长测结束后服务、redroid、WebUI ���原频率均已恢复。
50
+
51
+ ## 结论与下一步
52
+
53
+ 当前 1536MiB 解码副本预算适合约 20K 历史;继续增长会让部分层、最终全部层回到 CPU。应优先改为**按历史块和层统一预算的淘汰/重排策略**:当完整六层无法继续常驻时,释放旧块并保留最近窗口,或让三条线程共享可借用的剩余预算;不能保留无收益的旧副本直到所有层回退。改动后要重新检查输出逐值一致、NPU/CPU 层数曲线和系统可用内存。
54
+
55
+ 提高预填充 NPU busy 仍有价值,但它不会修复解码阶段的阶梯回退。CPU softmax/概率准备和 NPU 调用重叠应在缓存容量策略之后优化,否则会把工作移到已经接近满载的 A76 上。
56
+
57
+ ## 命中 16K 前缀时的含义
58
+
59
+ 本报告的 228.6 秒是 `cache_prompt=false` 的冷预填充结果。若同一进程、同一活动会话再次提交完全相同的 16K prompt,`exact_prompt_hit` 会恢复已保存的轻量 checkpoint 和 logits,跳过这 16K token 的预填充;`cached_tokens` 应为 16,384,`prefill_ms` 接近零。此时第一 token 的 TTFT 不再是 228.6 秒,通常只剩 checkpoint 查找、恢复和采样开销。
60
+
61
+ 命中不会消除长上下文解码成本:每个新 token 仍需读取并计算 16K 历史。独立板端复测中,16 token 命中请求的解码速度为 **3.25–3.29 token/s**,TTFT **0.70–0.71 秒**,总耗时 **5.30–5.34 秒**;此前同配置的一次较快测量为约 4.70 token/s。因此不能再使用旧的“64 token 约 10–11 秒”估算,按现有实测范围外推,64 token 约 **14–20 秒**,应以目标板和后台负载下的实测为准。
62
+
63
+ 已加入按恢复位置的 NPU tile 局部失效:重复 exact hit 会保留未被覆盖的前缀 tile,避免重新打包整段历史。8K 板端复测达到 3.48–3.50 token/s,详细数据见 [`KV_HIT_OPTIMIZATION_20260922.md`](KV_HIT_OPTIMIZATION_20260922.md)。
64
+
65
+ 本次连续命中复测的冷请求预填充为 272.3 秒,之后两次完全相同的 16K prompt 均报告 `cache_status=exact_prompt_hit`、`cached_tokens=16384`、`prefill_ms≈0`。复测结果归档于 `docs/measurements/prefix-hit-20260922/`。冷预填充耗时受板端当时负载影响较大,但不会进入 exact hit 的预填充路径。
66
+
67
+ 若 prompt 在 16K 前缀后增加新用户内容,只跳过共同的 16K 前缀,新增 token 仍需预填充;新增内容越长,TTFT 越接近对应的长历史批处理成本。若继续生成超过 20K/24K,仍会触发本报告中的 6/0 → 4/2 → 0/6 层阶梯回退。
68
+
69
+ 当前命中有两种保存范围:活动 decoder 内的轻量 checkpoint 可在同一进程继续使用;跨会话持久保存需要完整 `DecoderState`。16K BF16 状态按当前估算约 988MiB,默认 `--session-cache-mib 256` 放不下,因此服务重启或切换后通常无法持久命中。即使提高预算,恢复完整状态仍需复制约 1GiB 数据,并会重新建立 NPU 原生副本。应以响应 `mindnano_metrics.cache_status`、`cached_tokens`、`cache_restore_ms`、`prefill_ms` 和 `mla_npu_calls/mla_cpu_calls` 判断是否真正命中。
70
+
71
+ ## 复现与文件
72
+
73
+ - C++ 入口:`engine/source/tools/long_decode_benchmark.cpp`,构建目标 `ling3-long-decode-benchmark`。
74
+ - 采样及环境管理:`engine/source/tests/long_decode_profile.py`。
75
+ - 图表与分段统计:`engine/source/tests/summarize_long_decode.py`。
76
+ - 板端结果保存在测试设备的独立运行目录,未纳入仓库。
77
+ - 后台任务:`ling3-longdecode-16k16k-20260922.service`。
78
+
79
+ 原始运行曾生成 `events.jsonl`(逐 token)、`samples.jsonl`(硬件采样)、`progress.json`(进度)和 `generated.bin`(未过滤 token);这些中间文件已清理。当前仅保留退出结果 `result.json`、按每 2K 历史汇总的 `summary.json` 和 `long-decode.png` 曲线,`generated.bin` 从未作为质量合格样例。
80
+
81
+ 本地 [measurements/long-decode-20260922/run](measurements/long-decode-20260922/run/) 保留最终 `summary.json`、`result.json`、环境快照和曲线。上述逐 token 事件、硬件采样、生成文本、进度文件及 smoke 运行已清理;需要重新统计或检查逐 token 内容时须重新运行测试。
docs/README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 文档索引
2
+
3
+ 这里保留当前 Ling3RKNN 发布说明直接引用的报告和少量可复核结果。
4
+
5
+ ## 核心报告
6
+
7
+ - [BOARD_BENCHMARK_AND_INT4_20260922.md](BOARD_BENCHMARK_AND_INT4_20260922.md):当前板端 128/64 至 16K/64 性能与官方 INT4 数值对比。
8
+ - [INT4_BOARD_ACCURACY_20260922.md](INT4_BOARD_ACCURACY_20260922.md):固定 teacher-forcing 条件下的 logits、概率分布和 Top1 一致率。
9
+ - [KV_CACHE_BENCHMARK_20260922.md](KV_CACHE_BENCHMARK_20260922.md):BF16/INT8 KV 的容量、内存和长输入性能。
10
+ - [KV_UTILIZATION_16K_20260922.md](KV_UTILIZATION_16K_20260922.md):16K 请求的 CPU/NPU 占用与瓶颈分析。
11
+ - [KV_HIT_OPTIMIZATION_20260922.md](KV_HIT_OPTIMIZATION_20260922.md):exact prompt 命中后的 NPU tile 局部复用。
12
+ - [LONG_DECODE_16K_16K_20260922.md](LONG_DECODE_16K_16K_20260922.md):16K 输入、16K 输出时的缓存预算阶梯回退。
13
+
14
+ ## 测量数据
15
+
16
+ `measurements/` 只保留报告需要的汇总 JSON、曲线、环境摘要和校验信息。逐词表 `.f32`、大段生成日志、早期候选版本和重复运行结果不纳入工作区;重新测量应在板端生成新的结果目录,再把汇总文件复制回来。
17
+
18
+ 当前保留的目录:
19
+
20
+ - `benchmark-current-20260922/`:README 性能表对应的请求结果。
21
+ - `16k-profile-20260922/`:占用曲线、阶段摘要和 BF16/INT8 结果。
22
+ - `prefix-hit-20260922/`:KV 命中冷请求与 exact hit 摘要。
23
+ - `cross-platform-int4-20260922/`:INT4 对比摘要、输入套件、权重审计和板端结果摘要。
24
+ - `long-decode-20260922/`:长解码汇总和曲线。
25
+
26
+ 历史 MOE 探针和一次性 NPU 优化报告已移出当前文档集;代码入口和当前用法以仓库根目录 [README.md](../README.md) 为准。
docs/measurements/16k-profile-20260922/bf16.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "bf16",
3
+ "context": 32768,
4
+ "input_tokens": 16384,
5
+ "output_tokens": 64,
6
+ "sampling_interval_s": 0.1,
7
+ "events": {
8
+ "request_start": 411624.893492226,
9
+ "first_content": 411908.055549879,
10
+ "request_end": 411922.863447763
11
+ },
12
+ "npu_load_source": "/sys/kernel/debug/rknpu/load",
13
+ "finish_reason": "length",
14
+ "metrics": {
15
+ "cache_miss_reason": "disabled",
16
+ "cache_restore_ms": 1.642428,
17
+ "cache_save_ms": 0.0,
18
+ "cache_status": "disabled",
19
+ "cached_tokens": 0,
20
+ "common_prefix_tokens": 0,
21
+ "context_capacity_reached": false,
22
+ "context_length": 32768,
23
+ "continuation_save_ms": 0.0,
24
+ "continuation_skipped_budget": false,
25
+ "continuation_stored": false,
26
+ "continuation_tokens": 0,
27
+ "decode_compute_tokens_per_second": 4.26810375745384,
28
+ "decode_eval_count": 63,
29
+ "decode_eval_ms": 14760.653344000002,
30
+ "decode_ms": 14805.646728,
31
+ "decode_tokens_per_second": 4.255133271608884,
32
+ "effective_max_tokens": 64,
33
+ "finish_reason": "length",
34
+ "flow_control": "none",
35
+ "flow_wait_count": 0,
36
+ "flow_wait_ms": 0.0,
37
+ "generated_cached_tokens": 0,
38
+ "generated_state_lineage": false,
39
+ "id": "chatcmpl-1790040377-1",
40
+ "major_page_faults": 0,
41
+ "minor_page_faults": 2058,
42
+ "mla_cpu_calls": 390,
43
+ "mla_fallbacks": 0,
44
+ "mla_npu_calls": 762,
45
+ "mla_npu_ms": 210605.82986399997,
46
+ "model": "mindnano-ling3-tiny",
47
+ "peak_rss_mib": 7200.046875,
48
+ "prefill_eval_ms": 283108.78474800003,
49
+ "prefill_ms": 283118.206186,
50
+ "prefill_tokens_per_second": 57.87174712569826,
51
+ "prefix_cache_mib": 0.0,
52
+ "prefix_checkpoint_bytes": 0,
53
+ "prefix_checkpoint_count": 0,
54
+ "prefix_recompute_tokens": 0,
55
+ "prompt_evaluated_tokens": 16384,
56
+ "queue_ms": 0,
57
+ "requested_max_tokens": 64,
58
+ "reuse_generated_state": false,
59
+ "rss_mib": 7200.046875,
60
+ "sampling": {
61
+ "enable_thinking": false,
62
+ "repeat_penalty": 1.0,
63
+ "seed": 0,
64
+ "temperature": 0.0,
65
+ "top_k": 0,
66
+ "top_p": 1.0
67
+ },
68
+ "session_cache_bytes": 0,
69
+ "session_cache_evictions": 0,
70
+ "session_cache_skipped_budget": false,
71
+ "session_cache_stored": false,
72
+ "session_id": "profile-bf16-1790040377512878116",
73
+ "system_prefix_tokens": 8,
74
+ "timestamp": 1790040675,
75
+ "total_ms": 297932.614864,
76
+ "ttft_ms": 283126.834257,
77
+ "usage": {
78
+ "completion_tokens": 64,
79
+ "prompt_tokens": 16384,
80
+ "total_tokens": 16448
81
+ },
82
+ "warmed": true
83
+ },
84
+ "usage": {
85
+ "completion_tokens": 64,
86
+ "prompt_tokens": 16384,
87
+ "total_tokens": 16448
88
+ },
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/16k-profile-20260922/decode.png ADDED

Git LFS Details

  • SHA256: f6a8a911af63b4999d5a7a951182473f8eed50aacb9760791a24618d369de15e
  • Pointer size: 131 Bytes
  • Size of remote file: 326 kB
docs/measurements/16k-profile-20260922/environment-after.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sysfs": {
3
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_governor": "ondemand",
4
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq": "1800000",
5
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq": "1800000",
6
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_governor": "ondemand",
7
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq": "408000",
8
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq": "2304000",
9
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_governor": "ondemand",
10
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq": "408000",
11
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_max_freq": "2352000",
12
+ "/sys/class/devfreq/fdab0000.npu/governor": "rknpu_ondemand",
13
+ "/sys/class/devfreq/fdab0000.npu/min_freq": "300000000",
14
+ "/sys/class/devfreq/fdab0000.npu/max_freq": "1000000000",
15
+ "/sys/class/devfreq/dmc/governor": "dmc_ondemand",
16
+ "/sys/class/devfreq/dmc/min_freq": "534000000",
17
+ "/sys/class/devfreq/dmc/max_freq": "2400000000"
18
+ },
19
+ "matches_before": true,
20
+ "errors": [],
21
+ "meminfo": "MemTotal: 16342632 kB\nMemFree: 8877360 kB\nMemAvailable: 12609848 kB\nBuffers: 84068 kB\nCached: 3862800 kB\nSwapCached: 804 kB\nActive: 962348 kB\nInactive: 3503128 kB\nActive(anon): 51084 kB\nInactive(anon): 544200 kB\nActive(file): 911264 kB\nInactive(file): 2958928 kB\nUnevictable: 18156 kB\nMlocked: 3756 kB\nSwapTotal: 8171312 kB\nSwapFree: 5786160 kB\nZswap: 0 kB\nZswapped: 0 kB\nDirty: 516 kB\nWriteback: 12 kB\nAnonPages: 535900 kB\nMapped: 377844 kB\nShmem: 74464 kB\nKReclaimable: 221104 kB\nSlab: 389900 kB\nSReclaimable: 221104 kB\nSUnreclaim: 168796 kB\nKernelStack: 14020 kB\nPageTables: 27052 kB\nSecPageTables: 0 kB\nNFS_Unstable: 0 kB\nBounce: 0 kB\nWritebackTmp: 0 kB\nCommitLimit: 16342628 kB\nCommitted_AS: 8769156 kB\nVmallocTotal: 133143592960 kB\nVmallocUsed: 110184 kB\nVmallocChunk: 0 kB\nPercpu: 10688 kB\nCmaTotal: 786432 kB\nCmaAllocated: 8780 kB\nCmaReleased: 777652 kB\nCmaFree: 320496 kB\nHugePages_Total: 0\nHugePages_Free: 0\nHugePages_Rsvd: 0\nHugePages_Surp: 0\nHugepagesize: 2048 kB\nHugetlb: 0 kB"
22
+ }
docs/measurements/16k-profile-20260922/environment-before.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sysfs": {
3
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_governor": "ondemand",
4
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq": "1800000",
5
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq": "1800000",
6
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_governor": "ondemand",
7
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq": "408000",
8
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq": "2304000",
9
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_governor": "ondemand",
10
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq": "408000",
11
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_max_freq": "2352000",
12
+ "/sys/class/devfreq/fdab0000.npu/governor": "rknpu_ondemand",
13
+ "/sys/class/devfreq/fdab0000.npu/min_freq": "300000000",
14
+ "/sys/class/devfreq/fdab0000.npu/max_freq": "1000000000",
15
+ "/sys/class/devfreq/dmc/governor": "dmc_ondemand",
16
+ "/sys/class/devfreq/dmc/min_freq": "534000000",
17
+ "/sys/class/devfreq/dmc/max_freq": "2400000000"
18
+ },
19
+ "active_services": [
20
+ "mindnano-openai.service",
21
+ "mindnano-webui.service",
22
+ "mindnano-android-stream.service",
23
+ "gdm.service"
24
+ ],
25
+ "redroid_running": true,
26
+ "meminfo": "MemTotal: 16342632 kB\nMemFree: 8090080 kB\nMemAvailable: 11816488 kB\nBuffers: 83572 kB\nCached: 3849152 kB\nSwapCached: 756 kB\nActive: 738760 kB\nInactive: 4214592 kB\nActive(anon): 50524 kB\nInactive(anon): 1041864 kB\nActive(file): 688236 kB\nInactive(file): 3172728 kB\nUnevictable: 18232 kB\nMlocked: 3832 kB\nSwapTotal: 8171312 kB\nSwapFree: 5778224 kB\nZswap: 0 kB\nZswapped: 0 kB\nDirty: 0 kB\nWriteback: 0 kB\nAnonPages: 1037936 kB\nMapped: 804196 kB\nShmem: 72156 kB\nKReclaimable: 224252 kB\nSlab: 422676 kB\nSReclaimable: 224252 kB\nSUnreclaim: 198424 kB\nKernelStack: 25792 kB\nPageTables: 63288 kB\nSecPageTables: 0 kB\nNFS_Unstable: 0 kB\nBounce: 0 kB\nWritebackTmp: 0 kB\nCommitLimit: 16342628 kB\nCommitted_AS: 50984000 kB\nVmallocTotal: 133143592960 kB\nVmallocUsed: 123500 kB\nVmallocChunk: 0 kB\nPercpu: 10240 kB\nCmaTotal: 786432 kB\nCmaAllocated: 8780 kB\nCmaReleased: 777652 kB\nCmaFree: 320496 kB\nHugePages_Total: 0\nHugePages_Free: 0\nHugePages_Rsvd: 0\nHugePages_Surp: 0\nHugepagesize: 2048 kB\nHugetlb: 0 kB"
27
+ }
docs/measurements/16k-profile-20260922/environment-test.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sysfs": {
3
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_governor": "performance",
4
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq": "1800000",
5
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq": "1800000",
6
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_governor": "performance",
7
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq": "2304000",
8
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq": "2304000",
9
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_governor": "performance",
10
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq": "2352000",
11
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_max_freq": "2352000",
12
+ "/sys/class/devfreq/fdab0000.npu/governor": "performance",
13
+ "/sys/class/devfreq/fdab0000.npu/min_freq": "1000000000",
14
+ "/sys/class/devfreq/fdab0000.npu/max_freq": "1000000000",
15
+ "/sys/class/devfreq/dmc/governor": "performance",
16
+ "/sys/class/devfreq/dmc/min_freq": "2400000000",
17
+ "/sys/class/devfreq/dmc/max_freq": "2400000000"
18
+ },
19
+ "meminfo": "MemTotal: 16342632 kB\nMemFree: 9452440 kB\nMemAvailable: 13166396 kB\nBuffers: 83740 kB\nCached: 3835452 kB\nSwapCached: 768 kB\nActive: 906592 kB\nInactive: 3092096 kB\nActive(anon): 47596 kB\nInactive(anon): 96792 kB\nActive(file): 858996 kB\nInactive(file): 2995304 kB\nUnevictable: 14400 kB\nMlocked: 0 kB\nSwapTotal: 8171312 kB\nSwapFree: 5778992 kB\nZswap: 0 kB\nZswapped: 0 kB\nDirty: 80 kB\nWriteback: 0 kB\nAnonPages: 93652 kB\nMapped: 89044 kB\nShmem: 64892 kB\nKReclaimable: 218464 kB\nSlab: 379228 kB\nSReclaimable: 218464 kB\nSUnreclaim: 160764 kB\nKernelStack: 4880 kB\nPageTables: 5332 kB\nSecPageTables: 0 kB\nNFS_Unstable: 0 kB\nBounce: 0 kB\nWritebackTmp: 0 kB\nCommitLimit: 16342628 kB\nCommitted_AS: 3814784 kB\nVmallocTotal: 133143592960 kB\nVmallocUsed: 92084 kB\nVmallocChunk: 0 kB\nPercpu: 6272 kB\nCmaTotal: 786432 kB\nCmaAllocated: 8780 kB\nCmaReleased: 777652 kB\nCmaFree: 320496 kB\nHugePages_Total: 0\nHugePages_Free: 0\nHugePages_Rsvd: 0\nHugePages_Surp: 0\nHugepagesize: 2048 kB\nHugetlb: 0 kB"
20
+ }
docs/measurements/16k-profile-20260922/int8.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "int8",
3
+ "context": 32768,
4
+ "input_tokens": 16384,
5
+ "output_tokens": 64,
6
+ "sampling_interval_s": 0.1,
7
+ "events": {
8
+ "request_start": 411968.515409829,
9
+ "first_content": 412197.25641432,
10
+ "request_end": 412211.75429871
11
+ },
12
+ "npu_load_source": "/sys/kernel/debug/rknpu/load",
13
+ "finish_reason": "length",
14
+ "metrics": {
15
+ "cache_miss_reason": "disabled",
16
+ "cache_restore_ms": 1.641262,
17
+ "cache_save_ms": 0.0,
18
+ "cache_status": "disabled",
19
+ "cached_tokens": 0,
20
+ "common_prefix_tokens": 0,
21
+ "context_capacity_reached": false,
22
+ "context_length": 32768,
23
+ "continuation_save_ms": 0.0,
24
+ "continuation_skipped_budget": false,
25
+ "continuation_stored": false,
26
+ "continuation_tokens": 0,
27
+ "decode_compute_tokens_per_second": 4.359712369150107,
28
+ "decode_eval_count": 63,
29
+ "decode_eval_ms": 14450.494589000002,
30
+ "decode_ms": 14495.651608,
31
+ "decode_tokens_per_second": 4.346130943519017,
32
+ "effective_max_tokens": 64,
33
+ "finish_reason": "length",
34
+ "flow_control": "none",
35
+ "flow_wait_count": 0,
36
+ "flow_wait_ms": 0.0,
37
+ "generated_cached_tokens": 0,
38
+ "generated_state_lineage": false,
39
+ "id": "chatcmpl-1790040721-1",
40
+ "major_page_faults": 0,
41
+ "minor_page_faults": 2083,
42
+ "mla_cpu_calls": 390,
43
+ "mla_fallbacks": 0,
44
+ "mla_npu_calls": 762,
45
+ "mla_npu_ms": 155815.12691300013,
46
+ "model": "mindnano-ling3-tiny",
47
+ "peak_rss_mib": 6261.60546875,
48
+ "prefill_eval_ms": 228688.91987900005,
49
+ "prefill_ms": 228697.054436,
50
+ "prefill_tokens_per_second": 71.64317365558777,
51
+ "prefix_cache_mib": 0.0,
52
+ "prefix_checkpoint_bytes": 0,
53
+ "prefix_checkpoint_count": 0,
54
+ "prefix_recompute_tokens": 0,
55
+ "prompt_evaluated_tokens": 16384,
56
+ "queue_ms": 0,
57
+ "requested_max_tokens": 64,
58
+ "reuse_generated_state": false,
59
+ "rss_mib": 6261.60546875,
60
+ "sampling": {
61
+ "enable_thinking": false,
62
+ "repeat_penalty": 1.0,
63
+ "seed": 0,
64
+ "temperature": 0.0,
65
+ "top_k": 0,
66
+ "top_p": 1.0
67
+ },
68
+ "session_cache_bytes": 0,
69
+ "session_cache_evictions": 0,
70
+ "session_cache_skipped_budget": false,
71
+ "session_cache_stored": false,
72
+ "session_id": "profile-int8-1790040721134793678",
73
+ "system_prefix_tokens": 8,
74
+ "timestamp": 1790040964,
75
+ "total_ms": 243201.586125,
76
+ "ttft_ms": 228705.803262,
77
+ "usage": {
78
+ "completion_tokens": 64,
79
+ "prompt_tokens": 16384,
80
+ "total_tokens": 16448
81
+ },
82
+ "warmed": true
83
+ },
84
+ "usage": {
85
+ "completion_tokens": 64,
86
+ "prompt_tokens": 16384,
87
+ "total_tokens": 16448
88
+ },
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/16k-profile-20260922/summary.json ADDED
@@ -0,0 +1,872 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bf16": {
3
+ "metrics": {
4
+ "cache_miss_reason": "disabled",
5
+ "cache_restore_ms": 1.642428,
6
+ "cache_save_ms": 0.0,
7
+ "cache_status": "disabled",
8
+ "cached_tokens": 0,
9
+ "common_prefix_tokens": 0,
10
+ "context_capacity_reached": false,
11
+ "context_length": 32768,
12
+ "continuation_save_ms": 0.0,
13
+ "continuation_skipped_budget": false,
14
+ "continuation_stored": false,
15
+ "continuation_tokens": 0,
16
+ "decode_compute_tokens_per_second": 4.26810375745384,
17
+ "decode_eval_count": 63,
18
+ "decode_eval_ms": 14760.653344000002,
19
+ "decode_ms": 14805.646728,
20
+ "decode_tokens_per_second": 4.255133271608884,
21
+ "effective_max_tokens": 64,
22
+ "finish_reason": "length",
23
+ "flow_control": "none",
24
+ "flow_wait_count": 0,
25
+ "flow_wait_ms": 0.0,
26
+ "generated_cached_tokens": 0,
27
+ "generated_state_lineage": false,
28
+ "id": "chatcmpl-1790040377-1",
29
+ "major_page_faults": 0,
30
+ "minor_page_faults": 2058,
31
+ "mla_cpu_calls": 390,
32
+ "mla_fallbacks": 0,
33
+ "mla_npu_calls": 762,
34
+ "mla_npu_ms": 210605.82986399997,
35
+ "model": "mindnano-ling3-tiny",
36
+ "peak_rss_mib": 7200.046875,
37
+ "prefill_eval_ms": 283108.78474800003,
38
+ "prefill_ms": 283118.206186,
39
+ "prefill_tokens_per_second": 57.87174712569826,
40
+ "prefix_cache_mib": 0.0,
41
+ "prefix_checkpoint_bytes": 0,
42
+ "prefix_checkpoint_count": 0,
43
+ "prefix_recompute_tokens": 0,
44
+ "prompt_evaluated_tokens": 16384,
45
+ "queue_ms": 0,
46
+ "requested_max_tokens": 64,
47
+ "reuse_generated_state": false,
48
+ "rss_mib": 7200.046875,
49
+ "sampling": {
50
+ "enable_thinking": false,
51
+ "repeat_penalty": 1.0,
52
+ "seed": 0,
53
+ "temperature": 0.0,
54
+ "top_k": 0,
55
+ "top_p": 1.0
56
+ },
57
+ "session_cache_bytes": 0,
58
+ "session_cache_evictions": 0,
59
+ "session_cache_skipped_budget": false,
60
+ "session_cache_stored": false,
61
+ "session_id": "profile-bf16-1790040377512878116",
62
+ "system_prefix_tokens": 8,
63
+ "timestamp": 1790040675,
64
+ "total_ms": 297932.614864,
65
+ "ttft_ms": 283126.834257,
66
+ "usage": {
67
+ "completion_tokens": 64,
68
+ "prompt_tokens": 16384,
69
+ "total_tokens": 16448
70
+ },
71
+ "warmed": true
72
+ },
73
+ "usage": {
74
+ "completion_tokens": 64,
75
+ "prompt_tokens": 16384,
76
+ "total_tokens": 16448
77
+ },
78
+ "sampler_error": null,
79
+ "stages": {
80
+ "prefill": {
81
+ "samples": 2711,
82
+ "interior_duration_s": 281.2550669920165,
83
+ "cpu": {
84
+ "cpu0": {
85
+ "mean": 0.9116421135108312,
86
+ "p95": 9.090909090909093,
87
+ "max": 54.54545454545454,
88
+ "min": 0.0
89
+ },
90
+ "cpu1": {
91
+ "mean": 1.4700822236794389,
92
+ "p95": 9.090909090909093,
93
+ "max": 54.54545454545454,
94
+ "min": 0.0
95
+ },
96
+ "cpu2": {
97
+ "mean": 2.5118762603711358,
98
+ "p95": 9.090909090909093,
99
+ "max": 60.0,
100
+ "min": 0.0
101
+ },
102
+ "cpu3": {
103
+ "mean": 0.4771656622786325,
104
+ "p95": 0.0,
105
+ "max": 63.63636363636363,
106
+ "min": 0.0
107
+ },
108
+ "cpu4": {
109
+ "mean": 83.97209219668899,
110
+ "p95": 90.9090909090909,
111
+ "max": 100.0,
112
+ "min": 63.63636363636363
113
+ },
114
+ "cpu5": {
115
+ "mean": 72.72041766769374,
116
+ "p95": 90.9090909090909,
117
+ "max": 100.0,
118
+ "min": 9.999999999999998
119
+ },
120
+ "cpu6": {
121
+ "mean": 71.7617586704062,
122
+ "p95": 90.9090909090909,
123
+ "max": 100.0,
124
+ "min": 0.0
125
+ },
126
+ "cpu7": {
127
+ "mean": 14.364965991257263,
128
+ "p95": 50.0,
129
+ "max": 60.0,
130
+ "min": 0.0
131
+ }
132
+ },
133
+ "process_cpu_percent": {
134
+ "mean": 240.70321905319364,
135
+ "p95": 270.8230237178778,
136
+ "max": 288.602237506844,
137
+ "min": 106.21811052021786
138
+ },
139
+ "npu": {
140
+ "core0": {
141
+ "mean": 12.636158344355458,
142
+ "p95": 13.0,
143
+ "max": 19.0,
144
+ "min": 0.0
145
+ },
146
+ "core1": {
147
+ "mean": 11.870733909545008,
148
+ "p95": 13.0,
149
+ "max": 21.0,
150
+ "min": 0.0
151
+ },
152
+ "core2": {
153
+ "mean": 12.077608407154674,
154
+ "p95": 13.0,
155
+ "max": 20.0,
156
+ "min": 0.0
157
+ }
158
+ },
159
+ "temperature_c": {
160
+ "mean": 67.20225470711578,
161
+ "p95": 68.384,
162
+ "max": 70.23,
163
+ "min": 54.538
164
+ },
165
+ "rss_mib": {
166
+ "mean": 7197.834941588325,
167
+ "p95": 7198.2421875,
168
+ "max": 7198.5,
169
+ "min": 7194.83203125
170
+ },
171
+ "max_process_swap_mib": 0.0,
172
+ "cpu_khz": {
173
+ "0": [
174
+ 1800000
175
+ ],
176
+ "4": [
177
+ 2304000
178
+ ],
179
+ "6": [
180
+ 2352000
181
+ ]
182
+ },
183
+ "npu_hz": [
184
+ 1000000000
185
+ ],
186
+ "dmc_hz": [
187
+ 2400000000
188
+ ],
189
+ "npu_all_three_ge90_fraction": 0.0,
190
+ "npu_any_ge90_fraction": 0.0,
191
+ "a76_busy_cores": {
192
+ "mean": 2.428192345260462,
193
+ "p95": 2.75,
194
+ "max": 3.0414141414141413,
195
+ "min": 1.0
196
+ }
197
+ },
198
+ "prefill_last30": {
199
+ "samples": 271,
200
+ "interior_duration_s": 28.05183026503073,
201
+ "cpu": {
202
+ "cpu0": {
203
+ "mean": 0.2688066318026482,
204
+ "p95": 0.0,
205
+ "max": 9.090909090909093,
206
+ "min": 0.0
207
+ },
208
+ "cpu1": {
209
+ "mean": 0.1650101424546764,
210
+ "p95": 0.0,
211
+ "max": 9.090909090909093,
212
+ "min": 0.0
213
+ },
214
+ "cpu2": {
215
+ "mean": 2.9912419632761877,
216
+ "p95": 9.090909090909093,
217
+ "max": 9.999999999999998,
218
+ "min": 0.0
219
+ },
220
+ "cpu3": {
221
+ "mean": 0.06744496558552131,
222
+ "p95": 0.0,
223
+ "max": 9.090909090909093,
224
+ "min": 0.0
225
+ },
226
+ "cpu4": {
227
+ "mean": 85.12599184884506,
228
+ "p95": 90.9090909090909,
229
+ "max": 91.66666666666666,
230
+ "min": 63.63636363636363
231
+ },
232
+ "cpu5": {
233
+ "mean": 72.57149932710574,
234
+ "p95": 90.9090909090909,
235
+ "max": 91.66666666666666,
236
+ "min": 9.999999999999998
237
+ },
238
+ "cpu6": {
239
+ "mean": 71.96673285775329,
240
+ "p95": 90.9090909090909,
241
+ "max": 90.9090909090909,
242
+ "min": 0.0
243
+ },
244
+ "cpu7": {
245
+ "mean": 8.366140950873863,
246
+ "p95": 45.45454545454546,
247
+ "max": 54.54545454545454,
248
+ "min": 0.0
249
+ }
250
+ },
251
+ "process_cpu_percent": {
252
+ "mean": 236.41951121697102,
253
+ "p95": 270.7027451709863,
254
+ "max": 278.4376109776284,
255
+ "min": 106.21811052021786
256
+ },
257
+ "npu": {
258
+ "core0": {
259
+ "mean": 12.778646320886791,
260
+ "p95": 13.0,
261
+ "max": 14.0,
262
+ "min": 8.0
263
+ },
264
+ "core1": {
265
+ "mean": 11.476016733092514,
266
+ "p95": 13.0,
267
+ "max": 13.0,
268
+ "min": 8.0
269
+ },
270
+ "core2": {
271
+ "mean": 12.0444171549692,
272
+ "p95": 13.0,
273
+ "max": 13.0,
274
+ "min": 8.0
275
+ }
276
+ },
277
+ "temperature_c": {
278
+ "mean": 67.93146241955381,
279
+ "p95": 68.384,
280
+ "max": 69.307,
281
+ "min": 64.692
282
+ },
283
+ "rss_mib": {
284
+ "mean": 7198.250751695138,
285
+ "p95": 7198.2421875,
286
+ "max": 7198.5,
287
+ "min": 7198.2421875
288
+ },
289
+ "max_process_swap_mib": 0.0,
290
+ "cpu_khz": {
291
+ "0": [
292
+ 1800000
293
+ ],
294
+ "4": [
295
+ 2304000
296
+ ],
297
+ "6": [
298
+ 2352000
299
+ ]
300
+ },
301
+ "npu_hz": [
302
+ 1000000000
303
+ ],
304
+ "dmc_hz": [
305
+ 2400000000
306
+ ],
307
+ "npu_all_three_ge90_fraction": 0.0,
308
+ "npu_any_ge90_fraction": 0.0,
309
+ "a76_busy_cores": {
310
+ "mean": 2.3803036498457795,
311
+ "p95": 2.7272727272727275,
312
+ "max": 2.868181818181818,
313
+ "min": 1.0
314
+ }
315
+ },
316
+ "decode": {
317
+ "samples": 121,
318
+ "interior_duration_s": 12.782317531004082,
319
+ "cpu": {
320
+ "cpu0": {
321
+ "mean": 7.2494741299370915,
322
+ "p95": 22.22222222222222,
323
+ "max": 45.45454545454546,
324
+ "min": 0.0
325
+ },
326
+ "cpu1": {
327
+ "mean": 3.912643142217936,
328
+ "p95": 36.36363636363637,
329
+ "max": 58.33333333333333,
330
+ "min": 0.0
331
+ },
332
+ "cpu2": {
333
+ "mean": 4.041498788858728,
334
+ "p95": 30.000000000000004,
335
+ "max": 55.55555555555556,
336
+ "min": 0.0
337
+ },
338
+ "cpu3": {
339
+ "mean": 3.0018665063409165,
340
+ "p95": 19.999999999999996,
341
+ "max": 63.63636363636363,
342
+ "min": 0.0
343
+ },
344
+ "cpu4": {
345
+ "mean": 75.43433910394856,
346
+ "p95": 81.81818181818181,
347
+ "max": 90.0,
348
+ "min": 60.0
349
+ },
350
+ "cpu5": {
351
+ "mean": 76.13240375844063,
352
+ "p95": 81.81818181818181,
353
+ "max": 90.0,
354
+ "min": 63.63636363636363
355
+ },
356
+ "cpu6": {
357
+ "mean": 80.45395947147252,
358
+ "p95": 90.0,
359
+ "max": 90.9090909090909,
360
+ "min": 70.0
361
+ },
362
+ "cpu7": {
363
+ "mean": 78.59016813826085,
364
+ "p95": 83.33333333333334,
365
+ "max": 90.9090909090909,
366
+ "min": 66.66666666666667
367
+ }
368
+ },
369
+ "process_cpu_percent": {
370
+ "mean": 308.9424112976011,
371
+ "p95": 334.5319427083788,
372
+ "max": 345.08531320685523,
373
+ "min": 254.43955323942478
374
+ },
375
+ "npu": {
376
+ "core0": {
377
+ "mean": 13.711681152650927,
378
+ "p95": 15.0,
379
+ "max": 15.0,
380
+ "min": 12.0
381
+ },
382
+ "core1": {
383
+ "mean": 13.71091804901339,
384
+ "p95": 15.0,
385
+ "max": 15.0,
386
+ "min": 12.0
387
+ },
388
+ "core2": {
389
+ "mean": 13.33182737376849,
390
+ "p95": 14.0,
391
+ "max": 14.0,
392
+ "min": 12.0
393
+ }
394
+ },
395
+ "temperature_c": {
396
+ "mean": 69.04744945196191,
397
+ "p95": 70.23,
398
+ "max": 70.23,
399
+ "min": 67.461
400
+ },
401
+ "rss_mib": {
402
+ "mean": 7200.046875,
403
+ "p95": 7200.046875,
404
+ "max": 7200.046875,
405
+ "min": 7200.046875
406
+ },
407
+ "max_process_swap_mib": 0.0,
408
+ "cpu_khz": {
409
+ "0": [
410
+ 1800000
411
+ ],
412
+ "4": [
413
+ 2304000
414
+ ],
415
+ "6": [
416
+ 2352000
417
+ ]
418
+ },
419
+ "npu_hz": [
420
+ 1000000000
421
+ ],
422
+ "dmc_hz": [
423
+ 2400000000
424
+ ],
425
+ "npu_all_three_ge90_fraction": 0.0,
426
+ "npu_any_ge90_fraction": 0.0,
427
+ "a76_busy_cores": {
428
+ "mean": 3.1061087047212257,
429
+ "p95": 3.3363636363636364,
430
+ "max": 3.5272727272727273,
431
+ "min": 2.7272727272727275
432
+ }
433
+ }
434
+ },
435
+ "observed_npu_value_changes": 189
436
+ },
437
+ "int8": {
438
+ "metrics": {
439
+ "cache_miss_reason": "disabled",
440
+ "cache_restore_ms": 1.641262,
441
+ "cache_save_ms": 0.0,
442
+ "cache_status": "disabled",
443
+ "cached_tokens": 0,
444
+ "common_prefix_tokens": 0,
445
+ "context_capacity_reached": false,
446
+ "context_length": 32768,
447
+ "continuation_save_ms": 0.0,
448
+ "continuation_skipped_budget": false,
449
+ "continuation_stored": false,
450
+ "continuation_tokens": 0,
451
+ "decode_compute_tokens_per_second": 4.359712369150107,
452
+ "decode_eval_count": 63,
453
+ "decode_eval_ms": 14450.494589000002,
454
+ "decode_ms": 14495.651608,
455
+ "decode_tokens_per_second": 4.346130943519017,
456
+ "effective_max_tokens": 64,
457
+ "finish_reason": "length",
458
+ "flow_control": "none",
459
+ "flow_wait_count": 0,
460
+ "flow_wait_ms": 0.0,
461
+ "generated_cached_tokens": 0,
462
+ "generated_state_lineage": false,
463
+ "id": "chatcmpl-1790040721-1",
464
+ "major_page_faults": 0,
465
+ "minor_page_faults": 2083,
466
+ "mla_cpu_calls": 390,
467
+ "mla_fallbacks": 0,
468
+ "mla_npu_calls": 762,
469
+ "mla_npu_ms": 155815.12691300013,
470
+ "model": "mindnano-ling3-tiny",
471
+ "peak_rss_mib": 6261.60546875,
472
+ "prefill_eval_ms": 228688.91987900005,
473
+ "prefill_ms": 228697.054436,
474
+ "prefill_tokens_per_second": 71.64317365558777,
475
+ "prefix_cache_mib": 0.0,
476
+ "prefix_checkpoint_bytes": 0,
477
+ "prefix_checkpoint_count": 0,
478
+ "prefix_recompute_tokens": 0,
479
+ "prompt_evaluated_tokens": 16384,
480
+ "queue_ms": 0,
481
+ "requested_max_tokens": 64,
482
+ "reuse_generated_state": false,
483
+ "rss_mib": 6261.60546875,
484
+ "sampling": {
485
+ "enable_thinking": false,
486
+ "repeat_penalty": 1.0,
487
+ "seed": 0,
488
+ "temperature": 0.0,
489
+ "top_k": 0,
490
+ "top_p": 1.0
491
+ },
492
+ "session_cache_bytes": 0,
493
+ "session_cache_evictions": 0,
494
+ "session_cache_skipped_budget": false,
495
+ "session_cache_stored": false,
496
+ "session_id": "profile-int8-1790040721134793678",
497
+ "system_prefix_tokens": 8,
498
+ "timestamp": 1790040964,
499
+ "total_ms": 243201.586125,
500
+ "ttft_ms": 228705.803262,
501
+ "usage": {
502
+ "completion_tokens": 64,
503
+ "prompt_tokens": 16384,
504
+ "total_tokens": 16448
505
+ },
506
+ "warmed": true
507
+ },
508
+ "usage": {
509
+ "completion_tokens": 64,
510
+ "prompt_tokens": 16384,
511
+ "total_tokens": 16448
512
+ },
513
+ "sampler_error": null,
514
+ "stages": {
515
+ "prefill": {
516
+ "samples": 2186,
517
+ "interior_duration_s": 226.82875264098402,
518
+ "cpu": {
519
+ "cpu0": {
520
+ "mean": 3.190033704071436,
521
+ "p95": 9.999999999999998,
522
+ "max": 63.63636363636363,
523
+ "min": 0.0
524
+ },
525
+ "cpu1": {
526
+ "mean": 2.0593555380601223,
527
+ "p95": 9.090909090909093,
528
+ "max": 55.55555555555556,
529
+ "min": 0.0
530
+ },
531
+ "cpu2": {
532
+ "mean": 1.0668364473806766,
533
+ "p95": 9.090909090909093,
534
+ "max": 54.54545454545454,
535
+ "min": 0.0
536
+ },
537
+ "cpu3": {
538
+ "mean": 0.7942663239566917,
539
+ "p95": 0.0,
540
+ "max": 55.55555555555556,
541
+ "min": 0.0
542
+ },
543
+ "cpu4": {
544
+ "mean": 86.95497490105133,
545
+ "p95": 100.0,
546
+ "max": 100.0,
547
+ "min": 60.0
548
+ },
549
+ "cpu5": {
550
+ "mean": 75.56169423408855,
551
+ "p95": 100.0,
552
+ "max": 100.0,
553
+ "min": 11.111111111111116
554
+ },
555
+ "cpu6": {
556
+ "mean": 74.27095815676672,
557
+ "p95": 100.0,
558
+ "max": 100.0,
559
+ "min": 19.999999999999996
560
+ },
561
+ "cpu7": {
562
+ "mean": 17.936976400044003,
563
+ "p95": 50.0,
564
+ "max": 63.63636363636363,
565
+ "min": 0.0
566
+ }
567
+ },
568
+ "process_cpu_percent": {
569
+ "mean": 252.9000372840526,
570
+ "p95": 281.0343453372435,
571
+ "max": 290.75600310858556,
572
+ "min": 135.54321569560102
573
+ },
574
+ "npu": {
575
+ "core0": {
576
+ "mean": 8.497961034185657,
577
+ "p95": 11.0,
578
+ "max": 13.0,
579
+ "min": 6.0
580
+ },
581
+ "core1": {
582
+ "mean": 8.390116621609069,
583
+ "p95": 11.0,
584
+ "max": 14.0,
585
+ "min": 6.0
586
+ },
587
+ "core2": {
588
+ "mean": 8.659771930130951,
589
+ "p95": 12.0,
590
+ "max": 14.0,
591
+ "min": 6.0
592
+ }
593
+ },
594
+ "temperature_c": {
595
+ "mean": 69.1042196374582,
596
+ "p95": 70.23,
597
+ "max": 72.076,
598
+ "min": 61.923
599
+ },
600
+ "rss_mib": {
601
+ "mean": 6259.1302858772315,
602
+ "p95": 6259.54296875,
603
+ "max": 6260.05859375,
604
+ "min": 6256.1328125
605
+ },
606
+ "max_process_swap_mib": 0.0,
607
+ "cpu_khz": {
608
+ "0": [
609
+ 1800000
610
+ ],
611
+ "4": [
612
+ 2304000
613
+ ],
614
+ "6": [
615
+ 2352000
616
+ ]
617
+ },
618
+ "npu_hz": [
619
+ 1000000000
620
+ ],
621
+ "dmc_hz": [
622
+ 2400000000
623
+ ],
624
+ "npu_all_three_ge90_fraction": 0.0,
625
+ "npu_any_ge90_fraction": 0.0,
626
+ "a76_busy_cores": {
627
+ "mean": 2.5472460369195056,
628
+ "p95": 2.9,
629
+ "max": 3.109090909090909,
630
+ "min": 1.4222222222222223
631
+ }
632
+ },
633
+ "prefill_last30": {
634
+ "samples": 271,
635
+ "interior_duration_s": 28.0351273129927,
636
+ "cpu": {
637
+ "cpu0": {
638
+ "mean": 3.5458929742734577,
639
+ "p95": 9.999999999999998,
640
+ "max": 18.181818181818176,
641
+ "min": 0.0
642
+ },
643
+ "cpu1": {
644
+ "mean": 0.22923978099244705,
645
+ "p95": 0.0,
646
+ "max": 9.090909090909093,
647
+ "min": 0.0
648
+ },
649
+ "cpu2": {
650
+ "mean": 0.0,
651
+ "p95": 0.0,
652
+ "max": 0.0,
653
+ "min": 0.0
654
+ },
655
+ "cpu3": {
656
+ "mean": 0.13451598622568586,
657
+ "p95": 0.0,
658
+ "max": 9.999999999999998,
659
+ "min": 0.0
660
+ },
661
+ "cpu4": {
662
+ "mean": 89.63772319001673,
663
+ "p95": 100.0,
664
+ "max": 100.0,
665
+ "min": 63.63636363636363
666
+ },
667
+ "cpu5": {
668
+ "mean": 76.30601640383126,
669
+ "p95": 100.0,
670
+ "max": 100.0,
671
+ "min": 11.111111111111116
672
+ },
673
+ "cpu6": {
674
+ "mean": 75.48294824867241,
675
+ "p95": 100.0,
676
+ "max": 100.0,
677
+ "min": 19.999999999999996
678
+ },
679
+ "cpu7": {
680
+ "mean": 11.118966549392773,
681
+ "p95": 50.0,
682
+ "max": 54.54545454545454,
683
+ "min": 0.0
684
+ }
685
+ },
686
+ "process_cpu_percent": {
687
+ "mean": 250.97085957370385,
688
+ "p95": 289.660407547599,
689
+ "max": 290.7321707398178,
690
+ "min": 135.54321569560102
691
+ },
692
+ "npu": {
693
+ "core0": {
694
+ "mean": 7.361752965870889,
695
+ "p95": 8.0,
696
+ "max": 9.0,
697
+ "min": 7.0
698
+ },
699
+ "core1": {
700
+ "mean": 7.088540242651115,
701
+ "p95": 8.0,
702
+ "max": 8.0,
703
+ "min": 7.0
704
+ },
705
+ "core2": {
706
+ "mean": 7.306253657463555,
707
+ "p95": 8.0,
708
+ "max": 8.0,
709
+ "min": 7.0
710
+ }
711
+ },
712
+ "temperature_c": {
713
+ "mean": 68.31621546224808,
714
+ "p95": 69.307,
715
+ "max": 70.23,
716
+ "min": 64.692
717
+ },
718
+ "rss_mib": {
719
+ "mean": 6259.549624614783,
720
+ "p95": 6259.54296875,
721
+ "max": 6260.05859375,
722
+ "min": 6259.54296875
723
+ },
724
+ "max_process_swap_mib": 0.0,
725
+ "cpu_khz": {
726
+ "0": [
727
+ 1800000
728
+ ],
729
+ "4": [
730
+ 2304000
731
+ ],
732
+ "6": [
733
+ 2352000
734
+ ]
735
+ },
736
+ "npu_hz": [
737
+ 1000000000
738
+ ],
739
+ "dmc_hz": [
740
+ 2400000000
741
+ ],
742
+ "npu_all_three_ge90_fraction": 0.0,
743
+ "npu_any_ge90_fraction": 0.0,
744
+ "a76_busy_cores": {
745
+ "mean": 2.5254565439191317,
746
+ "p95": 2.9090909090909087,
747
+ "max": 3.0,
748
+ "min": 1.4222222222222223
749
+ }
750
+ },
751
+ "decode": {
752
+ "samples": 119,
753
+ "interior_duration_s": 12.45813832595013,
754
+ "cpu": {
755
+ "cpu0": {
756
+ "mean": 5.544687625883531,
757
+ "p95": 16.818181818181806,
758
+ "max": 30.000000000000004,
759
+ "min": 0.0
760
+ },
761
+ "cpu1": {
762
+ "mean": 3.1572634386762077,
763
+ "p95": 20.363636363636235,
764
+ "max": 60.0,
765
+ "min": 0.0
766
+ },
767
+ "cpu2": {
768
+ "mean": 2.3901098644112,
769
+ "p95": 19.090909090909033,
770
+ "max": 50.0,
771
+ "min": 0.0
772
+ },
773
+ "cpu3": {
774
+ "mean": 1.4197347260804165,
775
+ "p95": 9.090909090909093,
776
+ "max": 36.36363636363637,
777
+ "min": 0.0
778
+ },
779
+ "cpu4": {
780
+ "mean": 80.36134008938845,
781
+ "p95": 90.0,
782
+ "max": 91.66666666666666,
783
+ "min": 70.0
784
+ },
785
+ "cpu5": {
786
+ "mean": 80.29821904770955,
787
+ "p95": 90.0,
788
+ "max": 90.9090909090909,
789
+ "min": 70.0
790
+ },
791
+ "cpu6": {
792
+ "mean": 79.49032184878239,
793
+ "p95": 90.0,
794
+ "max": 90.9090909090909,
795
+ "min": 70.0
796
+ },
797
+ "cpu7": {
798
+ "mean": 79.79832350801284,
799
+ "p95": 90.0,
800
+ "max": 90.9090909090909,
801
+ "min": 66.66666666666667
802
+ }
803
+ },
804
+ "process_cpu_percent": {
805
+ "mean": 317.46316315671254,
806
+ "p95": 343.8993203409865,
807
+ "max": 355.21706636229163,
808
+ "min": 275.73030333083
809
+ },
810
+ "npu": {
811
+ "core0": {
812
+ "mean": 13.7566875361672,
813
+ "p95": 15.0,
814
+ "max": 15.0,
815
+ "min": 12.0
816
+ },
817
+ "core1": {
818
+ "mean": 13.89953521030507,
819
+ "p95": 15.0,
820
+ "max": 15.0,
821
+ "min": 12.0
822
+ },
823
+ "core2": {
824
+ "mean": 13.521365549424191,
825
+ "p95": 15.0,
826
+ "max": 15.0,
827
+ "min": 12.0
828
+ }
829
+ },
830
+ "temperature_c": {
831
+ "mean": 72.37917960062472,
832
+ "p95": 73.923,
833
+ "max": 73.923,
834
+ "min": 69.307
835
+ },
836
+ "rss_mib": {
837
+ "mean": 6261.605468749999,
838
+ "p95": 6261.60546875,
839
+ "max": 6261.60546875,
840
+ "min": 6261.60546875
841
+ },
842
+ "max_process_swap_mib": 0.0,
843
+ "cpu_khz": {
844
+ "0": [
845
+ 1800000
846
+ ],
847
+ "4": [
848
+ 2304000
849
+ ],
850
+ "6": [
851
+ 2352000
852
+ ]
853
+ },
854
+ "npu_hz": [
855
+ 1000000000
856
+ ],
857
+ "dmc_hz": [
858
+ 2400000000
859
+ ],
860
+ "npu_all_three_ge90_fraction": 0.0,
861
+ "npu_any_ge90_fraction": 0.0,
862
+ "a76_busy_cores": {
863
+ "mean": 3.199482044938932,
864
+ "p95": 3.5007070707070707,
865
+ "max": 3.5590909090909086,
866
+ "min": 2.7939393939393944
867
+ }
868
+ }
869
+ },
870
+ "observed_npu_value_changes": 162
871
+ }
872
+ }
docs/measurements/16k-profile-20260922/timeline.png ADDED

Git LFS Details

  • SHA256: ea3664936a1f80a172adb014cbb0253005bdd0a2670d62352a0a4d0d1d93868e
  • Pointer size: 131 Bytes
  • Size of remote file: 321 kB
docs/measurements/benchmark-current-20260922/candidate-bf16-0-chinese.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 0,
5
+ "repeat": "chinese",
6
+ "events": {
7
+ "request_start": 456188.816388507,
8
+ "first_content": 456190.963557395,
9
+ "request_end": 456192.119949646
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.670428,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 18.432587130185446,
25
+ "decode_eval_count": 21,
26
+ "decode_eval_ms": 1139.286626,
27
+ "decode_ms": 1154.200015,
28
+ "decode_tokens_per_second": 18.194420141295875,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "stop",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084941-12",
37
+ "major_page_faults": 32,
38
+ "minor_page_faults": 200,
39
+ "mla_cpu_calls": 138,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 12,
42
+ "mla_npu_ms": 171.94848100002855,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 1006632960,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 8161.9140625,
47
+ "prefill_eval_ms": 2108.897509,
48
+ "prefill_ms": 2108.936886,
49
+ "prefill_tokens_per_second": 156.95404759473308,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 331,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 6380.1015625,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-0-chinese1790084940435264828",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084944,
74
+ "total_ms": 3266.788975,
75
+ "ttft_ms": 2112.567085,
76
+ "usage": {
77
+ "completion_tokens": 22,
78
+ "prompt_tokens": 331,
79
+ "total_tokens": 353
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 22,
85
+ "prompt_tokens": 331,
86
+ "total_tokens": 353
87
+ },
88
+ "text": "缓存保存近期计算结果以快速响应用户请求,而索引帮助系统快速定位资料以支持问答。",
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-1024-0.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 1024,
5
+ "repeat": 0,
6
+ "events": {
7
+ "request_start": 455800.524492545,
8
+ "first_content": 455806.249937804,
9
+ "request_end": 455810.033772762
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.523423,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 16.855708890999935,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 3737.6060780000003,
27
+ "decode_ms": 3781.566303,
28
+ "decode_tokens_per_second": 16.659763429249068,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084553-7",
37
+ "major_page_faults": 1,
38
+ "minor_page_faults": 272,
39
+ "mla_cpu_calls": 390,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 42,
42
+ "mla_npu_ms": 890.8592660000002,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 62914560,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 7257.9765625,
47
+ "prefill_eval_ms": 5688.080995,
48
+ "prefill_ms": 5688.179872,
49
+ "prefill_tokens_per_second": 180.02556589825775,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 1024,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7197.984375,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-1024-01790084552143379950",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084562,
74
+ "total_ms": 9472.748103,
75
+ "ttft_ms": 5691.058421,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 1024,
79
+ "total_tokens": 1088
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 1024,
86
+ "total_tokens": 1088
87
+ },
88
+ "text": "The number you've provided is a very long string of the digit **1**, specifically:\n\n**1111111111111111111111111111111111111111111",
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-128-0.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 128,
5
+ "repeat": 0,
6
+ "events": {
7
+ "request_start": 455778.217041396,
8
+ "first_content": 455779.004366804,
9
+ "request_end": 455782.21085558
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.520799,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 19.975592616064677,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 3153.84886,
27
+ "decode_ms": 3204.224204,
28
+ "decode_tokens_per_second": 19.66154550650788,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084530-3",
37
+ "major_page_faults": 0,
38
+ "minor_page_faults": 314,
39
+ "mla_cpu_calls": 390,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 0,
42
+ "mla_npu_ms": 0.0,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 0,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 7197.38671875,
47
+ "prefill_eval_ms": 749.91185,
48
+ "prefill_ms": 749.926725,
49
+ "prefill_tokens_per_second": 170.6867280467698,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 128,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7197.38671875,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-128-01790084529835691085",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084534,
74
+ "total_ms": 3957.371323,
75
+ "ttft_ms": 753.034532,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 128,
79
+ "total_tokens": 192
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 128,
86
+ "total_tokens": 192
87
+ },
88
+ "text": "The number you've provided is a string of 111 ones:\n\n**1111111111111111111111111111111111111111111111",
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-128-1.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 128,
5
+ "repeat": 1,
6
+ "events": {
7
+ "request_start": 455783.212983951,
8
+ "first_content": 455783.996650285,
9
+ "request_end": 455787.21142149
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.528673,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 19.88728216137581,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 3167.853681,
27
+ "decode_ms": 3212.47659,
28
+ "decode_tokens_per_second": 19.611037850395665,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084535-4",
37
+ "major_page_faults": 0,
38
+ "minor_page_faults": 16,
39
+ "mla_cpu_calls": 390,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 0,
42
+ "mla_npu_ms": 0.0,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 0,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 7197.390625,
47
+ "prefill_eval_ms": 746.5561180000001,
48
+ "prefill_ms": 746.570411,
49
+ "prefill_tokens_per_second": 171.4539562583827,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 128,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7197.390625,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-128-11790084534831820604",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084539,
74
+ "total_ms": 3961.73917,
75
+ "ttft_ms": 749.138909,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 128,
79
+ "total_tokens": 192
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 128,
86
+ "total_tokens": 192
87
+ },
88
+ "text": "The number you've provided is a string of 111 ones:\n\n**1111111111111111111111111111111111111111111111",
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-128-2.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 128,
5
+ "repeat": 2,
6
+ "events": {
7
+ "request_start": 455788.213229017,
8
+ "first_content": 455789.008180291,
9
+ "request_end": 455792.231579269
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.56455,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 19.8304340067351,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 3176.9350069999996,
27
+ "decode_ms": 3221.085987,
28
+ "decode_tokens_per_second": 19.558620991262597,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084540-5",
37
+ "major_page_faults": 0,
38
+ "minor_page_faults": 8,
39
+ "mla_cpu_calls": 390,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 0,
42
+ "mla_npu_ms": 0.0,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 0,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 7197.390625,
47
+ "prefill_eval_ms": 758.0148969999999,
48
+ "prefill_ms": 758.029774,
49
+ "prefill_tokens_per_second": 168.86211670322888,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 128,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7197.390625,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-128-21790084539832181757",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084544,
74
+ "total_ms": 3981.815804,
75
+ "ttft_ms": 760.612563,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 128,
79
+ "total_tokens": 192
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 128,
86
+ "total_tokens": 192
87
+ },
88
+ "text": "The number you've provided is a string of 111 ones:\n\n**1111111111111111111111111111111111111111111111",
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-128-warmup0.result.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 128,
5
+ "repeat": "warmup0",
6
+ "events": {
7
+ "request_start": 455769.145641657,
8
+ "first_content": 455769.953634928,
9
+ "request_end": 455773.218449257
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.667219,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 19.58395001119543,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 3216.9199759999997,
27
+ "decode_ms": 3262.460505,
28
+ "decode_tokens_per_second": 19.310578596567563,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084521-1",
37
+ "major_page_faults": 9,
38
+ "minor_page_faults": 1093,
39
+ "mla_cpu_calls": 390,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 0,
42
+ "mla_npu_ms": 0.0,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 0,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 7195.33203125,
47
+ "prefill_eval_ms": 770.778052,
48
+ "prefill_ms": 770.793219,
49
+ "prefill_tokens_per_second": 166.0659636945656,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 128,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7195.33203125,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-128-warmup01790084521765028131",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084525,
74
+ "total_ms": 4036.661664,
75
+ "ttft_ms": 774.084781,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 128,
79
+ "total_tokens": 192
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 128,
86
+ "total_tokens": 192
87
+ },
88
+ "text": "The number you've provided is a string of 111 ones:\n\n**1111111111111111111111111111111111111111111111",
89
+ "passed": true
90
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-128-warmup1.result.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 128,
5
+ "repeat": "warmup1",
6
+ "events": {
7
+ "request_start": 455773.219310576,
8
+ "first_content": 455774.013498827,
9
+ "request_end": 455777.215267703
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.480838,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 19.98250236303953,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 3152.7582910000015,
27
+ "decode_ms": 3199.438095,
28
+ "decode_tokens_per_second": 19.690957639860194,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084525-2",
37
+ "major_page_faults": 0,
38
+ "minor_page_faults": 313,
39
+ "mla_cpu_calls": 390,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 0,
42
+ "mla_npu_ms": 0.0,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 0,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 7196.359375,
47
+ "prefill_eval_ms": 757.241374,
48
+ "prefill_ms": 757.25654,
49
+ "prefill_tokens_per_second": 169.0346095642682,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 128,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7196.359375,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-128-warmup11790084525838699384",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084529,
74
+ "total_ms": 3959.868944,
75
+ "ttft_ms": 760.318262,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 128,
79
+ "total_tokens": 192
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 128,
86
+ "total_tokens": 192
87
+ },
88
+ "text": "The number you've provided is a string of 111 ones:\n\n**1111111111111111111111111111111111111111111111",
89
+ "passed": true
90
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-16384-0.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 16384,
5
+ "repeat": 0,
6
+ "events": {
7
+ "request_start": 455950.628072194,
8
+ "first_content": 456176.707612801,
9
+ "request_end": 456187.814361348
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.545882,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 6.062598492920985,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 10391.583753,
27
+ "decode_ms": 10435.555938,
28
+ "decode_tokens_per_second": 6.037052589655718,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084703-11",
37
+ "major_page_faults": 0,
38
+ "minor_page_faults": 952,
39
+ "mla_cpu_calls": 12,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 1140,
42
+ "mla_npu_ms": 159710.49429300014,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 1006632960,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 8161.9140625,
47
+ "prefill_eval_ms": 226028.90916399998,
48
+ "prefill_ms": 226036.530079,
49
+ "prefill_tokens_per_second": 72.48630301583347,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 16384,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7201.96875,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-16384-01790084702246849346",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084939,
74
+ "total_ms": 236480.440198,
75
+ "ttft_ms": 226044.768173,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 16384,
79
+ "total_tokens": 16448
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 16384,
86
+ "total_tokens": 16448
87
+ },
88
+ "text": "The number 1111111111111111111111111111111111111111111111111111111111111",
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-2048-0.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 2048,
5
+ "repeat": 0,
6
+ "events": {
7
+ "request_start": 455811.035712419,
8
+ "first_content": 455823.824196503,
9
+ "request_end": 455828.418413266
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 2.82634,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 13.854736480869109,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 4547.181398000001,
27
+ "decode_ms": 4591.889189,
28
+ "decode_tokens_per_second": 13.719843272986262,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084563-8",
37
+ "major_page_faults": 22,
38
+ "minor_page_faults": 374,
39
+ "mla_cpu_calls": 390,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 90,
42
+ "mla_npu_ms": 2995.6814800000006,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 125829120,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 7322.2890625,
47
+ "prefill_eval_ms": 12748.942459,
48
+ "prefill_ms": 12749.451434,
49
+ "prefill_tokens_per_second": 160.64077523184937,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 2048,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7202.3125,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-2048-01790084562654593698",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084581,
74
+ "total_ms": 17345.997227,
75
+ "ttft_ms": 12753.984368,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 2048,
79
+ "total_tokens": 2112
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 2048,
86
+ "total_tokens": 2112
87
+ },
88
+ "text": "The number you've provided is a very long string of 1s. If you're looking for a specific property or calculation related to this number, please let me know what you'd like to know! For example:\n\n- Is it a prime number?\n- What is its binary representation?\n- What",
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-4096-0.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 4096,
5
+ "repeat": 0,
6
+ "events": {
7
+ "request_start": 455829.420369547,
8
+ "first_content": 455858.497705999,
9
+ "request_end": 455864.166573134
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.528673,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 11.205954866329831,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 5622.010864000002,
27
+ "decode_ms": 5666.513311,
28
+ "decode_tokens_per_second": 11.117947941232675,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084582-9",
37
+ "major_page_faults": 0,
38
+ "minor_page_faults": 412,
39
+ "mla_cpu_calls": 390,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 186,
42
+ "mla_npu_ms": 10669.514125999995,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 251658240,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 7428.83203125,
47
+ "prefill_eval_ms": 29037.960202000002,
48
+ "prefill_ms": 29039.002072,
49
+ "prefill_tokens_per_second": 141.05673991928285,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 4096,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7189.01953125,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-4096-01790084581039276495",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084616,
74
+ "total_ms": 34709.565303,
75
+ "ttft_ms": 29042.925696,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 4096,
79
+ "total_tokens": 4160
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 4096,
86
+ "total_tokens": 4160
87
+ },
88
+ "text": "The number 1111111111111111111111111111111111111111111111111111111111111",
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-512-0.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 512,
5
+ "repeat": 0,
6
+ "events": {
7
+ "request_start": 455793.233466424,
8
+ "first_content": 455796.026951758,
9
+ "request_end": 455799.522607724
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.518756,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 18.2647241578978,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 3449.271911,
27
+ "decode_ms": 3493.321101,
28
+ "decode_tokens_per_second": 18.034414294742497,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084545-6",
37
+ "major_page_faults": 15,
38
+ "minor_page_faults": 588,
39
+ "mla_cpu_calls": 390,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 18,
42
+ "mla_npu_ms": 267.490423,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 31457280,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 7229.96875,
47
+ "prefill_eval_ms": 2756.413911,
48
+ "prefill_ms": 2756.460289,
49
+ "prefill_tokens_per_second": 185.74859093431704,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 512,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7200.0703125,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-512-01790084544852345078",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084552,
74
+ "total_ms": 6252.594311,
75
+ "ttft_ms": 2759.148373,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 512,
79
+ "total_tokens": 576
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 512,
86
+ "total_tokens": 576
87
+ },
88
+ "text": "The number you've provided is a very long string of the digit **1**, consisting of **127** ones.\n\nHere's a breakdown:\n\n- **Length**: 127 digits, all of which are `1`.\n- **Value**: This number is equal to \n ",
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/benchmark-current-20260922/candidate-bf16-8192-0.result.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label": "candidate",
3
+ "mode": "bf16",
4
+ "target_tokens": 8192,
5
+ "repeat": 0,
6
+ "events": {
7
+ "request_start": 455865.168485081,
8
+ "first_content": 455941.650157788,
9
+ "request_end": 455949.626029576
10
+ },
11
+ "metrics": {
12
+ "cache_miss_reason": "disabled",
13
+ "cache_restore_ms": 1.537424,
14
+ "cache_save_ms": 0.0,
15
+ "cache_status": "disabled",
16
+ "cached_tokens": 0,
17
+ "common_prefix_tokens": 0,
18
+ "context_capacity_reached": false,
19
+ "context_length": 32768,
20
+ "continuation_save_ms": 0.0,
21
+ "continuation_skipped_budget": false,
22
+ "continuation_stored": false,
23
+ "continuation_tokens": 0,
24
+ "decode_compute_tokens_per_second": 8.3745080032212,
25
+ "decode_eval_count": 63,
26
+ "decode_eval_ms": 7522.829995000001,
27
+ "decode_ms": 7569.617727,
28
+ "decode_tokens_per_second": 8.322745252416892,
29
+ "effective_max_tokens": 64,
30
+ "finish_reason": "length",
31
+ "flow_control": "none",
32
+ "flow_wait_count": 0,
33
+ "flow_wait_ms": 0.0,
34
+ "generated_cached_tokens": 0,
35
+ "generated_state_lineage": false,
36
+ "id": "chatcmpl-1790084617-10",
37
+ "major_page_faults": 0,
38
+ "minor_page_faults": 633,
39
+ "mla_cpu_calls": 12,
40
+ "mla_fallbacks": 0,
41
+ "mla_npu_calls": 756,
42
+ "mla_npu_ms": 43982.95758200004,
43
+ "mla_prefill_native_cache_bytes": 0,
44
+ "mla_prefill_native_cache_peak_bytes": 503316480,
45
+ "model": "mindnano-ling3-tiny",
46
+ "peak_rss_mib": 7660.67578125,
47
+ "prefill_eval_ms": 76438.775055,
48
+ "prefill_ms": 76441.712234,
49
+ "prefill_tokens_per_second": 107.17073885741378,
50
+ "prefix_cache_mib": 0.0,
51
+ "prefix_checkpoint_bytes": 0,
52
+ "prefix_checkpoint_count": 0,
53
+ "prefix_recompute_tokens": 0,
54
+ "prompt_evaluated_tokens": 8192,
55
+ "queue_ms": 0,
56
+ "requested_max_tokens": 64,
57
+ "reuse_generated_state": false,
58
+ "rss_mib": 7180.70703125,
59
+ "sampling": {
60
+ "enable_thinking": false,
61
+ "repeat_penalty": 1.0,
62
+ "seed": 0,
63
+ "temperature": 0.0,
64
+ "top_k": 0,
65
+ "top_p": 1.0
66
+ },
67
+ "session_cache_bytes": 0,
68
+ "session_cache_evictions": 0,
69
+ "session_cache_skipped_budget": false,
70
+ "session_cache_stored": false,
71
+ "session_id": "candidate-bf16-8192-01790084616787407779",
72
+ "system_prefix_tokens": 8,
73
+ "timestamp": 1790084701,
74
+ "total_ms": 84016.803552,
75
+ "ttft_ms": 76447.071196,
76
+ "usage": {
77
+ "completion_tokens": 64,
78
+ "prompt_tokens": 8192,
79
+ "total_tokens": 8256
80
+ },
81
+ "warmed": true
82
+ },
83
+ "usage": {
84
+ "completion_tokens": 64,
85
+ "prompt_tokens": 8192,
86
+ "total_tokens": 8256
87
+ },
88
+ "text": "The number 1111111111111111111111111111111111111111111111111111111111111",
89
+ "passed": true,
90
+ "sampler_error": null
91
+ }
docs/measurements/benchmark-current-20260922/environment-after.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sysfs": {
3
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_governor": "ondemand",
4
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq": "1800000",
5
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq": "1800000",
6
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_governor": "ondemand",
7
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq": "408000",
8
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq": "2304000",
9
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_governor": "ondemand",
10
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq": "408000",
11
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_max_freq": "2352000",
12
+ "/sys/class/devfreq/fdab0000.npu/governor": "rknpu_ondemand",
13
+ "/sys/class/devfreq/fdab0000.npu/min_freq": "300000000",
14
+ "/sys/class/devfreq/fdab0000.npu/max_freq": "1000000000",
15
+ "/sys/class/devfreq/dmc/governor": "dmc_ondemand",
16
+ "/sys/class/devfreq/dmc/min_freq": "534000000",
17
+ "/sys/class/devfreq/dmc/max_freq": "2400000000"
18
+ },
19
+ "matches_before": true,
20
+ "errors": [],
21
+ "meminfo": "MemTotal: 16342632 kB\nMemFree: 9660836 kB\nMemAvailable: 10573704 kB\nBuffers: 186508 kB\nCached: 2700736 kB\nSwapCached: 868 kB\nActive: 1206636 kB\nInactive: 2175568 kB\nActive(anon): 68168 kB\nInactive(anon): 524168 kB\nActive(file): 1138468 kB\nInactive(file): 1651400 kB\nUnevictable: 17796 kB\nMlocked: 3396 kB\nSwapTotal: 8171312 kB\nSwapFree: 5723440 kB\nZswap: 0 kB\nZswapped: 0 kB\nDirty: 884 kB\nWriteback: 0 kB\nAnonPages: 513132 kB\nMapped: 322356 kB\nShmem: 93892 kB\nKReclaimable: 330576 kB\nSlab: 525984 kB\nSReclaimable: 330576 kB\nSUnreclaim: 195408 kB\nKernelStack: 15036 kB\nPageTables: 28016 kB\nSecPageTables: 0 kB\nNFS_Unstable: 0 kB\nBounce: 0 kB\nWritebackTmp: 0 kB\nCommitLimit: 16342628 kB\nCommitted_AS: 9386864 kB\nVmallocTotal: 133143592960 kB\nVmallocUsed: 112432 kB\nVmallocChunk: 0 kB\nPercpu: 12416 kB\nCmaTotal: 786432 kB\nCmaAllocated: 8780 kB\nCmaReleased: 777652 kB\nCmaFree: 422952 kB\nHugePages_Total: 0\nHugePages_Free: 0\nHugePages_Rsvd: 0\nHugePages_Surp: 0\nHugepagesize: 2048 kB\nHugetlb: 0 kB"
22
+ }
docs/measurements/benchmark-current-20260922/environment-before.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sysfs": {
3
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_governor": "ondemand",
4
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq": "1800000",
5
+ "/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq": "1800000",
6
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_governor": "ondemand",
7
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq": "408000",
8
+ "/sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq": "2304000",
9
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_governor": "ondemand",
10
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq": "408000",
11
+ "/sys/devices/system/cpu/cpufreq/policy6/scaling_max_freq": "2352000",
12
+ "/sys/class/devfreq/fdab0000.npu/governor": "rknpu_ondemand",
13
+ "/sys/class/devfreq/fdab0000.npu/min_freq": "300000000",
14
+ "/sys/class/devfreq/fdab0000.npu/max_freq": "1000000000",
15
+ "/sys/class/devfreq/dmc/governor": "dmc_ondemand",
16
+ "/sys/class/devfreq/dmc/min_freq": "534000000",
17
+ "/sys/class/devfreq/dmc/max_freq": "2400000000"
18
+ },
19
+ "active_services": [
20
+ "mindnano-openai.service",
21
+ "mindnano-webui.service",
22
+ "mindnano-android-stream.service",
23
+ "gdm.service"
24
+ ],
25
+ "redroid_running": true,
26
+ "meminfo": "MemTotal: 16342632 kB\nMemFree: 8566064 kB\nMemAvailable: 9195264 kB\nBuffers: 183244 kB\nCached: 2423660 kB\nSwapCached: 812 kB\nActive: 1146648 kB\nInactive: 2660648 kB\nActive(anon): 102416 kB\nInactive(anon): 1199908 kB\nActive(file): 1044232 kB\nInactive(file): 1460740 kB\nUnevictable: 17916 kB\nMlocked: 3516 kB\nSwapTotal: 8171312 kB\nSwapFree: 5668656 kB\nZswap: 0 kB\nZswapped: 0 kB\nDirty: 100 kB\nWriteback: 0 kB\nAnonPages: 1217360 kB\nMapped: 499716 kB\nShmem: 100444 kB\nKReclaimable: 333032 kB\nSlab: 559300 kB\nSReclaimable: 333032 kB\nSUnreclaim: 226268 kB\nKernelStack: 28724 kB\nPageTables: 71180 kB\nSecPageTables: 0 kB\nNFS_Unstable: 0 kB\nBounce: 0 kB\nWritebackTmp: 0 kB\nCommitLimit: 16342628 kB\nCommitted_AS: 54749148 kB\nVmallocTotal: 133143592960 kB\nVmallocUsed: 132744 kB\nVmallocChunk: 0 kB\nPercpu: 13216 kB\nCmaTotal: 786432 kB\nCmaAllocated: 72284 kB\nCmaReleased: 714148 kB\nCmaFree: 320412 kB\nHugePages_Total: 0\nHugePages_Free: 0\nHugePages_Rsvd: 0\nHugePages_Surp: 0\nHugepagesize: 2048 kB\nHugetlb: 0 kB"
27
+ }