Commit f8dfcc8
Apply city96 lcpp.patch on tag b3962
Pre-applied patch for the ComfyUI-GGUF conversion toolchain
(https://github.com/Randy420Marsh/ComfyUI-GGUF), originally distributed
as tools/lcpp.patch in that repo. The patch:
* Doubles GGML_MAX_NAME (64 -> 128) so quantization can preserve longer
diffusion-model tensor names.
* Adds gguf_set_tensor_ndim() to ggml.{h,c} so writer code can override
the on-disk ndim metadata for tensors whose stored shape differs from
the runtime ndim (used by Comfy diffusion archs where 5D tensors get
reshaped to 4D for storage).
* Adjusts src/llama.cpp tensor-name handling to use the new
GGML_MAX_NAME bound.
Source patch: tools/lcpp.patch in Randy420Marsh/ComfyUI-GGUF, sha-pinned
against this exact b3962 commit (c8c07d6). Re-applies cleanly with
'git apply --check' here.
Users of Randy420Marsh/ComfyUI-GGUF/tools should clone this branch
directly instead of cloning ggml-org/llama.cpp + checking out b3962
+ applying the patch by hand:
git clone -b city96 https://github.com/Randy420Marsh/llama.cpp.git
cd llama.cpp
cmake -B build -DBUILD_SHARED_LIBS=ON
cmake --build build --config Release -j
Then llama-quantize, libggml.so, libllama.so live in build/bin and
build/{src,ggml/src} as usual.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent c8c07d6 commit f8dfcc8
3 files changed
Lines changed: 346 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
2449 | 2449 | | |
2450 | 2450 | | |
2451 | 2451 | | |
| 2452 | + | |
2452 | 2453 | | |
2453 | 2454 | | |
2454 | 2455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22960 | 22960 | | |
22961 | 22961 | | |
22962 | 22962 | | |
| 22963 | + | |
| 22964 | + | |
| 22965 | + | |
| 22966 | + | |
| 22967 | + | |
| 22968 | + | |
| 22969 | + | |
| 22970 | + | |
22963 | 22971 | | |
22964 | 22972 | | |
22965 | 22973 | | |
| |||
0 commit comments