diff --git a/inference-coop/README.md b/inference-coop/README.md index 9bbc11e..b9e5c03 100644 --- a/inference-coop/README.md +++ b/inference-coop/README.md @@ -559,7 +559,54 @@ The cooperative's structural advantage is that it *can* deploy TEEs and offer ve --- -## Cost estimate (MVP, 5-10 user-testers) +## Cost comparison: self-hosting vs cloud inference (10 users, ~12M tokens/month) + +Assumptions: 10 user-testers, ~20 queries/day each, ~2000 tokens per conversation = ~400K tokens/day = ~12M tokens/month. + +| Option | Cost/mo | Green? | TEE? | Self-hosted? | Inference quality | +|--------|---------|--------|------|-------------|-------------------| +| **Tinfoil API (GPT-OSS 120B)** | **~$18** | Unknown | ✅ | No | Full open models, fast | +| **Tinfoil API (DeepSeek V4 Flash)** | **~$20** | Unknown | ✅ | No | 304B MoE, 1M context | +| Hetzner CPU + Ollama + OpenRouter | €38 | ✅ Hydro | No | ✅ | 7B only on CPU (slow, 5-15 tok/s) | +| Ollama Cloud Team (5 seats min) | ~$140 | Unknown | No | No | Full model library | +| Scaleway L4 on-demand (8hrs/day) | ~$214 | ✅ Wind+hydro | No | ✅ | 7B-13B on GPU (fast) | +| Hetzner L4 GPU + Ollama | €222 | ✅ Hydro | No | ✅ | 7B-13B on GPU (fast) | +| Ollama Cloud Pro (10× individual) | ~$215 | Unknown | No | No | Full model library | + +**Tinfoil wins on price by 2-10x** — the cooperative pays only for actual tokens used, not for idle GPU time. At 12M tokens/month, Tinfoil costs $3.96 (GPT-OSS 120B) to $5.52 (DeepSeek V4 Flash) in inference charges, plus €15/month for Cloudron = ~$18-20/month total. + +**Self-hosting on green energy costs 2-10x more** because you're paying for a GPU server 24/7 regardless of whether anyone is querying it. The cheapest green self-hosted option (Hetzner CPU, €38/month) is slow (7B models on CPU, 5-15 tokens/sec) and still costs more than Tinfoil. + +Sources: [Tinfoil pricing](https://tinfoil.sh/models), [Hetzner GPU servers](https://www.hetzner.com/dedicated-root-server/matrix-gpu/), [Scaleway GPU pricing](https://www.scaleway.com/en/pricing/gpu/), [Ollama Cloud pricing](https://ollama.com/pricing) + +--- + +## Green + TEE: the gap + +There is **no option today that is both clearly green AND TEE-protected at MVP scale**: + +| Approach | Green? | TEE? | Cost/mo | MVP viable? | +|----------|--------|------|---------|-------------| +| Hetzner (hydro) + Ollama | ✅ | ❌ | €38-222 | Yes | +| Scaleway DC5 (wind+hydro) + Ollama | ✅ | ❌ | ~$214 | Yes | +| Tinfoil API (TEE) | Unknown | ✅ | ~$18-20 | Yes | +| IREN (100% renewable) + H100 TEE | ✅ | ✅ | ~$1,800 | No (overkill) | +| Google Cloud A3 Confidential VM + H100 | ~67% carbon-free | ✅ | ~$1,900 | No (overkill) | + +The closest to "both" at MVP scale is **Tinfoil** — verifiable TEE privacy at $18-20/month, but energy mix unknown. The cooperative can: + +1. **Be transparent about the trade-off** — "our inference is TEE-private; we cannot yet verify it is green" +2. **Offset the gap** — purchase renewable energy certificates (RECs) to cover estimated inference emissions +3. **Migrate when scale justifies it** — at 50+ members, self-host on IREN (renewable + TEE) or deploy Tinfoil's open-source framework on H100 hardware at a green data center + +The alternative — self-hosting on Hetzner (green, €38/month, no TEE) — costs only €18/month more but requires GPU management and gives weaker privacy (policy-based, not architectural). For a cooperative whose value proposition is member privacy, the TEE advantage is worth more than the green gap. + +- [Tinfoil](https://tinfoil.sh/) — TEE inference, open-source +- [IREN](https://www.iren.com/) — 100% renewable GPU cloud with H100 TEE capability +- [Google Cloud Confidential Computing](https://cloud.google.com/security/products/confidential-computing) — H100 TEE, targeting 24/7 carbon-free by 2030 +- [Canonical: Ubuntu Confidential VMs on Google Cloud A3 with H100](https://canonical.com/blog/2025/03/27/ubuntu-confidential-vms-now-available-on-google-cloud-a3-with-nvidia-h100-gpus) + +--- **Hybrid approach (Tinfoil + Cloudron + optional Ollama):**