Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能不能把EncoderProvider对象里面的vocab地址改成本地而不是去远程服务器下载 #2

Closed
xiaojian520 opened this issue Apr 14, 2023 · 2 comments

Comments

@xiaojian520
Copy link

No description provided.

@yethee
Copy link
Owner

yethee commented Apr 14, 2023

You can configure cache to reduce NET traffic.

  1. Via the environment variable TIKTOKEN_CACHE_DIR
  2. Programmatically:
    use Yethee\Tiktoken\EncoderProvider;
    
    $encProvider = new EncoderProvider();
    $encProvider->setVocabCache('/path/to/cache');
    
    // Using the provider

@xiaojian520
Copy link
Author

think you

@yethee yethee closed this as completed Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants