]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : add support for Chameleon (#8543)
authornopperl <redacted>
Sat, 28 Sep 2024 12:08:43 +0000 (12:08 +0000)
committerGitHub <redacted>
Sat, 28 Sep 2024 12:08:43 +0000 (15:08 +0300)
commit9a913110cf471a8287ac06c43cbe307d3cf6df99
tree9ca5b09b0002f1f87a07393c3f76751c41241b2a
parent43bcdd9703ec19af7d2a519640b5ed6f4aac3d53
llama : add support for Chameleon (#8543)

* convert chameleon hf to gguf

* add chameleon tokenizer tests

* fix lint

* implement chameleon graph

* add swin norm param

* return qk norm weights and biases to original format

* implement swin norm

* suppress image token output

* rem tabs

* add comment to conversion

* fix ci

* check for k norm separately

* adapt to new lora implementation

* fix layer input for swin norm

* move swin_norm in gguf writer

* add comment regarding special token regex in chameleon pre-tokenizer

* Update src/llama.cpp

Co-authored-by: compilade <redacted>
* fix punctuation regex in chameleon pre-tokenizer (@compilade)

Co-authored-by: compilade <redacted>
* fix lint

* trigger ci

---------

Co-authored-by: compilade <redacted>
convert_hf_to_gguf.py
convert_hf_to_gguf_update.py
gguf-py/gguf/constants.py
gguf-py/gguf/gguf_writer.py
gguf-py/gguf/tensor_mapping.py
include/llama.h
models/ggml-vocab-chameleon.gguf.inp [new file with mode: 0644]
models/ggml-vocab-chameleon.gguf.out [new file with mode: 0644]
src/llama-vocab.cpp
src/llama.cpp