Skip to content

Adi - Ground 0 #14

Description

@adikatre

Title: Ground 0: Define the OCS Intelligence distributed AI system, inference goals, deployment path, and team execution plan

Description:

The goal is not just to “make AI work,” but to build a usable, measurable, and maintainable architecture for students — with the API already set up, and the next work focused on making the system better and better for classroom use.


1. Inference bottlenecks and model performance

From issue #4, the project has already identified that inference performance is a major constraint.

Problems called out

  • low TPS / throughput
  • low compute and GPU utilization
  • high TTFT
  • cold start delays
  • inter-GPU bandwidth limiting performance
  • context-window pressure, including the 256k context concern

Specific work to address

  • Measure baseline inference performance with verbose output and recorded stats
  • Track:
    • TPS / eval rate
    • TTFT
    • load duration
    • prompt eval duration
    • cold start vs warm start behavior
  • Identify where bottlenecks come from:
    • GPU utilization
    • model loading
    • bandwidth between GPUs
    • cold start behavior after idle time
  • Test whether speculative decoding can improve responsiveness
  • Evaluate whether YaRN or similar approaches are needed for larger context behavior
  • Decide which improvements are actually useful for the hardware in this repo, rather than assuming generic modern inference settings will work

Outcome expected

A documented path toward better inference performance that is based on actual measurement, not assumptions.


2. Deployment strategy for GitHub Copilot / Claude Code

From issue #5, deployment is a project concern, not just a technical afterthought.

What the issue represents

  • A deployment strategy discussion for GitHub Copilot / Claude Code
  • A sign that the project needs a clearer path from research/prototype to something students can actually use
  • A reminder that deployment should support the overall system direction, not live separately from it

Specific work to address

  • Define how the current project should be deployed in a way that supports the intended user workflow
  • Clarify what is public-facing vs private infrastructure
  • Make the deployment strategy compatible with the project’s AI / assistant use case
  • Ensure deployment choices do not fight the planned architecture for:
    • cloud control plane
    • private networking
    • worker nodes
    • GPU inference
  • Document how deployment decisions fit into the student-facing experience

Outcome expected

A deployment path that supports the broader OCS Intelligence architecture instead of being treated as a separate concern.


3. Communication, research, and sprint burndown tracking

From issue #6, the repo already shows that project organization and execution tracking are important.

Items already identified

  • document the most recent group split
  • finish literature review on inference engineering for low-compute use cases
  • add designated research questions to the capstone
  • justify experiments clearly
  • update the capstone PR
  • setup Cloudflare Tunnel
  • solve inference bottlenecks from issue Solving Inference Bottlenecks (Bad TPS, ITL, TTFT, etc.) #4

Specific work to address

  • Keep the team split visible and documented
  • Tie research questions to specific engineering decisions
  • Make sure experiments are justified by how they help solve the problem statement
  • Track progress in a burndown-style way so work does not remain too abstract
  • Ensure infrastructure work, research work, and deployment work are connected

Outcome expected

A clearer execution model where research, implementation, and documentation all point to the same project goal.


4. Shared project vision and architecture direction

From issue #7, the project has a much deeper architecture story than just “run AI on some machines.”

Main architectural ideas

  • a public cloud control plane
  • private networking through NetBird
  • a Mac Mini pool for session, context, and orchestration work
  • GPU rigs for inference
  • a broker/scheduler between clients, Minis, and GPUs
  • a split between durable state, fast state, and working state
  • a two-pool model for production and development/testing

Specific work to address

  • Keep the system organized around the control plane vs compute plane split
  • Use the correct storage layer for the correct state:
    • durable state in RDS
    • fast live state in Redis
    • disposable working state on Minis
  • Preserve the intended flow:
    • student → HTTPS/public endpoint → broker → Mini → GPU → response
  • Make sure networking stays private for infrastructure while remaining simple for students
  • Continue to use the architecture as a research platform for low-cost distributed AI inference

Outcome expected

A coherent system model that keeps student access simple while making the backend architecture understandable and scalable.


5. Team burndown and Ground Zero readiness

From issue #8, the Ground 0 work is also about helping others understand the project phase.

Relevant points

  • Make a lesson to teach Mr. Mort about phase 0 / basic setup
  • Everyone has to finish Ground 0

Specific work to address

  • Turn the Ground 0 phase into something teachable
  • Make the setup and architecture understandable to someone joining late
  • Document the basic setup clearly enough that the team can align on what “finished Ground 0” means
  • Use the lesson/doc approach so team members and mentors can see what was learned, not just what was installed

Outcome expected

A Ground Zero explanation that can be shared with others and used to align the whole team.


6. Full Ground 0 architecture and project decomposition

From issue #10, the repo has the most complete version of the Ground 0 system design.

Key architectural details to preserve

  • Student-facing entry point through a web app / API
  • NetBird as the private connectivity layer
  • AWS / OCS EC2 as the stable public control plane
  • RDS for durable state
  • Redis for live state, queues, registries, and locks
  • Mac Minis as session/context/agent workers
  • GPU rigs as inference workers
  • llama.cpp + llama-server as the baseline GPU runtime
  • GTX 1070 / Pascal hardware treated as a research constraint
  • broker/scheduler logic for:
    • healthy Mini detection
    • session assignment
    • Mini disappearance handling
    • GPU selection
    • queueing
    • model locality
    • GPU busy state
    • rig failover / promotion

Specific work to address

  • Convert the architecture into small service contracts
  • Build the smallest end-to-end proof path:
    • client → FastAPI → NetBird → Mini → GPU → llama-server → response
  • Add worker registration and health checks
  • Add queue and basic scheduling behavior
  • Support session/context handling on Minis
  • Measure latency and failure cases
  • Separate production and development/test pools
  • Test failover and promotion behavior between rigs

Outcome expected

A staged implementation plan that moves from architecture into working infrastructure without trying to scale too early.


7. Concrete Ground Zero direction for this repo

Taken together, issues #4#10 point to a project that should focus on:

  • improving inference quality and speed
  • proving deployment and networking work together
  • using a broker to coordinate Minis and GPUs
  • tracking state correctly across durable, live, and working layers
  • documenting the system so the team can execute consistently
  • building toward a student-facing AI platform instead of a loose set of machines

The API is already set up. The next work is to keep improving the system so it becomes more useful, more reliable, and more targeted for students in class.


Expected deliverables

  • Baseline inference measurements with notes on bottlenecks
  • A documented deployment path
  • Updated capstone / burndown documentation
  • A clearer system architecture doc or implementation plan
  • A smallest-possible end-to-end request path
  • Worker and scheduler contracts for Minis and GPUs
  • A Ground 0 summary that can be taught to the rest of the team

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions