Qwen3 icon indicating copy to clipboard operation
Qwen3 copied to clipboard

请教一下,现在这个model.generate的方式怎么设置stop_words为“Observation:”呢?

Open fataldemon opened this issue 1 year ago • 2 comments

请教一下,现在这个model.generate的方式怎么设置stop_words为“Observation:”呢?我试了一下好像没有stop_words_ids这个参数了。

fataldemon avatar Feb 23 '24 05:02 fataldemon

Next week I'll provide an instruction. You can take a look at model.chat() in our previous Qwen code and see if you can do it yourself.

JustinLin610 avatar Feb 25 '24 08:02 JustinLin610

see this: https://github.com/QwenLM/Qwen1.5/issues/172#issuecomment-1999978612

JianxinMa avatar Mar 15 '24 16:03 JianxinMa