How nagasiv-cyber/gpu works
GPUSetu is a peer-to-peer GPU rental marketplace whose core workflow prices and matches a buyer’s job, locks payment, runs it on a host GPU, meters and audits actual GPU work, then settles or slashes escrow. The README documents cloud fallback, host controls, sandboxing, and buyer deliverables; sampled source confirms key backend, host, and chain responsibilities. Some routes and subsystem internals were not sampled, so only documented relationships are shown for them.
Main entry points: backend.py Marketplace Backend · host_daemon.py Host Daemon · chain.py Chain Adapter · app.html Buyer Dashboard
Components 17
Marketplace
- Buyer Dashboard
static/app.html - Marketplace Backend
backend.py - Surge Pricing
backend.py - Host Matching
backend.py - Cloud Fallback
backend.py - Telemetry Audit
backend.py
GPU Host
- Host Portal
static/portal.html - Host Daemon
host_daemon.py - Docker Sandbox
host_daemon.py - Host GPU
- MNIST Training Job
jobs/demo_job.py - Fraud Demo Job
jobs/fake_job.py
Escrow Settlement
- Chain Adapter
chain.py - Escrow Contract
contracts/GPUSetuEscrow.sol
Job Deliverables
- Verified Artifacts
backend.py - Model Verification
verify_model.py
Other components
- Buyer
Connections 21
- Buyer → Buyer Dashboard: submits jobs
README.md - Buyer Dashboard → Marketplace Backend: uses API
backend.py - Marketplace Backend → Surge Pricing: quotes rate
README.md - Marketplace Backend → Host Matching: matches host
README.md - Host Matching → Host Daemon: dispatches job
README.md - Host Matching → Cloud Fallback: falls back
README.md - Marketplace Backend → Chain Adapter: locks payment
backend.py - Chain Adapter → Escrow Contract: sends transactions
README.md - Host Daemon → Docker Sandbox: runs job in
README.md - Docker Sandbox → Host GPU: uses GPU
README.md - Host Daemon → Host GPU: reads NVML telemetry
host_daemon.py - MNIST Training Job → Host GPU: trains on
jobs/demo_job.py - Fraud Demo Job → Host GPU: leaves idle
jobs/fake_job.py - Marketplace Backend → Host Daemon: reads job telemetry
backend.py - Marketplace Backend → Telemetry Audit: checks claim
README.md - Telemetry Audit → Chain Adapter: settles or slashes
backend.py - Host Daemon → Verified Artifacts: produces outputs
README.md - Marketplace Backend → Verified Artifacts: delivers verified files
backend.py - Buyer → Model Verification: checks model
verify_model.py - Verified Artifacts → Model Verification: loads delivered model
verify_model.py - Host Portal → Marketplace Backend: reads host earnings
backend.py