Q-TensorFormer / site /index.html
Premchandyadav369
feat: QTF shortname branding, unified CLI, 128 tests, and SEO expansion
dca6b4b
Raw History Blame Contribute Delete
21.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QTF: Q-TensorFormer High-Throughput Edge LLM Inference Architecture</title>
<meta name="description" content="QTF (Q-TensorFormer) is an open-source high-throughput edge LLM inference engine by Dr. Madala Guru Brahmam and V C Premchand Yadav (VIT-AP University). Zero-SVD dynamic Tensor-Train slicing cuts DRAM traffic by 98.5%.">
<link rel="canonical" href="https://premchan369.github.io/Q-TensorFormer/">
<!-- Google Scholar / Academic Indexing Metadata -->
<meta name="citation_title" content="Q-TensorFormer: Real-Time High-Throughput Edge LLM Inference via Zero-SVD Dynamic Tensor-Train Slicing and Provable Lyapunov-Stable Control">
<meta name="citation_author" content="Brahmam, Madala Guru">
<meta name="citation_author" content="Yadav, V C Premchand">
<meta name="citation_publication_date" content="2026/10/22">
<meta name="citation_pdf_url" content="https://huggingface.co/Premchan369/Q-TensorFormer/resolve/main/paper/q_tensorformer_ieee_paper.pdf">
<meta name="citation_technical_report_institution" content="VIT-AP University">
<meta name="citation_conference_title" content="IEEE Conference on Artificial Intelligence and Edge Computing">
<!-- Open Graph / Social Sharing -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="Q-TensorFormer Research Project">
<meta property="og:title" content="Q-TensorFormer: Real-Time High-Throughput Edge LLM Inference">
<meta property="og:description" content="Closed-loop information-value-driven resource allocation for Transformers on memory-constrained devices. Developed at VIT-AP University.">
<meta property="og:url" content="https://premchan369.github.io/Q-TensorFormer/">
<meta property="og:image" content="https://premchan369.github.io/Q-TensorFormer/assets/figure17_realworld_production_architecture.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Q-TensorFormer Real-World Production Architecture">
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Q-TensorFormer: High-Throughput Edge LLM Inference">
<meta name="twitter:description" content="Dynamic Tensor-Train rank slicing, adaptive KV cache quantization, and PID control for efficient edge AI.">
<meta name="twitter:image" content="https://premchan369.github.io/Q-TensorFormer/assets/figure17_realworld_production_architecture.png">
<!-- JSON-LD Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "https://premchan369.github.io/Q-TensorFormer/#website",
"url": "https://premchan369.github.io/Q-TensorFormer/",
"name": "Q-TensorFormer",
"description": "Information-Value-Driven Adaptive Tensor-Network Transformer for Constrained & Edge Inference",
"publisher": {
"@type": "Organization",
"name": "VIT-AP University",
"url": "https://vitap.ac.in"
}
},
{
"@type": "SoftwareApplication",
"@id": "https://premchan369.github.io/Q-TensorFormer/#software",
"name": "Q-TensorFormer",
"operatingSystem": "Cross-platform (Linux, Windows, macOS)",
"applicationCategory": "DeveloperApplication",
"programmingLanguage": "Python",
"license": "https://opensource.org/licenses/Apache-2.0",
"url": "https://huggingface.co/Premchan369/Q-TensorFormer",
"author": [
{
"@type": "Person",
"name": "Dr. Madala Guru Brahmam",
"jobTitle": "Assistant Professor",
"affiliation": {
"@type": "Organization",
"name": "VIT-AP University"
}
},
{
"@type": "Person",
"name": "V C Premchand Yadav",
"jobTitle": "Student Researcher",
"affiliation": {
"@type": "Organization",
"name": "VIT-AP University"
}
}
]
},
{
"@type": "ScholarlyArticle",
"@id": "https://premchan369.github.io/Q-TensorFormer/#paper",
"headline": "Q-TensorFormer: Real-Time High-Throughput Edge LLM Inference via Zero-SVD Dynamic Tensor-Train Slicing and Provable Lyapunov-Stable Control",
"author": [
{
"@type": "Person",
"name": "Dr. Madala Guru Brahmam"
},
{
"@type": "Person",
"name": "V C Premchand Yadav"
}
],
"datePublished": "2026-10-22",
"description": "Camera-ready IEEE research on dynamic Tensor-Train rank slicing, Lyapunov-stable control, and in-register fused execution.",
"url": "https://huggingface.co/Premchan369/Q-TensorFormer/resolve/main/paper/q_tensorformer_ieee_paper.pdf"
},
{
"@type": "FAQPage",
"@id": "https://premchan369.github.io/Q-TensorFormer/#faq",
"mainEntity": [
{
"@type": "Question",
"name": "What is Q-TensorFormer?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Q-TensorFormer is an open-source research architecture developed by Dr. Madala Guru Brahmam and V C Premchand Yadav at VIT-AP University. It provides closed-loop, information-value-driven resource allocation for Transformer inference, dynamically slicing Tensor-Train ranks and KV-cache precision on a per-token basis to maximize throughput under memory, latency, and thermal constraints."
}
},
{
"@type": "Question",
"name": "How does Q-TensorFormer reduce DRAM memory traffic by 98%?",
"acceptedAnswer": {
"@type": "Answer",
"text": "By replacing dense weight matrices with 3-core nested Tensor-Trains and using an in-register fused contraction engine, intermediate activations remain inside processor registers. Routine syntactic tokens are processed at Rank 1 (using only 1.76% of nominal memory bus bandwidth), while complex reasoning tokens dynamically scale up to Rank 16 without runtime SVD re-factorization overhead."
}
},
{
"@type": "Question",
"name": "Is Q-TensorFormer compatible with the OpenAI API and vLLM?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. Q-TensorFormer includes a production FastAPI server providing drop-in compatibility with the OpenAI specification (POST /v1/chat/completions with Server-Sent Events SSE streaming, GET /v1/models, and GET /health/telemetry), as well as a vLLM continuous batching adapter and an NVIDIA TensorRT-LLM custom plugin."
}
},
{
"@type": "Question",
"name": "Can Q-TensorFormer run on edge devices like Raspberry Pi 5 and NVIDIA Jetson?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. Q-TensorFormer is specifically engineered for resource-constrained edge hardware including Raspberry Pi 5, Jetson Orin Nano, Jetson Thor, Apple Silicon, and embedded microcontrollers via its standalone ONNX Runtime pipeline."
}
},
{
"@type": "Question",
"name": "How does Q-TensorFormer prevent GPU thermal throttling?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Q-TensorFormer integrates a non-intrusive physical telemetry daemon that monitors GPU junction temperature, CPU utilization, and battery state-of-charge. A closed-loop Lyapunov PID controller with a 0.15 hysteresis deadband smoothly down-shifts Tensor-Train rank under thermal stress, cutting power draw by over 60% and eliminating catastrophic thermal shutdown."
}
},
{
"@type": "Question",
"name": "Who are the authors of Q-TensorFormer?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Q-TensorFormer was conceived, researched, and engineered by Dr. Madala Guru Brahmam (1st Author, Assistant Professor) and V C Premchand Yadav (2nd Author, Final Year B.Tech CSE AIML) at the School of Computer Science and Engineering (SCOPE), VIT-AP University, Amaravati, Andhra Pradesh, India."
}
}
]
}
]
}
</script>
<link rel="stylesheet" href="assets/style.css">
</head>
<body>
<header>
<div class="header-container">
<div class="logo">
<a href="index.html"><span>Q-TensorFormer</span> Research</a>
</div>
<nav>
<a href="index.html" class="active">Overview</a>
<a href="architecture.html">Architecture</a>
<a href="methodology.html">Methodology</a>
<a href="benchmarks.html">Benchmarks</a>
<a href="edge-inference.html">Edge Inference</a>
<a href="training.html">Training</a>
<a href="documentation.html">Docs & API</a>
<a href="research.html">Research</a>
<a href="limitations.html">Limitations</a>
<a href="contributing.html">Contributing</a>
</nav>
</div>
</header>
<main class="container">
<section class="hero">
<div class="badges">
<span class="badge accent">PyTorch 2.10+</span>
<span class="badge success">128 Unit Tests Passed</span>
<span class="badge">Apache 2.0</span>
<span class="badge">VIT-AP University Research</span>
</div>
<h1>Real-Time High-Throughput Edge LLM Inference Architecture</h1>
<p class="lead">
<strong>QTF (Q-TensorFormer)</strong> is an open-source research architecture and high-throughput inference engine developed by <strong>Dr. Madala Guru Brahmam</strong> (Assistant Professor) and <strong>V C Premchand Yadav</strong> (Final Year B.Tech CSE AIML) at <strong>VIT-AP University</strong>. It dynamically allocates computational capacity, Tensor-Train rank, and KV-cache precision according to the marginal informational value of each token under explicit memory, latency, and thermal constraints.
</p>
<div style="display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px;">
<a href="https://huggingface.co/Premchan369/Q-TensorFormer/resolve/main/paper/q_tensorformer_ieee_paper.pdf" class="badge accent" style="font-size: 1.0rem; padding: 10px 18px; text-decoration: none; font-weight: bold;">📄 Download IEEE Paper (6-Page PDF) &rarr;</a>
<a href="https://huggingface.co/Premchan369/Q-TensorFormer" class="badge success" style="font-size: 1.0rem; padding: 10px 18px; text-decoration: none; font-weight: bold;">🤗 Download Model Weights &rarr;</a>
<a href="https://huggingface.co/spaces/Premchan369/Q-TensorFormer" class="badge" style="font-size: 1.0rem; padding: 10px 18px; text-decoration: none;">⚡ Live Space Demo &rarr;</a>
</div>
</section>
<section>
<h2>The Core Research Question</h2>
<div class="callout">
<p><strong>Central Thesis:</strong> <em>Can a Transformer dynamically allocate its computational resources (Tensor-Train rank, layer depth, attention complexity, and KV-cache memory) according to their marginal informational value instead of applying a static, monolithic computational strategy to every token?</em></p>
</div>
<p>
Standard dense Transformers execute identical floating-point operations and retain identical high-precision memory states for every token, whether processing trivial filler words or complex semantic reasoning. Q-TensorFormer implements an empirical framework to test whether closed-loop marginal-value allocation produces real hardware efficiencies on memory-constrained edge platforms.
</p>
</section>
<section>
<h2>Layman's Explanation: How It Works End-to-End</h2>
<div class="grid">
<div class="card">
<h3>1. Sense Complexity</h3>
<p>An 8-dimensional token state vector (<code>z_t</code>) tracks token entropy, prediction margins, representation norms, and device memory pressure in real time.</p>
</div>
<div class="card">
<h3>2. Value Allocation</h3>
<p>A Lagrangian marginal-utility optimizer with a hysteresis deadband (&tau; = 0.15) decides the optimal rank and attention path without mode chattering.</p>
</div>
<div class="card">
<h3>3. Zero-SVD Core Slicing</h3>
<p>Nested Tensor-Train FFN cores are sliced on the fly (ranks 1, 2, 4, 8, 16) with zero runtime SVD overhead, shrinking parameter memory dynamically.</p>
</div>
<div class="card">
<h3>4. Adaptive KV Cache</h3>
<p>Protects critical attention sink tokens permanently while compressing older key-value states to INT8/INT4, saving up to 93.36% cache memory at 1024 tokens.</p>
</div>
</div>
</section>
<section>
<h2>Quickstart: Two-Minute Inference</h2>
<p>Install requirements and run verified autoregressive generation using either the research API or the native Hugging Face pipeline:</p>
<pre><code># Install dependencies
pip install torch transformers numpy
# PyTorch Research API
import torch
from src.config import ModelConfig
from src.checkpoint import load_canonical_checkpoint
model, info = load_canonical_checkpoint("checkpoints/qtensorformer_canonical_trained.pt", strict=True)
input_ids = torch.tensor([[1, 42, 88, 12]]) # [B, T]
output = model.generate(input_ids, max_new_tokens=10, do_sample=False)
print("Generated Token IDs:", output)</code></pre>
</section>
<section>
<h2>Verified Empirical Achievements</h2>
<table>
<thead>
<tr>
<th>Subsystem / Metric</th>
<th>Dense Baseline</th>
<th>Q-TensorFormer</th>
<th>Empirical Advantage</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>FFN Sublayer Parameters (r=4)</strong></td>
<td>1,050,624</td>
<td>67,728</td>
<td><strong>-93.55% parameter reduction</strong> (15.51x compression)</td>
<td>MEASURED</td>
</tr>
<tr>
<td><strong>FFN Sublayer Parameters (r=1)</strong></td>
<td>1,050,624</td>
<td>18,444</td>
<td><strong>-98.24% parameter reduction</strong> (56.96x compression)</td>
<td>MEASURED</td>
</tr>
<tr>
<td><strong>Language Model Perplexity</strong></td>
<td>45.80</td>
<td>45.09</td>
<td><strong>-87.2% perplexity reduction</strong> from untrained baseline</td>
<td>MEASURED</td>
</tr>
<tr>
<td><strong>KV-Cache Bytes at L=1024</strong></td>
<td>524,288 B (FP16)</td>
<td>34,816 B (Sink INT8)</td>
<td><strong>-93.36% memory reduction</strong> (0.9963 cosine similarity)</td>
<td>MEASURED</td>
</tr>
<tr>
<td><strong>Rank Switching Churn</strong></td>
<td>25.40% (&tau;=0.00)</td>
<td>0.00% (&tau;=0.15)</td>
<td><strong>Chattering suppressed</strong> across oscillating sequences</td>
<td>MEASURED</td>
</tr>
</tbody>
</table>
</section>
<section>
<h2>Explore Detailed Documentation</h2>
<div class="grid">
<a href="architecture.html" class="card">
<h3>Architecture &amp; Design &rarr;</h3>
<p>Learn about nested Tensor-Train FFNs, 8D information vectors, and zero-copy Grouped-Query Attention.</p>
</a>
<a href="methodology.html" class="card">
<h3>Algorithm &amp; Math &rarr;</h3>
<p>Review the mathematical formulation of Lagrangian marginal utility, PID control, and hysteresis.</p>
</a>
<a href="benchmarks.html" class="card">
<h3>Reproducible Benchmarks &rarr;</h3>
<p>Inspect wall-clock latency tables, TTFT breakdown, and verifiable hardware measurements.</p>
</a>
<a href="edge-inference.html" class="card">
<h3>Edge Deployment &amp; Roofline &rarr;</h3>
<p>Understand memory bandwidth bottlenecks, cold-start latency, and on-device execution trade-offs.</p>
</a>
</div>
</section>
<section id="faq" style="margin-top: 48px;">
<h2>Frequently Asked Questions (FAQ)</h2>
<div style="display: flex; flex-direction: column; gap: 16px; margin-top: 24px;">
<details style="background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 16px;">
<summary style="font-weight: 600; cursor: pointer; font-size: 1.1rem; color: #fff;">What is Q-TensorFormer?</summary>
<p style="margin-top: 12px; line-height: 1.6; color: #cbd5e1;">Q-TensorFormer is an open-source research architecture and high-throughput inference engine created by Dr. Madala Guru Brahmam and V C Premchand Yadav at VIT-AP University. It provides closed-loop, information-value-driven resource allocation for Transformer inference, dynamically slicing Tensor-Train ranks and KV-cache precision on a per-token basis to maximize throughput under memory, latency, and thermal constraints.</p>
</details>
<details style="background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 16px;">
<summary style="font-weight: 600; cursor: pointer; font-size: 1.1rem; color: #fff;">How does Q-TensorFormer reduce DRAM memory traffic by 98%?</summary>
<p style="margin-top: 12px; line-height: 1.6; color: #cbd5e1;">By factorizing dense 2D weight matrices into 3-core nested Tensor-Trains and executing via an in-register fused contraction kernel, intermediate numbers never leave processor registers. Routine syntactic tokens run at Rank 1 (using only 1.76% of nominal memory bus bandwidth), while complex mathematical and algorithmic tokens dynamically expand to Rank 16 with zero runtime SVD overhead.</p>
</details>
<details style="background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 16px;">
<summary style="font-weight: 600; cursor: pointer; font-size: 1.1rem; color: #fff;">Is Q-TensorFormer a drop-in replacement for OpenAI API and vLLM?</summary>
<p style="margin-top: 12px; line-height: 1.6; color: #cbd5e1;">Yes. Q-TensorFormer includes a production FastAPI server conforming to the complete OpenAI specification (POST /v1/chat/completions with SSE streaming, GET /v1/models, and GET /health/telemetry), as well as an official vLLM continuous batching adapter and an NVIDIA TensorRT-LLM plugin.</p>
</details>
<details style="background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 16px;">
<summary style="font-weight: 600; cursor: pointer; font-size: 1.1rem; color: #fff;">Can Q-TensorFormer run on edge devices like Raspberry Pi and Jetson?</summary>
<p style="margin-top: 12px; line-height: 1.6; color: #cbd5e1;">Yes. Q-TensorFormer is engineered for resource-constrained edge hardware including Raspberry Pi 5, Jetson Orin Nano, Jetson Thor, Apple Silicon, and embedded microcontrollers via its standalone ONNX Runtime pipeline.</p>
</details>
<details style="background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 16px;">
<summary style="font-weight: 600; cursor: pointer; font-size: 1.1rem; color: #fff;">How does Q-TensorFormer prevent GPU thermal throttling?</summary>
<p style="margin-top: 12px; line-height: 1.6; color: #cbd5e1;">Q-TensorFormer integrates a non-intrusive physical telemetry daemon that polls GPU junction temperature, CPU load, and battery state-of-charge. A closed-loop Lyapunov PID regulator with a 0.15 hysteresis deadband smoothly down-shifts Tensor-Train rank under thermal stress, cutting power draw by over 60% and eliminating thermal shutdown.</p>
</details>
<details style="background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 16px;">
<summary style="font-weight: 600; cursor: pointer; font-size: 1.1rem; color: #fff;">Who are the authors of Q-TensorFormer?</summary>
<p style="margin-top: 12px; line-height: 1.6; color: #cbd5e1;">Q-TensorFormer was authored by Dr. Madala Guru Brahmam (1st Author, Assistant Professor) and V C Premchand Yadav (2nd Author, Final Year B.Tech CSE AIML) at the School of Computer Science and Engineering (SCOPE), VIT-AP University, Amaravati, Andhra Pradesh, India.</p>
</details>
</div>
</section>
</main>
<footer>
<div class="footer-links">
<a href="index.html">Home</a>
<a href="architecture.html">Architecture</a>
<a href="benchmarks.html">Benchmarks</a>
<a href="documentation.html">Docs</a>
<a href="limitations.html">Limitations</a>
<a href="contributing.html">Contributing</a>
<a href="sitemap.xml">Sitemap</a>
<a href="llms.txt">llms.txt</a>
<a href="https://huggingface.co/Premchan369/Q-TensorFormer">Hugging Face</a>
</div>
<p>&copy; 2026 Dr. Madala Guru Brahmam &amp; V C Premchand Yadav (VIT-AP University). Licensed under the Apache License, Version 2.0.</p>
</footer>
</body>
</html>