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
tests: skip the three script-style Hy4 CPU tests under pytest
YanissAmzb76916504502
diff --git a/tests/test_hy4_ix_topk_cpu.py b/tests/test_hy4_ix_topk_cpu.pyindex 9987bb2..6ce1024 100644--- a/tests/test_hy4_ix_topk_cpu.py+++ b/tests/test_hy4_ix_topk_cpu.py@@ -2,6 +2,11 @@_ix_topk_kernel must pick exactly the groups of the reference _ix_select_kernel (same ids in the same ascending order, same count) on the candidate path, thesample-retry path and the exact fallback path (natt=0, heavy ties); ix_select_blocked must equal ix_scores_fused + ix_select(sparse=True)."""import os, sys, types+if __name__ != "__main__":+ # script-style test: it reads the tree from sys.argv[1] and swaps stub exllamav3 packages into sys.modules at import time, so under pytest it fails at+ # collection and breaks every test file collected after it. Run it as: python tests/<this file> TREE (Triton CPU interpreter, no GPU)+ import pytest+ pytest.skip("script-style test, run as: python tests/test_hy4_ix_topk_cpu.py TREE", allow_module_level=True)os.environ["TRITON_INTERPRET"] = "1"os.environ["HIP_VISIBLE_DEVICES"] = ""os.environ["CUDA_VISIBLE_DEVICES"] = ""diff --git a/tests/test_hy4_sparse_attn_cpu.py b/tests/test_hy4_sparse_attn_cpu.pyindex 61bb1df..0aa5a4e 100644--- a/tests/test_hy4_sparse_attn_cpu.py+++ b/tests/test_hy4_sparse_attn_cpu.py@@ -1,6 +1,11 @@"""CPU test (TRITON_INTERPRET=1, no GPU) of the per-query sparse gather attention: python test_hy4_sparse_attn_cpu.py TREEix_select(sparse=True) -> PfSparse must expand to exactly the dense allow mask; mla_sparse must match an fp64 reference built from that mask (masked keys contribute 0, sink in the denominator only)."""import os, sys, types+if __name__ != "__main__":+ # script-style test: it reads the tree from sys.argv[1] and swaps stub exllamav3 packages into sys.modules at import time, so under pytest it fails at+ # collection and breaks every test file collected after it. Run it as: python tests/<this file> TREE (Triton CPU interpreter, no GPU)+ import pytest+ pytest.skip("script-style test, run as: python tests/test_hy4_sparse_attn_cpu.py TREE", allow_module_level=True)os.environ["TRITON_INTERPRET"] = "1"os.environ["HIP_VISIBLE_DEVICES"] = ""os.environ["CUDA_VISIBLE_DEVICES"] = ""diff --git a/tests/test_prime_sparse_cpu.py b/tests/test_prime_sparse_cpu.pyindex 8f340d7..de78af6 100644--- a/tests/test_prime_sparse_cpu.py+++ b/tests/test_prime_sparse_cpu.py@@ -2,6 +2,11 @@Hy4MLA._sparse_o (draft-cache fill above the blocked-selection threshold) must equal the dense masked attention over PfSparse.to_dense(), also when the K buffer holdsrows beyond start + T (the draft head passes N rounded up to a multiple of 4: those rows are garbage / zeros and must never be read)."""import os, sys, types+if __name__ != "__main__":+ # script-style test: it reads the tree from sys.argv[1] and swaps stub exllamav3 packages into sys.modules at import time, so under pytest it fails at+ # collection and breaks every test file collected after it. Run it as: python tests/<this file> TREE (Triton CPU interpreter, no GPU)+ import pytest+ pytest.skip("script-style test, run as: python tests/test_prime_sparse_cpu.py TREE", allow_module_level=True)os.environ["TRITON_INTERPRET"] = "1"os.environ["HIP_VISIBLE_DEVICES"] = ""os.environ["CUDA_VISIBLE_DEVICES"] = ""