[PR #49] Ensure transformers version is lower than v4.49.0 #52

Open
opened 2026-10-26 21:02:09 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepSeek-MoE/pull/49
Author: @vinzid
Created: 7/20/2025
Status: 🔄 Open

Base: main ← Head: requirements


📝 Commits (1)

  • 831b05d Ensure transformers version is lower than v4.49.0

📊 Changes

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

View changed files

📝 requirements.txt (+1 -1)

📄 Description

Ensure transformers version is lower than v4.49.0, as the Cache method get_max_length is used in modeling_deepseek.py, but was removed in transformers v4.49.0 with PR.


🔄 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/deepseek-ai/DeepSeek-MoE/pull/49 **Author:** [@vinzid](https://github.com/vinzid) **Created:** 7/20/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `requirements` --- ### 📝 Commits (1) - [`831b05d`](https://github.com/deepseek-ai/DeepSeek-MoE/commit/831b05df38d7d8453a741dc543221db0ccf82170) Ensure transformers version is lower than v4.49.0 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `requirements.txt` (+1 -1) </details> ### 📄 Description Ensure transformers version is lower than `v4.49.0`, as the Cache method `get_max_length` is used in [modeling_deepseek.py](https://huggingface.co/deepseek-ai/deepseek-moe-16b-base/blob/main/modeling_deepseek.py#L1382), but was removed in transformers [v4.49.0](https://github.com/huggingface/transformers/releases/tag/v4.49.0) with [PR](https://github.com/huggingface/transformers/pull/35677/files#diff-357aea2fcf1b51b2a8ad17c7d30044159b1fe1a3f6bd832cced70aca84c8be66). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-MoE#52
No description provided.