[PR #1138] [MERGED] feat: cache huggingface gpt2 tokenizer files #22907

Closed
opened 2026-02-21 20:20:02 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify/pull/1138
Author: @takatost
Created: 9/9/2023
Status: Merged
Merged: 9/10/2023
Merged by: @takatost

Base: mainHead: feat/optimize-hf-tokenizer-file-cache


📝 Commits (1)

  • e55dd13 feat: cache huggingface gpt2 tokenizer files

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 api/Dockerfile (+3 -1)

📄 Description

Cached the huggingface GPT2 tokenizer files in the Docker image. You'll need to configure the following environment variables to enable reading from the cache.

TRANSFORMERS_OFFLINE: true

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify/pull/1138 **Author:** [@takatost](https://github.com/takatost) **Created:** 9/9/2023 **Status:** ✅ Merged **Merged:** 9/10/2023 **Merged by:** [@takatost](https://github.com/takatost) **Base:** `main` ← **Head:** `feat/optimize-hf-tokenizer-file-cache` --- ### 📝 Commits (1) - [`e55dd13`](https://github.com/langgenius/dify/commit/e55dd1306dfc2ee29b04ca14c62dcfca88a76e65) feat: cache huggingface gpt2 tokenizer files ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `api/Dockerfile` (+3 -1) </details> ### 📄 Description Cached the huggingface GPT2 tokenizer files in the Docker image. You'll need to configure the following environment variables to enable reading from the cache. ``` TRANSFORMERS_OFFLINE: true ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-21 20:20:02 -05:00
yindo closed this issue 2026-02-21 20:20:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22907