To set up the required dependencies, follow these steps:
-
Create a virtual environment and activate it:
python3 -m venv mistral_env source mistral_env/bin/activate
-
Install the required packages:
pip install -r requirements.txt
-
Start the backend server by executing the following command:
python backend.py
-
Launch the frontend server using this command:
python frontend.py
This will generate a public Gradio URL. Open it in a browser to start a chat.
-
Fine-tuning
python train.py
Data will be downloaded to the 'data' folder, and weights will be saved in the 'weights' folder.