Overview of the llama.cpp.patches directory structure
mainThe llama.cpp.patches/ directory contains the tools and files necessary to modify llama.cpp for Llamafile compatibility:
apply-patches.sh: Script to apply all patches to thellama.cppsubmodule.fetch-ui-assets.sh: Downloads and validates prebuilt web UI assets.renames.sh: Script for file renames and moves.llamafile-files/: Contains additional files to be copied intollama.cpp, includingBUILD.mk(Makefile for building withcosmocc),README.llamafile, andcommon/license.cpp.patches/: Contains the actual patch files for upstream sources.