Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

change qwen.py loop to be a generic_vlm.py fallback loop

Dillon DuPontebedf60ed76b
diff --git a/libs/python/agent/agent/loops/__init__.py b/libs/python/agent/agent/loops/__init__.py
index 5ea23d6be1..f6d3dc591a 100644
--- a/libs/python/agent/agent/loops/__init__.py
+++ b/libs/python/agent/agent/loops/__init__.py
@@ -16,7 +16,7 @@ from . import (
omniparser,
openai,
opencua,
- qwen,
+ generic_vlm,
uiins,
uitars,
uitars2,
@@ -35,7 +35,7 @@ __all__ = [
"holo",
"moondream3",
"gemini",
- "qwen",
+ "generic_vlm",
"uiins",
"gelato",
"uitars2",
diff --git a/libs/python/agent/agent/loops/qwen.py b/libs/python/agent/agent/loops/generic_vlm.py
similarity index 99%
rename from libs/python/agent/agent/loops/qwen.py
rename to libs/python/agent/agent/loops/generic_vlm.py
index f21fba2cc5..2b44b18bd8 100644
--- a/libs/python/agent/agent/loops/qwen.py
+++ b/libs/python/agent/agent/loops/generic_vlm.py
@@ -233,8 +233,8 @@ def convert_qwen_tool_args_to_computer_action(args: Dict[str, Any]) -> Optional[
return None
-@register_agent(models=r"(?i).*qwen.*", priority=-1)
-class Qwen3VlConfig(AsyncAgentConfig):
+@register_agent(models=r"(?i).*", priority=-100)
+class GenericVlmConfig(AsyncAgentConfig):
async def predict_step(
self,
messages: List[Dict[str, Any]],