diff --git a/inference-coop/README.md b/inference-coop/README.md index 893a337..9bbc11e 100644 --- a/inference-coop/README.md +++ b/inference-coop/README.md @@ -144,15 +144,85 @@ Open WebUI is the leading self-hosted chat interface (141K+ GitHub stars). It's ### Recommendation -**Two-tier approach:** -1. **Chat/lightweight models:** Hetzner or Scaleway VPS with Cloudron + Ollama running small models on CPU or modest GPU. Scaleway DC5 for 100% renewable. ~€15-30/month for the VPS + Cloudron license. -2. **Frontier/heavy models:** Broker via OpenRouter (no GPU hosting needed). When self-hosting frontier becomes necessary, move to IREN or Lambda Labs with renewable energy credits. +**Three tiers of green hosting, depending on whether the MVP uses GPU:** -For the MVP, a single Scaleway or Hetzner server running Cloudron + Ollama + Open WebUI can serve 5-10 user-testers with lightweight models. Add OpenRouter API access for frontier model needs. +**Tier 1: CPU-only VPS (no GPU) — for Ollama small models or Cloudron-only (no self-hosted inference)** -- [Scaleway GPU instances](https://www.scaleway.com/en/gpu-instances/) -- [Hetzner GPU servers](https://www.hetzner.com/dedicated-rootserver/matrix-gpu/) -- Scaleway vs Hetzner comparison: [VPSBenchmarks (2026)](https://www.vpsbenchmarks.com/compare/hetzner_vs_scaleway) +If using Tinfoil/Ollama Cloud for inference and Cloudron only for chat/governance/SSO, no GPU is needed. A basic VPS suffices: + +| Provider | Renewable claim | GPU? | Price | Location | Notes | +|----------|----------------|------|-------|----------|-------| +| **Hetzner Cloud** | 100% hydropower (Germany since 2008), hydro+wind (Finland since 2018). Founded HT Clean Energy GmbH for solar parks. EMAS/ISO 14001 certified. | Cloud: no GPU. Dedicated: yes | CPX31 (4 vCPU, 8GB RAM): ~€13/mo | Germany, Finland | Best value. 100% renewable. | +| **Scaleway** | 100% renewable at DC5 (Paris): wind + hydro, GO-certified. PUE 1.16. Free + adiabatic cooling. | Cloud: L4, L40S. No A100/H100 | DEV1-L (4 vCPU, 8GB): ~€15/mo | Paris, Amsterdam, Warsaw | Strongest renewable claims in EU. | + +- Sources: [Hetzner sustainability](https://www.hetzner.com/unternehmen/nachhaltigkeit/), [Hetzner green energy](https://cloudnews.tech/hetzner-invests-in-renewable-energy-with-the-creation-of-ht-clean-energy-gmbh/), [Scaleway L40S (renewable)](https://www.scaleway.com/en/l40s-gpu-instance/) + +**Tier 2: GPU server for self-hosted Ollama (lightweight models, 7B-13B)** + +For self-hosting small models on Ollama, an L4 or L40S GPU is sufficient: + +| Provider | Renewable claim | GPU | Price | Location | Notes | +|----------|----------------|-----|-------|----------|-------| +| **Scaleway** | 100% renewable (DC5 Paris) | L4 | ~$0.79/hr on-demand, ~$289/mo reserved | Paris | Greenest GPU option in Europe | +| **Scaleway** | 100% renewable (DC5 Paris) | L40S (48GB) | ~$1.68/hr on-demand, ~$614/mo reserved | Paris | Best for 13B models | +| **Hetzner** | 100% hydropower (Germany/Finland) | L4 | €199/mo dedicated | Germany, Finland | Fixed monthly, no A100/H100 | +| **Hetzner** | 100% hydropower | L40S | €349/mo dedicated | Germany, Finland | Fixed monthly, good value | +| **Hetzner** | 100% hydropower | RTX 6000 Ada (96GB) | €889/mo dedicated | Germany, Finland | Largest VRAM, can run 70B quantized | + +- Sources: [Hetzner GPU servers](https://www.hetzner.com/dedicated-root-server/matrix-gpu/), [Scaleway GPU pricing](https://www.scaleway.com/en/pricing/gpu/), [Hetzner GPU review 2026](https://gpuhosted.com/en/hetzner-gpu-review/) + +**Tier 3: H100 for frontier models + future TEE migration** + +For H100/H200 with Confidential Computing (TEE), needed when serving 70B+ models or implementing Tier 3 privacy: + +| Provider | Renewable claim | GPU | Price | Location | TEE capable? | +|----------|----------------|-----|-------|----------|-------------| +| **Scaleway** | 100% renewable (DC5) | H100 SXM | ~$2.80/hr on-demand | Paris | Unknown | +| **Lambda Labs** | Not renewable-specific | H100 | $2.21/hr reserved | US | H100 CC capable | +| **IREN** | 100% renewable-powered DCs | H100, H200, B200 | Custom pricing | Global (AU, US, CA) | H100 CC capable | + +- Sources: [Scaleway GPU pricing](https://www.scaleway.com/en/pricing/gpu/), [Lambda Labs pricing](https://lambda.ai/pricing) + +### Key findings + +1. **Hetzner is the greenest practical choice for the MVP.** 100% hydropower since 2008 (Germany) and 2018 (Finland). Now building own solar parks via HT Clean Energy GmbH. EMAS/ISO 14001 certified. GPU servers available from €199/month (L4) or €349/month (L40S). No H100/H200 — tops out at RTX 6000 Ada (96GB VRAM, can run 70B quantized). + +2. **Scaleway DC5 is the greenest GPU cloud.** 100% renewable (wind + hydro, GO-certified), PUE 1.16, ultra-efficient cooling. Offers L4, L40S, and H100. On-demand pricing means you pay only when serving requests. + +3. **Neither Hetzner nor Scaleway explicitly supports NVIDIA Confidential Computing (TEE).** For the TEE migration (Phase 3 privacy), IREN or Lambda Labs with H100 CC mode would be needed. This is a future concern, not an MVP requirement. + +4. **Ollama on CPU is viable for the MVP.** For 5-10 user-testers using 7B models (Qwen 3.5 7B, Gemma 4 9B), Ollama runs on CPU — slowly (5-15 tokens/sec) but usable for a proof of concept. A Hetzner CPX31 (4 vCPU, 8GB RAM, ~€13/mo) can serve lightweight models without a GPU. When faster response is needed, add a GPU server or switch to Tinfoil/Ollama Cloud for inference. + +### Recommended MVP hosting setup + +**Option A: Minimal (CPU only, no GPU)** +- Hetzner CPX31 (4 vCPU, 8GB RAM): €13/mo — runs Cloudron + Ollama (7B models on CPU, slow but functional) +- Inference: Ollama self-hosted (lightweight models) + OpenRouter (frontier models) +- Total infra: ~€28/mo (VPS + Cloudron) +- Renewable: ✅ 100% hydropower + +**Option B: With GPU (recommended for better UX)** +- Hetzner CCX23 (dedicated vCPU, 8GB RAM) for Cloudron: ~€25/mo +- Hetzner GEX44 (L4 GPU dedicated server): €199/mo +- Inference: Ollama self-hosted on GPU (fast, 7B-13B models) + OpenRouter (frontier) +- Total infra: ~€239/mo (VPS + Cloudron + GPU server) +- Renewable: ✅ 100% hydropower +- *Or:* Scaleway L4 on-demand (~$0.79/hr = ~$230/mo if running 24/7, but can shut down off-hours) + +**Option C: Cloud inference, no GPU hosting** +- Hetzner CPX31 for Cloudron only: €13/mo +- Inference: Tinfoil API (TEE privacy, per-token) or Ollama Cloud ($25/seat/mo) +- Total infra: ~€28/mo + per-token/seat costs +- Renewable: ✅ VPS on hydropower; inference provider's energy mix unknown + +### Sustainability tracking + +GreenPT's real-time per-conversation CO₂ display is a feature the cooperative should replicate. This requires: +- Measuring GPU/CPU energy per inference request +- Multiplying by the grid carbon intensity of the data center's location +- Displaying in the chat interface (Open WebUI supports custom UI elements via pipelines) + +For Hetzner Germany/Finland (100% renewable), the carbon intensity is near-zero. For Scaleway DC5 Paris (100% renewable GO-certified), also near-zero. This is a genuine competitive differentiator: the cooperative can credibly claim near-zero carbon AI inference. ---