Files
kvcache-ai--ktransformers/kt-kernel/python/cli/__init__.py
T
wehub-resource-sync ec436095dd
Book-CI / test (macos-latest) (push) Waiting to run
Deploy / deploy (macos-latest) (push) Waiting to run
Deploy / deploy (ubuntu-latest) (push) Waiting to run
Deploy / deploy (windows-latest) (push) Waiting to run
Release to PyPI / Build & publish sglang-kt (push) Waiting to run
Release to PyPI / Build kt-kernel (Python 3.11) (push) Waiting to run
Release to PyPI / Build kt-kernel (Python 3.12) (push) Waiting to run
Release to PyPI / Publish kt-kernel to PyPI (push) Blocked by required conditions
Book-CI / test (ubuntu-latest) (push) Waiting to run
Book-CI / test (windows-latest) (push) Waiting to run
Release Fake Tag / publish (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:30:03 +08:00

22 lines
696 B
Python

"""
KTransformers CLI - A unified command-line interface for KTransformers.
This CLI provides a user-friendly interface to all KTransformers functionality,
including model inference, fine-tuning, benchmarking, and more.
"""
from importlib.metadata import PackageNotFoundError, version
from pathlib import Path
try:
__version__ = version("kt-kernel")
except PackageNotFoundError:
_version_ns = {}
_root_version_file = Path(__file__).resolve().parents[3] / "version.py"
if _root_version_file.exists():
exec(_root_version_file.read_text(encoding="utf-8"), _version_ns)
__version__ = _version_ns.get("__version__", "0.6.1")
else:
__version__ = "0.6.1"