mirror of
https://github.com/cloudstack-llc/mlx-knife.git
synced 2026-07-22 18:45:25 -04:00
6279b82be8
Promote 1.1.1-beta.3 to stable with metadata updates: ✅ Version: 1.1.1b3 → 1.1.1 (stable) ✅ PyPI classifier: Development Status 4 Beta → 5 Stable ✅ Documentation: Updated to reflect stable release ✅ Sponsor link: Fixed tileslauncher → tileshq ✅ Security policy: Support 1.1.1 + 2.0.0-beta.3 only No functional changes - same MXFP4 + GPT-OSS features as beta.3
43 lines
1.1 KiB
Python
43 lines
1.1 KiB
Python
"""MLX Knife - HuggingFace-style cache management for MLX models.
|
|
|
|
A lightweight, ollama-like CLI for managing and running MLX models on Apple Silicon.
|
|
Provides native MLX execution with streaming output and interactive chat capabilities.
|
|
"""
|
|
|
|
# Suppress urllib3 LibreSSL warning on macOS system Python 3.9 (must be before any imports that use urllib3)
|
|
import warnings
|
|
|
|
warnings.filterwarnings('ignore', message='urllib3 v2 only supports OpenSSL 1.1.1+')
|
|
|
|
__version__ = "1.1.1"
|
|
__author__ = "The BROKE team"
|
|
__email__ = "broke@gmx.eu"
|
|
__license__ = "MIT"
|
|
__description__ = "ollama-style CLI for MLX models on Apple Silicon"
|
|
__url__ = "https://github.com/mzau/mlx-knife"
|
|
|
|
# Version tuple for programmatic access (major, minor, patch)
|
|
VERSION = (1, 1, 1)
|
|
|
|
# Core functionality imports
|
|
from .cache_utils import (
|
|
check_all_models_health,
|
|
check_model_health,
|
|
list_models,
|
|
rm_model,
|
|
show_model,
|
|
)
|
|
from .hf_download import pull_model
|
|
from .mlx_runner import MLXRunner
|
|
|
|
__all__ = [
|
|
"__version__",
|
|
"list_models",
|
|
"show_model",
|
|
"check_model_health",
|
|
"check_all_models_health",
|
|
"rm_model",
|
|
"pull_model",
|
|
"MLXRunner",
|
|
]
|