Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
Use generic AutoModel not tied to specific arch
cgutierr5b5f17af8e9a
diff --git a/libs/python/agent/agent/adapters/huggingfacelocal_adapter.py b/libs/python/agent/agent/adapters/huggingfacelocal_adapter.pyindex f8706868a2..2228605983 100644--- a/libs/python/agent/agent/adapters/huggingfacelocal_adapter.py+++ b/libs/python/agent/agent/adapters/huggingfacelocal_adapter.py@@ -8,7 +8,7 @@ from litellm import completion, acompletion# Try to import HuggingFace dependenciestry:import torch- from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor+ from transformers import AutoModelForImageTextToText, AutoProcessorHF_AVAILABLE = Trueexcept ImportError:HF_AVAILABLE = False@@ -40,7 +40,7 @@ class HuggingFaceLocalAdapter(CustomLLM):"""if model_name not in self.models:# Load model- model = Qwen2_5_VLForConditionalGeneration.from_pretrained(+ model = AutoModelForImageTextToText.from_pretrained(model_name,torch_dtype=torch.float16,device_map=self.device,