Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
7f24aac
cpu: accumulate flash attention V in F32 (#29810)
ServeurpersoCom Nov 11, 2026
71a6a11
quantize: fix imatrix GGUF filepath metadata leak (#32000)
JamieBordoni Nov 11, 2026
4324336
ROCm/HIP: fixed BLAS workspace instead of rocBLAS allocating one per …
fox5611 Nov 11, 2026
1648d64
test-fp8.cpp: use only the public ggml API (#32083)
ORippler Nov 11, 2026
2e325dc
backend : re-instantiate CUDA graphs when the cluster dims of a kerne…
tdakhran Nov 11, 2026
b8abe41
vendor: update cpp-httplib to 0.66.0 (#32049)
cabelo Nov 11, 2026
b326dd6
devops : add missing MKL runtime DLLs to the Windows SYCL release pac…
Asahi-Prv Nov 11, 2026
ccd360f
llama : remove non-fused GDN and ubatch-dependent graph nodes (#32078)
ggerganov Nov 11, 2026
956591f
ci : remove dead snakes (#32084)
CISC Nov 11, 2026
f7b886f
chat: allow TTS model to provide custom text normalizer via jinja (#3…
ngxson Nov 11, 2026
cd2db80
jinja : support chained comparisons and argument unpacking (#32072)
aldehir Nov 11, 2026
cb44fdb
llama : reuse graph result instances across scheduler reserves (#32089)
ggerganov Nov 11, 2026
2656b71
vendor : update LibreSSL to 4.4.1 [no ci] (#32106)
cabelo Nov 11, 2026
055c3c2
vulkan: support batched tensor copy API (#31418)
0cc4m Nov 11, 2026
4180722
metal : prevent out-of-bounds reads in SOLVE_TRI kernel (#32103)
realMoana Nov 11, 2026
664f031
ci: move test models to ggml-org-dev (#32096)
ngxson Nov 11, 2026
2cbe0ec
server: fix --cors-origins handling + protect against DNS rebinding (…
ngxson Nov 11, 2026
bd717e0
ui: take the logo and favicons from the llama-brand package (#32039)
allozaur Nov 11, 2026
1d81992
ui: keep downloads in Discover during search and fix their progress w…
allozaur Nov 11, 2026
dd00306
docs: update image link in README.md (#32038)
inimaz Nov 11, 2026
7bcbc04
ui: move js sandbox setting out of "developer" (#32054)
ngxson Nov 11, 2026
e1f7593
opencl: add decomposed FA for Adreno (#32046)
shaofeiqi Nov 12, 2026
dd6b945
server: use the moved test model in the router CORS test (#32117)
allozaur Nov 12, 2026
5d4c8ee
CUDA: skip empty MoE tiles in MMQ stream-k fixup (#32067)
lifeiteng Nov 12, 2026
e0949d0
opencl: add bin kernel `kernel_gemm_noshuffle_q4_0_f32_32b_trans_ila_…
shaofeiqi Nov 12, 2026
7021f7e
CUDA: add cuda debug buffer pool (#31919)
JoeyPatricio Nov 12, 2026
f3d7725
sycl : use cached device-id in set_main_device (#32013)
zhaoyshine Nov 12, 2026
dcbff21
sycl : fix AOT for more than 4GB (#31873)
arthw Nov 12, 2026
09338b8
sycl: make oneDNN FA cache thread-safe and memoize runtime failures (…
Titaniumtown Nov 12, 2026
4fffab6
llama : avoid touching unused graph metadata pages (#32043)
joelagnel Nov 12, 2026
93cf736
chat : refactor gemma4 to build loose schema rules and clean up (#31915)
aldehir Nov 12, 2026
60d46a5
server: when --tools-runtime is specified, ignore x-tool-runtime (#32…
ngxson Nov 12, 2026
d90cfd4
ui: install llama-brand from a GitHub tarball instead of git (#32112)
allozaur Nov 12, 2026
b19f1d9
ui: add search_chats tool (#32051)
ngxson Nov 12, 2026
81f21f4
ggml : dispatch SpacemiT Q4_1 32x256 through the HP kernel (#31929)
gitGurugu Nov 12, 2026
3bce8bd
ggml-backend : prefetch only inputs computed by earlier splits (#32100)
am17an Nov 12, 2026
0d69255
CUDA: Optimize prefil via fuse of w_s scale in epilogue MMQ for nvfp4…
kmorennv Nov 12, 2026
ab4a77b
ggml-cpu: use the 4x4 simd_gemm tile on ARM NEON (#32128)
rjtokenring Nov 12, 2026
a963f65
vulkan : Intel FA kernel for prefill. (#29357)
sliu39 Nov 12, 2026
a8575a3
ggml : route GATED_DELTA_NET to the SpacemiT RVV kernel (#31897)
gitGurugu Nov 12, 2026
08f4959
mtmd: require a 2x2 spatial merge for the Qwen-VL projectors (#32130)
ServeurpersoCom Nov 12, 2026
8c38836
mtmd: require the MLP projector and patch embedding tensors (#32129)
ServeurpersoCom Nov 12, 2026
72f4603
mtmd: read the MiniCPM-V projection width from ne[1] (#32132)
ServeurpersoCom Nov 12, 2026
cfb9d4b
mtmd: require an F32 position embedding for HunyuanVL (#32131)
ServeurpersoCom Nov 12, 2026
09452cd
server: keep the server awake while a request uses its state (#32133)
ServeurpersoCom Nov 12, 2026
e182fda
server: disallow direct access child instance from browser (#32120)
ngxson Nov 12, 2026
a1a68eb
server: explicit opt-in tools via non-loopback addr, check cors host …
ngxson Nov 12, 2026
8954f19
server: fix SSRF for CORS proxy and media URLs (#32115)
ngxson Nov 12, 2026
827466b
ci : build ui on non-slim runner (#32138)
CISC Nov 12, 2026
0fb8f15
Title: CUDA: few-row MMQ for BS 2-24 (#31533)
anujj Nov 12, 2026
3ba1ce0
qwen3.5: merge tensors on convert also (#32102)
ORippler Nov 12, 2026
d8c8cc4
server : cancel MCP tool calls on client disconnect or timeout (#32025)
hmblair Nov 12, 2026
2a4daf0
hexagon: add Q5_0 and Q5_1 support (#32094)
aparmp-quic Nov 12, 2026
29dbbad
ggml : prune (#29801)
ggerganov Nov 12, 2026
8ca5a80
llama : prune (#30565)
ggerganov Nov 12, 2026
45d40c8
Merge ggml-org/llama.cpp master 8ca5a8008
rafasmour Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-ibm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
run: |
cd build
echo "Fetch llama2c big-endian model"
wget https://huggingface.co/ggml-org/models/resolve/main/tinyllamas/stories260K-be.gguf
wget https://huggingface.co/ggml-org-dev/stories260K/resolve/main/stories260K-be.gguf
./bin/llama-completion -m stories260K-be.gguf -p "One day, Lily met a Shoggoth" -n 500 -c 256

- name: Test quantize (s390x)
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/ci-self-hosted-webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install -y build-essential cmake libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libvulkan1 mesa-vulkan-drivers libglvnd0 libgl1 libglx0 libegl1 libgles2 libssl-dev time unzip wget python3.12 python3.12-venv
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
sudo update-alternatives --config python3
sudo apt install -y build-essential cmake libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libvulkan1 mesa-vulkan-drivers libglvnd0 libgl1 libglx0 libegl1 libgles2 libssl-dev time unzip wget python3 python3-venv python3-pip
- name: ccache
uses: ggml-org/ccache-action@v1.2.24
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,8 @@ jobs:
cp "${{ env.ONEAPI_ROOT }}/mkl/latest/bin/mkl_def.3.dll" ./build/bin
cp "${{ env.ONEAPI_ROOT }}/mkl/latest/bin/mkl_avx2.3.dll" ./build/bin
cp "${{ env.ONEAPI_ROOT }}/mkl/latest/bin/mkl_tbb_thread.3.dll" ./build/bin
cp "${{ env.ONEAPI_ROOT }}/mkl/latest/bin/mkl_intel_thread.3.dll" ./build/bin
cp "${{ env.ONEAPI_ROOT }}/mkl/latest/bin/libimalloc.dll" ./build/bin

cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/ur_adapter_level_zero.dll" ./build/bin
cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/ur_adapter_level_zero_v2.dll" ./build/bin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ui-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:

jobs:
build:
runs-on: ubuntu-slim
runs-on: ubuntu-26.04-arm

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# llama.cpp

![llama.cpp](https://raw.githubusercontent.com/ggml-org/llama.brand/refs/heads/master/logo/svg/cover/llama-cpp/cover-llama-cpp-dark.svg)
![llama.cpp](https://raw.githubusercontent.com/ggml-org/llama-brand/refs/heads/master/logo/svg/cover/llama-cpp/cover-llama-cpp-dark.svg)

<div align="center">

Expand Down
4 changes: 2 additions & 2 deletions cmake/download-models.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ get_filename_component(DEST_DIR "${DEST}" DIRECTORY)
file(MAKE_DIRECTORY "${DEST_DIR}")

if(NOT EXISTS "${DEST}")
message(STATUS "Downloading ${NAME} from ggml-org/models...")
message(STATUS "Downloading ${NAME} from ${REPO}...")
endif()

file(DOWNLOAD
"https://huggingface.co/ggml-org/models/resolve/main/${NAME}?download=true"
"https://huggingface.co/${REPO}/resolve/main/${NAME}?download=true"
"${DEST}"
TLS_VERIFY ON
EXPECTED_HASH ${HASH}
Expand Down
2 changes: 2 additions & 0 deletions common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ add_library(${TARGET}
chat-diff-analyzer.cpp
chat-peg-parser.cpp
chat-peg-parser.h
chat-tts-norm.cpp
chat-tts-norm.h
chat.cpp
chat.h
common.cpp
Expand Down
32 changes: 19 additions & 13 deletions common/arg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,8 @@ static bool common_params_parse_ex(int argc, char ** argv, common_params_context
}

const bool mcp_enabled = !params.mcp_servers_config.empty() || !params.mcp_servers_json.empty();
if ((!params.server_tools.empty() || mcp_enabled) && !params.cors_origins_explicit) {
LOG_WRN("server tools or MCP servers are enabled, using localhost as default CORS origin (change via --cors-origins)\n");
if ((!params.server_tools.empty() || mcp_enabled || params.ui_mcp_proxy) && !params.cors_origins_explicit) {
LOG_WRN("server tools, MCP servers or MCP proxy are enabled, using localhost as default CORS origin (change via --cors-origins)\n");
params.cors_origins = "localhost";
}

Expand Down Expand Up @@ -2501,15 +2501,6 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
params.ppl_output_type = value;
}
).set_examples({LLAMA_EXAMPLE_PERPLEXITY}));
add_opt(common_arg(
{"-dt", "--defrag-thold"}, "N",
string_format("KV cache defragmentation threshold (DEPRECATED)"),
[](common_params & params, const std::string & value) {
GGML_UNUSED(params);
GGML_UNUSED(value);
LOG_WRN("DEPRECATED: --defrag-thold is deprecated and no longer necessary to specify\n");
}
).set_env("LLAMA_ARG_DEFRAG_THOLD"));
if (ex == LLAMA_EXAMPLE_SERVER) {
// this is to make sure this option appears in the server-specific section of the help message
add_opt(common_arg(
Expand Down Expand Up @@ -3361,7 +3352,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
{"--cors-origins"}, "ORIGINS",
string_format(
"comma-separated list of allowed origins for CORS (default: %s)\n"
"if set to special value 'localhost', reflect the Origin header only if it is localhost",
"if set to special value 'localhost', only allow same-origin requests (e.g. the built-in UI)",
params.cors_origins.c_str()),
[](common_params & params, const std::string & value) {
params.cors_origins = value;
Expand Down Expand Up @@ -3417,7 +3408,8 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
add_opt(common_arg(
{"--ui-mcp-proxy", "--webui-mcp-proxy"},
{"--no-ui-mcp-proxy", "--no-webui-mcp-proxy"},
"experimental: whether to enable MCP CORS proxy - do not enable in untrusted environments (default: disabled)",
"experimental: whether to enable MCP CORS proxy, for the Web UI to reach public MCP servers without CORS headers; local and private addresses are refused - do not enable in untrusted environments (default: disabled)\n"
"note: for security reasons, this will limit --cors-origins to localhost by default",
[](common_params & params, bool value) {
params.ui_mcp_proxy = value;
}
Expand All @@ -3443,6 +3435,13 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
params.server_tools_runtime = value;
}
).set_examples({LLAMA_EXAMPLE_SERVER}).set_env("LLAMA_ARG_TOOLS_RUNTIME"));
add_opt(common_arg(
{"--allow-unauthenticated-tools"},
"allow server tools, MCP servers or MCP proxy on a non-loopback address without an API key - only for trusted networks (default: disabled)",
[](common_params & params) {
params.server_tools_allow_unauth = true;
}
).set_examples({LLAMA_EXAMPLE_SERVER}).set_env("LLAMA_ARG_ALLOW_UNAUTHENTICATED_TOOLS"));
add_opt(common_arg(
{"--mcp-servers-config"}, "PATH",
"experimental: path to JSON file with MCP server definitions (Cursor-compatible format) - do not enable in untrusted environments (default: none)\n"
Expand Down Expand Up @@ -3668,6 +3667,13 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
}
}
).set_examples({LLAMA_EXAMPLE_SERVER}));
add_opt(common_arg(
{"--media-allow-private-urls"},
"allow http(s) media URLs (e.g. image_url) that point to local or private addresses (default: disabled, only public addresses)",
[](common_params & params) {
params.media_allow_private_urls = true;
}
).set_examples({LLAMA_EXAMPLE_SERVER}).set_env("LLAMA_ARG_MEDIA_ALLOW_PRIVATE_URLS"));
add_opt(common_arg(
{"--models-dir"}, "PATH",
"directory containing models for the router server (default: disabled)",
Expand Down
86 changes: 42 additions & 44 deletions common/chat-peg-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -973,99 +973,97 @@ void common_chat_peg_gemma4_mapper::from_ast(const common_peg_ast_arena & arena,
}
}

using gemma4 = common_chat_peg_gemma4_mapper;

// Collects the nearest descendants carrying tag, looking through the rules the parser
// wraps around the tagged nodes.
static void gemma4_collect(const common_peg_ast_arena & arena, const common_peg_ast_node & node, const std::string & tag, std::vector<common_peg_ast_id> & out) {
for (auto child_id : node.children) {
const auto & child = arena.get(child_id);
if (child.tag == tag) {
out.push_back(child_id);
} else {
gemma4_collect(arena, child, tag, out);
}
}
}

static std::string gemma4_to_json(const common_peg_ast_arena & arena, common_peg_ast_id id) {
const auto & node = arena.get(id);

if (node.text.empty()) {
return "";
}

if (node.rule == "gemma4-number" || node.rule == "gemma4-bool" || node.rule == "gemma4-null") {
if (node.tag == gemma4::NUMBER || node.tag == gemma4::BOOL || node.tag == gemma4::NULL_) {
return std::string(node.text);
}

if (node.rule == "gemma4-string-content") {
if (node.tag == gemma4::STRING_CONTENT) {
return escape_json_string_inner(node.sanitized_text());
}

if (node.rule == "gemma4-string") {
if (node.tag == gemma4::STRING) {
std::string result = "\"";
if (!node.children.empty()) {
result += gemma4_to_json(arena, node.children[0]);
if (!node.is_partial) {
result += "\"";
}
for (auto child_id : node.children) {
result += gemma4_to_json(arena, child_id);
}
if (!node.is_partial) {
result += "\"";
}
return result;
}

if (node.rule == "gemma4-array") {
if (node.tag == gemma4::ARRAY) {
std::string result = "[";

bool add_comma = false;
for (auto child_id : node.children) {
if (add_comma) {
for (size_t i = 0; i < node.children.size(); i++) {
if (i > 0) {
result += ',';
}
add_comma = true;
result += gemma4_to_json(arena, child_id);
result += gemma4_to_json(arena, node.children[i]);
}

if (!node.is_partial) {
result += ']';
}
return result;
}

if (node.rule == "gemma4-dict-key-name") {
return std::string(node.text);
}
if (node.tag == gemma4::DICT_KEY) {
auto name_id = arena.find_by_tag(node, gemma4::DICT_KEY_NAME);

if (node.rule == "gemma4-dict-key") {
std::string result = "\"";
if (!node.children.empty()) {
result += escape_json_string_inner(gemma4_to_json(arena, node.children[0]));
if (name_id != COMMON_PEG_INVALID_AST_ID) {
result += escape_json_string_inner(std::string(arena.get(name_id).text));
}
if (!node.is_partial) {
result += "\":";
}
return result;
}

if (node.rule == "gemma4-dict-kv") {
std::string result;
for (auto child_id : node.children) {
result += gemma4_to_json(arena, child_id);
}
return result;
}
if (node.tag == gemma4::DICT) {
std::vector<common_peg_ast_id> members;
gemma4_collect(arena, node, gemma4::DICT_KV, members);

if (node.rule == "gemma4-dict") {
std::string result = "{";

bool add_comma = false;
for (auto child_id : node.children) {
if (add_comma) {
for (size_t i = 0; i < members.size(); i++) {
if (i > 0) {
result += ',';
}
add_comma = true;
result += gemma4_to_json(arena, child_id);
result += gemma4_to_json(arena, members[i]);
}

if (!node.is_partial) {
result += '}';
}
return result;
}

if (node.rule == "gemma4-value") {
if (!node.children.empty()) {
return gemma4_to_json(arena, node.children[0]);
}
return "";
// members, rules and other wrappers
std::string result;
for (auto child_id : node.children) {
result += gemma4_to_json(arena, child_id);
}

return "";
return result;
}

void common_chat_peg_gemma4_mapper::visit(const common_peg_ast_arena & arena, common_peg_ast_id id) {
Expand Down
12 changes: 12 additions & 0 deletions common/chat-peg-parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ class common_chat_peg_mapper {

class common_chat_peg_gemma4_mapper : public common_chat_peg_mapper {
public:
// Tags of the Gemma 4 argument syntax. The parser may wrap them in any rules.
static constexpr const char * STRING = "gemma4-string";
static constexpr const char * STRING_CONTENT = "gemma4-string-content";
static constexpr const char * NUMBER = "gemma4-number";
static constexpr const char * BOOL = "gemma4-bool";
static constexpr const char * NULL_ = "gemma4-null";
static constexpr const char * ARRAY = "gemma4-array";
static constexpr const char * DICT = "gemma4-dict";
static constexpr const char * DICT_KV = "gemma4-dict-kv";
static constexpr const char * DICT_KEY = "gemma4-dict-key";
static constexpr const char * DICT_KEY_NAME = "gemma4-dict-key-name";

common_chat_peg_gemma4_mapper(common_chat_msg & msg) : common_chat_peg_mapper(msg) {}
virtual void from_ast(const common_peg_ast_arena & arena, const common_peg_parse_result & result);
private:
Expand Down
Loading
Loading