mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-30 10:52:15 +00:00
Phase 12 — Energy Measurement Upgrade: - EnergyMonitor ABC with multi-vendor support (NVIDIA hw counters, AMD amdsmi, Apple zeus-ml, CPU RAPL sysfs) - EnergyBatch batch-level energy-per-token accounting - SteadyStateDetector CV-based thermal equilibrium detection - EnergyBenchmark with warmup phase - InstrumentedEngine prefers EnergyMonitor over legacy GpuMonitor - Telemetry store/aggregator extended with energy fields Phase 13 — Install, Hosting, Cross-Hardware: - jarvis doctor diagnostic command (8 checks, --json output) - jarvis init post-setup guidance with engine-specific next steps - README Quick Start section - MLX engine backend (Apple Silicon → mlx recommendation) - AMD VRAM/multi-GPU detection via rocm-smi - PyTorch MPS device selection in orchestrator trainers - PWA support (vite-plugin-pwa, service worker, manifest, icons) - Server static file serving fix for PWA files - Dockerfile.gpu.rocm + docker-compose.gpu.rocm.yml for ROCm - Eval framework display module and efficiency metrics 2244 tests pass, 37 skipped. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
466 B
Python
18 lines
466 B
Python
"""MLX inference engine backend (OpenAI-compatible API)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from openjarvis.core.registry import EngineRegistry
|
|
from openjarvis.engine._openai_compat import _OpenAICompatibleEngine
|
|
|
|
|
|
@EngineRegistry.register("mlx")
|
|
class MLXEngine(_OpenAICompatibleEngine):
|
|
"""MLX backend — thin wrapper over the shared OpenAI-compatible base."""
|
|
|
|
engine_id = "mlx"
|
|
_default_host = "http://localhost:8080"
|
|
|
|
|
|
__all__ = ["MLXEngine"]
|