Skip to content
View cattolatte's full-sized avatar
:shipit:
In the zone. (do_not_disturb = true)
:shipit:
In the zone. (do_not_disturb = true)

Highlights

  • Pro

Block or report cattolatte

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
cattolatte/README.md

Hi, I'm Nischal

I build machine learning infrastructure — training pipelines, evaluation frameworks, and inference systems, from scratch.

ML systems engineer focused on NLP. I write transformer architectures, tokenizers, training loops, and serving layers from PyTorch tensor primitives up, with the engineering that makes ML systems trustworthy: reproducible experiments, benchmarks, configuration-driven workflows, tests, CI, and releases. My research interests sit at the intersection of ML and security — adversarial ML and red-teaming of AI systems.

CS undergraduate at Geethanjali College of Engineering & Technology, India.

LinkedIn · Email · All repositories


🚀 Featured work

Three flagship projects define what I work on: two complementary from-scratch NLP systems and an ML pipeline orchestration engine. Polaris encodes; Zenith generates; InferFlow orchestrates. Polaris and Zenith together cover the modern NLP lifecycle — data, tokenization, models, training, evaluation, fine-tuning, and serving — with every component hand-written and readable end to end. PyTorch supplies only autograd, containers, and optimizers.

Polaris — a production-inspired NLP engineering platform

Status PyPI Python

A complete, from-scratch NLP system for understanding text — transformer encoders and classification — that you can read end to end and run reproducibly. The primary product is the codebase itself: a reference implementation engineered like production software.

raw text ──▶ tokenizer ──▶ collation ──▶ encoder ──▶ training ──▶ evaluation ──▶ FastAPI serving
  • Full lifecycle in one cohesive platform: datasets → tokenization → collation → encoder models → training → evaluation → FastAPI deployment.
  • Reference implementation first: tokenizers, models, and training loops written from scratch on PyTorch tensors — no wrapping of existing frameworks (ADR-0001).
  • Engineered, not just written: configuration-driven workflows, reproducible experiments, architecture decision records, strong testing, and a documented release process.
  • Released on PyPI: pip install polaris-nlp with modular extras ([torch], [datasets], [serving]).

Zenith — from-scratch generative NLP

Release tiny-shakespeare License: MIT

A clean library for decoder-only transformer language models, causal-LM training, and text generation, built on PyTorch tensor primitives.

prompt ──▶ BPE tokenizer ──▶ decoder (RoPE · RMSNorm · SwiGLU) ──▶ KV-cache ──▶ sampling ──▶ streamed text
  • Hand-written modern architecture — Llama-style (RoPE, RMSNorm, SwiGLU, weight-tied embeddings) or GPT-2-style, with an optional fused SDPA attention path.
  • It works, measurably: a 10.7M-parameter from-scratch decoder trained in ~10 min on a MacBook reaches 2.08 bits/char on tiny-shakespeare — matching the nanoGPT baseline (BENCHMARKS.md).
  • Generation engine: greedy / temperature / top-k / nucleus / beam search with KV-cache and streaming, plus greedy-exact speculative decoding (3×+ fewer target forward passes, output identical to greedy).
  • Training & scaling: warmup/cosine scheduling, AMP mixed precision, gradient accumulation, DDP via torchrun, LoRA adapters, MLflow tracking, deterministic mode.
  • Instruction tuning with response-only loss masking turns a base model into a mini chat model (zenith chat --instruct), plus int8 weight-only quantization (~4× smaller inference weights).
  • Serving: FastAPI service with SSE streaming, and a full CLI (zenith train / eval / generate / chat / console). Hydra-configured runs and sweeps.

The two interoperate — zenith.interop.PolarisTokenizer lets a Zenith decoder generate over a Polaris vocabulary — but each stands alone.

InferFlow — the time-aware AI pipeline engine

A declarative orchestration engine that gives ML workflows computational memory: every pipeline step's result is recorded in a time-series database, so pipelines can reason about data drift and model performance over time, not just execute statelessly.

YAML pipeline ──▶ queue (RabbitMQ) ──▶ workers ──▶ time-series memory (InfluxDB) ──▶ temporal meta-analysis
                                         │
                                         └──▶ human review on low confidence
  • Declarative YAML pipelines with multi-step logic, conditional execution, and multi-modal inputs (text, images).
  • Chrono-compute engine: automatic time-series recording (InfluxDB) of every step enables real-time temporal meta-analysis of models and data.
  • Human-in-the-loop: pipelines pause on low-confidence results and request verification through a dedicated review UI.
  • Distributed by design: RabbitMQ message queue, Redis, and containerized workers that scale horizontally.

🔭 Currently

  • Extending Polaris, Zenith, and InferFlow: benchmarks, docs, and roadmap items toward larger trained models and richer pipeline analytics.
  • Studying adversarial ML and LLM red-teaming — how generative systems fail under attack, and how to evaluate that systematically.

🧭 Engineering philosophy

I build from first principles. If I can't implement a system myself — the tokenizer, the attention math, the training loop, the serving layer — I don't consider that I understand it. But a from-scratch implementation isn't finished until it's engineered: reproducible, benchmarked against a known baseline, configuration-driven, tested, and released. Clarity is a feature; the codebase should be readable as a teaching text and runnable as a product.

🔬 Research interests

  • From-scratch reference implementations of modern NLP: how far clarity-first engineering can go before you need framework abstractions.
  • Inference efficiency: speculative decoding, KV-caching, quantization — techniques I've implemented and benchmarked in Zenith.
  • Adversarial ML & AI security: prompt injection, model red-teaming, and exploit detection with ML — the meeting point of my security background and ML work.

🗂️ Selected projects

Project What it is
Image Similarity Search Similarity engine with a custom high-performance C backend for feature extraction and a D3.js visual-clustering frontend.
Movie Sentiment Analyzer Custom-trained transformer exported to ONNX, served from a Java backend — cross-runtime ML deployment end to end.
Advanced Vulnerability Scanner Nmap-based scanner with custom detection modules and severity-classified assessment reports.

🌱 Open source

Both flagship projects are MIT-licensed, released (Polaris on PyPI, Zenith with tagged releases), documented with benchmarks, model cards, and ADRs, and open to issues and contributions. If you're learning how transformers actually work under the hood, they're written to be read — start with Zenith's module overview.

📈 GitHub activity

Contribution graph


Stack: Python · PyTorch · Hugging Face · ONNX · FastAPI · Hydra · MLflow · Docker · C · Java

Break it to understand it. Build it to master it. 🐱

coderstale@gmail.com · linkedin.com/in/satyasainischal

Pinned Loading

  1. zenith-nlp-framework zenith-nlp-framework Public

    Zenith is a clean, from-scratch library for generative NLP, focused on decoder-only transformer language models, causal language modeling, and modern text generation. Built on PyTorch tensor primit…

    Python 2 1

  2. Polaris Polaris Public

    A from-scratch, production-inspired NLP platform built for clarity and learning — covering data, tokenization, models, training, and evaluation.

    Python 1

  3. InferFlow InferFlow Public

    InferFlow is a declarative engine designed to simplify the creation and execution of complex pipelines. Its groundbreaking Chrono-Compute feature introduces the fourth dimension time to your workfl…

    Python 3

  4. hemoconnect-public hemoconnect-public Public

    HemoConnect: An AI-powered peer matching forum for the hemophilia community.

    TypeScript 2 1

  5. ai-med-report-explainer ai-med-report-explainer Public

    Python 2

  6. Jerry-Bot Jerry-Bot Public

    JavaScript 2