Skip to content

Windows fixes - #31

Merged
ggerganov merged 5 commits into
ggml-org:masterfrom
etra0:windows-fixes
Mar 12, 2023
Merged

ggerganov merged 5 commits into
ggml-org:masterfrom
etra0:windows-fixes

Conversation

@etra0

@etra0 etra0 commented Mar 12, 2023 •

Copy link
Copy Markdown
Contributor

This would be the initial PR to be able to compile stuff in Windows.

In particular, MSVC is very picky about the features you can use and you cannot.

With C++11

  • You cannot use designated initializers (when initializing a struct, you cannot specify the fields names)
  • You cannot use VLAs, so I changed it to a vector.

A PR for the CMake build system (as agreed in #22) will be separated.

These changes were tested with MSVC 19.34.31937.0 (VS Studio 2022) and in macOS 12.6 with Apple clang version 13.1.6

Comment thread utils.cpp Resolved
@ggerganov ggerganov mentioned this pull request Mar 12, 2023
@etra0
etra0 requested a review from ggerganov March 12, 2023 15:47
@ggerganov
ggerganov merged commit eb062bb into ggml-org:master Mar 12, 2023
Hades32 pushed a commit to Hades32/llama.cpp that referenced this pull request Mar 21, 2023
theo77186 pushed a commit to theo77186/llama.cpp that referenced this pull request Oct 28, 2025
jesusmb1995 pushed a commit to jesusmb1995/llama.cpp that referenced this pull request Oct 30, 2025
rururush pushed a commit to USTC-ADSL/llama.cpp that referenced this pull request Mar 16, 2026
* print build type

* wip

* print compiling flags

* wip

* wip
TheTom referenced this pull request in TheTom/llama-cpp-turboquant Mar 25, 2026
…31

Block 128: PPL=165.6 (same as block 32)
Disabled Q rotation: PPL=165.6 (same)
Root cause: dynamic_cast fails for MoE hybrid memory context.
Q rotation and V inverse rotation never execute.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
TheTom referenced this pull request in TheTom/llama-cpp-turboquant Mar 25, 2026
…#30

ROOT CAUSE: pre-rotate-queries never executed because:
1. Q ne[0]=256 (GQA concatenated heads), rotation matrix ne[0]=128
2. mctx dynamic_cast failed for MoE hybrid memory

FIX: put inverse WHT rotation back in dequantize_full_block.
This is slower (10.7 tok/s vs 77.7) but produces CORRECT results.

PERPLEXITY RESULTS:
- f16:     6.121
- q8_0:    6.111
- q4_0:    6.142
- turbo3:  6.194 (+1.2% vs q8_0) ✅

The speed optimization (pre-rotate-queries) needs to be reimplemented
to work with GQA head layout and hybrid memory types.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
TheTom referenced this pull request in TheTom/llama-cpp-turboquant Mar 26, 2026
…31

Block 128: PPL=165.6 (same as block 32)
Disabled Q rotation: PPL=165.6 (same)
Root cause: dynamic_cast fails for MoE hybrid memory context.
Q rotation and V inverse rotation never execute.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
TheTom referenced this pull request in TheTom/llama-cpp-turboquant Mar 26, 2026
…#30

ROOT CAUSE: pre-rotate-queries never executed because:
1. Q ne[0]=256 (GQA concatenated heads), rotation matrix ne[0]=128
2. mctx dynamic_cast failed for MoE hybrid memory

FIX: put inverse WHT rotation back in dequantize_full_block.
This is slower (10.7 tok/s vs 77.7) but produces CORRECT results.

PERPLEXITY RESULTS:
- f16:     6.121
- q8_0:    6.111
- q4_0:    6.142
- turbo3:  6.194 (+1.2% vs q8_0) ✅

The speed optimization (pre-rotate-queries) needs to be reimplemented
to work with GQA head layout and hybrid memory types.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
spiritbuun referenced this pull request in spiritbuun/buun-llama-cpp Mar 27, 2026
- turbo4 K+V results on Qwen3.5-27B (-0.32% vs q8_0) and Qwen3-14B (+6.3%)
- Sparse V dequant benchmarks: MoE native dequant +10.9% at 8K
- Gemma-3 turbo3 results post-iSWA fix (+3.3%)
- KVLinC no-K-rotation negative result
- Speculative decoding negative result
- CUDA 13.2 compatibility verified
- Experiments #31, #39, #42, #45, #49, #50, #51 status updates

Co-Authored-By: Claude Opus 4.6 <[email protected]>
didlawowo pushed a commit to didlawowo/llama.cpp that referenced this pull request Mar 27, 2026
…ml-org#31 ggml-org#30

ROOT CAUSE: pre-rotate-queries never executed because:
1. Q ne[0]=256 (GQA concatenated heads), rotation matrix ne[0]=128
2. mctx dynamic_cast failed for MoE hybrid memory

FIX: put inverse WHT rotation back in dequantize_full_block.
This is slower (10.7 tok/s vs 77.7) but produces CORRECT results.

PERPLEXITY RESULTS:
- f16:     6.121
- q8_0:    6.111
- q4_0:    6.142
- turbo3:  6.194 (+1.2% vs q8_0) ✅

The speed optimization (pre-rotate-queries) needs to be reimplemented
to work with GQA head layout and hybrid memory types.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
itme-brain pushed a commit to itme-brain/llama.cpp that referenced this pull request Apr 16, 2026
…gml-org#31

Block 128: PPL=165.6 (same as block 32)
Disabled Q rotation: PPL=165.6 (same)
Root cause: dynamic_cast fails for MoE hybrid memory context.
Q rotation and V inverse rotation never execute.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
itme-brain pushed a commit to itme-brain/llama.cpp that referenced this pull request Apr 16, 2026
…ml-org#31 ggml-org#30

ROOT CAUSE: pre-rotate-queries never executed because:
1. Q ne[0]=256 (GQA concatenated heads), rotation matrix ne[0]=128
2. mctx dynamic_cast failed for MoE hybrid memory

FIX: put inverse WHT rotation back in dequantize_full_block.
This is slower (10.7 tok/s vs 77.7) but produces CORRECT results.

PERPLEXITY RESULTS:
- f16:     6.121
- q8_0:    6.111
- q4_0:    6.142
- turbo3:  6.194 (+1.2% vs q8_0) ✅

The speed optimization (pre-rotate-queries) needs to be reimplemented
to work with GQA head layout and hybrid memory types.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
YuruDeveloper pushed a commit to YuruDeveloper/llama.cpp-quant that referenced this pull request Apr 21, 2026
…gml-org#31

Block 128: PPL=165.6 (same as block 32)
Disabled Q rotation: PPL=165.6 (same)
Root cause: dynamic_cast fails for MoE hybrid memory context.
Q rotation and V inverse rotation never execute.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
YuruDeveloper pushed a commit to YuruDeveloper/llama.cpp-quant that referenced this pull request Apr 21, 2026
…ml-org#31 ggml-org#30

ROOT CAUSE: pre-rotate-queries never executed because:
1. Q ne[0]=256 (GQA concatenated heads), rotation matrix ne[0]=128
2. mctx dynamic_cast failed for MoE hybrid memory

FIX: put inverse WHT rotation back in dequantize_full_block.
This is slower (10.7 tok/s vs 77.7) but produces CORRECT results.

PERPLEXITY RESULTS:
- f16:     6.121
- q8_0:    6.111
- q4_0:    6.142
- turbo3:  6.194 (+1.2% vs q8_0) ✅

The speed optimization (pre-rotate-queries) needs to be reimplemented
to work with GQA head layout and hybrid memory types.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
* Apply fixes suggested to build on windows

Issue: ggml-org#22

* Remove unsupported VLAs

* MSVC: Remove features that are only available on MSVC C++20.

* Fix zero initialization of the other fields.

* Change the use of vector for stack allocations.
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
Jcfunk pushed a commit to Jcfunk/llama.cpp that referenced this pull request May 9, 2026
…gml-org#31

Block 128: PPL=165.6 (same as block 32)
Disabled Q rotation: PPL=165.6 (same)
Root cause: dynamic_cast fails for MoE hybrid memory context.
Q rotation and V inverse rotation never execute.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Jcfunk pushed a commit to Jcfunk/llama.cpp that referenced this pull request May 9, 2026
…ml-org#31 ggml-org#30

ROOT CAUSE: pre-rotate-queries never executed because:
1. Q ne[0]=256 (GQA concatenated heads), rotation matrix ne[0]=128
2. mctx dynamic_cast failed for MoE hybrid memory

FIX: put inverse WHT rotation back in dequantize_full_block.
This is slower (10.7 tok/s vs 77.7) but produces CORRECT results.

PERPLEXITY RESULTS:
- f16:     6.121
- q8_0:    6.111
- q4_0:    6.142
- turbo3:  6.194 (+1.2% vs q8_0) ✅

The speed optimization (pre-rotate-queries) needs to be reimplemented
to work with GQA head layout and hybrid memory types.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
itme-brain pushed a commit to itme-brain/llama.cpp that referenced this pull request May 11, 2026
…gml-org#31

Block 128: PPL=165.6 (same as block 32)
Disabled Q rotation: PPL=165.6 (same)
Root cause: dynamic_cast fails for MoE hybrid memory context.
Q rotation and V inverse rotation never execute.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
itme-brain pushed a commit to itme-brain/llama.cpp that referenced this pull request May 11, 2026
…ml-org#31 ggml-org#30

ROOT CAUSE: pre-rotate-queries never executed because:
1. Q ne[0]=256 (GQA concatenated heads), rotation matrix ne[0]=128
2. mctx dynamic_cast failed for MoE hybrid memory

FIX: put inverse WHT rotation back in dequantize_full_block.
This is slower (10.7 tok/s vs 77.7) but produces CORRECT results.

PERPLEXITY RESULTS:
- f16:     6.121
- q8_0:    6.111
- q4_0:    6.142
- turbo3:  6.194 (+1.2% vs q8_0) ✅

The speed optimization (pre-rotate-queries) needs to be reimplemented
to work with GQA head layout and hybrid memory types.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Jcfunk pushed a commit to Jcfunk/llama.cpp that referenced this pull request May 13, 2026
…gml-org#31

Block 128: PPL=165.6 (same as block 32)
Disabled Q rotation: PPL=165.6 (same)
Root cause: dynamic_cast fails for MoE hybrid memory context.
Q rotation and V inverse rotation never execute.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Jcfunk pushed a commit to Jcfunk/llama.cpp that referenced this pull request May 13, 2026
…ml-org#31 ggml-org#30

ROOT CAUSE: pre-rotate-queries never executed because:
1. Q ne[0]=256 (GQA concatenated heads), rotation matrix ne[0]=128
2. mctx dynamic_cast failed for MoE hybrid memory

FIX: put inverse WHT rotation back in dequantize_full_block.
This is slower (10.7 tok/s vs 77.7) but produces CORRECT results.

PERPLEXITY RESULTS:
- f16:     6.121
- q8_0:    6.111
- q4_0:    6.142
- turbo3:  6.194 (+1.2% vs q8_0) ✅

The speed optimization (pre-rotate-queries) needs to be reimplemented
to work with GQA head layout and hybrid memory types.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Jcfunk pushed a commit to Jcfunk/llama.cpp that referenced this pull request May 13, 2026
…gml-org#31

Block 128: PPL=165.6 (same as block 32)
Disabled Q rotation: PPL=165.6 (same)
Root cause: dynamic_cast fails for MoE hybrid memory context.
Q rotation and V inverse rotation never execute.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
meh pushed a commit to meh/llama.cpp that referenced this pull request May 19, 2026
…-set-device

fix: set device before hipStreamWaitEvent in multi-GPU pipeline parallel
ckti pushed a commit to ckti/llama.cpp-consolidated that referenced this pull request May 22, 2026
…gml-org#31

Block 128: PPL=165.6 (same as block 32)
Disabled Q rotation: PPL=165.6 (same)
Root cause: dynamic_cast fails for MoE hybrid memory context.
Q rotation and V inverse rotation never execute.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ckti pushed a commit to ckti/llama.cpp-consolidated that referenced this pull request May 22, 2026
…ml-org#31 ggml-org#30

ROOT CAUSE: pre-rotate-queries never executed because:
1. Q ne[0]=256 (GQA concatenated heads), rotation matrix ne[0]=128
2. mctx dynamic_cast failed for MoE hybrid memory

FIX: put inverse WHT rotation back in dequantize_full_block.
This is slower (10.7 tok/s vs 77.7) but produces CORRECT results.

PERPLEXITY RESULTS:
- f16:     6.121
- q8_0:    6.111
- q4_0:    6.142
- turbo3:  6.194 (+1.2% vs q8_0) ✅

The speed optimization (pre-rotate-queries) needs to be reimplemented
to work with GQA head layout and hybrid memory types.

Co-Authored-By: [email protected]
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
tgrid0 pushed a commit to tgrid0/llama.cpp that referenced this pull request Sep 18, 2026
tgrid0 pushed a commit to tgrid0/llama.cpp that referenced this pull request Sep 18, 2026
Docs only (SYNC.md). Leaves strix 0 commits behind halo-box.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
woct0rdho pushed a commit to woct0rdho/llama.cpp that referenced this pull request Oct 17, 2026
nvwaonline added a commit to rulith-dev/llama.cpp that referenced this pull request Nov 9, 2026
… on the disk tier (ggml-org#31), cancelled queued requests dropped (ggml-org#28), load progress lines (ggml-org#29)

- ggml-org#30: the disk and RAM tiers measure a stored entry by the own-token splice walk (server_tokens_own_walk, shared with
  splice_own_keep) instead of the raw common prefix, which stopped where sampled tokens differ from their retokenized
  text; checkpoints qualify only where the splice keeps everything up to them; the in-flight write wait uses the same
  measure; every lookup logs its candidates (raw prefix, reach, run cover, checkpoints, the chosen one, why it lost).
- ggml-org#31: KV rows by cell in position order (llama_strix_kv_get_cells / _alloc_cells / _set_cells) so states with images
  persist and restore; a v5 manifest for media entries (text-only stays v4 byte for byte); media identity (full 64-bit
  image hashes) and the projector fingerprint in matching and checkpoint keys; another projector restores up to the
  first image; cell lists checked before a slot's conversation is dropped.
- ggml-org#28: a cancel that finds its task in no slot drops it from the queues (the main loop could hold it, about to defer
  it, and run it later for nobody); a warning when a slot stays busy for 10 s with nothing of it in the step.
- ggml-org#29: load_all_data writes "loading weights: X of Y GiB" every 10 s (the manager restarts a load that stops).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants