Open-weights large language models (Qwen3, DeepSeek-R1, Llama3.3, GPT-OSS, Mistral, Gemma3) now match frontier proprietary intelligence while executing at high throughput on prosumer silicon—specifically 24–48 GB NVIDIA RTX GPUs and 64–192 GB unified-memory Apple Silicon workstations. Tenson (tenson.app) aggregates this globally distributed idle silicon into a single, OpenAI-compatible Edge API cloud with $0 hardware CapEx.
This paper formalizes Tenson's four core subsystems:
Weighted Redis 7 ZSET Routing & Atomic Concurrency Control (acquire_slot.lua via EVALSHA).
Immutable PostgreSQL 16 Double-Entry Accounting with atomic pre-flight escrow, exact 80/20 settlement, and 7-day rolling holdbacks over fiat Stripe rails.
Optimistic GPU Audits—a game-theoretic verification mechanism that makes model spoofing strictly negative expected value without per-request cryptographic overhead.
Let a centralized GPU cloud amortize hardware acquisition Chw, data-center power/cooling Cdc, and cluster ops Cops over utilization factor u∈(0,1] and lifetime T:
ccloud=u⋅T⋅ΦtokChw+Cdc+Cops
where Φtok is peak sustained tokens per second. In contrast, Tenson recruits already-amortized edge silicon (Chw=0 to the network) whose marginal serving cost is strictly incremental power draw ΔP at residential/office electricity rate ekWh:
cedge=3.6×106⋅ΦtokΔP⋅ekWh≪ccloud
By eliminating fixed hardware amortization, Tenson sustains competitive Buyer pricing while returning 80% of gross inference revenue to hardware Sellers.
Let an be active in-flight jobs on node n and Mn its declared max_concurrent capacity. Oversubscription is prevented via single-threaded Redis Lua execution (acquire_slot.lua):
For job j targeting model m with input rate rin(m) and output rate rout(m) (points per 106 tokens), estimated prompt length tin, and requested max_tokenstmax:
E(j)=⌈106tin⋅rin(m)+tmax⋅rout(m)⌉
Inside a serialized PostgreSQL transaction (SELECTidFROMusersWHEREid=$1FORUPDATE), Gateway asserts:
Bbuyer=∑e∈Lbuyereamount≥E(j)
before appending escrow_hold (−E(j)). Failure returns HTTP 402PaymentRequired.
In a single ACID transaction, Gateway appends four immutable entries: +E(j) (escrow_release), -C(j) (job_charge), +P_{\text{seller}}(j) (job_payout), and +F_{\text{platform}}(j) (platform_fee to Treasury).
Let pttft be the probability that a randomly selected online P2P node fails to emit token #1 within Tttft=3,000ms. With k=3 independent P2P attempts (1 primary + 2 silent retries) prior to centralized overflow:
P(P2P TTFT failure)=pttft3
For example, even if individual consumer nodes exhibit pttft=0.05 (5%), silent failover drives P2P failure down to 0.053=0.000125 (0.0125%, or 99.9875% P2P success) before the invisible centralized overflow cluster (OVERFLOW_BASE_URL) absorbs the remaining tail:
Rather than executing expensive zero-knowledge proofs (zkML) on every 30B–70B forward pass, Tenson enforces honest model execution via Optimistic GPU Audits backed by economic slashing.
For sampled job j, services/auditor replays the prompt on a trusted reference GPU yielding reference text yref and computes normalized token Jaccard similarity against Seller output ynode:
Suppose a rational Seller considers spoofing a large model mL using a cheaper small model mS, gaining marginal cost savings Δc>0 per job while risking forfeiture of staked + 7-day unmatured holdback capital Kn=Sn+Hn. The expected single-job profit of spoofing is:
E[Πspoof]=(1−psample)⋅Δc−psample⋅Kn
Honest execution is the unique Nash equilibrium whenever:
Kn>psample1−psample⋅Δc
For a new node (psample=0.15) with Δc=5pts ($0.005) per job, any holdback/stake Kn>28.3pts ($0.03) makes spoofing strictly negative expected value—and because the 7-day rolling holdback naturally accumulates Kn≫1,000pts, rational Sellers are strictly incentivized to run authentic weights.
Let DPG be persistent PostgreSQL storage and DRAM be volatile RAM-only Redis (--appendonlyno). Tenson enforces:
∀j,(promptj,outputj)∈/DPG (schema contains no text payload columns).
For non-sampled jobs (97% of established traffic), (promptj,outputj)∈/DRAM after stream termination.
For sampled jobs (3%), payload lifetime is strictly bounded by min(taudit,300s) via Redis EXPIRE300 and atomic GETDEL consumption by services/auditor.