是时候使用 Local AI 去翻译了
https://huggingface.co/Xenova/nllb-200-distilled-600M
云翻译虽然被调教得好,但就在这网络请求和 API key 就挺烦人的.
离线翻译才是王道。
https://github.com/xenova/transformers.js/blob/da2688626d7812ad1ea47fd304c2072cc685051b/examples/react-translator/src/worker.js#L9
好主意,近期没时间搞,方便的化帮忙贡献给 local AI的翻译源。 https://github.com/intellism/deepl-translate
https://marketplace.visualstudio.com/items?itemName=upupnoah.chatgpt-comment-translateX https://github.com/upupnoah/chatgpt-comment-translateX 看了一下,这个翻译源插件可能可以用上?
本地llama模型是否能支持翻译呢?
这个可以,本地部署ollama 可以支持openai Api 实现本地大模型翻译
我已经把功能写出来了,但是不知道为什么调用不了webGPU,还有就是有大佬知道怎么让设置里面的选项随着其他选项的开启而开启吗? 就像是只有本地翻译开启时,设置界面才显示模型路径文本框,不开启就隐藏? 把这些问题解决了就更新进去https://marketplace.visualstudio.com/items?itemName=Cheng-MaoMao.ai-powered-comment-translate-extension 用的这个项目做个大模型调用https://huggingface.co/docs/transformers.js/index