Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.
Python amdapple-siliconcudadeepseekexl3exllamav3glminferencellmllm-inferencelocal-llmnvidiaopenai-apiquantizationqwenrocmstrix-halo
#pragma once
#if defined(USE_ROCM)
#include <ATen/Tensor.h>
// QSA selection: fp16 (R, T) with 128-aligned row stride, top-k (1 <= k <= 512) into
// contiguous int32 (R, W), k <= W <= 512, ascending indices then -1 padding.
void dsa_topk_gfx12(const at::Tensor& scores, at::Tensor& indices, int64_t k);
// Same contract and bitwise-identical output, row read from memory once (width <= 32768, 16-byte aligned base,
// threads 512 or 1024).
void dsa_topk_gfx12_v2(const at::Tensor& scores, at::Tensor& indices, int64_t k, int64_t threads);
#endif