Wednesday, 26 March 2025

UI-TARS 本地部署:手残党福音,自然语言控电脑!- UI-TARS Local Deployment: Natural Language Control for Your Computer!

快速部署 UI-TARS,让你的电脑听懂人话!- Quick deployment of UI-TARS, make your computer understand human language!



UI-TARS本地部署指南(以Mac为例):


一、前置条件

系统:macOS Ventura 或更高版本

Python:3.9+(可通过 Homebrew 安装)


存储:至少 10GB 可用空间


二、部署步骤

1. 安装基础依赖


# 安装 Homebrew(已安装可跳过)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"


# 安装 Python 和 Git(以python3.9为例, 不能低于3.9)

brew install python@3.9 git


# 创建并激活虚拟环境

python3.9 -m venv uitars_env && source uitars_env/bin/activate


2. 安装 PyTorch 和依赖


# 安装适配 Mac M芯片的 PyTorch

pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu


# 克隆仓库

git clone https://github.com/bytedance/UI-TARS.git && cd UI-TARS


# 安装项目依赖

pip install -r requirements.txt huggingface-hub bitsandbytes


3. 下载轻量模型


# 下载 Phi-2 模型(约 5GB), 如果硬件条件好,可以试试phi4

mkdir -p models/phi-2

huggingface-cli download microsoft/phi-2 --local-dir models/phi-2


4. 配置参数文件


# 修改配置文件(尽量只用CPU)

echo 'device: "cpu"\nmodel_path: "models/phi-2"\nquantize: 4bit' > configs/local_config.yaml


三、验证安装


1. 检查模型加载

python3 -c "from transformers import AutoModelForCausalLM; AutoModelForCausalLM.from_pretrained('models/phi-2'); print('✅ 模型加载成功')"


如果输出 模型加载成功!,则说明环境配置正确。


2. 运行示例


# 创建测试图片目录

mkdir test_images && curl -o test_images/demo.png https://example.com/sample-ui.png


# 执行推理

python3 scripts/predict.py --image test_images/demo.png --config configs/local_config.yaml


# 查看结果

cat outputs/demo.json


Monday, 17 March 2025

AI自动化白嫖路:OpenManus,香还是坑?

AI自动化,真香!然邀请码难求,幸有开源平替,白嫖党狂喜! AI automation is so appealing! But invite codes are hard to get. Fortunately, there are open-source alternatives, a boon for free users!


人工智能要奔自动化去了,瞧那Manus,火得一塌糊涂,可惜邀请码比天皇老子还难请。咱小民咋办?自然找免费货!如今有几个开源平替,OpenManus、MetaGPT、OmniParser、autoMate、nanobrowser,个个在GitHub上敞着门,可自用,可调用API,也可以做库:

这些玩意儿跟Manus差不多,还能自个儿改、自个儿装,省钱又省心。我拿OpenManus为例,其他的也大同小异。顺带一提,nanobrowser专搞浏览器,对标OpenAI Operator,要去Chrome store下载安装就可以用。

OpenManus装方法法和参考配置见图(创建你自己的配置文件: cp config/config.example.toml config/config.toml)

启动后,屏幕蹦出“Enter your prompt:”,你就使唤它吧。我试了这个任务:“这是在MacOS上执行的一个任务。请在当前目录下创建一个新的文件夹叫做'rzs', 然后在'rzs'文件夹里创建一个文件叫做'hi.txt',里面写一首赞美宇宙的诗歌,要求有4行,每行7个字。完成后直接打开'hi.txt'文件,我要查阅。完成就结束进程,不要浪费资源。”结果呢?跑是跑了,啥也没留,空欢喜一场,只剩它那点思考步骤还有点参考价值。新货一个,Windows或者Linux上挺欢,Mac上半死不活。

Mac上的毛病

  • 二十步傻跑:小事几步完,非要自动重复执行磨到二十步,电费哗哗流,还警告你重复,啥也干不成。

  • 路径瞎摸:给它os.path.expanduser("~/Desktop"),二十次能成一回都是运气好,文件还常是空的,Linux和Windows上明明可以成功的呀。

  • 配置抓瞎:Config只管模型,Mac的路径和环境不管,折腾死人。

  • 出错坑人:报个“Tool 'terminate' encountered a problem: Terminate.execute() missing 1 required positional argument: 'status'”,看着简单,实则没辙,任务是在自动运行中,傻跑到底还得重来,累得慌。


免费是香,可Mac党苦哈哈。社区眼里只有Linux和Windows,Mac像被遗忘了。OmniParser和autoMate勉强凑合,nanobrowser是浏览器插件。AI必然要走向自动化,但得再捯饬捯饬。目前这些开源免费自动化工具在Mac上表现实在是差强人意。

Thursday, 13 March 2025

澳洲CCS补贴全攻略: 悉尼家长必知的CCS攻略 - Aussie CCS: Sydney Parents' Must - know CCS Guide

托费愁煞人?莫急,此策(CCS)在手,银两稳留!Still worried about childcare fees? Don't worry, this guide will help you easily get CCS and stop paying for high fees!

**申请CCS:三步搞定**

1. 上myGov或Centrelink填收入、孩子岁数、幼儿园资料。

2. 扔个幼儿园注册证明上去(<10MB),写“入园确认”(Letter of enrollment + 孩子名字 + 入园日期)就行。家长发上传这个文件只是辅助,不上传也行,因为幼儿园给Centerlink发的link里都有入园确认信息。

3. 疫苗没打齐?赶紧补,不然申请卡住。

**2025财年周期:两周一发**

从2024年7月7日到2025年6月29日,26个双周发补贴。记住日子,别错过饭票!
2024-2025年周期见图

**收入决定补贴:有钱少拿**

- 年入≤83,280澳元,90%费用搞定。

- 83,280到530,000澳元,补贴慢慢缩水。

- 超530,000澳元?土豪请自觉退出群聊。

- 多娃家庭有加成,收入超365,611澳元就没了。

**钱咋给?**

通常直接打给幼儿园,你付剩的。有时得先垫钱再退,问清楚,别被坑。


**换幼儿园?小心28天大坑!**

换园子,CCS不会自己跟过去。幼儿园发链接给Centrelink那天起,倒推28天后的第一个CCS周期才开始发补贴。超28天?抱歉,之前全自费!比如3月12日幼儿园发链接,回溯到2月12日,补贴从2月17日算起。幼儿园才不管你CCS到没到,家长得死盯Centrelink,不然钱包哭晕!那假如幼儿园link迟发了怎么办?幼儿园是不管的,看你和Centerlink吵架的功力了,基本上是地狱级的。


**省钱秘诀**

- 催幼儿园赶紧发链接。

- 死缠Centrelink关联新园。

- 28天倒计时,眼睛别眨!


CCS不复杂,但28天回溯期能要命。幼儿园袖手旁观,只有你自己救自己。快记牢,别让补贴飞了!


Thursday, 6 March 2025

超简单!房东专属 Wi-Fi 密码找回大法!- Forget Your Wi-Fi Password? Try This, Landlords!

房东的福音,Wi-Fi 不再难搞!- Save time, save stress—get your Wi-Fi back!

大家是不是和我朋友一样,当房东房子多了,Wi-Fi 密码就成了大难题?手动一个个试,麻烦不说,还浪费时间;把所有房子设成一样的密码,又总担心不安全;记在本子上吧,万一记错或者本子丢了,那更是抓瞎。

别愁啦!这里有超简单的房东专属 Wi-Fi 密码找回大法!有一段神奇的代码,能在你常用的那些最可能的密码里快速尝试,很快就能找到正确的那一个,完全不用自己费力去试。就像有个小帮手,替你把麻烦事都解决了。

不用再为 Wi-Fi 密码烦恼,也不用再做那些又繁琐又不靠谱的事,直接用段代码(需要代码,直接看图,拿走不送),快速又省力,还能让你省心不少,房东朋友们赶紧试试!



Are you, like my friend, facing a big headache with Wi-Fi passwords when you're a landlord with multiple properties? Trying passwords one by one manually is not only annoying but also time - consuming. Setting the same password for all houses makes you worry about security. And if you write them down in a notebook, what if you make a mistake or lose the notebook?

Don't worry! Here's an extremely simple way for landlords to retrieve Wi-Fi passwords! There's a magical piece of code that can quickly test the most likely passwords you usually use and find the correct one in no time, without you having to struggle with it yourself. It's like having a little helper taking care of the troublesome task.

No more fretting over Wi-Fi passwords or doing those cumbersome and unreliable things. Just use this method(Need code? Just look at the pic, grab it, and go. No take-backs!), which is fast, labor - saving, and gives you peace of mind. Landlords, give it a try now!