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
#include <cuda_runtime.h>
#include <cstdint>
#include <vector>
struct CoopAutotuneCandidate
{
void* kernel;
int block_dim;
int max_num_sms;
int max_concurrency;
int total_sms;
int tag;
};
struct CoopAutotuneLaunch
{
void* kernel;
int block_dim;
int num_sms;
int concurrency;
int tag;
};
class CoopKernelAutotuner
{
public:
static bool launch_locked
(
uint64_t hash,
void** kernel_args,
size_t smem,
cudaStream_t stream,
CoopAutotuneLaunch* launch_config = nullptr
);
static CoopAutotuneLaunch launch
(
uint64_t hash,
const std::vector<CoopAutotuneCandidate>& candidates,
void** kernel_args,
size_t smem,
cudaStream_t stream,
size_t numel_B = 1e9
);
};