Skip to content

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.

483 B
Raw Blame
#pragma once

#if defined(USE_ROCM)

#include <ATen/Tensor.h>

// Decode-only standard MoE router for up to eight gfx1200/gfx1201 rows. The gate is
// supplied as a persistent contiguous (experts, hidden) transpose so each GEMV is coalesced.
// The bsz1 name is retained as a compatibility binding.
void routing_std_gfx12_bsz1
(
    const at::Tensor& hidden,
    const at::Tensor& gate_t,
    at::Tensor& scores,
    at::Tensor& topk_indices,
    at::Tensor& topk_weights
);

#endif