GLM
GLM copied to clipboard
Google Colab error
Basic code:
!git clone https://github.com/THUDM/GLM %cd GLM !pip install -r requirements.txt !pip install apex
modify model_path inside generate_block.sh here ; I'm using glm-1.5-generation.tar.bz2
!chmod 755 scripts/generate_block.sh !scripts/generate_block.sh config_tasks/model_blocklm_10B_chinese.sh
Error Log:
Traceback (most recent call last):
File "generate_samples.py", line 23, in
You cannot install apex with pip install apex
because there is another package apex that has nothing to do with deep learning in PyPI, which is why we didn't list apex in requirements.txt
. You must manually install apex following https://github.com/NVIDIA/apex#from-source, after running pip uninstall apex
.