toy 0.8.0
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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +1124 -0
- data/LICENSE +21 -0
- data/Makefile +2022 -0
- data/README.md +154 -0
- data/bin/toy +10 -0
- data/lib/toy/compute.rb +135 -0
- data/lib/toy/compute_cuda.rb +104 -0
- data/lib/toy/compute_metal.rb +97 -0
- data/lib/toy/core/cli/describe.rb +188 -0
- data/lib/toy/core/cli/eval.rb +385 -0
- data/lib/toy/core/cli/exit_codes.rb +15 -0
- data/lib/toy/core/cli/fetch.rb +238 -0
- data/lib/toy/core/cli/infer.rb +268 -0
- data/lib/toy/core/cli/install.rb +228 -0
- data/lib/toy/core/cli/list.rb +86 -0
- data/lib/toy/core/cli/manifest.rb +49 -0
- data/lib/toy/core/cli/new.rb +594 -0
- data/lib/toy/core/cli/serve.rb +237 -0
- data/lib/toy/core/cli/train.rb +471 -0
- data/lib/toy/core/cli.rb +165 -0
- data/lib/toy/core/config.rb +64 -0
- data/lib/toy/core/gguf_meta.rb +161 -0
- data/lib/toy/core/model_scan.rb +221 -0
- data/lib/toy/core/run_log.rb +94 -0
- data/lib/toy/core/toy_root.rb +95 -0
- data/lib/toy/dev/toy_card.rb +299 -0
- data/lib/toy/dev/toy_describe_flow.rb +412 -0
- data/lib/toy/dev/toy_logprobs.rb +86 -0
- data/lib/toy/dev/toy_tap.rb +183 -0
- data/lib/toy/dev/toy_token_drift.rb +121 -0
- data/lib/toy/ffi/tinynn.rb +1491 -0
- data/lib/toy/ffi/tinynn_cuda.rb +1124 -0
- data/lib/toy/ffi/tinynn_metal.rb +359 -0
- data/lib/toy/ffi_manifest.rb +84 -0
- data/lib/toy/io/bpe.rb +325 -0
- data/lib/toy/io/gguf_kv.rb +35 -0
- data/lib/toy/io/gguf_load.rb +331 -0
- data/lib/toy/io/loaders/toy_gpt2_loader.rb +70 -0
- data/lib/toy/io/loaders/toy_smollm2_loader.rb +754 -0
- data/lib/toy/io/model_index.rb +206 -0
- data/lib/toy/io/run_bundle.rb +280 -0
- data/lib/toy/io/tokenizer.rb +613 -0
- data/lib/toy/io/toy_corpus_loader.rb +52 -0
- data/lib/toy/io/toy_events.rb +56 -0
- data/lib/toy/io/toy_image_loader.rb +48 -0
- data/lib/toy/llm/adamw.rb +169 -0
- data/lib/toy/llm/archs/llama_arch.rb +233 -0
- data/lib/toy/llm/archs/llama_arch_cuda.rb +237 -0
- data/lib/toy/llm/archs/llama_arch_metal.rb +237 -0
- data/lib/toy/llm/blocks/transformer_block.rb +876 -0
- data/lib/toy/llm/blocks/transformer_block_cuda.rb +880 -0
- data/lib/toy/llm/blocks/transformer_block_metal.rb +880 -0
- data/lib/toy/llm/classify_batch.rb +88 -0
- data/lib/toy/llm/engine/gpt2_fwd_engine.rb +360 -0
- data/lib/toy/llm/engine/gpt2_fwd_engine_cuda.rb +362 -0
- data/lib/toy/llm/engine/gpt2_fwd_engine_metal.rb +362 -0
- data/lib/toy/llm/engine/gpt2_kv_engine.rb +346 -0
- data/lib/toy/llm/engine/gpt2_kv_engine_cuda.rb +348 -0
- data/lib/toy/llm/engine/gpt2_kv_engine_metal.rb +348 -0
- data/lib/toy/llm/engine/gpt2_seq_engine.rb +289 -0
- data/lib/toy/llm/engine/gpt2_seq_engine_cuda.rb +293 -0
- data/lib/toy/llm/engine/gpt2_seq_engine_metal.rb +293 -0
- data/lib/toy/llm/engine/llama_kv_engine.rb +1593 -0
- data/lib/toy/llm/engine/llama_kv_engine_cuda.rb +1526 -0
- data/lib/toy/llm/engine/llama_kv_engine_metal.rb +1526 -0
- data/lib/toy/llm/engine/llama_seq_engine.rb +1233 -0
- data/lib/toy/llm/engine/llama_seq_engine_cuda.rb +1238 -0
- data/lib/toy/llm/engine/llama_seq_engine_metal.rb +1238 -0
- data/lib/toy/llm/engine/vit_tiny_engine.rb +467 -0
- data/lib/toy/llm/labels.rb +142 -0
- data/lib/toy/llm/primitives/gqa.rb +62 -0
- data/lib/toy/llm/primitives/gqa_cuda.rb +66 -0
- data/lib/toy/llm/primitives/gqa_metal.rb +66 -0
- data/lib/toy/llm/primitives/rms_norm.rb +39 -0
- data/lib/toy/llm/primitives/rms_norm_cuda.rb +43 -0
- data/lib/toy/llm/primitives/rms_norm_metal.rb +43 -0
- data/lib/toy/llm/primitives/rope.rb +68 -0
- data/lib/toy/llm/primitives/rope_cuda.rb +72 -0
- data/lib/toy/llm/primitives/rope_metal.rb +72 -0
- data/lib/toy/llm/primitives/swiglu.rb +41 -0
- data/lib/toy/llm/primitives/swiglu_cuda.rb +45 -0
- data/lib/toy/llm/primitives/swiglu_metal.rb +45 -0
- data/lib/toy/llm/recipe_options.rb +71 -0
- data/lib/toy/llm/recipes/from_scratch.rb +105 -0
- data/lib/toy/llm/recipes/from_scratch_cuda.rb +109 -0
- data/lib/toy/llm/recipes/from_scratch_metal.rb +109 -0
- data/lib/toy/llm/recipes/lora.rb +110 -0
- data/lib/toy/llm/recipes/lora_cuda.rb +114 -0
- data/lib/toy/llm/recipes/lora_metal.rb +114 -0
- data/lib/toy/llm/recipes/vit_tiny.rb +75 -0
- data/lib/toy/llm/recipes/warm_start.rb +235 -0
- data/lib/toy/llm/recipes/warm_start_cuda.rb +239 -0
- data/lib/toy/llm/recipes/warm_start_metal.rb +239 -0
- data/lib/toy/llm/training_batch.rb +133 -0
- data/lib/toy/models/arch.rb +253 -0
- data/lib/toy/models/gpt2.rb +311 -0
- data/lib/toy/models/toy_gpt2.rb +177 -0
- data/lib/toy/models/toy_smollm2.rb +393 -0
- data/lib/toy/models/toy_vit.rb +83 -0
- data/lib/toy/models/transformer.rb +1494 -0
- data/lib/toy/models/transformer_lm.rb +298 -0
- data/lib/toy/models/transformer_lm_cuda.rb +159 -0
- data/lib/toy/models/transformer_lm_metal.rb +142 -0
- data/lib/toy/mri.rb +300 -0
- data/lib/toy/run/eval.rb +76 -0
- data/lib/toy/run/eval_cuda.rb +66 -0
- data/lib/toy/run/eval_lmc.rb +334 -0
- data/lib/toy/run/eval_metal.rb +67 -0
- data/lib/toy/run/infer.rb +130 -0
- data/lib/toy/run/infer_cuda.rb +118 -0
- data/lib/toy/run/infer_metal.rb +119 -0
- data/lib/toy/run/infer_trace.rb +37 -0
- data/lib/toy/run/serve.rb +144 -0
- data/lib/toy/run/train.rb +404 -0
- data/lib/toy/run/train_cuda.rb +397 -0
- data/lib/toy/run/train_gpt2.rb +103 -0
- data/lib/toy/run/train_gpt2_cuda.rb +85 -0
- data/lib/toy/run/train_gpt2_metal.rb +85 -0
- data/lib/toy/run/train_lora.rb +207 -0
- data/lib/toy/run/train_lora_cuda.rb +219 -0
- data/lib/toy/run/train_metal.rb +227 -0
- data/lib/toy/run/train_vit.rb +251 -0
- data/lib/toy/serve/openai/embeddings_handler.rb +92 -0
- data/lib/toy/serve/openai/handlers.rb +143 -0
- data/lib/toy/serve/openai/server.rb +159 -0
- data/lib/toy/train/sampler.rb +314 -0
- data/lib/toy/train/toy_chat_template.rb +179 -0
- data/lib/toy/train/toy_drift_grad.rb +176 -0
- data/lib/toy/train/toy_gguf_fuse.rb +428 -0
- data/lib/toy/train/toy_gguf_writer.rb +100 -0
- data/lib/toy/train/toy_lr_schedule.rb +39 -0
- data/lib/toy/train/toy_sample.rb +125 -0
- data/lib/toy/train/toy_trainer.rb +86 -0
- data/lib/toy/train/training.rb +160 -0
- data/lib/toy/version.rb +11 -0
- data/lib/toy.rb +902 -0
- data/prep/progress +118 -0
- data/prep/quietly +64 -0
- data/sig/toy.rbs +397 -0
- data/sig/toy_compute.rbs +450 -0
- data/spinel-ext.json +122 -0
- data/tinynn/Makefile +71 -0
- data/tinynn/tinynn_backend_cuda.c +99 -0
- data/tinynn/tinynn_backend_metal.m +75 -0
- data/tinynn/tinynn_events.c +122 -0
- data/tinynn/tinynn_events.h +83 -0
- data/tinynn/tinynn_ggml.c +2460 -0
- data/tinynn/tinynn_ggml.h +545 -0
- data/tinynn/tinynn_gguf.c +783 -0
- data/tinynn/tinynn_gguf.h +167 -0
- data/tinynn/tinynn_trace.c +180 -0
- data/tinynn/tinynn_trace.h +85 -0
- data/vendor/ggml/AUTHORS +335 -0
- data/vendor/ggml/CMakeLists.txt +505 -0
- data/vendor/ggml/CONTRIBUTING.md +3 -0
- data/vendor/ggml/LICENSE +21 -0
- data/vendor/ggml/README.md +50 -0
- data/vendor/ggml/ci/run.sh +395 -0
- data/vendor/ggml/cmake/FindNCCL.cmake +36 -0
- data/vendor/ggml/cmake/GitVars.cmake +22 -0
- data/vendor/ggml/cmake/common.cmake +50 -0
- data/vendor/ggml/cmake/ggml-config.cmake.in +191 -0
- data/vendor/ggml/docs/gguf.md +828 -0
- data/vendor/ggml/examples/CMakeLists.txt +34 -0
- data/vendor/ggml/examples/common-ggml.cpp +244 -0
- data/vendor/ggml/examples/common-ggml.h +18 -0
- data/vendor/ggml/examples/common.cpp +675 -0
- data/vendor/ggml/examples/common.h +322 -0
- data/vendor/ggml/examples/gpt-2/CMakeLists.txt +32 -0
- data/vendor/ggml/examples/gpt-2/README.md +225 -0
- data/vendor/ggml/examples/gpt-2/convert-cerebras-to-ggml.py +183 -0
- data/vendor/ggml/examples/gpt-2/convert-ckpt-to-ggml.py +159 -0
- data/vendor/ggml/examples/gpt-2/convert-h5-to-ggml.py +195 -0
- data/vendor/ggml/examples/gpt-2/download-ggml-model.sh +69 -0
- data/vendor/ggml/examples/gpt-2/download-model.sh +48 -0
- data/vendor/ggml/examples/gpt-2/main-alloc.cpp +880 -0
- data/vendor/ggml/examples/gpt-2/main-backend.cpp +946 -0
- data/vendor/ggml/examples/gpt-2/main-batched.cpp +1210 -0
- data/vendor/ggml/examples/gpt-2/main-ctx.cpp +840 -0
- data/vendor/ggml/examples/gpt-2/main-sched.cpp +1079 -0
- data/vendor/ggml/examples/gpt-2/quantize.cpp +184 -0
- data/vendor/ggml/examples/gpt-j/CMakeLists.txt +13 -0
- data/vendor/ggml/examples/gpt-j/README.md +239 -0
- data/vendor/ggml/examples/gpt-j/convert-h5-to-ggml.py +173 -0
- data/vendor/ggml/examples/gpt-j/download-ggml-model.sh +69 -0
- data/vendor/ggml/examples/gpt-j/download-model.sh +11 -0
- data/vendor/ggml/examples/gpt-j/main.cpp +755 -0
- data/vendor/ggml/examples/gpt-j/quantize.cpp +182 -0
- data/vendor/ggml/examples/magika/CMakeLists.txt +17 -0
- data/vendor/ggml/examples/magika/README.md +23 -0
- data/vendor/ggml/examples/magika/convert.py +32 -0
- data/vendor/ggml/examples/magika/main.cpp +374 -0
- data/vendor/ggml/examples/mnist/CMakeLists.txt +58 -0
- data/vendor/ggml/examples/mnist/README.md +206 -0
- data/vendor/ggml/examples/mnist/mnist-common.cpp +496 -0
- data/vendor/ggml/examples/mnist/mnist-common.h +166 -0
- data/vendor/ggml/examples/mnist/mnist-eval.cpp +67 -0
- data/vendor/ggml/examples/mnist/mnist-train-cnn.py +91 -0
- data/vendor/ggml/examples/mnist/mnist-train-fc.py +131 -0
- data/vendor/ggml/examples/mnist/mnist-train.cpp +39 -0
- data/vendor/ggml/examples/mnist/server.py +36 -0
- data/vendor/ggml/examples/mnist/web/index.html +178 -0
- data/vendor/ggml/examples/perf-metal/CMakeLists.txt +7 -0
- data/vendor/ggml/examples/perf-metal/perf-metal.cpp +152 -0
- data/vendor/ggml/examples/prompts/dolly-v2.txt +100 -0
- data/vendor/ggml/examples/prompts/gpt-2-chinese.txt +1 -0
- data/vendor/ggml/examples/prompts/gpt-2.txt +100 -0
- data/vendor/ggml/examples/prompts/gpt-j.txt +100 -0
- data/vendor/ggml/examples/prompts/gpt-neox-japanese.txt +1 -0
- data/vendor/ggml/examples/prompts/gpt-neox.txt +100 -0
- data/vendor/ggml/examples/prompts/polyglot-ko.txt +3 -0
- data/vendor/ggml/examples/prompts/replit.txt +100 -0
- data/vendor/ggml/examples/prompts/starcoder.txt +100 -0
- data/vendor/ggml/examples/prompts/test-cases.txt +110 -0
- data/vendor/ggml/examples/prompts/tokenize_huggingface.py +65 -0
- data/vendor/ggml/examples/prompts/whisper.txt +100 -0
- data/vendor/ggml/examples/python/README.md +115 -0
- data/vendor/ggml/examples/python/api.h +14 -0
- data/vendor/ggml/examples/python/example_add_quant.py +25 -0
- data/vendor/ggml/examples/python/example_test_all_quants.py +68 -0
- data/vendor/ggml/examples/python/ggml/__init__.py +58 -0
- data/vendor/ggml/examples/python/ggml/__init__.pyi +2406 -0
- data/vendor/ggml/examples/python/ggml/cffi.py +11 -0
- data/vendor/ggml/examples/python/ggml/ffi/__init__.pyi +7 -0
- data/vendor/ggml/examples/python/ggml/utils.py +182 -0
- data/vendor/ggml/examples/python/regenerate.py +42 -0
- data/vendor/ggml/examples/python/stubs.py +128 -0
- data/vendor/ggml/examples/python/test_tensor.py +258 -0
- data/vendor/ggml/examples/sam/CMakeLists.txt +13 -0
- data/vendor/ggml/examples/sam/README.md +95 -0
- data/vendor/ggml/examples/sam/convert-pth-to-ggml.py +147 -0
- data/vendor/ggml/examples/sam/example.jpg +0 -0
- data/vendor/ggml/examples/sam/sam.cpp +2370 -0
- data/vendor/ggml/examples/simple/CMakeLists.txt +21 -0
- data/vendor/ggml/examples/simple/README.md +61 -0
- data/vendor/ggml/examples/simple/simple-backend.cpp +153 -0
- data/vendor/ggml/examples/simple/simple-ctx.cpp +127 -0
- data/vendor/ggml/examples/stb_image.h +7987 -0
- data/vendor/ggml/examples/stb_image_write.h +1724 -0
- data/vendor/ggml/examples/test-cmake/CMakeLists.txt +10 -0
- data/vendor/ggml/examples/test-cmake/README.md +3 -0
- data/vendor/ggml/examples/test-cmake/test-cmake.cpp +6 -0
- data/vendor/ggml/examples/yolo/CMakeLists.txt +6 -0
- data/vendor/ggml/examples/yolo/README.md +59 -0
- data/vendor/ggml/examples/yolo/convert-yolov3-tiny.py +53 -0
- data/vendor/ggml/examples/yolo/data/coco.names +80 -0
- data/vendor/ggml/examples/yolo/data/labels/100_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/100_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/100_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/100_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/100_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/100_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/100_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/100_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/101_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/101_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/101_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/101_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/101_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/101_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/101_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/101_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/102_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/102_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/102_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/102_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/102_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/102_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/102_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/102_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/103_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/103_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/103_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/103_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/103_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/103_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/103_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/103_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/104_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/104_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/104_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/104_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/104_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/104_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/104_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/104_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/105_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/105_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/105_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/105_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/105_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/105_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/105_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/105_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/106_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/106_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/106_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/106_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/106_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/106_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/106_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/106_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/107_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/107_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/107_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/107_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/107_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/107_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/107_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/107_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/108_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/108_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/108_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/108_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/108_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/108_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/108_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/108_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/109_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/109_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/109_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/109_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/109_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/109_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/109_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/109_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/110_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/110_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/110_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/110_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/110_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/110_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/110_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/110_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/111_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/111_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/111_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/111_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/111_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/111_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/111_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/111_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/112_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/112_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/112_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/112_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/112_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/112_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/112_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/112_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/113_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/113_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/113_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/113_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/113_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/113_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/113_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/113_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/114_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/114_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/114_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/114_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/114_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/114_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/114_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/114_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/115_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/115_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/115_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/115_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/115_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/115_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/115_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/115_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/116_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/116_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/116_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/116_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/116_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/116_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/116_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/116_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/117_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/117_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/117_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/117_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/117_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/117_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/117_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/117_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/118_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/118_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/118_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/118_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/118_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/118_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/118_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/118_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/119_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/119_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/119_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/119_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/119_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/119_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/119_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/119_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/120_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/120_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/120_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/120_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/120_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/120_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/120_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/120_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/121_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/121_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/121_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/121_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/121_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/121_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/121_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/121_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/122_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/122_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/122_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/122_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/122_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/122_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/122_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/122_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/123_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/123_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/123_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/123_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/123_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/123_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/123_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/123_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/124_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/124_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/124_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/124_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/124_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/124_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/124_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/124_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/125_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/125_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/125_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/125_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/125_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/125_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/125_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/125_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/126_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/126_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/126_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/126_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/126_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/126_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/126_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/126_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/32_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/32_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/32_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/32_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/32_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/32_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/32_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/32_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/33_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/33_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/33_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/33_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/33_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/33_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/33_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/33_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/34_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/34_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/34_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/34_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/34_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/34_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/34_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/34_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/35_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/35_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/35_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/35_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/35_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/35_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/35_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/35_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/36_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/36_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/36_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/36_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/36_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/36_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/36_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/36_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/37_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/37_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/37_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/37_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/37_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/37_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/37_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/37_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/38_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/38_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/38_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/38_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/38_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/38_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/38_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/38_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/39_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/39_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/39_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/39_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/39_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/39_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/39_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/39_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/40_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/40_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/40_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/40_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/40_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/40_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/40_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/40_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/41_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/41_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/41_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/41_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/41_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/41_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/41_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/41_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/42_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/42_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/42_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/42_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/42_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/42_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/42_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/42_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/43_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/43_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/43_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/43_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/43_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/43_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/43_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/43_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/44_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/44_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/44_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/44_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/44_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/44_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/44_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/44_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/45_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/45_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/45_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/45_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/45_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/45_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/45_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/45_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/46_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/46_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/46_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/46_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/46_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/46_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/46_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/46_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/47_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/47_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/47_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/47_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/47_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/47_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/47_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/47_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/48_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/48_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/48_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/48_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/48_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/48_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/48_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/48_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/49_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/49_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/49_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/49_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/49_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/49_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/49_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/49_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/50_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/50_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/50_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/50_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/50_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/50_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/50_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/50_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/51_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/51_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/51_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/51_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/51_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/51_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/51_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/51_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/52_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/52_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/52_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/52_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/52_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/52_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/52_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/52_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/53_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/53_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/53_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/53_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/53_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/53_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/53_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/53_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/54_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/54_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/54_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/54_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/54_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/54_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/54_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/54_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/55_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/55_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/55_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/55_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/55_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/55_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/55_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/55_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/56_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/56_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/56_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/56_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/56_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/56_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/56_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/56_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/57_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/57_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/57_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/57_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/57_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/57_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/57_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/57_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/58_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/58_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/58_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/58_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/58_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/58_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/58_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/58_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/59_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/59_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/59_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/59_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/59_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/59_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/59_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/59_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/60_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/60_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/60_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/60_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/60_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/60_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/60_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/60_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/61_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/61_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/61_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/61_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/61_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/61_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/61_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/61_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/62_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/62_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/62_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/62_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/62_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/62_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/62_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/62_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/63_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/63_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/63_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/63_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/63_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/63_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/63_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/63_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/64_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/64_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/64_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/64_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/64_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/64_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/64_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/64_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/65_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/65_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/65_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/65_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/65_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/65_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/65_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/65_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/66_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/66_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/66_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/66_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/66_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/66_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/66_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/66_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/67_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/67_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/67_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/67_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/67_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/67_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/67_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/67_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/68_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/68_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/68_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/68_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/68_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/68_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/68_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/68_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/69_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/69_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/69_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/69_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/69_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/69_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/69_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/69_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/70_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/70_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/70_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/70_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/70_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/70_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/70_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/70_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/71_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/71_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/71_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/71_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/71_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/71_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/71_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/71_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/72_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/72_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/72_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/72_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/72_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/72_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/72_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/72_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/73_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/73_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/73_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/73_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/73_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/73_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/73_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/73_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/74_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/74_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/74_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/74_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/74_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/74_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/74_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/74_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/75_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/75_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/75_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/75_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/75_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/75_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/75_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/75_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/76_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/76_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/76_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/76_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/76_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/76_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/76_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/76_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/77_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/77_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/77_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/77_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/77_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/77_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/77_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/77_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/78_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/78_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/78_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/78_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/78_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/78_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/78_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/78_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/79_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/79_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/79_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/79_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/79_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/79_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/79_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/79_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/80_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/80_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/80_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/80_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/80_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/80_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/80_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/80_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/81_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/81_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/81_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/81_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/81_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/81_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/81_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/81_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/82_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/82_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/82_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/82_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/82_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/82_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/82_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/82_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/83_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/83_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/83_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/83_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/83_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/83_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/83_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/83_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/84_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/84_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/84_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/84_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/84_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/84_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/84_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/84_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/85_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/85_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/85_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/85_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/85_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/85_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/85_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/85_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/86_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/86_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/86_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/86_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/86_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/86_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/86_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/86_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/87_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/87_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/87_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/87_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/87_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/87_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/87_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/87_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/88_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/88_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/88_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/88_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/88_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/88_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/88_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/88_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/89_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/89_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/89_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/89_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/89_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/89_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/89_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/89_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/90_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/90_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/90_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/90_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/90_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/90_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/90_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/90_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/91_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/91_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/91_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/91_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/91_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/91_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/91_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/91_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/92_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/92_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/92_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/92_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/92_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/92_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/92_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/92_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/93_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/93_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/93_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/93_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/93_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/93_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/93_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/93_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/94_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/94_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/94_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/94_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/94_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/94_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/94_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/94_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/95_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/95_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/95_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/95_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/95_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/95_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/95_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/95_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/96_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/96_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/96_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/96_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/96_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/96_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/96_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/96_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/97_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/97_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/97_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/97_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/97_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/97_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/97_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/97_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/98_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/98_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/98_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/98_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/98_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/98_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/98_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/98_7.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/99_0.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/99_1.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/99_2.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/99_3.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/99_4.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/99_5.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/99_6.png +0 -0
- data/vendor/ggml/examples/yolo/data/labels/99_7.png +0 -0
- data/vendor/ggml/examples/yolo/yolo-image.cpp +210 -0
- data/vendor/ggml/examples/yolo/yolo-image.h +39 -0
- data/vendor/ggml/examples/yolo/yolov3-tiny.cpp +661 -0
- data/vendor/ggml/ggml.pc.in +10 -0
- data/vendor/ggml/include/ggml-alloc.h +85 -0
- data/vendor/ggml/include/ggml-backend.h +431 -0
- data/vendor/ggml/include/ggml-blas.h +25 -0
- data/vendor/ggml/include/ggml-cann.h +123 -0
- data/vendor/ggml/include/ggml-cpp.h +39 -0
- data/vendor/ggml/include/ggml-cpu.h +151 -0
- data/vendor/ggml/include/ggml-cuda.h +50 -0
- data/vendor/ggml/include/ggml-hexagon.h +19 -0
- data/vendor/ggml/include/ggml-metal.h +61 -0
- data/vendor/ggml/include/ggml-opencl.h +26 -0
- data/vendor/ggml/include/ggml-openvino.h +37 -0
- data/vendor/ggml/include/ggml-opt.h +256 -0
- data/vendor/ggml/include/ggml-rpc.h +35 -0
- data/vendor/ggml/include/ggml-sycl.h +49 -0
- data/vendor/ggml/include/ggml-virtgpu.h +14 -0
- data/vendor/ggml/include/ggml-vulkan.h +29 -0
- data/vendor/ggml/include/ggml-webgpu.h +19 -0
- data/vendor/ggml/include/ggml-zdnn.h +17 -0
- data/vendor/ggml/include/ggml-zendnn.h +22 -0
- data/vendor/ggml/include/ggml.h +2845 -0
- data/vendor/ggml/include/gguf.h +204 -0
- data/vendor/ggml/requirements.txt +12 -0
- data/vendor/ggml/scripts/gen-authors.sh +9 -0
- data/vendor/ggml/scripts/release.sh +296 -0
- data/vendor/ggml/scripts/sync-llama-am.sh +167 -0
- data/vendor/ggml/scripts/sync-llama.last +1 -0
- data/vendor/ggml/scripts/sync-llama.sh +21 -0
- data/vendor/ggml/scripts/sync-whisper-am.sh +138 -0
- data/vendor/ggml/scripts/sync-whisper.last +1 -0
- data/vendor/ggml/scripts/sync-whisper.sh +17 -0
- data/vendor/ggml/src/CMakeLists.txt +493 -0
- data/vendor/ggml/src/ggml-alloc.c +1248 -0
- data/vendor/ggml/src/ggml-backend-dl.cpp +48 -0
- data/vendor/ggml/src/ggml-backend-dl.h +45 -0
- data/vendor/ggml/src/ggml-backend-impl.h +275 -0
- data/vendor/ggml/src/ggml-backend-meta.cpp +2144 -0
- data/vendor/ggml/src/ggml-backend-reg.cpp +586 -0
- data/vendor/ggml/src/ggml-backend.cpp +2371 -0
- data/vendor/ggml/src/ggml-blas/CMakeLists.txt +101 -0
- data/vendor/ggml/src/ggml-blas/ggml-blas.cpp +522 -0
- data/vendor/ggml/src/ggml-cann/CMakeLists.txt +89 -0
- data/vendor/ggml/src/ggml-cann/acl_tensor.cpp +195 -0
- data/vendor/ggml/src/ggml-cann/acl_tensor.h +349 -0
- data/vendor/ggml/src/ggml-cann/aclnn_ops.cpp +4436 -0
- data/vendor/ggml/src/ggml-cann/aclnn_ops.h +1190 -0
- data/vendor/ggml/src/ggml-cann/common.h +651 -0
- data/vendor/ggml/src/ggml-cann/ggml-cann.cpp +3062 -0
- data/vendor/ggml/src/ggml-common.h +1900 -0
- data/vendor/ggml/src/ggml-cpu/CMakeLists.txt +731 -0
- data/vendor/ggml/src/ggml-cpu/amx/amx.cpp +249 -0
- data/vendor/ggml/src/ggml-cpu/amx/amx.h +8 -0
- data/vendor/ggml/src/ggml-cpu/amx/common.h +115 -0
- data/vendor/ggml/src/ggml-cpu/amx/mmq.cpp +2512 -0
- data/vendor/ggml/src/ggml-cpu/amx/mmq.h +10 -0
- data/vendor/ggml/src/ggml-cpu/arch/arm/cpu-feats.cpp +98 -0
- data/vendor/ggml/src/ggml-cpu/arch/arm/quants.c +4245 -0
- data/vendor/ggml/src/ggml-cpu/arch/arm/repack.cpp +5156 -0
- data/vendor/ggml/src/ggml-cpu/arch/loongarch/quants.c +2158 -0
- data/vendor/ggml/src/ggml-cpu/arch/powerpc/cpu-feats.cpp +82 -0
- data/vendor/ggml/src/ggml-cpu/arch/powerpc/quants.c +2304 -0
- data/vendor/ggml/src/ggml-cpu/arch/riscv/cpu-feats.cpp +38 -0
- data/vendor/ggml/src/ggml-cpu/arch/riscv/quants.c +4553 -0
- data/vendor/ggml/src/ggml-cpu/arch/riscv/repack.cpp +1703 -0
- data/vendor/ggml/src/ggml-cpu/arch/s390/cpu-feats.cpp +50 -0
- data/vendor/ggml/src/ggml-cpu/arch/s390/quants.c +1465 -0
- data/vendor/ggml/src/ggml-cpu/arch/wasm/quants.c +1220 -0
- data/vendor/ggml/src/ggml-cpu/arch/x86/cpu-feats.cpp +327 -0
- data/vendor/ggml/src/ggml-cpu/arch/x86/quants.c +3970 -0
- data/vendor/ggml/src/ggml-cpu/arch/x86/repack.cpp +6407 -0
- data/vendor/ggml/src/ggml-cpu/arch-fallback.h +348 -0
- data/vendor/ggml/src/ggml-cpu/binary-ops.cpp +154 -0
- data/vendor/ggml/src/ggml-cpu/binary-ops.h +16 -0
- data/vendor/ggml/src/ggml-cpu/cmake/FindSIMD.cmake +100 -0
- data/vendor/ggml/src/ggml-cpu/cmake/FindSMTIME.cmake +32 -0
- data/vendor/ggml/src/ggml-cpu/common.h +95 -0
- data/vendor/ggml/src/ggml-cpu/ggml-cpu-impl.h +539 -0
- data/vendor/ggml/src/ggml-cpu/ggml-cpu.c +3835 -0
- data/vendor/ggml/src/ggml-cpu/ggml-cpu.cpp +703 -0
- data/vendor/ggml/src/ggml-cpu/hbm.cpp +55 -0
- data/vendor/ggml/src/ggml-cpu/hbm.h +8 -0
- data/vendor/ggml/src/ggml-cpu/kleidiai/kernels.cpp +939 -0
- data/vendor/ggml/src/ggml-cpu/kleidiai/kernels.h +90 -0
- data/vendor/ggml/src/ggml-cpu/kleidiai/kleidiai.cpp +1513 -0
- data/vendor/ggml/src/ggml-cpu/kleidiai/kleidiai.h +17 -0
- data/vendor/ggml/src/ggml-cpu/llamafile/sgemm.cpp +4051 -0
- data/vendor/ggml/src/ggml-cpu/llamafile/sgemm.h +25 -0
- data/vendor/ggml/src/ggml-cpu/ops.cpp +11373 -0
- data/vendor/ggml/src/ggml-cpu/ops.h +119 -0
- data/vendor/ggml/src/ggml-cpu/quants.c +1288 -0
- data/vendor/ggml/src/ggml-cpu/quants.h +103 -0
- data/vendor/ggml/src/ggml-cpu/repack.cpp +4836 -0
- data/vendor/ggml/src/ggml-cpu/repack.h +245 -0
- data/vendor/ggml/src/ggml-cpu/simd-gemm.h +226 -0
- data/vendor/ggml/src/ggml-cpu/simd-mappings.h +1319 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/ime.cpp +1740 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/ime.h +21 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/ime1_kernels.cpp +1027 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/ime2_kernels.cpp +5768 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/ime_env.cpp +320 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/ime_env.h +55 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/ime_kernels.h +189 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/repack.cpp +1795 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/repack.h +14 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/rvv_kernels.cpp +3178 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/rvv_kernels.h +95 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/spine_barrier.h +34 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/spine_mem_pool.cpp +760 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/spine_mem_pool.h +32 -0
- data/vendor/ggml/src/ggml-cpu/spacemit/spine_tcm.h +409 -0
- data/vendor/ggml/src/ggml-cpu/traits.cpp +36 -0
- data/vendor/ggml/src/ggml-cpu/traits.h +38 -0
- data/vendor/ggml/src/ggml-cpu/unary-ops.cpp +337 -0
- data/vendor/ggml/src/ggml-cpu/unary-ops.h +35 -0
- data/vendor/ggml/src/ggml-cpu/vec.cpp +629 -0
- data/vendor/ggml/src/ggml-cpu/vec.h +1588 -0
- data/vendor/ggml/src/ggml-cuda/CMakeLists.txt +268 -0
- data/vendor/ggml/src/ggml-cuda/acc.cu +61 -0
- data/vendor/ggml/src/ggml-cuda/acc.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/add-id.cu +58 -0
- data/vendor/ggml/src/ggml-cuda/add-id.cuh +3 -0
- data/vendor/ggml/src/ggml-cuda/allreduce.cu +971 -0
- data/vendor/ggml/src/ggml-cuda/allreduce.cuh +29 -0
- data/vendor/ggml/src/ggml-cuda/arange.cu +34 -0
- data/vendor/ggml/src/ggml-cuda/arange.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/argmax.cu +91 -0
- data/vendor/ggml/src/ggml-cuda/argmax.cuh +3 -0
- data/vendor/ggml/src/ggml-cuda/argsort.cu +266 -0
- data/vendor/ggml/src/ggml-cuda/argsort.cuh +19 -0
- data/vendor/ggml/src/ggml-cuda/binbcast.cu +534 -0
- data/vendor/ggml/src/ggml-cuda/binbcast.cuh +12 -0
- data/vendor/ggml/src/ggml-cuda/clamp.cu +45 -0
- data/vendor/ggml/src/ggml-cuda/clamp.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/common.cuh +1489 -0
- data/vendor/ggml/src/ggml-cuda/concat.cu +204 -0
- data/vendor/ggml/src/ggml-cuda/concat.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/conv-transpose-1d.cu +86 -0
- data/vendor/ggml/src/ggml-cuda/conv-transpose-1d.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/conv2d-dw.cu +161 -0
- data/vendor/ggml/src/ggml-cuda/conv2d-dw.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/conv2d-transpose.cu +115 -0
- data/vendor/ggml/src/ggml-cuda/conv2d-transpose.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/conv2d.cu +166 -0
- data/vendor/ggml/src/ggml-cuda/conv2d.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/convert.cu +892 -0
- data/vendor/ggml/src/ggml-cuda/convert.cuh +66 -0
- data/vendor/ggml/src/ggml-cuda/count-equal.cu +64 -0
- data/vendor/ggml/src/ggml-cuda/count-equal.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/cp-async.cuh +57 -0
- data/vendor/ggml/src/ggml-cuda/cpy-utils.cuh +217 -0
- data/vendor/ggml/src/ggml-cuda/cpy.cu +558 -0
- data/vendor/ggml/src/ggml-cuda/cpy.cuh +7 -0
- data/vendor/ggml/src/ggml-cuda/cross-entropy-loss.cu +177 -0
- data/vendor/ggml/src/ggml-cuda/cross-entropy-loss.cuh +7 -0
- data/vendor/ggml/src/ggml-cuda/cumsum.cu +307 -0
- data/vendor/ggml/src/ggml-cuda/cumsum.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/dequantize.cuh +99 -0
- data/vendor/ggml/src/ggml-cuda/diag.cu +77 -0
- data/vendor/ggml/src/ggml-cuda/diag.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/diagmask.cu +40 -0
- data/vendor/ggml/src/ggml-cuda/diagmask.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/fattn-common.cuh +1212 -0
- data/vendor/ggml/src/ggml-cuda/fattn-mma-f16.cuh +2020 -0
- data/vendor/ggml/src/ggml-cuda/fattn-tile.cu +61 -0
- data/vendor/ggml/src/ggml-cuda/fattn-tile.cuh +1347 -0
- data/vendor/ggml/src/ggml-cuda/fattn-vec.cuh +600 -0
- data/vendor/ggml/src/ggml-cuda/fattn-wmma-f16.cu +696 -0
- data/vendor/ggml/src/ggml-cuda/fattn-wmma-f16.cuh +51 -0
- data/vendor/ggml/src/ggml-cuda/fattn.cu +562 -0
- data/vendor/ggml/src/ggml-cuda/fattn.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/fill.cu +37 -0
- data/vendor/ggml/src/ggml-cuda/fill.cuh +3 -0
- data/vendor/ggml/src/ggml-cuda/gated_delta_net.cu +311 -0
- data/vendor/ggml/src/ggml-cuda/gated_delta_net.cuh +4 -0
- data/vendor/ggml/src/ggml-cuda/getrows.cu +300 -0
- data/vendor/ggml/src/ggml-cuda/getrows.cuh +15 -0
- data/vendor/ggml/src/ggml-cuda/ggml-cuda.cu +5684 -0
- data/vendor/ggml/src/ggml-cuda/gla.cu +93 -0
- data/vendor/ggml/src/ggml-cuda/gla.cuh +3 -0
- data/vendor/ggml/src/ggml-cuda/im2col.cu +267 -0
- data/vendor/ggml/src/ggml-cuda/im2col.cuh +6 -0
- data/vendor/ggml/src/ggml-cuda/mean.cu +75 -0
- data/vendor/ggml/src/ggml-cuda/mean.cuh +3 -0
- data/vendor/ggml/src/ggml-cuda/mma.cuh +1456 -0
- data/vendor/ggml/src/ggml-cuda/mmf.cu +191 -0
- data/vendor/ggml/src/ggml-cuda/mmf.cuh +908 -0
- data/vendor/ggml/src/ggml-cuda/mmid.cu +164 -0
- data/vendor/ggml/src/ggml-cuda/mmid.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/mmq.cu +372 -0
- data/vendor/ggml/src/ggml-cuda/mmq.cuh +4176 -0
- data/vendor/ggml/src/ggml-cuda/mmvf.cu +862 -0
- data/vendor/ggml/src/ggml-cuda/mmvf.cuh +14 -0
- data/vendor/ggml/src/ggml-cuda/mmvq.cu +1161 -0
- data/vendor/ggml/src/ggml-cuda/mmvq.cuh +16 -0
- data/vendor/ggml/src/ggml-cuda/norm.cu +672 -0
- data/vendor/ggml/src/ggml-cuda/norm.cuh +18 -0
- data/vendor/ggml/src/ggml-cuda/opt-step-adamw.cu +78 -0
- data/vendor/ggml/src/ggml-cuda/opt-step-adamw.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/opt-step-sgd.cu +49 -0
- data/vendor/ggml/src/ggml-cuda/opt-step-sgd.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/out-prod.cu +84 -0
- data/vendor/ggml/src/ggml-cuda/out-prod.cuh +3 -0
- data/vendor/ggml/src/ggml-cuda/pad.cu +106 -0
- data/vendor/ggml/src/ggml-cuda/pad.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/pad_reflect_1d.cu +91 -0
- data/vendor/ggml/src/ggml-cuda/pad_reflect_1d.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/pool2d.cu +94 -0
- data/vendor/ggml/src/ggml-cuda/pool2d.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/quantize.cu +443 -0
- data/vendor/ggml/src/ggml-cuda/quantize.cuh +41 -0
- data/vendor/ggml/src/ggml-cuda/reduce_rows.cuh +39 -0
- data/vendor/ggml/src/ggml-cuda/roll.cu +67 -0
- data/vendor/ggml/src/ggml-cuda/roll.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/rope.cu +665 -0
- data/vendor/ggml/src/ggml-cuda/rope.cuh +9 -0
- data/vendor/ggml/src/ggml-cuda/scale.cu +34 -0
- data/vendor/ggml/src/ggml-cuda/scale.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/set-rows.cu +330 -0
- data/vendor/ggml/src/ggml-cuda/set-rows.cuh +7 -0
- data/vendor/ggml/src/ggml-cuda/set.cu +39 -0
- data/vendor/ggml/src/ggml-cuda/set.cuh +7 -0
- data/vendor/ggml/src/ggml-cuda/snake.cu +72 -0
- data/vendor/ggml/src/ggml-cuda/snake.cuh +8 -0
- data/vendor/ggml/src/ggml-cuda/softcap.cu +34 -0
- data/vendor/ggml/src/ggml-cuda/softcap.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/softmax.cu +472 -0
- data/vendor/ggml/src/ggml-cuda/softmax.cuh +7 -0
- data/vendor/ggml/src/ggml-cuda/solve_tri.cu +275 -0
- data/vendor/ggml/src/ggml-cuda/solve_tri.cuh +3 -0
- data/vendor/ggml/src/ggml-cuda/ssm-conv.cu +197 -0
- data/vendor/ggml/src/ggml-cuda/ssm-conv.cuh +3 -0
- data/vendor/ggml/src/ggml-cuda/ssm-scan.cu +342 -0
- data/vendor/ggml/src/ggml-cuda/ssm-scan.cuh +3 -0
- data/vendor/ggml/src/ggml-cuda/sum.cu +41 -0
- data/vendor/ggml/src/ggml-cuda/sum.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/sumrows.cu +43 -0
- data/vendor/ggml/src/ggml-cuda/sumrows.cuh +4 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_1-ncols2_16.cu +6 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_1-ncols2_32.cu +6 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_1-ncols2_8.cu +12 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_16-ncols2_1.cu +10 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_16-ncols2_2.cu +10 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_16-ncols2_4.cu +12 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_2-ncols2_16.cu +6 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_2-ncols2_32.cu +6 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_2-ncols2_4.cu +12 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_2-ncols2_8.cu +12 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_32-ncols2_1.cu +10 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_32-ncols2_2.cu +10 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_4-ncols2_16.cu +6 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_4-ncols2_2.cu +10 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_4-ncols2_4.cu +12 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_4-ncols2_8.cu +12 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_64-ncols2_1.cu +10 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_8-ncols2_1.cu +10 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_8-ncols2_2.cu +10 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_8-ncols2_4.cu +12 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_8-ncols2_8.cu +12 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq112-dv112.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq128-dv128.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq192-dv128.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq256-dv256.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq320-dv256.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq40-dv40.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq512-dv512.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq576-dv512.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq64-dv64.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq72-dv72.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq80-dv80.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-tile-instance-dkq96-dv96.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-bf16-bf16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-bf16-f16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-bf16-q4_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-bf16-q4_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-bf16-q5_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-bf16-q5_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-bf16-q8_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-f16-bf16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-f16-f16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-f16-q4_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-f16-q4_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-f16-q5_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-f16-q5_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-f16-q8_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_0-bf16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_0-f16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_0-q4_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_0-q4_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_0-q5_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_0-q5_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_0-q8_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_1-bf16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_1-f16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_1-q4_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_1-q4_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_1-q5_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_1-q5_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q4_1-q8_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_0-bf16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_0-f16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_0-q4_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_0-q4_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_0-q5_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_0-q5_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_0-q8_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_1-bf16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_1-f16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_1-q4_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_1-q4_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_1-q5_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_1-q5_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q5_1-q8_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q8_0-bf16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q8_0-f16.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q8_0-q4_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q8_0-q4_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q8_0-q5_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q8_0-q5_1.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/fattn-vec-instance-q8_0-q8_0.cu +7 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/generate_cu_files.py +110 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_1.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_10.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_11.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_12.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_13.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_14.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_15.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_16.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_2.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_3.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_4.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_5.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_6.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_7.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_8.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmf-instance-ncols_9.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-iq1_s.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-iq2_s.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-iq2_xs.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-iq2_xxs.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-iq3_s.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-iq3_xxs.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-iq4_nl.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-iq4_xs.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-mxfp4.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-nvfp4.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q1_0.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q2_k.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q3_k.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q4_0.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q4_1.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q4_k.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q5_0.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q5_1.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q5_k.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q6_k.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/template-instances/mmq-instance-q8_0.cu +5 -0
- data/vendor/ggml/src/ggml-cuda/top-k.cu +95 -0
- data/vendor/ggml/src/ggml-cuda/top-k.cuh +3 -0
- data/vendor/ggml/src/ggml-cuda/topk-moe.cu +415 -0
- data/vendor/ggml/src/ggml-cuda/topk-moe.cuh +27 -0
- data/vendor/ggml/src/ggml-cuda/tri.cu +136 -0
- data/vendor/ggml/src/ggml-cuda/tri.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/tsembd.cu +47 -0
- data/vendor/ggml/src/ggml-cuda/tsembd.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/unary.cu +640 -0
- data/vendor/ggml/src/ggml-cuda/unary.cuh +114 -0
- data/vendor/ggml/src/ggml-cuda/upscale.cu +293 -0
- data/vendor/ggml/src/ggml-cuda/upscale.cuh +5 -0
- data/vendor/ggml/src/ggml-cuda/vecdotq.cuh +1317 -0
- data/vendor/ggml/src/ggml-cuda/vendors/cuda.h +28 -0
- data/vendor/ggml/src/ggml-cuda/vendors/hip.h +304 -0
- data/vendor/ggml/src/ggml-cuda/vendors/musa.h +150 -0
- data/vendor/ggml/src/ggml-cuda/wkv.cu +199 -0
- data/vendor/ggml/src/ggml-cuda/wkv.cuh +7 -0
- data/vendor/ggml/src/ggml-hexagon/CMakeLists.txt +118 -0
- data/vendor/ggml/src/ggml-hexagon/ggml-hexagon.cpp +3680 -0
- data/vendor/ggml/src/ggml-hexagon/htp/CMakeLists.txt +78 -0
- data/vendor/ggml/src/ggml-hexagon/htp/act-ops.c +782 -0
- data/vendor/ggml/src/ggml-hexagon/htp/argsort-ops.c +293 -0
- data/vendor/ggml/src/ggml-hexagon/htp/binary-ops.c +872 -0
- data/vendor/ggml/src/ggml-hexagon/htp/cmake-toolchain.cmake +157 -0
- data/vendor/ggml/src/ggml-hexagon/htp/cpy-ops.c +275 -0
- data/vendor/ggml/src/ggml-hexagon/htp/cumsum-ops.c +270 -0
- data/vendor/ggml/src/ggml-hexagon/htp/diag-ops.c +216 -0
- data/vendor/ggml/src/ggml-hexagon/htp/fill-ops.c +123 -0
- data/vendor/ggml/src/ggml-hexagon/htp/flash-attn-ops.c +727 -0
- data/vendor/ggml/src/ggml-hexagon/htp/gated-delta-net-ops.c +955 -0
- data/vendor/ggml/src/ggml-hexagon/htp/get-rows-ops.c +124 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hex-dma.c +63 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hex-dma.h +372 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hex-dump.h +86 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hex-fastdiv.h +37 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hex-utils.h +137 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hmx-flash-attn-ops.c +1841 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hmx-matmul-ops.c +1785 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hmx-ops.h +71 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hmx-profile.h +34 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hmx-queue.c +158 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hmx-queue.h +134 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hmx-utils.h +200 -0
- data/vendor/ggml/src/ggml-hexagon/htp/htp-ctx.h +111 -0
- data/vendor/ggml/src/ggml-hexagon/htp/htp-ops.h +181 -0
- data/vendor/ggml/src/ggml-hexagon/htp/htp_iface.idl +22 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-arith.h +443 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-base.h +308 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-copy.h +262 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-div.h +291 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-dump.h +129 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-exp.h +216 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-floor.h +100 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-inverse.h +210 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-reduce.h +296 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-repl.h +74 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-scale.h +133 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-sigmoid.h +142 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-sqrt.h +126 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-types.h +36 -0
- data/vendor/ggml/src/ggml-hexagon/htp/hvx-utils.h +19 -0
- data/vendor/ggml/src/ggml-hexagon/htp/main.c +880 -0
- data/vendor/ggml/src/ggml-hexagon/htp/matmul-ops.c +3173 -0
- data/vendor/ggml/src/ggml-hexagon/htp/repeat-ops.c +148 -0
- data/vendor/ggml/src/ggml-hexagon/htp/rope-ops.c +494 -0
- data/vendor/ggml/src/ggml-hexagon/htp/set-rows-ops.c +184 -0
- data/vendor/ggml/src/ggml-hexagon/htp/softmax-ops.c +407 -0
- data/vendor/ggml/src/ggml-hexagon/htp/solve-tri-ops.c +267 -0
- data/vendor/ggml/src/ggml-hexagon/htp/ssm-conv.c +340 -0
- data/vendor/ggml/src/ggml-hexagon/htp/sum-rows-ops.c +128 -0
- data/vendor/ggml/src/ggml-hexagon/htp/unary-ops.c +657 -0
- data/vendor/ggml/src/ggml-hexagon/htp/vtcm-utils.h +16 -0
- data/vendor/ggml/src/ggml-hexagon/htp/worker-pool.c +293 -0
- data/vendor/ggml/src/ggml-hexagon/htp/worker-pool.h +57 -0
- data/vendor/ggml/src/ggml-hexagon/htp-drv.cpp +418 -0
- data/vendor/ggml/src/ggml-hexagon/htp-drv.h +121 -0
- data/vendor/ggml/src/ggml-hexagon/libdl.h +79 -0
- data/vendor/ggml/src/ggml-hexagon/libggml-htp.inf +40 -0
- data/vendor/ggml/src/ggml-hexagon/op-desc.h +153 -0
- data/vendor/ggml/src/ggml-hip/CMakeLists.txt +157 -0
- data/vendor/ggml/src/ggml-impl.h +783 -0
- data/vendor/ggml/src/ggml-metal/CMakeLists.txt +124 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal-common.cpp +457 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal-common.h +52 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal-context.h +41 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal-context.m +739 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal-device.cpp +2053 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal-device.h +296 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal-device.m +1829 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal-impl.h +1175 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal-ops.cpp +4606 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal-ops.h +97 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal.cpp +950 -0
- data/vendor/ggml/src/ggml-metal/ggml-metal.metal +10679 -0
- data/vendor/ggml/src/ggml-musa/CMakeLists.txt +124 -0
- data/vendor/ggml/src/ggml-musa/mudnn.cu +112 -0
- data/vendor/ggml/src/ggml-musa/mudnn.cuh +12 -0
- data/vendor/ggml/src/ggml-opencl/CMakeLists.txt +189 -0
- data/vendor/ggml/src/ggml-opencl/ggml-opencl.cpp +16374 -0
- data/vendor/ggml/src/ggml-opencl/kernels/add.cl +190 -0
- data/vendor/ggml/src/ggml-opencl/kernels/add_id.cl +42 -0
- data/vendor/ggml/src/ggml-opencl/kernels/argsort.cl +86 -0
- data/vendor/ggml/src/ggml-opencl/kernels/clamp.cl +20 -0
- data/vendor/ggml/src/ggml-opencl/kernels/concat.cl +51 -0
- data/vendor/ggml/src/ggml-opencl/kernels/conv2d.cl +185 -0
- data/vendor/ggml/src/ggml-opencl/kernels/conv2d_f16_f32.cl +176 -0
- data/vendor/ggml/src/ggml-opencl/kernels/cpy.cl +229 -0
- data/vendor/ggml/src/ggml-opencl/kernels/cumsum.cl +139 -0
- data/vendor/ggml/src/ggml-opencl/kernels/cvt.cl +1471 -0
- data/vendor/ggml/src/ggml-opencl/kernels/diag.cl +27 -0
- data/vendor/ggml/src/ggml-opencl/kernels/diag_mask_inf.cl +58 -0
- data/vendor/ggml/src/ggml-opencl/kernels/div.cl +138 -0
- data/vendor/ggml/src/ggml-opencl/kernels/embed_kernel.py +26 -0
- data/vendor/ggml/src/ggml-opencl/kernels/exp.cl +125 -0
- data/vendor/ggml/src/ggml-opencl/kernels/expm1.cl +113 -0
- data/vendor/ggml/src/ggml-opencl/kernels/fill.cl +17 -0
- data/vendor/ggml/src/ggml-opencl/kernels/flash_attn_f16.cl +370 -0
- data/vendor/ggml/src/ggml-opencl/kernels/flash_attn_f32.cl +371 -0
- data/vendor/ggml/src/ggml-opencl/kernels/flash_attn_f32_f16.cl +373 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gelu.cl +89 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_moe_mxfp4_f32.cl +162 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_moe_mxfp4_f32_ns.cl +302 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_moe_q4_0_f32_ns.cl +252 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_moe_q4_1_f32_ns.cl +254 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_moe_q5_0_f32_ns.cl +256 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_moe_q5_1_f32_ns.cl +258 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_noshuffle_iq4_nl_f32.cl +150 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_noshuffle_q4_0_f32.cl +139 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_noshuffle_q4_1_f32.cl +132 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_noshuffle_q4_k_f32.cl +172 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_noshuffle_q5_k_f32.cl +176 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_noshuffle_q6_k_f32.cl +140 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_noshuffle_q8_0_f32.cl +129 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemm_xmem_f16_f32_os8.cl +233 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_moe_mxfp4_f32.cl +156 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_moe_mxfp4_f32_ns.cl +161 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_moe_q4_0_f32_ns.cl +116 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_moe_q4_1_f32_ns.cl +119 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_moe_q5_0_f32_ns.cl +119 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_moe_q5_1_f32_ns.cl +121 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_noshuffle_iq4_nl_f32.cl +302 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_noshuffle_q4_0_f32.cl +274 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_noshuffle_q4_0_f32_spec.cl +268 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_noshuffle_q4_1_f32.cl +283 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_noshuffle_q4_k_f32.cl +318 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_noshuffle_q5_k_f32.cl +326 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_noshuffle_q6_k_f32.cl +293 -0
- data/vendor/ggml/src/ggml-opencl/kernels/gemv_noshuffle_q8_0_f32.cl +195 -0
- data/vendor/ggml/src/ggml-opencl/kernels/get_rows.cl +187 -0
- data/vendor/ggml/src/ggml-opencl/kernels/glu.cl +378 -0
- data/vendor/ggml/src/ggml-opencl/kernels/group_norm.cl +121 -0
- data/vendor/ggml/src/ggml-opencl/kernels/im2col_f16.cl +57 -0
- data/vendor/ggml/src/ggml-opencl/kernels/im2col_f32.cl +57 -0
- data/vendor/ggml/src/ggml-opencl/kernels/l2_norm.cl +71 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mean.cl +140 -0
- data/vendor/ggml/src/ggml-opencl/kernels/moe_reorder_b.cl +30 -0
- data/vendor/ggml/src/ggml-opencl/kernels/moe_sort_by_expert.cl +82 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul.cl +152 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mat_f16_f32.cl +130 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mm_f16_f32_kq_kqv.cl +273 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mm_f16_f32_l4_lm.cl +146 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mm_f32_f32_l4_lm.cl +147 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mm_iq4_nl_f32_l4_lm.cl +171 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mm_q4_0_f32_l4_lm.cl +163 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mm_q4_1_f32_l4_lm.cl +165 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mm_q4_k_f32_l4_lm.cl +179 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mm_q5_k_f32_l4_lm.cl +192 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mm_q6_k_f32_l4_lm.cl +158 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mm_q8_0_f32_l4_lm.cl +154 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_f16_f16.cl +118 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_f16_f32.cl +118 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_f16_f32_1row.cl +94 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_f16_f32_l4.cl +84 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_f32_f32.cl +118 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_id_mxfp4_f32.cl +189 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_id_mxfp4_f32_flat.cl +176 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_id_q4_0_f32_8x_flat.cl +283 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_id_q8_0_f32.cl +140 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_id_q8_0_f32_flat.cl +222 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_iq4_nl_f32.cl +164 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_iq4_nl_f32_flat.cl +202 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_mxfp4_f32.cl +144 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_mxfp4_f32_flat.cl +167 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q4_0_f32.cl +192 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q4_0_f32_1d_16x_flat.cl +307 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q4_0_f32_1d_8x_flat.cl +265 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q4_0_f32_8x_flat.cl +272 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q4_0_f32_v.cl +254 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q4_1_f32.cl +219 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q4_1_f32_flat.cl +229 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q4_k_f32.cl +180 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q4_k_f32_flat.cl +196 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q5_k_f32.cl +187 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q5_k_f32_flat.cl +203 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q6_k_f32.cl +194 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q6_k_f32_flat.cl +194 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q8_0_f32.cl +125 -0
- data/vendor/ggml/src/ggml-opencl/kernels/mul_mv_q8_0_f32_flat.cl +202 -0
- data/vendor/ggml/src/ggml-opencl/kernels/neg.cl +125 -0
- data/vendor/ggml/src/ggml-opencl/kernels/norm.cl +161 -0
- data/vendor/ggml/src/ggml-opencl/kernels/pad.cl +39 -0
- data/vendor/ggml/src/ggml-opencl/kernels/relu.cl +16 -0
- data/vendor/ggml/src/ggml-opencl/kernels/repeat.cl +38 -0
- data/vendor/ggml/src/ggml-opencl/kernels/rms_norm.cl +190 -0
- data/vendor/ggml/src/ggml-opencl/kernels/rope.cl +747 -0
- data/vendor/ggml/src/ggml-opencl/kernels/scale.cl +27 -0
- data/vendor/ggml/src/ggml-opencl/kernels/set_rows.cl +208 -0
- data/vendor/ggml/src/ggml-opencl/kernels/sigmoid.cl +29 -0
- data/vendor/ggml/src/ggml-opencl/kernels/silu.cl +30 -0
- data/vendor/ggml/src/ggml-opencl/kernels/softmax_4_f16.cl +108 -0
- data/vendor/ggml/src/ggml-opencl/kernels/softmax_4_f32.cl +108 -0
- data/vendor/ggml/src/ggml-opencl/kernels/softmax_f16.cl +107 -0
- data/vendor/ggml/src/ggml-opencl/kernels/softmax_f32.cl +107 -0
- data/vendor/ggml/src/ggml-opencl/kernels/softplus.cl +116 -0
- data/vendor/ggml/src/ggml-opencl/kernels/solve_tri.cl +51 -0
- data/vendor/ggml/src/ggml-opencl/kernels/sqr.cl +53 -0
- data/vendor/ggml/src/ggml-opencl/kernels/sqrt.cl +53 -0
- data/vendor/ggml/src/ggml-opencl/kernels/ssm_conv.cl +77 -0
- data/vendor/ggml/src/ggml-opencl/kernels/sub.cl +138 -0
- data/vendor/ggml/src/ggml-opencl/kernels/sum_rows.cl +140 -0
- data/vendor/ggml/src/ggml-opencl/kernels/tanh.cl +109 -0
- data/vendor/ggml/src/ggml-opencl/kernels/transpose.cl +143 -0
- data/vendor/ggml/src/ggml-opencl/kernels/tri.cl +32 -0
- data/vendor/ggml/src/ggml-opencl/kernels/tsembd.cl +48 -0
- data/vendor/ggml/src/ggml-opencl/kernels/upscale.cl +120 -0
- data/vendor/ggml/src/ggml-openvino/CMakeLists.txt +22 -0
- data/vendor/ggml/src/ggml-openvino/ggml-decoder.cpp +985 -0
- data/vendor/ggml/src/ggml-openvino/ggml-decoder.h +294 -0
- data/vendor/ggml/src/ggml-openvino/ggml-openvino-extra.cpp +380 -0
- data/vendor/ggml/src/ggml-openvino/ggml-openvino-extra.h +182 -0
- data/vendor/ggml/src/ggml-openvino/ggml-openvino.cpp +1132 -0
- data/vendor/ggml/src/ggml-openvino/ggml-quants.cpp +956 -0
- data/vendor/ggml/src/ggml-openvino/ggml-quants.h +153 -0
- data/vendor/ggml/src/ggml-openvino/openvino/decoder.h +74 -0
- data/vendor/ggml/src/ggml-openvino/openvino/frontend.cpp +27 -0
- data/vendor/ggml/src/ggml-openvino/openvino/frontend.h +23 -0
- data/vendor/ggml/src/ggml-openvino/openvino/input_model.cpp +17 -0
- data/vendor/ggml/src/ggml-openvino/openvino/input_model.h +29 -0
- data/vendor/ggml/src/ggml-openvino/openvino/node_context.h +112 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/cont.cpp +48 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/cpy.cpp +21 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/flash_attn_ext.cpp +90 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/get_rows.cpp +69 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/glu_geglu.cpp +61 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/glu_swiglu.cpp +62 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/mulmat.cpp +90 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/permute.cpp +102 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/reshape.cpp +83 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/rms_norm.cpp +46 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/rope.cpp +149 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/scale.cpp +41 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/set_rows.cpp +76 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/softmax.cpp +89 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/transpose.cpp +23 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/unary_gelu.cpp +25 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/unary_silu.cpp +27 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op/view.cpp +53 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op_table.cpp +47 -0
- data/vendor/ggml/src/ggml-openvino/openvino/op_table.h +40 -0
- data/vendor/ggml/src/ggml-openvino/openvino/pass/fuse_to_sdpa.cpp +60 -0
- data/vendor/ggml/src/ggml-openvino/openvino/pass/fuse_to_sdpa.h +17 -0
- data/vendor/ggml/src/ggml-openvino/openvino/pass/mark_decompression_convert_constant_folding.h +29 -0
- data/vendor/ggml/src/ggml-openvino/openvino/pass/squeeze_matmul.cpp +58 -0
- data/vendor/ggml/src/ggml-openvino/openvino/pass/squeeze_matmul.h +17 -0
- data/vendor/ggml/src/ggml-openvino/openvino/rt_info/weightless_caching_attributes.hpp +41 -0
- data/vendor/ggml/src/ggml-openvino/openvino/translate_session.cpp +317 -0
- data/vendor/ggml/src/ggml-openvino/openvino/translate_session.h +28 -0
- data/vendor/ggml/src/ggml-openvino/openvino/utils.cpp +257 -0
- data/vendor/ggml/src/ggml-openvino/openvino/utils.h +86 -0
- data/vendor/ggml/src/ggml-openvino/utils.cpp +880 -0
- data/vendor/ggml/src/ggml-openvino/utils.h +143 -0
- data/vendor/ggml/src/ggml-opt.cpp +1094 -0
- data/vendor/ggml/src/ggml-quants.c +5491 -0
- data/vendor/ggml/src/ggml-quants.h +112 -0
- data/vendor/ggml/src/ggml-rpc/CMakeLists.txt +33 -0
- data/vendor/ggml/src/ggml-rpc/ggml-rpc.cpp +1974 -0
- data/vendor/ggml/src/ggml-rpc/transport.cpp +683 -0
- data/vendor/ggml/src/ggml-rpc/transport.h +34 -0
- data/vendor/ggml/src/ggml-sycl/CMakeLists.txt +207 -0
- data/vendor/ggml/src/ggml-sycl/add-id.cpp +81 -0
- data/vendor/ggml/src/ggml-sycl/add-id.hpp +8 -0
- data/vendor/ggml/src/ggml-sycl/backend.hpp +48 -0
- data/vendor/ggml/src/ggml-sycl/binbcast.cpp +346 -0
- data/vendor/ggml/src/ggml-sycl/binbcast.hpp +39 -0
- data/vendor/ggml/src/ggml-sycl/common.cpp +155 -0
- data/vendor/ggml/src/ggml-sycl/common.hpp +1002 -0
- data/vendor/ggml/src/ggml-sycl/concat.cpp +202 -0
- data/vendor/ggml/src/ggml-sycl/concat.hpp +20 -0
- data/vendor/ggml/src/ggml-sycl/conv.cpp +101 -0
- data/vendor/ggml/src/ggml-sycl/conv.hpp +20 -0
- data/vendor/ggml/src/ggml-sycl/convert.cpp +825 -0
- data/vendor/ggml/src/ggml-sycl/convert.hpp +64 -0
- data/vendor/ggml/src/ggml-sycl/count-equal.cpp +79 -0
- data/vendor/ggml/src/ggml-sycl/count-equal.hpp +9 -0
- data/vendor/ggml/src/ggml-sycl/cpy.cpp +602 -0
- data/vendor/ggml/src/ggml-sycl/cpy.hpp +223 -0
- data/vendor/ggml/src/ggml-sycl/cumsum.cpp +148 -0
- data/vendor/ggml/src/ggml-sycl/cumsum.hpp +5 -0
- data/vendor/ggml/src/ggml-sycl/dequantize.hpp +975 -0
- data/vendor/ggml/src/ggml-sycl/diag.cpp +67 -0
- data/vendor/ggml/src/ggml-sycl/diag.hpp +5 -0
- data/vendor/ggml/src/ggml-sycl/dmmv.cpp +1579 -0
- data/vendor/ggml/src/ggml-sycl/dmmv.hpp +27 -0
- data/vendor/ggml/src/ggml-sycl/dpct/helper.hpp +3774 -0
- data/vendor/ggml/src/ggml-sycl/element_wise.cpp +1124 -0
- data/vendor/ggml/src/ggml-sycl/element_wise.hpp +94 -0
- data/vendor/ggml/src/ggml-sycl/fattn-buffers.cpp +56 -0
- data/vendor/ggml/src/ggml-sycl/fattn-buffers.hpp +63 -0
- data/vendor/ggml/src/ggml-sycl/fattn-common.hpp +1181 -0
- data/vendor/ggml/src/ggml-sycl/fattn-tile.cpp +59 -0
- data/vendor/ggml/src/ggml-sycl/fattn-tile.hpp +1246 -0
- data/vendor/ggml/src/ggml-sycl/fattn-vec.hpp +674 -0
- data/vendor/ggml/src/ggml-sycl/fattn.cpp +227 -0
- data/vendor/ggml/src/ggml-sycl/fattn.hpp +22 -0
- data/vendor/ggml/src/ggml-sycl/fill.cpp +55 -0
- data/vendor/ggml/src/ggml-sycl/fill.hpp +5 -0
- data/vendor/ggml/src/ggml-sycl/gated_delta_net.cpp +307 -0
- data/vendor/ggml/src/ggml-sycl/gated_delta_net.hpp +9 -0
- data/vendor/ggml/src/ggml-sycl/gemm.hpp +93 -0
- data/vendor/ggml/src/ggml-sycl/getrows.cpp +219 -0
- data/vendor/ggml/src/ggml-sycl/getrows.hpp +20 -0
- data/vendor/ggml/src/ggml-sycl/ggml-sycl.cpp +5520 -0
- data/vendor/ggml/src/ggml-sycl/gla.cpp +106 -0
- data/vendor/ggml/src/ggml-sycl/gla.hpp +8 -0
- data/vendor/ggml/src/ggml-sycl/im2col.cpp +400 -0
- data/vendor/ggml/src/ggml-sycl/im2col.hpp +23 -0
- data/vendor/ggml/src/ggml-sycl/mmq.cpp +3030 -0
- data/vendor/ggml/src/ggml-sycl/mmq.hpp +33 -0
- data/vendor/ggml/src/ggml-sycl/mmvq.cpp +1380 -0
- data/vendor/ggml/src/ggml-sycl/mmvq.hpp +43 -0
- data/vendor/ggml/src/ggml-sycl/norm.cpp +656 -0
- data/vendor/ggml/src/ggml-sycl/norm.hpp +28 -0
- data/vendor/ggml/src/ggml-sycl/outprod.cpp +47 -0
- data/vendor/ggml/src/ggml-sycl/outprod.hpp +10 -0
- data/vendor/ggml/src/ggml-sycl/pad.cpp +97 -0
- data/vendor/ggml/src/ggml-sycl/pad.hpp +24 -0
- data/vendor/ggml/src/ggml-sycl/pad_reflect_1d.cpp +100 -0
- data/vendor/ggml/src/ggml-sycl/pad_reflect_1d.hpp +10 -0
- data/vendor/ggml/src/ggml-sycl/presets.hpp +79 -0
- data/vendor/ggml/src/ggml-sycl/quantize.hpp +133 -0
- data/vendor/ggml/src/ggml-sycl/quants.hpp +156 -0
- data/vendor/ggml/src/ggml-sycl/repeat_back.cpp +76 -0
- data/vendor/ggml/src/ggml-sycl/repeat_back.hpp +8 -0
- data/vendor/ggml/src/ggml-sycl/roll.cpp +122 -0
- data/vendor/ggml/src/ggml-sycl/roll.hpp +20 -0
- data/vendor/ggml/src/ggml-sycl/rope.cpp +641 -0
- data/vendor/ggml/src/ggml-sycl/rope.hpp +26 -0
- data/vendor/ggml/src/ggml-sycl/set.cpp +73 -0
- data/vendor/ggml/src/ggml-sycl/set.hpp +5 -0
- data/vendor/ggml/src/ggml-sycl/set_rows.cpp +240 -0
- data/vendor/ggml/src/ggml-sycl/set_rows.hpp +8 -0
- data/vendor/ggml/src/ggml-sycl/softmax.cpp +426 -0
- data/vendor/ggml/src/ggml-sycl/softmax.hpp +24 -0
- data/vendor/ggml/src/ggml-sycl/solve_tri.cpp +172 -0
- data/vendor/ggml/src/ggml-sycl/solve_tri.hpp +8 -0
- data/vendor/ggml/src/ggml-sycl/ssm_conv.cpp +132 -0
- data/vendor/ggml/src/ggml-sycl/ssm_conv.hpp +5 -0
- data/vendor/ggml/src/ggml-sycl/ssm_scan.cpp +156 -0
- data/vendor/ggml/src/ggml-sycl/ssm_scan.hpp +5 -0
- data/vendor/ggml/src/ggml-sycl/sycl_hw.cpp +67 -0
- data/vendor/ggml/src/ggml-sycl/sycl_hw.hpp +38 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-tile-instance-dkq112-dv112.cpp +5 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-tile-instance-dkq128-dv128.cpp +5 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-tile-instance-dkq256-dv256.cpp +5 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-tile-instance-dkq40-dv40.cpp +5 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-tile-instance-dkq512-dv512.cpp +6 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-tile-instance-dkq576-dv512.cpp +5 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-tile-instance-dkq64-dv64.cpp +5 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-tile-instance-dkq72-dv72.cpp +5 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-tile-instance-dkq80-dv80.cpp +5 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-tile-instance-dkq96-dv96.cpp +5 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-f16-f16.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-f16-q4_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-f16-q4_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-f16-q5_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-f16-q5_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-f16-q8_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_0-f16.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_0-q4_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_0-q4_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_0-q5_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_0-q5_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_0-q8_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_1-f16.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_1-q4_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_1-q4_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_1-q5_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_1-q5_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q4_1-q8_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_0-f16.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_0-q4_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_0-q4_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_0-q5_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_0-q5_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_0-q8_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_1-f16.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_1-q4_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_1-q4_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_1-q5_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_1-q5_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q5_1-q8_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q8_0-f16.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q8_0-q4_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q8_0-q4_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q8_0-q5_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q8_0-q5_1.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/template-instances/fattn-vec-instance-q8_0-q8_0.cpp +8 -0
- data/vendor/ggml/src/ggml-sycl/tsembd.cpp +73 -0
- data/vendor/ggml/src/ggml-sycl/tsembd.hpp +20 -0
- data/vendor/ggml/src/ggml-sycl/type.hpp +112 -0
- data/vendor/ggml/src/ggml-sycl/upscale.cpp +410 -0
- data/vendor/ggml/src/ggml-sycl/upscale.hpp +9 -0
- data/vendor/ggml/src/ggml-sycl/vecdotq.hpp +1508 -0
- data/vendor/ggml/src/ggml-sycl/wkv.cpp +293 -0
- data/vendor/ggml/src/ggml-sycl/wkv.hpp +10 -0
- data/vendor/ggml/src/ggml-threading.cpp +12 -0
- data/vendor/ggml/src/ggml-threading.h +14 -0
- data/vendor/ggml/src/ggml-virtgpu/CMakeLists.txt +70 -0
- data/vendor/ggml/src/ggml-virtgpu/apir_cs_ggml-rpc-front.cpp +87 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/CMakeLists.txt +21 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/apir_cs_ggml-rpc-back.cpp +115 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/backend-convert.h +13 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/backend-dispatched-backend.cpp +102 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/backend-dispatched-buffer-type.cpp +105 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/backend-dispatched-buffer.cpp +179 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/backend-dispatched-device.cpp +148 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/backend-dispatched.cpp +51 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/backend-dispatched.gen.h +73 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/backend-dispatched.h +27 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/backend-virgl-apir.h +32 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/backend.cpp +144 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/shared/api_remoting.h +95 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/shared/apir_backend.gen.h +94 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/shared/apir_backend.h +50 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/shared/apir_cs.h +378 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/shared/apir_cs_ggml.h +232 -0
- data/vendor/ggml/src/ggml-virtgpu/backend/shared/apir_cs_rpc.h +58 -0
- data/vendor/ggml/src/ggml-virtgpu/ggml-backend-buffer-type.cpp +81 -0
- data/vendor/ggml/src/ggml-virtgpu/ggml-backend-buffer.cpp +123 -0
- data/vendor/ggml/src/ggml-virtgpu/ggml-backend-device.cpp +160 -0
- data/vendor/ggml/src/ggml-virtgpu/ggml-backend-reg.cpp +213 -0
- data/vendor/ggml/src/ggml-virtgpu/ggml-backend.cpp +71 -0
- data/vendor/ggml/src/ggml-virtgpu/ggml-remoting.h +71 -0
- data/vendor/ggml/src/ggml-virtgpu/ggmlremoting_functions.yaml +166 -0
- data/vendor/ggml/src/ggml-virtgpu/include/apir_hw.h +9 -0
- data/vendor/ggml/src/ggml-virtgpu/regenerate_remoting.py +333 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-apir.h +15 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-forward-backend.cpp +58 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-forward-buffer-type.cpp +110 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-forward-buffer.cpp +173 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-forward-device.cpp +192 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-forward-impl.h +36 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-forward.gen.h +53 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-shm.cpp +99 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-shm.h +23 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-utils.cpp +179 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu-utils.h +86 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu.cpp +545 -0
- data/vendor/ggml/src/ggml-virtgpu/virtgpu.h +115 -0
- data/vendor/ggml/src/ggml-vulkan/CMakeLists.txt +220 -0
- data/vendor/ggml/src/ggml-vulkan/cmake/host-toolchain.cmake.in +15 -0
- data/vendor/ggml/src/ggml-vulkan/ggml-vulkan.cpp +17208 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/CMakeLists.txt +31 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/abs.comp +21 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/acc.comp +37 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/add.comp +69 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/add1.comp +28 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/add_id.comp +42 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/arange.comp +20 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/argmax.comp +60 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/argsort.comp +86 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/argsort_large.comp +114 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/ceil.comp +22 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/clamp.comp +17 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/concat.comp +41 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/contig_copy.comp +49 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/conv2d_dw.comp +105 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/conv2d_mm.comp +347 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/conv_transpose_1d.comp +98 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/copy.comp +23 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/copy_from_quant.comp +51 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/copy_to_quant.comp +320 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/copy_transpose.comp +67 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/cos.comp +17 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/count_equal.comp +31 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/count_experts.comp +51 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/cumsum.comp +83 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/cumsum_multipass1.comp +60 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/cumsum_multipass2.comp +66 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_f32.comp +20 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_funcs.glsl +653 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_funcs_cm2.glsl +768 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_head.glsl +13 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq1_m.comp +42 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq1_s.comp +35 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq2_s.comp +44 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq2_xs.comp +43 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq2_xxs.comp +49 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq3_s.comp +40 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq3_xxs.comp +51 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq4_nl.comp +32 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq4_xs.comp +34 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_mxfp4.comp +32 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_nvfp4.comp +32 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q1_0.comp +29 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q2_k.comp +34 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q3_k.comp +42 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q4_0.comp +30 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q4_1.comp +32 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q4_k.comp +68 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q5_0.comp +34 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q5_1.comp +35 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q5_k.comp +70 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q6_k.comp +33 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q8_0.comp +31 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/diag.comp +28 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/diag_mask_inf.comp +34 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/div.comp +27 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/elu.comp +27 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/exp.comp +20 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/feature-tests/bfloat16.comp +7 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/feature-tests/coopmat.comp +7 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/feature-tests/coopmat2.comp +7 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/feature-tests/integer_dot.comp +7 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/fill.comp +19 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn.comp +756 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_base.glsl +255 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm1.comp +626 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp +427 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_dequant.glsl +123 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_mask_opt.comp +162 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_mmq_funcs.glsl +203 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_split_k_reduce.comp +121 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/floor.comp +22 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/gated_delta_net.comp +190 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/geglu.comp +13 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/geglu_erf.comp +27 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/geglu_quick.comp +11 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/gelu.comp +25 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/gelu_erf.comp +39 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/gelu_quick.comp +23 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/generic_binary_head.glsl +65 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/generic_head.glsl +11 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/generic_unary_head.glsl +83 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/get_rows.comp +42 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/get_rows_quant.comp +51 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/glu_head.glsl +28 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/glu_main.glsl +39 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/group_norm.comp +66 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/hardsigmoid.comp +22 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/hardswish.comp +22 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/im2col.comp +93 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/im2col_3d.comp +124 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/l2_norm.comp +44 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/leaky_relu.comp +22 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/log.comp +17 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul.comp +27 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_split_k_reduce.comp +48 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec.comp +169 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_base.glsl +230 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iface.glsl +35 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq1_m.comp +132 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq1_s.comp +95 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq2_s.comp +90 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq2_xs.comp +105 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq2_xxs.comp +87 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq3_s.comp +90 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq3_xxs.comp +88 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_nc.comp +124 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_p021.comp +156 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_q2_k.comp +128 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_q3_k.comp +132 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_q4_k.comp +134 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_q5_k.comp +165 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_q6_k.comp +130 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vecq.comp +143 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vecq_funcs.glsl +503 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mm.comp +464 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mm_cm2.comp +624 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mm_funcs.glsl +600 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mm_id_funcs.glsl +74 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mmq.comp +311 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mmq_funcs.glsl +454 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/mul_mmq_shmem_types.glsl +93 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/multi_add.comp +194 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/neg.comp +20 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/norm.comp +44 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/opt_step_adamw.comp +42 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/opt_step_sgd.comp +22 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/pad.comp +64 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/pool2d.comp +74 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/quantize_q8_1.comp +127 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/reglu.comp +9 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/relu.comp +21 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/repeat.comp +26 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/repeat_back.comp +37 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/rms_norm.comp +150 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/rms_norm_back.comp +55 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/rms_norm_partials.comp +65 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/roll.comp +46 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/rope_funcs.glsl +207 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/rope_head.glsl +19 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/rope_multi.comp +17 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/rope_neox.comp +17 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/rope_norm.comp +17 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/rope_params.glsl +31 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/rope_vision.comp +17 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/round.comp +29 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/scale.comp +24 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/sgn.comp +21 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/sigmoid.comp +20 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/silu.comp +22 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/silu_back.comp +26 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/sin.comp +17 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/soft_max.comp +195 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/soft_max_back.comp +54 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/soft_max_large1.comp +62 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/soft_max_large2.comp +79 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/soft_max_large3.comp +65 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/soft_max_large_common.glsl +53 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/softplus.comp +23 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/solve_tri.comp +81 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/sqrt.comp +17 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/square.comp +17 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/ssm_conv.comp +50 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/ssm_scan.comp +124 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/step.comp +22 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/sub.comp +29 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/sum_rows.comp +47 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/sum_rows.glsl +25 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/swiglu.comp +9 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/swiglu_oai.comp +14 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/tanh.comp +20 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/timestep_embedding.comp +42 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/topk_argsort.comp +118 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/topk_moe.comp +213 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/topk_nary_search.comp +246 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/tri.comp +42 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/trunc.comp +22 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/types.glsl +1846 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/upscale.comp +178 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/utils.glsl +25 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp +1183 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/wkv6.comp +87 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/wkv7.comp +91 -0
- data/vendor/ggml/src/ggml-vulkan/vulkan-shaders/xielu.comp +35 -0
- data/vendor/ggml/src/ggml-webgpu/CMakeLists.txt +80 -0
- data/vendor/ggml/src/ggml-webgpu/ggml-webgpu-shader-lib.hpp +3231 -0
- data/vendor/ggml/src/ggml-webgpu/ggml-webgpu.cpp +4461 -0
- data/vendor/ggml/src/ggml-webgpu/pre_wgsl.hpp +778 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/add_id.wgsl +64 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/argmax.wgsl +72 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/argsort.wgsl +106 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/argsort_merge.wgsl +134 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/binary.wgsl +139 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/common_decls.tmpl +905 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/concat.wgsl +75 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/conv2d.wgsl +165 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/cpy.wgsl +81 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/cumsum.wgsl +66 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/embed_wgsl.py +89 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/flash_attn.wgsl +706 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/flash_attn_tile.wgsl +351 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/flash_attn_vec_blk.wgsl +101 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/flash_attn_vec_reduce.wgsl +84 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/flash_attn_vec_split.wgsl +720 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/gated_delta_net.wgsl +132 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/get_rows.wgsl +773 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/glu.wgsl +155 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/im2col.wgsl +101 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/memset.wgsl +40 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/mul_mat.wgsl +747 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/mul_mat_decls.tmpl +1210 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/mul_mat_id.wgsl +195 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/mul_mat_id_gather.wgsl +55 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/mul_mat_id_vec.wgsl +154 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/mul_mat_reg_tile.wgsl +149 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/mul_mat_subgroup_matrix.wgsl +200 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/mul_mat_vec.wgsl +133 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/mul_mat_vec_acc.tmpl +1433 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/pad.wgsl +86 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/repeat.wgsl +67 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/rms_norm_mul.wgsl +152 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/rope.wgsl +224 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/row_norm.wgsl +153 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/scale.wgsl +63 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/set.wgsl +109 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/set_rows.wgsl +109 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/soft_max.wgsl +245 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/solve_tri.wgsl +121 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/ssm_conv.wgsl +65 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/ssm_scan.wgsl +193 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/sum_rows.wgsl +55 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/unary.wgsl +210 -0
- data/vendor/ggml/src/ggml-webgpu/wgsl-shaders/upscale.wgsl +240 -0
- data/vendor/ggml/src/ggml-zdnn/CMakeLists.txt +36 -0
- data/vendor/ggml/src/ggml-zdnn/common.hpp +59 -0
- data/vendor/ggml/src/ggml-zdnn/ggml-zdnn.cpp +637 -0
- data/vendor/ggml/src/ggml-zdnn/mmf.cpp +80 -0
- data/vendor/ggml/src/ggml-zdnn/mmf.hpp +12 -0
- data/vendor/ggml/src/ggml-zdnn/utils.cpp +79 -0
- data/vendor/ggml/src/ggml-zdnn/utils.hpp +19 -0
- data/vendor/ggml/src/ggml-zendnn/CMakeLists.txt +91 -0
- data/vendor/ggml/src/ggml-zendnn/ggml-zendnn.cpp +669 -0
- data/vendor/ggml/src/ggml.c +7777 -0
- data/vendor/ggml/src/ggml.cpp +26 -0
- data/vendor/ggml/src/gguf.cpp +1556 -0
- data/vendor/ggml/tests/CMakeLists.txt +356 -0
- data/vendor/ggml/tests/test-arange.cpp +100 -0
- data/vendor/ggml/tests/test-backend-ops.cpp +9786 -0
- data/vendor/ggml/tests/test-cont.c +170 -0
- data/vendor/ggml/tests/test-conv-transpose-1d.cpp +691 -0
- data/vendor/ggml/tests/test-conv-transpose.c +248 -0
- data/vendor/ggml/tests/test-conv1d-dw-c1.cpp +243 -0
- data/vendor/ggml/tests/test-conv1d-dw-c2.cpp +243 -0
- data/vendor/ggml/tests/test-conv1d.cpp +289 -0
- data/vendor/ggml/tests/test-conv2d-dw.cpp +153 -0
- data/vendor/ggml/tests/test-conv2d.cpp +391 -0
- data/vendor/ggml/tests/test-customop.c +300 -0
- data/vendor/ggml/tests/test-dup.c +111 -0
- data/vendor/ggml/tests/test-interpolate.cpp +166 -0
- data/vendor/ggml/tests/test-opt.cpp +1003 -0
- data/vendor/ggml/tests/test-pad-reflect-1d.cpp +213 -0
- data/vendor/ggml/tests/test-pool.c +274 -0
- data/vendor/ggml/tests/test-quantize-fns.cpp +196 -0
- data/vendor/ggml/tests/test-quantize-perf.cpp +356 -0
- data/vendor/ggml/tests/test-rel-pos.c +87 -0
- data/vendor/ggml/tests/test-roll.cpp +128 -0
- data/vendor/ggml/tests/test-timestep_embedding.cpp +180 -0
- data/vendor-patches/0001-cuda-buffer_from_ptr.patch +253 -0
- data/vendor-patches/0002-cuda-buffer_from_ptr-reuse-iface.patch +117 -0
- data/vendor-patches/0003-cuda-buffer_from_ptr-copy-mode.patch +128 -0
- data/vendor-patches/0004-cuda-cpy-strided.patch +61 -0
- data/vendor-patches/0005-concat-backward.patch +36 -0
- data/vendor-patches/0006-getrows-back-large-vocab.patch +69 -0
- data/vendor-patches/0007-gpt2-backward-kernels.patch +438 -0
- data/vendor-patches/0008-mul-mat-backward-mixed-precision.patch +50 -0
- data/vendor-patches/0009-sched-unsupported-node-diagnostic.patch +26 -0
- metadata +2161 -0
|
@@ -0,0 +1,2406 @@
|
|
|
1
|
+
# auto-generated file
|
|
2
|
+
import ggml.ffi as ffi
|
|
3
|
+
import numpy as np
|
|
4
|
+
class lib:
|
|
5
|
+
@property
|
|
6
|
+
def GGML_BACKEND_CPU(self) -> int: ...
|
|
7
|
+
@property
|
|
8
|
+
def GGML_BACKEND_GPU(self) -> int: ...
|
|
9
|
+
@property
|
|
10
|
+
def GGML_BACKEND_GPU_SPLIT(self) -> int: ...
|
|
11
|
+
@property
|
|
12
|
+
def GGML_FTYPE_ALL_F32(self) -> int: ...
|
|
13
|
+
@property
|
|
14
|
+
def GGML_FTYPE_MOSTLY_F16(self) -> int: ...
|
|
15
|
+
@property
|
|
16
|
+
def GGML_FTYPE_MOSTLY_Q2_K(self) -> int: ...
|
|
17
|
+
@property
|
|
18
|
+
def GGML_FTYPE_MOSTLY_Q3_K(self) -> int: ...
|
|
19
|
+
@property
|
|
20
|
+
def GGML_FTYPE_MOSTLY_Q4_0(self) -> int: ...
|
|
21
|
+
@property
|
|
22
|
+
def GGML_FTYPE_MOSTLY_Q4_1(self) -> int: ...
|
|
23
|
+
@property
|
|
24
|
+
def GGML_FTYPE_MOSTLY_Q4_1_SOME_F16(self) -> int: ...
|
|
25
|
+
@property
|
|
26
|
+
def GGML_FTYPE_MOSTLY_Q4_K(self) -> int: ...
|
|
27
|
+
@property
|
|
28
|
+
def GGML_FTYPE_MOSTLY_Q5_0(self) -> int: ...
|
|
29
|
+
@property
|
|
30
|
+
def GGML_FTYPE_MOSTLY_Q5_1(self) -> int: ...
|
|
31
|
+
@property
|
|
32
|
+
def GGML_FTYPE_MOSTLY_Q5_K(self) -> int: ...
|
|
33
|
+
@property
|
|
34
|
+
def GGML_FTYPE_MOSTLY_Q6_K(self) -> int: ...
|
|
35
|
+
@property
|
|
36
|
+
def GGML_FTYPE_MOSTLY_Q8_0(self) -> int: ...
|
|
37
|
+
@property
|
|
38
|
+
def GGML_FTYPE_UNKNOWN(self) -> int: ...
|
|
39
|
+
@property
|
|
40
|
+
def GGML_LINESEARCH_BACKTRACKING_ARMIJO(self) -> int: ...
|
|
41
|
+
@property
|
|
42
|
+
def GGML_LINESEARCH_BACKTRACKING_STRONG_WOLFE(self) -> int: ...
|
|
43
|
+
@property
|
|
44
|
+
def GGML_LINESEARCH_BACKTRACKING_WOLFE(self) -> int: ...
|
|
45
|
+
@property
|
|
46
|
+
def GGML_LINESEARCH_DEFAULT(self) -> int: ...
|
|
47
|
+
@property
|
|
48
|
+
def GGML_LINESEARCH_FAIL(self) -> int: ...
|
|
49
|
+
@property
|
|
50
|
+
def GGML_LINESEARCH_INVALID_PARAMETERS(self) -> int: ...
|
|
51
|
+
@property
|
|
52
|
+
def GGML_LINESEARCH_MAXIMUM_ITERATIONS(self) -> int: ...
|
|
53
|
+
@property
|
|
54
|
+
def GGML_LINESEARCH_MAXIMUM_STEP(self) -> int: ...
|
|
55
|
+
@property
|
|
56
|
+
def GGML_LINESEARCH_MINIMUM_STEP(self) -> int: ...
|
|
57
|
+
@property
|
|
58
|
+
def GGML_OBJECT_GRAPH(self) -> int: ...
|
|
59
|
+
@property
|
|
60
|
+
def GGML_OBJECT_TENSOR(self) -> int: ...
|
|
61
|
+
@property
|
|
62
|
+
def GGML_OBJECT_WORK_BUFFER(self) -> int: ...
|
|
63
|
+
@property
|
|
64
|
+
def GGML_OPT_ADAM(self) -> int: ...
|
|
65
|
+
@property
|
|
66
|
+
def GGML_OPT_DID_NOT_CONVERGE(self) -> int: ...
|
|
67
|
+
@property
|
|
68
|
+
def GGML_OPT_FAIL(self) -> int: ...
|
|
69
|
+
@property
|
|
70
|
+
def GGML_OPT_INVALID_WOLFE(self) -> int: ...
|
|
71
|
+
@property
|
|
72
|
+
def GGML_OPT_LBFGS(self) -> int: ...
|
|
73
|
+
@property
|
|
74
|
+
def GGML_OPT_NO_CONTEXT(self) -> int: ...
|
|
75
|
+
@property
|
|
76
|
+
def GGML_OPT_OK(self) -> int: ...
|
|
77
|
+
@property
|
|
78
|
+
def GGML_OP_ACC(self) -> int: ...
|
|
79
|
+
@property
|
|
80
|
+
def GGML_OP_ADD(self) -> int: ...
|
|
81
|
+
@property
|
|
82
|
+
def GGML_OP_ADD1(self) -> int: ...
|
|
83
|
+
@property
|
|
84
|
+
def GGML_OP_ALIBI(self) -> int: ...
|
|
85
|
+
@property
|
|
86
|
+
def GGML_OP_ARGMAX(self) -> int: ...
|
|
87
|
+
@property
|
|
88
|
+
def GGML_OP_CLAMP(self) -> int: ...
|
|
89
|
+
@property
|
|
90
|
+
def GGML_OP_CONT(self) -> int: ...
|
|
91
|
+
@property
|
|
92
|
+
def GGML_OP_CONV_1D(self) -> int: ...
|
|
93
|
+
@property
|
|
94
|
+
def GGML_OP_CONV_2D(self) -> int: ...
|
|
95
|
+
@property
|
|
96
|
+
def GGML_OP_COUNT(self) -> int: ...
|
|
97
|
+
@property
|
|
98
|
+
def GGML_OP_CPY(self) -> int: ...
|
|
99
|
+
@property
|
|
100
|
+
def GGML_OP_CROSS_ENTROPY_LOSS(self) -> int: ...
|
|
101
|
+
@property
|
|
102
|
+
def GGML_OP_CROSS_ENTROPY_LOSS_BACK(self) -> int: ...
|
|
103
|
+
@property
|
|
104
|
+
def GGML_OP_DIAG(self) -> int: ...
|
|
105
|
+
@property
|
|
106
|
+
def GGML_OP_DIAG_MASK_INF(self) -> int: ...
|
|
107
|
+
@property
|
|
108
|
+
def GGML_OP_DIAG_MASK_ZERO(self) -> int: ...
|
|
109
|
+
@property
|
|
110
|
+
def GGML_OP_DIV(self) -> int: ...
|
|
111
|
+
@property
|
|
112
|
+
def GGML_OP_DUP(self) -> int: ...
|
|
113
|
+
@property
|
|
114
|
+
def GGML_OP_FLASH_ATTN(self) -> int: ...
|
|
115
|
+
@property
|
|
116
|
+
def GGML_OP_FLASH_ATTN_BACK(self) -> int: ...
|
|
117
|
+
@property
|
|
118
|
+
def GGML_OP_FLASH_FF(self) -> int: ...
|
|
119
|
+
@property
|
|
120
|
+
def GGML_OP_GET_ROWS(self) -> int: ...
|
|
121
|
+
@property
|
|
122
|
+
def GGML_OP_GET_ROWS_BACK(self) -> int: ...
|
|
123
|
+
@property
|
|
124
|
+
def GGML_OP_LOG(self) -> int: ...
|
|
125
|
+
@property
|
|
126
|
+
def GGML_OP_MAP_BINARY(self) -> int: ...
|
|
127
|
+
@property
|
|
128
|
+
def GGML_OP_MAP_CUSTOM1(self) -> int: ...
|
|
129
|
+
@property
|
|
130
|
+
def GGML_OP_MAP_CUSTOM1_F32(self) -> int: ...
|
|
131
|
+
@property
|
|
132
|
+
def GGML_OP_MAP_CUSTOM2(self) -> int: ...
|
|
133
|
+
@property
|
|
134
|
+
def GGML_OP_MAP_CUSTOM2_F32(self) -> int: ...
|
|
135
|
+
@property
|
|
136
|
+
def GGML_OP_MAP_CUSTOM3(self) -> int: ...
|
|
137
|
+
@property
|
|
138
|
+
def GGML_OP_MAP_CUSTOM3_F32(self) -> int: ...
|
|
139
|
+
@property
|
|
140
|
+
def GGML_OP_MAP_UNARY(self) -> int: ...
|
|
141
|
+
@property
|
|
142
|
+
def GGML_OP_MEAN(self) -> int: ...
|
|
143
|
+
@property
|
|
144
|
+
def GGML_OP_MUL(self) -> int: ...
|
|
145
|
+
@property
|
|
146
|
+
def GGML_OP_MUL_MAT(self) -> int: ...
|
|
147
|
+
@property
|
|
148
|
+
def GGML_OP_NONE(self) -> int: ...
|
|
149
|
+
@property
|
|
150
|
+
def GGML_OP_NORM(self) -> int: ...
|
|
151
|
+
@property
|
|
152
|
+
def GGML_OP_OUT_PROD(self) -> int: ...
|
|
153
|
+
@property
|
|
154
|
+
def GGML_OP_PERMUTE(self) -> int: ...
|
|
155
|
+
@property
|
|
156
|
+
def GGML_OP_POOL_1D(self) -> int: ...
|
|
157
|
+
@property
|
|
158
|
+
def GGML_OP_POOL_2D(self) -> int: ...
|
|
159
|
+
@property
|
|
160
|
+
def GGML_OP_POOL_AVG(self) -> int: ...
|
|
161
|
+
@property
|
|
162
|
+
def GGML_OP_POOL_COUNT(self) -> int: ...
|
|
163
|
+
@property
|
|
164
|
+
def GGML_OP_POOL_MAX(self) -> int: ...
|
|
165
|
+
@property
|
|
166
|
+
def GGML_OP_REPEAT(self) -> int: ...
|
|
167
|
+
@property
|
|
168
|
+
def GGML_OP_REPEAT_BACK(self) -> int: ...
|
|
169
|
+
@property
|
|
170
|
+
def GGML_OP_RESHAPE(self) -> int: ...
|
|
171
|
+
@property
|
|
172
|
+
def GGML_OP_RMS_NORM(self) -> int: ...
|
|
173
|
+
@property
|
|
174
|
+
def GGML_OP_RMS_NORM_BACK(self) -> int: ...
|
|
175
|
+
@property
|
|
176
|
+
def GGML_OP_ROPE(self) -> int: ...
|
|
177
|
+
@property
|
|
178
|
+
def GGML_OP_ROPE_BACK(self) -> int: ...
|
|
179
|
+
@property
|
|
180
|
+
def GGML_OP_SCALE(self) -> int: ...
|
|
181
|
+
@property
|
|
182
|
+
def GGML_OP_SET(self) -> int: ...
|
|
183
|
+
@property
|
|
184
|
+
def GGML_OP_SILU_BACK(self) -> int: ...
|
|
185
|
+
@property
|
|
186
|
+
def GGML_OP_SOFT_MAX(self) -> int: ...
|
|
187
|
+
@property
|
|
188
|
+
def GGML_OP_SOFT_MAX_BACK(self) -> int: ...
|
|
189
|
+
@property
|
|
190
|
+
def GGML_OP_SQR(self) -> int: ...
|
|
191
|
+
@property
|
|
192
|
+
def GGML_OP_SQRT(self) -> int: ...
|
|
193
|
+
@property
|
|
194
|
+
def GGML_OP_SUB(self) -> int: ...
|
|
195
|
+
@property
|
|
196
|
+
def GGML_OP_SUM(self) -> int: ...
|
|
197
|
+
@property
|
|
198
|
+
def GGML_OP_SUM_ROWS(self) -> int: ...
|
|
199
|
+
@property
|
|
200
|
+
def GGML_OP_TRANSPOSE(self) -> int: ...
|
|
201
|
+
@property
|
|
202
|
+
def GGML_OP_UNARY(self) -> int: ...
|
|
203
|
+
@property
|
|
204
|
+
def GGML_OP_VIEW(self) -> int: ...
|
|
205
|
+
@property
|
|
206
|
+
def GGML_OP_WIN_PART(self) -> int: ...
|
|
207
|
+
@property
|
|
208
|
+
def GGML_OP_WIN_UNPART(self) -> int: ...
|
|
209
|
+
@property
|
|
210
|
+
def GGML_TASK_COMPUTE(self) -> int: ...
|
|
211
|
+
@property
|
|
212
|
+
def GGML_TASK_FINALIZE(self) -> int: ...
|
|
213
|
+
@property
|
|
214
|
+
def GGML_TASK_INIT(self) -> int: ...
|
|
215
|
+
@property
|
|
216
|
+
def GGML_TYPE_COUNT(self) -> int: ...
|
|
217
|
+
@property
|
|
218
|
+
def GGML_TYPE_F16(self) -> int: ...
|
|
219
|
+
@property
|
|
220
|
+
def GGML_TYPE_F32(self) -> int: ...
|
|
221
|
+
@property
|
|
222
|
+
def GGML_TYPE_I16(self) -> int: ...
|
|
223
|
+
@property
|
|
224
|
+
def GGML_TYPE_I32(self) -> int: ...
|
|
225
|
+
@property
|
|
226
|
+
def GGML_TYPE_I8(self) -> int: ...
|
|
227
|
+
@property
|
|
228
|
+
def GGML_TYPE_Q2_K(self) -> int: ...
|
|
229
|
+
@property
|
|
230
|
+
def GGML_TYPE_Q3_K(self) -> int: ...
|
|
231
|
+
@property
|
|
232
|
+
def GGML_TYPE_Q4_0(self) -> int: ...
|
|
233
|
+
@property
|
|
234
|
+
def GGML_TYPE_Q4_1(self) -> int: ...
|
|
235
|
+
@property
|
|
236
|
+
def GGML_TYPE_Q4_K(self) -> int: ...
|
|
237
|
+
@property
|
|
238
|
+
def GGML_TYPE_Q5_0(self) -> int: ...
|
|
239
|
+
@property
|
|
240
|
+
def GGML_TYPE_Q5_1(self) -> int: ...
|
|
241
|
+
@property
|
|
242
|
+
def GGML_TYPE_Q5_K(self) -> int: ...
|
|
243
|
+
@property
|
|
244
|
+
def GGML_TYPE_Q6_K(self) -> int: ...
|
|
245
|
+
@property
|
|
246
|
+
def GGML_TYPE_Q8_0(self) -> int: ...
|
|
247
|
+
@property
|
|
248
|
+
def GGML_TYPE_Q8_1(self) -> int: ...
|
|
249
|
+
@property
|
|
250
|
+
def GGML_TYPE_Q8_K(self) -> int: ...
|
|
251
|
+
@property
|
|
252
|
+
def GGML_UNARY_OP_ABS(self) -> int: ...
|
|
253
|
+
@property
|
|
254
|
+
def GGML_UNARY_OP_ELU(self) -> int: ...
|
|
255
|
+
@property
|
|
256
|
+
def GGML_UNARY_OP_GELU(self) -> int: ...
|
|
257
|
+
@property
|
|
258
|
+
def GGML_UNARY_OP_GELU_QUICK(self) -> int: ...
|
|
259
|
+
@property
|
|
260
|
+
def GGML_UNARY_OP_NEG(self) -> int: ...
|
|
261
|
+
@property
|
|
262
|
+
def GGML_UNARY_OP_RELU(self) -> int: ...
|
|
263
|
+
@property
|
|
264
|
+
def GGML_UNARY_OP_SGN(self) -> int: ...
|
|
265
|
+
@property
|
|
266
|
+
def GGML_UNARY_OP_SILU(self) -> int: ...
|
|
267
|
+
@property
|
|
268
|
+
def GGML_UNARY_OP_STEP(self) -> int: ...
|
|
269
|
+
@property
|
|
270
|
+
def GGML_UNARY_OP_TANH(self) -> int: ...
|
|
271
|
+
@property
|
|
272
|
+
def GGUF_TYPE_ARRAY(self) -> int: ...
|
|
273
|
+
@property
|
|
274
|
+
def GGUF_TYPE_BOOL(self) -> int: ...
|
|
275
|
+
@property
|
|
276
|
+
def GGUF_TYPE_COUNT(self) -> int: ...
|
|
277
|
+
@property
|
|
278
|
+
def GGUF_TYPE_FLOAT32(self) -> int: ...
|
|
279
|
+
@property
|
|
280
|
+
def GGUF_TYPE_INT16(self) -> int: ...
|
|
281
|
+
@property
|
|
282
|
+
def GGUF_TYPE_INT32(self) -> int: ...
|
|
283
|
+
@property
|
|
284
|
+
def GGUF_TYPE_INT8(self) -> int: ...
|
|
285
|
+
@property
|
|
286
|
+
def GGUF_TYPE_STRING(self) -> int: ...
|
|
287
|
+
@property
|
|
288
|
+
def GGUF_TYPE_UINT16(self) -> int: ...
|
|
289
|
+
@property
|
|
290
|
+
def GGUF_TYPE_UINT32(self) -> int: ...
|
|
291
|
+
@property
|
|
292
|
+
def GGUF_TYPE_UINT8(self) -> int: ...
|
|
293
|
+
def abort_callback(data: ffi.CData) -> bool:
|
|
294
|
+
"""
|
|
295
|
+
abort ggml_graph_compute when true
|
|
296
|
+
|
|
297
|
+
bool (*abort_callback)(void * data);
|
|
298
|
+
"""
|
|
299
|
+
...
|
|
300
|
+
def dequantize_row_q2_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
301
|
+
"""
|
|
302
|
+
Dequantization
|
|
303
|
+
|
|
304
|
+
void dequantize_row_q2_K(const block_q2_K * restrict x, float * restrict y, int k);
|
|
305
|
+
"""
|
|
306
|
+
...
|
|
307
|
+
def dequantize_row_q3_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
308
|
+
"""void dequantize_row_q3_K(const block_q3_K * restrict x, float * restrict y, int k);"""
|
|
309
|
+
...
|
|
310
|
+
def dequantize_row_q4_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
311
|
+
"""void dequantize_row_q4_K(const block_q4_K * restrict x, float * restrict y, int k);"""
|
|
312
|
+
...
|
|
313
|
+
def dequantize_row_q5_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
314
|
+
"""void dequantize_row_q5_K(const block_q5_K * restrict x, float * restrict y, int k);"""
|
|
315
|
+
...
|
|
316
|
+
def dequantize_row_q6_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
317
|
+
"""void dequantize_row_q6_K(const block_q6_K * restrict x, float * restrict y, int k);"""
|
|
318
|
+
...
|
|
319
|
+
def dequantize_row_q8_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
320
|
+
"""void dequantize_row_q8_K(const block_q8_K * restrict x, float * restrict y, int k);"""
|
|
321
|
+
...
|
|
322
|
+
def ggml_abs(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
323
|
+
"""
|
|
324
|
+
GGML_API struct ggml_tensor * ggml_abs(
|
|
325
|
+
struct ggml_context * ctx,
|
|
326
|
+
struct ggml_tensor * a);
|
|
327
|
+
"""
|
|
328
|
+
...
|
|
329
|
+
def ggml_abs_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
330
|
+
"""
|
|
331
|
+
GGML_API struct ggml_tensor * ggml_abs_inplace(
|
|
332
|
+
struct ggml_context * ctx,
|
|
333
|
+
struct ggml_tensor * a);
|
|
334
|
+
"""
|
|
335
|
+
...
|
|
336
|
+
def ggml_acc(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, nb1: int, nb2: int, nb3: int, offset: int) -> ffi.CData:
|
|
337
|
+
"""
|
|
338
|
+
GGML_API struct ggml_tensor * ggml_acc(
|
|
339
|
+
struct ggml_context * ctx,
|
|
340
|
+
struct ggml_tensor * a,
|
|
341
|
+
struct ggml_tensor * b,
|
|
342
|
+
size_t nb1,
|
|
343
|
+
size_t nb2,
|
|
344
|
+
size_t nb3,
|
|
345
|
+
size_t offset);
|
|
346
|
+
"""
|
|
347
|
+
...
|
|
348
|
+
def ggml_acc_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, nb1: int, nb2: int, nb3: int, offset: int) -> ffi.CData:
|
|
349
|
+
"""
|
|
350
|
+
GGML_API struct ggml_tensor * ggml_acc_inplace(
|
|
351
|
+
struct ggml_context * ctx,
|
|
352
|
+
struct ggml_tensor * a,
|
|
353
|
+
struct ggml_tensor * b,
|
|
354
|
+
size_t nb1,
|
|
355
|
+
size_t nb2,
|
|
356
|
+
size_t nb3,
|
|
357
|
+
size_t offset);
|
|
358
|
+
"""
|
|
359
|
+
...
|
|
360
|
+
def ggml_add(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
361
|
+
"""
|
|
362
|
+
GGML_API struct ggml_tensor * ggml_add(
|
|
363
|
+
struct ggml_context * ctx,
|
|
364
|
+
struct ggml_tensor * a,
|
|
365
|
+
struct ggml_tensor * b);
|
|
366
|
+
"""
|
|
367
|
+
...
|
|
368
|
+
def ggml_add1(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
369
|
+
"""
|
|
370
|
+
GGML_API struct ggml_tensor * ggml_add1(
|
|
371
|
+
struct ggml_context * ctx,
|
|
372
|
+
struct ggml_tensor * a,
|
|
373
|
+
struct ggml_tensor * b);
|
|
374
|
+
"""
|
|
375
|
+
...
|
|
376
|
+
def ggml_add1_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
377
|
+
"""
|
|
378
|
+
GGML_API struct ggml_tensor * ggml_add1_inplace(
|
|
379
|
+
struct ggml_context * ctx,
|
|
380
|
+
struct ggml_tensor * a,
|
|
381
|
+
struct ggml_tensor * b);
|
|
382
|
+
"""
|
|
383
|
+
...
|
|
384
|
+
def ggml_add_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
385
|
+
"""
|
|
386
|
+
GGML_API struct ggml_tensor * ggml_add_inplace(
|
|
387
|
+
struct ggml_context * ctx,
|
|
388
|
+
struct ggml_tensor * a,
|
|
389
|
+
struct ggml_tensor * b);
|
|
390
|
+
"""
|
|
391
|
+
...
|
|
392
|
+
def ggml_alibi(ctx: ffi.CData, a: ffi.CData, n_past: int, n_head: int, bias_max: float) -> ffi.CData:
|
|
393
|
+
"""
|
|
394
|
+
alibi position embedding
|
|
395
|
+
in-place, returns view(a)
|
|
396
|
+
|
|
397
|
+
struct ggml_tensor * ggml_alibi(
|
|
398
|
+
struct ggml_context * ctx,
|
|
399
|
+
struct ggml_tensor * a,
|
|
400
|
+
int n_past,
|
|
401
|
+
int n_head,
|
|
402
|
+
float bias_max);
|
|
403
|
+
"""
|
|
404
|
+
...
|
|
405
|
+
def ggml_allocr_alloc(alloc: ffi.CData, tensor: ffi.CData) -> None:
|
|
406
|
+
"""GGML_API void ggml_allocr_alloc(struct ggml_allocr * alloc, struct ggml_tensor * tensor);"""
|
|
407
|
+
...
|
|
408
|
+
def ggml_allocr_alloc_graph(alloc: ffi.CData, graph: ffi.CData) -> int:
|
|
409
|
+
"""GGML_API size_t ggml_allocr_alloc_graph(struct ggml_allocr * alloc, struct ggml_cgraph * graph);"""
|
|
410
|
+
...
|
|
411
|
+
def ggml_allocr_free(alloc: ffi.CData) -> None:
|
|
412
|
+
"""GGML_API void ggml_allocr_free(struct ggml_allocr * alloc);"""
|
|
413
|
+
...
|
|
414
|
+
def ggml_allocr_is_measure(alloc: ffi.CData) -> bool:
|
|
415
|
+
"""GGML_API bool ggml_allocr_is_measure(struct ggml_allocr * alloc);"""
|
|
416
|
+
...
|
|
417
|
+
def ggml_allocr_new(data: ffi.CData, size: int, alignment: int) -> ffi.CData:
|
|
418
|
+
"""GGML_API struct ggml_allocr * ggml_allocr_new(void * data, size_t size, size_t alignment);"""
|
|
419
|
+
...
|
|
420
|
+
def ggml_allocr_new_measure(alignment: int) -> ffi.CData:
|
|
421
|
+
"""GGML_API struct ggml_allocr * ggml_allocr_new_measure(size_t alignment);"""
|
|
422
|
+
...
|
|
423
|
+
def ggml_allocr_reset(alloc: ffi.CData) -> None:
|
|
424
|
+
"""GGML_API void ggml_allocr_reset(struct ggml_allocr * alloc);"""
|
|
425
|
+
...
|
|
426
|
+
def ggml_allocr_set_parse_seq(alloc: ffi.CData, list: ffi.CData, n: int) -> None:
|
|
427
|
+
"""
|
|
428
|
+
tell the allocator to parse nodes following the order described in the list
|
|
429
|
+
you should call this if your graph are optimized to execute out-of-order
|
|
430
|
+
|
|
431
|
+
GGML_API void ggml_allocr_set_parse_seq(struct ggml_allocr * alloc, int * list, int n);
|
|
432
|
+
"""
|
|
433
|
+
...
|
|
434
|
+
def ggml_are_same_shape(t0: ffi.CData, t1: ffi.CData) -> bool:
|
|
435
|
+
""" GGML_API bool ggml_are_same_shape(const struct ggml_tensor * t0, const struct ggml_tensor * t1);"""
|
|
436
|
+
...
|
|
437
|
+
def ggml_argmax(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
438
|
+
"""
|
|
439
|
+
argmax along rows
|
|
440
|
+
|
|
441
|
+
GGML_API struct ggml_tensor * ggml_argmax(
|
|
442
|
+
struct ggml_context * ctx,
|
|
443
|
+
struct ggml_tensor * a);
|
|
444
|
+
"""
|
|
445
|
+
...
|
|
446
|
+
def ggml_blck_size(type: int) -> int:
|
|
447
|
+
""" GGML_API int ggml_blck_size (enum ggml_type type);"""
|
|
448
|
+
...
|
|
449
|
+
def ggml_build_backward(ctx: ffi.CData, gf: ffi.CData, keep: bool) -> ffi.CData:
|
|
450
|
+
""" GGML_API struct ggml_cgraph ggml_build_backward(struct ggml_context * ctx, struct ggml_cgraph * gf, bool keep);"""
|
|
451
|
+
...
|
|
452
|
+
def ggml_build_forward(tensor: ffi.CData) -> ffi.CData:
|
|
453
|
+
""" GGML_API struct ggml_cgraph ggml_build_forward (struct ggml_tensor * tensor);"""
|
|
454
|
+
...
|
|
455
|
+
def ggml_build_forward_ctx(ctx: ffi.CData, tensor: ffi.CData) -> ffi.CData:
|
|
456
|
+
""" GGML_API struct ggml_cgraph * ggml_build_forward_ctx(struct ggml_context * ctx, struct ggml_tensor * tensor);"""
|
|
457
|
+
...
|
|
458
|
+
def ggml_build_forward_expand(cgraph: ffi.CData, tensor: ffi.CData) -> None:
|
|
459
|
+
""" GGML_API void ggml_build_forward_expand(struct ggml_cgraph * cgraph, struct ggml_tensor * tensor);"""
|
|
460
|
+
...
|
|
461
|
+
def ggml_cl_can_mul_mat(src0: ffi.CData, src1: ffi.CData, dst: ffi.CData) -> bool:
|
|
462
|
+
"""bool ggml_cl_can_mul_mat(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst);"""
|
|
463
|
+
...
|
|
464
|
+
def ggml_cl_free_data(tensor: ffi.CData) -> None:
|
|
465
|
+
"""void ggml_cl_free_data(const struct ggml_tensor* tensor);"""
|
|
466
|
+
...
|
|
467
|
+
def ggml_cl_host_free(ptr: ffi.CData) -> None:
|
|
468
|
+
"""void ggml_cl_host_free(void * ptr);"""
|
|
469
|
+
...
|
|
470
|
+
def ggml_cl_host_malloc(size: int) -> ffi.CData:
|
|
471
|
+
"""void * ggml_cl_host_malloc(size_t size);"""
|
|
472
|
+
...
|
|
473
|
+
def ggml_cl_init() -> None:
|
|
474
|
+
"""void ggml_cl_init(void);"""
|
|
475
|
+
...
|
|
476
|
+
def ggml_cl_mul(src0: ffi.CData, src1: ffi.CData, dst: ffi.CData) -> None:
|
|
477
|
+
"""void ggml_cl_mul(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst);"""
|
|
478
|
+
...
|
|
479
|
+
def ggml_cl_mul_mat(src0: ffi.CData, src1: ffi.CData, dst: ffi.CData, wdata: ffi.CData, wsize: int) -> None:
|
|
480
|
+
"""void ggml_cl_mul_mat(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst, void * wdata, size_t wsize);"""
|
|
481
|
+
...
|
|
482
|
+
def ggml_cl_mul_mat_get_wsize(src0: ffi.CData, src1: ffi.CData, dst: ffi.CData) -> int:
|
|
483
|
+
"""size_t ggml_cl_mul_mat_get_wsize(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst);"""
|
|
484
|
+
...
|
|
485
|
+
def ggml_cl_transform_tensor(data: ffi.CData, tensor: ffi.CData) -> None:
|
|
486
|
+
"""void ggml_cl_transform_tensor(void * data, struct ggml_tensor * tensor);"""
|
|
487
|
+
...
|
|
488
|
+
def ggml_clamp(ctx: ffi.CData, a: ffi.CData, min: float, max: float) -> ffi.CData:
|
|
489
|
+
"""
|
|
490
|
+
clamp
|
|
491
|
+
in-place, returns view(a)
|
|
492
|
+
|
|
493
|
+
struct ggml_tensor * ggml_clamp(
|
|
494
|
+
struct ggml_context * ctx,
|
|
495
|
+
struct ggml_tensor * a,
|
|
496
|
+
float min,
|
|
497
|
+
float max);
|
|
498
|
+
"""
|
|
499
|
+
...
|
|
500
|
+
def ggml_cont(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
501
|
+
"""
|
|
502
|
+
make contiguous
|
|
503
|
+
|
|
504
|
+
GGML_API struct ggml_tensor * ggml_cont(
|
|
505
|
+
struct ggml_context * ctx,
|
|
506
|
+
struct ggml_tensor * a);
|
|
507
|
+
"""
|
|
508
|
+
...
|
|
509
|
+
def ggml_conv_1d(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, s0: int, p0: int, d0: int) -> ffi.CData:
|
|
510
|
+
"""
|
|
511
|
+
GGML_API struct ggml_tensor * ggml_conv_1d(
|
|
512
|
+
struct ggml_context * ctx,
|
|
513
|
+
struct ggml_tensor * a,
|
|
514
|
+
struct ggml_tensor * b,
|
|
515
|
+
int s0, // stride
|
|
516
|
+
int p0, // padding
|
|
517
|
+
int d0); // dilation
|
|
518
|
+
"""
|
|
519
|
+
...
|
|
520
|
+
def ggml_conv_1d_ph(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, s: int, d: int) -> ffi.CData:
|
|
521
|
+
"""
|
|
522
|
+
conv_1d with padding = half
|
|
523
|
+
alias for ggml_conv_1d(a, b, s, a->ne[0]/2, d)
|
|
524
|
+
|
|
525
|
+
GGML_API struct ggml_tensor * ggml_conv_1d_ph(
|
|
526
|
+
struct ggml_context * ctx,
|
|
527
|
+
struct ggml_tensor * a,
|
|
528
|
+
struct ggml_tensor * b,
|
|
529
|
+
int s,
|
|
530
|
+
int d);
|
|
531
|
+
"""
|
|
532
|
+
...
|
|
533
|
+
def ggml_conv_2d(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, s0: int, s1: int, p0: int, p1: int, d0: int, d1: int) -> ffi.CData:
|
|
534
|
+
"""
|
|
535
|
+
GGML_API struct ggml_tensor * ggml_conv_2d(
|
|
536
|
+
struct ggml_context * ctx,
|
|
537
|
+
struct ggml_tensor * a,
|
|
538
|
+
struct ggml_tensor * b,
|
|
539
|
+
int s0,
|
|
540
|
+
int s1,
|
|
541
|
+
int p0,
|
|
542
|
+
int p1,
|
|
543
|
+
int d0,
|
|
544
|
+
int d1);
|
|
545
|
+
"""
|
|
546
|
+
...
|
|
547
|
+
def ggml_cpu_has_arm_fma() -> int:
|
|
548
|
+
""" GGML_API int ggml_cpu_has_arm_fma (void);"""
|
|
549
|
+
...
|
|
550
|
+
def ggml_cpu_has_avx() -> int:
|
|
551
|
+
""" GGML_API int ggml_cpu_has_avx (void);"""
|
|
552
|
+
...
|
|
553
|
+
def ggml_cpu_has_avx2() -> int:
|
|
554
|
+
""" GGML_API int ggml_cpu_has_avx2 (void);"""
|
|
555
|
+
...
|
|
556
|
+
def ggml_cpu_has_avx512() -> int:
|
|
557
|
+
""" GGML_API int ggml_cpu_has_avx512 (void);"""
|
|
558
|
+
...
|
|
559
|
+
def ggml_cpu_has_avx512_vbmi() -> int:
|
|
560
|
+
""" GGML_API int ggml_cpu_has_avx512_vbmi(void);"""
|
|
561
|
+
...
|
|
562
|
+
def ggml_cpu_has_avx512_vnni() -> int:
|
|
563
|
+
""" GGML_API int ggml_cpu_has_avx512_vnni(void);"""
|
|
564
|
+
...
|
|
565
|
+
def ggml_cpu_has_blas() -> int:
|
|
566
|
+
""" GGML_API int ggml_cpu_has_blas (void);"""
|
|
567
|
+
...
|
|
568
|
+
def ggml_cpu_has_clblast() -> int:
|
|
569
|
+
""" GGML_API int ggml_cpu_has_clblast (void);"""
|
|
570
|
+
...
|
|
571
|
+
def ggml_cpu_has_cuda() -> int:
|
|
572
|
+
""" GGML_API int ggml_cpu_has_cuda (void);"""
|
|
573
|
+
...
|
|
574
|
+
def ggml_cpu_has_f16c() -> int:
|
|
575
|
+
""" GGML_API int ggml_cpu_has_f16c (void);"""
|
|
576
|
+
...
|
|
577
|
+
def ggml_cpu_has_fma() -> int:
|
|
578
|
+
""" GGML_API int ggml_cpu_has_fma (void);"""
|
|
579
|
+
...
|
|
580
|
+
def ggml_cpu_has_fp16_va() -> int:
|
|
581
|
+
""" GGML_API int ggml_cpu_has_fp16_va (void);"""
|
|
582
|
+
...
|
|
583
|
+
def ggml_cpu_has_gpublas() -> int:
|
|
584
|
+
""" GGML_API int ggml_cpu_has_gpublas (void);"""
|
|
585
|
+
...
|
|
586
|
+
def ggml_cpu_has_neon() -> int:
|
|
587
|
+
""" GGML_API int ggml_cpu_has_neon (void);"""
|
|
588
|
+
...
|
|
589
|
+
def ggml_cpu_has_sse3() -> int:
|
|
590
|
+
""" GGML_API int ggml_cpu_has_sse3 (void);"""
|
|
591
|
+
...
|
|
592
|
+
def ggml_cpu_has_vsx() -> int:
|
|
593
|
+
""" GGML_API int ggml_cpu_has_vsx (void);"""
|
|
594
|
+
...
|
|
595
|
+
def ggml_cpu_has_wasm_simd() -> int:
|
|
596
|
+
""" GGML_API int ggml_cpu_has_wasm_simd (void);"""
|
|
597
|
+
...
|
|
598
|
+
def ggml_cpy(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
599
|
+
"""
|
|
600
|
+
a -> b, return view(b)
|
|
601
|
+
|
|
602
|
+
GGML_API struct ggml_tensor * ggml_cpy(
|
|
603
|
+
struct ggml_context * ctx,
|
|
604
|
+
struct ggml_tensor * a,
|
|
605
|
+
struct ggml_tensor * b);
|
|
606
|
+
"""
|
|
607
|
+
...
|
|
608
|
+
def ggml_cross_entropy_loss(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
609
|
+
"""
|
|
610
|
+
GGML_API struct ggml_tensor * ggml_cross_entropy_loss(
|
|
611
|
+
struct ggml_context * ctx,
|
|
612
|
+
struct ggml_tensor * a,
|
|
613
|
+
struct ggml_tensor * b);
|
|
614
|
+
"""
|
|
615
|
+
...
|
|
616
|
+
def ggml_cross_entropy_loss_back(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, c: ffi.CData) -> ffi.CData:
|
|
617
|
+
"""
|
|
618
|
+
GGML_API struct ggml_tensor * ggml_cross_entropy_loss_back(
|
|
619
|
+
struct ggml_context * ctx,
|
|
620
|
+
struct ggml_tensor * a,
|
|
621
|
+
struct ggml_tensor * b,
|
|
622
|
+
struct ggml_tensor * c);
|
|
623
|
+
"""
|
|
624
|
+
...
|
|
625
|
+
def ggml_cuda_assign_buffers(tensor: ffi.CData) -> None:
|
|
626
|
+
"""GGML_API void ggml_cuda_assign_buffers(struct ggml_tensor * tensor);"""
|
|
627
|
+
...
|
|
628
|
+
def ggml_cuda_assign_buffers_force_inplace(tensor: ffi.CData) -> None:
|
|
629
|
+
"""GGML_API void ggml_cuda_assign_buffers_force_inplace(struct ggml_tensor * tensor);"""
|
|
630
|
+
...
|
|
631
|
+
def ggml_cuda_assign_buffers_no_scratch(tensor: ffi.CData) -> None:
|
|
632
|
+
"""GGML_API void ggml_cuda_assign_buffers_no_scratch(struct ggml_tensor * tensor);"""
|
|
633
|
+
...
|
|
634
|
+
def ggml_cuda_can_mul_mat(src0: ffi.CData, src1: ffi.CData, dst: ffi.CData) -> bool:
|
|
635
|
+
"""GGML_API bool ggml_cuda_can_mul_mat(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst);"""
|
|
636
|
+
...
|
|
637
|
+
def ggml_cuda_compute_forward(params: ffi.CData, tensor: ffi.CData) -> bool:
|
|
638
|
+
"""GGML_API bool ggml_cuda_compute_forward(struct ggml_compute_params * params, struct ggml_tensor * tensor);"""
|
|
639
|
+
...
|
|
640
|
+
def ggml_cuda_free_data(tensor: ffi.CData) -> None:
|
|
641
|
+
"""GGML_API void ggml_cuda_free_data(struct ggml_tensor * tensor);"""
|
|
642
|
+
...
|
|
643
|
+
def ggml_cuda_free_scratch() -> None:
|
|
644
|
+
"""GGML_API void ggml_cuda_free_scratch(void);"""
|
|
645
|
+
...
|
|
646
|
+
def ggml_cuda_get_device_count() -> int:
|
|
647
|
+
"""GGML_API int ggml_cuda_get_device_count(void);"""
|
|
648
|
+
...
|
|
649
|
+
def ggml_cuda_get_device_description(device: int, description: ffi.CData, description_size: int) -> None:
|
|
650
|
+
"""GGML_API void ggml_cuda_get_device_description(int device, char * description, size_t description_size);"""
|
|
651
|
+
...
|
|
652
|
+
def ggml_cuda_host_free(ptr: ffi.CData) -> None:
|
|
653
|
+
"""GGML_API void ggml_cuda_host_free(void * ptr);"""
|
|
654
|
+
...
|
|
655
|
+
def ggml_cuda_host_malloc(size: int) -> ffi.CData:
|
|
656
|
+
"""GGML_API void * ggml_cuda_host_malloc(size_t size);"""
|
|
657
|
+
...
|
|
658
|
+
def ggml_cuda_set_main_device(main_device: int) -> None:
|
|
659
|
+
"""GGML_API void ggml_cuda_set_main_device(int main_device);"""
|
|
660
|
+
...
|
|
661
|
+
def ggml_cuda_set_mul_mat_q(mul_mat_q: bool) -> None:
|
|
662
|
+
"""GGML_API void ggml_cuda_set_mul_mat_q(bool mul_mat_q);"""
|
|
663
|
+
...
|
|
664
|
+
def ggml_cuda_set_scratch_size(scratch_size: int) -> None:
|
|
665
|
+
"""GGML_API void ggml_cuda_set_scratch_size(size_t scratch_size);"""
|
|
666
|
+
...
|
|
667
|
+
def ggml_cuda_set_tensor_split(tensor_split: ffi.CData) -> None:
|
|
668
|
+
"""GGML_API void ggml_cuda_set_tensor_split(const float * tensor_split);"""
|
|
669
|
+
...
|
|
670
|
+
def ggml_cuda_transform_tensor(data: ffi.CData, tensor: ffi.CData) -> None:
|
|
671
|
+
"""GGML_API void ggml_cuda_transform_tensor(void * data, struct ggml_tensor * tensor);"""
|
|
672
|
+
...
|
|
673
|
+
def ggml_cycles() -> int:
|
|
674
|
+
""" GGML_API int64_t ggml_cycles(void);"""
|
|
675
|
+
...
|
|
676
|
+
def ggml_cycles_per_ms() -> int:
|
|
677
|
+
""" GGML_API int64_t ggml_cycles_per_ms(void);"""
|
|
678
|
+
...
|
|
679
|
+
def ggml_diag(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
680
|
+
"""
|
|
681
|
+
GGML_API struct ggml_tensor * ggml_diag(
|
|
682
|
+
struct ggml_context * ctx,
|
|
683
|
+
struct ggml_tensor * a);
|
|
684
|
+
"""
|
|
685
|
+
...
|
|
686
|
+
def ggml_diag_mask_inf(ctx: ffi.CData, a: ffi.CData, n_past: int) -> ffi.CData:
|
|
687
|
+
"""
|
|
688
|
+
set elements above the diagonal to -INF
|
|
689
|
+
|
|
690
|
+
GGML_API struct ggml_tensor * ggml_diag_mask_inf(
|
|
691
|
+
struct ggml_context * ctx,
|
|
692
|
+
struct ggml_tensor * a,
|
|
693
|
+
int n_past);
|
|
694
|
+
"""
|
|
695
|
+
...
|
|
696
|
+
def ggml_diag_mask_inf_inplace(ctx: ffi.CData, a: ffi.CData, n_past: int) -> ffi.CData:
|
|
697
|
+
"""
|
|
698
|
+
in-place, returns view(a)
|
|
699
|
+
|
|
700
|
+
GGML_API struct ggml_tensor * ggml_diag_mask_inf_inplace(
|
|
701
|
+
struct ggml_context * ctx,
|
|
702
|
+
struct ggml_tensor * a,
|
|
703
|
+
int n_past);
|
|
704
|
+
"""
|
|
705
|
+
...
|
|
706
|
+
def ggml_diag_mask_zero(ctx: ffi.CData, a: ffi.CData, n_past: int) -> ffi.CData:
|
|
707
|
+
"""
|
|
708
|
+
set elements above the diagonal to 0
|
|
709
|
+
|
|
710
|
+
GGML_API struct ggml_tensor * ggml_diag_mask_zero(
|
|
711
|
+
struct ggml_context * ctx,
|
|
712
|
+
struct ggml_tensor * a,
|
|
713
|
+
int n_past);
|
|
714
|
+
"""
|
|
715
|
+
...
|
|
716
|
+
def ggml_diag_mask_zero_inplace(ctx: ffi.CData, a: ffi.CData, n_past: int) -> ffi.CData:
|
|
717
|
+
"""
|
|
718
|
+
in-place, returns view(a)
|
|
719
|
+
|
|
720
|
+
GGML_API struct ggml_tensor * ggml_diag_mask_zero_inplace(
|
|
721
|
+
struct ggml_context * ctx,
|
|
722
|
+
struct ggml_tensor * a,
|
|
723
|
+
int n_past);
|
|
724
|
+
"""
|
|
725
|
+
...
|
|
726
|
+
def ggml_div(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
727
|
+
"""
|
|
728
|
+
GGML_API struct ggml_tensor * ggml_div(
|
|
729
|
+
struct ggml_context * ctx,
|
|
730
|
+
struct ggml_tensor * a,
|
|
731
|
+
struct ggml_tensor * b);
|
|
732
|
+
"""
|
|
733
|
+
...
|
|
734
|
+
def ggml_div_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
735
|
+
"""
|
|
736
|
+
GGML_API struct ggml_tensor * ggml_div_inplace(
|
|
737
|
+
struct ggml_context * ctx,
|
|
738
|
+
struct ggml_tensor * a,
|
|
739
|
+
struct ggml_tensor * b);
|
|
740
|
+
"""
|
|
741
|
+
...
|
|
742
|
+
def ggml_dup(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
743
|
+
"""
|
|
744
|
+
GGML_API struct ggml_tensor * ggml_dup(
|
|
745
|
+
struct ggml_context * ctx,
|
|
746
|
+
struct ggml_tensor * a);
|
|
747
|
+
"""
|
|
748
|
+
...
|
|
749
|
+
def ggml_dup_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
750
|
+
"""
|
|
751
|
+
in-place, returns view(a)
|
|
752
|
+
|
|
753
|
+
GGML_API struct ggml_tensor * ggml_dup_inplace(
|
|
754
|
+
struct ggml_context * ctx,
|
|
755
|
+
struct ggml_tensor * a);
|
|
756
|
+
"""
|
|
757
|
+
...
|
|
758
|
+
def ggml_dup_tensor(ctx: ffi.CData, src: ffi.CData) -> ffi.CData:
|
|
759
|
+
""" GGML_API struct ggml_tensor * ggml_dup_tensor (struct ggml_context * ctx, const struct ggml_tensor * src);"""
|
|
760
|
+
...
|
|
761
|
+
def ggml_element_size(tensor: ffi.CData) -> int:
|
|
762
|
+
""" GGML_API size_t ggml_element_size(const struct ggml_tensor * tensor);"""
|
|
763
|
+
...
|
|
764
|
+
def ggml_elu(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
765
|
+
"""
|
|
766
|
+
GGML_API struct ggml_tensor * ggml_elu(
|
|
767
|
+
struct ggml_context * ctx,
|
|
768
|
+
struct ggml_tensor * a);
|
|
769
|
+
"""
|
|
770
|
+
...
|
|
771
|
+
def ggml_elu_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
772
|
+
"""
|
|
773
|
+
GGML_API struct ggml_tensor * ggml_elu_inplace(
|
|
774
|
+
struct ggml_context * ctx,
|
|
775
|
+
struct ggml_tensor * a);
|
|
776
|
+
"""
|
|
777
|
+
...
|
|
778
|
+
def ggml_flash_attn(ctx: ffi.CData, q: ffi.CData, k: ffi.CData, v: ffi.CData, masked: bool) -> ffi.CData:
|
|
779
|
+
"""
|
|
780
|
+
GGML_API struct ggml_tensor * ggml_flash_attn(
|
|
781
|
+
struct ggml_context * ctx,
|
|
782
|
+
struct ggml_tensor * q,
|
|
783
|
+
struct ggml_tensor * k,
|
|
784
|
+
struct ggml_tensor * v,
|
|
785
|
+
bool masked);
|
|
786
|
+
"""
|
|
787
|
+
...
|
|
788
|
+
def ggml_flash_attn_back(ctx: ffi.CData, q: ffi.CData, k: ffi.CData, v: ffi.CData, d: ffi.CData, masked: bool) -> ffi.CData:
|
|
789
|
+
"""
|
|
790
|
+
GGML_API struct ggml_tensor * ggml_flash_attn_back(
|
|
791
|
+
struct ggml_context * ctx,
|
|
792
|
+
struct ggml_tensor * q,
|
|
793
|
+
struct ggml_tensor * k,
|
|
794
|
+
struct ggml_tensor * v,
|
|
795
|
+
struct ggml_tensor * d,
|
|
796
|
+
bool masked);
|
|
797
|
+
"""
|
|
798
|
+
...
|
|
799
|
+
def ggml_flash_ff(ctx: ffi.CData, a: ffi.CData, b0: ffi.CData, b1: ffi.CData, c0: ffi.CData, c1: ffi.CData) -> ffi.CData:
|
|
800
|
+
"""
|
|
801
|
+
GGML_API struct ggml_tensor * ggml_flash_ff(
|
|
802
|
+
struct ggml_context * ctx,
|
|
803
|
+
struct ggml_tensor * a,
|
|
804
|
+
struct ggml_tensor * b0,
|
|
805
|
+
struct ggml_tensor * b1,
|
|
806
|
+
struct ggml_tensor * c0,
|
|
807
|
+
struct ggml_tensor * c1);
|
|
808
|
+
"""
|
|
809
|
+
...
|
|
810
|
+
def ggml_format_name(tensor: ffi.CData, fmt: ffi.CData, *args2) -> ffi.CData:
|
|
811
|
+
""" GGML_API struct ggml_tensor * ggml_format_name( struct ggml_tensor * tensor, const char * fmt, ...);"""
|
|
812
|
+
...
|
|
813
|
+
def ggml_fp16_to_fp32(x: np.float16) -> float:
|
|
814
|
+
"""
|
|
815
|
+
convert FP16 <-> FP32
|
|
816
|
+
|
|
817
|
+
GGML_API float ggml_fp16_to_fp32(ggml_fp16_t x);
|
|
818
|
+
"""
|
|
819
|
+
...
|
|
820
|
+
def ggml_fp16_to_fp32_row(x: ffi.CData, y: ffi.CData, n: int) -> None:
|
|
821
|
+
""" GGML_API void ggml_fp16_to_fp32_row(const ggml_fp16_t * x, float * y, int n);"""
|
|
822
|
+
...
|
|
823
|
+
def ggml_fp32_to_fp16(x: float) -> np.float16:
|
|
824
|
+
""" GGML_API ggml_fp16_t ggml_fp32_to_fp16(float x);"""
|
|
825
|
+
...
|
|
826
|
+
def ggml_fp32_to_fp16_row(x: ffi.CData, y: ffi.CData, n: int) -> None:
|
|
827
|
+
""" GGML_API void ggml_fp32_to_fp16_row(const float * x, ggml_fp16_t * y, int n);"""
|
|
828
|
+
...
|
|
829
|
+
def ggml_free(ctx: ffi.CData) -> None:
|
|
830
|
+
""" GGML_API void ggml_free(struct ggml_context * ctx);"""
|
|
831
|
+
...
|
|
832
|
+
def ggml_ftype_to_ggml_type(ftype: int) -> int:
|
|
833
|
+
"""
|
|
834
|
+
TODO: temporary until model loading of ggml examples is refactored
|
|
835
|
+
|
|
836
|
+
GGML_API enum ggml_type ggml_ftype_to_ggml_type(enum ggml_ftype ftype);
|
|
837
|
+
"""
|
|
838
|
+
...
|
|
839
|
+
def ggml_gelu(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
840
|
+
"""
|
|
841
|
+
TODO: double-check this computation is correct
|
|
842
|
+
|
|
843
|
+
GGML_API struct ggml_tensor * ggml_gelu(
|
|
844
|
+
struct ggml_context * ctx,
|
|
845
|
+
struct ggml_tensor * a);
|
|
846
|
+
"""
|
|
847
|
+
...
|
|
848
|
+
def ggml_gelu_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
849
|
+
"""
|
|
850
|
+
GGML_API struct ggml_tensor * ggml_gelu_inplace(
|
|
851
|
+
struct ggml_context * ctx,
|
|
852
|
+
struct ggml_tensor * a);
|
|
853
|
+
"""
|
|
854
|
+
...
|
|
855
|
+
def ggml_gelu_quick(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
856
|
+
"""
|
|
857
|
+
GGML_API struct ggml_tensor * ggml_gelu_quick(
|
|
858
|
+
struct ggml_context * ctx,
|
|
859
|
+
struct ggml_tensor * a);
|
|
860
|
+
"""
|
|
861
|
+
...
|
|
862
|
+
def ggml_gelu_quick_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
863
|
+
"""
|
|
864
|
+
GGML_API struct ggml_tensor * ggml_gelu_quick_inplace(
|
|
865
|
+
struct ggml_context * ctx,
|
|
866
|
+
struct ggml_tensor * a);
|
|
867
|
+
"""
|
|
868
|
+
...
|
|
869
|
+
def ggml_get_data(tensor: ffi.CData) -> ffi.CData:
|
|
870
|
+
""" GGML_API void * ggml_get_data (const struct ggml_tensor * tensor);"""
|
|
871
|
+
...
|
|
872
|
+
def ggml_get_data_f32(tensor: ffi.CData) -> ffi.CData:
|
|
873
|
+
""" GGML_API float * ggml_get_data_f32(const struct ggml_tensor * tensor);"""
|
|
874
|
+
...
|
|
875
|
+
def ggml_get_f32_1d(tensor: ffi.CData, i: int) -> float:
|
|
876
|
+
""" GGML_API float ggml_get_f32_1d(const struct ggml_tensor * tensor, int i);"""
|
|
877
|
+
...
|
|
878
|
+
def ggml_get_i32_1d(tensor: ffi.CData, i: int) -> int:
|
|
879
|
+
""" GGML_API int32_t ggml_get_i32_1d(const struct ggml_tensor * tensor, int i);"""
|
|
880
|
+
...
|
|
881
|
+
def ggml_get_max_tensor_size(ctx: ffi.CData) -> int:
|
|
882
|
+
""" GGML_API size_t ggml_get_max_tensor_size(const struct ggml_context * ctx);"""
|
|
883
|
+
...
|
|
884
|
+
def ggml_get_mem_buffer(ctx: ffi.CData) -> ffi.CData:
|
|
885
|
+
""" GGML_API void * ggml_get_mem_buffer (const struct ggml_context * ctx);"""
|
|
886
|
+
...
|
|
887
|
+
def ggml_get_mem_size(ctx: ffi.CData) -> int:
|
|
888
|
+
""" GGML_API size_t ggml_get_mem_size (const struct ggml_context * ctx);"""
|
|
889
|
+
...
|
|
890
|
+
def ggml_get_name(tensor: ffi.CData) -> ffi.CData:
|
|
891
|
+
""" GGML_API const char * ggml_get_name (const struct ggml_tensor * tensor);"""
|
|
892
|
+
...
|
|
893
|
+
def ggml_get_no_alloc(ctx: ffi.CData) -> bool:
|
|
894
|
+
""" GGML_API bool ggml_get_no_alloc(struct ggml_context * ctx);"""
|
|
895
|
+
...
|
|
896
|
+
def ggml_get_rows(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
897
|
+
"""
|
|
898
|
+
GGML_API struct ggml_tensor * ggml_get_rows(
|
|
899
|
+
struct ggml_context * ctx,
|
|
900
|
+
struct ggml_tensor * a,
|
|
901
|
+
struct ggml_tensor * b);
|
|
902
|
+
"""
|
|
903
|
+
...
|
|
904
|
+
def ggml_get_rows_back(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, c: ffi.CData) -> ffi.CData:
|
|
905
|
+
"""
|
|
906
|
+
GGML_API struct ggml_tensor * ggml_get_rows_back(
|
|
907
|
+
struct ggml_context * ctx,
|
|
908
|
+
struct ggml_tensor * a,
|
|
909
|
+
struct ggml_tensor * b,
|
|
910
|
+
struct ggml_tensor * c);
|
|
911
|
+
"""
|
|
912
|
+
...
|
|
913
|
+
def ggml_get_tensor(ctx: ffi.CData, name: ffi.CData) -> ffi.CData:
|
|
914
|
+
""" GGML_API struct ggml_tensor * ggml_get_tensor(struct ggml_context * ctx, const char * name);"""
|
|
915
|
+
...
|
|
916
|
+
def ggml_get_unary_op(tensor: ffi.CData) -> int:
|
|
917
|
+
""" GGML_API enum ggml_unary_op ggml_get_unary_op(const struct ggml_tensor * tensor);"""
|
|
918
|
+
...
|
|
919
|
+
def ggml_graph_compute(cgraph: ffi.CData, cplan: ffi.CData) -> int:
|
|
920
|
+
""" GGML_API int ggml_graph_compute(struct ggml_cgraph * cgraph, struct ggml_cplan * cplan);"""
|
|
921
|
+
...
|
|
922
|
+
def ggml_graph_compute_with_ctx(ctx: ffi.CData, cgraph: ffi.CData, n_threads: int) -> None:
|
|
923
|
+
"""
|
|
924
|
+
same as ggml_graph_compute() but the work data is allocated as a part of the context
|
|
925
|
+
note: the drawback of this API is that you must have ensured that the context has enough memory for the work data
|
|
926
|
+
|
|
927
|
+
GGML_API void ggml_graph_compute_with_ctx(struct ggml_context * ctx, struct ggml_cgraph * cgraph, int n_threads);
|
|
928
|
+
"""
|
|
929
|
+
...
|
|
930
|
+
def ggml_graph_dump_dot(gb: ffi.CData, gf: ffi.CData, filename: ffi.CData) -> None:
|
|
931
|
+
"""
|
|
932
|
+
dump the graph into a file using the dot format
|
|
933
|
+
|
|
934
|
+
GGML_API void ggml_graph_dump_dot(const struct ggml_cgraph * gb, const struct ggml_cgraph * gf, const char * filename);
|
|
935
|
+
"""
|
|
936
|
+
...
|
|
937
|
+
def ggml_graph_get_tensor(cgraph: ffi.CData, name: ffi.CData) -> ffi.CData:
|
|
938
|
+
""" GGML_API struct ggml_tensor * ggml_graph_get_tensor(struct ggml_cgraph * cgraph, const char * name);"""
|
|
939
|
+
...
|
|
940
|
+
def ggml_graph_overhead() -> int:
|
|
941
|
+
""" GGML_API size_t ggml_graph_overhead(void);"""
|
|
942
|
+
...
|
|
943
|
+
def ggml_graph_plan(cgraph: ffi.CData, n_threads: int) -> ffi.CData:
|
|
944
|
+
"""
|
|
945
|
+
ggml_graph_plan() has to be called before ggml_graph_compute()
|
|
946
|
+
when plan.work_size > 0, caller must allocate memory for plan.work_data
|
|
947
|
+
|
|
948
|
+
GGML_API struct ggml_cplan ggml_graph_plan (struct ggml_cgraph * cgraph, int n_threads /*= GGML_DEFAULT_N_THREADS*/);
|
|
949
|
+
"""
|
|
950
|
+
...
|
|
951
|
+
def ggml_graph_print(cgraph: ffi.CData) -> None:
|
|
952
|
+
"""
|
|
953
|
+
print info and performance information for the graph
|
|
954
|
+
|
|
955
|
+
GGML_API void ggml_graph_print(const struct ggml_cgraph * cgraph);
|
|
956
|
+
"""
|
|
957
|
+
...
|
|
958
|
+
def ggml_graph_reset(cgraph: ffi.CData) -> None:
|
|
959
|
+
""" GGML_API void ggml_graph_reset (struct ggml_cgraph * cgraph);"""
|
|
960
|
+
...
|
|
961
|
+
def ggml_init(params: ffi.CData) -> ffi.CData:
|
|
962
|
+
""" GGML_API struct ggml_context * ggml_init(struct ggml_init_params params);"""
|
|
963
|
+
...
|
|
964
|
+
def ggml_init_cuda() -> None:
|
|
965
|
+
"""GGML_API void ggml_init_cuda(void);"""
|
|
966
|
+
...
|
|
967
|
+
def ggml_internal_get_type_traits(type: int) -> ffi.CData:
|
|
968
|
+
""" ggml_type_traits_t ggml_internal_get_type_traits(enum ggml_type type);"""
|
|
969
|
+
...
|
|
970
|
+
def ggml_is_contiguous(tensor: ffi.CData) -> bool:
|
|
971
|
+
""" GGML_API bool ggml_is_contiguous(const struct ggml_tensor * tensor);"""
|
|
972
|
+
...
|
|
973
|
+
def ggml_is_numa() -> bool:
|
|
974
|
+
""" GGML_API bool ggml_is_numa(void); // true if init detected that system has >1 NUMA node"""
|
|
975
|
+
...
|
|
976
|
+
def ggml_is_permuted(tensor: ffi.CData) -> bool:
|
|
977
|
+
""" GGML_API bool ggml_is_permuted (const struct ggml_tensor * tensor);"""
|
|
978
|
+
...
|
|
979
|
+
def ggml_is_quantized(type: int) -> bool:
|
|
980
|
+
""" GGML_API bool ggml_is_quantized(enum ggml_type type);"""
|
|
981
|
+
...
|
|
982
|
+
def ggml_is_transposed(tensor: ffi.CData) -> bool:
|
|
983
|
+
""" GGML_API bool ggml_is_transposed(const struct ggml_tensor * tensor);"""
|
|
984
|
+
...
|
|
985
|
+
def ggml_log(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
986
|
+
"""
|
|
987
|
+
GGML_API struct ggml_tensor * ggml_log(
|
|
988
|
+
struct ggml_context * ctx,
|
|
989
|
+
struct ggml_tensor * a);
|
|
990
|
+
"""
|
|
991
|
+
...
|
|
992
|
+
def ggml_log_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
993
|
+
"""
|
|
994
|
+
GGML_API struct ggml_tensor * ggml_log_inplace(
|
|
995
|
+
struct ggml_context * ctx,
|
|
996
|
+
struct ggml_tensor * a);
|
|
997
|
+
"""
|
|
998
|
+
...
|
|
999
|
+
def ggml_map_binary_f32(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, fun: ffi.CData) -> ffi.CData:
|
|
1000
|
+
"""
|
|
1001
|
+
GGML_DEPRECATED(GGML_API struct ggml_tensor * ggml_map_binary_f32(
|
|
1002
|
+
struct ggml_context * ctx,
|
|
1003
|
+
struct ggml_tensor * a,
|
|
1004
|
+
struct ggml_tensor * b,
|
|
1005
|
+
ggml_binary_op_f32_t fun),
|
|
1006
|
+
"use ggml_map_custom2 instead");
|
|
1007
|
+
"""
|
|
1008
|
+
...
|
|
1009
|
+
def ggml_map_binary_inplace_f32(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, fun: ffi.CData) -> ffi.CData:
|
|
1010
|
+
"""
|
|
1011
|
+
GGML_DEPRECATED(GGML_API struct ggml_tensor * ggml_map_binary_inplace_f32(
|
|
1012
|
+
struct ggml_context * ctx,
|
|
1013
|
+
struct ggml_tensor * a,
|
|
1014
|
+
struct ggml_tensor * b,
|
|
1015
|
+
ggml_binary_op_f32_t fun),
|
|
1016
|
+
"use ggml_map_custom2_inplace instead");
|
|
1017
|
+
"""
|
|
1018
|
+
...
|
|
1019
|
+
def ggml_map_custom1(ctx: ffi.CData, a: ffi.CData, fun: ffi.CData, n_tasks: int, userdata: ffi.CData) -> ffi.CData:
|
|
1020
|
+
"""
|
|
1021
|
+
GGML_API struct ggml_tensor * ggml_map_custom1(
|
|
1022
|
+
struct ggml_context * ctx,
|
|
1023
|
+
struct ggml_tensor * a,
|
|
1024
|
+
ggml_custom1_op_t fun,
|
|
1025
|
+
int n_tasks,
|
|
1026
|
+
void * userdata);
|
|
1027
|
+
"""
|
|
1028
|
+
...
|
|
1029
|
+
def ggml_map_custom1_f32(ctx: ffi.CData, a: ffi.CData, fun: ffi.CData) -> ffi.CData:
|
|
1030
|
+
"""
|
|
1031
|
+
GGML_DEPRECATED(GGML_API struct ggml_tensor * ggml_map_custom1_f32(
|
|
1032
|
+
struct ggml_context * ctx,
|
|
1033
|
+
struct ggml_tensor * a,
|
|
1034
|
+
ggml_custom1_op_f32_t fun),
|
|
1035
|
+
"use ggml_map_custom1 instead");
|
|
1036
|
+
"""
|
|
1037
|
+
...
|
|
1038
|
+
def ggml_map_custom1_inplace(ctx: ffi.CData, a: ffi.CData, fun: ffi.CData, n_tasks: int, userdata: ffi.CData) -> ffi.CData:
|
|
1039
|
+
"""
|
|
1040
|
+
GGML_API struct ggml_tensor * ggml_map_custom1_inplace(
|
|
1041
|
+
struct ggml_context * ctx,
|
|
1042
|
+
struct ggml_tensor * a,
|
|
1043
|
+
ggml_custom1_op_t fun,
|
|
1044
|
+
int n_tasks,
|
|
1045
|
+
void * userdata);
|
|
1046
|
+
"""
|
|
1047
|
+
...
|
|
1048
|
+
def ggml_map_custom1_inplace_f32(ctx: ffi.CData, a: ffi.CData, fun: ffi.CData) -> ffi.CData:
|
|
1049
|
+
"""
|
|
1050
|
+
GGML_DEPRECATED(GGML_API struct ggml_tensor * ggml_map_custom1_inplace_f32(
|
|
1051
|
+
struct ggml_context * ctx,
|
|
1052
|
+
struct ggml_tensor * a,
|
|
1053
|
+
ggml_custom1_op_f32_t fun),
|
|
1054
|
+
"use ggml_map_custom1_inplace instead");
|
|
1055
|
+
"""
|
|
1056
|
+
...
|
|
1057
|
+
def ggml_map_custom2(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, fun: ffi.CData, n_tasks: int, userdata: ffi.CData) -> ffi.CData:
|
|
1058
|
+
"""
|
|
1059
|
+
GGML_API struct ggml_tensor * ggml_map_custom2(
|
|
1060
|
+
struct ggml_context * ctx,
|
|
1061
|
+
struct ggml_tensor * a,
|
|
1062
|
+
struct ggml_tensor * b,
|
|
1063
|
+
ggml_custom2_op_t fun,
|
|
1064
|
+
int n_tasks,
|
|
1065
|
+
void * userdata);
|
|
1066
|
+
"""
|
|
1067
|
+
...
|
|
1068
|
+
def ggml_map_custom2_f32(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, fun: ffi.CData) -> ffi.CData:
|
|
1069
|
+
"""
|
|
1070
|
+
GGML_DEPRECATED(GGML_API struct ggml_tensor * ggml_map_custom2_f32(
|
|
1071
|
+
struct ggml_context * ctx,
|
|
1072
|
+
struct ggml_tensor * a,
|
|
1073
|
+
struct ggml_tensor * b,
|
|
1074
|
+
ggml_custom2_op_f32_t fun),
|
|
1075
|
+
"use ggml_map_custom2 instead");
|
|
1076
|
+
"""
|
|
1077
|
+
...
|
|
1078
|
+
def ggml_map_custom2_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, fun: ffi.CData, n_tasks: int, userdata: ffi.CData) -> ffi.CData:
|
|
1079
|
+
"""
|
|
1080
|
+
GGML_API struct ggml_tensor * ggml_map_custom2_inplace(
|
|
1081
|
+
struct ggml_context * ctx,
|
|
1082
|
+
struct ggml_tensor * a,
|
|
1083
|
+
struct ggml_tensor * b,
|
|
1084
|
+
ggml_custom2_op_t fun,
|
|
1085
|
+
int n_tasks,
|
|
1086
|
+
void * userdata);
|
|
1087
|
+
"""
|
|
1088
|
+
...
|
|
1089
|
+
def ggml_map_custom2_inplace_f32(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, fun: ffi.CData) -> ffi.CData:
|
|
1090
|
+
"""
|
|
1091
|
+
GGML_DEPRECATED(GGML_API struct ggml_tensor * ggml_map_custom2_inplace_f32(
|
|
1092
|
+
struct ggml_context * ctx,
|
|
1093
|
+
struct ggml_tensor * a,
|
|
1094
|
+
struct ggml_tensor * b,
|
|
1095
|
+
ggml_custom2_op_f32_t fun),
|
|
1096
|
+
"use ggml_map_custom2_inplace instead");
|
|
1097
|
+
"""
|
|
1098
|
+
...
|
|
1099
|
+
def ggml_map_custom3(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, c: ffi.CData, fun: ffi.CData, n_tasks: int, userdata: ffi.CData) -> ffi.CData:
|
|
1100
|
+
"""
|
|
1101
|
+
GGML_API struct ggml_tensor * ggml_map_custom3(
|
|
1102
|
+
struct ggml_context * ctx,
|
|
1103
|
+
struct ggml_tensor * a,
|
|
1104
|
+
struct ggml_tensor * b,
|
|
1105
|
+
struct ggml_tensor * c,
|
|
1106
|
+
ggml_custom3_op_t fun,
|
|
1107
|
+
int n_tasks,
|
|
1108
|
+
void * userdata);
|
|
1109
|
+
"""
|
|
1110
|
+
...
|
|
1111
|
+
def ggml_map_custom3_f32(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, c: ffi.CData, fun: ffi.CData) -> ffi.CData:
|
|
1112
|
+
"""
|
|
1113
|
+
GGML_DEPRECATED(GGML_API struct ggml_tensor * ggml_map_custom3_f32(
|
|
1114
|
+
struct ggml_context * ctx,
|
|
1115
|
+
struct ggml_tensor * a,
|
|
1116
|
+
struct ggml_tensor * b,
|
|
1117
|
+
struct ggml_tensor * c,
|
|
1118
|
+
ggml_custom3_op_f32_t fun),
|
|
1119
|
+
"use ggml_map_custom3 instead");
|
|
1120
|
+
"""
|
|
1121
|
+
...
|
|
1122
|
+
def ggml_map_custom3_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, c: ffi.CData, fun: ffi.CData, n_tasks: int, userdata: ffi.CData) -> ffi.CData:
|
|
1123
|
+
"""
|
|
1124
|
+
GGML_API struct ggml_tensor * ggml_map_custom3_inplace(
|
|
1125
|
+
struct ggml_context * ctx,
|
|
1126
|
+
struct ggml_tensor * a,
|
|
1127
|
+
struct ggml_tensor * b,
|
|
1128
|
+
struct ggml_tensor * c,
|
|
1129
|
+
ggml_custom3_op_t fun,
|
|
1130
|
+
int n_tasks,
|
|
1131
|
+
void * userdata);
|
|
1132
|
+
"""
|
|
1133
|
+
...
|
|
1134
|
+
def ggml_map_custom3_inplace_f32(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, c: ffi.CData, fun: ffi.CData) -> ffi.CData:
|
|
1135
|
+
"""
|
|
1136
|
+
GGML_DEPRECATED(GGML_API struct ggml_tensor * ggml_map_custom3_inplace_f32(
|
|
1137
|
+
struct ggml_context * ctx,
|
|
1138
|
+
struct ggml_tensor * a,
|
|
1139
|
+
struct ggml_tensor * b,
|
|
1140
|
+
struct ggml_tensor * c,
|
|
1141
|
+
ggml_custom3_op_f32_t fun),
|
|
1142
|
+
"use ggml_map_custom3_inplace instead");
|
|
1143
|
+
"""
|
|
1144
|
+
...
|
|
1145
|
+
def ggml_map_unary_f32(ctx: ffi.CData, a: ffi.CData, fun: ffi.CData) -> ffi.CData:
|
|
1146
|
+
"""
|
|
1147
|
+
GGML_DEPRECATED(GGML_API struct ggml_tensor * ggml_map_unary_f32(
|
|
1148
|
+
struct ggml_context * ctx,
|
|
1149
|
+
struct ggml_tensor * a,
|
|
1150
|
+
ggml_unary_op_f32_t fun),
|
|
1151
|
+
"use ggml_map_custom1 instead");
|
|
1152
|
+
"""
|
|
1153
|
+
...
|
|
1154
|
+
def ggml_map_unary_inplace_f32(ctx: ffi.CData, a: ffi.CData, fun: ffi.CData) -> ffi.CData:
|
|
1155
|
+
"""
|
|
1156
|
+
GGML_DEPRECATED(GGML_API struct ggml_tensor * ggml_map_unary_inplace_f32(
|
|
1157
|
+
struct ggml_context * ctx,
|
|
1158
|
+
struct ggml_tensor * a,
|
|
1159
|
+
ggml_unary_op_f32_t fun),
|
|
1160
|
+
"use ggml_map_custom1_inplace instead");
|
|
1161
|
+
"""
|
|
1162
|
+
...
|
|
1163
|
+
def ggml_mean(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1164
|
+
"""
|
|
1165
|
+
mean along rows
|
|
1166
|
+
|
|
1167
|
+
GGML_API struct ggml_tensor * ggml_mean(
|
|
1168
|
+
struct ggml_context * ctx,
|
|
1169
|
+
struct ggml_tensor * a);
|
|
1170
|
+
"""
|
|
1171
|
+
...
|
|
1172
|
+
def ggml_metal_add_buffer(ctx: ffi.CData, name: ffi.CData, data: ffi.CData, size: int, max_size: int) -> bool:
|
|
1173
|
+
"""
|
|
1174
|
+
creates a mapping between a host memory buffer and a device memory buffer
|
|
1175
|
+
- make sure to map all buffers used in the graph before calling ggml_metal_graph_compute
|
|
1176
|
+
- the mapping is used during computation to determine the arguments of the compute kernels
|
|
1177
|
+
- you don't need to keep the host memory buffer allocated as it is never accessed by Metal
|
|
1178
|
+
- max_size specifies the maximum size of a tensor and is used to create shared views such
|
|
1179
|
+
that it is guaranteed that the tensor will fit in at least one of the views
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
bool ggml_metal_add_buffer(
|
|
1183
|
+
struct ggml_metal_context * ctx,
|
|
1184
|
+
const char * name,
|
|
1185
|
+
void * data,
|
|
1186
|
+
size_t size,
|
|
1187
|
+
size_t max_size);
|
|
1188
|
+
"""
|
|
1189
|
+
...
|
|
1190
|
+
def ggml_metal_free(ctx: ffi.CData) -> None:
|
|
1191
|
+
"""void ggml_metal_free(struct ggml_metal_context * ctx);"""
|
|
1192
|
+
...
|
|
1193
|
+
def ggml_metal_get_concur_list(ctx: ffi.CData) -> ffi.CData:
|
|
1194
|
+
"""
|
|
1195
|
+
output the concur_list for ggml_alloc
|
|
1196
|
+
|
|
1197
|
+
int * ggml_metal_get_concur_list(struct ggml_metal_context * ctx);
|
|
1198
|
+
"""
|
|
1199
|
+
...
|
|
1200
|
+
def ggml_metal_get_tensor(ctx: ffi.CData, t: ffi.CData) -> None:
|
|
1201
|
+
"""
|
|
1202
|
+
get data from the device into host memory
|
|
1203
|
+
|
|
1204
|
+
void ggml_metal_get_tensor(struct ggml_metal_context * ctx, struct ggml_tensor * t);
|
|
1205
|
+
"""
|
|
1206
|
+
...
|
|
1207
|
+
def ggml_metal_graph_compute(ctx: ffi.CData, gf: ffi.CData) -> None:
|
|
1208
|
+
"""
|
|
1209
|
+
same as ggml_graph_compute but uses Metal
|
|
1210
|
+
creates gf->n_threads command buffers in parallel
|
|
1211
|
+
|
|
1212
|
+
void ggml_metal_graph_compute(struct ggml_metal_context * ctx, struct ggml_cgraph * gf);
|
|
1213
|
+
"""
|
|
1214
|
+
...
|
|
1215
|
+
def ggml_metal_graph_find_concurrency(ctx: ffi.CData, gf: ffi.CData, check_mem: bool) -> None:
|
|
1216
|
+
"""
|
|
1217
|
+
try to find operations that can be run concurrently in the graph
|
|
1218
|
+
you should run it again if the topology of your graph changes
|
|
1219
|
+
|
|
1220
|
+
void ggml_metal_graph_find_concurrency(struct ggml_metal_context * ctx, struct ggml_cgraph * gf, bool check_mem);
|
|
1221
|
+
"""
|
|
1222
|
+
...
|
|
1223
|
+
def ggml_metal_host_free(data: ffi.CData) -> None:
|
|
1224
|
+
"""void ggml_metal_host_free (void * data);"""
|
|
1225
|
+
...
|
|
1226
|
+
def ggml_metal_host_malloc(n: int) -> ffi.CData:
|
|
1227
|
+
"""void * ggml_metal_host_malloc(size_t n);"""
|
|
1228
|
+
...
|
|
1229
|
+
def ggml_metal_if_optimized(ctx: ffi.CData) -> int:
|
|
1230
|
+
"""
|
|
1231
|
+
if the graph has been optimized for concurrently dispatch, return length of the concur_list if optimized
|
|
1232
|
+
|
|
1233
|
+
int ggml_metal_if_optimized(struct ggml_metal_context * ctx);
|
|
1234
|
+
"""
|
|
1235
|
+
...
|
|
1236
|
+
def ggml_metal_init(n_cb: int) -> ffi.CData:
|
|
1237
|
+
"""
|
|
1238
|
+
number of command buffers to use
|
|
1239
|
+
|
|
1240
|
+
struct ggml_metal_context * ggml_metal_init(int n_cb);
|
|
1241
|
+
"""
|
|
1242
|
+
...
|
|
1243
|
+
def ggml_metal_set_n_cb(ctx: ffi.CData, n_cb: int) -> None:
|
|
1244
|
+
"""
|
|
1245
|
+
set the number of command buffers to use
|
|
1246
|
+
|
|
1247
|
+
void ggml_metal_set_n_cb(struct ggml_metal_context * ctx, int n_cb);
|
|
1248
|
+
"""
|
|
1249
|
+
...
|
|
1250
|
+
def ggml_metal_set_tensor(ctx: ffi.CData, t: ffi.CData) -> None:
|
|
1251
|
+
"""
|
|
1252
|
+
set data from host memory into the device
|
|
1253
|
+
|
|
1254
|
+
void ggml_metal_set_tensor(struct ggml_metal_context * ctx, struct ggml_tensor * t);
|
|
1255
|
+
"""
|
|
1256
|
+
...
|
|
1257
|
+
def ggml_mpi_backend_free() -> None:
|
|
1258
|
+
"""void ggml_mpi_backend_free(void);"""
|
|
1259
|
+
...
|
|
1260
|
+
def ggml_mpi_backend_init() -> None:
|
|
1261
|
+
"""void ggml_mpi_backend_init(void);"""
|
|
1262
|
+
...
|
|
1263
|
+
def ggml_mpi_eval_init(ctx_mpi: ffi.CData, n_tokens: ffi.CData, n_past: ffi.CData, n_threads: ffi.CData) -> None:
|
|
1264
|
+
"""
|
|
1265
|
+
void ggml_mpi_eval_init(
|
|
1266
|
+
struct ggml_mpi_context * ctx_mpi,
|
|
1267
|
+
int * n_tokens,
|
|
1268
|
+
int * n_past,
|
|
1269
|
+
int * n_threads);
|
|
1270
|
+
"""
|
|
1271
|
+
...
|
|
1272
|
+
def ggml_mpi_free(ctx: ffi.CData) -> None:
|
|
1273
|
+
"""void ggml_mpi_free(struct ggml_mpi_context * ctx);"""
|
|
1274
|
+
...
|
|
1275
|
+
def ggml_mpi_graph_compute_post(ctx_mpi: ffi.CData, gf: ffi.CData, n_layers: int) -> None:
|
|
1276
|
+
"""
|
|
1277
|
+
void ggml_mpi_graph_compute_post(
|
|
1278
|
+
struct ggml_mpi_context * ctx_mpi,
|
|
1279
|
+
struct ggml_cgraph * gf,
|
|
1280
|
+
int n_layers);
|
|
1281
|
+
"""
|
|
1282
|
+
...
|
|
1283
|
+
def ggml_mpi_graph_compute_pre(ctx_mpi: ffi.CData, gf: ffi.CData, n_layers: int) -> None:
|
|
1284
|
+
"""
|
|
1285
|
+
void ggml_mpi_graph_compute_pre(
|
|
1286
|
+
struct ggml_mpi_context * ctx_mpi,
|
|
1287
|
+
struct ggml_cgraph * gf,
|
|
1288
|
+
int n_layers);
|
|
1289
|
+
"""
|
|
1290
|
+
...
|
|
1291
|
+
def ggml_mpi_init() -> ffi.CData:
|
|
1292
|
+
"""struct ggml_mpi_context * ggml_mpi_init(void);"""
|
|
1293
|
+
...
|
|
1294
|
+
def ggml_mpi_rank(ctx: ffi.CData) -> int:
|
|
1295
|
+
"""int ggml_mpi_rank(struct ggml_mpi_context * ctx);"""
|
|
1296
|
+
...
|
|
1297
|
+
def ggml_mul(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1298
|
+
"""
|
|
1299
|
+
GGML_API struct ggml_tensor * ggml_mul(
|
|
1300
|
+
struct ggml_context * ctx,
|
|
1301
|
+
struct ggml_tensor * a,
|
|
1302
|
+
struct ggml_tensor * b);
|
|
1303
|
+
"""
|
|
1304
|
+
...
|
|
1305
|
+
def ggml_mul_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1306
|
+
"""
|
|
1307
|
+
GGML_API struct ggml_tensor * ggml_mul_inplace(
|
|
1308
|
+
struct ggml_context * ctx,
|
|
1309
|
+
struct ggml_tensor * a,
|
|
1310
|
+
struct ggml_tensor * b);
|
|
1311
|
+
"""
|
|
1312
|
+
...
|
|
1313
|
+
def ggml_mul_mat(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1314
|
+
"""
|
|
1315
|
+
A: n columns, m rows
|
|
1316
|
+
B: n columns, p rows (i.e. we transpose it internally)
|
|
1317
|
+
result is m columns, p rows
|
|
1318
|
+
|
|
1319
|
+
GGML_API struct ggml_tensor * ggml_mul_mat(
|
|
1320
|
+
struct ggml_context * ctx,
|
|
1321
|
+
struct ggml_tensor * a,
|
|
1322
|
+
struct ggml_tensor * b);
|
|
1323
|
+
"""
|
|
1324
|
+
...
|
|
1325
|
+
def ggml_nbytes(tensor: ffi.CData) -> int:
|
|
1326
|
+
""" GGML_API size_t ggml_nbytes (const struct ggml_tensor * tensor);"""
|
|
1327
|
+
...
|
|
1328
|
+
def ggml_nbytes_pad(tensor: ffi.CData) -> int:
|
|
1329
|
+
""" GGML_API size_t ggml_nbytes_pad (const struct ggml_tensor * tensor); // same as ggml_nbytes() but padded to GGML_MEM_ALIGN"""
|
|
1330
|
+
...
|
|
1331
|
+
def ggml_nbytes_split(tensor: ffi.CData, nrows_split: int) -> int:
|
|
1332
|
+
""" GGML_API size_t ggml_nbytes_split(const struct ggml_tensor * tensor, int nrows_split);"""
|
|
1333
|
+
...
|
|
1334
|
+
def ggml_neg(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1335
|
+
"""
|
|
1336
|
+
GGML_API struct ggml_tensor * ggml_neg(
|
|
1337
|
+
struct ggml_context * ctx,
|
|
1338
|
+
struct ggml_tensor * a);
|
|
1339
|
+
"""
|
|
1340
|
+
...
|
|
1341
|
+
def ggml_neg_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1342
|
+
"""
|
|
1343
|
+
GGML_API struct ggml_tensor * ggml_neg_inplace(
|
|
1344
|
+
struct ggml_context * ctx,
|
|
1345
|
+
struct ggml_tensor * a);
|
|
1346
|
+
"""
|
|
1347
|
+
...
|
|
1348
|
+
def ggml_nelements(tensor: ffi.CData) -> int:
|
|
1349
|
+
""" GGML_API int64_t ggml_nelements (const struct ggml_tensor * tensor);"""
|
|
1350
|
+
...
|
|
1351
|
+
def ggml_new_f32(ctx: ffi.CData, value: float) -> ffi.CData:
|
|
1352
|
+
""" GGML_API struct ggml_tensor * ggml_new_f32(struct ggml_context * ctx, float value);"""
|
|
1353
|
+
...
|
|
1354
|
+
def ggml_new_graph(ctx: ffi.CData) -> ffi.CData:
|
|
1355
|
+
"""
|
|
1356
|
+
graph allocation in a context
|
|
1357
|
+
|
|
1358
|
+
GGML_API struct ggml_cgraph * ggml_new_graph (struct ggml_context * ctx);
|
|
1359
|
+
"""
|
|
1360
|
+
...
|
|
1361
|
+
def ggml_new_i32(ctx: ffi.CData, value: int) -> ffi.CData:
|
|
1362
|
+
""" GGML_API struct ggml_tensor * ggml_new_i32(struct ggml_context * ctx, int32_t value);"""
|
|
1363
|
+
...
|
|
1364
|
+
def ggml_new_tensor(ctx: ffi.CData, type: int, n_dims: int, ne: ffi.CData) -> ffi.CData:
|
|
1365
|
+
"""
|
|
1366
|
+
GGML_API struct ggml_tensor * ggml_new_tensor(
|
|
1367
|
+
struct ggml_context * ctx,
|
|
1368
|
+
enum ggml_type type,
|
|
1369
|
+
int n_dims,
|
|
1370
|
+
const int64_t *ne);
|
|
1371
|
+
"""
|
|
1372
|
+
...
|
|
1373
|
+
def ggml_new_tensor_1d(ctx: ffi.CData, type: int, ne0: int) -> ffi.CData:
|
|
1374
|
+
"""
|
|
1375
|
+
GGML_API struct ggml_tensor * ggml_new_tensor_1d(
|
|
1376
|
+
struct ggml_context * ctx,
|
|
1377
|
+
enum ggml_type type,
|
|
1378
|
+
int64_t ne0);
|
|
1379
|
+
"""
|
|
1380
|
+
...
|
|
1381
|
+
def ggml_new_tensor_2d(ctx: ffi.CData, type: int, ne0: int, ne1: int) -> ffi.CData:
|
|
1382
|
+
"""
|
|
1383
|
+
GGML_API struct ggml_tensor * ggml_new_tensor_2d(
|
|
1384
|
+
struct ggml_context * ctx,
|
|
1385
|
+
enum ggml_type type,
|
|
1386
|
+
int64_t ne0,
|
|
1387
|
+
int64_t ne1);
|
|
1388
|
+
"""
|
|
1389
|
+
...
|
|
1390
|
+
def ggml_new_tensor_3d(ctx: ffi.CData, type: int, ne0: int, ne1: int, ne2: int) -> ffi.CData:
|
|
1391
|
+
"""
|
|
1392
|
+
GGML_API struct ggml_tensor * ggml_new_tensor_3d(
|
|
1393
|
+
struct ggml_context * ctx,
|
|
1394
|
+
enum ggml_type type,
|
|
1395
|
+
int64_t ne0,
|
|
1396
|
+
int64_t ne1,
|
|
1397
|
+
int64_t ne2);
|
|
1398
|
+
"""
|
|
1399
|
+
...
|
|
1400
|
+
def ggml_new_tensor_4d(ctx: ffi.CData, type: int, ne0: int, ne1: int, ne2: int, ne3: int) -> ffi.CData:
|
|
1401
|
+
"""
|
|
1402
|
+
GGML_API struct ggml_tensor * ggml_new_tensor_4d(
|
|
1403
|
+
struct ggml_context * ctx,
|
|
1404
|
+
enum ggml_type type,
|
|
1405
|
+
int64_t ne0,
|
|
1406
|
+
int64_t ne1,
|
|
1407
|
+
int64_t ne2,
|
|
1408
|
+
int64_t ne3);
|
|
1409
|
+
"""
|
|
1410
|
+
...
|
|
1411
|
+
def ggml_norm(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1412
|
+
"""
|
|
1413
|
+
normalize along rows
|
|
1414
|
+
TODO: eps is hardcoded to 1e-5 for now
|
|
1415
|
+
|
|
1416
|
+
GGML_API struct ggml_tensor * ggml_norm(
|
|
1417
|
+
struct ggml_context * ctx,
|
|
1418
|
+
struct ggml_tensor * a);
|
|
1419
|
+
"""
|
|
1420
|
+
...
|
|
1421
|
+
def ggml_norm_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1422
|
+
"""
|
|
1423
|
+
GGML_API struct ggml_tensor * ggml_norm_inplace(
|
|
1424
|
+
struct ggml_context * ctx,
|
|
1425
|
+
struct ggml_tensor * a);
|
|
1426
|
+
"""
|
|
1427
|
+
...
|
|
1428
|
+
def ggml_nrows(tensor: ffi.CData) -> int:
|
|
1429
|
+
""" GGML_API int64_t ggml_nrows (const struct ggml_tensor * tensor);"""
|
|
1430
|
+
...
|
|
1431
|
+
def ggml_numa_init() -> None:
|
|
1432
|
+
""" GGML_API void ggml_numa_init(void); // call once for better performance on NUMA systems"""
|
|
1433
|
+
...
|
|
1434
|
+
def ggml_op_name(op: int) -> ffi.CData:
|
|
1435
|
+
""" GGML_API const char * ggml_op_name (enum ggml_op op);"""
|
|
1436
|
+
...
|
|
1437
|
+
def ggml_op_symbol(op: int) -> ffi.CData:
|
|
1438
|
+
""" GGML_API const char * ggml_op_symbol(enum ggml_op op);"""
|
|
1439
|
+
...
|
|
1440
|
+
def ggml_opt(ctx: ffi.CData, params: ffi.CData, f: ffi.CData) -> int:
|
|
1441
|
+
"""
|
|
1442
|
+
optimize the function defined by the tensor f
|
|
1443
|
+
|
|
1444
|
+
GGML_API enum ggml_opt_result ggml_opt(
|
|
1445
|
+
struct ggml_context * ctx,
|
|
1446
|
+
struct ggml_opt_params params,
|
|
1447
|
+
struct ggml_tensor * f);
|
|
1448
|
+
"""
|
|
1449
|
+
...
|
|
1450
|
+
def ggml_opt_default_params(type: int) -> ffi.CData:
|
|
1451
|
+
""" GGML_API struct ggml_opt_params ggml_opt_default_params(enum ggml_opt_type type);"""
|
|
1452
|
+
...
|
|
1453
|
+
def ggml_opt_init(ctx: ffi.CData, opt: ffi.CData, params: ffi.CData, nx: int) -> None:
|
|
1454
|
+
"""
|
|
1455
|
+
initialize optimizer context
|
|
1456
|
+
|
|
1457
|
+
GGML_API void ggml_opt_init(
|
|
1458
|
+
struct ggml_context * ctx,
|
|
1459
|
+
struct ggml_opt_context * opt,
|
|
1460
|
+
struct ggml_opt_params params,
|
|
1461
|
+
int64_t nx);
|
|
1462
|
+
"""
|
|
1463
|
+
...
|
|
1464
|
+
def ggml_opt_resume(ctx: ffi.CData, opt: ffi.CData, f: ffi.CData) -> int:
|
|
1465
|
+
"""
|
|
1466
|
+
continue optimizing the function defined by the tensor f
|
|
1467
|
+
|
|
1468
|
+
GGML_API enum ggml_opt_result ggml_opt_resume(
|
|
1469
|
+
struct ggml_context * ctx,
|
|
1470
|
+
struct ggml_opt_context * opt,
|
|
1471
|
+
struct ggml_tensor * f);
|
|
1472
|
+
"""
|
|
1473
|
+
...
|
|
1474
|
+
def ggml_opt_resume_g(ctx: ffi.CData, opt: ffi.CData, f: ffi.CData, gf: ffi.CData, gb: ffi.CData) -> int:
|
|
1475
|
+
"""
|
|
1476
|
+
continue optimizing the function defined by the tensor f
|
|
1477
|
+
|
|
1478
|
+
GGML_API enum ggml_opt_result ggml_opt_resume_g(
|
|
1479
|
+
struct ggml_context * ctx,
|
|
1480
|
+
struct ggml_opt_context * opt,
|
|
1481
|
+
struct ggml_tensor * f,
|
|
1482
|
+
struct ggml_cgraph * gf,
|
|
1483
|
+
struct ggml_cgraph * gb);
|
|
1484
|
+
"""
|
|
1485
|
+
...
|
|
1486
|
+
def ggml_out_prod(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1487
|
+
"""
|
|
1488
|
+
A: m columns, n rows,
|
|
1489
|
+
B: p columns, n rows,
|
|
1490
|
+
result is m columns, p rows
|
|
1491
|
+
|
|
1492
|
+
GGML_API struct ggml_tensor * ggml_out_prod(
|
|
1493
|
+
struct ggml_context * ctx,
|
|
1494
|
+
struct ggml_tensor * a,
|
|
1495
|
+
struct ggml_tensor * b);
|
|
1496
|
+
"""
|
|
1497
|
+
...
|
|
1498
|
+
def ggml_permute(ctx: ffi.CData, a: ffi.CData, axis0: int, axis1: int, axis2: int, axis3: int) -> ffi.CData:
|
|
1499
|
+
"""
|
|
1500
|
+
GGML_API struct ggml_tensor * ggml_permute(
|
|
1501
|
+
struct ggml_context * ctx,
|
|
1502
|
+
struct ggml_tensor * a,
|
|
1503
|
+
int axis0,
|
|
1504
|
+
int axis1,
|
|
1505
|
+
int axis2,
|
|
1506
|
+
int axis3);
|
|
1507
|
+
"""
|
|
1508
|
+
...
|
|
1509
|
+
def ggml_pool_1d(ctx: ffi.CData, a: ffi.CData, op: int, k0: int, s0: int, p0: int) -> ffi.CData:
|
|
1510
|
+
"""
|
|
1511
|
+
GGML_API struct ggml_tensor * ggml_pool_1d(
|
|
1512
|
+
struct ggml_context * ctx,
|
|
1513
|
+
struct ggml_tensor * a,
|
|
1514
|
+
enum ggml_op_pool op,
|
|
1515
|
+
int k0, // kernel size
|
|
1516
|
+
int s0, // stride
|
|
1517
|
+
int p0); // padding
|
|
1518
|
+
"""
|
|
1519
|
+
...
|
|
1520
|
+
def ggml_pool_2d(ctx: ffi.CData, a: ffi.CData, op: int, k0: int, k1: int, s0: int, s1: int, p0: int, p1: int) -> ffi.CData:
|
|
1521
|
+
"""
|
|
1522
|
+
GGML_API struct ggml_tensor * ggml_pool_2d(
|
|
1523
|
+
struct ggml_context * ctx,
|
|
1524
|
+
struct ggml_tensor * a,
|
|
1525
|
+
enum ggml_op_pool op,
|
|
1526
|
+
int k0,
|
|
1527
|
+
int k1,
|
|
1528
|
+
int s0,
|
|
1529
|
+
int s1,
|
|
1530
|
+
int p0,
|
|
1531
|
+
int p1);
|
|
1532
|
+
"""
|
|
1533
|
+
...
|
|
1534
|
+
def ggml_print_object(obj: ffi.CData) -> None:
|
|
1535
|
+
""" GGML_API void ggml_print_object (const struct ggml_object * obj);"""
|
|
1536
|
+
...
|
|
1537
|
+
def ggml_print_objects(ctx: ffi.CData) -> None:
|
|
1538
|
+
""" GGML_API void ggml_print_objects(const struct ggml_context * ctx);"""
|
|
1539
|
+
...
|
|
1540
|
+
def ggml_quantize_chunk(type: int, src: ffi.CData, dst: ffi.CData, start: int, n: int, hist: ffi.CData) -> int:
|
|
1541
|
+
""" GGML_API size_t ggml_quantize_chunk(enum ggml_type type, const float * src, void * dst, int start, int n, int64_t * hist);"""
|
|
1542
|
+
...
|
|
1543
|
+
def ggml_quantize_q2_K(src: ffi.CData, dst: ffi.CData, n: int, k: int, hist: ffi.CData) -> int:
|
|
1544
|
+
"""
|
|
1545
|
+
Quantization with histogram collection
|
|
1546
|
+
|
|
1547
|
+
size_t ggml_quantize_q2_K(const float * src, void * dst, int n, int k, int64_t * hist);
|
|
1548
|
+
"""
|
|
1549
|
+
...
|
|
1550
|
+
def ggml_quantize_q3_K(src: ffi.CData, dst: ffi.CData, n: int, k: int, hist: ffi.CData) -> int:
|
|
1551
|
+
"""size_t ggml_quantize_q3_K(const float * src, void * dst, int n, int k, int64_t * hist);"""
|
|
1552
|
+
...
|
|
1553
|
+
def ggml_quantize_q4_0(src: ffi.CData, dst: ffi.CData, n: int, k: int, hist: ffi.CData) -> int:
|
|
1554
|
+
""" GGML_API size_t ggml_quantize_q4_0(const float * src, void * dst, int n, int k, int64_t * hist);"""
|
|
1555
|
+
...
|
|
1556
|
+
def ggml_quantize_q4_1(src: ffi.CData, dst: ffi.CData, n: int, k: int, hist: ffi.CData) -> int:
|
|
1557
|
+
""" GGML_API size_t ggml_quantize_q4_1(const float * src, void * dst, int n, int k, int64_t * hist);"""
|
|
1558
|
+
...
|
|
1559
|
+
def ggml_quantize_q4_K(src: ffi.CData, dst: ffi.CData, n: int, k: int, hist: ffi.CData) -> int:
|
|
1560
|
+
"""size_t ggml_quantize_q4_K(const float * src, void * dst, int n, int k, int64_t * hist);"""
|
|
1561
|
+
...
|
|
1562
|
+
def ggml_quantize_q5_0(src: ffi.CData, dst: ffi.CData, n: int, k: int, hist: ffi.CData) -> int:
|
|
1563
|
+
""" GGML_API size_t ggml_quantize_q5_0(const float * src, void * dst, int n, int k, int64_t * hist);"""
|
|
1564
|
+
...
|
|
1565
|
+
def ggml_quantize_q5_1(src: ffi.CData, dst: ffi.CData, n: int, k: int, hist: ffi.CData) -> int:
|
|
1566
|
+
""" GGML_API size_t ggml_quantize_q5_1(const float * src, void * dst, int n, int k, int64_t * hist);"""
|
|
1567
|
+
...
|
|
1568
|
+
def ggml_quantize_q5_K(src: ffi.CData, dst: ffi.CData, n: int, k: int, hist: ffi.CData) -> int:
|
|
1569
|
+
"""size_t ggml_quantize_q5_K(const float * src, void * dst, int n, int k, int64_t * hist);"""
|
|
1570
|
+
...
|
|
1571
|
+
def ggml_quantize_q6_K(src: ffi.CData, dst: ffi.CData, n: int, k: int, hist: ffi.CData) -> int:
|
|
1572
|
+
"""size_t ggml_quantize_q6_K(const float * src, void * dst, int n, int k, int64_t * hist);"""
|
|
1573
|
+
...
|
|
1574
|
+
def ggml_quantize_q8_0(src: ffi.CData, dst: ffi.CData, n: int, k: int, hist: ffi.CData) -> int:
|
|
1575
|
+
""" GGML_API size_t ggml_quantize_q8_0(const float * src, void * dst, int n, int k, int64_t * hist);"""
|
|
1576
|
+
...
|
|
1577
|
+
def ggml_relu(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1578
|
+
"""
|
|
1579
|
+
GGML_API struct ggml_tensor * ggml_relu(
|
|
1580
|
+
struct ggml_context * ctx,
|
|
1581
|
+
struct ggml_tensor * a);
|
|
1582
|
+
"""
|
|
1583
|
+
...
|
|
1584
|
+
def ggml_relu_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1585
|
+
"""
|
|
1586
|
+
GGML_API struct ggml_tensor * ggml_relu_inplace(
|
|
1587
|
+
struct ggml_context * ctx,
|
|
1588
|
+
struct ggml_tensor * a);
|
|
1589
|
+
"""
|
|
1590
|
+
...
|
|
1591
|
+
def ggml_repeat(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1592
|
+
"""
|
|
1593
|
+
if a is the same shape as b, and a is not parameter, return a
|
|
1594
|
+
otherwise, return a new tensor: repeat(a) to fit in b
|
|
1595
|
+
|
|
1596
|
+
GGML_API struct ggml_tensor * ggml_repeat(
|
|
1597
|
+
struct ggml_context * ctx,
|
|
1598
|
+
struct ggml_tensor * a,
|
|
1599
|
+
struct ggml_tensor * b);
|
|
1600
|
+
"""
|
|
1601
|
+
...
|
|
1602
|
+
def ggml_repeat_back(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1603
|
+
"""
|
|
1604
|
+
GGML_API struct ggml_tensor * ggml_repeat_back(
|
|
1605
|
+
struct ggml_context * ctx,
|
|
1606
|
+
struct ggml_tensor * a,
|
|
1607
|
+
struct ggml_tensor * b);
|
|
1608
|
+
"""
|
|
1609
|
+
...
|
|
1610
|
+
def ggml_reshape(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1611
|
+
"""
|
|
1612
|
+
return view(a), b specifies the new shape
|
|
1613
|
+
TODO: when we start computing gradient, make a copy instead of view
|
|
1614
|
+
|
|
1615
|
+
GGML_API struct ggml_tensor * ggml_reshape(
|
|
1616
|
+
struct ggml_context * ctx,
|
|
1617
|
+
struct ggml_tensor * a,
|
|
1618
|
+
struct ggml_tensor * b);
|
|
1619
|
+
"""
|
|
1620
|
+
...
|
|
1621
|
+
def ggml_reshape_1d(ctx: ffi.CData, a: ffi.CData, ne0: int) -> ffi.CData:
|
|
1622
|
+
"""
|
|
1623
|
+
return view(a)
|
|
1624
|
+
TODO: when we start computing gradient, make a copy instead of view
|
|
1625
|
+
|
|
1626
|
+
GGML_API struct ggml_tensor * ggml_reshape_1d(
|
|
1627
|
+
struct ggml_context * ctx,
|
|
1628
|
+
struct ggml_tensor * a,
|
|
1629
|
+
int64_t ne0);
|
|
1630
|
+
"""
|
|
1631
|
+
...
|
|
1632
|
+
def ggml_reshape_2d(ctx: ffi.CData, a: ffi.CData, ne0: int, ne1: int) -> ffi.CData:
|
|
1633
|
+
"""
|
|
1634
|
+
GGML_API struct ggml_tensor * ggml_reshape_2d(
|
|
1635
|
+
struct ggml_context * ctx,
|
|
1636
|
+
struct ggml_tensor * a,
|
|
1637
|
+
int64_t ne0,
|
|
1638
|
+
int64_t ne1);
|
|
1639
|
+
"""
|
|
1640
|
+
...
|
|
1641
|
+
def ggml_reshape_3d(ctx: ffi.CData, a: ffi.CData, ne0: int, ne1: int, ne2: int) -> ffi.CData:
|
|
1642
|
+
"""
|
|
1643
|
+
return view(a)
|
|
1644
|
+
TODO: when we start computing gradient, make a copy instead of view
|
|
1645
|
+
|
|
1646
|
+
GGML_API struct ggml_tensor * ggml_reshape_3d(
|
|
1647
|
+
struct ggml_context * ctx,
|
|
1648
|
+
struct ggml_tensor * a,
|
|
1649
|
+
int64_t ne0,
|
|
1650
|
+
int64_t ne1,
|
|
1651
|
+
int64_t ne2);
|
|
1652
|
+
"""
|
|
1653
|
+
...
|
|
1654
|
+
def ggml_reshape_4d(ctx: ffi.CData, a: ffi.CData, ne0: int, ne1: int, ne2: int, ne3: int) -> ffi.CData:
|
|
1655
|
+
"""
|
|
1656
|
+
GGML_API struct ggml_tensor * ggml_reshape_4d(
|
|
1657
|
+
struct ggml_context * ctx,
|
|
1658
|
+
struct ggml_tensor * a,
|
|
1659
|
+
int64_t ne0,
|
|
1660
|
+
int64_t ne1,
|
|
1661
|
+
int64_t ne2,
|
|
1662
|
+
int64_t ne3);
|
|
1663
|
+
"""
|
|
1664
|
+
...
|
|
1665
|
+
def ggml_rms_norm(ctx: ffi.CData, a: ffi.CData, eps: float) -> ffi.CData:
|
|
1666
|
+
"""
|
|
1667
|
+
GGML_API struct ggml_tensor * ggml_rms_norm(
|
|
1668
|
+
struct ggml_context * ctx,
|
|
1669
|
+
struct ggml_tensor * a,
|
|
1670
|
+
float eps);
|
|
1671
|
+
"""
|
|
1672
|
+
...
|
|
1673
|
+
def ggml_rms_norm_back(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1674
|
+
"""
|
|
1675
|
+
a - x
|
|
1676
|
+
b - dy
|
|
1677
|
+
TODO: update with configurable eps
|
|
1678
|
+
|
|
1679
|
+
GGML_API struct ggml_tensor * ggml_rms_norm_back(
|
|
1680
|
+
struct ggml_context * ctx,
|
|
1681
|
+
struct ggml_tensor * a,
|
|
1682
|
+
struct ggml_tensor * b);
|
|
1683
|
+
"""
|
|
1684
|
+
...
|
|
1685
|
+
def ggml_rms_norm_inplace(ctx: ffi.CData, a: ffi.CData, eps: float) -> ffi.CData:
|
|
1686
|
+
"""
|
|
1687
|
+
GGML_API struct ggml_tensor * ggml_rms_norm_inplace(
|
|
1688
|
+
struct ggml_context * ctx,
|
|
1689
|
+
struct ggml_tensor * a,
|
|
1690
|
+
float eps);
|
|
1691
|
+
"""
|
|
1692
|
+
...
|
|
1693
|
+
def ggml_rope(ctx: ffi.CData, a: ffi.CData, n_past: int, n_dims: int, mode: int, n_ctx: int) -> ffi.CData:
|
|
1694
|
+
"""
|
|
1695
|
+
rotary position embedding
|
|
1696
|
+
if mode & 1 == 1, skip n_past elements
|
|
1697
|
+
if mode & 2 == 1, GPT-NeoX style
|
|
1698
|
+
if mode & 4 == 1, ChatGLM style
|
|
1699
|
+
TODO: avoid creating a new tensor every time
|
|
1700
|
+
|
|
1701
|
+
GGML_API struct ggml_tensor * ggml_rope(
|
|
1702
|
+
struct ggml_context * ctx,
|
|
1703
|
+
struct ggml_tensor * a,
|
|
1704
|
+
int n_past,
|
|
1705
|
+
int n_dims,
|
|
1706
|
+
int mode,
|
|
1707
|
+
int n_ctx);
|
|
1708
|
+
"""
|
|
1709
|
+
...
|
|
1710
|
+
def ggml_rope_back(ctx: ffi.CData, a: ffi.CData, n_past: int, n_dims: int, mode: int, n_ctx: int) -> ffi.CData:
|
|
1711
|
+
"""
|
|
1712
|
+
rotary position embedding backward, i.e compute dx from dy
|
|
1713
|
+
a - dy
|
|
1714
|
+
|
|
1715
|
+
GGML_API struct ggml_tensor * ggml_rope_back(
|
|
1716
|
+
struct ggml_context * ctx,
|
|
1717
|
+
struct ggml_tensor * a,
|
|
1718
|
+
int n_past,
|
|
1719
|
+
int n_dims,
|
|
1720
|
+
int mode,
|
|
1721
|
+
int n_ctx);
|
|
1722
|
+
"""
|
|
1723
|
+
...
|
|
1724
|
+
def ggml_rope_custom(ctx: ffi.CData, a: ffi.CData, n_past: int, n_dims: int, mode: int, n_ctx: int, freq_base: float, freq_scale: float) -> ffi.CData:
|
|
1725
|
+
"""
|
|
1726
|
+
custom RoPE
|
|
1727
|
+
|
|
1728
|
+
GGML_API struct ggml_tensor * ggml_rope_custom(
|
|
1729
|
+
struct ggml_context * ctx,
|
|
1730
|
+
struct ggml_tensor * a,
|
|
1731
|
+
int n_past,
|
|
1732
|
+
int n_dims,
|
|
1733
|
+
int mode,
|
|
1734
|
+
int n_ctx,
|
|
1735
|
+
float freq_base,
|
|
1736
|
+
float freq_scale);
|
|
1737
|
+
"""
|
|
1738
|
+
...
|
|
1739
|
+
def ggml_rope_custom_inplace(ctx: ffi.CData, a: ffi.CData, n_past: int, n_dims: int, mode: int, n_ctx: int, freq_base: float, freq_scale: float) -> ffi.CData:
|
|
1740
|
+
"""
|
|
1741
|
+
in-place, returns view(a)
|
|
1742
|
+
|
|
1743
|
+
GGML_API struct ggml_tensor * ggml_rope_custom_inplace(
|
|
1744
|
+
struct ggml_context * ctx,
|
|
1745
|
+
struct ggml_tensor * a,
|
|
1746
|
+
int n_past,
|
|
1747
|
+
int n_dims,
|
|
1748
|
+
int mode,
|
|
1749
|
+
int n_ctx,
|
|
1750
|
+
float freq_base,
|
|
1751
|
+
float freq_scale);
|
|
1752
|
+
"""
|
|
1753
|
+
...
|
|
1754
|
+
def ggml_rope_inplace(ctx: ffi.CData, a: ffi.CData, n_past: int, n_dims: int, mode: int, n_ctx: int) -> ffi.CData:
|
|
1755
|
+
"""
|
|
1756
|
+
in-place, returns view(a)
|
|
1757
|
+
|
|
1758
|
+
GGML_API struct ggml_tensor * ggml_rope_inplace(
|
|
1759
|
+
struct ggml_context * ctx,
|
|
1760
|
+
struct ggml_tensor * a,
|
|
1761
|
+
int n_past,
|
|
1762
|
+
int n_dims,
|
|
1763
|
+
int mode,
|
|
1764
|
+
int n_ctx);
|
|
1765
|
+
"""
|
|
1766
|
+
...
|
|
1767
|
+
def ggml_scale(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1768
|
+
"""
|
|
1769
|
+
GGML_API struct ggml_tensor * ggml_scale(
|
|
1770
|
+
struct ggml_context * ctx,
|
|
1771
|
+
struct ggml_tensor * a,
|
|
1772
|
+
struct ggml_tensor * b);
|
|
1773
|
+
"""
|
|
1774
|
+
...
|
|
1775
|
+
def ggml_scale_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1776
|
+
"""
|
|
1777
|
+
in-place, returns view(a)
|
|
1778
|
+
|
|
1779
|
+
GGML_API struct ggml_tensor * ggml_scale_inplace(
|
|
1780
|
+
struct ggml_context * ctx,
|
|
1781
|
+
struct ggml_tensor * a,
|
|
1782
|
+
struct ggml_tensor * b);
|
|
1783
|
+
"""
|
|
1784
|
+
...
|
|
1785
|
+
def ggml_set(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, nb1: int, nb2: int, nb3: int, offset: int) -> ffi.CData:
|
|
1786
|
+
"""
|
|
1787
|
+
b -> view(a,offset,nb1,nb2,3), return modified a
|
|
1788
|
+
|
|
1789
|
+
GGML_API struct ggml_tensor * ggml_set(
|
|
1790
|
+
struct ggml_context * ctx,
|
|
1791
|
+
struct ggml_tensor * a,
|
|
1792
|
+
struct ggml_tensor * b,
|
|
1793
|
+
size_t nb1,
|
|
1794
|
+
size_t nb2,
|
|
1795
|
+
size_t nb3,
|
|
1796
|
+
size_t offset);
|
|
1797
|
+
"""
|
|
1798
|
+
...
|
|
1799
|
+
def ggml_set_1d(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, offset: int) -> ffi.CData:
|
|
1800
|
+
"""
|
|
1801
|
+
GGML_API struct ggml_tensor * ggml_set_1d(
|
|
1802
|
+
struct ggml_context * ctx,
|
|
1803
|
+
struct ggml_tensor * a,
|
|
1804
|
+
struct ggml_tensor * b,
|
|
1805
|
+
size_t offset);
|
|
1806
|
+
"""
|
|
1807
|
+
...
|
|
1808
|
+
def ggml_set_1d_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, offset: int) -> ffi.CData:
|
|
1809
|
+
"""
|
|
1810
|
+
GGML_API struct ggml_tensor * ggml_set_1d_inplace(
|
|
1811
|
+
struct ggml_context * ctx,
|
|
1812
|
+
struct ggml_tensor * a,
|
|
1813
|
+
struct ggml_tensor * b,
|
|
1814
|
+
size_t offset);
|
|
1815
|
+
"""
|
|
1816
|
+
...
|
|
1817
|
+
def ggml_set_2d(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, nb1: int, offset: int) -> ffi.CData:
|
|
1818
|
+
"""
|
|
1819
|
+
b -> view(a,offset,nb1,nb2,3), return modified a
|
|
1820
|
+
|
|
1821
|
+
GGML_API struct ggml_tensor * ggml_set_2d(
|
|
1822
|
+
struct ggml_context * ctx,
|
|
1823
|
+
struct ggml_tensor * a,
|
|
1824
|
+
struct ggml_tensor * b,
|
|
1825
|
+
size_t nb1,
|
|
1826
|
+
size_t offset);
|
|
1827
|
+
"""
|
|
1828
|
+
...
|
|
1829
|
+
def ggml_set_2d_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, nb1: int, offset: int) -> ffi.CData:
|
|
1830
|
+
"""
|
|
1831
|
+
b -> view(a,offset,nb1,nb2,3), return view(a)
|
|
1832
|
+
|
|
1833
|
+
GGML_API struct ggml_tensor * ggml_set_2d_inplace(
|
|
1834
|
+
struct ggml_context * ctx,
|
|
1835
|
+
struct ggml_tensor * a,
|
|
1836
|
+
struct ggml_tensor * b,
|
|
1837
|
+
size_t nb1,
|
|
1838
|
+
size_t offset);
|
|
1839
|
+
"""
|
|
1840
|
+
...
|
|
1841
|
+
def ggml_set_f32(tensor: ffi.CData, value: float) -> ffi.CData:
|
|
1842
|
+
""" GGML_API struct ggml_tensor * ggml_set_f32 (struct ggml_tensor * tensor, float value);"""
|
|
1843
|
+
...
|
|
1844
|
+
def ggml_set_f32_1d(tensor: ffi.CData, i: int, value: float) -> None:
|
|
1845
|
+
""" GGML_API void ggml_set_f32_1d(const struct ggml_tensor * tensor, int i, float value);"""
|
|
1846
|
+
...
|
|
1847
|
+
def ggml_set_i32(tensor: ffi.CData, value: int) -> ffi.CData:
|
|
1848
|
+
""" GGML_API struct ggml_tensor * ggml_set_i32 (struct ggml_tensor * tensor, int32_t value);"""
|
|
1849
|
+
...
|
|
1850
|
+
def ggml_set_i32_1d(tensor: ffi.CData, i: int, value: int) -> None:
|
|
1851
|
+
""" GGML_API void ggml_set_i32_1d(const struct ggml_tensor * tensor, int i, int32_t value);"""
|
|
1852
|
+
...
|
|
1853
|
+
def ggml_set_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData, nb1: int, nb2: int, nb3: int, offset: int) -> ffi.CData:
|
|
1854
|
+
"""
|
|
1855
|
+
b -> view(a,offset,nb1,nb2,3), return view(a)
|
|
1856
|
+
|
|
1857
|
+
GGML_API struct ggml_tensor * ggml_set_inplace(
|
|
1858
|
+
struct ggml_context * ctx,
|
|
1859
|
+
struct ggml_tensor * a,
|
|
1860
|
+
struct ggml_tensor * b,
|
|
1861
|
+
size_t nb1,
|
|
1862
|
+
size_t nb2,
|
|
1863
|
+
size_t nb3,
|
|
1864
|
+
size_t offset);
|
|
1865
|
+
"""
|
|
1866
|
+
...
|
|
1867
|
+
def ggml_set_name(tensor: ffi.CData, name: ffi.CData) -> ffi.CData:
|
|
1868
|
+
""" GGML_API struct ggml_tensor * ggml_set_name ( struct ggml_tensor * tensor, const char * name);"""
|
|
1869
|
+
...
|
|
1870
|
+
def ggml_set_no_alloc(ctx: ffi.CData, no_alloc: bool) -> None:
|
|
1871
|
+
""" GGML_API void ggml_set_no_alloc(struct ggml_context * ctx, bool no_alloc);"""
|
|
1872
|
+
...
|
|
1873
|
+
def ggml_set_param(ctx: ffi.CData, tensor: ffi.CData) -> None:
|
|
1874
|
+
"""
|
|
1875
|
+
GGML_API void ggml_set_param(
|
|
1876
|
+
struct ggml_context * ctx,
|
|
1877
|
+
struct ggml_tensor * tensor);
|
|
1878
|
+
"""
|
|
1879
|
+
...
|
|
1880
|
+
def ggml_set_scratch(ctx: ffi.CData, scratch: ffi.CData) -> int:
|
|
1881
|
+
""" GGML_API size_t ggml_set_scratch (struct ggml_context * ctx, struct ggml_scratch scratch);"""
|
|
1882
|
+
...
|
|
1883
|
+
def ggml_set_zero(tensor: ffi.CData) -> ffi.CData:
|
|
1884
|
+
""" GGML_API struct ggml_tensor * ggml_set_zero(struct ggml_tensor * tensor);"""
|
|
1885
|
+
...
|
|
1886
|
+
def ggml_sgn(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1887
|
+
"""
|
|
1888
|
+
GGML_API struct ggml_tensor * ggml_sgn(
|
|
1889
|
+
struct ggml_context * ctx,
|
|
1890
|
+
struct ggml_tensor * a);
|
|
1891
|
+
"""
|
|
1892
|
+
...
|
|
1893
|
+
def ggml_sgn_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1894
|
+
"""
|
|
1895
|
+
GGML_API struct ggml_tensor * ggml_sgn_inplace(
|
|
1896
|
+
struct ggml_context * ctx,
|
|
1897
|
+
struct ggml_tensor * a);
|
|
1898
|
+
"""
|
|
1899
|
+
...
|
|
1900
|
+
def ggml_silu(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1901
|
+
"""
|
|
1902
|
+
GGML_API struct ggml_tensor * ggml_silu(
|
|
1903
|
+
struct ggml_context * ctx,
|
|
1904
|
+
struct ggml_tensor * a);
|
|
1905
|
+
"""
|
|
1906
|
+
...
|
|
1907
|
+
def ggml_silu_back(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1908
|
+
"""
|
|
1909
|
+
a - x
|
|
1910
|
+
b - dy
|
|
1911
|
+
|
|
1912
|
+
GGML_API struct ggml_tensor * ggml_silu_back(
|
|
1913
|
+
struct ggml_context * ctx,
|
|
1914
|
+
struct ggml_tensor * a,
|
|
1915
|
+
struct ggml_tensor * b);
|
|
1916
|
+
"""
|
|
1917
|
+
...
|
|
1918
|
+
def ggml_silu_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1919
|
+
"""
|
|
1920
|
+
GGML_API struct ggml_tensor * ggml_silu_inplace(
|
|
1921
|
+
struct ggml_context * ctx,
|
|
1922
|
+
struct ggml_tensor * a);
|
|
1923
|
+
"""
|
|
1924
|
+
...
|
|
1925
|
+
def ggml_soft_max(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1926
|
+
"""
|
|
1927
|
+
GGML_API struct ggml_tensor * ggml_soft_max(
|
|
1928
|
+
struct ggml_context * ctx,
|
|
1929
|
+
struct ggml_tensor * a);
|
|
1930
|
+
"""
|
|
1931
|
+
...
|
|
1932
|
+
def ggml_soft_max_back(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1933
|
+
"""
|
|
1934
|
+
GGML_API struct ggml_tensor * ggml_soft_max_back(
|
|
1935
|
+
struct ggml_context * ctx,
|
|
1936
|
+
struct ggml_tensor * a,
|
|
1937
|
+
struct ggml_tensor * b);
|
|
1938
|
+
"""
|
|
1939
|
+
...
|
|
1940
|
+
def ggml_soft_max_back_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
1941
|
+
"""
|
|
1942
|
+
in-place, returns view(a)
|
|
1943
|
+
|
|
1944
|
+
GGML_API struct ggml_tensor * ggml_soft_max_back_inplace(
|
|
1945
|
+
struct ggml_context * ctx,
|
|
1946
|
+
struct ggml_tensor * a,
|
|
1947
|
+
struct ggml_tensor * b);
|
|
1948
|
+
"""
|
|
1949
|
+
...
|
|
1950
|
+
def ggml_soft_max_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1951
|
+
"""
|
|
1952
|
+
in-place, returns view(a)
|
|
1953
|
+
|
|
1954
|
+
GGML_API struct ggml_tensor * ggml_soft_max_inplace(
|
|
1955
|
+
struct ggml_context * ctx,
|
|
1956
|
+
struct ggml_tensor * a);
|
|
1957
|
+
"""
|
|
1958
|
+
...
|
|
1959
|
+
def ggml_sqr(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1960
|
+
"""
|
|
1961
|
+
GGML_API struct ggml_tensor * ggml_sqr(
|
|
1962
|
+
struct ggml_context * ctx,
|
|
1963
|
+
struct ggml_tensor * a);
|
|
1964
|
+
"""
|
|
1965
|
+
...
|
|
1966
|
+
def ggml_sqr_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1967
|
+
"""
|
|
1968
|
+
GGML_API struct ggml_tensor * ggml_sqr_inplace(
|
|
1969
|
+
struct ggml_context * ctx,
|
|
1970
|
+
struct ggml_tensor * a);
|
|
1971
|
+
"""
|
|
1972
|
+
...
|
|
1973
|
+
def ggml_sqrt(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1974
|
+
"""
|
|
1975
|
+
GGML_API struct ggml_tensor * ggml_sqrt(
|
|
1976
|
+
struct ggml_context * ctx,
|
|
1977
|
+
struct ggml_tensor * a);
|
|
1978
|
+
"""
|
|
1979
|
+
...
|
|
1980
|
+
def ggml_sqrt_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1981
|
+
"""
|
|
1982
|
+
GGML_API struct ggml_tensor * ggml_sqrt_inplace(
|
|
1983
|
+
struct ggml_context * ctx,
|
|
1984
|
+
struct ggml_tensor * a);
|
|
1985
|
+
"""
|
|
1986
|
+
...
|
|
1987
|
+
def ggml_step(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1988
|
+
"""
|
|
1989
|
+
GGML_API struct ggml_tensor * ggml_step(
|
|
1990
|
+
struct ggml_context * ctx,
|
|
1991
|
+
struct ggml_tensor * a);
|
|
1992
|
+
"""
|
|
1993
|
+
...
|
|
1994
|
+
def ggml_step_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
1995
|
+
"""
|
|
1996
|
+
GGML_API struct ggml_tensor * ggml_step_inplace(
|
|
1997
|
+
struct ggml_context * ctx,
|
|
1998
|
+
struct ggml_tensor * a);
|
|
1999
|
+
"""
|
|
2000
|
+
...
|
|
2001
|
+
def ggml_sub(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
2002
|
+
"""
|
|
2003
|
+
GGML_API struct ggml_tensor * ggml_sub(
|
|
2004
|
+
struct ggml_context * ctx,
|
|
2005
|
+
struct ggml_tensor * a,
|
|
2006
|
+
struct ggml_tensor * b);
|
|
2007
|
+
"""
|
|
2008
|
+
...
|
|
2009
|
+
def ggml_sub_inplace(ctx: ffi.CData, a: ffi.CData, b: ffi.CData) -> ffi.CData:
|
|
2010
|
+
"""
|
|
2011
|
+
GGML_API struct ggml_tensor * ggml_sub_inplace(
|
|
2012
|
+
struct ggml_context * ctx,
|
|
2013
|
+
struct ggml_tensor * a,
|
|
2014
|
+
struct ggml_tensor * b);
|
|
2015
|
+
"""
|
|
2016
|
+
...
|
|
2017
|
+
def ggml_sum(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
2018
|
+
"""
|
|
2019
|
+
return scalar
|
|
2020
|
+
|
|
2021
|
+
GGML_API struct ggml_tensor * ggml_sum(
|
|
2022
|
+
struct ggml_context * ctx,
|
|
2023
|
+
struct ggml_tensor * a);
|
|
2024
|
+
"""
|
|
2025
|
+
...
|
|
2026
|
+
def ggml_sum_rows(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
2027
|
+
"""
|
|
2028
|
+
sums along rows, with input shape [a,b,c,d] return shape [1,b,c,d]
|
|
2029
|
+
|
|
2030
|
+
GGML_API struct ggml_tensor * ggml_sum_rows(
|
|
2031
|
+
struct ggml_context * ctx,
|
|
2032
|
+
struct ggml_tensor * a);
|
|
2033
|
+
"""
|
|
2034
|
+
...
|
|
2035
|
+
def ggml_tanh(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
2036
|
+
"""
|
|
2037
|
+
GGML_API struct ggml_tensor * ggml_tanh(
|
|
2038
|
+
struct ggml_context * ctx,
|
|
2039
|
+
struct ggml_tensor * a);
|
|
2040
|
+
"""
|
|
2041
|
+
...
|
|
2042
|
+
def ggml_tanh_inplace(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
2043
|
+
"""
|
|
2044
|
+
GGML_API struct ggml_tensor * ggml_tanh_inplace(
|
|
2045
|
+
struct ggml_context * ctx,
|
|
2046
|
+
struct ggml_tensor * a);
|
|
2047
|
+
"""
|
|
2048
|
+
...
|
|
2049
|
+
def ggml_tensor_overhead() -> int:
|
|
2050
|
+
"""
|
|
2051
|
+
use this to compute the memory overhead of a tensor
|
|
2052
|
+
|
|
2053
|
+
GGML_API size_t ggml_tensor_overhead(void);
|
|
2054
|
+
"""
|
|
2055
|
+
...
|
|
2056
|
+
def ggml_time_init() -> None:
|
|
2057
|
+
""" GGML_API void ggml_time_init(void); // call this once at the beginning of the program"""
|
|
2058
|
+
...
|
|
2059
|
+
def ggml_time_ms() -> int:
|
|
2060
|
+
""" GGML_API int64_t ggml_time_ms(void);"""
|
|
2061
|
+
...
|
|
2062
|
+
def ggml_time_us() -> int:
|
|
2063
|
+
""" GGML_API int64_t ggml_time_us(void);"""
|
|
2064
|
+
...
|
|
2065
|
+
def ggml_transpose(ctx: ffi.CData, a: ffi.CData) -> ffi.CData:
|
|
2066
|
+
"""
|
|
2067
|
+
alias for ggml_permute(ctx, a, 1, 0, 2, 3)
|
|
2068
|
+
|
|
2069
|
+
GGML_API struct ggml_tensor * ggml_transpose(
|
|
2070
|
+
struct ggml_context * ctx,
|
|
2071
|
+
struct ggml_tensor * a);
|
|
2072
|
+
"""
|
|
2073
|
+
...
|
|
2074
|
+
def ggml_type_name(type: int) -> ffi.CData:
|
|
2075
|
+
""" GGML_API const char * ggml_type_name(enum ggml_type type);"""
|
|
2076
|
+
...
|
|
2077
|
+
def ggml_type_size(type: int) -> int:
|
|
2078
|
+
""" GGML_API size_t ggml_type_size (enum ggml_type type); // size in bytes for all elements in a block"""
|
|
2079
|
+
...
|
|
2080
|
+
def ggml_type_sizef(type: int) -> float:
|
|
2081
|
+
""" GGML_API float ggml_type_sizef(enum ggml_type type); // ggml_type_size()/ggml_blck_size() as float"""
|
|
2082
|
+
...
|
|
2083
|
+
def ggml_unary(ctx: ffi.CData, a: ffi.CData, op: int) -> ffi.CData:
|
|
2084
|
+
"""
|
|
2085
|
+
GGML_API struct ggml_tensor * ggml_unary(
|
|
2086
|
+
struct ggml_context * ctx,
|
|
2087
|
+
struct ggml_tensor * a,
|
|
2088
|
+
enum ggml_unary_op op);
|
|
2089
|
+
"""
|
|
2090
|
+
...
|
|
2091
|
+
def ggml_unary_inplace(ctx: ffi.CData, a: ffi.CData, op: int) -> ffi.CData:
|
|
2092
|
+
"""
|
|
2093
|
+
GGML_API struct ggml_tensor * ggml_unary_inplace(
|
|
2094
|
+
struct ggml_context * ctx,
|
|
2095
|
+
struct ggml_tensor * a,
|
|
2096
|
+
enum ggml_unary_op op);
|
|
2097
|
+
"""
|
|
2098
|
+
...
|
|
2099
|
+
def ggml_used_mem(ctx: ffi.CData) -> int:
|
|
2100
|
+
""" GGML_API size_t ggml_used_mem(const struct ggml_context * ctx);"""
|
|
2101
|
+
...
|
|
2102
|
+
def ggml_vec_dot_q2_K_q8_K(n: int, s: ffi.CData, vx: ffi.CData, vy: ffi.CData) -> None:
|
|
2103
|
+
"""
|
|
2104
|
+
Dot product
|
|
2105
|
+
|
|
2106
|
+
void ggml_vec_dot_q2_K_q8_K(int n, float * restrict s, const void * restrict vx, const void * restrict vy);
|
|
2107
|
+
"""
|
|
2108
|
+
...
|
|
2109
|
+
def ggml_vec_dot_q3_K_q8_K(n: int, s: ffi.CData, vx: ffi.CData, vy: ffi.CData) -> None:
|
|
2110
|
+
"""void ggml_vec_dot_q3_K_q8_K(int n, float * restrict s, const void * restrict vx, const void * restrict vy);"""
|
|
2111
|
+
...
|
|
2112
|
+
def ggml_vec_dot_q4_K_q8_K(n: int, s: ffi.CData, vx: ffi.CData, vy: ffi.CData) -> None:
|
|
2113
|
+
"""void ggml_vec_dot_q4_K_q8_K(int n, float * restrict s, const void * restrict vx, const void * restrict vy);"""
|
|
2114
|
+
...
|
|
2115
|
+
def ggml_vec_dot_q5_K_q8_K(n: int, s: ffi.CData, vx: ffi.CData, vy: ffi.CData) -> None:
|
|
2116
|
+
"""void ggml_vec_dot_q5_K_q8_K(int n, float * restrict s, const void * restrict vx, const void * restrict vy);"""
|
|
2117
|
+
...
|
|
2118
|
+
def ggml_vec_dot_q6_K_q8_K(n: int, s: ffi.CData, vx: ffi.CData, vy: ffi.CData) -> None:
|
|
2119
|
+
"""void ggml_vec_dot_q6_K_q8_K(int n, float * restrict s, const void * restrict vx, const void * restrict vy);"""
|
|
2120
|
+
...
|
|
2121
|
+
def ggml_view_1d(ctx: ffi.CData, a: ffi.CData, ne0: int, offset: int) -> ffi.CData:
|
|
2122
|
+
"""
|
|
2123
|
+
offset in bytes
|
|
2124
|
+
|
|
2125
|
+
GGML_API struct ggml_tensor * ggml_view_1d(
|
|
2126
|
+
struct ggml_context * ctx,
|
|
2127
|
+
struct ggml_tensor * a,
|
|
2128
|
+
int64_t ne0,
|
|
2129
|
+
size_t offset);
|
|
2130
|
+
"""
|
|
2131
|
+
...
|
|
2132
|
+
def ggml_view_2d(ctx: ffi.CData, a: ffi.CData, ne0: int, ne1: int, nb1: int, offset: int) -> ffi.CData:
|
|
2133
|
+
"""
|
|
2134
|
+
GGML_API struct ggml_tensor * ggml_view_2d(
|
|
2135
|
+
struct ggml_context * ctx,
|
|
2136
|
+
struct ggml_tensor * a,
|
|
2137
|
+
int64_t ne0,
|
|
2138
|
+
int64_t ne1,
|
|
2139
|
+
size_t nb1, // row stride in bytes
|
|
2140
|
+
size_t offset);
|
|
2141
|
+
"""
|
|
2142
|
+
...
|
|
2143
|
+
def ggml_view_3d(ctx: ffi.CData, a: ffi.CData, ne0: int, ne1: int, ne2: int, nb1: int, nb2: int, offset: int) -> ffi.CData:
|
|
2144
|
+
"""
|
|
2145
|
+
GGML_API struct ggml_tensor * ggml_view_3d(
|
|
2146
|
+
struct ggml_context * ctx,
|
|
2147
|
+
struct ggml_tensor * a,
|
|
2148
|
+
int64_t ne0,
|
|
2149
|
+
int64_t ne1,
|
|
2150
|
+
int64_t ne2,
|
|
2151
|
+
size_t nb1, // row stride in bytes
|
|
2152
|
+
size_t nb2, // slice stride in bytes
|
|
2153
|
+
size_t offset);
|
|
2154
|
+
"""
|
|
2155
|
+
...
|
|
2156
|
+
def ggml_view_4d(ctx: ffi.CData, a: ffi.CData, ne0: int, ne1: int, ne2: int, ne3: int, nb1: int, nb2: int, nb3: int, offset: int) -> ffi.CData:
|
|
2157
|
+
"""
|
|
2158
|
+
GGML_API struct ggml_tensor * ggml_view_4d(
|
|
2159
|
+
struct ggml_context * ctx,
|
|
2160
|
+
struct ggml_tensor * a,
|
|
2161
|
+
int64_t ne0,
|
|
2162
|
+
int64_t ne1,
|
|
2163
|
+
int64_t ne2,
|
|
2164
|
+
int64_t ne3,
|
|
2165
|
+
size_t nb1, // row stride in bytes
|
|
2166
|
+
size_t nb2, // slice stride in bytes
|
|
2167
|
+
size_t nb3,
|
|
2168
|
+
size_t offset);
|
|
2169
|
+
"""
|
|
2170
|
+
...
|
|
2171
|
+
def ggml_view_tensor(ctx: ffi.CData, src: ffi.CData) -> ffi.CData:
|
|
2172
|
+
""" GGML_API struct ggml_tensor * ggml_view_tensor(struct ggml_context * ctx, const struct ggml_tensor * src);"""
|
|
2173
|
+
...
|
|
2174
|
+
def ggml_win_part(ctx: ffi.CData, a: ffi.CData, w: int) -> ffi.CData:
|
|
2175
|
+
"""
|
|
2176
|
+
partition into non-overlapping windows with padding if needed
|
|
2177
|
+
example:
|
|
2178
|
+
a: 768 64 64 1
|
|
2179
|
+
w: 14
|
|
2180
|
+
res: 768 14 14 25
|
|
2181
|
+
used in sam
|
|
2182
|
+
|
|
2183
|
+
GGML_API struct ggml_tensor * ggml_win_part(
|
|
2184
|
+
struct ggml_context * ctx,
|
|
2185
|
+
struct ggml_tensor * a,
|
|
2186
|
+
int w);
|
|
2187
|
+
"""
|
|
2188
|
+
...
|
|
2189
|
+
def ggml_win_unpart(ctx: ffi.CData, a: ffi.CData, w0: int, h0: int, w: int) -> ffi.CData:
|
|
2190
|
+
"""
|
|
2191
|
+
reverse of ggml_win_part
|
|
2192
|
+
used in sam
|
|
2193
|
+
|
|
2194
|
+
GGML_API struct ggml_tensor * ggml_win_unpart(
|
|
2195
|
+
struct ggml_context * ctx,
|
|
2196
|
+
struct ggml_tensor * a,
|
|
2197
|
+
int w0,
|
|
2198
|
+
int h0,
|
|
2199
|
+
int w);
|
|
2200
|
+
"""
|
|
2201
|
+
...
|
|
2202
|
+
def gguf_add_tensor(ctx: ffi.CData, tensor: ffi.CData) -> None:
|
|
2203
|
+
"""
|
|
2204
|
+
manage tensor info
|
|
2205
|
+
|
|
2206
|
+
GGML_API void gguf_add_tensor(struct gguf_context * ctx, const struct ggml_tensor * tensor);
|
|
2207
|
+
"""
|
|
2208
|
+
...
|
|
2209
|
+
def gguf_find_key(ctx: ffi.CData, key: ffi.CData) -> int:
|
|
2210
|
+
""" GGML_API int gguf_find_key(struct gguf_context * ctx, const char * key);"""
|
|
2211
|
+
...
|
|
2212
|
+
def gguf_find_tensor(ctx: ffi.CData, name: ffi.CData) -> int:
|
|
2213
|
+
""" GGML_API int gguf_find_tensor (struct gguf_context * ctx, const char * name);"""
|
|
2214
|
+
...
|
|
2215
|
+
def gguf_free(ctx: ffi.CData) -> None:
|
|
2216
|
+
""" GGML_API void gguf_free(struct gguf_context * ctx);"""
|
|
2217
|
+
...
|
|
2218
|
+
def gguf_get_alignment(ctx: ffi.CData) -> int:
|
|
2219
|
+
""" GGML_API size_t gguf_get_alignment (struct gguf_context * ctx);"""
|
|
2220
|
+
...
|
|
2221
|
+
def gguf_get_arr_data(ctx: ffi.CData, i: int) -> ffi.CData:
|
|
2222
|
+
""" GGML_API const void * gguf_get_arr_data(struct gguf_context * ctx, int i);"""
|
|
2223
|
+
...
|
|
2224
|
+
def gguf_get_arr_n(ctx: ffi.CData, i: int) -> int:
|
|
2225
|
+
""" GGML_API int gguf_get_arr_n (struct gguf_context * ctx, int i);"""
|
|
2226
|
+
...
|
|
2227
|
+
def gguf_get_arr_str(ctx: ffi.CData, key_id: int, i: int) -> ffi.CData:
|
|
2228
|
+
""" GGML_API const char * gguf_get_arr_str (struct gguf_context * ctx, int key_id, int i);"""
|
|
2229
|
+
...
|
|
2230
|
+
def gguf_get_arr_type(ctx: ffi.CData, i: int) -> int:
|
|
2231
|
+
""" GGML_API enum gguf_type gguf_get_arr_type(struct gguf_context * ctx, int i);"""
|
|
2232
|
+
...
|
|
2233
|
+
def gguf_get_data(ctx: ffi.CData) -> ffi.CData:
|
|
2234
|
+
""" GGML_API void * gguf_get_data (struct gguf_context * ctx);"""
|
|
2235
|
+
...
|
|
2236
|
+
def gguf_get_data_offset(ctx: ffi.CData) -> int:
|
|
2237
|
+
""" GGML_API size_t gguf_get_data_offset(struct gguf_context * ctx);"""
|
|
2238
|
+
...
|
|
2239
|
+
def gguf_get_key(ctx: ffi.CData, i: int) -> ffi.CData:
|
|
2240
|
+
""" GGML_API const char * gguf_get_key (struct gguf_context * ctx, int i);"""
|
|
2241
|
+
...
|
|
2242
|
+
def gguf_get_kv_type(ctx: ffi.CData, i: int) -> int:
|
|
2243
|
+
""" GGML_API enum gguf_type gguf_get_kv_type (struct gguf_context * ctx, int i);"""
|
|
2244
|
+
...
|
|
2245
|
+
def gguf_get_meta_data(ctx: ffi.CData, data: ffi.CData) -> None:
|
|
2246
|
+
""" GGML_API void gguf_get_meta_data(struct gguf_context * ctx, void * data);"""
|
|
2247
|
+
...
|
|
2248
|
+
def gguf_get_meta_size(ctx: ffi.CData) -> int:
|
|
2249
|
+
"""
|
|
2250
|
+
get the size in bytes of the meta data (header, kv pairs, tensor info) including padding
|
|
2251
|
+
|
|
2252
|
+
GGML_API size_t gguf_get_meta_size(struct gguf_context * ctx);
|
|
2253
|
+
"""
|
|
2254
|
+
...
|
|
2255
|
+
def gguf_get_n_kv(ctx: ffi.CData) -> int:
|
|
2256
|
+
""" GGML_API int gguf_get_n_kv(struct gguf_context * ctx);"""
|
|
2257
|
+
...
|
|
2258
|
+
def gguf_get_n_tensors(ctx: ffi.CData) -> int:
|
|
2259
|
+
""" GGML_API int gguf_get_n_tensors (struct gguf_context * ctx);"""
|
|
2260
|
+
...
|
|
2261
|
+
def gguf_get_tensor_name(ctx: ffi.CData, i: int) -> ffi.CData:
|
|
2262
|
+
""" GGML_API char * gguf_get_tensor_name (struct gguf_context * ctx, int i);"""
|
|
2263
|
+
...
|
|
2264
|
+
def gguf_get_tensor_offset(ctx: ffi.CData, i: int) -> int:
|
|
2265
|
+
""" GGML_API size_t gguf_get_tensor_offset(struct gguf_context * ctx, int i);"""
|
|
2266
|
+
...
|
|
2267
|
+
def gguf_get_val_bool(ctx: ffi.CData, i: int) -> bool:
|
|
2268
|
+
""" GGML_API bool gguf_get_val_bool(struct gguf_context * ctx, int i);"""
|
|
2269
|
+
...
|
|
2270
|
+
def gguf_get_val_f32(ctx: ffi.CData, i: int) -> float:
|
|
2271
|
+
""" GGML_API float gguf_get_val_f32 (struct gguf_context * ctx, int i);"""
|
|
2272
|
+
...
|
|
2273
|
+
def gguf_get_val_i16(ctx: ffi.CData, i: int) -> int:
|
|
2274
|
+
""" GGML_API int16_t gguf_get_val_i16 (struct gguf_context * ctx, int i);"""
|
|
2275
|
+
...
|
|
2276
|
+
def gguf_get_val_i32(ctx: ffi.CData, i: int) -> int:
|
|
2277
|
+
""" GGML_API int32_t gguf_get_val_i32 (struct gguf_context * ctx, int i);"""
|
|
2278
|
+
...
|
|
2279
|
+
def gguf_get_val_i8(ctx: ffi.CData, i: int) -> int:
|
|
2280
|
+
""" GGML_API int8_t gguf_get_val_i8 (struct gguf_context * ctx, int i);"""
|
|
2281
|
+
...
|
|
2282
|
+
def gguf_get_val_str(ctx: ffi.CData, i: int) -> ffi.CData:
|
|
2283
|
+
""" GGML_API const char * gguf_get_val_str (struct gguf_context * ctx, int i);"""
|
|
2284
|
+
...
|
|
2285
|
+
def gguf_get_val_u16(ctx: ffi.CData, i: int) -> int:
|
|
2286
|
+
""" GGML_API uint16_t gguf_get_val_u16 (struct gguf_context * ctx, int i);"""
|
|
2287
|
+
...
|
|
2288
|
+
def gguf_get_val_u32(ctx: ffi.CData, i: int) -> int:
|
|
2289
|
+
""" GGML_API uint32_t gguf_get_val_u32 (struct gguf_context * ctx, int i);"""
|
|
2290
|
+
...
|
|
2291
|
+
def gguf_get_val_u8(ctx: ffi.CData, i: int) -> int:
|
|
2292
|
+
"""
|
|
2293
|
+
results are undefined if the wrong type is used for the key
|
|
2294
|
+
|
|
2295
|
+
GGML_API uint8_t gguf_get_val_u8 (struct gguf_context * ctx, int i);
|
|
2296
|
+
"""
|
|
2297
|
+
...
|
|
2298
|
+
def gguf_get_version(ctx: ffi.CData) -> int:
|
|
2299
|
+
""" GGML_API int gguf_get_version (struct gguf_context * ctx);"""
|
|
2300
|
+
...
|
|
2301
|
+
def gguf_init_empty() -> ffi.CData:
|
|
2302
|
+
""" GGML_API struct gguf_context * gguf_init_empty(void);"""
|
|
2303
|
+
...
|
|
2304
|
+
def gguf_init_from_file(fname: ffi.CData, params: ffi.CData) -> ffi.CData:
|
|
2305
|
+
""" GGML_API struct gguf_context * gguf_init_from_file(const char * fname, struct gguf_init_params params);"""
|
|
2306
|
+
...
|
|
2307
|
+
def gguf_set_arr_data(ctx: ffi.CData, key: ffi.CData, type: int, data: ffi.CData, n: int) -> None:
|
|
2308
|
+
""" GGML_API void gguf_set_arr_data(struct gguf_context * ctx, const char * key, enum gguf_type type, const void * data, int n);"""
|
|
2309
|
+
...
|
|
2310
|
+
def gguf_set_arr_str(ctx: ffi.CData, key: ffi.CData, data: ffi.CData, n: int) -> None:
|
|
2311
|
+
""" GGML_API void gguf_set_arr_str (struct gguf_context * ctx, const char * key, const char ** data, int n);"""
|
|
2312
|
+
...
|
|
2313
|
+
def gguf_set_kv(ctx: ffi.CData, src: ffi.CData) -> None:
|
|
2314
|
+
"""
|
|
2315
|
+
set or add KV pairs from another context
|
|
2316
|
+
|
|
2317
|
+
GGML_API void gguf_set_kv(struct gguf_context * ctx, struct gguf_context * src);
|
|
2318
|
+
"""
|
|
2319
|
+
...
|
|
2320
|
+
def gguf_set_tensor_data(ctx: ffi.CData, name: ffi.CData, data: ffi.CData, size: int) -> None:
|
|
2321
|
+
""" GGML_API void gguf_set_tensor_data(struct gguf_context * ctx, const char * name, const void * data, size_t size);"""
|
|
2322
|
+
...
|
|
2323
|
+
def gguf_set_tensor_type(ctx: ffi.CData, name: ffi.CData, type: int) -> None:
|
|
2324
|
+
""" GGML_API void gguf_set_tensor_type(struct gguf_context * ctx, const char * name, enum ggml_type type);"""
|
|
2325
|
+
...
|
|
2326
|
+
def gguf_set_val_bool(ctx: ffi.CData, key: ffi.CData, val: bool) -> None:
|
|
2327
|
+
""" GGML_API void gguf_set_val_bool(struct gguf_context * ctx, const char * key, bool val);"""
|
|
2328
|
+
...
|
|
2329
|
+
def gguf_set_val_f32(ctx: ffi.CData, key: ffi.CData, val: float) -> None:
|
|
2330
|
+
""" GGML_API void gguf_set_val_f32 (struct gguf_context * ctx, const char * key, float val);"""
|
|
2331
|
+
...
|
|
2332
|
+
def gguf_set_val_i16(ctx: ffi.CData, key: ffi.CData, val: int) -> None:
|
|
2333
|
+
""" GGML_API void gguf_set_val_i16 (struct gguf_context * ctx, const char * key, int16_t val);"""
|
|
2334
|
+
...
|
|
2335
|
+
def gguf_set_val_i32(ctx: ffi.CData, key: ffi.CData, val: int) -> None:
|
|
2336
|
+
""" GGML_API void gguf_set_val_i32 (struct gguf_context * ctx, const char * key, int32_t val);"""
|
|
2337
|
+
...
|
|
2338
|
+
def gguf_set_val_i8(ctx: ffi.CData, key: ffi.CData, val: int) -> None:
|
|
2339
|
+
""" GGML_API void gguf_set_val_i8 (struct gguf_context * ctx, const char * key, int8_t val);"""
|
|
2340
|
+
...
|
|
2341
|
+
def gguf_set_val_str(ctx: ffi.CData, key: ffi.CData, val: ffi.CData) -> None:
|
|
2342
|
+
""" GGML_API void gguf_set_val_str (struct gguf_context * ctx, const char * key, const char * val);"""
|
|
2343
|
+
...
|
|
2344
|
+
def gguf_set_val_u16(ctx: ffi.CData, key: ffi.CData, val: int) -> None:
|
|
2345
|
+
""" GGML_API void gguf_set_val_u16 (struct gguf_context * ctx, const char * key, uint16_t val);"""
|
|
2346
|
+
...
|
|
2347
|
+
def gguf_set_val_u32(ctx: ffi.CData, key: ffi.CData, val: int) -> None:
|
|
2348
|
+
""" GGML_API void gguf_set_val_u32 (struct gguf_context * ctx, const char * key, uint32_t val);"""
|
|
2349
|
+
...
|
|
2350
|
+
def gguf_set_val_u8(ctx: ffi.CData, key: ffi.CData, val: int) -> None:
|
|
2351
|
+
"""
|
|
2352
|
+
overrides existing values or adds a new one
|
|
2353
|
+
|
|
2354
|
+
GGML_API void gguf_set_val_u8 (struct gguf_context * ctx, const char * key, uint8_t val);
|
|
2355
|
+
"""
|
|
2356
|
+
...
|
|
2357
|
+
def gguf_type_name(type: int) -> ffi.CData:
|
|
2358
|
+
""" GGML_API const char * gguf_type_name(enum gguf_type type);"""
|
|
2359
|
+
...
|
|
2360
|
+
def gguf_write_to_file(ctx: ffi.CData, fname: ffi.CData, only_meta: bool) -> None:
|
|
2361
|
+
"""
|
|
2362
|
+
write the entire context to a binary file
|
|
2363
|
+
|
|
2364
|
+
GGML_API void gguf_write_to_file(struct gguf_context * ctx, const char * fname, bool only_meta);
|
|
2365
|
+
"""
|
|
2366
|
+
...
|
|
2367
|
+
def quantize_row_q2_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2368
|
+
"""void quantize_row_q2_K(const float * restrict x, void * restrict y, int k);"""
|
|
2369
|
+
...
|
|
2370
|
+
def quantize_row_q2_K_reference(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2371
|
+
"""
|
|
2372
|
+
Quantization
|
|
2373
|
+
|
|
2374
|
+
void quantize_row_q2_K_reference(const float * restrict x, block_q2_K * restrict y, int k);
|
|
2375
|
+
"""
|
|
2376
|
+
...
|
|
2377
|
+
def quantize_row_q3_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2378
|
+
"""void quantize_row_q3_K(const float * restrict x, void * restrict y, int k);"""
|
|
2379
|
+
...
|
|
2380
|
+
def quantize_row_q3_K_reference(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2381
|
+
"""void quantize_row_q3_K_reference(const float * restrict x, block_q3_K * restrict y, int k);"""
|
|
2382
|
+
...
|
|
2383
|
+
def quantize_row_q4_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2384
|
+
"""void quantize_row_q4_K(const float * restrict x, void * restrict y, int k);"""
|
|
2385
|
+
...
|
|
2386
|
+
def quantize_row_q4_K_reference(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2387
|
+
"""void quantize_row_q4_K_reference(const float * restrict x, block_q4_K * restrict y, int k);"""
|
|
2388
|
+
...
|
|
2389
|
+
def quantize_row_q5_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2390
|
+
"""void quantize_row_q5_K(const float * restrict x, void * restrict y, int k);"""
|
|
2391
|
+
...
|
|
2392
|
+
def quantize_row_q5_K_reference(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2393
|
+
"""void quantize_row_q5_K_reference(const float * restrict x, block_q5_K * restrict y, int k);"""
|
|
2394
|
+
...
|
|
2395
|
+
def quantize_row_q6_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2396
|
+
"""void quantize_row_q6_K(const float * restrict x, void * restrict y, int k);"""
|
|
2397
|
+
...
|
|
2398
|
+
def quantize_row_q6_K_reference(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2399
|
+
"""void quantize_row_q6_K_reference(const float * restrict x, block_q6_K * restrict y, int k);"""
|
|
2400
|
+
...
|
|
2401
|
+
def quantize_row_q8_K(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2402
|
+
"""void quantize_row_q8_K(const float * restrict x, void * restrict y, int k);"""
|
|
2403
|
+
...
|
|
2404
|
+
def quantize_row_q8_K_reference(x: ffi.CData, y: ffi.CData, k: int) -> None:
|
|
2405
|
+
"""void quantize_row_q8_K_reference(const float * restrict x, block_q8_K * restrict y, int k);"""
|
|
2406
|
+
...
|