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
#!/usr/bin/env python
"""Run tests/test_hip_dec_glm_gates.py when pytest is not installed in the venv.
Why this exists: the only pytest on this box lives in ~/.local/lib/python3.12/site-packages, and
putting that directory on PYTHONPATH breaks the ROCm library resolution of the extension
(ImportError: libamdhip64.so.7 -- torch's bundled libamdhip64.so is version-less and only becomes
findable once torch has loaded it globally). Importing torch and the extension first, and adding
the user-site directory afterwards, keeps both working.
PYTHONPATH=<repo> python tests/run_glm_gates.py
"""
import os
import sys
_HERE = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.environ.get("EXL3_REPO", os.path.dirname(_HERE)))
import torch # noqa: E402,F401
from exllamav3.ext import exllamav3_ext as ext # noqa: E402,F401
sys.path.append(os.path.expanduser("~/.local/lib/python3.12/site-packages"))
import pytest # noqa: E402
sys.exit(pytest.main([os.path.join(_HERE, "test_hip_dec_glm_gates.py"), "-s", "-q"]))