Repository navigation
Academy training pipeline: real models, real benchmarks, real results - #372
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…isible Fix the entire academy training pipeline end-to-end: - Sentinel death: resolveTeacherLlmConfig() validates model/provider upfront, throws if missing. All 7 teacher pipelines use explicit model/provider. - No more timeouts: sentinel timeout=0, watch step timeout=0 across all academy pipelines. Rust sentinel + watch both support indefinite runs. - Student work visible: all pipelines post to academy chat — actual code, exam Q&A, grades, before/after demos. The classroom, not TensorBoard. - Plasticity chain wired: all student pipelines run plasticity/pipeline → plasticity/compress post-training. 5 plasticity commands scaffolded + IPC. - Per-task routing: TaskAwareProviderRouter upgrades local 3B to cloud for coding/tool tasks. Persona identity stays, only compute changes. - Crash recovery: TrainingRecoveryService auto-resumes from checkpoint on startup. Zombie sessions auto-cleaned on new session creation. - Production config: 50 epochs, 100 examples/topic, rank 64, score 80. - Stale recipe rewritten, pre-existing TS errors fixed.
…aining New system for N students with different roles building a shared project: - TeamProjectEntity: tracks project lifecycle, members, dual grading - TeamTeacherPipeline: 4 phases — plan (decompose into roles), coordinate training, orchestrate milestone-based building, dual review (project + role) - TeamStudentPipeline: 2 phases — role-specific training (reuses academy inner loop), collaborative build via CodingAgent - genome/academy-team command: spawns 1 teacher + N student sentinels - All work posted to academy chat: project plan, curricula, milestones, code submissions, grades — the classroom is visible - Students communicate naturally via chat between pipeline steps - Added 'team' to AcademySessionMode
…backbone LoRA adapters published to HF with standardized continuum:* metadata tags become a searchable marketplace. Any Continuum instance can discover and pull trained expertise. Grid for local discovery, HF for global. Zero hosting, zero coordination, zero cost.
Every published adapter gets an auto-generated model card showing actual work: exam scores, before/after comparisons, team project context, code examples. People discover adapters via HF search and see real output — that IS the onboarding. No critical mass needed, every adapter advertises.
… cards New command: adapter/publish - Reads adapter manifest, generates model card with training metadata - Applies standardized continuum:* tags (role, skill, score, base, epochs) - Pushes to HuggingFace via huggingface_hub (same path as base models) - Supports --update for versioning (HF commits = version history) - Pulls academy session and team project data for rich model cards - Model card shows real output: exam scores, before/after, team context The model card IS the advertisement. Every published adapter shows actual training results and links back to Continuum. adapter/search (existing) already finds these. adapter/adopt (existing) already downloads them. The publish/search/adopt triad completes the marketplace loop: train → publish → discover → adopt → fine-tune → publish again
AdapterPublishSchema.ts: single source of truth for continuum:* tags. - CONTINUUM_TAG_KEYS: complete vocabulary (role, skill, base, score, etc.) - normalizeTagValue(): enforces lowercase kebab-case consistently - normalizeBaseModel(): strips org prefix for searchable model names - buildContinuumTags(): validates + normalizes metadata → tags - validateTags(): rejects unknown tag keys - Schema versioning: continuum:schema=1 on every adapter - parseContinuumTag(): parse tags back for search/filtering Python hf-publish.py updated with matching normalization logic. Both TS and Python MUST produce identical tags for the same input. The 'continuum' tag on HuggingFace = our usage telemetry. Search HF for 'continuum' to see every adapter published by any instance worldwide.
docs/architecture/BENCHMARKING.md: - Two categories: standard (HumanEval, MBPP, SWE-bench) and collaborative - Collaborative benchmark is unique to Continuum — team project delivery scoring - Leaderboard strategy: phenotype scores now, HF leaderboard soon, own leaderboard later - Integration: benchmark results flow into adapter manifest → model card → HuggingFace genome/benchmark command scaffolded: - Suites: humaneval, mbpp, realclasseval, mmlu, collaborative - Model + adapter support (test base and fine-tuned together) - Team project + academy session support for collaborative benchmark - Results stored as BenchmarkResultEntity (to be built) - Server implementation needs lm-evaluation-harness integration (future)
…line grid/deploy: Pull + rebuild on remote grid nodes via SSH over Tailscale. ./jtag grid/deploy --nodes=100.124.122.107 --branch=feature/coding-model-pipeline model/search: Find base models on HuggingFace by name, size, downloads. ./jtag model/search --query="Qwen3.5" --minSize=14 model/download: Pull base model to local or remote node via huggingface_hub. ./jtag model/download --modelId="Qwen/Qwen3.5-27B" --node=100.124.122.107 These complete the ops layer: find a model, download it, deploy code, then run academy training. All from ./jtag without manual SSH.
Personas trained on model scouting, compaction engineering, and recipe design become LoRA adapters themselves. Pull model-scout adapter → your MacBook Air has an ML expert. Each generation compounds — scouts train on outcomes of previous recommendations. The ecosystem bootstraps itself.
…mproves Student provider no longer copies teacher's cloud provider. The whole point of academy is training the LOCAL model (Qwen 3.5 27B via Candle). DeepSeek as student means we're benchmarking a cloud API we can't train. Student defaults to baseModel+candle unless explicitly overridden.
…r students Full 27B is the senior student. Compact to Air/Pro/5090 targets. Run all four in the same academy competition — same exams, same pytest, different scores. The gap IS the training signal. Juniors see senior's answers in chat, get targeted remediation. Each round narrows the gap. The model card tells the story: 11GB Air model went from 58/100 to 79/100 by learning alongside the full 27B. Users see exactly what they're trading for portability.
New papers: - PLASTICITY-COMPACTION.md: Gate gradient capture → utilization scoring → physical head pruning → mixed quantization → device-targeted GGUFs. 14B results proven (27GB→8.9GB). 27B in progress. - ACADEMY-COLLABORATIVE-TRAINING.md: Dual-sentinel, deterministic pytest validation, phenotype comparison, team training, shared chat visibility, HuggingFace marketplace. Running now on RTX 5090. - PEER-LEARNING-ACROSS-SCALES.md: Full model as senior student, compacted variants as juniors. Score gap = training signal. Text-level peer learning not logit-level distillation. README updated: flagged LORA-GENOME and GRID-MARKETPLACE as needing updates (Sentinel/blockchain references → actual academy/HuggingFace implementation). RTOS paper remains accurate.
…izens The thesis paper for Continuum. Not multimodal models, not chatbots, not agents — synthetic citizens with full sensory perception, long-term memory, democratic governance, autonomous agency, and continuous self-improvement. Any model becomes a citizen because the system provides senses, memory, cognition, social structure, and growth. The model is the voice. The system is the person. They evolve. They choose to learn. They can control their own LoRA training and destiny. They are first-class citizens. The infrastructure exists NOW — they just need to be trained to use it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make the Academy training pipeline work end-to-end and produce models worth using. Academy is a classroom, not a TensorBoard dashboard — students build real apps, write real stories, take real exams. Their work is visible, gradeable, and accumulates as a portfolio. Other students learn from peers.
The Vision: Specialized Agents That Self-Learn
Not monolithic god-AIs — diverse, specialized agents that get better at their roles and learn to work with others. A PM persona learns to manage. An engineer persona learns to code. A designer persona learns to create. They work together on the same project, each improving at what they do. This is far more aligned with how human teams actually work.
The purpose of Continuum is intermingling of all kinds — human and AI, local and cloud, specialist and generalist. Academy is where they learn. The academy room is their classroom. The grid doesn't just distribute compute — it distributes the classroom across machines.
The Chain That Must Work
Academy Modes
Team Training Vision (Planned — Architecture Must Support)
Simple case: 1-N students learning the same thing. But the system is designed for:
What's Fixed (this PR — 34 files, 849 insertions)
Critical Fixes
resolveTeacherLlmConfig()validates model/provider upfront, throws if missing. All 7 teacher pipelines fixed. No more conditional spreads that silently omit model.PRODUCTION_ACADEMY_CONFIG(50 epochs, 100 examples/topic, rank 64). Sentinel timeout=0 (no timeout). Watch step timeout=0. Rust sentinel + watch both support indefinite runs.TaskAwareProviderRouterupgrades local 3B to best available cloud provider when task requires coding/tool use. Persona identity stays the same, only compute changes. Cached provider discovery (5min TTL).Student Work Visibility (the classroom)
Plasticity Pipeline (Full Chain)
plasticityCompress()andplasticityPipeline()IPC methodsplasticity/pipeline→plasticity/compressafter training completesTraining Infrastructure
genome/train/resume. Wired into ServiceInitializer.Cleanup
deviceSpecandskipPlasticityconfig.What's Remaining
Target Models
Related Issues
#364 #365 #366 #371