Skip to content

Fix RMS norm in GGML - #191

Merged
hoangmit merged 1 commit into
ggml-org:masterfrom
nebulatgs:nebula/unbrick-rms-norm
Mar 15, 2023
Merged

hoangmit merged 1 commit into
ggml-org:masterfrom
nebulatgs:nebula/unbrick-rms-norm

Conversation

@nebulatgs

Copy link
Copy Markdown
Contributor

Fixes #190

@neverabsolute neverabsolute left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

been having issues with this since the last release, thanks for fixing 🙏

@hoangmit

Copy link
Copy Markdown
Contributor

thank for fixing the fix

@hoangmit
hoangmit merged commit 9b4a15b into ggml-org:master Mar 15, 2023
blackhole89 pushed a commit that referenced this pull request Mar 15, 2023
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
kainlan added a commit to kainlan/llama.cpp-intel-optimizations that referenced this pull request Aug 26, 2026
The lease-preserve test aborts in unified_cache::shutdown_resources() on
GGML_ASSERT(in_use_count == 0 && "cache shutdown with an external weight
lease").  The assert is right and stays: a live lease at cleanup is a
leaked reference or a stale owner, and the fix is always to find that
owner, never to reap the entry.

But the bare assert says only THAT one exists -- not which entry, how
many leases, or who took the last one -- so every occurrence costs an
investigation from zero.  The entry already records the answer
(debug_last_lease_site plus the acquire/release ring, written on every
acquire_entry_lease).  Print it, then abort exactly as before.

At ERROR deliberately: GGML_LOG_INFO is dropped below the default
verbosity threshold and GGML_SYCL_DEBUG needs an env var nobody sets on
the run that actually aborts, so a diagnostic at either level is
invisible precisely when it is needed.

Same reasoning for provenance itself: census 5 could not answer "did
minting fire?" because nothing it emitted survives default verbosity.
Add two one-shot raw-stderr WARNs -- one when the first buffer owner is
minted, one when the first tensor is registered under one.  Minting and
USING an owner are different events and only the second proves the gate
can open, so both are reported.  One-shot, so a census gains two lines.

Scope note: the abort is NOT caused by the provenance commit.  Only the
first (pre-existing) case ran -- no tagged owner id appears anywhere in
the log and only one test header printed -- so the two new cases never
executed and ruling (b) is unverified rather than failed.  The assert
did not exist when this test last passed (2026-08-10, ggml-org#191 Passed); it
was added 2026-08-13 by 582fee6, which predates this branch.

Refs llama.cpp-f8ws

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012PWqLcXa9SZoxz6TffBbLw
pwilkin pushed a commit to pwilkin/llama.cpp that referenced this pull request Oct 22, 2026
qwen4exp : gather the PLE rows of the next ubatch on a worker thread
pwilkin added a commit to pwilkin/llama.cpp that referenced this pull request Oct 22, 2026
Brings in PRs ggml-org#185, ggml-org#187-ggml-org#194, ggml-org#200 and ggml-org#207. Two conflicts in qwen4exp
set_input, both with the asynchronous PLE gather of ggml-org#191, and one in
models.h, where ggml-org#194 adds fields next to the EXL3 n-gram table fields
(both kept).

ggml-org#191 moves the host gather into qwen4exp_ple_host_gather and the
on-disk one behind qwen4exp_ple_gather_sync, which a worker thread now
also calls one ubatch ahead. The EXL3 n-gram decode moves there: the
sync gather builds one row decoder (same head lookup, bias and decoder
as before) and hands it to llama_ple_disk (lazy) or to the host gather
(resident). The bias and head offsets are copied per call instead of
held in the graph input, since two threads may gather at once.

ggml-org#194's f16 activation paths (GDN output norm, MoE experts, hc mixed
stream) hand an f16 B to matmuls that EXL3 linears take only in f32: a
qwen4exp EXL3 model with its layers on the GPU aborted in
ggml_exl3_mul_mat while the context probed the fused ops. These paths
now skip EXL3 weights, as they skip bf16 ones.

Assisted-by: Claude Opus 5.5
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.

new RMS norm PR bricks stuff

3 participants