Commit graph

3 commits

Author SHA1 Message Date
Nate Sesti
f34b06fb83 temporary fix for encoding packaging issues 2024-08-17 12:31:15 -07:00
Rob Leidle
8a278ff8b4
Enable async encoding for the GPTEncoder (#1946)
This will improve the performance of indexing when using a GPT model.
Also, improved the Async interface to also have an async decode method.

Note: I was only able to test this method with the test I added as I do
not have access to a GPT model.

Co-authored-by: Rob Leidle <rleidle@tesla.com>
2024-08-06 16:18:49 -07:00
Rob Leidle
78a4025414 Offload all token counting to worker processes as well as some optimizations to do more token counting in parallel
Adding the workerpool logic broke gui as vite does not support __dirname
or path.join(...). To work around this, moved the gui dependency of
stripImages out of countTokens.ts
2024-07-26 13:10:36 -07:00