Skip to content

0987031613dow/EdgeAI_Final_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EdgeAI_Final_Project

NYCU 2025 Edge AI Final Project: Accelerating LLaMA 3.2B Inference on T4 GPU

Environment Setup

  1. 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
  1. Install python packages
pip install -U setuptools
pip install -r requirements.txt

Usage

Inference with finetuned and quantized LLM model

python3 inference.py

Finetune LLM model

python3 finetune.py

Quantize LLM model

python3 quantization.py

Troubleshooting

When 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

About

NYCU 2025 Edge AI Final Project: Accelerating LLaMA 3.2 3B Inference on T4 GPU

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages