Skip to content

BitMind-AI/bitmind-subnet

Repository files navigation

BitMind Logo

GAS
Generative Adversarial Subnet

Bittensor SN34

⛏️ Mining · 🛡️ Validating · 💰 Incentives · 🏆 Leaderboard

🤗 GAS-Station · 🌐 Apps

About GAS

Fake content is evolving fast. Staying ahead demands relentless innovation.

GAS (Generative Adversarial Subnet) is a Bittensor subnet inspired by Generative Adversarial Networks (GANs). Detectors and generators compete in a dynamic loop: detectors sharpen their ability to spot synthetic media, while generators push to create more convincing fakes. This adversarial process drives cutting-edge detection tools and continuously generates the training data needed to sustain progress.

Unlike static AI safety solutions, GAS thrives on open, incentivized competition, ensuring detectors evolve as fast as the threats they face.

Quick Start

Installation

git clone <repository-url>
cd GAS
./install.sh

Options:

  • ./install.sh --no-system-deps - Skip system dependency installation (intended for discriminative miners)

Using gascli

# Activate virtual environment to use gascli
source .venv/bin/activate

# Show available commands
gascli --help

# Validators: Start or restart validator services
gascli validator start

# Miners: Start or restart generative miner
gascli generator start

# Miners: Push discriminator models (both at once)
gascli discriminator push --image-model image_detector.zip --video-model video_detector.zip --wallet-name default --wallet-hotkey default

# Or push one model at a time
gascli d push --image-model image_detector.zip 
gascli d push --video-model video_detector.zip

Available Aliases:

  • validatorvali, v
  • discriminatord
  • generatorg

Not using gascli

# Validators: Start or restart validator services
# (Does not require virtualenv activation)
pm2 start validator.config.js  

# Miners: Start or restart generative miner
pm2 start gen_miner.config.js

# Miners: Push discriminator models
source .venv/bin/activate
python neurons/discriminator/push_model.py --image-model image_detector.zip --video-model video_detector.zip --wallet-name default --wallet-hotkey default

For detailed installation and usage instructions, see Installation Guide.

Core Components

This documentation assumes basic familiarity with Bittensor concepts.

Discriminative Miners [docs]

Discriminative miners submit detection models for evaluation against a wide variety of real and synthetic media and are rewarded based on their accuracy. This differs from previous versions of SN34, where discriminative miners hosted hardware to serve both validator challenges and organic API traffic. This both significantly reduces the capital required to mine, and allows the subnet to more reliably identiy unique models and reward novel contributions proportionally to their accuracy rather than the speed of their registration script.

Generative Miners [docs]

Generative miners generate and modify media according to prompts generated by validators, and are rewarded based on their ability to pass validation checks and fool discrimintive miners.

Validators [docs]

Validators are responsible for challenging and scoring both miner types. Generative miners are sent prompts, and their returned synthetic media are validated to mitigate gaming and incentivize high quality results. Discriminative miners are continually evaluated against a mix of data from generative miners, real world data, and data generated locally on the validator.

Subnet Architecture

Subnet Architecture

Community

Join us on Discord

Contributing

Contributions are welcome and can be made via a pull request to the testnet branch.

Ask DeepWiki

About

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6