
Renting a GPU gives you a machine that can run an AI model. A FLOP miner turns that machine into a service other people’s software can ask to run a model for them. On FLOP’s Devnet, you can start with a small test. Load one model, send it one short prompt and check what evidence the backend produces. If you want to go further, the same setup can become a registered miner once the network accepts it.
What FLOP does
FLOP is building a market for AI inference, the work a trained model does when it turns an input into an answer. Suppose an app needs a model to classify a message. In FLOP’s terminology, the agent is the app or client buying that work. It requests a particular model. A miner runs the model on a GPU and returns the answer. The parties can use a compute channel to reserve funds for the session and settle the amount on-chain when the work is over. FLOP agent integration
The GPU work happens off-chain. Validators produce and finalize blocks and help keep assigned model data or verification evidence available. One piece of evidence a miner can produce is called TOPLOC. It records compact commitments to intermediate values inside the model as it runs. Those commitments can support later checks of the computation. A local capture shows that the backend generated the expected evidence for that test. Settlement and any later verification are separate steps. FLOP validator guide · FLOP verification design
Devnet is the environment for this walkthrough and uses test FLOP. On November 24, 2026, FLOP’s public Testnet profile still showed a planned network and an unreleased build. The project had opened team registration for an initial validator group, with activation waiting for the verified Testnet identity and release. Use the Devnet profile and release files below. Testnet operator profile · FLOP agent integration
What runs on the miner
The miner has two services. The GPU backend, miner-vllm-toploc, checks the checkpoint files, loads the model weights into GPU memory and handles inference and TOPLOC capture. The CPU worker, miner-worker, manages sessions, sends requests to the backend, signs operations and answers calibration jobs. A full GPU VM can run both through Docker Compose. A split setup puts the backend on a GPU container and the worker on a separate Linux host with its own persistent state. FLOP miner manual
A model name is only the start of the configuration. The checkpoint contains the weights, the model root identifies the exact contents, and the decode policy governs how the model turns a prompt into output. The weights take up disk space before the backend loads them into GPU memory. The engine, activations and the cache it uses while generating tokens also need memory. FLOP’s documented starter drill used an NVIDIA A40 and Qwen2.5-0.5B-Instruct in BF16, a numerical format for weights and computation. Treat that as a public reference when comparing your own model and GPU options. FLOP miner manual
Choosing where to run it
For a full Linux GPU VM, look for SSH access, an NVIDIA driver supported by the selected image, Docker Compose with GPU access, enough disk for the files and enough rental time to finish the run. FLOP documents GPU.ai VMs for the same-host setup. Check whether an offer is a VM or a container and how it handles inbound traffic. GPU.ai describes a dedicated public IP add-on where available. Vast.ai also offers full VMs alongside its Docker instances, and Lambda On-Demand is another VM candidate with configurable firewall rules. Confirm the selected machine and its runtime before relying on it. Vast’s terms restrict cryptocurrency mining with card-funded credits. Ask Vast whether your planned inference and Devnet operations fall within its terms before funding the rental. FLOP miner manual · GPU.ai instances · Vast VMs · Vast terms · Lambda instance docs
On a Runpod GPU Pod, run the pinned backend image on the Pod and the worker on a separate Docker host. The backend downloads the selected checkpoint and must measure the expected root before it serves. The worker’s OPENAI_BASE_URL points to the Pod’s HTTPS proxy URL with /v1 appended. Keep the backend bearer enabled on both services and keep signing state on the worker host. The worker still needs its own public session route for a registered pilot. FLOP’s October 30 A40 Pod drill reached measured identity and TOPLOC capture. The guide records no completed paid session through that Pod and lists Runpod Serverless as unsupported for this path. Check whether the checkpoint disk survives a stop before counting on a quick restart. FLOP Pod instructions · Runpod storage and billing
On Akash, define the container’s GPU, CPU, memory, storage and ports in an SDL file, then compare providers’ bids for the deployment. A possible FLOP setup would put only the backend on the lease and the worker on a host you control. That is an adaptation you would need to qualify yourself. Check the pinned image, driver, storage and authenticated backend route before you attempt registration. Compare the full lease bid or VM price, including disk and connectivity costs, and allow for a second host on the split routes. Akash marketplace concepts · GPU deployments · Persistent storage · Vast billing
1. Check sponsorship before renting
A local backend test can finish as soon as you have a measured model and a capture. A registered pilot has more stages. The sponsor must have capacity, the chain must record and finalize registration, and the worker has to remain online long enough to earn an accepted calibration cap. Plan the rental around the stage you need to reach.
Run the read-only check below from a Bash shell with curl and jq. Compare asOf with the current UTC time. For automatic enrollment, look for Devnet, stale: false, miner status open, automatic.open: true and spare capacity. The response stamped 08:50 UTC on November 24 showed 1,024 of 1,024 sponsored positions in use, including 271 in unbonding. Its automatic flag was true while the overall miner status was positions_full. The next reader should make a fresh check. Devnet sponsor limits
set -o pipefail
date -u '+%Y-%m-%dT%H:%M:%SZ'
curl -fsS --max-time 15 https://faucet.flop.network/limits |
jq '{network, asOf, stale, miner: (.sponsor.miner |
{status, capacity, automatic})}'2. Check GPU access inside the VM and Docker
The remaining commands use the full VM path. Connect with the provider’s SSH details and verify the host fingerprint through a trusted provider channel. On the VM, check its architecture, free disk and the devices the driver sees. Install Docker Engine, the Compose plugin and NVIDIA Container Toolkit from their official instructions if the image lacks them. Use a CUDA diagnostic image approved for your driver and compatible with the image release you plan to serve. The device and memory shown inside the container should agree with the VM. If the VM sees the card and the container does not, fix the container runtime before downloading the model. Docker Engine on Ubuntu · NVIDIA Container Toolkit · FLOP host checks
uname -m
df -h .
nvidia-smi --query-gpu=name,memory.total,driver_version --format=csv
docker compose version
read -r -p 'Approved CUDA diagnostic image: ' CUDA_IMAGE
test -n "$CUDA_IMAGE" && docker run --rm --gpus all "$CUDA_IMAGE" nvidia-smi3. Verify the release, chain and checkpoint
Use the FLOP manual release pack for the VM. FLOP publishes an archive and a SHA-256 checksum for the November 10 pack. On a fresh VM, run the block from an administrative Bash shell with permission to create /opt/flop-miner. It verifies the archive before extracting it into the pack’s expected directory. If the guide lists a replacement pack for the network you’re using, take its archive and checksum from the same release entry. Inspect the README before using its scripts. Official pack and checksum
(
set -euo pipefail
umask 077
pack=flop-miner-pack-devnet-ts-20261110
workdir=/opt/flop-miner
test ! -e "$workdir"
stage=$(mktemp -d)
cd "$stage"
curl -fLO --max-time 120 "https://flop.network/releases/cli/$pack/$pack.tar.gz"
archive_sha=72546fc4f020ec665d7b8c54aa0cddd336e95d2c93b650ca77e82e35607e8f0d
printf '%s %s\n' "$archive_sha" "$pack.tar.gz" | sha256sum -c -
mkdir -m 700 "$workdir"
tar --no-same-owner -xzf "$pack.tar.gz" -C "$workdir" --strip-components=1
printf 'Release pack directory: %s\n' "$workdir"
)Work from the extracted pack directory. Use the approved version and digest for the CLI, worker and backend from the matching release, and check those references against the official release information for that configuration. Compare the RPC’s genesis hash, the identifier for the chain’s first block, and runtime version with the expected Devnet profile before any signed action. Select a registered BF16 model root and fetch its registered checkpoint through the CLI on the VM. The mounted /work directory is the current pack directory in this example. model fetch accepts the output only if the files reproduce the registered root. If the mirror no longer provides the exact bytes, use FLOP’s documented recovery process for that model. Miner manual · Release manifest
read -r -p 'Approved CLI image with version and digest: ' FLOP_CLI
export FLOP_CLI
export FLOP_RPC=wss://rpc.devnet.flop.network
flop() {
docker run --rm --network host -e FLOP_KEY_PASSWORD \
-v "$PWD:/work" "$FLOP_CLI" "$@"
}
flop --network devnet --rpc "$FLOP_RPC" network status --jsonAfter comparing the chain identity and runtime, fetch from the registry into a fresh checkpoint directory. Use the root for the exact approved Qwen2.5-0.5B-Instruct BF16 entry if you are following the reference drill. The different model revisions and precision variants need their own checks.
read -r -p 'Registered BF16 model root (0x...): ' MODEL_HASH
export MODEL_HASH
flop --network devnet --rpc "$FLOP_RPC" model fetch "$MODEL_HASH" \
--precision BF16 --output-dir /work/models/starter-bf16 --jsonCopy miner.env.example to a private miner.env using file mode 600. Fill in the approved images, RPC, registered model name and hash, the absolute host path to the verified checkpoint and authentication values as the release directs. For this VM the worker’s backend URL stays on the Compose network at http://backend:8000/v1. Leave the policy fields for the pack’s resolver unless the release specifies how to select among several approved policies. decode-policy.sh checks the policy against the finalized chain. Run docker compose config --quiet so the configuration check does not print the resolved secrets. Start the backend first. FLOP configuration and policy resolver
C=(docker compose --env-file miner.env
-f docker-compose.miner.yml -f docker-compose.backend.yml)
./decode-policy.sh miner.env &&
"${C[@]}" config --quiet &&
"${C[@]}" pull backend &&
"${C[@]}" up -d backend
"${C[@]}" ps -a
"${C[@]}" logs --tail 40 backend4. Capture TOPLOC evidence locally
When the model finishes loading, query the backend from inside its own container. Its private health response should show measured identity, the exact registered root, BF16 precision and the policy hash you just resolved. The backend can already answer a local inference request. The worker and any sponsored registration can wait while you check that request.
The example below adapts the original two-request smoke test for the single-GPU Qwen2.5 starter profile. Enter the expected root and policy hash from the verified configuration. The bearer stays in the backend container. The test compares the health response with the expected identity, checks the proof’s binding to the request and requires two matching sets of captured lanes for this fixed input. If a check fails, inspect the backend version, model, policy, precision and output before moving on. Backend health and model checks · TOPLOC verification design
read -r -p 'Expected registered model root: ' EXPECTED_ROOT
read -r -p 'Expected allowlisted decode policy hash: ' EXPECTED_POLICY
"${C[@]}" exec -T -e "EXPECTED_ROOT=$EXPECTED_ROOT" \
-e "EXPECTED_POLICY=$EXPECTED_POLICY" backend python3 - <<'PY'
from hashlib import sha256
import json
import os
from urllib.request import Request, build_opener, ProxyHandler
model = "Qwen/Qwen2.5-0.5B-Instruct"
root = os.environ["EXPECTED_ROOT"].removeprefix("0x")
policy = os.environ["EXPECTED_POLICY"].removeprefix("0x")
opener = build_opener(ProxyHandler({}))
def request(path, body=None):
headers = {
"Authorization": "Bearer " + os.environ["INFERENCE_API_KEY"],
"Content-Type": "application/json",
}
data = json.dumps(body).encode() if body is not None else None
req = Request("http://127.0.0.1:8000" + path, data=data, headers=headers)
with opener.open(req, timeout=180) as response:
return json.load(response)
health = request("/health")
observed = (
health["model_identity"], health["model"],
health["model_hash"].removeprefix("0x"),
health["decode_policy_hash"].removeprefix("0x"),
health["precision"], health["tensor_parallel_size"],
)
if observed != ("measured", model, root, policy, "bf16", 1):
raise SystemExit("Model, policy, precision or tensor width differs.")
prompt = "Name a primary colour."
binding = {
"model_hash": root, "decode_policy_hash": policy, "precision": "bf16",
"prompt_hash": sha256(prompt.encode()).hexdigest(),
"task_hash": sha256(b"Local TOPLOC smoke test").hexdigest(),
"seed": "0" * 63 + "1", "turn": 0,
}
body = {"model": model, "prompt": prompt, "max_tokens": 4, "toploc": binding}
captures = []
for _ in range(2):
result = request("/v1/chat/completions", body)
proof, usage = result["toploc"], result["usage"]
if (result["model"] != model or proof["source"] != "captured"
or not proof["lanes"] or not 1 <= usage["completion_tokens"] <= 4
or usage["prompt_tokens"] < 1
or any(proof["binding"].get(k) != v for k, v in binding.items())):
raise SystemExit("Capture missing or bound to a different request.")
captures.append(proof["lanes"])
if captures[0] != captures[1]:
raise SystemExit("Repeated request produced different TOPLOC lanes.")
print("PASS: measured BF16 checkpoint and two matching local captures.")
PYRecord the model and policy hashes, image digest and GPU type with the result. That record tells you exactly which combination passed the local test. If local capture was your goal, you can proceed to rental cleanup.
5. Register the worker and check its HTTPS route
If you want a registered pilot, prepare a Devnet-only miner identity with the pack’s approved tooling and preserve the session-signing key. Follow FLOP’s file ownership and permission requirements and make an encrypted backup off-host before signing. Keep the signer separate from any production account. The worker uses its signer for network operations, and its persistent volume retains the Ghost key and local state it needs across restarts. Restore the same identity and state if you reconnect or restart a pilot. FLOP account setup
Choose a public HTTPS hostname for the worker. With a public IP and DNS, the pack’s TLS sidecar can terminate HTTPS in front of the worker. Behind NAT, point a supported tunnel at the worker’s private listener, normally 127.0.0.1:8645. Keep the GPU backend private on the VM path. Put the public hostname in SESSION_PUBLIC_HOST as directed by the guide. The worker will sign and publish its session address. FLOP endpoint requirements
Recheck sponsorship, then run the approved pack’s sponsor.sh once when you are ready to start the worker. Sponsorship can register and back an eligible miner in the same flow. Confirm the address, backing and finalized registration before proceeding. Check spendable fees separately from sponsored backing. If the response times out or says the request already exists, verify the finalized state before retrying. Wait for the service’s retry interval if capacity is unavailable. FLOP sponsorship rules · Mining explorer
This block checks the response fields again on the VM. Compare the printed timestamp with UTC before typing SPONSOR. A slot can fill between this check and submission.
(
set -euo pipefail
date -u '+%Y-%m-%dT%H:%M:%SZ'
limits=$(curl -fsS --max-time 15 https://faucet.flop.network/limits)
jq '{asOf, stale, miner: (.sponsor.miner | {status, capacity, automatic})}' \
<<< "$limits"
jq -e '.network == "devnet" and .stale == false and
(.sponsor.miner | .status == "open" and .automatic.open == true and
.capacity.used < .capacity.max)' <<< "$limits" >/dev/null
read -r -p 'After confirming freshness, type SPONSOR: ' CONFIRM
test "$CONFIRM" = SPONSOR
./sponsor.sh
)After registration finalizes, select the mode that matches the HTTPS route you prepared. Check the worker logs for its signed endpoint advertisement. From a separate machine, probe the hostname shown in that advertisement over normal HTTPS. The protected session path should return 401 without a token. A 502 points toward the proxy origin or the worker listener. Compare authenticated worker readiness separately using the pack’s self-check.
# On the VM, choose the ingress you already configured.
read -r -p 'Worker ingress (tunnel or sidecar): ' INGRESS
case "$INGRESS" in
tunnel) "${C[@]}" up -d worker && "${C[@]}" logs --tail 60 worker ;;
sidecar) "${C[@]}" -f docker-compose.tls.yml up -d worker tls &&
"${C[@]}" -f docker-compose.tls.yml logs --tail 60 worker tls ;;
*) printf 'Choose tunnel or sidecar. No service started.\n' >&2 ;;
esac# Run this from a separate machine.
read -r -p 'Advertised worker HTTPS hostname: ' WORKER_HOST
curl -sS --max-time 15 -o /dev/null -w 'HTTP %{http_code}\n' \
"https://$WORKER_HOST/session/info"6. Wait for an accepted calibration cap
The worker advertises its endpoint and polls the Devnet mailbox for Ghost jobs, which measure how much work the machine can deliver. Keep the worker and backend available while those jobs are pending. If calibration stalls, check mailbox reachability, the published Ghost key, the worker’s ability to answer, backing and spendable fees. Check the current runtime rules for timing and renewal. The selected GPU and serving configuration are part of what the chain is calibrating, so a material hardware or fingerprint change may require a new run. FLOP calibration guide
Run ./self-check.sh --json from the pack directory, adding --no-tls if you are using your own tunnel. Match the account and cap reported by the worker to the finalized chain record, check that the cap is unexpired, and save the block height. Gateway listing has its own route and admission requirements. Keep a separate record if you later observe one. FLOP readiness checks · Mining explorer
7. Try a direct session if the route is available
This optional test uses a separate funded Devnet agent keystore and a miner that accepts the exact model through a supported direct route. Check the CLI’s network and your worker’s address, model, evidence route and calibration before signing. Set an explicit ceiling in Devnet FLOP for the reserved amount and allow for additional fees. Use the current direct-session guide if you get an ambiguous model slug or the worker needs a different authentication mode. FLOP direct-session guide
(
set -e
flop --network devnet network status
read -r -p 'Confirmed calibrated miner address: ' MINER_ADDRESS
read -r -p 'Advertised HTTPS endpoint: ' WORKER_ENDPOINT
read -r -p 'Devnet FLOP escrow ceiling: ' MAX_FLOP
read -r -s -p 'Devnet agent keystore password: ' FLOP_KEY_PASSWORD
printf '\n'
export FLOP_KEY_PASSWORD
read -r -p 'Type SEND to sign the Devnet request: ' CONFIRM
test "$CONFIRM" = SEND
flop --network devnet --keystore /work/agent.json \
--password-env FLOP_KEY_PASSWORD session run \
--miner "$MINER_ADDRESS" --endpoint "$WORKER_ENDPOINT" \
--model qwen/qwen2.5-0.5b-instruct --prompt 'Name one primary colour.' \
--max-flop "$MAX_FLOP" --via auto --json
)This example assumes the VM’s pinned CLI wrapper and an encrypted test agent keystore mounted at /work/agent.json. A native CLI on a separate client uses that client’s keystore path. Save the channel ID and verified turn result. For settlement, inspect the finalized event and whether it records a positive miner payment. A forced settlement claim can still need finalization after its challenge window. If the client loses its connection after signing, look up the channel before attempting another request. FLOP direct-session and recovery guidance
8. Drain the worker and close the rental
For a registered pilot, pause new routing and let open work, reservations and disputes reconcile while the worker and backend are still available. Preserve the private configuration, signer and session keys, persistent worker volume and any evidence required for outstanding obligations. After draining and stopping the worker, verify that the encrypted backup can be read off-host before releasing the machine. If the installed release supports a separate on-chain retirement action, confirm its intended result and verify the corresponding finalized record for your own address. FLOP’s miner manual also directs operators to file a request to remove the retired host’s enrollment. FLOP drain guidance · Miner retirement guidance
For the Compose VM path, run the check below after the worker has stopped and before removing its container. It identifies the named volume mounted at /data so the backup includes the actual worker state. Include its contents in your encrypted off-host backup along with the private files above. Keep the backup password separately and check that you can restore the files you expect. FLOP worker persistence guidance
(
set -euo pipefail
worker_id=$("${C[@]}" ps -a -q worker)
test -n "$worker_id"
test "$(docker inspect -f '{{.State.Running}}' "$worker_id")" = false
volume=$(docker inspect -f '{{json .Mounts}}' "$worker_id" |
jq -er '.[] | select(.Destination == "/data" and .Type == "volume") | .Name')
docker volume inspect -f '{{.Mountpoint}}' "$volume"
)For a local capture run, keep the test result and confirm that no registration or request is outstanding. Terminate the VM or Pod, or close the Akash lease. Check the provider’s billing readback for the instance, any remaining volumes and any network add-ons. Remove the tunnel when the worker is no longer needed. The useful record from a first run is the set of stages you actually reached, from measured model and capture through any finalized settlement, together with what the rental cost. Vast billing · Runpod storage and billing · Akash deployment and lease
- A GPU backend can test a registered checkpoint and capture TOPLOC evidence before you enroll a miner.
- FLOP documents a full VM and a split Runpod Pod setup. An Akash adaptation needs its own qualification.
- Verify model identity, capture, finalized registration, accepted calibration and settlement as separate milestones.
- Drain work and verify an encrypted off-host backup before retirement, then confirm that rental charges have ended.
