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
Prefill: checkpoint spacing before the tail window can be set per job (EXL3_CKPT_INTERVAL_PP, default the generator's 32768)
YanissAmzad00d756a3c7
diff --git a/exllamav3/generator/job.py b/exllamav3/generator/job.pyindex b4c791f..9ae6c5a 100644--- a/exllamav3/generator/job.py+++ b/exllamav3/generator/job.py@@ -321,6 +321,11 @@ class Job:self.last_recurrent_checkpoint_pos = Noneself.roll_ckpt = os.environ.get("EXL3_ROLL_CKPT", "0") == "1"self.roll_key = None+ # EXL3_CKPT_INTERVAL_PP (default 0 = the generator's recurrent_checkpoint_interval_pp, 32768): checkpoint spacing+ # during prompt ingestion before the tail window, read per job. A smaller grid lets a NEW conversation that shares+ # only a long prefix (system prompt) of a cached one resume near the shared end instead of at token 0+ self.ckpt_interval_pp = int(os.environ.get("EXL3_CKPT_INTERVAL_PP", "0"))+ assert self.ckpt_interval_pp % PAGE_SIZE == 0, "EXL3_CKPT_INTERVAL_PP must be a multiple of the page size"# Loop detectorself.loop_detector = None@@ -1821,7 +1826,7 @@ class Job:elif seq_pos >= prompt_len - self.generator.max_chunk_size * 2:return (seq_pos - self.cached_pages * PAGE_SIZE) % self.generator.recurrent_checkpoint_interval == 0else:- return (seq_pos - self.cached_pages * PAGE_SIZE) % self.generator.recurrent_checkpoint_interval_pp == 0+ return (seq_pos - self.cached_pages * PAGE_SIZE) % (self.ckpt_interval_pp or self.generator.recurrent_checkpoint_interval_pp) == 0def mm_exact_spans(self, seq):