Spaces:
Sleeping
Sleeping
File size: 911 Bytes
2e2d80e fc5ac41 d7cdabb 60f2f11 d7cdabb aee28e1 d7cdabb aee28e1 d7cdabb aee28e1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# chattensor-backend
Backend for Chattensor app
To run, you will need a bittensor wallet which is registered to the relevant subnet (1@mainnet or 61@testnet).
## Install
Create a new python environment and install the dependencies with the command. **Note**: This project uses python >=3.10.
(First time only)
```bash
pip install -r requirements.txt
```
> Note: Currently the prompting library is only installable on machines with cuda devices (NVIDIA-GPU).
## Run
First activate the virtual environment and then run the following command to start the server.
```bash
source env/bin/activate
```
Run the server with the following command.
```bash
EXPECTED_ACCESS_KEY="macrocosmos" python server.py --neuron.model_id mock --wallet.name sn1 --wallet.hotkey v1 --netuid 1 --neuron.tasks math --neuron.task_p 1 --neuron.device cpu
```
Note that this command is subject to change as the project evolves.
|