Skip to content

Add precompiled files for windows x64 and python script instead of bash script. - #197

Closed
Black-Engineer wants to merge 1 commit into
ggml-org:masterfrom
Black-Engineer:master
Closed

Black-Engineer wants to merge 1 commit into
ggml-org:masterfrom
Black-Engineer:master

Conversation

@Black-Engineer

Copy link
Copy Markdown

Precompiled files for windows x64 via Cmake.

@Black-Engineer Black-Engineer changed the title Add precompiled files for windiws x64 and python script instead of bash script. Add precompiled files for windows x64 and python script instead of bash script. Mar 16, 2023
@miolini

miolini commented Mar 16, 2023

Copy link
Copy Markdown

Please, do not distribute executable binaries in repository.

@LostRuins

Copy link
Copy Markdown
Collaborator

binaries should be in Releases, not repo.

@bernatvadell

Copy link
Copy Markdown
Contributor

Perhaps we could expose the artifacts generated in the CI pipeline.

And eventually make a version of the project to which the releases would be related to the binaries.

@miolini

miolini commented Mar 16, 2023

Copy link
Copy Markdown

It should be built only my core maintainers. Not by fresh github account with shady name.

@miolini

miolini commented Mar 16, 2023

Copy link
Copy Markdown

Screenshot 2023-03-16 at 9 43 57 AM

@leumasme

leumasme commented Mar 16, 2023 •

Copy link
Copy Markdown

Why doesn't the Github Actions workflow build file publish the build result files as github artifacts? That'd allow downloading the build result of every action run.

@HCBlackFox

Copy link
Copy Markdown

Not by fresh github account with shady name.

Lol, why you are so rude? Yes Im new here, but that is not concern to blame me...I simply dont know how to do it right. You can tell me in normal words without agresion.

@Hades32

Hades32 commented Mar 16, 2023

Copy link
Copy Markdown

Haven't had time to put do this right (i.e. make a PR and have the workflow create a release with multiple artifacts), but if someone just wants the Windows binaries, here I have them being built with GH actions with a minimal fork: https://github.com/Hades32/llama.cpp/actions/runs/4441656002

@LostRuins

Copy link
Copy Markdown
Collaborator

In any case, this project has basically zero dependencies. Just clone this repo and type make and you'll have your binaries in under 10 seconds.

@gjmulder gjmulder added enhancement New feature or request invalid This doesn't seem right labels Mar 17, 2023
@prusnak

prusnak commented Mar 18, 2023

Copy link
Copy Markdown
Contributor

Closing since we don't want to have unreproducible executables committed in the git.

@prusnak prusnak closed this Mar 18, 2023
rooprob pushed a commit to rooprob/llama.cpp that referenced this pull request Aug 2, 2023
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
Similar to the CUDA situation.
It is OFF by default.
If OFF, only F16, Q8_0, Q6_0, and, if the CPU provides native
BF16 support, BF16 FA kernels will be included.
To enable all, cmake -DGGML_IQK_FA_ALL_QUANTS=1 ...
This cuts compilation time for iqk_mul_mat.cpp by almost half
(45 seconds vs 81 seconds on my Ryzen-7950X).

Co-authored-by: Iwan Kawrakow <[email protected]>
EricNie-Git pushed a commit to EricNie-Git/llama.cpp-tq3-release that referenced this pull request Jun 30, 2026
…-org#197

Replace legacy turbo3/4 blocks with TheTom's final formats:
- turbo3: QK 32→128 (one block per rotation group), corrected Lloyd-Max
  centroids from PR ggml-org#197 (±0.190207 series, ~4% KLD improvement)
- turbo4: drop 3-bit+QJL 68B block → 4-bit nibble-packed 66B (TURBO4_USE_4BIT=1)
  with corrected centroids (±0.241529 series, ~33% KLD improvement)
- turbo2: new 2-bit type (QK=128, 34B/block) with 4-centroid Lloyd-Max

CPU encode/decode (ggml-turbo-quant.c) replaced wholesale with TheTom's
WHT-rotation-aware implementation (proper norm correction + corrected
centroids). GPU quantizers in cpy-utils.cuh updated for new block layouts
and corrected midpoints. CUDA FA decoder (fattn-common.cuh) updated:
turbo4_decode_element rewritten for 4-bit nibble format, turbo3 centroids
updated to PR ggml-org#197 values.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KiUD4XkcbjmrP48BTxqqrW
turbo-tan pushed a commit to turbo-tan/llama.cpp-tq3 that referenced this pull request Aug 1, 2026
…-org#197

Replace legacy turbo3/4 blocks with TheTom's final formats:
- turbo3: QK 32→128 (one block per rotation group), corrected Lloyd-Max
  centroids from PR ggml-org#197 (±0.190207 series, ~4% KLD improvement)
- turbo4: drop 3-bit+QJL 68B block → 4-bit nibble-packed 66B (TURBO4_USE_4BIT=1)
  with corrected centroids (±0.241529 series, ~33% KLD improvement)
- turbo2: new 2-bit type (QK=128, 34B/block) with 4-centroid Lloyd-Max

CPU encode/decode (ggml-turbo-quant.c) replaced wholesale with TheTom's
WHT-rotation-aware implementation (proper norm correction + corrected
centroids). GPU quantizers in cpy-utils.cuh updated for new block layouts
and corrected midpoints. CUDA FA decoder (fattn-common.cuh) updated:
turbo4_decode_element rewritten for 4-bit nibble format, turbo3 centroids
updated to PR ggml-org#197 values.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KiUD4XkcbjmrP48BTxqqrW
turbo-tan pushed a commit to turbo-tan/llama.cpp-tq3 that referenced this pull request Aug 1, 2026
…-org#197

Replace legacy turbo3/4 blocks with TheTom's final formats:
- turbo3: QK 32→128 (one block per rotation group), corrected Lloyd-Max
  centroids from PR ggml-org#197 (±0.190207 series, ~4% KLD improvement)
- turbo4: drop 3-bit+QJL 68B block → 4-bit nibble-packed 66B (TURBO4_USE_4BIT=1)
  with corrected centroids (±0.241529 series, ~33% KLD improvement)
- turbo2: new 2-bit type (QK=128, 34B/block) with 4-centroid Lloyd-Max

CPU encode/decode (ggml-turbo-quant.c) replaced wholesale with TheTom's
WHT-rotation-aware implementation (proper norm correction + corrected
centroids). GPU quantizers in cpy-utils.cuh updated for new block layouts
and corrected midpoints. CUDA FA decoder (fattn-common.cuh) updated:
turbo4_decode_element rewritten for 4-bit nibble format, turbo3 centroids
updated to PR ggml-org#197 values.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KiUD4XkcbjmrP48BTxqqrW
quimmedes pushed a commit to quimmedes/cafe-llama.cpp that referenced this pull request Sep 19, 2026
* build: fix release compilation

* release: apply shared build options
imaami pushed a commit to imaami/llama.cpp that referenced this pull request Oct 10, 2026
* build: fix release compilation

* release: apply shared build options

(cherry picked from commit 01041db)
Assisted-by: GitHub Copilot
hjotha pushed a commit to hjotha/beellama.cpp that referenced this pull request Nov 19, 2026
hip/kvarn: RDNA3 KVarN prefill performance (store, scan, windowed, unpack)
jammm pushed a commit to jammm/llama.cpp that referenced this pull request Nov 19, 2026
## Problem

The Llama 3.1 8B Instruct Q2_K GGUF loads on HRX and fails at its first embedding gather. This checkpoint also uses Q2_K for query, key, gate, and up projections in all 32 layers. [Tracking issue ggml-org#175](ROCm/ggml-staging-automation#175) · [Quantization sweep ggml-org#149](ROCm/ggml-staging-automation#149)

## Implementation

Register Q2_K as HRX kernel format 12 and use its native 84-byte stride for each block of 256 weights. The shared decoder extracts unsigned two-bit codes and the scale and minimum for each group of 16 weights. Gather loads the packet it needs. Tiled and vector matmul reuse block metadata and packed code words across groups. The FP16 and FP32 paths share the reconstruction arithmetic.

After rebasing, use typed Loom splats and flatten format dispatch in the tiled, paired tiled, and paired vector kernels with `scf.switch`. The paired tiled kernel selects the gate and up formats independently for mixed-format weights. The paired vector kernel loads Q1_0 metadata inside its case and guards partial input groups.

## Validation

**Current head `d959bb2ab`.** All 232 selected dense-matmul and paired-vector GPU operator tests passed on gfx1151. The preceding tiled and paired-tiled cleanups passed their focused runs of 42 and 46 tests respectively. These suites overlap.

**Real model on rebased source `5a225f032`, before the switch cleanups.** The SHA-256 of the [pinned Q2_K GGUF](https://huggingface.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF/blob/bf5b95e96dac0462e2a09145ec66cae9a3f12067/Meta-Llama-3.1-8B-Instruct-Q2_K.gguf) was `3f7f9265554ac91f1fb31c1b63b9cada4362533dfaa3f6e8dfc33c48d36909ce`. Deterministic HRX generation answered “Paris.” on the capital-of-France prompt. Matched WikiText perplexity used context and batch size 512, 16 threads, and the same model and executable on CPU and HRX. A second HRX run reproduced both results to four decimal places.

| Regime | Microbatch | Chunks | CPU PPL | HRX PPL |
|---|---:|---:|---:|---:|
| Prefill-like | 512 | 32 | 9.5086 | 9.5154 |
| Decode-like | 1 | 2 | 6.9246 | 6.9089 |

On gfx1151, three repetitions of `llama-bench` measured 713.6 tokens/s for prefill (512 tokens), 50.45 tokens/s for decode (64 tokens), and 3,620.4 MiB peak process RSS.

**Earlier validation on the original branch (`972fd1c83`).** On a Radeon 8060S with HRX `82214dfb` and TheRock run `34419394260`, all 33 focused operator cases passed, including crafted codes and scale/minimum values, mixed-format gate/up, tails, and repeated imported weights. Placement logs showed 33/33 layers offloaded. Q2_K and the Q8_0, Q4_K_M, Q6_K, and Q5_K_M controls passed generation and matched HRX/Vulkan/CPU perplexity. For Q2_K, HRX/Vulkan/CPU perplexity was 9.5198/9.5097/9.5086 for prefill-like evaluation and 6.9089/6.9142/6.9141 for decode-like evaluation.

On that branch, reusing decode state raised prefill from 509.3 to 765.8 tokens/s. A seven-repetition check measured 467.6 to 711.6 tokens/s for prefill and 52.08 to 52.30 tokens/s for decode. Peak process RSS was 3,819.1 MiB and live HRX weight allocation was 3,024.4 MiB. The broader Q2_K backend suite passed 52/63 cases. The remaining eleven were unsupported batched shapes outside this checkpoint's graph and also failed with the Q3_K control.

## Requirements

- Reviewed the contributing guidance and fork instructions.
- AI usage disclosure — **Yes**. Codex implemented the decoder and tests, ran validation, and prepared the draft at the contributor's request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants