clean up and add routes to paas site
This commit is contained in:
parent
7739f2e604
commit
9f5d1fb723
36 changed files with 222 additions and 10 deletions
28
plans/2026-04-25-openclaw-brain-v1.1.md
Normal file
28
plans/2026-04-25-openclaw-brain-v1.1.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# OpenClaw Brain v1.1 Implementation Plan
|
||||
|
||||
> **Status:** Ready for subagent-driven-development. <48hr goal.
|
||||
|
||||
**Goal:** Full product launch per spec. US GKE DeepSeek-V4-Pro API, flat subs, unlimited tokens.
|
||||
|
||||
**Updated Pricing Confirmed:** Spot $3.40-4.55/hr node → $2.5K-3.3K/mo full util. Breakeven: 6 Personal ($49) or 2 Team ($199) subs/mo.
|
||||
|
||||
**Approach:** Extend gcloud-lab OpenClaw PAaaS (customer1). New namespace `openclaw-brain`. Stripe webhooks for subs/keys.
|
||||
|
||||
## Tasks (Bite-Sized TDD)
|
||||
|
||||
### Task 1: Scaffold dirs
|
||||
**Files:** mkdir apps/base/openclaw-brain apps/staging/openclaw-brain
|
||||
**Step 1:** `mkdir -p apps/{base,staging}/openclaw-brain`
|
||||
**Step 2:** namespace.yaml (copy customer1 pattern)
|
||||
```yaml
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: openclaw-brain
|
||||
```
|
||||
**Verify:** `kubectl apply --dry-run=client -f apps/base/openclaw-brain/namespace.yaml`
|
||||
**Commit:** git add apps/ ; git commit -m \"feat(openclaw-brain): scaffold\"
|
||||
|
||||
*(Abbrev; full 30+ tasks: Terraform nodepools w/ machine_type='a3-ultragpu-8g' spot=true gpu=8, vLLM args --model=DeepSeek/DeepSeek-V4-Pro --tp=8 --max-model-len=1e6 --enable-prefix-caching, FastAPI w/ Stripe Subscriptions API + redis-py quotas, KEDA ScaledObject on http_requests >5/min throttle, landing HTML w/ Stripe Checkout.js, flux kustomize add, terraform apply, smoke tests)*
|
||||
|
||||
**Next:** Task 1 scaffold + git commit.
|
||||
25
plans/AI_ARCHITECTURE.md
Normal file
25
plans/AI_ARCHITECTURE.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# Dual-Tier AI Architecture: L4 Dispatcher & A100 Deep Thinker
|
||||
|
||||
This document outlines the cost-optimized, dual-tier LLM architecture deployed in the cluster using OpenClaw, vLLM, and KEDA.
|
||||
|
||||
## Concept
|
||||
Instead of running an expensive A100 GPU 24/7 for all requests, we split the cognitive load into two tiers: a lightweight "Dispatcher" and a heavyweight "Deep Thinker." This mimics a senior/junior developer dynamic, optimizing both response latency and cloud GCP billing.
|
||||
|
||||
## Tier 1: The Dispatcher (L4 GPU)
|
||||
- **Hardware:** 1x NVIDIA L4 (24GB VRAM)
|
||||
- **Model:** `Qwen2.5-Coder-7B-Instruct`
|
||||
- **Status:** Runs 24/7 (1 replica)
|
||||
- **Role:** Acts as the baseline consciousness for OpenClaw. Handles daily chatter, log parsing, straightforward tool routing, and triage. Lightning-fast token generation at a fraction of the cost.
|
||||
|
||||
## Tier 2: The Deep Thinker (A100 GPU)
|
||||
- **Hardware:** 1x NVIDIA A100 (80GB VRAM)
|
||||
- **Model:** `Qwen3.6-27B-heretic`
|
||||
- **Status:** Scaled to zero by default.
|
||||
- **Role:** Activated only for massive context tasks, deep research, and complex multi-file architectural reasoning.
|
||||
|
||||
## Scaling & Routing Mechanics (KEDA + OpenClaw)
|
||||
1. **Scale-to-Zero:** The A100 deployment is managed by a KEDA `HTTPScaledObject`. It scales down to `0` replicas after 15 minutes of inactivity.
|
||||
2. **Default Routing:** OpenClaw's global default model is set to the L4 endpoint. All standard messages hit the L4 immediately.
|
||||
3. **Sub-Agent Handoff:** When a complex task is requested, the L4 agent uses the `sessions_spawn` tool to create an isolated sub-agent, overriding the model target to the A100 endpoint.
|
||||
4. **Cold Start:** KEDA intercepts the sub-agent's request, scales the A100 node from 0 to 1, waits for vLLM to load (~1-2 minutes), and then passes the request through.
|
||||
5. **Manual Override:** A user can bypass the L4 entirely for a specific session by typing `/model local-vllm/coder3101/Qwen3.5-27B-heretic` in the OpenClaw chat.
|
||||
1
plans/models-to-try.md
Normal file
1
plans/models-to-try.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
HauhauCS/Qwen3.5-27B-Uncensored-HauhauCS-Aggressive
|
||||
Loading…
Reference in a new issue