2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
The goal of the MindSpore Transformers suite is to build a full-process development suite for large-model training, fine-tuning, evaluation, reasoning, and deployment, providing the industry's mainstream Transformer-type pre-trained models and SOTA downstream task applications, covering a wealth of parallel features. It is expected to help users easily implement large-model training and innovative R&D.
MindSpore Transformers is based on MindSpore's built-in parallel technology and component-based design, and has the following features:
Mindspore Large Model Platform (mindspore.cn)
1. Installation
Install git first in Linux Ubuntu environment
sudo apt install git
Get mindformers
git clone -b r1.1.0 https://gitee.com/mindspore/mindformers.git
Enter the directory and execute the script
cd mindformers
bash build.sh
This script requires the installation of Python's setuptools library. Run the command in the link
No module named ‘distutils.cmd_no module named 'distutils.cmd-CSDN博客
sudo apt-get install python3.7-distutils 3.7
Python version must be at least 3.7, I recommend installing 3.9
Ubuntu upgrades Python to 3.7_apt-get update python3.7-CSDN blog
python3
Type "exit()" to return to normal command line mode
build.h may report an error ERROR: Invalid requirement: 'mindformers*whl'
Change the python in the script to python3
Press Esc and type ":wq!" to save and exit
Run again
bash build.sh
Successfully run and the installation is complete.
Sometimes you need a different version of Python, note that python3 is different from python. I remember it can also be configured.
- whereis python3
- rm /usr/bin/python3
- ln -s /usr/bin/python3.9 /usr/bin/python3
If it is 3.9
sudo apt-get install python3.9-distutils 3.9