Stopping criteria

#94
by AnudeepPeela - opened

Hello,
Any references on how to implement stopping criteria for the starcoder model?
Thanks in advance!

BigCode org

Hi, you can find an example here or see the docs.

This comment has been hidden

In case it helps, I wrote one for stop-sequences, similar to OpenAI usage. Could probably be done faster/more cleverly, but for large LLMs where each forward is the bottleneck, it's saved plenty of time by allowing for early termination. Also wrote in some utilities for extracting the completion up to the stop-sequence and it's log-probabilities, as this was neede for my use-case.

Sign up or log in to comment