]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
llama : add gpt-oss (llama/15091)
authorGeorgi Gerganov <redacted>
Tue, 5 Aug 2025 19:10:36 +0000 (22:10 +0300)
committerGeorgi Gerganov <redacted>
Thu, 14 Aug 2025 11:17:28 +0000 (14:17 +0300)
commit3b1451756788f8a18d370630ba74d54b94142100
tree73d0424161be4dab54cdb8cc03171d391db814a6
parentbc1d258957f2668686ffbceef6e0a81bbf2b0713
llama : add gpt-oss (llama/15091)

* oai moe

* compat with new checkpoint

* add attn sink impl

* add rope scaling yarn

* logits match with latest transformers code

* wip chat template

* rm trailing space

* use ggml_scale_bias

* rm redundant is_swa_all

* convert interleaved gate_up

* graph : fix activation function to match reference (llama/7)

* vocab : handle o200k_harmony special tokens

* ggml : add attention sinks support (llama/1)

* llama : add attn sinks

* ggml : add attn sinks

* cuda : add attn sinks

* vulkan : add support for sinks in softmax

remove unnecessary return

* ggml : add fused swiglu_oai op (llama/11)

* ggml : add fused swiglu_oai op

* Update src/ggml-cpu/ops.cpp

Co-authored-by: Georgi Gerganov <redacted>
* update CUDA impl

* cont : metal impl

* add vulkan impl

* test-backend-ops : more test cases, clean up

* llama : remove unfused impl

* remove extra lines

---------

Co-authored-by: Georgi Gerganov <redacted>
---------

Co-authored-by: slaren <redacted>
* repack mxfp4 upon conversion

* clean up a bit

* enable thinking

* add quick hack to render only some special tokens

* fix bf16 conversion

* remove vocab hack

* webui ok

* support chat parsing for gpt-oss

* fix webui

* direct mapping mxfp4, FINALLY

* force using mxfp4

* properly use lazy tensor

* ggml : add mxfp4

ggml : use e8m0 conversion instead of powf

Co-authored-by: Diego Devesa <redacted>
change kvalues_mxfp4 table to match e2m1 (llama/6)

metal : remove quantization for now (not used)

cuda : fix disabled CUDA graphs due to ffn moe bias

vulkan : add support for mxfp4

cont : add cm2 dequant

* ggml : add ggml_add_id (llama/13)

* ggml : add ggml_add_id

* add cuda impl

* llama : add weight support check for add_id

* perf opt

* add vulkan impl

* rename cuda files

* add metal impl

* allow in-place ggml_add_id

* llama : keep biases on CPU with --cpu-moe

* llama : fix compile error

ggml-ci

* cuda : add fallback for __nv_cvt_e8m0_to_bf16raw

ggml-ci

* cleanup

ggml-ci

* sycl : fix supports_op for MXFP4

ggml-ci

* fix Unknown reasoning format

* ggml-cpu : fix AVX build

ggml-ci

* fix hip build

ggml-ci

* cuda : add mxfp4 dequantization support for cuBLAS

ggml-ci

* ggml-cpu : fix mxfp4 fallback definitions for some architectures

ggml-ci

* cuda : fix version required for __nv_cvt_e8m0_to_bf16raw

---------

Co-authored-by: Xuan Son Nguyen <redacted>
Co-authored-by: slaren <redacted>
59 files changed:
include/ggml.h
src/ggml-alloc.c
src/ggml-cann/ggml-cann.cpp
src/ggml-common.h
src/ggml-cpu/arch-fallback.h
src/ggml-cpu/arch/arm/quants.c
src/ggml-cpu/arch/x86/quants.c
src/ggml-cpu/ggml-cpu.c
src/ggml-cpu/ops.cpp
src/ggml-cpu/ops.h
src/ggml-cpu/quants.c
src/ggml-cpu/quants.h
src/ggml-cpu/vec.h
src/ggml-cuda/add-id.cu [new file with mode: 0644]
src/ggml-cuda/add-id.cuh [new file with mode: 0644]
src/ggml-cuda/common.cuh
src/ggml-cuda/convert.cu
src/ggml-cuda/fattn-common.cuh
src/ggml-cuda/fattn-mma-f16.cuh
src/ggml-cuda/fattn-tile-f16.cu
src/ggml-cuda/fattn-tile-f32.cu
src/ggml-cuda/fattn-vec-f16.cuh
src/ggml-cuda/fattn-vec-f32.cuh
src/ggml-cuda/fattn-wmma-f16.cu
src/ggml-cuda/fattn.cu
src/ggml-cuda/ggml-cuda.cu
src/ggml-cuda/im2col.cu
src/ggml-cuda/mmq.cu
src/ggml-cuda/mmq.cuh
src/ggml-cuda/mmvq.cu
src/ggml-cuda/softmax.cu
src/ggml-cuda/template-instances/mmq-instance-mxfp4.cu [new file with mode: 0644]
src/ggml-cuda/unary.cu
src/ggml-cuda/unary.cuh
src/ggml-cuda/vecdotq.cuh
src/ggml-cuda/vendors/cuda.h
src/ggml-impl.h
src/ggml-metal/ggml-metal-impl.h
src/ggml-metal/ggml-metal.m
src/ggml-metal/ggml-metal.metal
src/ggml-opencl/ggml-opencl.cpp
src/ggml-quants.c
src/ggml-quants.h
src/ggml-sycl/ggml-sycl.cpp
src/ggml-vulkan/ggml-vulkan.cpp
src/ggml-vulkan/vulkan-shaders/add_id.comp [new file with mode: 0644]
src/ggml-vulkan/vulkan-shaders/copy_from_quant.comp
src/ggml-vulkan/vulkan-shaders/dequant_funcs.comp
src/ggml-vulkan/vulkan-shaders/dequant_funcs_cm2.comp
src/ggml-vulkan/vulkan-shaders/dequant_mxfp4.comp [new file with mode: 0644]
src/ggml-vulkan/vulkan-shaders/glu_head.comp
src/ggml-vulkan/vulkan-shaders/mul_mm.comp
src/ggml-vulkan/vulkan-shaders/mul_mmq_funcs.comp
src/ggml-vulkan/vulkan-shaders/soft_max.comp
src/ggml-vulkan/vulkan-shaders/swiglu_oai.comp [new file with mode: 0644]
src/ggml-vulkan/vulkan-shaders/types.comp
src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp
src/ggml.c
tests/test-backend-ops.cpp