Download tools/mtmd/models/gemma4ua.cpp from Brunobkr/llama.cpp_AlgMor24_github: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/9f63da05cd17e144eb118af61a784286378961ba/tools/mtmd/models/gemma4ua.cpp
- Command line
-
hf download hf://datasets/Brunobkr/llama.cpp_AlgMor24_github@9f63da05cd17e144eb118af61a784286378961ba/tools/mtmd/models/gemma4ua.cpp
-
curl -L -o gemma4ua.cpp https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/9f63da05cd17e144eb118af61a784286378961ba/tools/mtmd/models/gemma4ua.cpp
485 Bytes
| ggml_cgraph * clip_graph_gemma4ua::build() { | |
| ggml_tensor * inp = build_inp_raw(1); | |
| auto cur = ggml_cont(ctx0, ggml_permute(ctx0, inp, 1, 0, 2, 3)); | |
| // Gemma4UnifiedMultimodalEmbedder | |
| { | |
| // embedding_pre_projection_norm | |
| cur = ggml_rms_norm(ctx0, cur, hparams.eps); | |
| cur = build_mm(model.mm_input_proj_w, cur); | |
| cb(cur, "projected", -1); | |
| } | |
| ggml_build_forward_expand(gf, cur); | |
| return gf; | |
| } | |