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.

Restore gemma

f-trycua3ecdf2bbefe1
diff --git a/examples/agent_examples.py b/examples/agent_examples.py
index f445b5321e..8416552dc1 100644
--- a/examples/agent_examples.py
+++ b/examples/agent_examples.py
@@ -34,7 +34,7 @@ async def run_agent_example():
# model=LLM(provider=LLMProvider.OPENAI), # No model name for Operator CUA
# model=LLM(provider=LLMProvider.OPENAI, name="gpt-4.5-preview"),
# model=LLM(provider=LLMProvider.ANTHROPIC, name="claude-3-7-sonnet-20250219"),
- model=LLM(provider=LLMProvider.OLLAMA, name="qwen2.5:7b"),
+ model=LLM(provider=LLMProvider.OLLAMA, name="gemma3:4b-it-q4_K_M"),
save_trajectory=True,
only_n_most_recent_images=3,
verbosity=logging.DEBUG,
diff --git a/libs/agent/agent/core/provider_config.py b/libs/agent/agent/core/provider_config.py
index 2c454112a9..68b69e2e5b 100644
--- a/libs/agent/agent/core/provider_config.py
+++ b/libs/agent/agent/core/provider_config.py
@@ -6,7 +6,7 @@ from ..providers.omni.types import LLMProvider
DEFAULT_MODELS = {
LLMProvider.OPENAI: "gpt-4o",
LLMProvider.ANTHROPIC: "claude-3-7-sonnet-20250219",
- LLMProvider.OLLAMA: "qwen2.5:7b",
+ LLMProvider.OLLAMA: "gemma3:4b-it-q4_K_M",
}
# Map providers to their environment variable names
diff --git a/libs/agent/agent/providers/omni/clients/ollama.py b/libs/agent/agent/providers/omni/clients/ollama.py
index 4fc6fc77f9..299c90545e 100644
--- a/libs/agent/agent/providers/omni/clients/ollama.py
+++ b/libs/agent/agent/providers/omni/clients/ollama.py
@@ -20,7 +20,7 @@ class OllamaClient(BaseOmniClient):
Args:
api_key: Not used
- model: Ollama model name (e.g. "qwen2.5:7b")
+ model: Ollama model name (e.g. "gemma3:4b-it-q4_K_M")
max_retries: Maximum number of retries for API calls
retry_delay: Base delay between retries in seconds
"""
diff --git a/libs/agent/agent/providers/omni/types.py b/libs/agent/agent/providers/omni/types.py
index 764528da5b..c0d9837bee 100644
--- a/libs/agent/agent/providers/omni/types.py
+++ b/libs/agent/agent/providers/omni/types.py
@@ -36,7 +36,7 @@ Model = LLM
PROVIDER_TO_DEFAULT_MODEL: Dict[LLMProvider, str] = {
LLMProvider.ANTHROPIC: "claude-3-7-sonnet-20250219",
LLMProvider.OPENAI: "gpt-4o",
- LLMProvider.OLLAMA: "qwen2.5:7b",
+ LLMProvider.OLLAMA: "gemma3:4b-it-q4_K_M",
}
# Environment variable names for each provider