Learn R Programming

ggmlR (version 0.8.4)

ggml_soft_max_add_sinks: Attach Attention Sinks to a Softmax Node

Description

The ggml_soft_max_ext counterpart of ggml_flash_attn_ext_add_sinks.

Usage

ggml_soft_max_add_sinks(tensor, sinks)

Value

The tensor (for chaining)

Arguments

tensor

A softmax node

sinks

Sink logits, one per head