the transformers version transformers==4.27.2 in the scripts/gpu_environment.yml file leads to an import issue when I ran EasyLM.models.llama.convert_easylm_to_hf
File "/scratch/users/ruiqi-zhong/conda/envs/EasyLM/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/scratch/users/ruiqi-zhong/conda/envs/EasyLM/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/scratch/users/ruiqi-zhong/EasyLM/EasyLM/models/llama/convert_easylm_to_hf.py", line 33, in <module>
from transformers import LlamaConfig, LlamaForCausalLM
ImportError: cannot import name 'LlamaConfig' from 'transformers'
It can be easily fixed after pip install-ing the latest transformers library, though.
the transformers version
transformers==4.27.2
in thescripts/gpu_environment.yml
file leads to an import issue when I ranEasyLM.models.llama.convert_easylm_to_hf
It can be easily fixed after pip install-ing the latest transformers library, though.