|
|
1 gadu atpakaļ | |
|---|---|---|
| models | 1 gadu atpakaļ | |
| .gitignore | 1 gadu atpakaļ | |
| README.md | 1 gadu atpakaļ | |
| main.py | 1 gadu atpakaļ |
TA Tutor is an AI-powered tutoring system built using LLaMA 2, providing interactive learning experiences through Socratic dialogue. The system runs locally on your machine, utilizing GPU acceleration for optimal performance.
Clone or download this repository:
git clone [repository-url]
cd llama-tutor
Create and activate a virtual environment:
python -m venv venv
.\venv\Scripts\activate
Install required Python packages:
pip install gradio
pip install ctransformers[cuda]
pip install psutil
pip install gputil
Download the LLaMA model:
Download llama-2-7b-chat.gguf (approximately 4GB)
Place the downloaded file in the models directory:
llama-tutor/
├── models/
│ └── llama-2-7b-chat.gguf
├── main.py
└── README.md
llama-tutor/
├── models/ # Model storage directory
├── logs/ # Session logs (created automatically)
├── main.py # Main application file
└── README.md # This file
Ensure your virtual environment is activated:
.\venv\Scripts\activate
Run the application:
python main.py
Access the web interface:
Open your browser and navigate to http://localhost:7860
The interface will load with a chat interface and system monitoring
CUDA Issues:
nvidia-smi commandMemory Issues:
gpu_layers in main.pybatch_size and threads parameters based on your system capabilitiesModel Loading Issues:
main.py matches your actual model locationAdjust these parameters in main.py based on your system:
gpu_layers=32 # Reduce if experiencing GPU memory issues
threads=6 # Adjust based on CPU cores
batch_size=256 # Modify based on available memory
logs directoryThis project uses the LLaMA 2 model which is subject to the Meta AI license. Ensure compliance with all relevant licenses and terms of use.