Thanks to zxcvb1234363 from the 52pojie forum for sharing. Source link: 提示信息 - 吾爱破解 - 52pojie.cn
Open-source project: GitHub - Tencent-Hunyuan/Hy-MT2 · GitHub
Hy-MT2 Local Subtitle Translation (for PotPlayer)
【What is this】
Run Tencent’s open-source Hy-MT2-1.8B translation model on your own computer, allowing PotPlayer’s real-time subtitle translation to use a local model: no internet connection, no cost, and subtitle content is not uploaded.
【How to use (three steps)】
- Double-click install.bat
- Automatically installs the translation script into PotPlayer
- Automatically enables startup on boot
- Automatically starts the local service (wait a few seconds for the initial loading)
- Restart PotPlayer (this step is required because it only scans the script directory at startup)
- Open a video and load external subtitles (.srt / .ass)
Right-click → Subtitles → Real-time Subtitle Translation → Hy-MT2 Local Translation
Select 「English」 as the source language and 「Simplified Chinese」 as the target language
【Distributing to other computers】
Copy the entire folder over (about 1.2 GB), then double-click install.bat.
It can be placed in any location. The scripts locate themselves based on their own location, so no configuration changes are needed.
【Directory guide】
llama\ Inference engine (llama.cpp Vulkan version)
models\ Hy-MT2-1.8B-Q4_K_M.gguf model (1.06 GB)
potplayer\ PotPlayer translation script
start-server.vbs Silently starts the service (used for startup on boot)
start-server-debug.bat Starts with a window; use this to troubleshoot by viewing the logs
install.bat Install
uninstall.bat Uninstall
【Performance reference】
Test system: Ryzen 5 1600 + GTX 1050 Ti 4GB
Single subtitle translation: 0.1–0.4 seconds
Generation speed: 30–38 tok/s
VRAM usage: about 1.1 GB
【Hardware requirements】
- Graphics card with Vulkan support (most dedicated/integrated GPUs from the past ten years support it)
- At least 2 GB of VRAM
- Without a dedicated GPU, change -ngl 99 to -ngl 0 to use the CPU, but it will be 3–5 times slower
(change it in both start-server.vbs and start-server-debug.bat)
【Port】
The default is 18080 (to avoid the common 8080 conflict). If you still need to change it, change it in all three places:
start-server.vbs
start-server-debug.bat
potplayer\SubtitleTranslate - HyMT2.as
【Frequently asked questions】
Q: I selected Hy-MT2, but the subtitles did not become Chinese.
A: First, make sure the service is running — open http://127.0.0.1:18080/health in a browser.
It should normally return {“status”:“ok”}. If it does not, double-click start-server.vbs;
if that still does not work, start it with start-server-debug.bat and check the error shown in the window.
Q: I can’t find 「Hy-MT2 Local Translation」 in the subtitle menu.
A: PotPlayer must be restarted before it will scan new scripts. Also check that the Translate directory path shown by install.bat is the same PotPlayer installation you actually use.
Q: The translation quality is average.
A: 1.8B is a small on-device model. It performs very well with short sentences, medical terms, and technical vocabulary;
fixed idioms are often translated literally, and elliptical sentences can sound awkward. For higher quality, switch to 7B, but it requires 5GB+ of VRAM.
Q: I want to disable startup on boot.
A: Delete Hy-MT2 Translate Server.lnk under %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\
Q: It uses VRAM while watching videos and affects my gaming.
A: When you are not using it, end llama-server.exe in Task Manager, or use uninstall.bat to remove startup on boot.
【License】
Hy-MT2 model weights: apache-2.0 (ModelScope / HuggingFace model cards)
llama.cpp: MIT
Download:
File shared via cloud storage: HyMT2.zip
Link: 百度网盘 请输入提取码 Extraction code: 52pj
Thanks again to this expert for sharing.