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
HIP: guard the routed F16 host wrappers like their kernels, so non-gfx1151 device passes compile (#232) (#233)
Yaniss Amazouz8a03329b063a
diff --git a/exllamav3/exllamav3_ext/rocm/routed_f16/routed_f16.cu b/exllamav3/exllamav3_ext/rocm/routed_f16/routed_f16.cuindex 9df1e07..8849df6 100644--- a/exllamav3/exllamav3_ext/rocm/routed_f16/routed_f16.cu+++ b/exllamav3/exllamav3_ext/rocm/routed_f16/routed_f16.cu@@ -833,6 +833,10 @@ __global__ void RoutedCombineSharedKernel(const __half* __restrict__ rows, const} // namespace#endif} // namespace kyo_routed_f16++// The host wrappers launch the kernels above, so they share their guard: a device pass for another+// architecture has no kernels to launch (the Python side uses them on gfx1151 only).+#if !defined(__HIP_DEVICE_COMPILE__) || defined(__gfx1151__)// out[slot, :K] (F16, slot = t * top_k + s) = down[ids[t, s]] @ (silu(gate[ids[t, s]] @ x[t]) * (up[ids[t, s]] @ x[t])),// F16 operands, F32 WMMA accumulation. x: half [T, K]; ids: int32 [T, top_k] (ids outside [0, E) are skipped); counts:// int32 [E] = rows per expert; tiles: int32 [n_tiles], one per 128-row tile of an expert's bucket, expert | (tile << 16);@@ -939,4 +943,5 @@ void fq_routed_f16_combine_shared(torch::Tensor rows, torch::Tensor weights, torTORCH_CHECK(hipGetLastError() == hipSuccess, "fq_routed_f16_combine_shared: launch failed");}+#endif // gfx1151 host wrappers#endif