Zero-Division & Real 4-Bit Packing
Guarded scale computation with np.maximum((w_max - w_min) / (2**b - 1), 1e-8) for constant tensors and implemented real nibble bit-packing (pack_int4/unpack_int4) instead of float-only simulation.
World models without a game engine, pure NumPy INT4/GPTQ quantization, LoRA fine-tuning on Qwen3-0.6B, Log-Q debiased Two-Tower RecSys, hybrid FAISS/BM25 RAG, and coding agents: all trained, benchmarked, and verified locally with 151/151 pytest PASS.
Select any system below to inspect its exact verified metrics, engineering stack, visual proof, and direct GitHub directory. Use Left/Right arrow keys, Home, or End to navigate tabs.
A 1.58M-parameter Action-Conditioned U-Net trained on 140k random frames plus 30k unrolled episodes with 8-step DAgger rollout fine-tuning. During Neural Play, the FastAPI server never imports pong_env: the neural network hallucinates ball physics and paddle motion directly in pixel space.
cd 05_neural_pong_world_model && uvicorn src.play_web:app --port 8005
Group-wise (g=64) asymmetric and symmetric INT8/INT4 quantization written from scratch in pure NumPy with real 2x INT4 per uint8 bit-packing, plus Hessian-compensated GPTQ-lite error redistribution and cross-project quantization of the Banking77 LoRA model.
cd 04_quantize_your_own_llm && pytest tests
Supervised LoRA fine-tuning (rank r=8, updating only 0.192% of parameters) turning a 0.6B base model that scores 0.00% zero-shot on 77 banking intents into a high-accuracy domain classifier inside 1.3 GB VRAM.
cd 02_tiny_model_lora_banking77 && python src/infer.py --text "My card was swallowed by the ATM"
Dual-encoder candidate retrieval trained with PyTorch CUDA FP16 across 2,000 users, 5,000 items, and 230,000 Zipfian interactions. Adding Log-Q sampling correction directly breaks viral head dominance while multiplying retrieval quality.
cd 01_instagram_two_tower && pytest tests
Multi-format local document ingestion (.pdf, .md, .txt) combining dense cosine retrieval via FAISS IndexFlatIP with sparse BM25 fused through Reciprocal Rank Fusion (RRF), strict inline [source#chunk] citations, and out-of-scope refusal.
cd 06_personal_rag_assistant && python -m rag.cli serve --port 8006
Clean state-transition agent loop with 4 sandboxed tools (list/read/edit/run_tests), strict path-jail confinement preventing directory escape, diff inspection, and structured JSONL execution traces.
Pluggable search architecture (Tavily, Wikipedia, DuckDuckGo, and deterministic offline fixtures) feeding an HTML cleaner, deduplicator, claim extractor, cited Markdown synthesizer, and SQLite TTL cache.
Production-structured async Discord bot split into general, automation, and moderation Cogs with Open-Meteo weather and GitHub embeds, persistent SQLite WAL reminder scheduling, per-user cooldown guards, and mock-gateway async tests.
Corrects the classic broken dual-counter slide implementation into the true shared-sequence 0 -> 21 state machine, paired with a modulo-4 optimal policy formally verified against exhaustive minimax across all 21 game states.
Lightweight CrewAI-style Agent/Task/Crew/kickoff orchestration supporting both sequential and hierarchical execution modes, typed handoff schemas, and a CriticVerifier quality-gate revision loop.
Every number below is extracted verbatim from local JSON benchmark reports in the repository. Scroll horizontally with keyboard focus or touch on compact screens.
| Project | Core Stack | Verified Metric Proof | Pytest |
|---|---|---|---|
| 01 Two-Tower RecSys | PyTorch CUDA FP16 | 2k x 5k (230k interactions): 4.23x Recall@10 (0.0841), 5.44x NDCG@10 (0.0865), -51.5% Top-5% viral bias via Log-Q; 0.105 ms CPU p50 | 17/17 PASS |
| 02 Qwen3-0.6B LoRA | Transformers + PEFT | Banking77 (77 intents, r=8, 0.192% params, 1,305 MiB VRAM): 84.59% full 3,076 test Exact-Match & Macro-F1, 89.34% Top-3 (85.97% stratified vs 0.00% Base) | 15/15 PASS |
| 03 Coding Agent Harness | Pure Python + Sandbox | 4 sandboxed tools + path-jail + JSONL trace: 3/3 real repo bugs solved (checkout_cart, rate_limiter, csv_parser) | 17/17 PASS |
| 04 Pure NumPy Quantizer | NumPy + Qwen3-0.6B | g=64 + real 4-bit nibble packing: WikiText-2 PPL FP16 34.36 -> INT8 34.47 (+0.30%, 1.88x) -> INT4 Sym 43.59 (3.77x); GPTQ-lite -67.70% Layer-10 L2 err; LoRA INT4 (236 MiB linear) 76.10% Exact-Match / 84.16% Top-3 | 16/16 PASS |
| 05 Neural Pong World Model | PyTorch FP16 + FastAPI | 1.58M U-Net (140k+30k frames + 8-step DAgger, 0 pong_env imports): 101.2 FPS (26.6 MiB VRAM), 0.9401 Dynamic IoU, 0.286 px ball err, 100.0% (300/300) counterfactual paddle order, 60-step right paddle err 0.20 px | 17/17 PASS |
| 06 Personal RAG Assistant | FAISS + BM25 + RRF | IndexFlatIP + BM25 + RRF + inline [source#chunk] citations + OOS refusal: Recall@3 = 1.00, MRR = 1.00, Refusal = 1.00 | 15/15 PASS |
| 07 AI Research Agent | Python + BS4 + SQLite | Pluggable search + HTML clean dedup + cited Markdown brief + SQLite TTL cache | 14/14 PASS |
| 08 Modular Discord Bot | discord.py + httpx | Modular Cogs (general, automation, moderation), Open-Meteo & GitHub embeds, SQLite WAL reminders, Dockerfile | 14/14 PASS |
| 09 Twenty-One Optimal AI | Pure Python Minimax | 21/21 exhaustive minimax states verified; 100.0% (1,000/1,000) win rate going second vs random/greedy/mixed | 14/14 PASS |
| 10 Multi-Agent System | Pure Python Crew | Sequential + hierarchical orchestration with Researcher -> Analyst -> Writer -> Critic revision loop (0.70 -> 1.00) | 12/12 PASS |
Direct outputs generated by the local training and evaluation pipelines on the GTX 1650 Ti 4 GB testbed.
101.2 FPS neural frame generation with 26.6 MiB VRAM and 100.0% (300/300) counterfactual action ordering.
64 FP16 attention weights packed into 36 bytes (2x INT4 per uint8 nibble) with zero external quantization libraries.
INT8 stays within +0.30% PPL at 1.88x compression; GPTQ-lite trims Layer-10 L2 error by -67.70%.
Training 0.192% parameters lifts Banking77 accuracy from 0.00% zero-shot to 84.59% on the full 3,076-sample test split.
4.23x Recall@10, 5.44x NDCG@10, and -51.5% Top-5% viral head bias reduction at 0.105 ms CPU p50.
0.9401 1-step Dynamic IoU, 0.286 px ball error, and 0.20 px right-paddle drift after 60 autoregressive steps.
Moving from slide pseudocode to verified local execution uncovered three subtle failure modes that were fixed and locked with regression tests.
Guarded scale computation with np.maximum((w_max - w_min) / (2**b - 1), 1e-8) for constant tensors and implemented real nibble bit-packing (pack_int4/unpack_int4) instead of float-only simulation.
Removed hard sigmoid thresholding before BCE loss, switched to raw-logit BCEWithLogitsLoss + Soft Dice + GameNGen noise + 8-step DAgger, and added a TU117 cuDNN FP16 NaN bypass for GTX 1650 Ti.
Replaced broken independent counters with the genuine shared-sequence state machine and proved modulo-4 AI optimality exhaustively across all 21/21 game states.