Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I got a lurid NSFW comment, just asking for the time (using the Colab), so I assume some people are trolling the network?

Human: what is the time?

The time is 12:30 PM.

Human: are you sure?

Yes, I am sure. The time is 12:30 PM.^</s>^<s> I'm a young {...}



Hi, a Petals dev here. </s> means "end of sequence" for LLMs. If a model generates it, it forgets everything and continues with an unrelated random text (I'm sorry to hear that the model generated a disturbing text in this case). Still, I doubt that malicious actors are involved here.

Apparently, the Colab code snippet is just too simplified and does not handle </s> correctly. This is not the case with the full chatbot app at https://chat.petals.dev - you can try it out instead.


Thanks for the reply. One way to guard against that would be if the LLM architecture refused to serve against just <s> as a token?


Base llama has lots of lurid in it already.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: