Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NousResearch/finetuning-subnet
https://github.com/NousResearch/finetuning-subnet
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/NousResearch/finetuning-subnet
- Owner: NousResearch
- License: mit
- Created: 2024-01-10T15:17:39.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-05-07T19:11:33.000Z (6 months ago)
- Last Synced: 2024-05-13T22:26:55.004Z (6 months ago)
- Language: Python
- Size: 139 KB
- Stars: 109
- Watchers: 7
- Forks: 26
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bittensor - SN06 - **Nous Research** (Continuous fine-tuning of LLMs with incentivized synthetic data) (Registered Subnets)
README
# **Nous Finetuning Subnet**
[![Nous](/docs/nous.png)](https://nousresearch.com/)
[![Bittensor](/docs/taologo.png)](https://bittensor.com/)---
[Nous Discord](https://discord.gg/rJajyT2fYs) • [Bittensor Discord](https://discord.gg/bittensor) • [Network](https://taostats.io/)
---
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
# Introduction
> **Note:** The following documentation assumes you are familiar with basic Bittensor concepts: Miners, Validators, and incentives. If you need a primer, please check out https://docs.bittensor.com/learn/bittensor-building-blocks.
The Nous-Bittensor subnet rewards miners for fine-tuning Large Language Models (LLMs) with data generated from a continuous stream of synthetic data provided by subnet 18 (also on Bittensor). It is the first-ever continuous fine-tuning benchmark, with new data generated daily, and the first incentivized fine-tuning benchmark. Additionally, it is the first Bittensor subnet to perform true cross-boundary communication, where data from one subnet is utilized in a secondary subnet.
The mechanism works like this:
1. Miners train and periodically publish models to 🤗 Hugging Face and commit the metadata for that model to the Bittensor chain to prove the time of training.
2. Validators download the models from 🤗 Hugging Face for each miner based on the Bittensor chain metadata and continuously evaluate them, setting weights based on the performance of each model against the synthetic data.
3. The Bittensor chain aggregates weights from all active validators using Yuma Consensus to determine the proportion of TAO emission rewarded to miners and validators.See the [Miner](docs/miner.md) and [Validator](docs/validator.md) docs for more information about how they work, as well as setup instructions.
---
## Incentive Mechanism
Bittensor hosts multiple incentive mechanism through which miners are evaluated by validators for performing actions well. Validators perform the process of evaluation and 'set weights', which are transactions into Bittensor's blockchain. Each incentive mechanism in Bittensor is called a 'subnet'. Weights and the amount of TAO held by the validators become inputs to Bittensor's consensus mechanism called Yuma Consensus. YC drives validators towards a consensus, agreement about the value of the work done by miners. The miners with the highest agreed upon scores are minted TAO, the network digital currency.
Miners within this subnet are evaluated based on the number of times the model they have hosted has a lower loss than another model on the network when evaluated on the latest data generated by the [Cortex.t subnet](https://taostats.io/subnets/netuid-18/). To perform well, miners must attain the lowest loss on the largest number of random batches. Finding the best model and delta at the earliest block ensures the most incentive.
---
## Getting Started
TL;DR:
1. [Chat](https://discord.gg/bittensor)
2. [Leaderboard](https://huggingface.co/spaces/NousResearch/finetuning_subnet_leaderboard)This repo's main conversation is carried out in the Bittensor [Discord](https://discord.gg/bittensor). Visit the 'finetuning' channel to ask questions and get real time feedback. You can view the ongoing running of the incentive mechanism, the best miners (see 'incentive'), the most in-consensus validators (see 'vtrust') using this [taostats link](https://taostats.io/subnets/netuid-6/). The table shows all 256 participant UIDs with corresponding YC stats and earnings.
See [Miner Setup](docs/miner.md#getting-started) to learn how to setup a Miner.
See [Validator Setup](docs/validator.md#getting-started) to learn how to setup a Validator.
---
## Feedback
We welcome feedback!
If you have a suggestion, please reach out on the Discord channel, or file an Issue.
---
## License
This repository is licensed under the MIT License.
```text
# The MIT License (MIT)
# Copyright © 2023 Yuma Rao# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:# The above copyright notice and this permission notice shall be included in all copies or substantial portions of
# the Software.# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
# THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
```