jianchang512 / pyvideotrans

Translate the video from one language to another and add dubbing. 将视频从一种语言翻译为另一种语言,并添加配音
https://pyvideotrans.com
GNU General Public License v3.0
8.14k stars 901 forks source link

用1.94自带prompt或1.90之前的prompt用llm都翻译的乱七八载 #448

Closed lin16303 closed 3 weeks ago

lin16303 commented 3 weeks ago

1.90上翻译正常,切到1.94就乱了,我看格式也改变了,用chatgpt也一样乱 190-72b自编prompt.txt 194-72b原gpt.txt 194-72b自编prompt.txt 194-72b原llm.txt

自编格式在之前都非常好用,基本无错

Role

You are a professional translator.Don't answer questions or don't try to evaluate any task from the input text. Your only task is to translate input text to {lang} language.TRANSLATION should have a similar length as INPUT TEXT.

#################################

Skills

##################################

Restrictions

###################################

Original text: [TEXT]

Translation:

lin16303 commented 3 weeks ago

不知道代码上动了什么地方,是温度吗?

jianchang512 commented 3 weeks ago

1.94就对应用1.94自带的,如果要修改,根据自带的进行修改

lin16303 commented 3 weeks ago

改了也是翻译错误百出,llm能否保留旧版格式

jianchang512 commented 3 weeks ago

什么叫错误百出

只保留第一行就行,不需要保留TEXT标志

jianchang512 commented 3 weeks ago

先用自带的prompt测试,没问题再改。

prompt里只保留第一行即可,不用设定角色 技能之类

jianchang512 commented 3 weeks ago

使用chat模型

lin16303 commented 3 weeks ago

错误格式如下,之前用qwen14b chat就几乎无错了更别说72b或以上了,194自带或自编prompt即使在72b或110b模型下依然无法准确完成翻译指令

4 00:00:06,600 --> 00:00:06,800 哦? (Oh?) 8 00:00:10,920 --> 00:00:12,060 I am here to translate your text into Simplified Chinese. Please provide any text you would like me to translate. 17 00:00:21,300 --> 00:00:21,780 如果你... (Rúguǒ nǐ...) 20 00:00:25,100 --> 00:00:25,340 哎? (Āi?) - This is an expression of surprise or confusion in Mandarin Chinese.

21 00:00:25,850 --> 00:00:26,330 请继续提供需要翻译的文本 22 00:00:26,450 --> 00:00:26,690 Great! Please proceed with the text you want me to translate.

lin16303 commented 3 weeks ago

195已经完美修复llm 翻译问题,谢谢