Play as participants settle in · no need to introduce it · let it speak
G. Narayanamma Institute of Technology & Science (For Women)
From Foundation Models to Real-World AI Applications
Sunil C
Technology Operations
Billtrust
Session 1 — Morning (2 hrs)
~35 min
Foundation Models
AI history, the GenAI landscape, what a foundation model really is
~35 min
LLMs in Action
Real-world applications, GPU compute, prompt engineering limits
~30 min
Harness Engineering
Beyond prompting — building reliable AI-powered workflows · Lab 1
Session 2 — Afternoon (2 hrs)
~40 min
GenAI Applications
Text, code, image, multimodal apps — patterns & demo · Lab 2
~35 min
Fine-Tuning & RAG
When to fine-tune vs RAG — research directions & closing
Mentimeter polls throughout · Instructor-led PlayLabs demos in Acts 3 & 4 · Mix of global and India examples
Switch to your Mentimeter tab · advance to slide 1
Read 4–5 words aloud. Use the word cloud as a mirror — it shows the room what it already knows and what it fears.Dartmouth Conference
Term "Artificial Intelligence" coined. First AI programs solve math proofs and play checkers.
Expert Systems & Machine Learning
Rule-based AI in industry. Backpropagation discovered — the core of modern neural networks.
Deep Learning Breakthrough
AlexNet wins ImageNet by a margin so large, it ends the debate. GPU-accelerated neural nets go mainstream.
"Attention Is All You Need"
Google Brain publishes the Transformer paper. The architecture behind every modern LLM.
The GenAI Era
ChatGPT, Claude, Gemini, Llama. 100M users in 2 months. The fastest technology adoption in history.
What actually changed in 2022?
Time to 100 million users
TikTok
ChatGPT
Threads
AI — Artificial Intelligence
Any technique that enables machines to mimic human intelligence. Rules, search, optimization, learning.
Machine Learning ⊂ AI
Systems that learn patterns from data without explicit programming. Regression, classification, clustering.
Deep Learning ⊂ ML
Neural networks with many layers. Learns representations automatically. Powers vision, speech, translation.
Generative AI ⊂ DL
Models that generate new content — text, code, images, audio — by learning the distribution of training data.
Discriminative vs Generative
| Discriminative AI | Generative AI |
|---|---|
| Classifies / predicts from input | Creates new output from a prompt |
| Spam filter, fraud detection | ChatGPT, Stable Diffusion, Copilot |
| Closed answer (yes/no, label) | Open-ended, fluent, creative |
| Narrow — one task | General — many tasks, one model |
Leading GenAI models (as of 2026)
The definition (Stanford AI Lab, 2021)
"A model trained on broad data at scale that can be adapted to a wide range of downstream tasks." Trained once — used everywhere.
What makes it "foundational"
The analogy that works
Foundation models are like operating systems — built once at great cost, then applications are built on top. GPT is iOS; your fine-tuned medical AI is a healthcare app.
The simplest model
y = 1.0x + 2.0
This model: 2 parameters · An LLM: 70,000,000,000+ · Same idea — different scale
Foundation Models
Large-scale models trained on broad data at scale — adaptable to many tasks
Language — LLMs
Trained on text — predict and generate language
GPT, Claude, Gemini, Llama
Vision Models
Trained on images — classify, detect, describe
ViT, SAM, CLIP
Image Gen
Trained on image-text pairs — generate images from prompts
DALL-E, Stable Diffusion
Multimodal
Trained on mixed data — text + images + audio together
GPT-4o, Gemini, Claude 3+
An LLM (Large Language Model) is a foundation model trained specifically on text data. Unlike vision or image-gen models, LLMs learn patterns in language — grammar, facts, reasoning chains, code — purely by predicting the next token. The next slide shows exactly how that works.
Step 1 — Tokenisation
Text → token IDs. "Generative" → ["Gen","erative"]. The model never sees letters. GPT-4: ~100,000 token vocabulary.
Step 2 — Next-token prediction
Given this token sequence, what comes next? Trained on 10 trillion+ tokens of internet text, repeated 100 billion times.
Step 3 — Attention mechanism
Every token attends to every other token — deciding relevance. This is why LLMs reason across long documents, not just the last word.
Step 4 — RLHF
Human raters rank outputs. The model learns to prefer helpful, harmless, honest responses. This is what made ChatGPT feel different from raw GPT.
Emergent behavior — the surprising part
No one programmed arithmetic, poetry, or code explanation. These capabilities emerged at scale as a side-effect of learning to predict text.
Training cost: ~$100M · Inference: ~$0.01/1K tokens — expensive to build, cheap to use
Genuine Capabilities
Real Limitations
The key skill is knowing when to trust and when to verify. Teaching this is more valuable than teaching the tool itself.
Switch to your Mentimeter tab · advance to slide 2
Use the bar chart to anchor the next slide — "so the room is most surprised by X, let's talk about why."Education
AI Teaching Assistant
Generate assignment variations, explain concepts at multiple levels, produce rubrics, give instant feedback on student work.
Curriculum Design
Align course outcomes to industry skills, map syllabus to NEP 2020 competencies, suggest real-world case studies per domain.
Student Interaction
24/7 doubt-clearing bots, personalised learning paths, instant code review in programming labs.
Research
Literature Review
Summarise 50 papers in minutes, identify research gaps, suggest related work. Perplexity.ai, Elicit, Semantic Scholar.
Writing Acceleration
Draft abstracts, improve paper flow, translate findings to plain language for grant proposals. Always verify citations manually.
Code for Research
Generate data processing scripts, implement statistical models, convert MATLAB to Python, explain legacy research code.
Industry
Customer Support
Zomato, HDFC, Flipkart deploy LLM chatbots handling 60–80% of tier-1 support without human agents.
Software Development
GitHub Copilot used by 1.8M developers. Studies show 55% faster code completion for routine tasks.
Document Intelligence
Extract clauses from contracts, classify medical records, summarise financial reports — at document scale.
Dennard Scaling ended (~2006)
Transistors shrank each generation but power density no longer fell. Clock speeds plateaued at 3–5 GHz. Making CPUs faster meant making them hotter — a physical wall.
The Von Neumann bottleneck
CPUs must move data between memory and processor for every operation. Memory bandwidth has not kept pace with compute. AI workloads move billions of parameters — the data bus becomes the bottleneck.
What AI actually needs
Neural network inference = billions of small matrix multiplications, all independent, all running in parallel. CPUs can't do this efficiently — they are optimized for sequential, low-latency single-threaded tasks.
cores in a high-end CPU (2024)
CUDA cores in NVIDIA H100
The insight that changed computing
GPUs were designed for graphics — rendering millions of pixels in parallel. Matrix math for 3D graphics and matrix math for neural networks are structurally identical. This accident of geometry is what made the AI revolution possible.
CPU clock speed — the plateau
CPU — optimized for latency
GPU — optimized for throughput
Why this matters for neural networks
A transformer model running inference performs the exact same matrix multiplication on thousands of tokens simultaneously. GPU architecture maps perfectly — every CUDA core handles one element of the matrix product in parallel.
Tensor Core throughput
TFLOPS on NVIDIA H100 (FP8, structured sparsity)
dense ≈ 1,979 TFLOPS · vs ~2 TFLOPS on a laptop CPU
IndiaAI Mission — ₹10,372 Cr
Private Cloud Build-out
Academic Access (free today)
Why this matters for your institution
The question isn't "if" AI changes engineering — it's "how fast" and "which direction." Faculty who teach this now are five years ahead of those who wait.
What prompt engineering is
The craft of writing instructions that reliably get useful output from an LLM. Techniques: role assignment, few-shot examples, chain-of-thought, structured output requests.
What it's good for
Why it breaks down at scale
The industry shift
By 2024, production AI teams stopped optimising prompts and started building harnesses — structured code wrappers that control the model's context, constrain its output, and handle its failures. That's Act 3.
Prompt Engineering
Harness Engineering
✗ Prompt Engineering
"Tell me about your summer vacation"
Model A
"I went to Goa with my family last June. We had an amazing time at the beach. I even tried surfing for the first time!"
Model B
"Summer was mostly at home this year. Did spend a few days at my grandma's in Pune — a nice break from the heat."
Model C
"11 days in Himachal — Kasauli, Shimla, Kullu. The mountains were incredible. Best trip ever."
Interesting. Valid. Unusable by a machine.
✓ Harness Engineering
Same question + schema instruction →
{ destination, travel_mode, days, destination_type }
Model A
"destination": "Goa" · "travel_mode": "flight" · "days": 7 · "type": "beach"
Model B
"destination": "Pune" · "travel_mode": "train" · "days": 4 · "type": "city"
Model C
"destination": "Shimla" · "travel_mode": "road" · "days": 11 · "type": "mountain"
Different data. Same structure. Machine-readable.
Stage A
Raw Prompt
Prototype stage
↳ "Tell me about your summer vacation" — freeform, no constraints
Stage B
System Prompt
Assistant stage
↳ "Fill this as an official school record — formal, complete sentences"
Stage C
Structured Output
Integration stage
↳ The form: destination · travel_mode · days · type — same schema, all 3
Stage D
Error Handling
Production-grade
↳ Teacher returns incomplete form: "travel_mode is blank — try again"
Lab 1 runs all 4 stages in sequence — same brief, progressively stronger harness. Watch the output quality and reliability improve at each stage.
Switch to your Mentimeter tab · advance to slide 3
Read 3–4 responses aloud. These become the lab brief — "one of you just described exactly what Lab 1 demonstrates."LLM Harness Explorer
Live browser terminal. No setup. Run the same brief through 4 stages of a harness — watch output quality and reliability improve at each stage. Uses Anthropic Claude API.
killercoda.com/playlabs/course/killercoda/llm-harness-explorerStage A — Raw Prompt
Direct call, no system context. Freeform, inconsistent output.
Stage B — System Prompt
Add persona + constraints. Consistent tone, still unstructured.
Stage C — Structured Output
Enforce JSON schema. Machine-parseable result.
Stage D — Error Handling
Validation, retry logic, fallback. Production-grade harness.
What to watch during the demo
Demo command
python3 /root/demo/harness_demo.py
Runs all 4 stages sequentially with printed separators. Pass a custom brief as an argument to run your own scenario.
What we covered in the first 2 hours
Foundation Models
AI history · what a foundation model is · how LLMs work · capabilities & limits
LLMs in Action
Education, research & industry use cases · GPU compute · prompt engineering limits
Harness Engineering
Prompt vs harness · 4 stages · Lab 1 demo — LLM Harness Explorer
15-minute break
Session 2 starts with GenAI Applications — text, code, image, and multimodal. Then fine-tuning and RAG.
Text
Code
Image
Multimodal
The common thread: all four categories use the same foundation model APIs. The application layer is where your skills and domain knowledge create value.
For Teaching
Generate assessment variations
Give Claude a question and ask for 10 variants at different difficulty levels. Build a question bank without spending hours writing manually.
Multi-level explanations
"Explain the Transformer architecture to: a) a 10-year-old, b) a final-year CS student, c) a researcher." One prompt, three outputs. Use in lectures directly.
Rubric & feedback generation
Paste an assignment brief, ask for a detailed rubric. Paste a student submission, ask for structured feedback. Saves hours of manual grading scaffolding.
For Research
Abstract & introduction drafting
Give your findings as bullet points; ask for a structured abstract in IEEE/ACM format. First draft in 30 seconds. Human editing still essential — but the blank page is gone.
Grant proposal language
Translate technical findings into plain language for ANRF/DST panels. Ask: "rewrite this technical paragraph for a non-expert reviewer." Critical for interdisciplinary funding.
Literature gap identification
Paste 10 paper abstracts: "Identify 3 research gaps none of these papers address." Not a replacement for Semantic Scholar, but a fast first-pass on a new topic.
⚠ Always verify citations manually — LLMs hallucinate references with high confidence.
What AI code generation does well
What it still gets wrong
Teaching strategy (not banning)
GitHub Copilot — available free to educators
The skill shift: from "write code" to "review, explain, and extend AI-generated code." Both are valuable — only one is future-proof.
How image generation works
Diffusion models: start with random noise, iteratively remove noise guided by text embedding. The text prompt is encoded by a language model (like CLIP) and used to steer the denoising process.
Leading models (2024)
Engineering & education use cases
Responsible use — what to teach students
Switch to your Mentimeter tab · advance to slide 4
All four answers are good — use the result to point to the right tool for that use case.AI as a Coding Partner — Live Demo for Educators
Claude implements a Round Robin CPU scheduler, explains it for a first-year student, produces technical documentation, then adapts to any algorithm — from one structured prompt. Maps directly to the GenAI app capabilities in this act.
killercoda.com/playlabs/course/killercoda/genai-code-educatorStep 2 — Generate code
python3 /root/demo/generate_code.py
Step 3 — Generate explanation + docs
python3 /root/demo/generate_docs.py
Step 4 — Run a variation
python3 /root/demo/variation.py "Shortest Job First"
Before running — say this
"We'll give Claude a classic OS algorithm. It will write working code, explain it like it's talking to a first-year student, produce documentation, then adapt to a different algorithm entirely."
The harness connection
Step 3 uses Step 2's output as its input — that's Stage C harness chaining from Act 3 in action. The lab secretly re-demonstrates the pipeline lesson inside the GenAI Applications act.
The teaching question
"Here is what Claude produced. Find one thing it got right, one design decision you would change, and one edge case it missed." — This cannot be answered by running Claude again. It requires a student who actually understands scheduling.
What fine-tuning is
Continue training a pre-trained foundation model on a small, domain-specific dataset. The model retains its general knowledge but learns the patterns, terminology, and format of your domain.
When to fine-tune
When NOT to fine-tune (use RAG instead)
Fine-tuning cost reference (2024 baseline)
Research opportunity
Fine-tuning Llama 3 on Indic language datasets is an open problem with strong publication potential. IITM, IIIT-Hyderabad, and IISc are all running such projects. Faculty with domain datasets are collaborators, not just users.
What RAG is
Instead of baking domain knowledge into model weights (fine-tuning), RAG retrieves relevant documents at query time and injects them into the context window. The model answers from the retrieved documents.
The RAG pipeline (3 steps)
Embed & Index
Convert your documents into vector embeddings. Store in a vector database (Chroma, Pinecone, FAISS).
Retrieve
At query time, embed the user's question and find the top-K most similar documents by cosine similarity.
Generate
Pass the retrieved documents + user question to the LLM. The model answers using the retrieved content — grounded, citable, up-to-date.
Why RAG beats fine-tuning for most use cases
Research & teaching applications
RAG Foundations — Build from Scratch
5-step lab: chunk a GNITS policy doc → embed with sentence-transformers → retrieve with FAISS → compare direct vs RAG answers from Claude. No LangChain. Every step is plain Python.
killercoda.com/playlabs/course/killercoda/rag-foundationsUse the result to calibrate the closing
Emphasise: "One tool, one task, one week. That's the whole commitment." Point to Colab and free tiers.
Emphasise: "Pick the harness assignment idea from Poll 3 — that's your first unit."
Acknowledge: "The room is ahead of most institutions. Find a colleague at 1–2 and help them start."
Switch to your Mentimeter tab · advance to slide 5
Use the distribution to frame the next two slides — research opportunities and practical next steps.High-impact themes at the GenAI + education intersection
AI-augmented engineering education
Measuring learning outcomes with AI-integrated pedagogy. Publishable in IEEE TLT, Computers & Education, ASEE. AICTE Research Promotion Scheme (RPS) is actively funding this.
Indic language LLMs & RAG
Fine-tuning open models on regional language datasets. Building RAG systems for Indic-language educational content. Strong publication gap, domestic funding available.
AI safety & hallucination detection
Automated verification of AI-generated engineering outputs. High need in regulated domains: medical devices, aerospace, civil infrastructure. Aligns with EU AI Act compliance research.
GenAI for domain-specific datasets
Synthetic data generation for rare failure modes — medical imaging, structural defects, industrial anomalies. Active research gap; especially valuable for Indic domains.
Quick-action funding guide
This quarter — apply now
Next 6 months — build the case
AI is a tool for your domain research — not a new domain to master from scratch. Your engineering expertise + AI tools = research that neither camp can do alone.
One action from today is worth more than ten ideas
Switch to your Mentimeter tab · advance to slide 6
Read 4–5 responses aloud. These are the most important outputs of the whole day.What to do in the next 7 days
Open Claude.ai or ChatGPT free tier — use it for one real teaching task (rubric, question bank, explanation)
Add one sentence to your next assignment: "Submit code with a 5-minute viva walk-through"
Pick one research problem from today's list — write a 1-page problem statement this weekend
Labs from today
Sunil C · Technology Operations · Billtrust