Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #642
Fix
ImportError: cannot import name 'BUFSIZE' from 'numpy' (/root/finetune/lib/python3.10/site-packages/numpy/__init__.py)
Solution:
numpy<2.0.0
is required.AttributeError: 'DeepSpeedCPUAdam' object has no attribute 'ds_opt_adam'
Solution: deepspeed installation with an environmental variable
DS_BUILD_CPU_ADAM
set to 1 is required.pydantic_core._pydantic_core.ValidationError: 1 validation error for DeepSpeedZeroConfig
will 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.5
Since 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: