mirror of
https://github.com/deepseek-ai/DeepSeek-Coder.git
synced 2026-11-05 00:57:19 +00:00
[PR #643] fixed finetune requirements.txt #275
Labels
No labels
documentation
ENV
pull-request
research question
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-Coder#275
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepSeek-Coder/pull/643
Author: @komaksym
Created: 3/6/2025
Status: 🔄 Open
Base:
main← Head:test📝 Commits (1)
ff84325fixed finetune requirements.txt📊 Changes
2 files changed (+5 additions, -1 deletions)
View changed files
➕
finetune/install.sh(+4 -0)📝
finetune/requirements.txt(+1 -1)📄 Description
Fixes #642
Fix
ImportError: cannot import name 'BUFSIZE' from 'numpy' (/root/finetune/lib/python3.10/site-packages/numpy/__init__.py)Solution:
numpy<2.0.0is required.AttributeError: 'DeepSpeedCPUAdam' object has no attribute 'ds_opt_adam'Solution: deepspeed installation with an environmental variable
DS_BUILD_CPU_ADAMset to 1 is required.pydantic_core._pydantic_core.ValidationError: 1 validation error for DeepSpeedZeroConfigwill be thrown if we install the specified in the source requirements.txt version of deepspeed (ver. 0.12.2) with the aforementioned env var set to 1.Solution:
DS_BUILD_CPU_ADAM=1 pip install deepspeed==0.14.5Since we can't specify environmental variables in requirements.txt I added a shell script that installs everything in the fixed requirements.txt and the correct deepspeed version with the required env var set to 1 to fix the issue №2.
Install
To install fixed dependancies:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.