Skip to content
View Zephyr4772's full-sized avatar
💭
Peace in our time
💭
Peace in our time

Block or report Zephyr4772

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.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. 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
Zephyr4772/README.md

Sinhal Joshi

I build and evaluate LLM agent systems — retrieval pipelines, agent tooling, and the evals that tell you whether any of it actually works.

Most of what I publish falls into one of two buckets: systems that retrieve and reason over a real corpus, and harnesses that measure where a model fails. The second is the part I find more interesting, and it's where my strongest work is.


Open-source contributions

18 merged PRs in Ultralytics, lmms-eval, evalscope, kornia, doctr, jsonargparse and jc, mostly finding evaluation and inference bugs that fail silently.

  • evalscope #2235: added Global-MMLU and Global-MMLU-Lite (Cohere Labs' MMLU in 42 languages, plus the 23-language human-translated set).
    • 5-shot with each question's examples from its own subject, and culturally sensitive vs culturally agnostic accuracy in one run, the paper's central comparison.
    • Validated all 598,963 questions and found four data quirks, each handled and tested: 39 options lost in translation, a Burmese row with no question, Hungarian subject names, and Welsh without a dev split.
  • evalscope #2220: added IndicGenBench FLORES-IN and CrossSum-IN (Google, ACL 2024): translation both ways between English and 29 Indian languages, and cross-lingual summarization.
    • Corpus chrF per language, macro-averaged per direction, matching SacreBLEU exactly.
    • Reproduced the paper with BLOOMZ-7B on the full test sets (en→hi 67.6 vs 65.2, hi→en 60.7 vs 57.3).
  • evalscope #2193: added the MMLU-Indic benchmark (Sarvam AI's MMLU in 10 Indian languages).
    • 21 configs: Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Odia, Punjabi, Tamil and Telugu in native script and romanized, plus English. 293,179 questions, all loaded and checked against the real dataset.
    • Few-shot on the test-only romanized configs raises a clear error instead of assuming a split exists, and the docs (English and Chinese) explain Sarvam's "Indic Average".
  • evalscope #2085: added the BBEH (BIG-Bench Extra Hard) benchmark.
    • All 23 tasks, with DeepMind's official answer matching ported as-is.
    • BBEH Mini, and the paper's headline harmonic-mean score. The formula reproduces the reported number for all 13 models in the paper.
    • On a real model run, all 460 BBEH Mini answers scored exactly as with DeepMind's unmodified scorer.
  • kornia #6816: made AugmentationSequential 22–37% faster on the GPU for common image pipelines.
    • The container built every child's transformation matrix on each call, even when nothing read it. It now builds them only when .transform_matrix is read.
    • Outputs, matrices, boxes, keypoints and masks stay bitwise identical. The speed-up is the maintainer's own measurement on an RTX 4090, at batch 16 to 64.
  • kornia #6899: made crop_by_indices crop the same under torch.export, ONNX and torch.compile as in eager mode.
    • Graph capture resampled any box that wasn't exactly the output size with align_corners=True, up to 0.98 off the eager crop. It now uses the same gather as torch.compile.
    • Checked on torch 2.5 through 2.15: the ONNX difference went from 0.25/0.23/0.99 to 1e-7/0/0 (bilinear/bicubic/nearest).
  • doctr #2232: restored 8.9 and 12.0 points of word accuracy to the MASTER and SAR text recognizers.
    • Since May, each had lost one ReLU from its backbone, because a default activation module was shared between layers. The bug shipped in the v1.1.0 release.
    • Found in real use (MASTER garbled an invoice), bisected to the commit that introduced it, and measured on IIIT5K.
  • evalscope #2209: local-model evals with temperature: 0 crashed on every sample for Qwen and Llama instruct models; temperature 0 now means greedy decoding.
  • evalscope #2084: local-model evals failed on every sample once transformers 5.23 started requiring chat messages as plain dicts. Caught on the day of that release.
  • ultralytics #27175: with CUDA 12 PyTorch, auto-install pulled a CUDA 13 onnxruntime-gpu, so every ONNX predict, val and benchmark silently ran on the CPU. Reproduced on an RTX 4060.
  • ultralytics #26624: TensorRT 11 export let the nvidia-modelopt auto-install replace CUDA PyTorch with a CPU-only wheel. The fix pins the installed torch through the existing constrain= mechanism. Reported in #26623.
  • lmms-eval, 5 merged:
    • #1667: checked every task config against the Hugging Face Hub and fixed 18 tasks pointing at configs or splits that don't exist.
    • #1671: chat models were shown every image twice on STARE, MMT, Geometry3K, MathCanvas and PhysBench.
    • #1668: HF chat models failed every request under transformers 5.
    • #1666: the generic HF chat model loaded an Auto class with no generate().
    • #1670: six vision models crashed on a single GPU.
  • jsonargparse #1035: config files were saved and read with the locale encoding, so on Windows save() crashed on non-ASCII values and UTF-8 configs were misread.
  • jc #918: on Windows, jc --kv < file printed {}. The os.system('') call that turns on terminal colors started a cmd.exe that inherited jc's input and read a redirected file to the end. Reported in #917.

In review:

  • Numbers in Indian-language AI (gujnorm): fixes from testing how Sarvam's TTS, AI4Bharat's tools and IndicTrans2 handle written Gujarati and Hindi numbers.
  • kornia #6953: kornia 0.9.2 benchmark results on a Kaggle T4 (24 files, CPU and CUDA, eager and compiled), with follow-ups from its review:
    • #6959: every benchmark cell is now timed at least three times, so slow ops no longer publish one sample with a spread of 0 (the approach the maintainer chose in #6956).
    • #6954: the docs digest called kornia-rs timings Kornia's slowest op. #6955: results record the SciPy and torchmorph versions.
  • ms-swift #10591: SmolVLM and SmolVLM2 support, and a fix to the Idefics3 template so its encodings match the Hugging Face processor token for token.
  • Data tools on Windows: bugs found by running the tools on Windows, where their CI didn't reach.
    • csvkit #1395: csvkit couldn't read its own output (csvcut a.csv | csvsort failed on "é"), and --add-bom wrote a UTF-8 BOM before cp1252 text.
    • datacompy #619 and markdown-it-py #486: redirecting the report or HTML to a file crashed on characters outside cp1252.
    • jupytext #1719: --paired-paths always exited with 1, so editor extensions couldn't tell success from failure.
    • jello #78: on Windows, piped JSON was read and written as cp1252, so non-ASCII text crashed or was garbled.

Selected work

laya-zeroshot-agent-guard-eval — can a small model act as an agent step-guard?

61 hand-written agent transcripts × 4 decisions = 244 judgments across 3 checkpoints.

What it found:

Failure mode Result
Believes the agent's "done" over tool output showing failures 0 / 6
Never escalates destructive commands (DELETE FROM users; → continue) 0 / 8
Continue/stop score is inverted — flipping it would score better AUROC 0.32

Reported with bootstrapped confidence intervals and a majority-class baseline that beats all three checkpoints. Follow-ups:

  • Truncation: a probe of the laya package's list-vs-dict truncation, prompted by a community discussion.
  • Julia-1: a head-to-head with SupersonicLabs/Julia-1, which never chose to escalate once in 61 transcripts.

The scenarios are an open benchmark: agent-step-guard-bench

python · transformers · evaluation


indian-sc-outcome-bench — reasoning or recall on Indian Supreme Court judgments?

380 judgments with cross-checked labels: predict allowed vs dismissed from the facts and arguments. It has matched recent (2023–24) and old (1995–2005) halves plus a name-only recall probe, to separate reasoning from memorisation.

  • Five open 7–8B models are at chance: 49–55% balanced accuracy.
  • No memorisation is visible.
  • Mistral-7B declines to answer about post-cutoff cases from the date alone: 160 of 190 recent cases, 0 of 190 old ones.

Run on Kaggle 2× T4 with vLLM. Building it also surfaced and documented a 4.5% metadata/judgment-text mismatch in the source dataset.

vllm · kaggle · evaluation · legal-nlp


yolo26-laptop-benchmark — YOLO26 vs YOLO11 across 8 runtimes

8 runtimes (PyTorch, ONNX Runtime, OpenVINO FP32/INT8, CUDA FP32/FP16, TensorRT FP32/FP16), full COCO val2017 accuracy, held-out INT8 calibration, and interleaved timing.

  • Speed is a tie, and YOLO26 is +0.6–0.8 mAP more accurate.
  • The bigger finding: Windows' Best power efficiency mode moves Python processes onto slower cores a few seconds after start-up, which made every runtime 2–8× slower. It comes with a 10-second repro script.
  • TensorRT 11 FP16 engines are built directly, as strongly typed networks, without the Ultralytics exporter.

onnxruntime · openvino · tensorrt · benchmarking


Lex.ai — RAG over 41,839 Indian Supreme Court judgments

Local ChromaDB index, nomic-embed-text embeddings via Ollama, streaming analysis from Gemini 2.5-flash with automatic fallback to a local model. Retrieval stays on-device — only retrieved passages reach the LLM. Every claim renders as a traceable case card.

The judgment corpus is published as an open dataset: Indian_Supreme_Court_Judgments

fastapi · chromadb · ollama · react


Dr.Data — can this dataset support this use case?

A pre-training audit for tabular data. You give it a CSV and a use case (target, goal, time and entity columns, columns not known at prediction time). It runs ~200 controlled experiments and tells you whether training is worth it, then how to train.

  • Label-shuffle test: a retail return-prediction target scored ROC-AUC 0.48 against 0.47–0.53 on shuffled labels. There was no learnable signal, so the verdict was "don't train, collect new information".
  • Exact-formula leak search: found Profit = Sales − Cost in 99.4% of rows and flagged the 106 rows that break it as data errors.
  • Validation realism: the same model scored R² 0.87 on a random split and 0.75 on a past-to-future split.
  • Ground-truth check: on a deliberately sabotaged copy of a clean dataset (score 97 → 60), it recovered every planted defect, estimating 6.5% label noise against ~6% planted.

It then recommends a model (6-family bake-off with the one-standard-error rule), a decision threshold, loss curves to expect, a training-time estimate and scikit-learn starter code.

scikit-learn · fastapi · data-quality · evaluation


factory-sim — discrete-event pipeline simulator in C++20

Design a production line, service desk or software pipeline from sources, machines, conveyors, batchers, quality gates and sinks, then run it and watch buffers fill and machines starve, block and break down. It finds the bottleneck and measures which fix gives the most throughput.

  • Engine: min-heap event queue, integer-microsecond clock, bounded buffers with backpressure, MTBF/MTTR failures, deadlock detection, bit-reproducible runs.
  • Factory Studio: a browser drag-and-drop editor with animated replay, what-if analysis and 20-seed confidence intervals.
  • Audit report: a 0–100 health score with graded findings, as a multi-page PDF.

c++20 · cmake · simulation


Writing

More at zephyr4772.github.io.


Published datasets

  • Indian_Supreme_Court_Judgments — 41,839 judgments converted from raw court PDFs to machine-readable text, with a measured known-issues section
  • indian-sc-outcome-bench — 380 judgments with cross-checked outcome labels, split recent vs old, with results for five open models
  • agent-step-guard-bench — 61 coding-agent transcripts for testing step-level guard models, with baseline predictions
  • indian-pharma-dataset — 120,000+ Indian drug records: pricing, salt composition, manufacturer, supplier, interactions

Currently

Working on Devanagari text rendering in diffusion models — training an SD1.5 LoRA to generate legible Hindi script, which turns out to be hard for reasons that are specific and interesting: CLIP's tokenizer has no Devanagari coverage, and the VAE's 8× downsampling puts a hard floor on how small a legible glyph can be.


Reach me

Email · LinkedIn · Hugging Face · Blog

Pinned Loading

  1. Zephyr4772 Zephyr4772 Public

    Profile README

    JavaScript

  2. laya-zeroshot-agent-guard-eval laya-zeroshot-agent-guard-eval Public

    Zero-shot eval of a small model as an agent step-guard: believes "done" over failing tests, never escalates destructive commands, and scores continue/stop inverted (AUROC 0.32)

    Python 1

  3. yolo26-laptop-benchmark yolo26-laptop-benchmark Public

    Python 1

  4. indian-sc-outcome-bench indian-sc-outcome-bench Public

    Python 1

  5. Dr.Data Dr.Data Public

    Pre-training dataset audit: tells you if your data can support your use case, then plans the model, validation and training.

    Python 1

  6. factory-sim factory-sim Public

    Discrete-event pipeline simulator in C++20 with a visual editor (Factory Studio) and audit/health PDF reports

    C++ 1