Files
wehub-resource-sync b4eee4aa71
CI / frontend-quality (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 12:09:02 +08:00

16 lines
374 B
Python

"""
LLM inference module - delegates to backend abstraction layer.
"""
from ..backends import get_llm_backend, LLMBackend
def get_llm_model() -> LLMBackend:
"""Get LLM backend instance (MLX or PyTorch based on platform)."""
return get_llm_backend()
def unload_llm_model() -> None:
"""Unload LLM model to free memory."""
get_llm_backend().unload_model()