r/learnmachinelearning • u/OtherwiseCase5539 • 8h ago
Project WebNet v2 Update: RFC 9309 Open-Web Crawler (200 Seeds + SSRF Guards), Locked 16-Doc Benchmark, Byte-Level BPE BPB Lab, Strict-Citation FTS5 RAG + LoRA, and Gemini/Grok Bridges
Hi everyone! I just shipped a major update to WebNet v2 — an open-source, 100% real-telemetry PyTorch continual-learning Transformer and applied AI workbench running locally on CPU with zero simulated metrics.
GitHub Repository: https://github.com/Rishisharma029/live-internet-neural-net
The attached visuals are generated directly from live telemetry (Step 76,497 · ~99.78M tokens seen · 6,306 archived docs):
- Architecture & Applied AI Pipeline Flowchart (
8 curated feeds + 200 seeds -> RFC 9309 & SSRF -> SQLite FTS5 -> InternetNetV2 -> 16-Doc Benchmark + BPE Lab + LoRA/RAG + Gemini/Grok) - Live Training & Generalization Loss Trajectory (
EMA Loss: 1.205,Val Loss: 1.602,Bench Loss: 1.699) - Domain Mastery Breakdown (0–100% Scale) across Science & AI, Encyclopedia, Code & Tech, and Literature
What's New & Implemented
Hardened Open-Web Crawler (
WebNetBot/2.0, 200 Seed URLs):- Expanded to 200 curated public URLs across AI/ML, systems, docs, security, physics/math, biology, philosophy, and journalism + live sitemap & Hacker News discovery.
- Full RFC 9309
robots.txtcompliance,>=12sper-domain rate limiting,429exponential backoff /403pauses, SSRF DNS/IP & redirect re-validation, XXE &.xml.gzgzip-bomb protection, and streaming1.5 MBpage caps.
Locked Unseen Benchmark & Regression Guardrails (
benchmark_eval.py):- Fixed 16 unseen passages (
4per domain) excluded by content hashes from bothWebCorpusand LoRA training. Tracks per-domain loss, BPC, invariant Bits-Per-Byte (BPB), perplexity, accuracy, and automatic regression alerts (Fixed benchmark healthy,50.0%next-char accuracy,2.438 BPB).
- Fixed 16 unseen passages (
Experimental Byte-Level BPE vs. Char Transformer (
bpe_experiment.py):- Parameter-matched
2,048-vocab Byte-Level BPE Transformer (ExperimentalBPENet) compared fairly against the98-charInternetNetV2(96d · 4h · 10L · ctx768,1.12Mparams) using vocabulary-invariant BPB.
- Parameter-matched
Strict-Evidence SQLite FTS5 RAG, Attribution & Source Removal (
archive_db.py,lora_engine.py):- Pure-PyTorch
LoRALinearonSmolLM2-135M-Instruct(nopeftdependency) paired with BM25 + TF-IDF hybrid search over6,306+documents (16.3M+chars). Answers strictly cite URLs, publication dates, licenses, and content hashes—and explicitly abstain when evidence is insufficient. - Added full source removal &
blocked_sourcestombstone APIs (/api/archive/remove) that purge unwanted URLs/domains from both SQLite and live training batches.
- Pure-PyTorch
Google Gemini & xAI Grok Neural Bridges (
gemini_bridge.py,grok_trainer.py):- Native function-calling tools wiring Gemini (
8tools) and Grok directly intoInternetNetV2inference, anomaly scoring, 32-bit lossless arithmetic compression, live crawling, and autonomous weak-domain curriculum boosting.
- Native function-calling tools wiring Gemini (
Real-Time Interpretability Observatory (
http://localhost:8000):- Live WebSocket streaming (
23-column network graph,40attention heads, Logit Lens depth collapse, 2D SVD embedding trajectory, Prompt Lab, and Ghost Editor).
- Live WebSocket streaming (
Feedback, PRs, and local CPU benchmark comparisons are very welcome!