NYCU 2025 Edge AI Final Project: Accelerating LLaMA 3.2B Inference on T4 GPU
- Build and activate python-venv environment
sudo apt-get update
sudo apt install python3-dev python3-venv
python3 -m venv t30
source t30/bin/activate- Install python packages
pip install -U setuptools
pip install -r requirements.txtpython3 inference.pypython3 finetune.pypython3 quantization.pyWhen running "pip install -r requirements.txt", you may occasionally encounter a "ModuleNotFoundError: No module named 'torch'" error for certain packages (even though torch is listed in the requirements.txt file):

If this happens, please run the following command to install the torch package separately, and then reinstall the remaining packages:
pip install torch==2.7.0
pip install -r requirements.txt