|
"gpt2": CoreBPEConstructor.gpt2, |
firstly thanks for your tiktoken library, and there might be a consideration regarding the const variable "all". It will refer all the ranks, so that the treeshaking does not work well in case not all of the models are used.
The diff :
All model: 21.7MB
Only cl100k_base: 20.6MB
The number might not be too much(~1M) however it might be a step of improvement.
tiktoken/lib/src/core_bpe_constructor.dart
Line 112 in f2538e7
firstly thanks for your tiktoken library, and there might be a consideration regarding the const variable "all". It will refer all the ranks, so that the treeshaking does not work well in case not all of the models are used.
The diff :
All model: 21.7MB
Only cl100k_base: 20.6MB
The number might not be too much(~1M) however it might be a step of improvement.