Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是时候使用 Local AI 去翻译了 #220

Open
axetroy opened this issue Jun 6, 2024 · 5 comments
Open

是时候使用 Local AI 去翻译了 #220

axetroy opened this issue Jun 6, 2024 · 5 comments

Comments

@axetroy
Copy link

axetroy commented Jun 6, 2024

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

@intellism
Copy link
Owner

好主意,近期没时间搞,方便的化帮忙贡献给 local AI的翻译源。
https://github.com/intellism/deepl-translate

@lightrabbit
Copy link

@caixiaoxi
Copy link

本地llama模型是否能支持翻译呢?

@caixiaoxi
Copy link

这个可以,本地部署ollama 可以支持openai Api 实现本地大模型翻译

@Cheng-MaoMao
Copy link

我已经把功能写出来了,但是不知道为什么调用不了webGPU,还有就是有大佬知道怎么让设置里面的选项随着其他选项的开启而开启吗?
就像是只有本地翻译开启时,设置界面才显示模型路径文本框,不开启就隐藏?
把这些问题解决了就更新进去https://marketplace.visualstudio.com/items?itemName=Cheng-MaoMao.ai-powered-comment-translate-extension
用的这个项目做个大模型调用https://huggingface.co/docs/transformers.js/index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants