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
setup.py: fail loudly when torch is present but the build config cannot load
YanissAmz80ecce669e1b
diff --git a/setup.py b/setup.pyindex 4836c8b..a200b93 100644--- a/setup.py+++ b/setup.py@@ -96,6 +96,8 @@ def _load_get_sources():_spec.loader.exec_module(_mod)return _mod.get_sourcesexcept (ImportError, OSError):+ if torch:+ raise # a real build must fail loudly, never produce an empty extensionreturn None@@ -103,12 +105,9 @@ _get_sources = _load_get_sources()is_rocm = bool(torch and torch_version.hip)if is_rocm:- try:- sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))- from exllamav3.util.arch_list import maybe_set_arch_list_env- maybe_set_arch_list_env()- except (ImportError, RuntimeError):- pass+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))+ from exllamav3.util.arch_list import maybe_set_arch_list_env+ maybe_set_arch_list_env()if _get_sources is not None:sources = _get_sources(sources_dir, is_rocm, base_dir=os.path.dirname(__file__))else: