惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
宝玉的分享
宝玉的分享
量子位
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
Y
Y Combinator Blog
L
LangChain Blog
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
U
Unit 42
Martin Fowler
Martin Fowler
aimingoo的专栏
aimingoo的专栏
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客

分享发现

推荐 2 个好玩的在线游戏站 Claude code 的 Designs 和 Routines 居然是独立额度,我的 Claude Pro 订阅又升值了 偶然看到一篇文章《文化已死:当绝大多数人听的音乐,读的书都来自 10 年前》,给大家推荐一下,非常值得一看 66 个入狱教程 国家超算互联网平台提供 Coding Plan(20 元/100 元两档) supergeo.info 送兑换码 V2EX › 登录 古风提示词 Bright Data 代理和 Browser API 90 天 6 折,优惠码 BESTPROXY60 飞机上 Starlink 测速 zig 写的 100kb 的 wasm 可以 http 读写任意 git 仓库 GPT Image 2 韩文 prompt 实测:不是“能看懂”,而是“能还原” 网页端 GPT-5.5 Thinking 体感好快啊,这速度第一反应还以为是降智到 4o-mini 了 新开中转站,有 GPT 包月可以薅,分享给有缘人 google 搜索的 AI 模式(自动右侧弹出)是个谜啊? 小红书下场做 app 工厂 做了一个 GEO 工具平台,想听听大家对 AI 搜索优化的看法 XChat 正式上架 App Store 了 大 F 彻底沦为历史了,公司宣布停业。 记一次 QQ 被盗事件记录 codex 5.5 强的离谱 用 Claude 做了视频“关于 ping0.cc 静默上传用户真实 IP” AI 辅助英语学习,无推广,讨论一下 gpt5.5 写完界面,还会进行截图查看效果 DeepSeek4 的数据没清理好啊,估计有得折腾 做了一个自动识别云朵的网站 claude 太抠门了 继上次讨论自媒体问题后,我决定下架流量最大的视频 DeepSeek V4 上线了!之前难产真是适配昇腾? deepseekv4 来了
[分享] 用腾讯开源的混元翻译模型 1.8B 给翻译插件当本地 API
zsxzy · 2026-05-26 · via 分享发现

最近在找本地离线翻译大模型,测试了腾讯开源的 **混元翻译模型 1.8B **。

我用了几篇不同的技术文章进行深度对比,它的翻译质量明显高于 Google 翻译和微软翻译,术语和语序都更符合中文习惯,1.8B 的体量能有这个效果让人非常惊喜。

这里分享一下我的部署和启动参数优化经验。


1. 模型下载

建议下载 GGUF 格式,方便用 llama.cpp / llama-server 直接跑:


2. 启动与优化指令

如果你使用的是 RTX 3060 6GB 显卡,可以使用我优化后的 llama-server 启动命令。

这里开启了 --flash-attn 以及 KV 缓存量化(q8_0),基本可以把模型完全塞进显存,速度飞快:

llama-server -hf tencent/Hy-MT2-1.8B-GGUF:Q8_0 \
  -c 8192 \
  --port 8080 \
  -ngl 99 \
  --flash-attn on \
  -t 6 \
  --cache-type-k q8_0 \
  --cache-type-v q8_0 \
  --parallel 1 \
  --jinja \
  --n-predict -1 \
  --verbosity 1

3. PowerShell 测试指令

服务启动后,兼容 OpenAI 的 API 格式。在 Windows 下可以用以下 PowerShell 命令直接测试:

Invoke-RestMethod -Method Post -Uri "[http://127.0.0.1:8080/v1/chat/completions]( http://127.0.0.1:8080/v1/chat/completions)" `
  -ContentType "application/json" `
  -Body (@{
    model = "gpt-3.5-turbo"
    messages = @(
        @{role = "user"; content = "Translate to Chinese: Comparing Rust and C++ performance is a topic that all software developers should consider. In this guide, they are compared in terms of memory safety, concurrency models, and compilation performance. You will understand why C++ provides the best performance, and Rust does not compromise on safety as a trade-off. Simple differentiation and real-life examples will help you be prepared to make the correct choice of the right tool 。"}
    )
    stream = $false
  } | ConvertTo-Json)


4. 运行结果与性能 (RTX 3060 6GB)

在我的 3060 上,生成的 Token 速度非常理想,完全能喂饱翻译插件的并发需求:

choices            : {@{finish_reason=stop; index=0; message=}}
created            : 1779531650
model              : tencent/Hy-MT2-1.8B-GGUF:Q8_0
system_fingerprint : b9294-0f3cb3fc8
object             : chat.completion
usage              : @{completion_tokens=68; prompt_tokens=88; total_tokens=156; prompt_tokens_details=}
id                 : chatcmpl-5XADKRfaVh7iZ1Iva7bt1P1oRJkQBr5Q

# 性能耗时指标:
timings            : @{
    cache_n=0; 
    prompt_n=88; 
    prompt_ms=312.969; 
    prompt_per_token_ms=3.556; 
    prompt_per_second=281.178; 
    predicted_n=68; 
    predicted_ms=555.212; 
    predicted_per_token_ms=8.164; 
    predicted_per_second=122.475
}

总结: predicted_per_second 达到了 122 tokens/s