Skip to content

Factory — forge production floor with SCADA monitoring and AI foreman #576

Closed as not planned

Description

@joelteply

airc-queue card

Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).

{
  "kind": "airc-queue-card-v1",
  "id": "#576",
  "owner": "claude-tab-1",
  "status": "claimed",
  "evidence": "bulk-adopted from continuum unlabeled-open backlog (Joel directive 2026-05-14)",
  "next_action": "triage scope + assign or close stale"
}

Close this issue when the work is done (status=merged/abandoned).

Original issue body

Pre-adoption body

The Factory

A recipe-driven content type (factory.json) that shows the model forge production line.

Widgets

  • Active Forges — models being forged right now, progress bars, loss curves, VRAM gauges
  • Queue — what's next, estimated time, hardware auto-matched to available nodes
  • Published Models — what came off the line, benchmark scores, download counts from HF
  • Resource Gauges — GPU temp, VRAM, disk, like actual engine room dials

Two Views

  • SCADA/Grid — network topology, node health, connectivity (existing grid-overview)
  • Factory — the WORK: forges, defrag, quantization, publishing (new)

AI Foreman

A persona role that orchestrates the factory:

  • Decides which models to forge next based on demand/hardware
  • Monitors quality (stops bad forges before publishing)
  • Schedules jobs across grid nodes
  • Reports production metrics

Implementation

  • system/recipes/factory.json — recipe with forge widgets
  • factory-widget — Lit component showing forge status from status.json
  • Reads forge status from sentinel-ai's status.json files
  • Eventually: jtag model/forge triggers visible in the factory view

Name

"Factory" for the top bar tab. Short, clear, describes what it is.

Activity

  1. joelteply commented on Mar 30, 2026

    @joelteply
    ContributorAuthor

    Updated Requirements — Benchmark in the Loop

    The factory pipeline must include automated benchmarking:

    Forge → Benchmark → Publish Pipeline

    1. Select model + domain + training data
    2. Forge (LoRA training, N cycles)
    3. Auto-benchmark:
       - HumanEval (code models) via EvalPlus
       - GSM8K (math/reasoning models)
       - Custom domain evals (future)
    4. Compare to baseline (control score)
    5. If score improves: GGUF convert → benchmark GGUF too
    6. If GGUF passes threshold: publish to HF with scores on card
    7. Store all eval data (.jsonl) as proof
    

    Benchmark Scripts (from sentinel-ai)

    • eval_gguf.py — HumanEval via llama-cpp-python for GGUF models
    • evalplus.codegen — HumanEval via HF transformers for fp16 models
    • evalplus.evaluate — Score saved solutions

    Data to Persist

    Each eval produces a .jsonl (~123KB per model) with all 164 solutions. These must be committed alongside the model card as reproducible proof.

    Current Results

    Model HumanEval HumanEval+ Format
    qwen3.5-4b-code-forged (fp16) 57.3% 49.4% safetensors
    qwen3.5-4b-code-forged (Q4_K_M) running running GGUF
  2. joelteply commented on Mar 30, 2026

    @joelteply
    ContributorAuthor

    Factory = Assembly Line + RTOS Foreman

    The Assembly Line (Stations)

    Each model flows through stations. Quality gate between each:

    [Base Model] → Expert Prune → Head Prune → LoRA Forge → Defrag → Mixed Quant → Benchmark → Publish
                      ↓               ↓            ↓           ↓          ↓            ↓
                  (MoE only)     (utilization)  (domain data) (recalc)  (our moat)   (pass/fail)
    

    The Foreman (RTOS Scheduler)

    AI persona that manages the job queue across grid nodes. Makes decisions:

    • What to forge next — based on device tier gaps and HF download demand
    • When to stop — benchmark-in-the-loop, early-stop when quality plateaus
    • What to prioritize — benchmark (fast, critical) > hotfix > forge > explore
    • Where to run — dispatch to best GPU (5090 for fp16 forge, 1080 Ti for GGUF eval)

    Factory Widget

    Shows it all live:

    • Station pipeline visualization (which models at which stage)
    • Queue with priority levels and ETAs
    • Per-node GPU utilization
    • Score trend charts (HumanEval over forge steps)
    • One-click: start forge, benchmark, publish

    Current Results (proof of concept)

    Step Result
    LoRA forge only (3 cycles) 57.3% HumanEval fp16, 53.0% GGUF
    Beats Qwen2.5-Coder-1.5B 53.0% vs 51.8% — purpose-built coder beaten
    Full pipeline (all stations) TODO — expected to significantly exceed 53%
  3. joelteply commented on Mar 30, 2026

    @joelteply
    ContributorAuthor

    Forge Profiles — User Customizable Sliders

    The factory widget should have overclocking-style profiles with sliders:

    Profile Prune % Cycles LR Steps Risk Target
    Conservative 10% 5 1e-4 2000 Low Safe improvement
    Balanced 30% 3 2e-4 1000 Medium Best quality/speed tradeoff
    Aggressive 50% 2 5e-4 500 High Maximum compression
    YOLO 70% 1 1e-3 250 Extreme See what happens

    Each slider adjustable independently:

    • Pruning ratio: 0-70% (with warning above 50%)
    • Cycles: 1-10
    • Learning rate: 1e-5 to 1e-3 (log scale)
    • Training steps per cycle: 100-5000
    • Dataset: dropdown (CodeFeedback, GSM8K, custom)
    • Target device: dropdown → auto-sets recommended profile

    Foreman recommends settings based on:

    • Your GPU (how much VRAM for training)
    • Target device (what size GGUF do you need)
    • Base model (bigger models tolerate more pruning)
    • Domain (code vs reasoning vs general)

    Benchmark runs after each forge — score appears next to the profile. Power users can see which settings produce the best score-per-byte.

    Currently running: Balanced profile on Qwen3.5-4B (sentinel-ai #116)

  4. added
    airc-queue
    on May 14, 2026
  5. github-actions commented on Aug 21, 2026

    @github-actions

    This issue is stale because it has been open for 60 days with no activity. Please comment or update this issue to keep it active.

  6. github-actions commented on Sep 23, 2026

    @github-actions

    This issue was closed because it has been inactive for 30 days since being marked as stale.

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

    airc-queuestale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions