diff --git a/.gitmodules b/.gitmodules index 9eb8d89..fc99093 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,4 @@ path = third_party/llama.cpp url = https://github.com/ggml-org/llama.cpp.git shallow = true + ignore = dirty diff --git a/README.md b/README.md index 390c691..fba47e7 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,8 @@ The two `git` lines are the only ones that reach the network. For a box without it and copy the tree over (`rsync -a UnbiasedStrata/ box:UnbiasedStrata/`; about 700 MB with `.git`), then `make build` there; that is how the A6000 VM below was done (2026-10-19, fresh clone: 5 s clone, 27 s submodule, 20.6 min `make build` at the default four archs on 12 cores and CUDA 12.4, 9 s `make test`). Configuring applies `patches/` to the submodule -in place, so `git status` shows `third_party/llama.cpp` modified from then on; that is expected. +in place; `.gitmodules` sets `ignore = dirty` for it, so `git status` stays quiet about those files and reports the +submodule only when its pinned commit changes (`git -C third_party/llama.cpp diff` still shows the patches). `make build` configures once and builds only the four targets above, not upstream's `all`. Options, as `make` variables: diff --git a/UPSTREAM.md b/UPSTREAM.md index 7279ac1..da6a383 100644 --- a/UPSTREAM.md +++ b/UPSTREAM.md @@ -30,7 +30,8 @@ GPU, Pascal or newer, CUDA 12.x), each recorded below with the file, the reason ignores `/third_party/llama.cpp*`. - **`patches/*.patch` applied at configure time.** Each patch is checked in reverse first, so configuring twice applies it once. The submodule's working tree is therefore modified after a configure; `git -C - third_party/llama.cpp diff` shows exactly the patches. UnbiasedStrata 1 applied its patch in `make` and in + third_party/llama.cpp diff` shows exactly the patches, and `.gitmodules` sets `ignore = dirty` so `git status` + does not report them (a changed submodule commit is still reported). UnbiasedStrata 1 applied its patch in `make` and in CMake both; here it is CMake only, so a tree configured directly gets it too. - **llama.cpp's libraries for the front end.** A second `add_subdirectory` of the submodule with `LLAMA_BUILD_COMMON` and `LLAMA_BUILD_MTMD` on and tests, tools, examples, server, app, UI, prebuilt UI,