Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
unsloth
Commits
302146a7
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "ba71bf4caedaa90a11f02735eb8bb375aabe70f5"
Commit
302146a7
authored
Aug 01, 2024
by
chenzk
Browse files
v1.0.1
parent
a380ace2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
README.md
README.md
+3
-1
No files found.
README.md
View file @
302146a7
...
@@ -110,11 +110,13 @@ pip install --no-deps "trl<0.9.0" peft accelerate bitsandbytes
...
@@ -110,11 +110,13 @@ pip install --no-deps "trl<0.9.0" peft accelerate bitsandbytes
Do
**NOT**
use this if you have Anaconda. You must use the Conda install method, or else stuff will BREAK.
Do
**NOT**
use this if you have Anaconda. You must use the Conda install method, or else stuff will BREAK.
For DCU(dtk24.04.1、Pytorch 2.1.0):
For DCU(dtk24.04.1、Pytorch 2.1.0):
```
cd unsloth
cd unsloth
pip install .
pip install .
```
```
```
# modif
ied unsloth
#
if
modif
y unsloth by yourself, then you can gitclone and use the newest of author:
vim unsloth/kernels/cross_entropy_loss.py:
vim unsloth/kernels/cross_entropy_loss.py:
MAX_FUSED_SIZE = 65536 -> MAX_FUSED_SIZE = 16384
MAX_FUSED_SIZE = 65536 -> MAX_FUSED_SIZE = 16384
num_warps = 32 -> num_warps = 8 # 位于Fast_CrossEntropyLoss类的_chunked_cross_entropy_forward[(n_rows, n_chunks,)]下面
num_warps = 32 -> num_warps = 8 # 位于Fast_CrossEntropyLoss类的_chunked_cross_entropy_forward[(n_rows, n_chunks,)]下面
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment