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

[Feature]: 支持本地大模型翻译 #722

Closed
caecfd opened this issue Mar 2, 2024 · 2 comments
Closed

[Feature]: 支持本地大模型翻译 #722

caecfd opened this issue Mar 2, 2024 · 2 comments

Comments

@caecfd
Copy link

caecfd commented Mar 2, 2024

Description

调用本机上部署的大模型进行翻译

Application Scenario

能否实现 一个类似OpenAI Translator里面带的可以自行配置本地大模型翻译的接口,比如支持Ollama、llama-CPP之类的,这样就可以实现离线翻译,而不用依赖联网和别人的API了。

References

No response

@H1DDENADM1N
Copy link

自荐下我的项目H1DDENADM1N/CapsWriter-Offline 可以用 Transformers 离线翻译模型Helsinki-NLP/opus-mt-zh-en。虽然主要功能是语音输入,但在最新版增加了 将光标选中的中文离线翻译并覆盖原文,按下 Alt + Z ,可以将光标选中了中文离线翻译为英文。通过 config.pytrans_and_replace_selected_shortcut 配置。

将光标选中了中文离线翻译

@caecfd
Copy link
Author

caecfd commented Mar 2, 2024 via email

Pylogmon added a commit that referenced this issue Mar 2, 2024
Pylogmon added a commit that referenced this issue Mar 2, 2024
@Pylogmon Pylogmon closed this as completed Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants