> ## Documentation Index
> Fetch the complete documentation index at: https://foundry.awaaz.de/llms.txt
> Use this file to discover all available pages before exploring further.

# LLM Self-Hosting for Production-Grade Performance

> Self-host an open-source LLM to match Gemini accuracy with sub-500ms latency under load

<Note>
  **Hackathon Date:** April 22, 2026 • 2:00 PM - 7:00 PM IST
</Note>

## What You're Building

Self-host an open-source LLM that can **replace our Gemini API dependency** for CAI use cases — matching response accuracy while delivering low latency under real production load.

Our current Gemini API spend is **2500 USD per month** . Your self-hosted solution must stay within this cost envelope. The team can provision instances up to **\$6/hour**.

***

## The Challenge

Getting a model to answer questions is easy. Getting it to answer **accurately**, **fast**, and **at scale** — on our use cases — is the real challenge.

You'll need to:

1. **Pick and claim a model** — Choose an open-source LLM and claim it on the general channel (first come, first served — see Model Claiming below)
2. **Set up inference** — Deploy it with an optimized serving stack (vLLM, TGI, Ollama, or your own setup)
3. **Match Gemini's accuracy** — Your endpoint will be evaluated via automated evals against the same prompt set
4. **Survive under load** — Handle 100 concurrent requests without dropping any
5. **Stay fast** — Target average latency under 500ms across 10 runs of 100 parallel requests

***

## Model Claiming

<Warning>
  **First claim, first served.** You are free to experiment with any open-source LLM, but each model + token size combination can only be claimed by one person. Once someone claims a specific model with a specific token size, no one else can use that exact combination.

  **Post your claim on the general channel immediately** with the model name and token size (e.g., "Llama 3.1 — 8B", "Mistral v0.3 — 7B", "Qwen 2.5 — 14B"). If your preferred combination is already taken, pick a different model or a different token size.
</Warning>

***

## Use Case for Benchmarking

<CardGroup cols={1}>
  <Card title="Hindi Collection" icon="language">
    Use the Hindi Collection use case — richer transcript data is available for model training and fine-tuning if needed.
  </Card>
</CardGroup>

***

## Judging Criteria

<AccordionGroup>
  <Accordion title="End-to-End Working + Single API call Latency < 1s — 20%" icon="circle-check">
    The self-hosted model is deployed, serves responses correctly via API, and a single API call completes in under 1 second. This is the minimum bar — it works, and it's fast.
  </Accordion>

  <Accordion title="Accuracy of Responses (via Evals) — 30%" icon="bullseye">
    Response quality evaluated via **automated evals** run against your endpoint. Keep your endpoint ready with all required parameters — we will run the eval suite against it. Scored on correctness and completeness vs Gemini. Gold standard test cases can be found [here](https://app.getmaxim.ai/workspace/cmf4y438q00slgbu6vdukrx07/dataset/cmi718idf01u88pyy096mip2y?filters=\&q=) and existing evaluation scoring can be found [here](https://app.getmaxim.ai/show/5362a4a2-7e7b-43c8-9fdd-b4556b0a92eb).
  </Accordion>

  <Accordion title="Handles 100 Parallel Requests — 10%" icon="server">
    System stays up and responds correctly under 100 concurrent requests. No crashes, no dropped requests, no errors.
  </Accordion>

  <Accordion title="Average Latency < 500ms at Load — 30%" icon="gauge-high">
    Run 100 parallel requests and measure average latency. Repeat this **10 times** and report the average latency across all 10 runs. You need to build a harness/dashboard that demonstrates this. Target: average latency under 500ms.
  </Accordion>

  <Accordion title="Bonus: Fine-Tuning with Existing Transcripts — 10%" icon="star">
    Use existing call transcripts (Hindi Collection) for **model fine-tuning or bending**. Engineers who go beyond prompt engineering and actually fine-tune on real production data to improve accuracy and domain fit will score here. Show your training approach, dataset used, and before/after comparison.
  </Accordion>
</AccordionGroup>

<Note>
  Getting it working is the **entry ticket** (20%). The biggest weight goes to **accuracy** (30%) and **latency under load** (30%) — because matching Gemini at scale is the whole point. The **10% bonus** rewards engineers who invest in fine-tuning with real data, which is the path to production.
</Note>

***

## Endpoint Requirements

<Info>
  Your self-hosted model must be accessible via an **HTTP API endpoint**. Make sure:

  * The endpoint accepts the same parameters needed for our eval suite
  * It is stable and accessible at demo time — we will hit it live
  * You have a **load testing harness** ready that shows 100 parallel requests running with latency measurements across 10 runs
</Info>

***

## Rules

1. **Individual work only** — this is a solo competition
2. **Claude Code is allowed and encouraged** — use it aggressively
3. **Any open-source model** — but you must claim your model + token size first (first come, first served)
4. **Any inference framework** — vLLM, TGI, Ollama, llama.cpp, or custom
5. **Budget constraint** — instance cost must not exceed the equivalent of \$2,500/month
6. **Final demo:** Live demo showing single-call latency, load test harness results (10 runs × 100 requests), and endpoint ready for accuracy evals

***

<Card title="🏆 Hackathon Prize" icon="trophy">
  The winner receives a **INR 2000** amazon coupon.
</Card>
