@@ -0,0 +1,7 @@init: Tejas Raj

I fix bugs in infrastructure that millions of people depend on.

20+ merged PRs in external repos8 core systems touched3 years in open sourceNIT Durgapur '27 live api
@@ -12,7 +12,9 @@git log --oneline --graph

The commit log of how I got here.

Each milestone represents a real system broken, inspected, and understood.

e4a901f(2026)vLLM & PyTorch

Hacking the low-level memory bugs that crash AI clusters

Investigating request preemption index misalignment in vLLM's priority scheduler and hunting floating-point division exceptions in PyTorch C++ sparse tensor kernels under ASan. If an inference server dies silently at 3 AM under load, that is where I like to look.

b7218ac(2025)Tejas-DB

Built a distributed key-value store from scratch in C++17

Wrote consistent hashing, gossip node discovery, and quorum replication (N, W, R) with write-ahead logging. Benchmarked at 33,685 req/s with 100 concurrent threads to understand how databases survive network partitions without lying to the client.

904fd21(2025)Canonical

Fixed an inode bug that wiped source files during builds

In Canonical craft-parts, staged symlinks pointing to identical inodes tricked link_or_copy into deleting the source file on collision. Added samefile() check to file_utils.py. One line in Python, zero deleted source trees across Ubuntu builds.

61c390d(2024)Jetpack (10 merged)

10 merged PRs across Gutenberg blocks and REST schemas

Dissected WordPress block editor state transformations, fixed carousel accessibility violations for screen readers, and tightened OpenAPI response schemas for Automattic Jetpack. Realized the web runs on careful edge-case handling.

3d508eb(2024)CP Editor

Automated localization for 3,600+ UI strings

Wrote an LLM-powered extraction and validation pipeline to translate the entire desktop interface of CP Editor into multiple languages, while fixing duplicate search index tokens in Qt.

1804c27(2023)NIT Durgapur

Started B.Tech CSE & reached 4★ on CodeChef (1804 peak)

Spent hundreds of hours solving graph theory, segment trees, and dynamic programming problems against a ticking clock. It taught me how algorithms behave when memory and time limits are measured in single milliseconds.

@@ -48,12 +48,16 @@git log -p --grep="merged"

Merged into other people's repositories.

Real bug fixes in core libraries that millions of developers and ML pipelines build on.

mergedvLLMPR #49206
github.com/vllm-project/vllm/pull/49206 →
Problem

When KV-cache memory pressure triggered request preemption, waiting queue indices shifted without re-indexing, silently skipping incoming priority inference requests.

Solution

Recalculated queue offsets and preserved priority invariants during preemption eviction passes in policy.py.

Outcome

Eliminated silent starvation for prioritized enterprise inference requests under heavy batch load.

@@ -184,8 +184,10 @@ def _preempt_by_priority(self, waiting_queue):
  for idx, req in enumerate(waiting_queue):
- if req.priority < victim.priority:
- self._evict_block(req)
+ if req.priority < victim.priority and req.is_scheduled:
+ self._evict_and_reindex(waiting_queue, idx)
+ break
  return self._rebalance_budget(waiting_queue)
mergedPyTorchPR #190191
github.com/pytorch/pytorch/pull/190191 →
Problem

Converting Block Sparse Row (BSR) tensors with zero-dimension block shapes triggered a hard C++ floating-point exception (division-by-zero) crashing the Python runtime.

Solution

Added explicit zero-dimension dimension validation and guard assertions prior to block stride computation in ATen C++ kernel.

Outcome

Turned fatal segmentation crashes into recoverable PyTorch invalid argument exceptions.

@@ -412,6 +412,9 @@ Tensor sparse_compressed_to_dense(const Tensor& self) {
  auto block_shape = self.sparse_dim_block_shape();
+ TORCH_CHECK(block_shape[0] > 0 && block_shape[1] > 0,
+ "BSR block dimensions must be positive, got ", block_shape);
  const int64_t nnz = self._nnz();
- int64_t stride = nnz / (block_shape[0] * block_shape[1]);
+ int64_t stride = nnz / std::max<int64_t>(1, block_shape[0] * block_shape[1]);
  return dense_out;
mergedPyTorchPR #190067
github.com/pytorch/pytorch/pull/190067 →
Problem

AddressSanitizer caught an out-of-bounds heap buffer read when malformed compressed row pointers pointed past the end of allocated index buffers.

Solution

Enforced strict monotonic bounds checking on compressed index vectors before invoking CPU vector conversion loops.

Outcome

Patched memory safety vulnerability across all CPU sparse-to-dense matrix conversions.

@@ -89,7 +89,8 @@ void sparse_compressed_to_dense_cpu_kernel(...) {
  for (int64_t r = 0; r < num_rows; ++r) {
- int64_t start = row_ptr[r], end = row_ptr[r + 1];
+ int64_t start = row_ptr[r];
+ int64_t end = std::min(row_ptr[r + 1], total_elements);
+ TORCH_CHECK(start <= end, "Corrupted row pointer index array");
  for (int64_t i = start; i < end; ++i) {
mergedPyTorchPR #189142
github.com/pytorch/pytorch/pull/189142 →
Problem

The PyTorch FX graph tracer emitted incorrect tuple return type annotations for multi-tensor ops, breaking downstream static analysis and TorchScript graph export.

Solution

Updated FX schema parser to reconstruct parameterized tuple types from operator registration schemas rather than decaying to generic tuple.

Outcome

Fixed downstream compiler type mismatches for Inductor and AOTAutograd graph captures.

@@ -231,7 +231,7 @@ def get_signature_for_torch_op(op):
  if isinstance(ret_type, torch.TupleType):
- return Tuple
+ element_types = [map_torch_type_to_py(t) for t in ret_type.elements()]
+ return Tuple[tuple(element_types)] if element_types else Tuple
  return map_torch_type_to_py(ret_type)
mergedCanonical craft-partsPR #1628
github.com/canonical/craft-parts/pull/1628 →
Problem

When source and destination paths pointed to the same physical inode through symlinks, catching EEXIST and unlinking destination accidentally wiped the source file.

Solution

Added an os.path.samefile() guard in file_utils.py to detect inode equivalence and exit early before unlinking.

Outcome

Stopped silent source file deletion during complex staged snapcraft builds across Ubuntu.

@@ -44,6 +44,8 @@ def link_or_copy(source: Path, destination: Path) -> None:
  try:
+ if destination.exists() and os.path.samefile(source, destination):
+ return # Source and destination share inode; do not unlink.
  os.link(source, destination)
- except FileExistsError:
- destination.unlink()
+ except FileExistsError:
+ if not os.path.samefile(source, destination): destination.unlink()
mergedCP EditorPR #1501
github.com/cpeditor/cpeditor/pull/1501 →
Problem

Thousands of competitive programming editor UI strings lacked internationalization, while concurrent search re-indexing caused duplicate candidate lists.

Solution

Engineered an automated validation pipeline to translate and verify 3,600+ UI strings, and deduplicated Qt search indexing passes.

Outcome

Delivered full localization support and removed duplicate search stutter for competitive programmers worldwide.

@@ -120,6 +120,7 @@ void SearchIndex::addToken(const QString &token, int line) {
  if (token.trimmed().isEmpty()) return;
- m_tokens.append({token, line});
+ if (!m_tokenSet.contains(token)) {
+ m_tokenSet.insert(token);
+ m_tokens.append({token, line});
+ }
@@ -102,6 +102,8 @@git branch --list --sort=-committerdate

Maintained & created.

Storage engines, DAG workflow systems, and distributed backends built from first principles.

Tejas-DB

Distributed Key-Value Storage Engine in C++17
activity
commit 8a2f1b4: tune quorum consensus write barrier

Decentralized, peer-to-peer distributed key-value storage engine built from scratch in modern C++17. Implements Consistent Hashing on a virtual ring for balanced node partitioning, a Gossip Protocol for autonomous cluster membership discovery, tunable Quorum Replication (N, W, R) for configurable CAP tradeoffs, and a Write-Ahead Log (WAL) engine for crash recovery.

Throughput33,685 req/s
P99 Latency~2.97 ms
Concurrency100 worker threads
C++17Gossip ProtocolConsistent HashingQuorum ConsensusWAL Enginestd::shared_mutex

DealLens

Deterministic 7-Step Financial RAG & Due-Diligence Engine
activity
commit d43e09a: enforce CitationVerifier claim bounds

Production-grade asynchronous AI backend for corporate investment due diligence and 10-K SEC filings analysis. Replaced brittle autonomous agent loops with an explicit deterministic 7-step DAG state machine. Built on PostgreSQL 16 with pgvector hybrid search combining dense Cosine Distance embeddings and sparse tsvector keyword search via Reciprocal Rank Fusion (RRF). Features CitationVerifier guardrails for zero-hallucination source provenance.

Architecture7-step DAG
SearchDense + Sparse RRF
Provenance100% cited source audit
Python 3.11FastAPIPostgreSQL 16 / pgvectorHybrid RAG (RRF)Celery 5 / Redis 7DAG State Machine

AI Career Intelligence Platform

Real-Time Resume Parsing & Match Inference Service
activity
commit 2f901cb: optimize TF-IDF cosine vector cache

Decoupled asynchronous platform processing unstructured technical candidate resumes against live job listings. Employs a memory-optimized semantic matching engine with TF-IDF tokenization and Cosine Similarity to calculate sub-millisecond match scores, backed by Celery task workers with active model fallback loops.

Match Latency<15 ms
Queue WorkerAsync Celery
FallbackZero-downtime model swap
PythonFastAPIReactPostgreSQLCelery / Redisscikit-learn TF-IDFLangChain
@@ -188,8 +188,14 @@git blame --line-porcelain me.md

git blame me.

Every engineering belief I hold is traced directly to the production bug or pull request that taught it to me.

49206ea (Tejas)
vllm/core/policy.py:184
2026-03-12

If an error happens silently without an exception, someone will spend four days debugging the wrong subsystem.

→ Learned from vLLM #49206: priority requests were skipped without emitting a single log line.[source]
190191c (Tejas)
aten/src/ATen/native/SparseTensor.cpp:412
2026-02-28

I would rather inspect an AddressSanitizer stack trace than sit in an alignment meeting about architectural visions.

→ Learned from PyTorch #190191: a zero in a tensor dimension caused a hard C++ division-by-zero crash in production.[source]
16280ab (Tejas)
craft_parts/utils/file_utils.py:44
2025-11-19

Never assume two file paths point to two different files until you have checked the physical inode.

→ Learned from Canonical craft-parts #1628: catching EEXIST and unlinking destination deleted the source file.[source]
8a2f1b4 (Tejas)
tejas_db/consensus/quorum.cpp:92
2025-08-04

Distributed systems do not fail gracefully on their own; you have to induce chaos on purpose to see where the lies live.

→ Learned while benchmarking Tejas-DB: partition tests revealed subtle write-acknowledgement discrepancies.[source]
50818dd (Tejas)
jetpack/blocks/map/block.json:14
2024-10-15

Writing software used by millions means your sloppy edge case is someone else's broken workflow.

→ Learned across 10 merged PRs in Automattic Jetpack: empty HTML tags and missing ARIA labels break real assistive tools.[source]
1804f02 (Tejas)
codechef/tejas_2341:rating
2023-09-01

Competitive programming gave me an allergic reaction to O(N²) loops when O(N log N) is sitting right there.

→ Learned across hundreds of CodeChef rounds reaching 4★ (peak rating 1804).[source]
d43e09a (Tejas)
deallens/rag/verifier.py:58
2025-04-18

An AI system that cannot cite the exact paragraph it learned a fact from should not be trusted with numbers.

→ Learned while engineering DealLens: deterministic DAGs beat black-box agent loops for audited financial filing analysis.[source]
1501bee (Tejas)
cpeditor/i18n/pipeline.py:12
2024-06-22

The best open source contribution is the one that removes friction for strangers who will never know your name.

→ Learned from CP Editor #1501: automated translation pipeline for 3,600+ UI strings across global developers.[source]
@@ -240,6 +240,8 @@gh issue create --repo Tejas-Raj01/contact

Open an issue on me.

Whether you are designing a high-throughput storage engine, debugging an inference framework, or looking for someone who actually reads the compiler errors.

Direct contact:

Email: rajtejas.xyz@gmail.com

GitHub: @Tejas-Raj01

LinkedIn: in/tejas-raj-09aa4a236

Swarm flock mode active — cursors follow your pointer below.
New issue in Tejas-Raj01/portfolioissue #1
“You scrolled past 20 pull requests, 3 storage layers, and thousands of lines of C++. If you read this far, we should probably build something together.”