Skip to content

imoneoi/transformers-pangu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pangu-Alpha for Transformers

Usage

  1. Download MindSpore FP32 weights for GPU from here to data/Pangu-alpha_2.6B.ckpt
  2. Activate MindSpore environment and export weights to NumPy
python convert_mindspore_to_numpy.py
  1. Activate PyTorch environment and convert NumPy weights to Transformers
python convert_numpy_to_transformers.py
  1. Transformers model can be load from data/transformers

About

Pangu-Alpha for Transformers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages