30 lines
794 B
Python
30 lines
794 B
Python
"""Backward-compatible shim for hardware-aware quantization selection.
|
|
|
|
The original Phase 19 placeholder `hardware_optimizer.py` never shipped real
|
|
logic. The canonical implementation now lives in `evolution.quant_selector`.
|
|
This shim preserves the legacy import path for any downstream callers while
|
|
making `quant_selector.py` the single source of truth.
|
|
"""
|
|
|
|
from evolution.quant_selector import ( # noqa: F401
|
|
HardwareInfo,
|
|
QuantLevel,
|
|
QuantSelection,
|
|
QUANT_LEVELS,
|
|
detect_hardware,
|
|
estimate_kv_cache_gb,
|
|
estimate_model_memory_gb,
|
|
select_quant_level,
|
|
)
|
|
|
|
__all__ = [
|
|
"HardwareInfo",
|
|
"QuantLevel",
|
|
"QuantSelection",
|
|
"QUANT_LEVELS",
|
|
"detect_hardware",
|
|
"estimate_kv_cache_gb",
|
|
"estimate_model_memory_gb",
|
|
"select_quant_level",
|
|
]
|