tezvyn:

LLMs & Generative AI

Large language models, chatbots, agents, prompt engineering

324 bites

More in LLMs & Generative AI — page 10

vLLM: Faster LLM Inference with PagedAttention
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

Deep Learning Compilers: From Model to Machine Code

A Deep Learning Compiler translates a model from a framework like PyTorch into optimized code for specific hardware like a GPU or TPU. This avoids manual optimization for every model-hardware pair.

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.

FlashAttention: Faster, Memory-Efficient Exact Attention
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.

ONNX Runtime: Run Any AI Model, Anywhere
LLMs & Generative AI2 min read

ONNX Runtime: Run Any AI Model, Anywhere

ONNX Runtime is a universal engine for AI models, letting you run them efficiently on any hardware, from cloud GPUs to a user's browser. It's used to deploy models for fast inference on servers or mobile devices.

Post-Training Quantization: Shrink Models Without Retraining
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.

KV Cache: Don't Recompute, Just Remember
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

Orthogonality Thesis: An AI's Intelligence and Goals Are Unrelated

The Orthogonality Thesis states an AI's intelligence and its ultimate goals are independent. A superintelligence could pursue any objective, from beneficial to catastrophic, with equal capability.

LLMs & Generative AI2 min read

Instrumental Convergence: Why All AIs Might Act Alike

Even with different end goals, intelligent agents tend to pursue the same sub-goals like self-preservation and resource gathering. This is key in AI safety, explaining why a paperclip-making AI might compete with humans for resources, not from malice but…

LLMs & Generative AI2 min read

Constitutional AI: Teaching Models to Govern Themselves

Constitutional AI teaches a model to self-correct against a set of principles, or a 'constitution.' This automates safety alignment for models like Claude, reducing reliance on human feedback.

LLMs & Generative AI2 min read

ML Interpretability: Cracking Open the Black Box

ML interpretability cracks open the 'black box' to explain *why* a model made a specific decision. It's essential in high-stakes fields like finance or medicine to ensure automated decisions are fair. The footgun is trusting accuracy alone.

Adversarial Attacks: Tricking LLMs into Misbehaving
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.

LLM Guardrails: Keeping Model Outputs on Track
LLMs & Generative AI2 min read

LLM Guardrails: Keeping Model Outputs on Track

LLM guardrails are safety policies that steer model outputs, acting like bumpers in a bowling alley to prevent responses from going off-topic, leaking data, or generating harmful content. They are crucial for topic control and preventing prompt injections.

LLM Red Teaming: Adversarial Security Testing
LLMs & Generative AI2 min read

LLM Red Teaming: Adversarial Security Testing

LLM Red Teaming is a simulated attack where you proactively try to break your own AI to find security flaws. It's used to test for vulnerabilities like prompt injection or data leakage, which traditional security tools miss.

Model Cards: The 'Nutrition Label' for AI Models
LLMs & Generative AI2 min read

Model Cards: The 'Nutrition Label' for AI Models

A model card is the nutrition label for an AI model, summarizing its ingredients, intended use, and risks. Found in model repos, it details training data, performance, and ethical guardrails.

LLMs & Generative AI2 min read

The AI Alignment Problem

AI alignment is about making sure an AI pursues our intended goals, not just the literal instructions. It's critical for autonomous systems in medicine or finance. The footgun is assuming a clear objective prevents unintended, harmful outcomes.

LLMs & Generative AI2 min read

HumanEval: Testing if AI-Generated Code Actually Works

HumanEval is a benchmark that tests if an LLM's generated code is functionally correct, not just syntactically valid. It's used to compare models like Codex by having them solve programming puzzles.

LLMs & Generative AI2 min read

LLM-as-a-Judge: Using Models to Grade Models

Instead of paying humans to rate AI outputs, LLM-as-a-Judge uses a powerful 'judge' model to do it automatically. This is used to evaluate chatbot responses or summarization quality, but the main footgun is assuming the judge model is unbiased or perfectly…

LLMs & Generative AI2 min read

Why Elo Ratings for LLMs Can Be Misleading

Elo ranks LLMs like chess players, but models have fixed skills, not dynamic ones. This method powers leaderboards but produces volatile scores, meaning a model's rank can be an unstable estimate of its true, unchanging ability.

LLMs & Generative AI2 min read

MMLU Benchmark

MMLU (Measuring Massive Multitask Language Understanding) is a popular benchmark for evaluating large language models. Its influence is shown by its many spin-offs, making it a foundational tool for comparing AI capabilities.