Skip to content

mtmd : move helpers to dedicated file - #13442

Merged
ngxson merged 3 commits into
ggml-org:masterfrom
ngxson:xsn/mtmd_helper_dedicated_file
May 11, 2025
Merged

ngxson merged 3 commits into
ggml-org:masterfrom
ngxson:xsn/mtmd_helper_dedicated_file

Conversation

@ngxson

@ngxson ngxson commented May 10, 2025 •

Copy link
Copy Markdown
Collaborator

Ref discussion: #13366 (comment) (cc @mattjcly)

These helper functions are suppose to be the equivalent of common.cpp, so by moving it to a dedicated file, we can prevent accidentally using internal mtmd API in the helper.

2 exceptions of this rule are:

  • mtmd_helper_bitmap_init_from_file
  • mtmd_helper_bitmap_init_from_buf

The reason is because these APIs use internal struct from clip.cpp. From libmtmd perspective, we never want to expose clip_context to the outside world. However, the problem with these 2 APIs can be resolved by simply move stb_image to mtmh_helper.cpp. But since this is a breaking change to clip, I'll do it later on.

@ngxson
ngxson requested a review from ggerganov May 10, 2025 21:00
@ngxson
ngxson merged commit a634d75 into ggml-org:master May 11, 2025
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
* mtmd : move helpers to dedicated file

* fix windows build

* rm redundant include
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
* mtmd : move helpers to dedicated file

* fix windows build

* rm redundant include
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
* mtmd : move helpers to dedicated file

* fix windows build

* rm redundant include
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
* mtmd : move helpers to dedicated file

* fix windows build

* rm redundant include
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
* mtmd : move helpers to dedicated file

* fix windows build

* rm redundant include
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
* mtmd : move helpers to dedicated file

* fix windows build

* rm redundant include
frostyautumnleaf pushed a commit to frostyautumnleaf/llama.cpp that referenced this pull request Oct 5, 2026
* mtmd : move helpers to dedicated file

* fix windows build

* rm redundant include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants