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

You can use llama.cpp server's tokenize endpoint to tokenize and count the tokens: https://github.com/ggerganov/llama.cpp/blob/master/examples/...


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

Search: