-
Notifications
You must be signed in to change notification settings - Fork 112
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
Question about Yarn environment configuration (v2) #41
Comments
Based on that import, it appears that the minimum supported version of transformers is actually v4.35.0. |
Yes, I appreciate your input. I did attempt to use Transformers v4.35.0, but encountered the following error: /opt/conda/lib/python3.10/site-packages/datasets/table.py:1421: FutureWarning: promote has been superseded by mode='
default'.
table = cls._concat_blocks(blocks, axis=0)
Traceback (most recent call last):
File "/app/yarn_4/finetune.py", line 295, in <module>
main(args.parse_args())
File "/app/yarn_4/finetune.py", line 158, in main
# model.gradient_checkpointing_enable()
File "/opt/conda/lib/python3.10/site-packages/transformers/modeling_utils.py", line 1872, in gradient_checkpointin
g_enable
self._set_gradient_checkpointing(enable=True, gradient_checkpointing_func=gradient_checkpointing_func)
TypeError: LlamaPreTrainedModel._set_gradient_checkpointing() got an unexpected keyword argument 'enable' Further investigation led me to related GitHub issues: According to these discussions, it's suggested that using Transformers v4.34.0 resolves the issue. I wanted to share this additional information for context. Besides, I can change from transformers.utils import (
add_start_docstrings,
add_start_docstrings_to_model_forward,
# is_flash_attn_2_available,
logging,
replace_return_docstrings,
)
from .configuration_llama import LlamaConfig
# if is_flash_attn_2_available():
try:
from flash_attn import flash_attn_func, flash_attn_varlen_func
from flash_attn.bert_padding import index_first_axis, pad_input, unpad_input # noqa
except:
print("Error is_flash_attn_2_available") |
But at the same time, if I want to use Traceback (most recent call last):
File "/app/yarn_4/finetune.py", line 295, in <module>
main(args.parse_args())
File "/app/yarn_4/finetune.py", line 160, in main
accelerator.register_for_checkpointing(scheduler)
File "/opt/conda/lib/python3.10/site-packages/accelerate/accelerator.py", line 3139, in register_for_checkpointing
raise ValueError(err)
ValueError: All `objects` must include a `state_dict` and `load_state_dict` function to be stored. The following inputs are invalid:
- Item at index 0, `DummyScheduler`
- Further investigation led me to related GitHub issues: How can I fix this problem? |
This was caused by a recent |
Hi Yarn team,
I hope this issue finds you well. I clone your git code (v2, 2weeks ago) in our machine and found mistakes:
In our current environment, we are using the following versions:
We are interested in fine-tuning the Yarn environment for our specific setup. Specifically, we would like to inquire about the versions of
transformers
,accelerate
anddeepspeed
used in the Yarn environment. Could you please provide details on how these tools are configured in your environment?Any guidance or information you can offer regarding this matter would be greatly appreciated.
Thank you for your time and assistance!
The text was updated successfully, but these errors were encountered: