Replies: 3 comments
|
Well spotted! |
|
Hi @yslin1995, Thank you for reporting this issue! You were absolutely right - the problem was in the instruction files. Root CauseBoth
When you selected
This caused the model to either ignore your target language or produce confused output. Fix AppliedCommit standard.txt:
pornify.txt:
How to Get the FixUpdate to the latest version: pip install -U git+https://github.com/meizhong986/whisperjav.gitThe Please let us know if this resolves the issue! |
|
Fixed in the upcoming v1.8.5-hotfix1. Rather than adding a template slot, we simply removed the hardcoded English from the instruction prompts entirely. The target language is already communicated to the LLM through PySubtrans's Changes:
Users translating to Chinese/Indonesian/Spanish will no longer get conflicting instructions. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
WhisperJAV/whisperjav/translate/instructions.py
Line 170 in 919b4d7
目前的提示词中,对LLM的人设指定为 English translator(You are an English translator specializing in Japanese to English translations. Your task is to translate the Japanese movie subtitles into English subtitles),也许会影响其它语言的翻译效果。
WhisperJAV/whisperjav/translate/defaults/standard.txt
Line 5 in 919b4d7
建议在提示词中预留词槽,如 "You are an English translator specializing in Japanese to [target language] translations.", 并在get_instruction_content 函数 或 _resolve_instruction_file 等函数中,根据目标语言动态填充词槽。
All reactions