Better HN
topnewbestaskshowjobs
Log inSign up

__chefski__

1 karma · joined Jan 19, 2025 (1y ago) · 1 submissions

Submissions

comment 1y ago · link · parent

The token estimator of this package is quite inaccurate, since it appears to just take the number of characters, minus whitespace. This can lead to it being overly conservative, which would degrade an LLM's performance. That said, it can be improved in subsequent versions to properly integrate with a model's tokenizer so it can know the true token count.

https://github.com/bodo-run/yek/blob/17fe37fbd461a8194ff612e...