Installation and Usage
Wheel Package Installation
You can use pip to install:
# Full capabilities
pip install 'ms-swift[all]' -U
# Only use LLM
pip install 'ms-swift[llm]' -U
# Only use AIGC
pip install 'ms-swift[aigc]' -U
# Only use adapters
pip install ms-swift -U
Source Code Installation
git clone https://github.com/modelscope/swift.git
cd swift
pip install -e '.[all]'
Notebook Environment
Most of the models supported by Swift for training can be used on A10 GPUs. Users can use the free GPU resources officially provided by ModelScope:
Go to the official ModelScope website and log in
Click on
My Notebookon the left and start a free GPU instanceHappily take advantage of the A10 GPU resources
Build Documentation
Swift supports complete API Doc documentation. Execute the following command in the swift root directory:
make docs
After the execution is complete, view docs/build/html/index.html.