[Full Duplex] Feat: Support Full-Duplex realtime runtime & add MiniCPM-o 4.5 demo (#3907)
Signed-off-by: Sy03 <1370724210@qq.com> Signed-off-by: lishunyang12 <lishunyang03@gmail.com> Signed-off-by: Yueqian Lin <linyueqian@outlook.com> Co-authored-by: lishunyang12 <lishunyang03@gmail.com> Co-authored-by: Yueqian Lin <linyueqian@outlook.com> Co-authored-by: StormMelody <22371184@zju.edu.cn> Co-authored-by: Gao Han <hgaoaf@connect.ust.hk> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
142 files changed
+48389
-1013
No files matched your search
@@ -0,0 +1,26 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import ast
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = [pytest.mark.core_model, pytest.mark.cpu]
|
||||
|
||||
|
||||
def test_importing_scheduler_output_does_not_eagerly_import_scheduler_implementations() -> None:
|
||||
package_init = Path(__file__).parents[3] / "vllm_omni/core/sched/__init__.py"
|
||||
module = ast.parse(package_init.read_text())
|
||||
eager_modules = {
|
||||
node.module
|
||||
for node in ast.walk(module)
|
||||
if isinstance(node, ast.ImportFrom)
|
||||
and node.level == 1
|
||||
and node.module in {"omni_ar_scheduler", "omni_generation_scheduler"}
|
||||
}
|
||||
|
||||
assert eager_modules == set()
|
||||
assert any(isinstance(node, ast.FunctionDef) and node.name == "__getattr__" for node in module.body)
|
||||
Reference in new issue
Block a user