llama.cpp/ggml/src/ggml-cann
HimariO ba1cb19cdd
Some checks failed
flake8 Lint / Lint (push) Waiting to run
Python Type-Check / pyright type-check (push) Waiting to run
Python check requirements.txt / check-requirements (push) Has been cancelled
llama : add Qwen2VL support + multimodal RoPE (#10361)
* Barebone Qwen2VL LLM convertor

* Add Qwen2VL cli entrypoint

* [WIP] add qwen2vl arch

* Verify m-rope output

* Add vl-rope/2d-rope support for qwen2vl ViT

* update qwen2vl cli tool

* update 5D tensor op workaround

* [WIP] qwen2vl vision model

* make batch and clip utils compatible with qwen2vl

* [WIP] create inference workflow, gguf convert script but fix

* correcting vision-rope behavior, add the missing last layer back to ViT

* add arg parser to qwen2vl_surgery

* replace variable size array with vector

* cuda-gdb cmake preset

* add fp32 mrope, vision rope kernel

* add fp16 support for qwen2vl and m-rope

* add `GGML_ROPE_TYPE_MROPE`, `GGML_ROPE_TYPE_VISION`

* fix rope op mode switching, out dated func args

* update `llama_hparams`

* update to keep up stream changes

* resolve linter, test errors

* add makefile entry, update speical image padding token

* add mrope unit test, fix few compiler warnings

* rename `mrope` related function, params

* minor updates on debug util, bug fixs

* add `m-rope` testcase to `test-backend-ops`

* Apply suggestions from code review

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>

* fix traililng whitespce

* store `llama_hparams.rope_sections` with fixed size array

* update position id tensor size check in GGML_OP_ROPE

* minor updates

* update `ggml_backend_*_supports_op` of unsupported backends

* remote old `rope_section` compare operator

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
2024-12-14 14:43:46 +02:00
..
kernels CANN: Fix SOC_TYPE compile bug (#10519) 2024-11-28 15:25:24 +08:00
.clang-format [CANN] Add Ascend NPU backend (#6035) 2024-07-17 14:23:50 +03:00
acl_tensor.cpp cann: support q4_0 model (#8822) 2024-08-05 12:22:30 +08:00
acl_tensor.h cann: support q4_0 model (#8822) 2024-08-05 12:22:30 +08:00
aclnn_ops.cpp CANN: RoPE operator optimization (#10563) 2024-11-29 14:46:55 +08:00
aclnn_ops.h [CANN] Add Ascend NPU backend (#6035) 2024-07-17 14:23:50 +03:00
CMakeLists.txt CANN: Fix SOC_TYPE compile bug (#10519) 2024-11-28 15:25:24 +08:00
common.h CANN: Improve the Inferencing Performance for Ascend NPU Device (#10454) 2024-11-26 18:08:37 +08:00
Doxyfile cann : fix doxy (ggml/0) 2024-09-08 11:05:55 +03:00
ggml-cann.cpp llama : add Qwen2VL support + multimodal RoPE (#10361) 2024-12-14 14:43:46 +02:00