llama.cpp
ggml: support quant scales for fp8 and nvfp4
#28898
Open

Commits
  • ggml: add tensor scaling (per-tensor, per-channel, per-expert, per-expert-per-channel) support
    0cc4m committed 18 hours ago
  • add meta backend scale split
    0cc4m committed 18 hours ago
  • add optional activation scales to mul_mat and mul_mat_id tensors
    0cc4m committed 18 hours ago
  • handle bitnet scales too, disable in backends
    0cc4m committed 18 hours ago
  • Don't treat single expert as per-channel-per-expert
    0cc4m committed 18 hours ago
  • Temp workaround for moe-cache with scaled data-types
    0cc4m committed 18 hours ago
  • Also apply scales in CPU backend 's tiled mul_mat
    0cc4m committed 18 hours ago
  • Handle strided views on scales
    0cc4m committed 18 hours ago
  • Make *scale tensors use existing GGML_OP_MUL buffer probe
    0cc4m committed 18 hours ago
  • Make scale tensors required for ggml_type with needs_scale=true
    0cc4m committed 18 hours ago
  • Make needs_scale=true for FP8
    0cc4m committed 18 hours ago
  • Use ggml_need_scale in code-base
    0cc4m committed 18 hours ago
  • Transform companion FP8 scales
    0cc4m committed 18 hours ago
  • Add comment explaining intended use of activation scales
    0cc4m committed 18 hours ago
  • Fix pre-existing view-handling failure in meta backend
    0cc4m committed 18 hours ago
  • Enforce scale side-cars for scaled data-types during conversion
    0cc4m committed 18 hours ago
  • tq quants also need scales
    0cc4m committed 18 hours ago
  • llama: use map for scale tensors instead of manual handling
    0cc4m committed 17 hours ago
  • Fix conversion edge-case for FP8 block-scales
    0cc4m committed 17 hours ago
  • Revert "tq quants also need scales"
    0cc4m committed 17 hours ago
  • Disable dedicated kernels also for kleidiai in requant test
    0cc4m committed 17 hours ago
  • Add separate tests for scaled and unscaled DSV2
    0cc4m committed 17 hours ago
  • Also remove IQ from needs_scale related tests/behvaior
    0cc4m committed 17 hours ago
  • Wire activation scales and disallow broadcasting over K
    0cc4m committed 17 hours ago
  • Adjust build_* in lfm3.cpp
    0cc4m committed 17 hours ago
  • Avoid internal includes in test-llama-arch for moe scales
    0cc4m committed 17 hours ago
  • djust build_* in limite.c
    0cc4m committed 17 hours ago
  • Adjust build_* for mistral 4
    0cc4m committed 17 hours ago
  • More build_*_ffn changes
    0cc4m committed 17 hours ago
  • fp8 : fix integration after rebase
    0cc4m committed 17 hours ago
  • Another round of model scale map fixes
    0cc4m committed 17 hours ago
  • Only read scales for valid experts
    0cc4m committed 17 hours ago
  • handle input scales through cache similar to weight scales
    0cc4m committed 17 hours ago
  • check supports_op in cache slots
    0cc4m committed 17 hours ago
  • use is_scalar/is_vector functions
    0cc4m committed 17 hours ago
  • fix Windows CI cleanup failure
    0cc4m committed 17 hours ago
  • exclude BLOOM, JAIS and REFACT from sm_tensor due to Alibi not handled in TP correctly yet
    0cc4m committed 17 hours ago
  • increase error threshold for hunyuan and maincoder context shifting
    0cc4m committed 17 hours ago
  • adapt CUDA fusion code to scale change
    0cc4m committed 17 hours ago
  • fix MoE cache too small error
    0cc4m committed 17 hours ago
  • increase error threshold for hrm_text
    0cc4m committed 17 hours ago
  • replace missing model matmul cases
    0cc4m committed 17 hours ago
  • clean up unused CUDA code
    0cc4m committed 17 hours ago
  • more missed matmuls
    0cc4m committed 17 hours ago
  • handle per-tensor (scalar) scales in moe cache
    0cc4m committed 17 hours ago
  • place scales with their weights
    0cc4m committed 17 hours ago
  • increase error threshold for moe scales check
    0cc4m committed 17 hours ago
  • restore CUDA cublaslt scale path
    0cc4m committed 17 hours ago
  • convert model matmuls, handle weight views, add tests
    0cc4m committed 17 hours ago
  • fix comments and error style
    0cc4m committed 17 hours ago
  • cuda: use global scale functions
    0cc4m committed 17 hours ago
  • fix kleidiai
    0cc4m committed 17 hours ago
  • cuda: honour f32 prec in cublaslt call
    0cc4m committed 17 hours ago
  • update Metal fusion count
    0cc4m committed 17 hours ago
  • fix gemma4 scale issue
    0cc4m committed 17 hours ago
  • don't remove trivial scale if required
    0cc4m committed 17 hours ago
  • adapt new models changes
    0cc4m committed 17 hours ago
  • adapt conversion qwen4exp changes and tests
    0cc4m committed 17 hours ago
  • improve error message when scale unsupported
    0cc4m committed 17 hours ago
  • address feedback
    0cc4m committed 17 hours ago
Loading