Skip to content

Conversation

danbev
Copy link
Member

@danbev danbev commented Apr 3, 2025

This commit replaces the ggml sources with a git submodule.

The individual commits are the steps I took to do this. Hopefully they are readable on their own but if not let me know and I'll as a better description here.

One thing I did add which might not be obvious is a make recipe/target to update the ggml submodule:

$ make update-ggml

This is mainly because I tend to forget the options for this.

Refs: #2785

(This does not resolve #2785 because I was not sure about Add support for linking against external ggml binaries).

danbev added 6 commits April 3, 2025 14:47
This commit removes the ggml source tree in favor of creating a git
submodule for https://github.com/ggml-org/ggml instead.

Refs: ggml-org#2785
This commit adds a recipe/target to the makefile to update the ggml
submodule.

The motivation for this is that it is not always clear how to update and
what if any flags are needed to update the submodule.
This commit updates the `git ls-files` command in the Ruby bindings
to include submodules.

The motivation for this change is that without it the rake command will
fail as all needed file will not be copied.
@ggerganov
Copy link
Member

Heads up, I am having some second thoughts about using git submodules vs a mono repo. It's good to have this as a demonstration, but likely won't be merged soon - at least before we make the final decision how to organize the projects. Some related discussion in ggml-org/ggml#1130 for context.

@danbev danbev marked this pull request as draft April 4, 2025 04:28
@danbev
Copy link
Member Author

danbev commented Apr 24, 2025

Closing this as we an always reopen later if needed.

@danbev danbev closed this Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build : start using a ggml submodule

2 participants