This script automates the installation of libraries and packages required for LLM fine-tuning on Linux systems. It's designed for Ubuntu 22.04 Server, but can be adapted for other distributions.
- Installs essential tools like
git
,tmux
, anduv
. - Sets up Python 3.12 virtual environments using
uv
. - Installs Swift and Axolotl for fine-tuning LLMs.
- Optionally installs CUDA and NVIDIA drivers using Lambda Stack (Ubuntu 22.04 Server only).
- Handles systems with or without
sudo
.
- A Linux system (preferably Ubuntu 22.04 Server).
- Internet connection.
- Clone this repository:
git clone https://github.com/Aunali321/llm-finetuning-setup.git
- Navigate to the cloned directory:
cd llm-finetuning-setup
- Make the script executable:
chmod +x llm-finetuning-setup.sh
- Run the script:
./llm-finetuning-setup.sh
If you're on a system without sudo
, you may need to run it with root privileges:
su -c ./llm-finetuning-setup.sh
The script will guide you through the installation process. It will ask for confirmation before installing CUDA and NVIDIA drivers (if desired).
- This script is optimized for Ubuntu 22.04 Server. Some components, particularly the Lambda Stack for CUDA/NVIDIA driver installation, are designed specifically for this distribution.
- While the core functionality might work on other distributions, you may need to adapt the package installation commands accordingly.
This project is licensed under the MIT License.
Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.