Minimum Requirements
- CPU Virtual Machine
- OpenAI API Key at https://platform.openai.com/
- Anthropic API Key at https://api.anthropic.com/
- Calculate your credit commitment based on model_configs at
cortext/global_config.py
The miner supports the following models:
-
OpenAI Models:
- gpt-4o
- dall-e-3
-
Anthropic Models:
- claude-3-5-sonnet-20241022
The miner implements rate limiting based on stake and network parameters:
- Minimum stake requirement: 10,000
- Rate limits are proportionally allocated based on stake
- Credits refresh every 60 seconds
- Each request consumes an amount of credit based on the model config (e.g. dall-e-3 & gpt-4o-8k-tokens is 1 credit per request)
- Minimum credit allocation: 64
- Maximum credit allocation: 256
- Install repository:
git clone https://github.com/corcel-api/cortex.t
cd cortex.t
pip install uv
uv venv
. .venv/bin/activate
uv sync
- Spin up necessary services:
Service | Default Port | Environment Variable | Process Command |
---|---|---|---|
Redis | 6379 | REDIS_PORT & REDIS__PORT |
. scripts/install_redis.sh |
- Run main mining process:
export OPENAI_API_KEY=your_openai_api_key
export ANTHROPIC_API_KEY=your_anthropic_api_key
pm2 start python --name "mining" -- -m neurons.miner --netuid 18 --wallet.hotkey default --wallet.name default --axon.port "your-public-port" --miner.credit "your-credit-commitment"
Notes:
your-public-port
is the port you want to expose your miner onyour-credit-commitment
is the amount of credit you want to commit to the network. The more credit you commit, the faster & better rewards you will receive.