13 lines
319 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""按 backend 选 venv 与命令模板。harness 的职责;agent 无权改。"""
from __future__ import annotations
from . import ptq, qat
BACKENDS = {"ptq": ptq, "qat": qat}
def get(backend: str):
if backend not in BACKENDS:
raise KeyError(f"未知 backend: {backend}")
return BACKENDS[backend]