This guide provides instructions to set up your environment and run the Python code.
- Python 3.10.6 installed on your system.
- GIT installed on your PC to utilize terminal commands.
-
Python Installation:
- Install Python 3.10.6 on your machine.
-
GIT Installation:
- Install GIT on your PC to access terminal commands.
-
PyTorch Installation:
- Visit PyTorch's installation page to install PyTorch.
- Choose the appropriate installation command based on your system's configuration (CPU, CUDA 11, or CUDA 12) and follow the provided instructions.
-
Environment Setup:
- Copy the
.env.example
file from the repository to.env
.
- Copy the
-
Edit Environment Variables:
- Open the
.env
file and input the DeepSeek key as required.
- Open the
To execute the Python script, follow these steps:
-
Open your terminal.
-
Navigate to the directory containing your Python file.
-
Run the Python script using the following command:
python filename.py