https://github.com/opentensor/miners
Opentensor Miners
https://github.com/opentensor/miners
Last synced: 11 months ago
JSON representation
Opentensor Miners
- Host: GitHub
- URL: https://github.com/opentensor/miners
- Owner: opentensor
- License: mit
- Created: 2023-05-29T20:49:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-16T15:33:05.000Z (almost 3 years ago)
- Last Synced: 2025-04-19T10:08:44.893Z (about 1 year ago)
- Language: Python
- Size: 1.78 MB
- Stars: 5
- Watchers: 3
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Opentensor Miners
Opentensor Miners
# Installing
With ≥python3.8 installed:
```bash
python3 -m pip install -e .
```
# Running openminers
```python
import openminers
with openminers.TemplateMiner():
pass
# or
miner = openminers.TemplateMiner()
miner.run()
# or
miner = openminers.TemplateMiner()
miner.run_in_background_thread()
...
miner.stop_background_thread()
```
# Running Benchmarks
```bash
# Run 10 requests through the template miner
python3 benchmarks/base.py template 10
# Run 10 requests through the template miner with wandb logging
python3 benchmarks/base.py template 1000 --wandb.on
# Run 100 requests through the openai miner with api key
python3 benchmarks/base.py openai 100 --openai.api_key xxx...xx
```
# TODO
- [ ] Add benchmarks to miners.
- [ ] Bechmark all miners.
- [ ] Maintain a history of requests per hotkey.
- [ ] Priority based on rate limit.
- [ ] Blacklist based on rate limit.
- [ ] Benchmark longer and shorter request sizes.
- [ ] Benchmark from dataset.
- [ ] Add multimodal miners.