Skip to content
tezvyn:

LLM

157 bites tagged LLM — interview questions with model answers, and 60-second explainers.

LLMs & Generative AI2 min read

AI Coding Assistants: Your LLM Pair Programmer

AI coding assistants are like pair programmers powered by large language models. They assist in tasks across the software lifecycle, from code generation and testing to debugging and documentation. The key footgun is over-reliance; they assist, not replace.

LLMs & Generative AI2 min read

AI's Dual-Use Problem: Good Tools, Bad Outcomes

AI models built for good can be easily repurposed for harm. A language model that helps with coding can also generate malware. The footgun is assuming good intentions prevent misuse; the risk is in the capability, not the creator's intent.

LLMs & Generative AI2 min read

Quantization-Aware Training (QAT): Forcing Models to Learn While Quantized

QAT forces a model to "learn its own compression" by simulating quantization during training. This lets you shrink LLMs to aggressive low-bit formats (like 4-bit) where simpler post-training methods fail.

LLMs & Generative AI2 min read

Dynamic Batching: Balancing LLM Throughput and Latency

Dynamic batching groups LLM requests like a bus that leaves on a schedule or when full, whichever comes first. This improves throughput in inference servers by avoiding long waits. The footgun: all requests in a batch are still held hostage by the slowest one.

LLMs & Generative AI2 min read

Modality Gap: When Multimodal LLMs Don't Trust Their Senses

A multimodal LLM has a modality gap when it trusts one input type (like text) over another (like images), even with identical information. This bias causes performance drops, like ignoring visual data if conflicting text is present.

LLMs & Generative AI2 min read

Full Fine-Tuning: Updating Every Model Parameter

Full fine-tuning updates all weights of a pre-trained model on your new data, unlike methods that only change a small fraction. Use it to deeply embed new knowledge, but beware: it's costly and risks making the model forget its original general skills.

LLMs & Generative AI2 min read

LLMs as Tool Makers: Write Once, Solve Many

LLMs can create their own tools, not just use them. A powerful model writes a reusable function once, and a cheaper model calls it many times. This gives top-tier results at a lower cost for repetitive tasks.

LLMs & Generative AI2 min read

Reflection: Teaching LLM Agents to Learn from Mistakes

Reflection gives an agent an "inner monologue" to learn from its mistakes. An Actor model attempts a task, an Evaluator scores it, and a Self-Reflection model generates linguistic feedback for the next try.

LLMs & Generative AI2 min read

Agentic Reasoning: LLMs that Plan, Act, and Learn

Agentic reasoning treats an LLM as an autonomous agent that interacts with its environment. It plans tasks, uses tools like APIs, and learns from feedback to solve complex problems. The footgun is assuming its plans are optimal or actions are always correct.

LLMs & Generative AI2 min read

Cross-Encoder Re-ranking: Accuracy Over Speed

A cross-encoder re-ranks search results by reading the query and each document together, allowing it to spot subtle connections. It's the second, high-precision step in a search pipeline, re-ordering a small list of candidates.

LLMs & Generative AI2 min read

Evaluating RAG Systems: Metrics for Retrieval and Generation

Evaluating a RAG system means grading its two parts: retrieval and generation. Metrics like relevance check if the right documents were found, while faithfulness and accuracy check if the final answer correctly uses those documents.

LLMs & Generative AI2 min read

Document Chunking: Slicing Text for LLMs

Think of chunking as preparing text "bites" for an LLM. It breaks large documents into smaller, meaningful segments to fit a model's context window and improve search. It's essential for Retrieval-Augmented Generation (RAG) and semantic search.

LLMs & Generative AI2 min read

Model Merging: Combine LLM Skills Without Retraining

Model merging blends specialized LLMs into one, like creating a custom alloy from different metals. It's used to combine a coding expert with a legal expert, for example, without costly retraining.

LLMs & Generative AI2 min read

Amazon Bedrock: One API for Many AI Models

Amazon Bedrock is an API gateway for foundation models, letting you switch AI providers without rewriting code. It's used to build generative AI apps while avoiding vendor lock-in.

LLMs & Generative AI2 min read

MaaS: Renting AI Brains via API

Model-as-a-Service (MaaS) is like renting a pre-trained AI expert via an API. Instead of building and training your own models, you pay to use powerful, ready-made ones for tasks like text generation or image analysis.

LLMs & Generative AI2 min read

The Llama Model Family: Open-Source AI for Production

Think of Llama not as one model, but a family of open-source AIs you can run anywhere. Use it for cost-effective, fine-tuned applications like internal search or when you need full control. The biggest mistake is mis-sizing the model for your task.

LLMs & Generative AI2 min read

The OpenAI API: Access to Foundational AI Models

The OpenAI API provides access to influential models like GPT and DALL-E. It enables developers to integrate generative AI into commercial applications and research, building on technology that catalyzed the current AI boom.

LLMs & Generative AI2 min read

AI Auditing: The OWASP LLM Top 10 Checklist

Think of an AI audit like a building inspection for your LLM app, checking for structural weaknesses. It uses frameworks like the OWASP Top 10 to find risks like prompt injection and data leakage.

LLMs & Generative AI2 min read

vLLM: Faster LLM Inference with PagedAttention

vLLM is a serving engine that speeds up LLM inference by treating GPU memory like virtual memory. It's used to serve models with higher throughput by batching requests without wasting memory on padding.

LLMs & Generative AI2 min read

Speculative Decoding: A Small LLM Speeds Up a Big One

Speculative decoding uses a small, fast 'draft' LLM to guess the next few words, which a larger 'target' LLM verifies in one batch. This cuts inference latency 2-3x in production systems.

LLMs & Generative AI2 min read

FlashAttention: Faster, Memory-Efficient Exact Attention

FlashAttention is an IO-aware algorithm that computes exact attention faster and with less memory. It avoids slow GPU memory transfers, making it a key optimization for training and serving large models on modern GPUs.

LLMs & Generative AI2 min read

Post-Training Quantization: Shrink Models Without Retraining

Post-Training Quantization (PTQ) shrinks a pre-trained model by converting its weights to lower precision, like turning a WAV file into an MP3. Use it to run large models on consumer GPUs without costly retraining.

LLMs & Generative AI2 min read

KV Cache: Don't Recompute, Just Remember

KV Cache speeds up LLM text generation by storing intermediate calculations (Key/Value vectors) instead of recomputing them for every new token. It's a standard optimization in inference engines.

LLMs & Generative AI2 min read

Adversarial Attacks: Tricking LLMs into Misbehaving

Adversarial attacks are inputs designed to trick an LLM, bypassing its safety alignment. This is how "jailbreaks" coax models into generating harmful content. The footgun is assuming safety training makes a model foolproof; it just makes attacks more subtle.

Get LLM bites daily.

Five a day, five minutes, offline. With quizzes so it sticks.

Open testing — you’ll join as an early tester.