Skip to content

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.

Hy4 step tools: HB micro test loads ref_fused without the extension build

YanissAmzbd577b3ea3c0
diff --git a/tools/hy4/step/mla_hb_test.py b/tools/hy4/step/mla_hb_test.py
index 0810ffd..0dbf8a1 100644
--- a/tools/hy4/step/mla_hb_test.py
+++ b/tools/hy4/step/mla_hb_test.py
@@ -2,8 +2,9 @@
import os, sys, time, statistics
import torch
tree = os.getcwd()
-sys.path.insert(0, tree)
-from exllamav3.loader import ref_fused as rf
+import importlib.util
+spec = importlib.util.spec_from_file_location("ref_fused", os.path.join(tree, "exllamav3", "loader", "ref_fused.py"))
+rf = importlib.util.module_from_spec(spec); spec.loader.exec_module(rf)
dev = "cuda"
R, P = 512, 64
torch.manual_seed(0)