r/learnmachinelearning • • 4h 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):

  1. 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)
  2. Live Training & Generalization Loss Trajectory (EMA Loss: 1.205, Val Loss: 1.602, Bench Loss: 1.699)
  3. 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.txt compliance, >=12s per-domain rate limiting, 429 exponential backoff / 403 pauses, SSRF DNS/IP & redirect re-validation, XXE & .xml.gz gzip-bomb protection, and streaming 1.5 MB page caps.
  • Locked Unseen Benchmark & Regression Guardrails (benchmark_eval.py):

    • Fixed 16 unseen passages (4 per domain) excluded by content hashes from both WebCorpus and 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).
  • Experimental Byte-Level BPE vs. Char Transformer (bpe_experiment.py):

    • Parameter-matched 2,048-vocab Byte-Level BPE Transformer (ExperimentalBPENet) compared fairly against the 98-char InternetNetV2 (96d · 4h · 10L · ctx768, 1.12M params) using vocabulary-invariant BPB.
  • Strict-Evidence SQLite FTS5 RAG, Attribution & Source Removal (archive_db.py, lora_engine.py):

    • Pure-PyTorch LoRALinear on SmolLM2-135M-Instruct (no peft dependency) paired with BM25 + TF-IDF hybrid search over 6,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_sources tombstone APIs (/api/archive/remove) that purge unwanted URLs/domains from both SQLite and live training batches.
  • Google Gemini & xAI Grok Neural Bridges (gemini_bridge.py, grok_trainer.py):

    • Native function-calling tools wiring Gemini (8 tools) and Grok directly into InternetNetV2 inference, anomaly scoring, 32-bit lossless arithmetic compression, live crawling, and autonomous weak-domain curriculum boosting.
  • Real-Time Interpretability Observatory (http://localhost:8000):

    • Live WebSocket streaming (23-column network graph, 40 attention heads, Logit Lens depth collapse, 2D SVD embedding trajectory, Prompt Lab, and Ghost Editor).

Feedback, PRs, and local CPU benchmark comparisons are very welcome!

0 Upvotes

0 comments sorted by