chore: bump version to 0.5.3 (#1909)

This commit is contained in:
Jianwei Dong
2026-04-01 18:58:48 +08:00
committed by GitHub
parent 9e6484a538
commit db9326302b
9 changed files with 44 additions and 32 deletions

View File

@@ -68,9 +68,9 @@ try:
_version_ns = {}
with open(_root_version_file, "r", encoding="utf-8") as f:
exec(f.read(), _version_ns)
__version__ = _version_ns.get("__version__", "0.4.3")
__version__ = _version_ns.get("__version__", "0.5.3")
else:
__version__ = "0.4.3"
__version__ = "0.5.3"
except ImportError:
# Python < 3.8, fallback to pkg_resources or hardcoded version
try:
@@ -79,8 +79,8 @@ except ImportError:
try:
__version__ = get_distribution("kt-kernel").version
except DistributionNotFound:
__version__ = "0.4.3"
__version__ = "0.5.3"
except ImportError:
__version__ = "0.4.3"
__version__ = "0.5.3"
__all__ = ["KTMoEWrapper", "generate_gpu_experts_masks", "kt_kernel_ext", "__cpu_variant__", "__version__"]

View File

@@ -5,4 +5,17 @@ This CLI provides a user-friendly interface to all KTransformers functionality,
including model inference, fine-tuning, benchmarking, and more.
"""
__version__ = "0.1.0"
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.5.3")
else:
__version__ = "0.5.3"