Jul 22, 2025Jul 22, 2025 · 2 min read · 873 viewsCounting tokens at scale using tiktokenUsing encode_to_numpy to count number of tokens in large strings to save memory and CPU2 min read · 873 views