cua-agent 0.4.33__py3-none-any.whl → 0.4.34__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cua-agent might be problematic. Click here for more details.
- agent/loops/moondream3.py +13 -8
- {cua_agent-0.4.33.dist-info → cua_agent-0.4.34.dist-info}/METADATA +5 -1
- {cua_agent-0.4.33.dist-info → cua_agent-0.4.34.dist-info}/RECORD +5 -5
- {cua_agent-0.4.33.dist-info → cua_agent-0.4.34.dist-info}/WHEEL +0 -0
- {cua_agent-0.4.33.dist-info → cua_agent-0.4.34.dist-info}/entry_points.txt +0 -0
agent/loops/moondream3.py
CHANGED
|
@@ -20,8 +20,6 @@ import io
|
|
|
20
20
|
from typing import Dict, List, Any, Optional, Tuple, Any
|
|
21
21
|
|
|
22
22
|
from PIL import Image, ImageDraw, ImageFont
|
|
23
|
-
import torch
|
|
24
|
-
from transformers import AutoModelForCausalLM
|
|
25
23
|
import litellm
|
|
26
24
|
|
|
27
25
|
from ..decorators import register_agent
|
|
@@ -41,12 +39,19 @@ def get_moondream_model() -> Any:
|
|
|
41
39
|
"""Get a singleton instance of the Moondream3 preview model."""
|
|
42
40
|
global _MOONDREAM_SINGLETON
|
|
43
41
|
if _MOONDREAM_SINGLETON is None:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
try:
|
|
43
|
+
import torch
|
|
44
|
+
from transformers import AutoModelForCausalLM
|
|
45
|
+
_MOONDREAM_SINGLETON = AutoModelForCausalLM.from_pretrained(
|
|
46
|
+
"moondream/moondream3-preview",
|
|
47
|
+
trust_remote_code=True,
|
|
48
|
+
torch_dtype=torch.bfloat16,
|
|
49
|
+
device_map="cuda",
|
|
50
|
+
)
|
|
51
|
+
except ImportError as e:
|
|
52
|
+
raise RuntimeError(
|
|
53
|
+
"moondream3 requires torch and transformers. Install with: pip install cua-agent[moondream3]"
|
|
54
|
+
) from e
|
|
50
55
|
return _MOONDREAM_SINGLETON
|
|
51
56
|
|
|
52
57
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cua-agent
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.34
|
|
4
4
|
Summary: CUA (Computer Use) Agent for AI-driven computer interaction
|
|
5
5
|
Author-Email: TryCua <gh@trycua.com>
|
|
6
6
|
Requires-Python: >=3.12
|
|
@@ -43,6 +43,10 @@ Requires-Dist: torch; extra == "internvl-hf"
|
|
|
43
43
|
Requires-Dist: transformers>=4.55.0; extra == "internvl-hf"
|
|
44
44
|
Requires-Dist: einops; extra == "internvl-hf"
|
|
45
45
|
Requires-Dist: timm; extra == "internvl-hf"
|
|
46
|
+
Provides-Extra: moondream3
|
|
47
|
+
Requires-Dist: accelerate; extra == "moondream3"
|
|
48
|
+
Requires-Dist: torch; extra == "moondream3"
|
|
49
|
+
Requires-Dist: transformers>=4.55.0; extra == "moondream3"
|
|
46
50
|
Provides-Extra: ui
|
|
47
51
|
Requires-Dist: gradio>=5.23.3; extra == "ui"
|
|
48
52
|
Requires-Dist: python-dotenv>=1.0.1; extra == "ui"
|
|
@@ -43,7 +43,7 @@ agent/loops/gta1.py,sha256=uGIcUH5ChzO75eGvoQxuKMBWjX-1J9-xmC7vPetobjU,5831
|
|
|
43
43
|
agent/loops/holo.py,sha256=peQ0xx4XQDBQ3g2XKRLCgyrU_2PkXe3RaysNBqFyS90,7481
|
|
44
44
|
agent/loops/internvl.py,sha256=iQs6DSoP9JOyUxRAz_HPuv4Hi2Sbv-Jc3022W-oPX5Y,6596
|
|
45
45
|
agent/loops/model_types.csv,sha256=GmFn4x80yoUpQZuQ-GXtJkPVlOLYWZ5u_5A73HRyeNE,112
|
|
46
|
-
agent/loops/moondream3.py,sha256=
|
|
46
|
+
agent/loops/moondream3.py,sha256=ZmTcJxLxHzrxQqbXHyTJxv5bCSVjotjo-cIWH8u9olk,18085
|
|
47
47
|
agent/loops/omniparser.py,sha256=-db8JUL2Orn47ERIaLbuNShAXn4LeIgYzRWphn_9Dg4,15071
|
|
48
48
|
agent/loops/openai.py,sha256=2typWRS7j2sVm52AzwwigPniCrdw9IVvllypjXN2mKI,8694
|
|
49
49
|
agent/loops/opencua.py,sha256=Chb4UASHDrdcX_fO__Gw2e9ay4Hl6Vq38K5x-IoHyuo,4432
|
|
@@ -57,7 +57,7 @@ agent/ui/__main__.py,sha256=vudWXYvGM0aNT5aZ94HPtGW8YXOZ4cLXepHyhUM_k1g,73
|
|
|
57
57
|
agent/ui/gradio/__init__.py,sha256=yv4Mrfo-Sj2U5sVn_UJHAuwYCezo-5O4ItR2C9jzNko,145
|
|
58
58
|
agent/ui/gradio/app.py,sha256=Ol97YEbwREZZQ9_PMjVHlfOcu9BGsawxgAGAm79hT80,9117
|
|
59
59
|
agent/ui/gradio/ui_components.py,sha256=dJUvKDmc1oSejtoR_gU_oWWYwxaOOQyPloSYRGMrUCQ,36068
|
|
60
|
-
cua_agent-0.4.
|
|
61
|
-
cua_agent-0.4.
|
|
62
|
-
cua_agent-0.4.
|
|
63
|
-
cua_agent-0.4.
|
|
60
|
+
cua_agent-0.4.34.dist-info/METADATA,sha256=bfV4ikbYKrLbB3IQV6naEBEeSJK8nS6SzdgWmcBR_60,6649
|
|
61
|
+
cua_agent-0.4.34.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
62
|
+
cua_agent-0.4.34.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
63
|
+
cua_agent-0.4.34.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|