Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

892 B
Raw Blame
// Autogenerated stub
import definitions;

[[Variants("T", "float, BFloat16")]]
[[Variants("QKT", "float, BFloat16")]]
[[Variants("HEAD_K_DIM", "128")]]
[[Public]] [[Kernel]] func DeltaNetPrefillPrep<T, QKT, let HEAD_K_DIM: uint32_t>(
  StructuredBuffer<T> in_proj,
  StructuredBuffer<float> a_log,
  StructuredBuffer<float> dt_bias,
  RWStructuredBuffer<QKT> q_norm_out,
  RWStructuredBuffer<QKT> k_norm_out,
  [[Optional("write_compact_v")]] RWStructuredBuffer<T> compact_v_out,
  RWStructuredBuffer<float> beta_out,
  RWStructuredBuffer<float> decay_out,
  uint32_t num_v_heads,
  uint32_t num_k_heads,
  uint32_t key_dim,
  uint32_t value_dim,
  uint32_t suffix_len,
  [[Groups("suffix_len")]] uint32_t token_idx,
  [[Groups("num_k_heads")]] uint32_t hk_idx,
  [[Specialize]] bool write_log_decay,
  [[Specialize]] bool write_compact_v,
  [[Threads("32")]] uint32_t lane,
) {
  // TODO
}