【UI-TARS-desktop】本地部署步骤记录

CoPaw

内置vllm部署的Qwen3-4B-Instruct-2507模型,agentscope开源的类似openclaw个人助手。

环境信息

  • os:Ubuntu 22.04.3 LTS
  • 显卡:v100*2
  • python:3.11
  • vllm:0.6.6
  • cuda:12.2
  • 模型:UI-TARS-7B-DPO

安装步骤

1. 安装虚拟环境并安装相关依赖

conda create -n unsloth_env python==3.11
pip install -U transformers
VLLM_VERSION=0.6.6
CUDA_VERSION=cu124
pip install vllm==${VLLM_VERSION} --extra-index-url https://download.pytorch.org/whl/${CUDA_VERSION}

2. 下载模型文件

modelscope download --model bytedance-research/UI-TARS-7B-DPO  --local_dir ./UI-TARS-7B-DPO

2.1 修改preprocessor_config.json文件

"size": {
    "max_pixels": 2116800,
    "min_pixels": 3136,
    # 新增两行
    "shortest_edge": 1000,
    "longest_edge": 2000
  },

3. 启动服务

CUDA_VISIBLE_DEVICES=2,3 python -m vllm.entrypoints.openai.api_server --served-model-name ui-tars --dtype=half --tensor-parallel-size 2 --trust-remote-code --model ./UI-TARS-7B-DPO/ --limit-mm-per-prompt "image=6"

参数:
–dtype=half
–tensor-parallel-size 2
–trust-remote-code
–limit-mm-per-prompt “image=6”(如果不指定会卡在第一张)
参考链接:https://github.com/vllm-project/vllm/issues/9739

启动成功在这里插入图片描述

4. 安装agent(windows)并配置

在这里插入图片描述

5. 效果

下载地址(html):https://download.csdn.net/download/shen12138/90602874

总结

很慢,也可能是我gpu卡太差,一个询问天气的问题,跑了将近3分钟。

您可能感兴趣的与本文相关的镜像

CoPaw

CoPaw

AI应用
Qwen
Qwen3

内置vllm部署的Qwen3-4B-Instruct-2507模型,agentscope开源的类似openclaw个人助手。

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值