Open lossflow opened 6 days ago
both
I can no longer repro after 3 attempts. Not sure what was happening.
Repro-ed again.
Working on a fix!
I am having the same issue
@R4ZZ3 @lossflow Apologies fixed! Please update unsloth on local installations (or reload / restart Colab / Kaggle) - pip install --upgrade --no-cache-dir unsloth
@R4ZZ3 @lossflow Apologies fixed! Please update unsloth on local installations (or reload / restart Colab / Kaggle) -
pip install --upgrade --no-cache-dir unsloth
I confirm it is working now. Many thanks
To repro: Install the latest versions of unsloth and transformers
try to import unsloth, receive error: /usr/local/lib/python3.10/dist-packages/unsloth/kernels/cross_entropy_loss.py in Unsloth_LlamaForCausalLM() NameError: name 'Unpack' is not defined
This doesn't affect demo notebooks as they don't import the latest version of transformers. An older version of transformers can be used but doesn't work as well with gradient accumulation and gives the warning "Unsloth: Using our custom gradient accumulation fixed trainer, which is not feature complete."