hymt-cpp 1.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hymt_cpp-1.1.1/.dockerignore +7 -0
- hymt_cpp-1.1.1/.github/workflows/release.yml +296 -0
- hymt_cpp-1.1.1/.gitignore +31 -0
- hymt_cpp-1.1.1/.gitmodules +3 -0
- hymt_cpp-1.1.1/CMakeLists.txt +152 -0
- hymt_cpp-1.1.1/Dockerfile +65 -0
- hymt_cpp-1.1.1/LICENSE +21 -0
- hymt_cpp-1.1.1/PKG-INFO +162 -0
- hymt_cpp-1.1.1/README.md +133 -0
- hymt_cpp-1.1.1/apps/hymt_cli.cpp +139 -0
- hymt_cpp-1.1.1/apps/hymt_server.cpp +1441 -0
- hymt_cpp-1.1.1/include/hymt/engine.h +127 -0
- hymt_cpp-1.1.1/pyproject.toml +24 -0
- hymt_cpp-1.1.1/python/bindings.cpp +271 -0
- hymt_cpp-1.1.1/python/hymt/__init__.py +17 -0
- hymt_cpp-1.1.1/src/engine.cpp +252 -0
- hymt_cpp-1.1.1/src/gguf/gguf_parser.cpp +349 -0
- hymt_cpp-1.1.1/src/gguf/gguf_parser.h +74 -0
- hymt_cpp-1.1.1/src/gguf/mmap_file.cpp +163 -0
- hymt_cpp-1.1.1/src/gguf/mmap_file.h +38 -0
- hymt_cpp-1.1.1/src/gguf/tensor_types.h +209 -0
- hymt_cpp-1.1.1/src/kernels/common/simd_helpers-inl.h +52 -0
- hymt_cpp-1.1.1/src/kernels/dispatch.cpp +84 -0
- hymt_cpp-1.1.1/src/kernels/elementwise.cpp +654 -0
- hymt_cpp-1.1.1/src/kernels/kernels.h +93 -0
- hymt_cpp-1.1.1/src/kernels/matmul_q2_0c.cpp +677 -0
- hymt_cpp-1.1.1/src/kernels/matmul_q4k.cpp +731 -0
- hymt_cpp-1.1.1/src/kernels/matmul_q6k.cpp +911 -0
- hymt_cpp-1.1.1/src/kernels/matmul_q8_0.cpp +488 -0
- hymt_cpp-1.1.1/src/kernels/quantize.cpp +367 -0
- hymt_cpp-1.1.1/src/model/config.h +26 -0
- hymt_cpp-1.1.1/src/model/forward.cpp +638 -0
- hymt_cpp-1.1.1/src/model/forward.h +31 -0
- hymt_cpp-1.1.1/src/model/kv_cache.cpp +50 -0
- hymt_cpp-1.1.1/src/model/kv_cache.h +59 -0
- hymt_cpp-1.1.1/src/model/sampler.cpp +113 -0
- hymt_cpp-1.1.1/src/model/sampler.h +27 -0
- hymt_cpp-1.1.1/src/model/scratchpad.h +61 -0
- hymt_cpp-1.1.1/src/model/weights.cpp +77 -0
- hymt_cpp-1.1.1/src/model/weights.h +37 -0
- hymt_cpp-1.1.1/src/tokenizer/bpe_tokenizer.cpp +498 -0
- hymt_cpp-1.1.1/src/tokenizer/bpe_tokenizer.h +66 -0
- hymt_cpp-1.1.1/src/tokenizer/unicode_table.h +151 -0
- hymt_cpp-1.1.1/third_party/highway/.bazelrc +1 -0
- hymt_cpp-1.1.1/third_party/highway/.bcr/metadata.template.json +25 -0
- hymt_cpp-1.1.1/third_party/highway/.bcr/presubmit.yml +10 -0
- hymt_cpp-1.1.1/third_party/highway/.bcr/source.template.json +5 -0
- hymt_cpp-1.1.1/third_party/highway/.clang-format +1 -0
- hymt_cpp-1.1.1/third_party/highway/.github/dependabot.yml +6 -0
- hymt_cpp-1.1.1/third_party/highway/.github/meson/gcc_16_ppc64le_meson_cross_compile_config.txt +17 -0
- hymt_cpp-1.1.1/third_party/highway/.github/workflows/build_test.yml +407 -0
- hymt_cpp-1.1.1/third_party/highway/.github/workflows/docs_pages_workflow.yml +33 -0
- hymt_cpp-1.1.1/third_party/highway/.github/workflows/meson_build_test.yml +271 -0
- hymt_cpp-1.1.1/third_party/highway/.github/workflows/multiarch.yml +215 -0
- hymt_cpp-1.1.1/third_party/highway/.gitignore +12 -0
- hymt_cpp-1.1.1/third_party/highway/BUILD +1427 -0
- hymt_cpp-1.1.1/third_party/highway/CMakeLists.txt +1353 -0
- hymt_cpp-1.1.1/third_party/highway/CMakeLists.txt.in +15 -0
- hymt_cpp-1.1.1/third_party/highway/CONTRIBUTING +43 -0
- hymt_cpp-1.1.1/third_party/highway/LICENSE +243 -0
- hymt_cpp-1.1.1/third_party/highway/MODULE.bazel +11 -0
- hymt_cpp-1.1.1/third_party/highway/README.md +598 -0
- hymt_cpp-1.1.1/third_party/highway/WORKSPACE +48 -0
- hymt_cpp-1.1.1/third_party/highway/cmake/FindAtomics.cmake +56 -0
- hymt_cpp-1.1.1/third_party/highway/debian/changelog +339 -0
- hymt_cpp-1.1.1/third_party/highway/debian/compat +1 -0
- hymt_cpp-1.1.1/third_party/highway/debian/control +23 -0
- hymt_cpp-1.1.1/third_party/highway/debian/copyright +20 -0
- hymt_cpp-1.1.1/third_party/highway/debian/rules +11 -0
- hymt_cpp-1.1.1/third_party/highway/debian/source/format +1 -0
- hymt_cpp-1.1.1/third_party/highway/docs/.gitignore +3 -0
- hymt_cpp-1.1.1/third_party/highway/docs/Makefile +20 -0
- hymt_cpp-1.1.1/third_party/highway/docs/_static/css/dark.css +622 -0
- hymt_cpp-1.1.1/third_party/highway/docs/_static/css/toggle.css +77 -0
- hymt_cpp-1.1.1/third_party/highway/docs/_static/js/toggle.js +38 -0
- hymt_cpp-1.1.1/third_party/highway/docs/_templates/layout.html +9 -0
- hymt_cpp-1.1.1/third_party/highway/docs/_templates/versions.html +62 -0
- hymt_cpp-1.1.1/third_party/highway/docs/buildDocs.sh +157 -0
- hymt_cpp-1.1.1/third_party/highway/docs/conf.py +159 -0
- hymt_cpp-1.1.1/third_party/highway/docs/images/logo-32x32.ico +0 -0
- hymt_cpp-1.1.1/third_party/highway/docs/images/logo.png +0 -0
- hymt_cpp-1.1.1/third_party/highway/docs/index.rst +14 -0
- hymt_cpp-1.1.1/third_party/highway/docs/locales/zh/index.rst +6 -0
- hymt_cpp-1.1.1/third_party/highway/docs/make.bat +35 -0
- hymt_cpp-1.1.1/third_party/highway/docs/mm-converter.py +109 -0
- hymt_cpp-1.1.1/third_party/highway/g3doc/design_philosophy.md +183 -0
- hymt_cpp-1.1.1/third_party/highway/g3doc/faq.md +455 -0
- hymt_cpp-1.1.1/third_party/highway/g3doc/highway_intro.pdf +0 -0
- hymt_cpp-1.1.1/third_party/highway/g3doc/impl_details.md +285 -0
- hymt_cpp-1.1.1/third_party/highway/g3doc/instruction_matrix.md +342 -0
- hymt_cpp-1.1.1/third_party/highway/g3doc/op_wishlist.md +178 -0
- hymt_cpp-1.1.1/third_party/highway/g3doc/quick_reference.md +3427 -0
- hymt_cpp-1.1.1/third_party/highway/g3doc/release_testing_process.md +54 -0
- hymt_cpp-1.1.1/third_party/highway/g3doc/std_simd_comparison.md +305 -0
- hymt_cpp-1.1.1/third_party/highway/g3doc/tutorial.md +1068 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/abort.cc +148 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/abort.h +11 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/abort_header_only_test.cc +45 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/abort_test.cc +94 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/aligned_allocator.cc +176 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/aligned_allocator.h +1098 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/aligned_allocator_test.cc +1025 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/auto_tune.h +506 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/auto_tune_test.cc +126 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/base.h +3480 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/base_c.h +322 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/base_c_test.c +108 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/base_test.cc +1515 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/bit_set.h +411 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/bit_set_test.cc +262 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/cache_control.h +147 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/algo_bench.cc +434 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/copy-inl.h +315 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/copy_test.cc +424 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/count-inl.h +410 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/count_value_test.cc +225 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/find-inl.h +485 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/find_test.cc +648 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/is_sorted-inl.h +107 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/is_sorted_test.cc +233 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/minmax-inl.h +495 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/minmax_value_test.cc +379 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/transform-inl.h +229 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/algo/transform_test.cc +398 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/base64/base64-inl.h +431 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/base64/base64_test.cc +197 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/bit_pack/bit_pack-inl.h +2861 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/bit_pack/bit_pack_test.cc +253 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree-inl.h +4063 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_benchmark.cc +1120 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_internal_map32_test.cc +107 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_internal_map64_test.cc +113 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_internal_set32_test.cc +99 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_internal_set64_test.cc +104 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_map.h +738 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_map32_test.cc +430 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_map64_test.cc +419 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_nodes.h +509 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_set.h +601 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_set32_test.cc +166 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_set64_test.cc +149 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btree_test_util-inl.h +2510 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btreemap_impl-inl.h +473 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btreemap_u32_u32.cc +28 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btreemap_u32_u64.cc +28 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btreemap_u64_u32.cc +28 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btreemap_u64_u64.cc +28 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btreeset_impl-inl.h +402 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btreeset_u32.cc +27 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/btree/btreeset_u64.cc +27 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/coder/range_coder-inl.h +243 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/coder/range_coder.cc +335 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/coder/range_coder.h +247 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/coder/range_coder_test.cc +144 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/crc/crc-inl.h +151 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/crc/crc_test.cc +111 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/dot/dot-inl.h +485 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/dot/dot_test.cc +302 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/cuckoo-inl.h +1544 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/cuckoo2x2-inl.h +182 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/cuckoo2x2.cc +359 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/cuckoo2x2.h +76 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/cuckoo2x2_test.cc +181 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/cuckoo_load_factor_sweep.cc +243 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/cuckoo_test.cc +588 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/hash-inl.h +875 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/hash_bench.cc +134 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/hash_eval.cc +840 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/hash_prospector16.cc +954 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/hash_test.cc +753 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/highwayhash-inl.h +353 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/highwayhash_test.cc +334 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/lemac-inl.h +790 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/lemac.h +137 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/lemac_bench.cc +134 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/lemac_test.cc +656 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/phast-inl.h +306 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/phast.cc +748 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/phast.h +140 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/phast_bench.cc +727 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/phast_test.cc +342 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/shardmul-inl.h +267 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/shardmul.cc +424 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/shardmul.h +61 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/hash/shardmul_test.cc +229 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/ans-inl.h +430 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/ans.cc +576 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/ans.h +125 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/ans_detail.h +45 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/ans_test.cc +146 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/iguana-inl.h +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/iguana.cc +916 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/iguana.h +149 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/iguana_bench.cc +233 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/iguana_detail.h +884 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/iguana/iguana_test.cc +681 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/image/image.cc +158 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/image/image.h +464 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/image/image_test.cc +154 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/intdiv/intdiv-inl.h +746 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/intdiv/intdiv_test.cc +756 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/f16_math-inl.h +696 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/f16_math_test.cc +496 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/fast_math-inl.h +1316 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/fast_math_test.cc +503 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/float_manip-inl.h +169 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/float_manip_test.cc +205 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/fp_arith-inl.h +224 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/math-inl.h +3105 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/math_benchmark.cc +335 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/math_hyper_test.cc +144 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/math_tan_test.cc +636 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/math_test-inl.h +443 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/math_test.cc +282 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/math/math_trig_test.cc +104 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/matvec/matvec-inl.h +453 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/matvec/matvec_test.cc +309 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/random/random-inl.h +549 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/random/random_test.cc +534 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/BUILD +446 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/README.md +361 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/algo-inl.h +601 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/argsort_test.cc +429 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/bench_parallel.cc +243 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/bench_sort.cc +613 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/order.h +35 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/print_network.cc +91 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/result-inl.h +292 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/shared-inl.h +186 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/sort_test.cc +609 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/sort_unit_test.cc +633 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/sorting_networks-inl.h +912 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/traits-inl.h +634 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/traits128-inl.h +550 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort-inl.h +529 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort.cc +83 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort.h +225 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_f16a.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_f16d.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_f32a.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_f32d.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_f64a.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_f64d.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_i16a.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_i16d.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_i32a.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_i32d.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_i64a.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_i64d.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_u16a.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_u16d.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_u32a.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_u32d.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_u64a.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqargsort_u64d.cc +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort-inl.h +2438 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort.cc +30 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort.h +310 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_128a.cc +99 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_128d.cc +99 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_f16a.cc +100 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_f16d.cc +100 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_f32a.cc +78 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_f32d.cc +78 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_f64a.cc +98 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_f64d.cc +99 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_have.cc +52 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_i16a.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_i16d.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_i32a.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_i32d.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_i64a.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_i64d.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_kv128a.cc +102 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_kv128d.cc +102 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_kv64a.cc +82 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_kv64d.cc +82 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_u16a.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_u16d.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_u32a.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_u32d.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_u64a.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/sort/vqsort_u64d.cc +79 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/testdata/enwik7 +116440 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/testdata/fireworks.jpeg +0 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/testdata/geo.protodata +0 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/testdata/html +1 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/testdata/kennedy.xls +0 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/testdata/kppkn.gtb +0 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/testdata/ptt5 +0 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/testdata/silesia_dickens.txt +200784 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/testdata/urls.10K +10000 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/thread_pool/futex.h +692 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/thread_pool/index_range.h +131 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/thread_pool/spin.h +337 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/thread_pool/spin_test.cc +117 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/thread_pool/thread_pool.cc +32 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/thread_pool/thread_pool.h +1817 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/thread_pool/thread_pool_test.cc +767 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/thread_pool/topology.cc +1284 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/thread_pool/topology.h +142 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/thread_pool/topology_test.cc +136 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/unroller/README.md +31 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/unroller/unroller-inl.h +474 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/contrib/unroller/unroller_test.cc +500 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/detect_compiler_arch.h +543 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/detect_targets.h +1027 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/detect_targets_impl.h +842 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/README.md +154 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/baker_mix.cc +138 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/benchmark.cc +256 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/crc64.cc +70 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/ctf_aes.cc +205 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/dot_product_mixed_precision.cc +137 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/dot_product_unroll.cc +212 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/float_distribution.cc +309 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/game_of_life.cc +358 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/mandelbrot.cc +619 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/masks_and_logic.cc +218 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/matrix_transpose_scatter_gather.cc +207 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/profiler_example.cc +126 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/skeleton-inl.h +65 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/skeleton.cc +132 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/skeleton.h +39 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/skeleton_test.cc +146 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/stream_triad.cc +290 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/sum_array_advanced.cc +176 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/sum_array_simple.cc +73 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/examples/sum_hex.cc +237 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/foreach_target.h +411 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/highway.h +765 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/highway_export.h +97 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/highway_test.cc +636 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/hwy.version +19 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file.cc +208 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file.h +599 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file_system.cc +292 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file_system.h +313 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file_system_test.cc +1375 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file_test.cc +663 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file_util.cc +83 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file_util.h +62 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file_util_test.cc +121 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file_view.cc +154 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file_view.h +100 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/file_view_test.cc +221 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/io_batch.cc +86 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/io_batch.h +150 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/io_batch_test.cc +382 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/io_internal.h +66 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/io_span.h +148 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/io_test_util.h +83 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/memory_file.cc +132 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/memory_file.h +205 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/memory_file_test.cc +483 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/path.cc +138 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/path.h +98 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/path_test.cc +128 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/posix_file.cc +1591 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/stream_file.cc +81 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/stream_file.h +145 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/stream_file_test.cc +436 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/io/windows_file.cc +1099 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/nanobenchmark.cc +329 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/nanobenchmark.h +163 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/nanobenchmark_test.cc +86 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/arm_neon-inl.h +11834 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/arm_sve-inl.h +7638 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/emu128-inl.h +3045 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/generic_ops-inl.h +10098 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/inside-inl.h +710 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/loongarch_lasx-inl.h +4386 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/loongarch_lsx-inl.h +5629 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/ppc_vsx-inl.h +6956 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/rvv-inl.h +7786 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/scalar-inl.h +2213 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/set_macros-inl.h +1043 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/shared-inl.h +777 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/wasm_128-inl.h +5469 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/wasm_256-inl.h +2458 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/x86_128-inl.h +15950 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/x86_256-inl.h +10279 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/x86_512-inl.h +9528 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/ops/x86_avx3-inl.h +564 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/os_rng.cc +121 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/os_rng.h +31 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/per_target.cc +78 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/per_target.h +50 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/perf_counters.cc +378 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/perf_counters.h +157 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/perf_counters_test.cc +152 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/print-inl.h +65 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/print.cc +139 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/print.h +76 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/profiler.cc +147 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/profiler.h +894 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/robust_statistics.h +151 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/stats.cc +119 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/stats.h +251 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/stats_test.cc +60 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/status.h +396 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/targets.cc +290 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/targets.h +432 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/targets_test.cc +342 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/arithmetic_test.cc +347 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/bit_permute_test.cc +99 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/blockwise_combine_test.cc +153 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/blockwise_shift_test.cc +171 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/blockwise_test.cc +524 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/cast_test.cc +313 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/combine_test.cc +258 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/compare_128_test.cc +300 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/compare_test.cc +475 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/complex_arithmetic_test.cc +357 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/compress_test.cc +897 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/concat_test.cc +158 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/convert_fast_math_test.cc +104 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/convert_test.cc +1620 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/count_test.cc +365 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/crypto_test.cc +724 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/demote_test.cc +969 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/div_test.cc +283 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/dup128_vec_test.cc +238 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/expand_test.cc +304 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/float_test.cc +731 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/fma_test.cc +278 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/foreach_vec_test.cc +655 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/hwy_gtest.h +730 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/if_test.cc +388 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/in_range_float_to_int_conv_test.cc +640 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/interleaved_test.cc +190 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/list_targets.cc +169 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/logical_test.cc +333 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/mask_combine_test.cc +192 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/mask_convert_test.cc +352 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/mask_mem_test.cc +403 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/mask_set_test.cc +402 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/mask_slide_test.cc +160 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/mask_test.cc +410 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/masked_arithmetic_test.cc +1121 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/masked_compare_test.cc +208 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/masked_minmax_test.cc +179 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/matmul_op_test.cc +409 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/memory_test.cc +689 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/minmax128_test.cc +194 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/minmax_magnitude_test.cc +157 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/minmax_number_test.cc +175 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/minmax_test.cc +156 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/mul_by_pow2_test.cc +619 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/mul_pairwise_test.cc +359 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/mul_test.cc +518 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/neg_test.cc +251 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/reduction_test.cc +582 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/resize_test.cc +183 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/reverse_test.cc +310 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/rotate_test.cc +299 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/saturated_test.cc +171 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/shift_test.cc +906 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/shuffle4_test.cc +231 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/sign_test.cc +102 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/slide_up_down_test.cc +784 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/sums_abs_diff_test.cc +359 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/swizzle_block_test.cc +522 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/swizzle_test.cc +441 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/table_test.cc +426 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/test_util-inl.h +891 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/test_util.cc +119 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/test_util.h +334 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/test_util_test.cc +117 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/truncate_test.cc +128 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/tuple_test.cc +101 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/tests/widen_mul_test.cc +534 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/timer-inl.h +49 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/timer.cc +207 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/timer.h +282 -0
- hymt_cpp-1.1.1/third_party/highway/hwy/x86_cpuid.h +82 -0
- hymt_cpp-1.1.1/third_party/highway/hwy.gni +95 -0
- hymt_cpp-1.1.1/third_party/highway/hwy_tests.bzl +449 -0
- hymt_cpp-1.1.1/third_party/highway/libhwy-contrib.pc.in +10 -0
- hymt_cpp-1.1.1/third_party/highway/libhwy-io.pc.in +11 -0
- hymt_cpp-1.1.1/third_party/highway/libhwy-test.pc.in +11 -0
- hymt_cpp-1.1.1/third_party/highway/libhwy.pc.in +10 -0
- hymt_cpp-1.1.1/third_party/highway/meson.build +901 -0
- hymt_cpp-1.1.1/third_party/highway/meson_options.txt +14 -0
- hymt_cpp-1.1.1/third_party/highway/preamble.js.lds +9 -0
- hymt_cpp-1.1.1/third_party/highway/run_tests.bat +20 -0
- hymt_cpp-1.1.1/third_party/highway/run_tests.sh +95 -0
- hymt_cpp-1.1.1/third_party/highway/subprojects/gtest.wrap +16 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v[0-9]+.[0-9]+.[0-9]+*"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build-windows:
|
|
14
|
+
name: Build Windows ${{ matrix.arch }}
|
|
15
|
+
runs-on: ${{ matrix.runner }}
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
include:
|
|
20
|
+
- arch: amd64
|
|
21
|
+
runner: windows-latest
|
|
22
|
+
msvc_arch: x64
|
|
23
|
+
- arch: arm64
|
|
24
|
+
runner: windows-11-arm
|
|
25
|
+
msvc_arch: arm64
|
|
26
|
+
steps:
|
|
27
|
+
- name: Checkout repository
|
|
28
|
+
uses: actions/checkout@v4
|
|
29
|
+
with:
|
|
30
|
+
submodules: recursive
|
|
31
|
+
|
|
32
|
+
- name: Set up MSVC environment
|
|
33
|
+
uses: ilammy/msvc-dev-cmd@v1
|
|
34
|
+
with:
|
|
35
|
+
arch: ${{ matrix.msvc_arch }}
|
|
36
|
+
|
|
37
|
+
- name: Set up Ninja
|
|
38
|
+
uses: seanmiddleditch/gha-setup-ninja@v5
|
|
39
|
+
|
|
40
|
+
- name: Cache CMake build directory
|
|
41
|
+
uses: actions/cache@v4
|
|
42
|
+
with:
|
|
43
|
+
path: build
|
|
44
|
+
key: windows-${{ matrix.arch }}-clang-cl-${{ hashFiles('CMakeLists.txt', 'third_party/highway/CMakeLists.txt') }}-${{ github.sha }}
|
|
45
|
+
restore-keys: |
|
|
46
|
+
windows-${{ matrix.arch }}-clang-cl-${{ hashFiles('CMakeLists.txt', 'third_party/highway/CMakeLists.txt') }}-
|
|
47
|
+
windows-${{ matrix.arch }}-clang-cl-
|
|
48
|
+
|
|
49
|
+
- name: Configure & build (clang-cl + Ninja, static /MT)
|
|
50
|
+
shell: pwsh
|
|
51
|
+
run: |
|
|
52
|
+
$PSNativeCommandUseErrorActionPreference = $true
|
|
53
|
+
cmake -B build -G Ninja `
|
|
54
|
+
-DCMAKE_BUILD_TYPE=Release `
|
|
55
|
+
-DCMAKE_C_COMPILER=clang-cl `
|
|
56
|
+
-DCMAKE_CXX_COMPILER=clang-cl `
|
|
57
|
+
-DCMAKE_CXX_FLAGS="/D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH" `
|
|
58
|
+
-DHYMT_STATIC_CRT=ON
|
|
59
|
+
cmake --build build --target hymt_cli hymt_server -j
|
|
60
|
+
./build/hymt_cli.exe --help
|
|
61
|
+
./build/hymt_server.exe --help
|
|
62
|
+
|
|
63
|
+
- name: Package Windows ${{ matrix.arch }} archive
|
|
64
|
+
shell: pwsh
|
|
65
|
+
run: |
|
|
66
|
+
$ErrorActionPreference = "Stop"
|
|
67
|
+
$tag = if ($env:GITHUB_REF_TYPE -eq "tag") { $env:GITHUB_REF_NAME } else { "dev" }
|
|
68
|
+
$stage = "dist/hymt-$tag-windows-${{ matrix.arch }}"
|
|
69
|
+
New-Item -ItemType Directory -Force -Path $stage | Out-Null
|
|
70
|
+
Copy-Item build/hymt_cli.exe, build/hymt_server.exe, LICENSE, README.md $stage
|
|
71
|
+
$zip = "dist/hymt-$tag-windows-${{ matrix.arch }}.zip"
|
|
72
|
+
Compress-Archive -Path "$stage/*" -DestinationPath $zip -Force
|
|
73
|
+
|
|
74
|
+
- name: Upload Windows artifact
|
|
75
|
+
uses: actions/upload-artifact@v4
|
|
76
|
+
with:
|
|
77
|
+
name: hymt-windows-${{ matrix.arch }}
|
|
78
|
+
path: dist/*.zip
|
|
79
|
+
if-no-files-found: error
|
|
80
|
+
|
|
81
|
+
build-docker:
|
|
82
|
+
name: Build Docker ${{ matrix.arch }} (Verify & Cache)
|
|
83
|
+
runs-on: ${{ matrix.runner }}
|
|
84
|
+
strategy:
|
|
85
|
+
fail-fast: false
|
|
86
|
+
matrix:
|
|
87
|
+
include:
|
|
88
|
+
- arch: amd64
|
|
89
|
+
platform: linux/amd64
|
|
90
|
+
runner: ubuntu-latest
|
|
91
|
+
- arch: arm64
|
|
92
|
+
platform: linux/arm64
|
|
93
|
+
runner: ubuntu-24.04-arm
|
|
94
|
+
steps:
|
|
95
|
+
- name: Checkout repository
|
|
96
|
+
uses: actions/checkout@v4
|
|
97
|
+
with:
|
|
98
|
+
submodules: recursive
|
|
99
|
+
|
|
100
|
+
- name: Set up Docker Buildx
|
|
101
|
+
uses: docker/setup-buildx-action@v3
|
|
102
|
+
|
|
103
|
+
- name: Build ${{ matrix.platform }} (verify without pushing)
|
|
104
|
+
uses: docker/build-push-action@v6
|
|
105
|
+
with:
|
|
106
|
+
context: .
|
|
107
|
+
platforms: ${{ matrix.platform }}
|
|
108
|
+
push: false
|
|
109
|
+
cache-from: type=gha,scope=docker-${{ matrix.arch }}
|
|
110
|
+
cache-to: type=gha,mode=max,scope=docker-${{ matrix.arch }}
|
|
111
|
+
|
|
112
|
+
build-wheels:
|
|
113
|
+
name: Build Python ${{ matrix.os_name }} ${{ matrix.arch }} wheel
|
|
114
|
+
runs-on: ${{ matrix.runner }}
|
|
115
|
+
strategy:
|
|
116
|
+
fail-fast: false
|
|
117
|
+
matrix:
|
|
118
|
+
include:
|
|
119
|
+
- os_name: Linux
|
|
120
|
+
arch: x86_64
|
|
121
|
+
runner: ubuntu-latest
|
|
122
|
+
cibw_archs: x86_64
|
|
123
|
+
- os_name: Linux
|
|
124
|
+
arch: aarch64
|
|
125
|
+
runner: ubuntu-24.04-arm
|
|
126
|
+
cibw_archs: aarch64
|
|
127
|
+
- os_name: Windows
|
|
128
|
+
arch: AMD64
|
|
129
|
+
runner: windows-latest
|
|
130
|
+
cibw_archs: AMD64
|
|
131
|
+
msvc_arch: x64
|
|
132
|
+
- os_name: Windows
|
|
133
|
+
arch: ARM64
|
|
134
|
+
runner: windows-11-arm
|
|
135
|
+
cibw_archs: ARM64
|
|
136
|
+
msvc_arch: arm64
|
|
137
|
+
- os_name: macOS
|
|
138
|
+
arch: arm64
|
|
139
|
+
runner: macos-latest
|
|
140
|
+
cibw_archs: arm64
|
|
141
|
+
steps:
|
|
142
|
+
- name: Checkout repository
|
|
143
|
+
uses: actions/checkout@v4
|
|
144
|
+
with:
|
|
145
|
+
fetch-depth: 0
|
|
146
|
+
submodules: recursive
|
|
147
|
+
|
|
148
|
+
- name: Set up MSVC environment (Windows)
|
|
149
|
+
if: runner.os == 'Windows'
|
|
150
|
+
uses: ilammy/msvc-dev-cmd@v1
|
|
151
|
+
with:
|
|
152
|
+
arch: ${{ matrix.msvc_arch }}
|
|
153
|
+
|
|
154
|
+
- name: Set up Ninja (Windows)
|
|
155
|
+
if: runner.os == 'Windows'
|
|
156
|
+
uses: seanmiddleditch/gha-setup-ninja@v5
|
|
157
|
+
|
|
158
|
+
- name: Build wheels
|
|
159
|
+
uses: pypa/cibuildwheel@v2.23
|
|
160
|
+
env:
|
|
161
|
+
# Single cp312-abi3 wheel per platform covers Python 3.12+ (3.12 / 3.13 / 3.14 / ...)
|
|
162
|
+
CIBW_BUILD: "cp312-*"
|
|
163
|
+
CIBW_SKIP: "*-musllinux_*"
|
|
164
|
+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
|
|
165
|
+
CIBW_BUILD_FRONTEND: build
|
|
166
|
+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
|
|
167
|
+
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
|
|
168
|
+
CIBW_ENVIRONMENT_MACOS: 'MACOSX_DEPLOYMENT_TARGET="13.0"'
|
|
169
|
+
CIBW_ENVIRONMENT_WINDOWS: >-
|
|
170
|
+
CMAKE_GENERATOR=Ninja
|
|
171
|
+
CMAKE_ARGS="-DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl"
|
|
172
|
+
CIBW_TEST_COMMAND: 'python -c "import hymt; print(hymt.Engine, hymt.__all__)"'
|
|
173
|
+
|
|
174
|
+
- name: Upload wheel
|
|
175
|
+
uses: actions/upload-artifact@v4
|
|
176
|
+
with:
|
|
177
|
+
name: wheel-${{ matrix.os_name }}-${{ matrix.arch }}
|
|
178
|
+
path: wheelhouse/*.whl
|
|
179
|
+
if-no-files-found: error
|
|
180
|
+
|
|
181
|
+
build-sdist:
|
|
182
|
+
name: Build Python sdist
|
|
183
|
+
runs-on: ubuntu-latest
|
|
184
|
+
steps:
|
|
185
|
+
- name: Checkout repository
|
|
186
|
+
uses: actions/checkout@v4
|
|
187
|
+
with:
|
|
188
|
+
fetch-depth: 0
|
|
189
|
+
submodules: recursive
|
|
190
|
+
|
|
191
|
+
- name: Set up uv
|
|
192
|
+
uses: astral-sh/setup-uv@v5
|
|
193
|
+
with:
|
|
194
|
+
enable-cache: false
|
|
195
|
+
|
|
196
|
+
- name: Build sdist
|
|
197
|
+
run: uv build --sdist --out-dir dist
|
|
198
|
+
|
|
199
|
+
- name: Upload sdist
|
|
200
|
+
uses: actions/upload-artifact@v4
|
|
201
|
+
with:
|
|
202
|
+
name: python-sdist
|
|
203
|
+
path: dist/*.tar.gz
|
|
204
|
+
if-no-files-found: error
|
|
205
|
+
|
|
206
|
+
publish:
|
|
207
|
+
name: Publish GitHub Release & Docker Image
|
|
208
|
+
needs: [build-windows, build-docker, build-wheels, build-sdist]
|
|
209
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
210
|
+
runs-on: ubuntu-latest
|
|
211
|
+
permissions:
|
|
212
|
+
contents: write
|
|
213
|
+
packages: write
|
|
214
|
+
steps:
|
|
215
|
+
- name: Checkout repository
|
|
216
|
+
uses: actions/checkout@v4
|
|
217
|
+
with:
|
|
218
|
+
submodules: recursive
|
|
219
|
+
|
|
220
|
+
- name: Download Windows artifacts
|
|
221
|
+
uses: actions/download-artifact@v4
|
|
222
|
+
with:
|
|
223
|
+
pattern: hymt-windows-*
|
|
224
|
+
merge-multiple: true
|
|
225
|
+
path: dist
|
|
226
|
+
|
|
227
|
+
- name: Set up Docker Buildx
|
|
228
|
+
uses: docker/setup-buildx-action@v3
|
|
229
|
+
|
|
230
|
+
- name: Log in to GitHub Container Registry
|
|
231
|
+
uses: docker/login-action@v3
|
|
232
|
+
with:
|
|
233
|
+
registry: ghcr.io
|
|
234
|
+
username: ${{ github.actor }}
|
|
235
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
236
|
+
|
|
237
|
+
- name: Extract Docker metadata
|
|
238
|
+
id: meta
|
|
239
|
+
uses: docker/metadata-action@v5
|
|
240
|
+
with:
|
|
241
|
+
images: ghcr.io/${{ github.repository }}
|
|
242
|
+
tags: |
|
|
243
|
+
type=semver,pattern=v{{version}}
|
|
244
|
+
type=semver,pattern={{version}}
|
|
245
|
+
type=semver,pattern={{major}}.{{minor}}
|
|
246
|
+
type=raw,value=latest,enable=${{ !contains(github.ref_name, '-') }}
|
|
247
|
+
|
|
248
|
+
- name: Push multi-arch Docker image (from GHA cache)
|
|
249
|
+
uses: docker/build-push-action@v6
|
|
250
|
+
with:
|
|
251
|
+
context: .
|
|
252
|
+
platforms: linux/amd64,linux/arm64
|
|
253
|
+
push: true
|
|
254
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
255
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
256
|
+
cache-from: |
|
|
257
|
+
type=gha,scope=docker-amd64
|
|
258
|
+
type=gha,scope=docker-arm64
|
|
259
|
+
|
|
260
|
+
- name: Publish GitHub Release
|
|
261
|
+
uses: softprops/action-gh-release@v2
|
|
262
|
+
with:
|
|
263
|
+
files: dist/*.zip
|
|
264
|
+
generate_release_notes: true
|
|
265
|
+
|
|
266
|
+
publish-pypi:
|
|
267
|
+
name: Publish Python Package to PyPI
|
|
268
|
+
needs: [build-windows, build-docker, build-wheels, build-sdist]
|
|
269
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
270
|
+
runs-on: ubuntu-latest
|
|
271
|
+
environment:
|
|
272
|
+
name: pypi
|
|
273
|
+
url: https://pypi.org/p/hymt-cpp
|
|
274
|
+
permissions:
|
|
275
|
+
id-token: write
|
|
276
|
+
steps:
|
|
277
|
+
- name: Download Python wheel artifacts
|
|
278
|
+
uses: actions/download-artifact@v4
|
|
279
|
+
with:
|
|
280
|
+
pattern: wheel-*
|
|
281
|
+
merge-multiple: true
|
|
282
|
+
path: dist
|
|
283
|
+
|
|
284
|
+
- name: Download Python sdist artifact
|
|
285
|
+
uses: actions/download-artifact@v4
|
|
286
|
+
with:
|
|
287
|
+
name: python-sdist
|
|
288
|
+
path: dist
|
|
289
|
+
|
|
290
|
+
- name: List distribution files
|
|
291
|
+
run: ls -la dist/
|
|
292
|
+
|
|
293
|
+
- name: Publish to PyPI
|
|
294
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
295
|
+
with:
|
|
296
|
+
packages-dir: dist/
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Build outputs
|
|
2
|
+
build/
|
|
3
|
+
out/
|
|
4
|
+
*.exe
|
|
5
|
+
*.obj
|
|
6
|
+
*.o
|
|
7
|
+
*.lib
|
|
8
|
+
*.a
|
|
9
|
+
*.dll
|
|
10
|
+
*.so
|
|
11
|
+
*.dylib
|
|
12
|
+
*.pdb
|
|
13
|
+
*.ilk
|
|
14
|
+
|
|
15
|
+
# Large model weights
|
|
16
|
+
models/*.gguf
|
|
17
|
+
*.gguf
|
|
18
|
+
|
|
19
|
+
# IDE / OS
|
|
20
|
+
.vs/
|
|
21
|
+
.vscode/
|
|
22
|
+
.idea/
|
|
23
|
+
.DS_Store
|
|
24
|
+
Thumbs.db
|
|
25
|
+
|
|
26
|
+
# Python
|
|
27
|
+
.venv/
|
|
28
|
+
dist/
|
|
29
|
+
*.egg-info/
|
|
30
|
+
__pycache__/
|
|
31
|
+
*.pyc
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.16)
|
|
2
|
+
if(POLICY CMP0091)
|
|
3
|
+
cmake_policy(SET CMP0091 NEW)
|
|
4
|
+
endif()
|
|
5
|
+
project(hymt_cpu VERSION 0.1.0 LANGUAGES CXX)
|
|
6
|
+
|
|
7
|
+
set(CMAKE_CXX_STANDARD 17)
|
|
8
|
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
9
|
+
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
10
|
+
|
|
11
|
+
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
12
|
+
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
|
|
13
|
+
endif()
|
|
14
|
+
|
|
15
|
+
# Statically link MSVC CRT (/MT) so hymt_cli.exe runs standalone without vcruntime/msvcp DLLs
|
|
16
|
+
option(HYMT_STATIC_CRT "Statically link MSVC runtime library (/MT)" ON)
|
|
17
|
+
option(HYMT_BUILD_APPS "Build hymt_cli and hymt_server executables" ON)
|
|
18
|
+
option(HYMT_BUILD_PYTHON "Build Python bindings via nanobind" OFF)
|
|
19
|
+
|
|
20
|
+
if(HYMT_BUILD_PYTHON)
|
|
21
|
+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
22
|
+
endif()
|
|
23
|
+
|
|
24
|
+
if(HYMT_STATIC_CRT AND (MSVC OR (WIN32 AND CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")))
|
|
25
|
+
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
26
|
+
endif()
|
|
27
|
+
|
|
28
|
+
if(WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
|
29
|
+
string(APPEND CMAKE_CXX_FLAGS " /D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH")
|
|
30
|
+
endif()
|
|
31
|
+
|
|
32
|
+
# Configure Google Highway (only third-party dependency; compile only thread_pool/topology from contrib to skip 60+ unused vqsort TUs)
|
|
33
|
+
set(HWY_ENABLE_CONTRIB OFF CACHE BOOL "" FORCE)
|
|
34
|
+
set(HWY_ENABLE_EXAMPLES OFF CACHE BOOL "" FORCE)
|
|
35
|
+
set(HWY_ENABLE_TESTS OFF CACHE BOOL "" FORCE)
|
|
36
|
+
set(HWY_ENABLE_INSTALL OFF CACHE BOOL "" FORCE)
|
|
37
|
+
add_subdirectory(third_party/highway EXCLUDE_FROM_ALL)
|
|
38
|
+
|
|
39
|
+
find_package(Threads REQUIRED)
|
|
40
|
+
add_library(hwy_thread_pool STATIC
|
|
41
|
+
third_party/highway/hwy/contrib/thread_pool/thread_pool.cc
|
|
42
|
+
third_party/highway/hwy/contrib/thread_pool/topology.cc
|
|
43
|
+
)
|
|
44
|
+
target_link_libraries(hwy_thread_pool PUBLIC hwy Threads::Threads)
|
|
45
|
+
if(WIN32 AND NOT MSVC AND NOT CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
|
|
46
|
+
target_link_libraries(hwy_thread_pool PUBLIC synchronization)
|
|
47
|
+
endif()
|
|
48
|
+
|
|
49
|
+
# Core library
|
|
50
|
+
add_library(hymt_core STATIC
|
|
51
|
+
# Layer 1: GGUF loader & mmap
|
|
52
|
+
src/gguf/mmap_file.cpp
|
|
53
|
+
src/gguf/gguf_parser.cpp
|
|
54
|
+
|
|
55
|
+
# Layer 2: BPE tokenizer
|
|
56
|
+
src/tokenizer/bpe_tokenizer.cpp
|
|
57
|
+
|
|
58
|
+
# Layer 5: Highway SIMD kernels (isolated compilation units)
|
|
59
|
+
src/kernels/dispatch.cpp
|
|
60
|
+
src/kernels/elementwise.cpp
|
|
61
|
+
src/kernels/quantize.cpp
|
|
62
|
+
src/kernels/matmul_q2_0c.cpp
|
|
63
|
+
src/kernels/matmul_q4k.cpp
|
|
64
|
+
src/kernels/matmul_q6k.cpp
|
|
65
|
+
src/kernels/matmul_q8_0.cpp
|
|
66
|
+
|
|
67
|
+
# Layer 3 & 4: Model runtime, KV cache, forward pass, sampler
|
|
68
|
+
src/model/weights.cpp
|
|
69
|
+
src/model/kv_cache.cpp
|
|
70
|
+
src/model/forward.cpp
|
|
71
|
+
src/model/sampler.cpp
|
|
72
|
+
|
|
73
|
+
# Facade
|
|
74
|
+
src/engine.cpp
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
target_include_directories(hymt_core
|
|
78
|
+
PUBLIC
|
|
79
|
+
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
80
|
+
PRIVATE
|
|
81
|
+
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
target_link_libraries(hymt_core
|
|
85
|
+
PRIVATE
|
|
86
|
+
hwy
|
|
87
|
+
hwy_thread_pool
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
if(MSVC)
|
|
91
|
+
target_compile_options(hymt_core PRIVATE /O2 /W3 /utf-8 /D_CRT_SECURE_NO_WARNINGS /DNOMINMAX)
|
|
92
|
+
else()
|
|
93
|
+
target_compile_options(hymt_core PRIVATE -O3 -Wall -Wextra -Wno-unused-parameter)
|
|
94
|
+
if(WIN32)
|
|
95
|
+
target_compile_definitions(hymt_core PRIVATE NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
|
96
|
+
endif()
|
|
97
|
+
endif()
|
|
98
|
+
|
|
99
|
+
if(HYMT_BUILD_APPS)
|
|
100
|
+
# CLI application
|
|
101
|
+
add_executable(hymt_cli apps/hymt_cli.cpp)
|
|
102
|
+
target_link_libraries(hymt_cli PRIVATE hymt_core)
|
|
103
|
+
if(MSVC)
|
|
104
|
+
target_compile_options(hymt_cli PRIVATE /O2 /W3 /utf-8 /D_CRT_SECURE_NO_WARNINGS /DNOMINMAX)
|
|
105
|
+
else()
|
|
106
|
+
target_compile_options(hymt_cli PRIVATE -O3 -Wall -Wextra)
|
|
107
|
+
if(WIN32)
|
|
108
|
+
target_compile_definitions(hymt_cli PRIVATE NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
|
109
|
+
endif()
|
|
110
|
+
endif()
|
|
111
|
+
|
|
112
|
+
# HTTP/1.1 + JSON + SSE inference server (zero extra third-party dependencies)
|
|
113
|
+
add_executable(hymt_server apps/hymt_server.cpp)
|
|
114
|
+
target_link_libraries(hymt_server PRIVATE hymt_core Threads::Threads)
|
|
115
|
+
if(WIN32)
|
|
116
|
+
target_link_libraries(hymt_server PRIVATE ws2_32)
|
|
117
|
+
endif()
|
|
118
|
+
if(MSVC)
|
|
119
|
+
target_compile_options(hymt_server PRIVATE /O2 /W3 /utf-8 /D_CRT_SECURE_NO_WARNINGS /DNOMINMAX)
|
|
120
|
+
else()
|
|
121
|
+
target_compile_options(hymt_server PRIVATE -O3 -Wall -Wextra)
|
|
122
|
+
if(WIN32)
|
|
123
|
+
target_compile_definitions(hymt_server PRIVATE NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
|
124
|
+
endif()
|
|
125
|
+
endif()
|
|
126
|
+
endif()
|
|
127
|
+
|
|
128
|
+
if(HYMT_BUILD_PYTHON)
|
|
129
|
+
find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module OPTIONAL_COMPONENTS Development.SABIModule)
|
|
130
|
+
execute_process(
|
|
131
|
+
COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir
|
|
132
|
+
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE nanobind_ROOT
|
|
133
|
+
RESULT_VARIABLE _nb_res
|
|
134
|
+
)
|
|
135
|
+
if(NOT _nb_res EQUAL 0)
|
|
136
|
+
message(FATAL_ERROR "nanobind not found. Install nanobind in the active Python environment.")
|
|
137
|
+
endif()
|
|
138
|
+
find_package(nanobind CONFIG REQUIRED)
|
|
139
|
+
|
|
140
|
+
if(Python_VERSION VERSION_GREATER_EQUAL 3.12 AND (NOT WIN32 OR Python_SABIModule_FOUND))
|
|
141
|
+
nanobind_add_module(_hymt STABLE_ABI NB_STATIC python/bindings.cpp)
|
|
142
|
+
else()
|
|
143
|
+
nanobind_add_module(_hymt NB_STATIC python/bindings.cpp)
|
|
144
|
+
endif()
|
|
145
|
+
target_link_libraries(_hymt PRIVATE hymt_core)
|
|
146
|
+
if(MSVC)
|
|
147
|
+
target_compile_options(_hymt PRIVATE /O2 /W3 /utf-8 /D_CRT_SECURE_NO_WARNINGS /DNOMINMAX)
|
|
148
|
+
else()
|
|
149
|
+
target_compile_options(_hymt PRIVATE -O3 -Wall -Wextra -Wno-unused-parameter)
|
|
150
|
+
endif()
|
|
151
|
+
install(TARGETS _hymt LIBRARY DESTINATION hymt)
|
|
152
|
+
endif()
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# syntax=docker/dockerfile:1
|
|
2
|
+
|
|
3
|
+
# Stage 1: Download Hy-MT2-1.8B-2Bit.gguf on native build host (cached independently of C++ source changes)
|
|
4
|
+
FROM --platform=$BUILDPLATFORM debian:bookworm-slim AS model
|
|
5
|
+
ARG MODEL_URL="https://huggingface.co/tencent/Hy-MT2-1.8B-2Bit-GGUF/resolve/main/Hy-MT2-1.8B-2Bit.gguf"
|
|
6
|
+
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates \
|
|
7
|
+
&& rm -rf /var/lib/apt/lists/* \
|
|
8
|
+
&& mkdir -p /models \
|
|
9
|
+
&& curl -fL --retry 3 --retry-delay 5 "${MODEL_URL}" -o /models/Hy-MT2-1.8B-2Bit.gguf
|
|
10
|
+
|
|
11
|
+
# Stage 2: Native or cross-compile hymt_server (no QEMU emulation needed for linux/arm64)
|
|
12
|
+
FROM --platform=$BUILDPLATFORM debian:bookworm-slim AS builder
|
|
13
|
+
ARG TARGETARCH
|
|
14
|
+
ARG BUILDARCH
|
|
15
|
+
|
|
16
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
17
|
+
cmake ninja-build g++ \
|
|
18
|
+
&& if [ "${TARGETARCH}" = "arm64" ] && [ "${BUILDARCH}" != "arm64" ]; then \
|
|
19
|
+
apt-get install -y --no-install-recommends g++-aarch64-linux-gnu; \
|
|
20
|
+
elif [ "${TARGETARCH}" = "amd64" ] && [ "${BUILDARCH}" != "amd64" ]; then \
|
|
21
|
+
apt-get install -y --no-install-recommends g++-x86-64-linux-gnu; \
|
|
22
|
+
fi \
|
|
23
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
24
|
+
|
|
25
|
+
WORKDIR /src
|
|
26
|
+
COPY CMakeLists.txt ./
|
|
27
|
+
COPY third_party/highway ./third_party/highway
|
|
28
|
+
COPY include ./include
|
|
29
|
+
COPY src ./src
|
|
30
|
+
COPY apps ./apps
|
|
31
|
+
|
|
32
|
+
RUN set -eu; \
|
|
33
|
+
if [ "${TARGETARCH}" = "arm64" ] && [ "${BUILDARCH}" != "arm64" ]; then \
|
|
34
|
+
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \
|
|
35
|
+
-DCMAKE_SYSTEM_NAME=Linux \
|
|
36
|
+
-DCMAKE_SYSTEM_PROCESSOR=aarch64 \
|
|
37
|
+
-DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc \
|
|
38
|
+
-DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ \
|
|
39
|
+
-DCMAKE_EXE_LINKER_FLAGS="-static-libstdc++ -static-libgcc"; \
|
|
40
|
+
cmake --build build --target hymt_server -j"$(nproc)"; \
|
|
41
|
+
aarch64-linux-gnu-strip build/hymt_server; \
|
|
42
|
+
elif [ "${TARGETARCH}" = "amd64" ] && [ "${BUILDARCH}" != "amd64" ]; then \
|
|
43
|
+
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \
|
|
44
|
+
-DCMAKE_SYSTEM_NAME=Linux \
|
|
45
|
+
-DCMAKE_SYSTEM_PROCESSOR=x86_64 \
|
|
46
|
+
-DCMAKE_C_COMPILER=x86_64-linux-gnu-gcc \
|
|
47
|
+
-DCMAKE_CXX_COMPILER=x86_64-linux-gnu-g++ \
|
|
48
|
+
-DCMAKE_EXE_LINKER_FLAGS="-static-libstdc++ -static-libgcc"; \
|
|
49
|
+
cmake --build build --target hymt_server -j"$(nproc)"; \
|
|
50
|
+
x86_64-linux-gnu-strip build/hymt_server; \
|
|
51
|
+
else \
|
|
52
|
+
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \
|
|
53
|
+
-DCMAKE_EXE_LINKER_FLAGS="-static-libstdc++ -static-libgcc"; \
|
|
54
|
+
cmake --build build --target hymt_server -j"$(nproc)"; \
|
|
55
|
+
strip build/hymt_server; \
|
|
56
|
+
fi
|
|
57
|
+
|
|
58
|
+
# Stage 3: Minimal runtime image (model layer first so code updates reuse the cached model layer)
|
|
59
|
+
FROM debian:bookworm-slim AS runtime
|
|
60
|
+
COPY --from=model /models/Hy-MT2-1.8B-2Bit.gguf /models/Hy-MT2-1.8B-2Bit.gguf
|
|
61
|
+
COPY --from=builder /src/build/hymt_server /usr/local/bin/hymt_server
|
|
62
|
+
|
|
63
|
+
EXPOSE 8080
|
|
64
|
+
ENTRYPOINT ["/usr/local/bin/hymt_server"]
|
|
65
|
+
CMD ["-m", "/models/Hy-MT2-1.8B-2Bit.gguf", "--host", "0.0.0.0", "--port", "8080"]
|
hymt_cpp-1.1.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 touken
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|