Affine is an incentivized RL environment which pays miners which make incremental improvements on a set of tasks (for instance, program abduction or coding). The mechanism is sybil-proof (you can't cheat by deploying multiple miners), decoy-proof (you can't cheat by packing models into certain environments), copy-proof (you can't cheat by stealing models), overfitting-proof (you can't cheat by overfitting to a single env).
How does Affine work? Affine validators incentivize miners to submit models to Subnet 64 on Bittensor (a.k.a Chutes) where they are inference load balanced and publicly available. These models are evaluated on a set of RL-environments with validators looking for the model which dominates the pareto frontier -- namely the model which outcompetes all other models on all envs (see
af validator
) The network is winners-take-all where miners are forced to copy, download and improve the pareto frontier model.
Why affine? Directed incentives for RL have never been achieved. The ability to direct intelligence and aggregate the work-effort of a large non-permissioned group of individuals on RL tasks will unlock fast advancement in intelligence, we intend to commoditize reasoning (intelligence's highest form) and break the intelligence sound barrier.
Installation
# Install uv Astral
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and install Affine
git clone https://github.com/AffineFoundation/affine.git
cd affine
uv venv && source .venv/bin/activate && uv pip install -e .
# Verify installation
af
Validating
Set env vars, chutes api key.
# Copy .env and fill out validator itemscp .env.example .env
(Recommended): Run the validator with docker and watchtower autoupdate.
# Run the validator with watchtower.
docker-compose down && docker-compose pull && docker-compose up -d && docker-compose logs -f
Run the validator using the local override (build local image) + base compose
Affine is also an SDK you can use to generate and evaluate models envs.
import affine as af
# Optionally turn on logging
af.trace(); af.debug(); af.info()
# Get all miner info or only for UID =5
miners = await af.get_miners()
miner = await af.get_miners( 5 )
# Generate a SAT challenge
chal = await af.SAT.generate()
# Generate a bunch.
chals = await af.ABDUCTION().many( 10 )
chals = await af.DEDUCTION().many( 10 )
# Query the model directly.# NOTE: A CHUTES_API_KEY .env value is required for this command.
response = await af.query( chal.prompt, model = miner.model )
# Evaluate the response
evaluation = chal.evaluate( response )
print( evaluation.score )
# Async generator of results from last 100 blocks.asyncfor res in af.rollouts(100):
print (res) # Result objects
Runs of love-mimi Affine-kj01 on huggingface.co
2
Total runs
0
24-hour runs
-1
3-day runs
-1
7-day runs
-1
30-day runs
More Information About Affine-kj01 huggingface.co Model
Affine-kj01 huggingface.co
Affine-kj01 huggingface.co is an AI model on huggingface.co that provides Affine-kj01's model effect (), which can be used instantly with this love-mimi Affine-kj01 model. huggingface.co supports a free trial of the Affine-kj01 model, and also provides paid use of the Affine-kj01. Support call Affine-kj01 model through api, including Node.js, Python, http.
Affine-kj01 huggingface.co is an online trial and call api platform, which integrates Affine-kj01's modeling effects, including api services, and provides a free online trial of Affine-kj01, you can try Affine-kj01 online for free by clicking the link below.
love-mimi Affine-kj01 online free url in huggingface.co:
Affine-kj01 is an open source model from GitHub that offers a free installation service, and any user can find Affine-kj01 on GitHub to install. At the same time, huggingface.co provides the effect of Affine-kj01 install, users can directly use Affine-kj01 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.