-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用unsloth加速报错 #7177
Comments
the same problem happened to me |
#7170 (comment) 看这儿,解决了。 Look here. Same problem solved |
same |
Why is it happening ?? |
Or you can also do this
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reminder
System Info
opt/LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:53: UserWarning: WARNING: Unsloth should be imported before trl, transformers, peft to ensure all optimizations are applied. Your code may run slower or encounter memory issues without these optimizations.
Please restructure your imports with 'import unsloth' at the top of your file.
from unsloth import FastLanguageModel
🦥 Unsloth: Will patch your computer to enable 2x faster free finetuning.
🦥 Unsloth Zoo will now patch everything to make training faster!
Traceback (most recent call last):
File "/opt/anaconda3/envs/llf/bin/llamafactory-cli", line 8, in
sys.exit(main())
File "/opt/LLaMA-Factory/src/llamafactory/cli.py", line 112, in main
run_exp()
File "/opt/LLaMA-Factory/src/llamafactory/train/tuner.py", line 93, in run_exp
_training_function(config={"args": args, "callbacks": callbacks})
File "/opt/LLaMA-Factory/src/llamafactory/train/tuner.py", line 67, in _training_function
run_sft(model_args, data_args, training_args, finetuning_args, generating_args, callbacks)
File "/opt/LLaMA-Factory/src/llamafactory/train/sft/workflow.py", line 52, in run_sft
model = load_model(tokenizer, model_args, finetuning_args, training_args.do_train)
File "/opt/LLaMA-Factory/src/llamafactory/model/loader.py", line 141, in load_model
model = load_unsloth_pretrained_model(config, model_args)
File "/opt/LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py", line 53, in load_unsloth_pretrained_model
from unsloth import FastLanguageModel
File "/opt/anaconda3/envs/llf/lib/python3.10/site-packages/unsloth/init.py", line 214, in
from .models import *
File "/opt/anaconda3/envs/llf/lib/python3.10/site-packages/unsloth/models/init.py", line 16, in
from .granite import FastGraniteModel
File "/opt/anaconda3/envs/llf/lib/python3.10/site-packages/unsloth/models/granite.py", line 15, in
from .llama import *
File "/opt/anaconda3/envs/llf/lib/python3.10/site-packages/unsloth/models/llama.py", line 2686, in
PatchFastRL(FastLanguageModel = FastLlamaModel)
File "/opt/anaconda3/envs/llf/lib/python3.10/site-packages/unsloth/models/rl.py", line 680, in PatchFastRL
patch_trl_rl_trainers()
File "/opt/anaconda3/envs/llf/lib/python3.10/site-packages/unsloth/models/rl.py", line 673, in patch_trl_rl_trainers
_patch_trl_rl_trainers(trainer)
File "/opt/anaconda3/envs/llf/lib/python3.10/site-packages/unsloth/models/rl.py", line 493, in _patch_trl_rl_trainers
created_module = create_new_function(
File "/opt/anaconda3/envs/llf/lib/python3.10/site-packages/unsloth_zoo/compiler.py", line 332, in create_new_function
if trials == 1000: raise RuntimeError("Unsloth: Failed to create dynamic compiled")
RuntimeError: Unsloth: Failed to create dynamic compiled
Reproduction
Others
No response
The text was updated successfully, but these errors were encountered: