Personal Open-Source AI Engineering Notes

DeepGen

Personal, non-commercial notes and browser-local experiments on AI systems engineering: GPU memory math, structured prompt schemas, RAG chunking, and bounded agent loops.

Personal & Non-Commercial Zero Heavy Runtime High-Speed Edge Delivery
Read Notes
// 01. Overview & Scope

First-Principles Notes & Browser Calculators

DeepGen is Anupam Das’s personal, non-commercial notebook of open-source AI engineering experiments (not a company, venture, or research lab). Everything here is built from public papers and model cards to make everyday capacity-planning math and schema design easier to inspect in the browser.

Zero-Dependency Rigor

Plain HTML, CSS, and dependency-free JavaScript running locally in your browser with zero tracking and zero server state.

First-Principles Math

Explicit equations for transformer weight memory, GQA/MLA KV-caches, QLoRA optimizer states, and multi-turn token accumulation.

Open-Source Utilities

MIT-licensed calculators, strict JSON/Pydantic/Zod schema compilers, and reproducible formulas derived only from public sources.

100% Client-Side Browser Math
0 KB Framework & Tracker Bloat
8 Tools Open-Source Calculators
MIT Open License & Formulas
// 02. Live Prototype Spec & Sandbox

Interactive Architecture Console

Explore illustrative multi-agent DAG state transitions, compile typed prompt schemas, model KV-cache memory, lint prompt structure, or estimate open-weights GPU VRAM with shareable URLs:

deepgen-sandbox ~ illustrative
Execution Scenario
Stage 01 Context Window Idle • 8K cap
Stage 02 Heuristic Planner Idle • DAG
Stage 03 Tool Dispatcher Idle • Sandboxed
Stage 04 Guardrail Gate Idle • ≥0.985
Stage 05 Typed Synthesis Idle • JSON-LD
# Illustrative pseudo-code (conceptual agent loop — not a real SDK)
from example_agent_loop import AgentLoop, ContextWindow, StepPlanner, ToolRunner

runtime = AgentLoop(model="open-weights-70b", max_iterations=8)
workflow = runtime.compose([
    ContextWindow(strategy="semantic_window", max_tokens=8192),
    StepPlanner(self_correction=True, min_confidence=0.985),
    ToolRunner(tools=[web_search, wasm_sandbox, vector_retriever])
])

response = workflow.execute("Synthesize topological graph of generative prompt architectures")
print(response.summary, "// Latency:", response.latency_ms, "ms")
// 03. Topics & Experiments

Open-Source Study Notes & Sandboxes

Topics covered in these personal notes and browser calculators. Filter by topic or jump to the matching interactive sandbox:

Study Notes

Generative AI & LLM Systems

Notes on decoding strategies such as speculative decoding, and small experiments with LLM-backed developer interfaces.

Key Focus: Speculative multi-draft token verification & tree search decoding.
Concepts: Autoregressive prefill vs decode, draft-model acceptance rates, KV memory.
Browser Experiment

Applied NLP & Context Architectures

Experiments with document chunking, overlap budgets, embeddings and retrieval pipelines.

Key Focus: Semantic window boundary detection with zero semantic drift.
Concepts: Fixed-window vs heading-aware chunking, overlap ratios, HNSW vector memory.
Open Source

Open Source Developer Utilities

Small, dependency-free browser tools for everyday AI engineering math.

Key Focus: Single-binary distribution & zero runtime external dependencies.
Implementation: Dependency-free HTML, CSS, and vanilla JavaScript in the browser.
Concept Sandbox

Autonomous Agents & Human-AI Systems

Notes on bounded agent loops, tool-calling guardrails and self-correction patterns.

Key Focus: Cyclic graph resolution with finite execution timeouts & self-repair.
Concepts: Step budgets, schema validation retries, and explicit refusal states.
Schema Notes

Prompt Engineering & Evaluation

Structured-output schemas, prompt patterns and simple evaluation checklists.

Key Focus: Self-correcting Chain-of-Thought (CoT) with JSON Schema & Pydantic validators.
Stack: JSON Schema, Pydantic v2, Zod contracts.
Goal: Catch malformed JSON shapes early with strict schema validation.
Sizing Math

Inference Optimization & Edge Models

VRAM and KV-cache math, quantization trade-offs and local inference sizing.

Key Focus: FP16/FP8/INT4 weight memory, GQA/MLA KV-cache equations & GPU fit.
References: Public model cards, vLLM and llama.cpp documentation.
// 04. Author

About the Author

Personal engineering notes and open-source browser calculators maintained by Anupam Das:

Anupam Das Author

Software Engineer · Zurich, Switzerland

Built by Anupam Das, a software engineer based in Zurich and Computer Science alumnus of IIT Patna. Full professional bio and portfolio at anupamdas.in. DeepGen is a personal, non-commercial collection of study notes and MIT-licensed browser utilities based strictly on public papers and open documentation.

Independence Disclaimer: DeepGen is a personal, non-commercial notebook by Anupam Das (not a lab, company, or commercial venture). It is not affiliated with, sponsored by, or endorsed by Google, Google DeepMind, or Alphabet Inc. Views and estimates are the author’s own and are derived solely from public sources.
// 05. Engineering Notes

Technical Write-Ups & Formulas

First-principles derivations for GPU memory sizing, constrained JSON decoding, and vector index quantization:

Browse all on-site engineering blueprints →  •  Subscribe via RSS  •  DeepGen on Medium →

// 06. Get In Touch

Connect & Collaborate

Spotted an error in a formula or have a suggestion for an open-source calculator? Send a note:

DeepGen Command Palette

Copied to clipboard!