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
#include "avx2_target.h"
bool is_avx2_supported()
{
static bool avx2_check = false;
static bool avx2_supported = false;
if (avx2_check) return avx2_supported;
#ifdef __linux__
avx2_supported = __builtin_cpu_supports("avx2");
#else
int cpuInfo[4];
__cpuidex(cpuInfo, 7, 0);
avx2_supported = (cpuInfo[1] & (1 << 5)) != 0;
#endif
avx2_check = true;
// if (avx2_supported) printf("AVX2 supported\n");
// else printf("AVX2 not supported\n");
return avx2_supported;
}
bool is_f16c_supported()
{
static bool f16c_check = false;
static bool f16c_supported = false;
if (f16c_check) return f16c_supported;
#ifdef __linux__
f16c_supported = __builtin_cpu_supports("f16c");
#else
int cpuInfo[4];
__cpuidex(cpuInfo, 1, 0);
f16c_supported = (cpuInfo[2] & (1 << 29)) != 0;
#endif
f16c_check = true;
return f16c_supported;
}