Technical Research & Engineering

GLOBAL INTENT COMPANY

Interactive technical environment for machine learning, scientific instrumentation, computational systems, experiments, and project evidence.

Developed independently by founder and researcher Cory Tortorici. Source code, controlled experiments, null results, architectural iterations, and public research logs are made inspectable across all project nodes.

Source Repositories
Laboratory Chronology

LATEST FROM THE LAB

Recent empirical findings, architectural iterations, and null results surfaced directly from active research logs.

Active laboratory research log entries with timestamped records are available in the full research log.

Interactive Spatial Knowledge Graph

EXPLORE THE RESEARCH

Navigate the connected network of research projects, architectural pipelines, and domain clusters in real-time 3D.

Focused on BNLM • Orbiting sub-nodes active
Domains:
SPATIAL FOCUS:BNLM•Machine Learning
Machine LearningKind: researchClient-Side Language Model & In-Browser Training Engine[BNLM-BROWSER-TRANSFORMER]

A small decoder-only Transformer initialized, trained, and executed for inference entirely client-side inside the browser. Written in native JavaScript ES modules and WebGPU WGSL compute shaders with CPU fallback, featuring a custom reverse-mode autograd tensor engine, BPE tokenizer, Adam/AdamW optimizers, and non-blocking Web Worker execution with zero server dependencies, Python runtimes, or build steps.

Core Research Question:"What architecture, systems design, and compute-dispatch patterns allow a Transformer language model to be trained from random initialization entirely inside a single browser tab under client-side memory and compute constraints?"

Structural Overview

BNLM implements a complete deep learning training and inference pipeline running directly in the browser runtime. The tensor library provides reverse-mode automatic differentiation, matrix operations are accelerated via a custom WGSL compute shader on WebGPU with CPU fallback, and asynchronous Web Workers prevent UI thread blocking during training passes.

Canonical Source Artifact

GitHub Repository
Primary Source CodePublic
GI-Company /BNLM

Canonical public source repository: Decoder-only Transformer trained in-browser via JavaScript and WebGPU compute shaders.

Canonical GI-Company Source

Design Invariants & Principles

[1]Zero Server Dependency: Entire training loop, gradient backprop, and forward inference execute in the client tab without Python, servers, or WASM toolchains.
[2]Hardware-Adaptive Compute: Uses WebGPU WGSL compute shaders when available, falling back gracefully to pure CPU execution.
[3]Non-Blocking Execution: Long-running gradient steps run in dedicated Web Workers to protect browser responsiveness.

System Components

Tensor & Autograd Engine

Custom tensor library supporting dynamic computational graph construction and reverse-mode automatic differentiation (src/tensor.js).

WebGPU WGSL Matmul Shader

Dedicated WebGPU compute shader dispatching tiled 2D matrix multiplications on GPU hardware with automatic CPU fallback (src/webgpu.js).

BPE Tokenizer & Vocab Trainer

Client-side Byte-Pair Encoding tokenizer supporting vocabulary training and byte-level subword segmentation (src/bpe_tokenizer.js).

Dataset Sampler & Context Guard

Samples training windows from TinyStories-formatted text (<|endoftext|>) without cross-story context bleeding (src/dataset.js).

Web Worker Training Pool

Offloads gradient accumulation and parameter optimization to background threads, maintaining responsive 60 FPS UI rendering (src/worker_train.js).

Optimizer Suite

Implements Adam and AdamW optimizers with decoupled weight decay, learning rate schedules, and gradient clipping (src/optim.js).

Technology Stack

JavaScript (ES Modules)WebGPU (WGSL Compute Shaders)Web Workers (Background Autograd)Byte-Pair Encoding (BPE)HTML5 / Web APIs

Technical Decisions

Native ES modules (<script type="module">) used directly to eliminate build step overhead and enable transparent client inspection.
Decoder-only Transformer architecture with causal attention masking tailored for single-tab client constraints.
Document boundary enforcement ensuring training windows never blend unrelated sample texts.
Technical Research Explorer | Global Intent Company