Unit_AI/node_modules/@dqbd/tiktoken/lite/load.d.ts
2024-06-01 16:24:36 -04:00

17 lines
491 B
TypeScript

export declare function load(registry: ({
load_tiktoken_bpe: string;
} | {
data_gym_to_mergeable_bpe_ranks: {
vocab_bpe_file: string;
encoder_json_file: string;
};
}) & {
explicit_n_vocab?: number;
pat_str: string;
special_tokens: Record<string, number>;
}, customFetch?: (url: string) => Promise<string>): Promise<{
explicit_n_vocab: number | undefined;
pat_str: string;
special_tokens: Record<string, number>;
bpe_ranks: string;
}>;