179 questions
No questions match those filters.
A 400B+ training run spans multiple rack spine switches...System DesignHardPro previewWhen training massive models across multiple racks, physical placement is critical. Pipeline Parallelism (PP) requires frequent point to point activation transfers, which should…A 70B model is too large for your H100 fleet. How do yo...Inference & ServingMediumPro previewFitting large models requires a combination of architectural and numerical strategies. Model parallelism distributes the model across multiple GPUs, while quantization reduces the…A benchmark you care about shows model scores plateauin...EvaluationHardPro previewWhen model scores plateau despite improvements elsewhere, you must investigate three competing explanations: a genuine capability ceiling on the benchmark's difficulty, a label…A campaign moves 40% of queries onto three brand-new SK...System DesignHardPro previewThe tech lead's proposal to increase generator size misdiagnoses the impact of the traffic shift. The marketing campaign moved 40% of incoming traffic to brand new SKUs with zero…A client asks you to make a deployed LLM "forget" a spe...Security & SafetyVery HardPro previewThe naive answer — retrain from scratch without that document — is correct and also usually infeasible: a frontier pretraining run costs millions of dollars and weeks of compute,…A client says data cannot leave their environment. How...System DesignMediumPro previewModel access moves in perimeter. Depending on what the client's cloud already looks like, that's a managed model service running inside their own cloud account and region,…A client wants to self-host rather than use a commercia...Inference & ServingMediumPro previewFour questions, in that order: 1. Can the data leave the environment? If not, self hosting (or an in perimeter managed option) stops being a preference and becomes a hard…A colleague argues federated search is unnecessary - ‘j...Retrieval & EmbeddingsMediumPro previewMetadata filtering is insufficient for scenarios requiring true data separation. It does not address the operational needs of independent teams (different update cadences) or the…A colleague argues that as instruction tuning and RLHF keep improving, models will get better at ignoring injected instructions, so this risk shrinks on its own over time. Do you agree?Security & SafetyMediumInstruction tuning and RLHF are designed to make models more responsive to instructions provided in the input. Because an indirect prompt injection attack relies on the model…A colleague argues that nearest neighbor search is mean...Retrieval & EmbeddingsHardPro previewWhile the theoretical objection holds for random distributions, contrastive training creates clusters that make semantic search effective. You should acknowledge the limitations…A colleague argues that since the Probability Ranking P...RAGVery HardPro previewThe PRP is optimal only if each document’s relevance is assessed independently. In RAG, an LLM reads k chunks jointly, meaning a second chunk containing the same information has…A colleague argues the row and column embeddings are th...LLM FoundationsHardPro previewThe colleague is correct that absolute row and column IDs impose a rigid, often meaningless, order on relations. However, Markdown is not a solution; it merely re encodes the same…A colleague benchmarks their kernel and claims it is 50...LLMOps & ProductionEasyPro previewThe most likely explanation is that the colleague failed to use cuda.synchronize(). Without synchronization, the CPU timer measures only the time taken to queue the CUDA command,…A colleague cites Beyer et al. and argues that nearest...Retrieval & EmbeddingsVery HardPro previewThe theoretical concern regarding the 'meaninglessness' of nearest neighbor search in high dimensions relies on the assumption that data points are distributed without any…A colleague cites Beyer et al. and argues that nearest...Retrieval & EmbeddingsVery HardPro previewThe claim that nearest‑neighbor search breaks down in 768‑dimensional space rests on a theoretical result that assumes the data are uniformly distributed with no intrinsic…A colleague points out that your new labels are dwell t...EvaluationVery HardPro previewSwitching to regression does not solve the loss metric mismatch, as dwell time still reaches the metric through argsort. Furthermore, dwell time is not comparable across…A colleague points out that your new labels are not hum...EvaluationVery HardPro previewWhen the premise of a technical argument changes—in this case, moving from discrete human grades to continuous dwell time—it is critical to acknowledge that the initial objection…A colleague proposes an unlearning pass over model weig...Data, Privacy & LegalHardPro previewThe constraint of a 24 hour take down notice makes unlearning impractical. Unlearning requires identifying specific target sequences and performing gradient updates, which offers…A colleague proposes decomposing every incoming question with the same general-purpose chain-of-thought prompt you’d use for any reasoning problem, skipping a schema check because ‘the model is good at this.’ What’s wrong with that, and what does it cost you?RAGHardRelying on a general purpose prompt without schema validation allows the model to invent relations that do not exist in the graph. Because an empty result set from a hallucinated…A colleague proposes dropping the reranker and moving t...RAGHardPro previewThe proposal treats retrieval (R) as equivalent to answer accuracy (A). However, utilization decays as the passage count increases. Dropping the reranker lowers the signal to…A colleague proposes fine-tuning a GNN projector so the...Training & Fine-tuningHardPro previewBefore committing to a training heavy approach, you must evaluate the return on investment. If the existing GNN is not optimized for this specific task, the training effort may be…A colleague proposes padding every reranked candidate t...Inference & ServingHardPro previewWhile the instinct to fix the shape for the compiler is correct, padding to the global maximum is inefficient. For a 110M parameter model, this approach can increase latency by…A colleague proposes REPLUG-style marginalization over...RAGVery HardPro previewAcknowledge that the API does not block marginalization, as per token log probabilities are available. The constraint is compute: 32 calls per step means 32x fewer gradient steps…A colleague retunes production to k1 = 0.9, b = 0.4 bec...Retrieval & EmbeddingsVery HardPro previewThe improvement in recall@1000 may be misleading because it only measures if a document is in the pool, not its rank. In a corpus with a 400x length spread, the b parameter is…A colleague says our new model got 91% on MMLU. What fo...EvaluationEasyPro previewTo properly contextualize a high benchmark score like 91% on MMLU, you must ask for specific details regarding the evaluation protocol. Essential follow up questions include…A colleague says their new data mixture improved MMLU b...EvaluationMediumPro previewA 2 point improvement on MMLU after only 10B training tokens is generally not a reliable signal. At this scale, the variance of MMLU scores across different random seeds is…A colleague wants binary quantization instead - also 96...Retrieval & EmbeddingsVery HardPro previewThe primary trap in this comparison is focusing solely on the code space, as both methods can be configured to use 96 bytes for a 768 dimensional vector. The critical distinction…A colleague wants binary quantization instead—also 96 b...Retrieval & EmbeddingsVery HardPro previewThe apparent equivalence between binary quantization and product quantization (PQ) lies only in the size of the code space: both produce 96‑byte codes with the same number of…A colleague wants to add more decisions to the router (rewrite, source selection, rerank depth). How do you adjudicate?System DesignVery HardAdding decisions to a classifier creates a multiplicative labeling bill. For example, 3 x 2 x 3 x 2 pipelines would require 36 classes, which is unsustainable for both labeling…A colleague wants to raise nprobe from 16 to 128 for be...Retrieval & EmbeddingsHardPro previewIncreasing nprobe by 8x results in roughly 8x more data transfer, which typically adds 7.5–9.6 ms of latency. If this fits within the current 20 ms window, the change is safe.…A colleague wants to replace dropout positives with LLM...Retrieval & EmbeddingsHardPro previewWhile genuine positives often beat dropout, the risk in clinical notes is high. You must audit a stratified sample of the generated paraphrases for errors in negation, dosage, and…A colleague wants to replace the pointwise cross-encode...Inference & ServingVery HardPro previewThe deciding argument is not accuracy, it is what the score is a function of. Pointwise scores depend on (q, d) alone, so they cache across queries that share a document, batch…A colleague wants to replace your PRF expansion with an...System DesignHardPro previewThe proposal fails on two critical fronts: the lack of a reward function and the inability to keep the policy synchronized with the rapidly changing index. Without click logs,…A colleague wants to rip out the reflection tokens and...AgentsHardPro previewThe decision depends on what you are gating. If you are gating 'is this passage worth using,' an external critic is strictly better because it is cheaper and allows for…A colleague wants to scale the retrieval corpus from Wi...System DesignVery HardPro previewAt a 522x increase in corpus size, the rebuild cost becomes roughly 565x the trainer's compute per window, effectively turning the task into an embedding job rather than language…A competitor claims their model beats yours by 3 points...EvaluationHardPro previewTo verify such a claim, first inspect the evaluation protocol, including prompt format, the use of chain of thought, and whether majority voting was applied, as these can easily…A compliance lead wants the router’s threshold lowered...RAGVery HardPro previewTreating this as a binary global threshold trade off is a mistake. Instead, recognize that relaxing the threshold scales cost linearly with the number of sources. You should…A custom activation function written as a chain of PyTo...Inference & ServingMediumPro previewFirst, verify via the profiler trace that the activation is executing as multiple separate kernels. The primary optimization strategy is to apply torch.compile, which can…A customer invokes their right to erasure. Can you delete their data from the model?Data, Privacy & LegalMediumA strong answer splits the object in the first sentence: the records in the datastore and logs are deletable and verifiable, while the memorized associations in the weights admit…A customer support bot needs to answer 'which plan tier...RAGEasyPro previewThe choice of architecture should match the query shape. GraphRAG is designed for summarization and global sense making, which is overkill for a simple entity linking task.…A customer wants to extend context from 8K to 128K toke...System DesignHardPro previewExtending context to 128K tokens creates a massive memory requirement for the KV cache. For a model like Llama 2 13B, the KV cache alone can exceed 100 GB, which is larger than…A dashboard shows a healthy median latency, but users r...Inference & ServingEasyPro previewAggregate metrics like the median can be misleading when multiple sequential stages contribute to the total latency. You should break out p95 and p99 latency metrics by stage to…A director wants to merge four departmental RAG systems...System DesignMediumPro previewA full merge is not an option if it violates legal requirements. The correct approach is to maintain separate indices for departments with strict data residency or access rules,…A false positive in your Bloom filter causes a unique p...Data, Privacy & LegalHardPro previewFalse positives in a Bloom filter result in the loss of unique paragraphs, which is difficult to detect from the output alone. At a false positive rate of 10^ 6, you lose…A generative retriever memorizes the corpus into its pa...Retrieval & EmbeddingsMediumPro previewIn a generative retriever, the searchable index is dissolved into the model weights, but the document text remains outside. The parameters essentially hold a mapping from queries…A genuinely relevant chunk lands at position 11 of a 20...LLM FoundationsMediumPro previewWhen you cannot retrain the model, you can use inference time interventions to adjust how the model weights specific positions in the context. Attention calibration and MS PoE…A heading detection model performs well on PDFs but poo...Retrieval & EmbeddingsMediumPro previewThe mechanism is an absolute point size threshold. Because slide decks often use larger font sizes, the model incorrectly flags body text as headings. A better approach involves…A kernel loads a 2D tensor and runs at 3% of peak HBM b...Inference & ServingHardPro previewUse Nsight Compute to examine the sector/request ratio. If the ratio is near 32, the access pattern is non coalesced, likely because threads are striding across rows of a row…A lab claims their MoE model has 70B parameters and matches a 13B dense model in quality. What would you ask before accepting that comparison?EvaluationMediumFirst, clarify if 70B is the total or activated parameter count. If it is 70B total with 7B activated, the training compute comparison is coherent, but the memory requirements…A leaderboard number like Chatbot Arena ELO looks objec...EvaluationHardPro previewThe moment a metric becomes the thing labs are judged and marketed on, Goodhart's law kicks in: it stops measuring what it was designed to measure and starts measuring whoever is…A listwise reranker is deployed but nDCG@10 is indistin...EvaluationHardPro previewStart by checking if the model is actually performing any reordering; a broken model that falls back to the input order will produce the same metrics as a useless model. If the…A medical image segmentation model posts 99.2% test-set...System DesignHardPro previewA 99.2% accuracy number answers "does the model produce the correct label on held out data drawn from the same distribution as training," and nothing more. It doesn't answer "does…A model fine-tuned on our data produces outputs that ar...Training & Fine-tuningMediumPro previewTo fix overly long outputs, you should audit your SFT data for length distribution and potential human or AI curation bias. The most effective solution is to explicitly add short…A model improved on AlpacaEval but its Arena ELO did no...EvaluationHardPro previewWhen a model shows improvement on AlpacaEval but not on Arena ELO, you should first investigate whether the gains are specific to prompt types that are rare in Arena’s live…A model performs differently on Natural Questions (NQ)...EvaluationMediumPro previewA benchmark's collection protocol determines which retriever wins. SQuAD's surface level similarity makes it a 'lexical matching' task, while NQ's paraphrase heavy nature makes it…A model scores extremely well on a public benchmark. Wh...EvaluationHardPro previewWhether the benchmark's own test examples leaked into the training data — train test contamination. Popular benchmarks get posted, discussed, quoted, and reproduced across the…A model trained on post-issue GitHub commits could solv...EvaluationHardPro previewTo prevent models from solving benchmarks via recall of training data, you must implement timestamp based filtering to ensure the model's training data does not include the…A model uses embedding dimension d = 4097. Profiling sh...Inference & ServingVery HardPro previewThe first hazard is discretization waste: because 4097 is not a multiple of the tile size T=128, the last column tile is only 1/128th wide, leaving 127 threads idle. The fix is to…A model you trained gets 91% on MMLU. How do you know i...EvaluationMediumPro previewTo verify that a model has genuinely learned the material rather than memorizing the test set, you must first run 13 gram decontamination to identify and remove overlapping…A multimodal RAG model performs well on a benchmark but...Multimodal & Generative MediaHardPro previewThe benchmark score is not evidence of success if the benchmark structure does not mirror the production failure mode (e.g., presenting multiple candidate images). You should…A network trained with 0.5 dropout validates perfectly...Training & Fine-tuningMediumPro previewThe obvious answer — "you forgot to disable dropout at inference" — is true in the trivial framework sense but misses what's actually happening numerically when you export raw…A new rule requires evidence, per answer, that the cite...LLMOps & ProductionVery HardPro previewPer answer head patching is 48.8x slower than offline ablation, making it impractical for real time production. The platform approach allows for replayable logs and sampled…A normalization layer consumes 25% of wall-clock time but less than 1% of total FLOPs. How do you speed it up?Inference & ServingHardBecause normalization layers are memory bandwidth bound, techniques aimed at reducing FLOPs will not provide significant speedups. The most effective strategy is to reduce the…A paper claims their new attention variant improves MML...EvaluationHardPro previewTo validate a claim of a 3 point MMLU improvement, you must investigate the experimental setup. Check whether the compute and data budgets are matched between the new variant and…A platform wants to consolidate five per-language index...Retrieval & EmbeddingsHardPro previewIt is important to correct the premise that consolidating indexes leads to significant storage savings. Since the documents themselves do not disappear, a single index over the…A policy changed last night and must be reflected by 9...RAGHardPro previewWhen evaluating the proposal, compare the operational costs of both paths. A LoRA training run involves significant compute, estimated at 1.5 GPU hours for a 7B model on 50…A product fact in your assistant is wrong. You have a 2...RAGMediumPro previewFull retraining is computationally expensive, requiring 108 GB for the forward pass at fp32, and is not feasible for quick turnaround. Model editing, such as ROME, can update…A profiler shows 60% of GPU time is in CudaLaunchKernel...LLMOps & ProductionHardPro previewHigh CudaLaunchKernel time occurs when a model contains many small operations, such as an unfused GELU implemented as multiple element wise operations. Each launch takes 5 20 μs,…A published benchmark shows a +33% gain from a multimod...EvaluationHardPro previewDisagreements between published benchmarks and internal production results are often due to differences in data distribution. Rather than treating this as a negotiation of…A publisher offers a license covering retrieval but not...Data, Privacy & LegalVery HardPro previewThe research lead is incorrectly generalizing a specific district court holding. You must price what the cheap license actually buys: because content in model weights is…A publisher revokes their license. Walk me through what...Data, Privacy & LegalMediumPro previewA strong answer asks which side of the boundary the content is on before describing the procedure. The datastore path is the primary mechanism for compliance. Verification is the…A publisher's licence permits ingesting their content i...Data, Privacy & LegalHardPro previewThe proposal directly violates the publisher's licensing constraint by passing forbidden text into gradient updates during fine tuning. Grounding SFT using retrieved pairs derived…A publisher's license allows ingesting content into a retrieval index but forbids using it for training. How do you improve grounding without violating this?Data, Privacy & LegalHardThe constraint shifts the problem from quality to provenance. Using licensed text in fine tuning pairs puts that data into the model weights, which makes the most popular licensed…A QLoRA run matches full fine-tuning on style but fails...Training & Fine-tuningMediumPro previewThe failure to recall product codes is a symptom of the difference between style transfer and knowledge acquisition. LoRA is effective for adapting the model's tone or format, but…A RAG system performs well in English but fails on non-...Retrieval & EmbeddingsHardPro previewThe diagnostic step matters before picking a fix: log the retrieved chunks for a batch of failing non English queries and check whether the correct chunk is even in the candidate…A reasoning model burns 2,000 chain-of-thought tokens e...Training & Fine-tuningMediumPro previewThe instinctive fix — train a small fast model for easy queries and keep the large reasoning model for hard ones — solves the cost problem by creating a routing problem: now you…A regression model beats human appraisers on RMSE and y...System DesignVery HardPro previewNo. RMSE measured on a static, unfiltered test set describes a completely different situation than a live market where the model's own output decides which trades actually happen.…A regulator requires the assistant to run fully offline...Training & Fine-tuningHardPro previewWhen architectural requirements strictly disallow an external datastore or RAG pipeline, fine tuning model weights directly requires a disciplined continual learning strategy to…A researcher argues that since in-context learning is m...RAGVery HardPro previewWhile the circuit is real and explains why unseen identifiers work, copying is only one path among the (H + 1)L paths the residual stream expands into. Furthermore, induction…A researcher proposes a new attention variant. How do y...Training & Fine-tuningHardPro previewThe decision should be based on scaling law comparisons rather than small scale benchmarks. Train both the new architecture and the baseline at 3 5 compute levels spanning 2 3…A retrieved image fails C2PA verification, but appears...Security & SafetyMediumPro previewVerification failures are often benign, caused by routine re encoding during upload or CDN processing. Treating these failures as definitive proof of fake content leads to the…A rights holder sends a takedown notice claiming their...Data, Privacy & LegalMediumPro previewThe response begins with identifying the specific documents using provenance logs. Once identified, you assess the legal basis for inclusion—either a license or a fair use claim.…A seventh source arrives: a partner API with 30M docume...Data, Privacy & LegalHardPro previewData residency is a non negotiable legal requirement, which dictates that the EU slice must be handled via federated calls rather than bulk copy. For the unrestricted portion,…A single-layer perceptron catches isolated fraud anomal...Training & Fine-tuningEasyPro previewThe instinct to reach for more data treats this as an estimation problem, but it's a representational one. A single layer perceptron — one affine transformation followed by a…A staff engineer proposes deleting the vector index ent...System DesignVery HardPro previewWhile constant time lookup is attractive, the churn arithmetic makes this approach unsustainable. Retraining is not an upsert; it is a full training run. Furthermore, the proposal…A staff engineer proposes replacing the labeled regress...EvaluationVery HardPro previewWhile the cost savings of replacing a labeled suite with a sensitivity monitor are significant, the monitor cannot detect confident errors, which are the dominant failure mode in…A staff engineer says the right fix is a nightly fine-tune, because retrieval adds a network hop and their p99 budget is 400 ms. Resolve it.RAGHardThis dispute represents a trade off between latency constraints and functional requirements. A nightly fine tune fails the primary operational requirement: reliably generating…A staff engineer wants to replace CoT plus self-consist...System DesignVery HardPro previewThe reported success of Tree of Thoughts is often dependent on having a precise, domain specific state evaluator, which is not easily transferable to general QA tasks.…A staff peer wants to delete the retrieval pipeline and...AgentsVery HardPro previewThis dispute centers on return types and execution flow rather than mutually exclusive requirements. Both viewpoints can be satisfied by exposing retrieval as an agent tool,…A stakeholder asks: 'We gave the model strictly more in...RAGMediumPro previewA strong answer explains that attention is a finite, contested resource during the prefill phase, not a free skim. When you add more information, you increase the competition for…A stakeholder says your RAG system’s aggregate accuracy...RAGMediumPro previewAggregate accuracy can look acceptable while masking large per query variance. A strong answer highlights the worst case failure mode: a single injected low credibility document…A team builds a causal decoder reranker with the query...Inference & ServingHardPro previewThe team failed to realize that in a causal decoder, tokens attend to previous tokens. By putting the query first, the document tokens are forced to attend to the query, which…A team reports a 5-point win rate improvement on Alpaca...EvaluationMediumPro previewBefore trusting a win rate improvement on AlpacaEval, you must verify three things. First, check whether the improvement survives length correction; a win rate that disappears…A team wants to hit a compliance deadline by leaving th...EvaluationHardPro previewThe key distinction is between during generation attribution and post hoc citation, and they answer genuinely different questions. During generation systems (WebGPT, GopherCite…A teammate adds a SPLADE index to an existing BM25 and...Retrieval & EmbeddingsHardPro previewRRF treats all input lists as independent votes. When you add SPLADE to a system already containing BM25, you are effectively giving the lexical signal two votes against the dense…A teammate argues length normalization is irrelevant be...Retrieval & EmbeddingsHardPro previewEven with a 512 token chunking strategy, documents often vary in length due to PDF tables, code blocks, or short trailing chunks. Setting b = 0 removes the length penalty, which…A teammate benchmarked semantic chunking and measured a...RAGMediumPro previewFirst, investigate the eval corpus construction. If the data was artificially created by concatenating passages, the experiment only measured the model's ability to detect those…A teammate benchmarked semantic chunking on our internal eval set and measured a gain of 8 nDCG points. Do you ship it?EvaluationMediumAsk how the evaluation corpus was created. If ground‑truth boundaries exist because passages were concatenated, the experiment measured separability rather than the chunker’s true…A teammate cites a benchmark’s leaderboard number as pr...EvaluationMediumPro previewLeaderboard numbers can be misleading if the evaluation setup does not reflect real world retrieval challenges. If the benchmark provides the answer directly to the model, it is…A teammate proposes captioning every table in your scan...RAGMediumPro previewThe risk is that the captioning process acts as a lossy natural language compression through a vocabulary chosen by the model. Because the model summarizes the table, specific…A teammate proposes running BM25 and dense retrieval in...Retrieval & EmbeddingsMediumPro previewReciprocal Rank Fusion (RRF) helps when one retriever misses what the other finds, but it does not shrink the input to the expensive reranking stages. If the corpus is large, both…A teammate wants every answer to fetch its sources live...RAGMediumPro previewAlways live fetching is inefficient because it forces the system to pay the cost of a crawl on every single query. This is a significant waste of resources compared to traditional…A teammate wants to go from eight to thirty-two demonst...AgentsMediumPro previewDerive the decay: the probability of wrong concept mass falls exponentially, and by eight demonstrations, it is already negligible. Adding twenty four more demonstrations consumes…A teammate wants to remove PLAID’s centroid-interaction...Inference & ServingVery HardPro previewThe debate over removing the centroid interaction stage should be settled by empirical measurement rather than theoretical argument. You should compare the recall of the centroid…A teammate wants to replace the recursive loop with par...RAGHardPro previewParallel fan out is efficient for independent questions but leads to confident errors on bridged questions because the second query cannot be formulated without the first. The…A user asks your assistant about a Python 3.12 API chan...RAGMediumPro previewThe failure occurs because the embedding model pools tokens, and the version numbers are not sufficiently distinct features in the dense vector space. A weak answer suggests using…A user deletes a document at 10:00. Walk me through wha...Retrieval & EmbeddingsMediumPro previewWhen a document is deleted, the vector store first marks the document ID as 'tombstoned.' This ensures that the document stops appearing in search results immediately, as the…A user found a way to make your production chatbot say...Security & SafetyMediumPro previewThe instinct under pressure is to patch the exact string that triggered the incident and move on, but that fix expires the moment someone rephrases the same attack. A role…A user gets two different, conflicting answers for the same query in the same session. How do you triage this?RAGMediumBefore attempting to edit prompts or ranking functions, you must determine if the variance is due to the model's decoding process or the retrieval system. By pinning the index and…A user reports high tail latency at peak traffic. Walk...Inference & ServingMediumPro previewAt scale, high tail latency is most commonly caused by the scheduler packing more requests per step to maintain throughput as QPS rises, which increases per step latency and…A user reports that the model refuses ‘how do I kill a...Security & SafetyHardPro previewTo address the false refusal, first confirm the issue is reproducible on a held out eval set. Next, inspect the safety training data to see if the vocabulary cluster around 'kill'…A user reports that your MoE API returns different outp...Inference & ServingHardPro previewIn Mixture of Experts (MoE) models, token dropping is often batch dependent. If a prompt is processed alongside other high traffic sequences, the experts it requires may be…A user searches for a twin bed and gets nothing useful....Retrieval & EmbeddingsMediumPro previewTo diagnose why a search for 'twin bed' yields no useful results, you should systematically partition the potential failure points. First, check the posting count for each query…A user sends a 10,000-token system prompt. Your TTFT is...Inference & ServingHardPro previewFixing a high Time To First Token (TTFT) for long prompts requires addressing both architectural and scheduling bottlenecks. First, implement chunked prefill, which allows the…A vendor claims their new model has a 128k context wind...EvaluationHardPro previewVendor provided aggregate accuracy numbers are often misleading because they mask position specific performance drops. To verify the window, you should run a synthetic key value…A vendor pitches a multilingual retrieval encoder at 27...Retrieval & EmbeddingsMediumPro previewA simple comparison of parameter counts is misleading. One must break down the architecture; for instance, if both models share the same hidden dimension and layer count, the…Accuracy dropped six points after a generator upgrade w...LLMOps & ProductionHardPro previewStart by ruling out the retriever; since recall@k is computed against the retriever and it remains unchanged, it is likely not the source of the drop. Next, examine parse and…Accuracy on the original set is 60.0% and on the permut...EvaluationHardPro previewAggregate accuracy is a poor measure of robustness because it obscures individual instance level changes. If 'p' is the rate of correct to wrong flips and 'q' is the rate of wrong…Adjudicate the debate between using RAG for small models versus generative retrieval for large models, and explain what changes if the corpus grows from 10^6 to 10^8 chunks.System DesignVery HardThe debate is resolved by the three store split: the payload, the index, and the model. RAG is effective because it keeps the payload outside the weights. Generative retrieval…After a prompt change, faithfulness rose from 0.70 to 0...EvaluationHardPro previewWhen a prompt change significantly increases faithfulness (from 0.70 to 0.93), it imposes heavy grounding pressure on the model, forcing it to suppress ungrounded claims and rely…After a prompt change, faithfulness rose from 0.70 to 0...EvaluationHardPro previewWhen faithfulness increases, the system becomes more strictly grounded in the provided context. If the corpus is stale or contains errors, the model is forced to inherit those…After a vector-store migration, your nightly factuality...LLMOps & ProductionHardPro previewTo quickly isolate the issue, look at the faithfulness score, which is independent of the retrieval source. If faithfulness remains consistent while factuality drops, the…After adding GRPO with length-normalized rewards, your...Training & Fine-tuningVery HardPro previewTreating exploding chain of thought length as evidence of "the model learning to think harder" mistakes a training artifact for a capability gain, and it's an expensive mistake…After deploying credibility weighting, your diversity d...RAGHardPro previewCredibility weighting boosts documents with the most corroborating sources, which are typically found in the dominant cluster. This reinforces the ranker's preference for that…After distillation your 8B model recovers MMLU well but...EvaluationHardPro previewMulti step reasoning often depends on specific layers within the residual stream that accumulate state. If layers were pruned based on general cosine similarity, reasoning…After shipping chunk-level KV-cache reuse, accuracy reg...Inference & ServingHardPro previewWhen chunks are cached in isolation, the model loses the ability to perform cross document attention, which is essential for comparison tasks. Single fact lookups remain…An A100 has 108 SMs. Your kernel launches 109 thread bl...Inference & ServingHardPro previewWith 108 SMs, 108 blocks execute in the first wave. The 109th block must execute alone in a second wave, utilizing only 1/108th of the GPU's capacity. This makes the total…An attribution classifier has 95% precision on a benchm...EvaluationMediumPro previewThe issue is a mismatch between the benchmark's construction and the production environment. Because the benchmark's ground truth documents are all genuine, the classifier never…An audit reports mean token overlap with copyrighted wo...EvaluationHardPro previewEvaluating copyright risk using mean token overlap is fundamentally misleading. Model memorization follows a bimodal distribution: the vast majority of generated sequences exhibit…An EAGLE draft module trained on general chat data is d...LLMOps & ProductionHardPro previewWhen a target model is updated, the draft module must be re aligned to match the new output distribution. The immediate solution is to perform a short fine tuning run (e.g., 200M…An embedding lookup for a 50,000-vocabulary model runs...Inference & ServingVery HardPro previewFirst, sort tokens by index within each batch so that consecutive GPU threads access nearby rows, which partially amortizes the waste from 128 byte burst sections. Second,…An engineer proposes replacing one FFN layer with a ban...System DesignHardPro previewThe primary concern is that depth wise convolutions have an arithmetic intensity of approximately k/2, which is well below the hardware ridge point. While the replacement might…An engineer says: we located this model’s induction heads, and on this answer the top one attends to chunk 4, so the answer is grounded in chunk 4. Do you accept that?EvaluationHardThe attention weight is not exclusive evidence of use. Because the final output is a margin over 1,024 head terms plus the direct path, one well behaved addend does not determine…An engineer shows you an attention heat map with most o...RAGHardPro previewAttention heat maps are not reliable indicators of whether a model actually 'read' or 'overrode' information based on a specific context chunk. It is important to distinguish…An engineer wants to replace the majority-vote counter...EvaluationHardPro previewA three point improvement on 500 questions is likely within the margin of error. Beyond the statistical weakness, replacing a deterministic counter with an LLM selector introduces…An engineering lead argues against building KV-cache re...Inference & ServingHardPro previewWhile the lead is correct about the arithmetic regarding single request latency, they are ignoring the impact on fleet wide capacity. A significant cut in prefill FLOPs allows a…An erasure request names a customer. Legal wants them r...Data, Privacy & LegalVery HardPro previewThe probe provides factual evidence that the PII exists, which contradicts the ML lead's reliance on a regex. Since unlearning requires an enumeration you cannot produce and…At 1024 GPUs, would you use FSDP alone or combine it wi...System DesignVery HardPro previewScaling to 1024 GPUs requires hierarchical parallelism. FSDP across the entire cluster would result in brutal latency due to inter node InfiniBand speeds during AllGather…At inference time, how does the GQA KV head count inter...Inference & ServingHardPro previewIn a tensor parallel inference setup, each shard must hold complete KV heads to function correctly. If the number of KV heads (HKV) is not divisible by the TP degree, the system…At what batch size does an attention kernel transition...Inference & ServingVery HardPro previewThe crossover from memory bound to compute bound occurs when the FLOPs per attention step (approximately 2 B T d) divided by the bytes loaded (approximately 2 B T d + B d^2)…At what point does tensor parallelism overhead exceed i...Training & Fine-tuningHardPro previewCommunication overhead becomes the bottleneck when tensor parallelism crosses NVLink boundaries, where cross node bandwidth is significantly lower than intra node bandwidth.…At what point does the AllReduce become the bottleneck,...Training & Fine-tuningHardPro previewThe bottleneck is defined by the compute to communication ratio. When the communication overhead of AllReduce dominates the compute time, the system is communication bound.…Autoregressive generation is coherent but has a structu...LLM FoundationsMediumPro previewThe strength and the weakness of autoregressive generation come from the same property: each token is generated conditioned on everything generated before it. That's what gives…Autoregressive generation is memory-bottlenecked at batch size 1. What are the fundamental architectural alternatives?Inference & ServingMediumAutoregressive (AR) generation is fundamentally limited by memory bandwidth because each token generation requires loading the entire model weight set. Diffusion models offer an…Bagging versus boosting — when does one fail catastroph...Training & Fine-tuningMediumPro previewBoth are ensemble methods that reduce error relative to a single tree, but through opposite mechanisms — and that mechanism is exactly what predicts how each one breaks. Bagging…Bayesian versus Frequentist A/B testing — which do you...EvaluationHardPro previewThe two paradigms answer genuinely different questions, and the difference is exactly what determines which fits a model rollout better. Frequentist testing requires committing to…Before deploying a specific model to a specific GPU, ho...System DesignVery HardPro previewStart with the memory budget, because a model that doesn't fit makes every other question moot. Weight memory is roughly 2 bytes per parameter in bf16, or about a quarter of that…Beyond a single RAGAS faithfulness score, how do atomic...EvaluationHardPro previewA single aggregate faithfulness number, however it's derived, hides a decision that materially changes what it means: what happens to claims the retrieved context simply doesn't…Beyond deduplication and filtering, how do teams actual...Training & Fine-tuningMediumPro previewRaw web crawl frequency is a poor proxy for how much a domain should influence training, because the internet's natural distribution reflects what gets published, not what's…Beyond retrieval, what's a prompt-design technique for...LLM FoundationsEasyPro previewThe instinct to always answer is baked into how most LLMs are instruction tuned — refusing or admitting ignorance is implicitly treated as a worse outcome than producing some…Beyond the diffusion model itself, what does the produc...Multimodal & Generative MediaHardPro previewThe instinct to put all the safety logic in one place — just filter the prompt — misses that prompt and image are only loosely correlated: a prompt engineered to sound innocuous…Beyond unit tests, what other kinds of tests belong in an ML CI/CD pipeline?EvaluationMediumA model can pass every unit test and still be unfit to ship, because unit tests check that code executes correctly, not that the resulting model behaves correctly. Data validation…BM25’s tf term is a rational function. Log damping also...Retrieval & EmbeddingsHardPro previewLog damping is unbounded, meaning an adversary could theoretically outbid an honest document by simply adding more copies of a term. The rational form used in BM25 caps the…Break down the actual taxonomy behind the word "halluci...EvaluationHardPro preview"Hallucination" collapses at least two independent axes into one word, and conflating them leads to the wrong fix. The first axis is factuality vs faithfulness. A factuality…Break down the difference between factuality and faithf...RAGVery HardPro previewThese are two different failure modes that get lumped together under "hallucination." A factuality hallucination is a claim that's false relative to the real world — the model…By how much does a 0.03 exponent error affect a frontie...Training & Fine-tuningVery HardPro previewSmall inaccuracies in scaling exponents are amplified as you extrapolate further from the calibration point. At 1,000x the calibration compute (the Chinchilla scale), a 0.03 error…Can we drop the generator from 70B to 8B parameters whe...RAGHardPro previewWhen scaling a datastore by a factor of 100, the generator's job becomes significantly more difficult. The top k window will contain more noise, including near duplicate and…Can we fine-tune a 27B model on one 80GB GPU?Training & Fine-tuningMediumPro previewA 27B model requires 108GB just for the forward pass at fp32, which already exceeds the 80GB capacity of a single GPU. When accounting for training with the Adam optimizer, the…Can we point a retriever that performs well for search...Retrieval & EmbeddingsEasyPro previewA strong answer identifies the fundamental mismatch between the two tasks. Search models are typically trained to optimize for topical overlap between a query and a passage. In…Can we retrain a tokenizer and swap it into an existing...Inference & ServingHardPro previewSwapping a tokenizer is not possible without full re pretraining because the model's embedding and unembedding matrices are strictly indexed by token ID. A new vocabulary…Can you actually “unlearn” a document from a trained mo...LLMOps & ProductionHardPro previewWhile gradient based unlearning is an active research area, it lacks the guarantees of avoiding the data during the initial training. Operationally, you should maintain modular…Can you evaluate a prompt without labels?EvaluationMediumPro previewSensitivity and accuracy are negatively correlated, which allows a correlation to license an ordering over candidates, but the residual error prevents it from providing a precise…Can you have an agentic control loop with no LLM calls...AgentsVery HardPro previewPreview only -- unlock to read the worked answer.Can you modify speculative decoding to work without a s...Inference & ServingHardPro previewMethods like Medusa eliminate the need for a separate draft model by adding multiple prediction heads to the target model. Each head predicts a token at a specific lookahead…Can you replace a 70B generator with a 7B model plus a vector store?RAGMediumTo evaluate this, split the problem: retrieval provides factual content, but the generator must still possess the reasoning competence to process the retrieved information. A…Can you satisfy a right-to-erasure request by deleting...Data, Privacy & LegalMediumPro previewLeaving the vector in the index means the data still exists in a system you have claimed does not hold it, which violates compliance requirements. You must tombstone the vector…Can you use a Transformer's attention weights as a meas...EvaluationVery HardPro previewAttention weights do pass through a softmax and do sum to one, which makes it tempting to read them as a probability distribution over "where the model is looking" — and by…Cerebras uses μP, DeepSeek does not. How would you choo...Training & Fine-tuningMediumPro previewThe choice depends on your research goals. μP requires a very clean implementation, including per layer learning rates and specific attention scaling, but it pays off…Choose k for a system you have never seen, without a gr...RAGHardPro previewBy calculating the log slope c from the recall curve and the penalty β from the accuracy drop of a single distractor, you can mathematically derive the optimal k. While the…Compare IN2 training to DIFF Transformer as fixes for l...Training & Fine-tuningHardPro previewThe mechanistic difference lies in where the fix is applied: IN2 is a data level intervention that forces the model to learn position agnostic representations, whereas DIFF…Compare QK-norm and soft-capping. When would you choose...Training & Fine-tuningMediumPro previewQK norm is generally preferred because it addresses the root cause, adds minimal parameters, improves perplexity, and enables higher learning rates. Soft capping is simpler…Compare the major vector databases — what actually deci...Retrieval & EmbeddingsMediumPro previewThe real decision axes are scale, ops capacity, budget, and whether hybrid search needs to be native. A fully managed, serverless option like Pinecone removes infrastructure…Compare the retrieval cost of a hop-by-hop LLM search l...RAGHardPro previewIn a hop by hop LLM search (ToG), the cost scales with the number of hops (h) and the beam width (w) because the LLM is re invoked at every step of the beam. In contrast, a plan…Compliance now bans any personal data from entering the...LLMOps & ProductionHardPro previewZeroing out the privacy axis distorts every model’s aggregate area for a risk that no longer exists, while silently dropping the axis erases the historical record that the…Compliance now requires every generated claim to cite a...System DesignHardPro previewExplain that the citation span and the retrieval unit need not be the same object. Index the corpus at sentence or proposition granularity for scoring, then expand each retrieved…Compliance now requires every prompt change to ship wit...LLMOps & ProductionHardPro previewDo not pit process against accuracy. Acknowledge that a rewriter can escape local optima, but ensure the reported gain is validated on a held out split. By refining the rewriter's…Compliance requires a document to be unreachable within fifteen minutes of a takedown notice. Our generative retriever compacts weekly. The ML lead says add the docid to a decode-time blocklist and we are done; the compliance lead says that is not deletion. Adjudicate.Data, Privacy & LegalVery HardWhile a blocklist satisfies the fifteen minute unreachability SLA for the retrieval path, it fails to remove the information from the model's parametric memory. The model could…Compliance requires generated claims to cite a span no...RAGHardPro previewThe conflict arises from conflating the citation unit with the retrieval unit. By indexing at a granular level, you maintain high retrieval precision and satisfy compliance…Compliance requires that a retracted medical claim neve...Security & SafetyHardPro previewThe binding constraint is provability, not accuracy. Model editing only lowers the probability of a string; it does not remove the capability, and weight matrix analysis cannot…Compliance requires that a retracted medical claim neve...Data, Privacy & LegalVery HardPro previewThe colleague's proposal to use MEMIT for compliance driven retractions fails because the binding constraint is legal provability and auditability, not statistical generation…Compliance requires that a reversed legal standard be r...Security & SafetyHardPro previewThe conflict arises from conflating three distinct requirements: the assistant must provide the current rule, it must not assert the old rule, and the old rule must be physically…Compliance requires that every claim be traceable to a...Security & SafetyHardPro previewAdding an instruction to the system prompt is insufficient for strict compliance because it does not enforce a hard constraint. A robust solution requires a verification…Compliance requires that every claim in an answer be tr...RAGVery HardPro previewAdding 'answer only from the provided context' to a system prompt is a common technique to guide model behavior, but it should not be mistaken for a formal control. Prompts are…Compliance says the reversed legal standard must be rem...Data, Privacy & LegalVery HardPro previewThis dispute conflates three distinct system requirements: 1. Answering correctly with the active legal rule. 2. Preventing the model from outputting the superseded rule. 3.…Compliance wants the embedding model frozen for three y...Data, Privacy & LegalMediumPro previewFreezing the encoder does not guarantee reproducibility because the corpus changes over time; only a corpus snapshot can reproduce a past result. Satisfy compliance by versioning…Compliance wants zero unsupported claims. Product shows...System DesignVery HardPro previewTo adjudicate this, you must derive the exchange rate between false claims removed and true claims surrendered. Zero unsupported claims does not guarantee truth; it merely caps…Compute throughput scales 10,000x from K20 to H100 but HBM bandwidth scales only ~100x. What does this imply for algorithm design going forward?Inference & ServingHardBecause compute throughput has scaled much faster than memory bandwidth, the arithmetic intensity threshold for being compute bound has risen significantly. Operations that were…Context windows are a million tokens now. The platform...RAGVery HardPro previewArbitrate this dispute using arithmetic rather than abstract principles. The platform team is correct that a million token context window can technically accommodate 200 chunks of…Context windows are a million tokens now. Why not paste...RAGHardPro previewWhile skipping a vector index, embedding model, and retrieval stack seems appealing, it introduces prohibitive computational costs and accuracy trade offs. The prefill processing…Corpus is about to grow 10×. One engineer wants to wide...Retrieval & EmbeddingsHardPro previewWidening k on a flat index will cause latency to regress, and building a full three stage funnel (reclustering and validation) is too time consuming for a single sprint. The most…Cross-encoders are more accurate. Why not use one for r...Retrieval & EmbeddingsMediumPro previewThe primary barrier to using cross encoders for retrieval is the arithmetic of computational cost. A cross encoder requires 2P (Lq + Lp) FLOPs per pair, which, when applied to a…DCLM-baseline filters 240 trillion tokens down to 3.8 t...Data, Privacy & LegalHardPro previewAggressive quality filtering can become a capacity constraint that limits the scale of training runs before compute itself becomes the bottleneck. A senior engineer recognizes…Debugging backprop through a CNN with max pooling, you...Training & Fine-tuningMediumPro previewVanishing gradients and this look similar on a dashboard — weights not updating — but the mechanism is completely different, and confusing the two leads to the wrong fix.…Decode was 90% of latency in the last review, and someo...Inference & ServingHardPro previewAt production batch sizes, the dollar share of decode is often significantly lower than its latency share. Swapping to a smaller model only reduces the weight read portion of the…DeepSeek R1 found that process reward models did not ou...Training & Fine-tuningHardPro previewProcess reward models (PRMs) require dense, step level supervision that is costly and often leads to reward hacking, where the model learns to game the grading rubric. Outcome…DeepSeek-V3 claims 'auxiliary-loss-free balancing' but...LLMOps & ProductionVery HardPro previewThe online bias (bi) replaces the batch level auxiliary loss by reactively adjusting expert attractiveness without adding a differentiable loss term to the training objective.…DeepSeek-V3 claims to be auxiliary loss-free but still...LLM FoundationsHardPro previewThe distinction is meaningful from an engineering perspective. The traditional batch level auxiliary loss has a large coefficient and causes significant gradient interference…DeepSeek-V3 has no tensor parallelism. Why not?System DesignMediumPro previewDeepSeek V3 uses expert parallelism rather than tensor parallelism (TP). Because expert MLP layers dominate the parameter count in a 671B MoE model, distributing these experts…Derive DPO from first principles.Training & Fine-tuningVery HardPro previewTo derive DPO, start with the KL regularized RL objective. First, find the non parametric optimum for the policy. Second, solve for the implied reward function that leads to this…Derive HNSW from a skip list and determine the number of layers for ten million vectors.Retrieval & EmbeddingsHardTo derive HNSW from a skip list, you substitute the skip list's total order with a proximity graph structure. The halting test is modified such that the search stops when no…Describe a case where recomputation-for-speed makes the...Inference & ServingHardPro previewIf an operation is compute bound (with an arithmetic intensity above the ridge point), the compute units are already fully saturated. Adding recomputation FLOPs forces the…Describe continuous batching and why it is preferred ov...Inference & ServingMediumPro previewStatic batching requires waiting for all sequences in a batch to complete before accepting new requests, leading to significant inefficiencies as the batch must be padded to the…Describe the three policy roles in GRPO and when each o...Training & Fine-tuningMediumPro previewIn GRPO, πθ is the primary optimization target and updates every inner step. The πold policy acts as the importance weight anchor and is updated only once per outer iteration…Describe three concrete Human-in-the-Loop implementatio...AgentsHardPro previewThree patterns, and they differ in exactly where the pause sits relative to the risky action: Pre execution approval — before a genuinely irreversible action (send, delete, pay),…Describe zero-bubble pipelining and what it costs to im...Inference & ServingHardPro previewThe key insight is that the backward pass has two independent phases: B (activation gradients, required by earlier stages) and W (weight gradients, executable anytime after the…Design a production serving stack for a 7B chat model t...Inference & ServingHardPro previewTo design a production serving stack for a 7B model at this scale, one must first clarify the operational context, specifically whether the workload is interactive or batch…Design a retrieval-augmented assistant for our internal...RAGMediumPro previewWhen designing a documentation assistant, avoid immediately jumping to vector database selections or specific chunk sizes. Instead, begin by establishing the five core design…Design a serving system for a 7B chat model that needs...Inference & ServingHardPro previewTo design this system, you must first calculate the peak memory requirements by accounting for the model parameters and the KV cache at the required batch size. You need to…Design a word embedding specifically for query expansio...Retrieval & EmbeddingsHardPro previewTo design an embedding for query expansion, the target distribution must consist of terms found in relevant documents. Supervision can be derived from query logs with human…Design an AI system for a client with a strict overnight processing window.System DesignHardWork backwards from the SLA, not forwards from the model. Start with total volume, the pass through rate expected at each pipeline stage, the throughput each stage needs to…Design an automated spike detection and rollback system...LLMOps & ProductionVery HardPro previewAutomate Tier 1 actions such as skipping batches when loss ema ratio exceeds 2.0 and halting immediately if nan frac is greater than zero. For Tier 2 events, page the on call…Design an embedding-based system that serves similarity...System DesignVery HardPro previewAt a billion users, several decisions that don't matter at smaller scale become the entire design. Embedding model: two tower architecture. Users and items are encoded into the…Design an eval suite that simultaneously detects regressions in safety and helpfulness after any data update.EvaluationHardA robust eval suite should include a fixed red team set of approximately 500 harmful prompts to measure safety recall and a fixed borderline set of 500 benign but risky prompts to…Design an evaluation protocol that catches calibration...EvaluationHardPro previewMaintain a calibration benchmark consisting of 500 1,000 factual multiple choice questions with verified ground truth. After each RLHF checkpoint, measure the Expected Calibration…Design retrieval for a 100 million-document corpus serv...System DesignVery HardPro previewWhen designing a large scale retrieval system, the first step is to perform compression arithmetic based on the provided constraints. For a 100 million document corpus, you must…Design the core generative model for a text-to-image sy...Multimodal & Generative MediaVery HardPro previewThe forward/backward diffusion framing is worth internalizing precisely because it decouples two things that are easy to conflate: the forward process is a fixed, non learned…Design the fusion stage for a system retrieving text pa...System DesignHardPro previewThe decision hinges on the trade off between computational cost and the need for cross modal reasoning. Score fusion is highly efficient (O(1) per candidate), whereas attention…Design the parallelism strategy for a 100B dense transf...System DesignHardPro previewFor a 100B dense transformer, the model size at bf16 is 200GB. By setting Tensor Parallelism (TP) to 8, each GPU handles 25GB, which fits within H100 memory without needing…Design the relational-matching step for a graph with a...RAGHardPro previewAt a vocabulary size of a thousand edge types, literal string matching fails to capture semantic nuance. Conversely, invoking an LLM for every query is prohibitively expensive at…Design the retrieval unit for a 200-page filing contain...Retrieval & EmbeddingsHardPro previewA single approach is insufficient for complex documents. Prose should be processed using standard chunking rules. Tables should be indexed as atomic units, but you must implement…Design the training infrastructure for a 70B dense mode...Training & Fine-tuningHardPro previewDesigning training infrastructure for a 70B model requires a rigorous calculation of the memory budget, accounting for parameters, gradients, and optimizer states. The choice of…Did the three Chinchilla methods agree with each other?Training & Fine-tuningMediumPro previewWhile Methods 1 and 2 were consistent, Method 3 originally showed discrepancies because the nonlinear regression converged to a local minimum. Subsequent analysis identified non…Diffusion language models generate text by iterative de...System DesignVery HardPro previewAutoregressive LLMs are locked into producing tokens strictly in order: each token's prediction depends on every token before it, so you cannot compute token 50 before token 49…Does a citation mark next to an LLM-generated sentence...RAGEasyPro previewA citation mark is not a guarantee of provenance. Research, such as the FActScore finding, demonstrates that over 30% of both correct and incorrect sentences in audited systems…Does a high ablation score for a reranker prove it is the best area for investment?RAGHardIt is critical to distinguish between the integral (total contribution) and the derivative (marginal return). While removing the reranker entirely might cause a significant drop…Does a larger context window make the reranker obsolete?RAGVery HardPro previewWhile a larger context window allows for more chunks, the marginal value of additional documents decreases as the count grows. Additionally, 'free' window space is not free in…Does moving to generative retrieval delete the vector-s...Retrieval & EmbeddingsHardPro previewThe 'deletion' of the vector store is a trade off: host RAM usage is reduced, but GPU memory usage and training costs increase. For a 10x corpus growth, the query latency remains…Does semantic chunking (splitting on meaning boundaries rather than fixed size) actually pay off in practice, or is it overkill?Retrieval & EmbeddingsHardIt depends on the corpus, and treating it as a universal upgrade is a mistake. Semantic chunking — using embedding similarity or topic shift detection to decide chunk boundaries…Does swapping in a stronger embedding model make docume...Retrieval & EmbeddingsMediumPro previewDense retrieval and document expansion are complementary mechanisms. While embedding models can map synonyms into the same vector space, they do not replace the need for sparse…Does ZeRO reduce activation memory?Training & Fine-tuningEasyPro previewA common mistake is conflating model state with activation memory. ZeRO is specifically designed to shard model parameters, gradients, and optimizer states. Activation memory is…DPO has no explicit reward model. Where does the reward...Training & Fine-tuningHardPro previewIn DPO, the reward model is implicit and is represented by the log ratio beta log(pi theta(y|x) / pi ref(y|x)). This ratio acts as the implied reward for any completion under the…DPO is often observed to reduce output diversity and pr...Training & Fine-tuningHardPro previewThe mechanism behind DPO's reduced diversity is that the gradient update forces the policy to increase the likelihood of chosen responses while decreasing that of rejected ones.…End-to-end budget for a conversational turn is 1 second...LLMOps & ProductionVery HardPro previewBy calculating the arithmetic of the budget, you can prove that keeping all operations is impossible. Distilling the rewriter to a 1B model in fp16 significantly reduces the…Estimate how long the gradient sync takes for a 70B par...Training & Fine-tuningHardPro previewTo estimate the sync time, first calculate the gradient tensor size: 70 billion parameters 2 bytes (bf16) = 140 GB per rank. The AllReduce communication volume is 2 (7/8) 140 GB =…Estimate the memory footprint of a 70B model during inf...Inference & ServingHardPro previewTo estimate the footprint, start by calculating the bytes required for parameters based on the chosen dtype. Then, add the KV cache term, which is proportional to the batch size,…Even with a clean protocol, what is the fundamental limit of human preference evaluation for assessing model quality?EvaluationVery HardThe fundamental limit of human preference is that it captures user sentiment rather than objective correctness. In tasks involving math, code, or factual retrieval, a confident…Every query in your system filters on tenant_id. A cust...Data, Privacy & LegalMediumPro previewLogical isolation via tenant filtering does not satisfy physical data residency requirements. A critical vulnerability exists in the embedding process: the source text content may…Explain how MinHash LSH works and why it runs in linear...Data, Privacy & LegalHardPro previewMinHash LSH works by creating a K dimensional signature for each document. The LSH component splits this signature into 'b' bands, each containing 'r' rows. Two documents are…Explain how MLA differs from GQA as a strategy for redu...Inference & ServingHardPro previewWhile GQA reduces the number of KV head pairs from N to K, cutting cache size by a factor of G, Multi Head Latent Attention (MLA) keeps all N heads but projects them into a C…Explain how PagedAttention works and why it matters.Inference & ServingMediumPro previewPagedAttention solves the issue of inefficient KV cache allocation by partitioning the KV cache into fixed size blocks. By using a block table to map logical tokens to these…Explain LangGraph's core concepts: State, Nodes, and Edges.Agent Protocols & ToolsMediumThree concepts, and understanding how they compose is what lets you actually build something with LangGraph rather than just describe it: State — a typed object (a dict, in…Explain MCP and A2A and when you'd use each.AgentsMediumPro previewThey're complementary layers, not competing standards. Model Context Protocol (MCP) standardizes how an agent connects to tools — a consistent interface instead of a bespoke…Explain mechanistically why RoPE contributes to the U-c...LLM FoundationsHardPro previewRotary Positional Embeddings (RoPE) encode position by rotating query and key vectors in a high dimensional space. The dot product between these vectors, which determines…Explain RoPE. How does it differ from absolute position...LLM FoundationsMediumPro previewRotary Position Embedding (RoPE) encodes positional information by rotating query and key vectors in the complex plane, such that the attention dot product between position m and…Explain speculative decoding. When does it help and whe...Inference & ServingMediumPro previewSpeculative decoding works by having a small draft model generate K token proposals in a single pass, which the large target model then verifies in parallel using a tree…Explain the difference between expert-level and device-...LLMOps & ProductionMediumPro previewExpert level balancing uses the fi Pi structure to penalize routing concentration at the individual expert level, ensuring that all experts are utilized. Device level balancing…Explain the four types of memory in production AI agent...AgentsEasyPro previewFour distinct kinds, and conflating them is where most memory designs go wrong: Working memory — the current conversation and task state, living in the context window. Fast and…Explain the kernel trick, and why does it become a scal...Training & Fine-tuningHardPro previewMany models (SVM, kernel PCA, kernel ridge regression) only need the dot product between pairs of transformed feature vectors, never the transformed vectors themselves. The kernel…Explain the KV cache and why generation has different GPU utilization characteristics than prefill.Inference & ServingMediumDuring prefill, the GPU processes all prompt tokens in parallel using large matrix multiplications, making it compute rooflined. During generation, the model produces one token at…Explain the MCP architecture — what are hosts, clients,...Agent Protocols & ToolsMediumPro previewThree layers, and the one to one relationship between clients and servers is the detail worth remembering: Host — the AI application the user actually interacts with, like a…Explain the pipeline bubble and how you would reduce it.Inference & ServingMediumPro previewThe bubble arises because during startup, later stages idle while device 0 fills them; during teardown, earlier stages idle while the last stage drains. The fraction of time lost…Explain the RLHF pipeline: what does the reward model l...Training & Fine-tuningHardPro previewIn the RLHF pipeline, human raters compare pairs of model responses, and a Bradley Terry model is used to fit a scalar reward function that predicts which response is preferred.…Explain the sinusoidal encoding formula and why 10000 i...LLM FoundationsHardPro previewThe sinusoidal encoding uses a geometric series of wavelengths to represent positions. The base of 10000 is chosen to cover up to approximately 63,000 tokens. High frequency pairs…Explain the Switch Transformer auxiliary loss and why i...LLM FoundationsHardPro previewThe Switch Transformer auxiliary loss is defined as αN ∑ i fiPi, where fi is the hard token fraction (non differentiable) and Pi is the soft router probability (differentiable).…Explain why GEMM throughput has a wavy pattern as matri...Inference & ServingHardPro previewThe wavy throughput pattern in GEMM operations is primarily driven by two performance hazards. First, discretization waste occurs when a matrix dimension is not a multiple of the…Explain why token generation is memory-bandwidth-bound...Inference & ServingMediumPro previewThe memory bandwidth bottleneck in token generation arises from the nature of the decode step. Because each step processes a single new token, the operation is essentially a…Explain ZeRO Stage 1 and why it doesn’t cost more bandw...Training & Fine-tuningMediumPro previewZeRO Stage 1 optimizes memory by sharding optimizer states. It does not increase bandwidth usage because it decomposes the standard AllReduce into a ReduceScatter (which delivers…Explain μP and why it solves the learning-rate transfer...Training & Fine-tuningVery HardPro previewIn standard parametrization, gradient signal magnitude scales with width, forcing the optimal learning rate to scale inversely with width. μP solves this by explicitly scaling…Faithfulness is 0.94 and climbing, and complaints are c...EvaluationHardPro previewWhen faithfulness metrics improve but user complaints increase, it suggests that the system is becoming more 'faithful' to incorrect or outdated information. First, estimate the…Few-shot accuracy dropped four points after we switched...RAGMediumPro previewThe drop in accuracy is likely due to the tokenizer merging the new delimiter with adjacent characters, which disrupts the pattern matching performed by induction heads. The first…Few-shot is reported to reduce prompt sensitivity, and FormatSpread reports sensitivity persisting as you add shots. Which is wrong?EvaluationMediumFew shot prompting reduces sensitivity by adding margin to the correct continuation, but it does not eliminate it. Because softmax attention normalizes across demonstrations, the…Finance wants a single number for cost per query before...Inference & ServingMediumPro previewCost per query is not a constant; it is an infrastructure spend amortized over throughput. A strong answer avoids multiplying simple per token API prices by average token counts.…Finance wants the 70B replaced by a 7B to cut serving c...RAGHardPro previewThe swap fails to reduce compute because the reading burden on the generator is proportional to the number of retrieved chunks. While a 7B model is smaller, the increased FLOPs…FineWeb outperforms C4 on benchmarks. Is that because o...LLM FoundationsHardPro previewControlled ablations show that while FineWeb uses significantly more tokens than C4, the inclusion of MinHash deduplication is the dominant factor in the performance gap.…FLAN-style models score well on benchmarks but often fe...Training & Fine-tuningHardPro previewBenchmark derived templates are often too rigid, whereas real world conversational prompts are irregular, context dependent, and underspecified. To bridge this gap, incorporate…FlashAttention does not store the full attention weight...Inference & ServingHardPro previewBecause the attention score matrix has an arithmetic intensity (AI) of approximately 1, it is memory bound. Instead of storing the massive attention weight matrix, the backward…FlashAttention-3 adds warp-specialization and uses H100...Inference & ServingVery HardPro previewIn FlashAttention 2, the online softmax update in registers can stall the next GEMM from issuing. FlashAttention 3 uses H100 specific hardware features: the Tensor Memory…For a 7B model with dmodel = 4096, how many attention h...LLM FoundationsMediumPro previewUsing 32 heads for a 4096 dimensional model provides a head dimension of 128. This is the optimal configuration because it keeps the total attention parameters constant at 4 ×…For a corpus of 10 million documents serving 2 million...RAGHardPro previewTo decide between query time rewriting and document pre expansion, you must derive the break even point. With 2 million queries per day, the cumulative cost of running an LLM for…For a fixed parameter budget, when do you go wider vs....LLM FoundationsHardPro previewDepth adds sequential composition — each layer can build on the representation the previous layer produced, which matters for tasks that need multi step reasoning. But very deep…For a large corpus, should you use document-side query...Retrieval & EmbeddingsMediumPro previewThe choice depends on the break even point between indexing costs and per query inference costs. For a corpus of 10 million documents and 2 million queries per day, the cumulative…For a RAG product’s truthfulness evaluation, what processes should run on every pull request, what should run nightly, and why?RAGHardIn a Retrieval‑Augmented Generation (RAG) system, truthfulness comprises two aspects: faithfulness (the answer stays true to the retrieved content) and factuality (the answer…For an image captioning model trained on hundreds of millions of noisy, web-scraped image-caption pairs, what data cleaning and decoding choices matter most, and how should you evaluate caption quality?Multimodal & Generative MediaMediumData quality problems in scraped image caption corpora are not random noise you can average away — they're systematic biases that a model will happily learn if you don't filter…For ML code, what's the real difference between a list,...Python & DataEasyPro previewThey differ along two axes — ordering and mutability — and each one maps onto a specific ML habit. Lists are ordered and mutable: they're what you reach for to hold a batch of…Gemma 2 applies a LayerNorm both before and after each...LLM FoundationsHardPro previewDouble norm solves the issue where sub blocks can produce large magnitude outputs even when their inputs are normalized, which is particularly problematic at very large scales. By…Generative retrieval pushes the corpus into the paramet...RAGMediumPro previewGenerative retrieval and RAG are complementary. Generative retrieval fails on private or post cutoff data and lacks citation capabilities, while RAG based indexes fail when query…Give me the back-of-envelope math for how much GPU memo...Inference & ServingMediumPro previewThe starting arithmetic is simple: parameter count times bytes per parameter. A 70 billion parameter model in bf16 (2 bytes per parameter) needs roughly 140GB just to hold the…Given 10 million chunks at 768 dimensions, which vector...Retrieval & EmbeddingsMediumPro previewA strong answer avoids recommending a specific algorithm in a vacuum. Instead, it asks for the RAM budget and the recall target. For 10 million 768 dimensional vectors, raw…Given a 143 GiB ColBERT index and a strict budget, how...Retrieval & EmbeddingsHardPro previewWhen optimizing a large index, you must approach the problem as a trade off between storage and retrieval quality. By calculating the cost per point of MRR@10, you can prioritize…Given a compute budget of 1024 FLOPs, how do you choose...Training & Fine-tuningMediumPro previewTo determine the optimal model size and token count, start with the compute formula C = 6ND. Conduct an isoFLOP sweep to identify the point where performance is maximized for your…Given a FLOP budget of 6 × 10^23, how many parameters should your model have?Training & Fine-tuningMediumTo determine the optimal parameter count, we start from the compute formula C = 6ND. By defining the loss model L = E + A/N^α + B/D^β and substituting D = C/(6N), we can…Given eighteen months of anonymized query logs, should...Retrieval & EmbeddingsHardPro previewReal query logs are superior to proxy based pseudo instructions, but they are limited by availability. Logs are corpus level, while anchors are document level, so an attribution…GPT-4-as-judge is widely used but has known biases. Nam...EvaluationHardPro previewGPT 4 as judge is a common evaluation technique, but it suffers from specific biases. Position bias occurs when the judge favors responses in the first position; this is mitigated…GPT, BERT, and T5 are all Transformers — what actually...LLM FoundationsMediumPro previewThe dividing line is bidirectionality versus causality. BERT's encoder attends in both directions at once, so a token's representation is informed by everything before and after…GPU utilization is at 80% but token generation is still...Inference & ServingHardPro previewWhen GPU utilization is high but generation is slow, it is critical to recognize that compute utilization is not the same as memory bandwidth utilization. During generation, the…GraphRAG’s paper evaluates on comprehensiveness, divers...EvaluationMediumPro previewThe metrics used in the GraphRAG paper are subjective and do not replace standardized multi hop benchmarks like HotpotQA. While the paper's metrics provide some insight into the…GRPO drops PPO’s value network. What replaces it, and w...Training & Fine-tuningHardPro previewIn GRPO, the value network is removed to save memory. The baseline is derived from the mean reward of G rollouts for a given prompt, and the advantage is the z score of the reward…GRPO maintains an old policy for importance sampling. H...Training & Fine-tuningHardPro previewIn GRPO, the importance sampling ratio (pi theta / pi old) is critical for stability. If rollouts are reused for too many gradient steps, this ratio drifts outside the typical PPO…How can you achieve the benefits of a router without ha...Retrieval & EmbeddingsHardPro previewWithout explicit labels, you can use query log stratification to measure answer quality per granularity. By categorizing queries into types (factoid, procedural, etc.), you can…How did GPT-3 build its quality classifier, and why did...Training & Fine-tuningMediumPro previewThe GPT 3 quality classifier was built by treating Reddit karma as a proxy for document quality. By using web pages linked on Reddit with three or more upvotes as positive samples…How do agents communicate with each other in a multi-agent system?AgentsMediumThe mechanism should follow how tightly coupled the agents actually are, not be picked by default: Shared state — all agents read and write one state object. Simple, and fine for…How do InPars contrastive prompting and Promptagator co...Retrieval & EmbeddingsHardPro previewThese mechanisms operate at different stages of the pipeline. Contrastive prompting attempts to improve the quality of generated pairs at the source by guiding the LLM's output…How do k-Nearest Neighbors and k-Means differ, beyond b...Training & Fine-tuningEasyPro previewThey solve unrelated problems and only share the superficial trait of a distance based hyperparameter k. k NN is supervised: it's a classification or regression method that…How do weight decay and cosine LR decay interact to imp...Training & Fine-tuningVery HardPro previewWeight decay and cosine LR decay work together by managing the loss landscape. Weight decay constrains parameter magnitudes, which reduces the dominant eigenvalue of the Hessian,…How do you actually build a test set for evaluating a R...EvaluationMediumPro previewThe strongest test sets blend three sources rather than leaning on just one. Synthetic generation — feeding documents to an LLM with a prompt like "generate questions a domain…How do you actually choose an embedding model for a RAG...Retrieval & EmbeddingsMediumPro previewFive factors, and none of them is decisive alone. Quality against cost is the obvious tradeoff — a top proprietary embedding model costs money per token but needs no…How do you actually evaluate a RAG system end to end — what metrics matter?EvaluationMediumThe reason evaluation has to split into retrieval and generation is that both produce the same visible symptom — a wrong answer — for completely different underlying reasons, and…How do you actually prove a word or sentence embedding...Security & SafetyHardPro preview"King man + woman = queen" only tests whether the embedding space has learned correct dictionary level semantic structure. It says nothing about safety, because a model can get…How do you actually train a competitive dense bi-encode...Retrieval & EmbeddingsVery HardPro previewWith labels, the central lever is negative selection, not batch size. Under a softmax style contrastive loss, a negative's gradient weight falls off roughly exponentially with how…How do you add reliable citations and source attributio...RAGMediumPro previewThe reliable pattern combines two layers, because either one alone has a failure mode. Inline citation prompting instructs the model, as part of the system prompt, to tag each…How do you address a pipeline where the correct documen...RAGMediumPro previewThe diagnosis indicates that the initial retrieval (R1) is functioning correctly because the document is present in the depth 100 candidate set. However, because the document is…How do you adjudicate a conflict between memory footpri...Retrieval & EmbeddingsVery HardPro previewWhen scaling to 500 million vectors, HNSW becomes prohibitively expensive in terms of memory (1.6 TB). IVF PQ is much more efficient (52 GB). If the product owner mandates a…How do you adjudicate a conflict between security requi...Security & SafetyVery HardPro previewUsing an LLM tagger for tenant isolation is dangerous because the cost of a false positive is a security breach (data disclosure). Unlike document type filtering, where the…How do you adjudicate a debate between increasing top-k...RAGHardPro previewIncreasing top k improves recall, but it often places more documents in the model's 'trough' of performance, which can hurt end to end accuracy. Do not guess which effect…How do you adjudicate a disagreement between engineers regarding why a specific document is not being retrieved?Retrieval & EmbeddingsHardDo not accept proposed fixes until the failure is localized. By pulling the document by ID and checking the retriever's output, you can determine if the bug is a retrieval failure…How do you adjudicate a dispute where a colleague block...Retrieval & EmbeddingsVery HardPro previewThe colleague is likely misinterpreting a controlled deletion study as a definitive architecture comparison. A well trained single vector retriever, such as ANCE, can reach high…How do you adjudicate a dispute where a license for 0.3...Data, Privacy & LegalVery HardPro previewIn a dispute between legal demands for checkpoint destruction and ML leadership claiming a 0.3% dataset portion is negligible, neither position is rigorous. A 0.3% mixing weight…How do you adjudicate a legal requirement for 'sourced...RAGHardPro previewLegal's assumption that a citation mark equals verification is technically flawed. To bridge this gap, you can implement a support check that validates the cited passage against…How do you adjudicate a proposal to fine-tune a model o...Data, Privacy & LegalHardPro previewThe proposal to move sensitive customer data from inference time prompts into model weights via fine tuning is fundamentally flawed from a compliance and privacy perspective.…How do you adjudicate a proposal to increase nlist to r...Retrieval & EmbeddingsVery HardPro previewIncreasing nlist from 4,096 to 65,536 significantly reduces the number of additions per query, which helps with tail latency. However, it also reduces the search coverage. To…How do you adjudicate a request for agentic RAG when th...AgentsHardPro previewAn agent hop adds significant latency (control call + retrieval + partial generation). If the system is already at its SLO, adding this to every query will cause a breach. The…How do you adjudicate a request to delete a sentence in...System DesignHardPro previewPlatform's proposal to save 9.8 GB and 2 ms of latency is flawed if it forces the system to prefill sections, which can increase latency by over 150 ms. The correct approach is to…How do you adjudicate a request to have an LLM extracto...Security & SafetyVery HardPro previewRefusing the feature is not an answer, as users naturally express authorization in language. The risk is that if the extractor generates the permission clause, an attacker could…How do you adjudicate a request to remove a retrieval g...RAGHardPro previewThe retrieval team's argument is that better recall pushes the crossover point, but this ignores the countervailing force of the generator team's updates, which can shift the…How do you adjudicate a request to swap an 8B model for a 30B model to improve quality while maintaining a 500ms p50 latency target?Inference & ServingHardWhen evaluating model swaps, one must distinguish between quality and latency. Latency in a decode bound system is a function of bytes moved per token and the number of tokens…How do you adjudicate a situation where a reranker has...EvaluationHardPro previewThe classifier is being graded on a decision boundary, whereas the ranking metric is concerned with the relative order within the positive class. To diagnose this, one should…How do you adjudicate a situation where context-relevan...EvaluationVery HardPro previewBecause context relevance is computed by an LLM extraction step, a score drop can be caused by either the retriever or the extractor's judgment shifting due to a model swap. You…How do you adjudicate between a Chinchilla-optimal 77B...Inference & ServingHardPro previewWhen faced with a conflict between research preferences for larger, compute optimal models and infrastructure constraints, it is essential to move the conversation from training…How do you adjudicate between a requirement for per-ans...System DesignHardPro previewWhen faced with competing technical requests, the most effective approach is to use quantitative analysis rather than seniority to evaluate the feasibility of each. For per…How do you adjudicate between a research team wanting a...RAGVery HardPro previewThe research proposal for a closed loop system risks uncontrolled drift, while the data team's 300 query set lacks the statistical power to resolve performance issues. The…How do you adjudicate between an encoder that must be i...Retrieval & EmbeddingsHardPro previewThe encoder should be blind to the accident of rendering order, focusing instead on structural roles like header to cell relationships. The leftmost key prior is a rendering…How do you adjudicate between joint end-to-end training...LLMOps & ProductionHardPro previewJoint end to end training requires re encoding the entire corpus every time the model is updated. If the corpus turns over 5% per week, the marginal cost of a model update jumps…How do you adjudicate between legal requirements for st...Security & SafetyHardPro previewWhile hard filters can over restrict and hurt recall, an access control predicate cannot be safely converted to a soft/scored version. A scored filter assigns a non zero…How do you adjudicate between research wanting to scale...Retrieval & EmbeddingsVery HardPro previewIf capacity must be held fixed as the corpus grows, the model size (P) must scale with N. Since decode steps stream P, latency becomes linear in corpus size. At 11B parameters,…How do you adjudicate between using a prompted LLM reranker and training an instruction-aware cross-encoder?AgentsHardPrompting an LLM is excellent for measuring if intent disambiguation is valuable without the overhead of building a training set. However, it shifts costs from training to per…How do you adjudicate between using output-side filteri...Data, Privacy & LegalHardPro previewOutput side filtering is insufficient as a security control because the model has already processed the restricted information by the time it generates a response. Even if the…How do you adjudicate choosing between a cheap training...Data, Privacy & LegalVery HardPro previewWhen evaluating content licenses, choosing a cheap pre training license based on favorable fair use assumptions creates severe long term operational liabilities. Once licensed…How do you adjudicate the conflict between product's de...RAGHardPro previewFull automation risks shipping incorrect claims, while full manual review negates the efficiency gains of using an automated judge. A balanced approach leverages the judge where…How do you adjudicate the request to build a new attrib...RAGHardPro previewBuilding a new judge from scratch duplicates the complex work of training a model to discriminate between silence and contradiction. Instead, reuse the existing fact checking…How do you analyze an A/B test in SQL, and what has to...Python & DataHardPro previewThe join itself has a subtlety that's easy to get wrong: outcomes have to be attributed within a bounded window after assignment, not just "did this user ever convert," because an…How do you balance retrieval recall and generation cove...System DesignVery HardPro previewDo not treat retrieval and generation as a single monolithic request. Fan out for recall is relatively cheap, while passing a large k (e.g., k=20) to the generator is expensive…How do you balance the need for per-answer attribution...LLMOps & ProductionHardPro previewPer response causal attribution multiplies serving costs significantly, and exhaustive circuit analysis faces an exponential number of paths in deep models. The most practical…How do you build a custom sklearn transformer, and why...Python & DataMediumPro previewYou get there by inheriting from and and implementing two methods: , which learns whatever statistics you need from the data it's given, and , which applies those already learned…How do you build a per-response quality score for a RAG...RAGMediumPro previewIn the absence of labeled data, you can leverage the components already present in the RAG pipeline. By using an LLM as a judge, you can perform directed comparisons: checking the…How do you build a production-quality retriever with on...Retrieval & EmbeddingsHardPro previewThe process requires an unlabeled target corpus rather than more labeled pairs. The six examples serve as few shot steering for an LLM to generate synthetic queries over the…How do you build an ingestion pipeline for a RAG knowle...RAGMediumPro previewThe bug that surfaces most often in production RAG systems is stale answers after a document was clearly updated, and it's almost always the missing delete step. Naively re…How do you build safety tuning data and what is the mos...Security & SafetyMediumPro previewEffective safety tuning requires a balanced dataset containing both harmful refuse pairs and borderline positive pairs. The most common mistake is focusing exclusively on harmful…How do you calculate the FFN dimension for a SwiGLU model with a dmodel of 8192?LLM FoundationsMediumTo determine the FFN dimension for a SwiGLU model with dmodel=8192, multiply by 8/3 to get 21845.3. Rounding this to a multiple of 128 gives 21888. When finalizing this number,…How do you call LLM or embedding APIs efficiently from...Python & DataHardPro previewFour layers, roughly in order of how much they help. Reusing a across calls instead of opening a new TCP connection every time gives a real but modest speedup. The bigger win for…How do you choose a chunk size for a RAG system?RAGEasyPro previewChoosing a chunk size based on 'what everyone else uses' (e.g., 512 tokens) is unfalsifiable and risky. Instead, identify the atomic unit of your corpus that must remain intact…How do you choose a chunk size?RAGMediumPro previewChoosing a chunk size is a downstream decision based on the specific requirements of your corpus. You must first identify the atomic unit that needs to survive intact, such as a…How do you choose b and r to hit a specific threshold w...Data, Privacy & LegalVery HardPro previewTo achieve a sharp transition at a target similarity threshold, first set K = b × r based on your memory budget. The threshold is approximately (1/b)^(1/r). Increasing 'r'…How do you choose between data parallelism, tensor para...Training & Fine-tuningHardPro previewData parallelism (specifically ZeRO 3) shards optimizer states, gradients, and parameters across replicas and is the default choice until model size exceeds per GPU memory. Tensor…How do you choose between different RL objectives like...Training & Fine-tuningMediumPro previewBoth Kimi K1.5 and DeepSeek R1 converge to similar structures—policy gradients scaled by baselined rewards with regularization. Empirical differences are largely driven by data…How do you choose between doubling the sliding window s...System DesignVery HardPro previewSearch's proposal to double the window size often fails to meet strict latency targets because the reduction in calls does not offset the document slots processed. Retrieval's…How do you choose between HNSW and IVF-PQ when scaling...Retrieval & EmbeddingsHardPro previewYou must calculate the memory footprint of each approach: HNSW Flat is far too large, and HNSW PQ is tight on memory. IVF PQ is the most memory efficient, allowing for the corpus…How do you choose dmodel and nlayers for a 13B paramete...System DesignMediumPro previewFollowing the 128 per layer rule, a 13B model typically uses a dmodel of 5120 and 40 layers. Beyond these heuristic values, you must ensure that dmodel is divisible by the tensor…How do you choose the draft model for speculative decod...Inference & ServingHardPro previewThe draft model must be significantly more efficient than the target model, ideally 10 20 times cheaper in parameter count or latency. It is crucial that the draft model is…How do you choose the few-shot examples in a RAG prompt?RAGMediumSimple similarity based retrieval is often insufficient because it does not account for the generator's specific performance. By using the generator to score candidates based on…How do you combine BM25 and dense cosine scores into a...Retrieval & EmbeddingsMediumPro previewThe primary challenge in combining BM25 and dense scores is the 'units problem': BM25 is unbounded and corpus dependent, while cosine similarity is bounded. Normalization…How do you compare two retrievers when the prompt forma...Retrieval & EmbeddingsHardPro previewWhen prompt formatting creates significant variance in accuracy, it acts as a confound that masks the true performance of the retrievers. To properly compare them, you must move…How do you convert layout parser bounding boxes into te...Retrieval & EmbeddingsEasyPro previewA strong answer begins by sorting blocks by y, then x, but immediately identifies the four assumptions required for this to work. It is critical to address how the system handles…How do you decide between allocating context window spa...RAGHardPro previewThe theory of in context learning suggests that softmax normalization means increasing the number of demonstrations does not linearly increase the update, and per head rank…How do you decide between GPT-5, Claude 4.7, and open-s...System DesignMediumPro previewThe decision starts with a question that has nothing to do with model quality: is your data even allowed to leave your own infrastructure? If a regulator or a contract says no,…How do you decide between one-hot, ordinal, label, and...Python & DataMediumPro previewThe right encoding depends on what the category means and how many distinct values it has. Unordered categories with a manageable number of levels get one hot encoding — clean for…How do you decide between proposition indexing and plat...System DesignHardPro previewThe objections regarding cost, index size, and legal compliance are distinct. Quantizing proposition vectors can reduce the index size significantly, making it cheaper than the…How do you decide between shipping a post-hoc citation...RAGMediumPro previewShipping a post hoc citation search is faster but may provide a false sense of security if the citations are not grounded in the generation process. Before deciding on the…How do you decide between spending a budget on more exp...LLMOps & ProductionVery HardPro previewThe decision should be based on the measurement of ρ, the correlation between teacher families. If at least two model families have seen the domain, then ρ < 1, and a second…How do you decide between using a ColBERT-style retriev...System DesignHardPro previewDo not defend ColBERT based on MRR@10, as a reranker will likely win that comparison. Instead, focus on the retrieval ceiling: a reranker cannot retrieve what the first stage…How do you decide between using CrAM and CAG for a RAG...RAGHardPro previewAdjudicating between CrAM and CAG requires separating the threat model from the accuracy target. CrAM performs near Oracle on targeted adversarial injections but is weak on broad…How do you decide between using dense embeddings, BM25, or SPLADE for a large corpus with mixed query types?System DesignHardDo not arbitrate based on preference; scale the arithmetic. Dense embeddings at 768 fp32 are storage heavy and often underperform on rare tokens like part numbers. BM25 is…How do you decide if a RAG-generated sentence with a ci...RAGMediumPro previewDirectly comparing a raw sentence to a source often fails because generated text frequently contains pronouns or context dependent references that are not self interpretable. To…How do you decide whether to roll back, adjust hyperpar...LLM FoundationsHardPro previewA senior approach distinguishes between recoverable spikes and unrecoverable divergence. A spike is considered recoverable if the gradient norm returns to baseline within 50 100…How do you decide which hypothesis test to run — paired...Python & DataMediumPro previewAll three test a null hypothesis against your data and report a p value: the probability of seeing a result at least as extreme as what you observed, if the null hypothesis were…How do you decide which retriever to ship if two models...Retrieval & EmbeddingsHardPro previewSet based metrics like precision@k and recall@k are insufficient for comparing retrievers because they treat all retrieved items as equally important regardless of their position…How do you decide, per query, whether to run iterative...RAGHardPro previewSince there is no standard dataset for 'needs N hops,' you should train a hop count classifier using silver labels. The decision making process must account for the asymmetric…How do you defend a semantic chunker that outperforms f...Retrieval & EmbeddingsHardPro previewTo defend your chunking strategy, you must present the arithmetic against yourself. State the standard deviation and the number of generation prompts attempted, and explicitly…How do you deploy open-source LLMs to production using...Inference & ServingHardPro previewvLLM has become the default choice for serving open weight models like Llama or Mistral because of two specific engineering wins over naive serving: PagedAttention manages the KV…How do you derive HNSW from a skip list, and how many l...Retrieval & EmbeddingsMediumPro previewThe derivation requires shifting from a linear ordering to a graph based structure. The height of the graph is determined by the probability distribution of node promotion (Pr[ℓ ≥…How do you design a model update to incorporate new inf...Training & Fine-tuningVery HardPro previewWhen forced to update weights directly, you must manage the risk of regression. Use rank constrained updates (e.g., one direction in 128) and ensure you have a replay strategy to…How do you design a model update to incorporate new kno...Training & Fine-tuningHardPro previewWhen RAG is not an option and knowledge must be injected into the weights, the primary risk is catastrophic forgetting or performance regression. You should implement a strategy…How do you design a multi-tenant AI platform where diff...System DesignVery HardPro previewMulti tenancy in an AI platform is harder than in a typical SaaS backend because the failure modes are subtler than a database query returning the wrong row — a shared system…How do you design a robust tool system for a production...Agent Protocols & ToolsMediumPro previewFive properties, and they matter more than how many tools the agent has: Precise schemas — a vague name and description leads directly to the model picking the wrong tool or the…How do you design a system to serve a 70B model at 128K...System DesignHardPro previewServing a 70B model at 128K context on two H100s requires careful memory management. After accounting for the model weights (approx. 140GB in bf16), roughly 20GB remains for the…How do you design an agentic system that costs $100/mon...AgentsHardPro previewThe reason agent cost gets out of hand faster than single call LLM cost is that it's steps times tokens times model price, and all three multiply together rather than adding. The…How do you design attention hyperparameters for a 70B model regarding head count, KV heads, and head dimension?LLM FoundationsHardThe head dimension is generally set to 128, which aligns with modern GPU warp sizes and Flash Attention block requirements. With a model dimension of 8192 for a 70B model, this…How do you design ML model serving for a multi-tenant S...System DesignHardPro previewMulti tenant ML serving fails quietly, one layer at a time, so isolation has to be designed into each layer independently rather than assumed to follow from getting one of them…How do you detect a regression in production before use...LLMOps & ProductionHardPro previewTo detect regressions proactively, you should track a quality heatmap where the rolling mean score per intent cluster is monitored using exponential smoothing. Set an alert…How do you detect and handle outliers in a Python ML pi...Python & DataMediumPro previewThere are three standard detection methods, each with different assumptions. IQR based detection flags anything below or above and makes no assumption about the data's…How do you detect and measure hallucinations in product...LLMOps & ProductionHardPro previewTwo distinct failure modes both get lumped under "hallucination": the model stating an incorrect fact with confidence regardless of context, and — specific to RAG systems — the…How do you detect and mitigate benchmark contamination...EvaluationMediumPro previewContamination happens when benchmark examples appear in pretraining data, either directly or through near duplicates, allowing a model to score high via retrieval. Detection…How do you detect and prevent reward over-optimization...Training & Fine-tuningHardPro previewTo manage reward over optimization, maintain a separate evaluation signal not used for training, such as a held out reward model, automated benchmarks, or human A/B testing.…How do you detect whether your reward model has learned...EvaluationHardPro previewTo detect if a reward model has overfit to superficial style, hold out a set of pairwise examples where ground truth is independently verifiable, such as math problems, executable…How do you diagnose a drop in recall@20 after shipping...EvaluationHardPro previewThe discrepancy occurs because the offline evaluation environment is not simulating the production filtering logic. A hard predicate mathematically bounds recall at c a (where c…How do you diagnose a p95 latency violation in a RAG pi...LLMOps & ProductionHardPro previewDo not start by optimizing components randomly. Instead, decompose the latency budget across the five design decisions. Recognize that prefill scales as 2P T while search scales…How do you diagnose a scenario where self-querying impr...EvaluationHardPro previewThis is a classic failure mode where the system is 'too confident' in its extraction. If the LLM extracts an incorrect filter, the retrieval engine returns zero results, which is…How do you diagnose a significant latency increase afte...Retrieval & EmbeddingsHardPro previewRecall and latency often move together in SPLADE, so this is typically not a bug but a consequence of query expansion. Each nonzero query dimension requires traversing another…How do you diagnose and address flat retrieval quality...Retrieval & EmbeddingsHardPro previewWhen retrieval quality remains flat across capacity, it indicates a ceiling in the labels. You should diagnose this by sampling the teacher 's' times on an audit slice and…How do you do A/B testing on prompts in production?LLMOps & ProductionMediumPrompt A/B testing works the same way as any other experiment — the part people skip is defining the success metric first. Before writing either prompt variant, decide whether…How do you efficiently read a large CSV file (multiple...Python & DataMediumPro previewA few tactics compound here. Loading only the columns you need with is the easiest win — a 50 column file where you need 5 columns means an instant 90% memory reduction.…How do you evaluate a RAG system?RAGMediumPro previewOn three separate axes, measured independently rather than as one end to end score: Context relevance — did retrieval actually find the right material for this query? Groundedness…How do you evaluate Agentic RAG systems beyond standard...EvaluationHardPro previewRAGAS style metrics like faithfulness and context precision measure the quality of one retrieve then generate pass, but an agentic system makes a sequence of decisions, and those…How do you evaluate an AI agent's performance across a...EvaluationMediumPro previewAgent evaluation needs several dimensions scored independently rather than one pass/fail number, because success and process quality can diverge in either direction: Task success…How do you evaluate the quality of an AI agent's perfor...EvaluationMediumPro previewAgent evaluation is harder than model evaluation because two questions have to be answered separately rather than collapsed into one: did it reach the right outcome, and did it…How do you fix a generative retriever that returns document IDs that do not exist in the corpus?Retrieval & EmbeddingsHardThe problem arises because the decoder's search space includes many strings that do not correspond to real documents. Training alone cannot guarantee that the model will never…How do you fix a precision-based factuality metric that...EvaluationMediumPro previewA precision based metric often fails because precision divided by a shrinking claim count trends toward a perfect score as the count approaches one true claim. By introducing a…How do you generate training data for seven languages w...Retrieval & EmbeddingsMediumPro previewSimple synthetic generation in low resource languages often leads to copied lead clauses or drift into English. A more robust approach uses a summarize then ask factorization to…How do you get the accuracy back after structured pruni...Training & Fine-tuningMediumPro previewStructured pruning inherently leaves a model with lower accuracy than the original. Knowledge distillation is used to recover this performance by training the student to match the…How do you guarantee the output is drawn from the targe...Inference & ServingHardPro previewTo ensure the final output is statistically identical to the target model's distribution, speculative decoding employs a rejection sampling scheme. When a token is proposed by the…How do you handle a client asking for something you thi...System DesignHardPro previewNot by refusing outright, and not by quietly building what I think is right instead either. I get back to the outcome first — what has to be true at the end for this to have…How do you handle a compliance requirement to remove a...Security & SafetyVery HardPro previewCompliance requirements often conflate three things: answering with the current rule, not asserting the old rule, and making the old rule unrecoverable from weights. Retrieval…How do you handle a customer erasure request (GDPR righ...Data, Privacy & LegalVery HardPro previewWhen a divergence probe extracts an individual's name, employer, and city from a fine tuned model, it confirms a privacy violation under data protection frameworks like GDPR…How do you handle a document corpus where half the valu...RAGMediumPro previewThis is an underrated problem, especially in regulated industries where the answer is often sitting in a rate table or a term sheet rather than in prose. Naive text extraction…How do you handle a latency budget cut when 40% of quer...System DesignVery HardPro previewThe constraint change invalidates the previous design. Since the traffic has shifted to new SKUs where the model's internal weights are worthless, you must prioritize retrieval…How do you handle a legal requirement to treat all C2PA...RAGHardPro previewThe solution is to avoid a binary reject/accept gate by categorizing the failure. Benign re encoding is often recoverable via cloud manifests or corroboration, whereas a signature…How do you handle a query that needs information from multiple documents?System DesignHardA single retrieval call only surfaces documents relevant to the query as a whole — it can't answer something that genuinely requires combining facts scattered across separate…How do you handle a request to standardize on a single...RAGHardPro previewStandardizing on a single mechanism like RA RAG or CAG across disparate content pools is often impractical. For example, RA RAG may fail for pools lacking source identity, while…How do you handle a requirement for near-real-time searchability when document expansion generation is too slow?Retrieval & EmbeddingsHardTo satisfy both the need for immediate searchability and the requirement for full vocabulary coverage, decouple the indexing process. Index new documents with their literal text…How do you handle a security requirement for exact tena...System DesignVery HardPro previewWhen an exact scan becomes too expensive due to data volume, you must change the architectural approach rather than the security constraint. By partitioning the index by tenant,…How do you handle aggregate questions like 'how many' w...RAGMediumPro previewRecall@20 measures if relevant passages appear, but an aggregate query requires all M items. If M is large, the retrieval pipeline's coverage ceiling is too low to provide an…How do you handle an assistant that cites deprecated do...RAGMediumPro previewA strong approach prioritizes the update shape—a small fraction of a fixed corpus on a two week cadence—and selects a retrieval method that aligns with this frequency. Fine tuning…How do you handle code licensing in a pre-training corpus?Data, Privacy & LegalMediumPro previewManaging code licensing requires a proactive approach at the repository level. Engineers should filter for permissive licenses such as MIT, Apache, and BSD before extracting data.…How do you handle document updates in a production RAG...LLMOps & ProductionMediumPro previewWhen a source document changes, the index needs two things to happen together: the old chunks tied to that document need to come out, and freshly generated chunks need to go in.…How do you handle errors and hallucinated tool calls?Agent Protocols & ToolsMediumPro previewThree separate failure modes get lumped together as "tool calling errors," but each needs its own fix: Hallucinated tools — the model invents a tool name that was never…How do you handle it when multiple agents in a system d...AgentsMediumPro previewDisagreement between agents needs a resolution mechanism chosen for the stakes of the decision, not a single default applied everywhere: Voting — simple majority among agents,…How do you handle knowledge conflicts in Agentic RAG wh...EvaluationHardPro previewRetrieved chunks contradicting each other is a routine occurrence once a knowledge base spans multiple document versions, authors, or update cycles — an older doc quoting one…How do you handle LLM provider outages in production?LLMOps & ProductionHardPro previewEvery major LLM provider has outages, so a production system needs to plan for that rather than treat it as an exception. The standard pattern is a circuit breaker: once a primary…How do you handle missing values in Pandas without intr...Python & DataMediumPro previewThe rule that governs everything else here is: whatever number you use to fill a gap, it must have been learned from training data only. In practice that means checking to see how…How do you handle prompt injection attacks in productio...LLMOps & ProductionHardPro previewPrompt injection comes in two flavors: direct, where a user explicitly tries to override the system prompt, and indirect, where malicious instructions are hidden inside a…How do you handle the alignment problem in a production AI agent — making sure it reliably does what it's supposed to?Security & SafetyHardMost of what shows up as "misalignment" in a production agent isn't a deep values problem — it's a goal specified vaguely enough that the model fills the gap with something the…How do you handle tool failures and errors in a product...Agent Protocols & ToolsMediumPro previewTools fail constantly in production — rate limits, timeouts, bad inputs, unexpected response shapes — and the handling needs layers rather than one blanket "retry": Structured…How do you identify the crossover point where retrieval...EvaluationHardPro previewSince the outcome acts as the label, you do not need manual relevance annotations. Use resolved tickets, human feedback, or calibrated LLM judges to score the outputs. If entities…How do you implement a self-correcting RAG loop where t...AgentsHardPro previewThe core design decision in a self correcting loop is to diagnose before retrying. Generating an answer and just re running the same pipeline again if it scores poorly wastes a…How do you implement automated rollback for a model tha...Inference & ServingMediumPro previewManual rollback fails for a boring reason: production problems often surface gradually, during off hours, and by the time a human notices a dashboard trending the wrong way, the…How do you implement Human-in-the-Loop for a production...AgentsMediumPro previewThe gating question for HITL isn't "is this task hard" — it's "can this be undone." An agent that's very confident about sending an email or processing a payment still needs a…How do you implement long-term memory in an AI agent, c...AgentsMediumPro previewThe pattern that works reliably: after a conversation ends, extract the facts worth keeping rather than storing the raw transcript, embed those extracted summaries, and store the…How do you implement model routing in production LLM sy...Inference & ServingMediumPro previewMost production LLM traffic skews simple — routine lookups, FAQ style questions, short classification tasks — and none of that needs the most capable, most expensive model…How do you implement multi-index RAG where different qu...RAGHardPro previewRather than one shared index for every kind of content, multi index RAG splits the knowledge base by domain — products, policy, finance, engineering, news — because each has…How do you implement multi-tenant access control in a RAG system?LLMOps & ProductionHardVector similarity search is permission blind by construction — it finds semantically similar content regardless of who's allowed to see it. Left unaddressed, that means a query…How do you implement observability for an agentic AI sy...EvaluationMediumPro previewObservability for an agent has to answer both "why did it do that" and "what went wrong," and neither question is answerable from the final output alone. Three layers, each…How do you implement persistent memory for an agent acr...AgentsMediumPro previewAn agent has no memory across sessions unless something outside the model gives it one — every new session starts from nothing. The standard pattern: 1. At the end of a session,…How do you implement query rewriting in Agentic RAG to...AgentsMediumPro previewPeople ask questions the way they'd ask a colleague — vague, conversational, full of pronouns referring back to earlier context — but vector search retrieves best against…How do you implement query routing in an Agentic RAG sy...RAGMediumPro previewRouting in an Agentic RAG system is really three separate decisions, and conflating them into "pick an index" undersells what's actually happening: Which source — a pricing…How do you implement streaming responses for an LLM app...Inference & ServingMediumPro previewStreaming's real value is psychological, not computational: total time to completion for a response is roughly the same whether you stream it or not, but a user watching words…How do you implement the principle of least privilege f...Security & SafetyMediumPro previewThe design principle is the same one that governs database roles, and it should be applied with the same discipline: start at zero access and grant only what the specific task…How do you justify the use of hand-written exemplars in...Retrieval & EmbeddingsMediumPro previewThe argument for 'unsupervised' pipelines often ignores that they require at least one positive exemplar to function. Adding two or three additional hand written examples is a one…How do you keep a RAG knowledge base fresh as source do...RAGHardPro previewFreshness in production is a combination of mechanisms, not any single fix. Change detection — file hashing or checking last modified timestamps — triggers re indexing only for…How do you know your prompt change didn't break anything?EvaluationMediumPro previewA fixed golden set with a regression gate in CI, the same discipline you'd apply to any other code change. Prompts are deployable artifacts, not casual text edits — they need to…How do you maintain a fixed-size, uniformly random samp...System DesignHardPro previewThe instinct to buffer a window and call a dataframe sampling function fails outright: the stream is unbounded, so buffering "the last hour" either blows memory once volume grows…How do you manage agent state in long-running autonomou...AgentsHardPro previewThree separate problems show up once a run stretches from minutes to hours or days, and each needs its own fix: Crash recovery — persist the full state (current step, completed…How do you manage the three policies under model-parall...Training & Fine-tuningVery HardPro previewAll three policy copies must utilize identical tensor parallel and pipeline parallel sharding. To optimize memory, πref can be quantized to int8 and co located on the same device…How do you maximize throughput for a high-traffic LLM s...Inference & ServingHardPro previewTo maximize throughput, start by profiling memory to calculate the maximum batch size that fits in HBM. Use continuous batching to approach this limit. Apply techniques like…How do you measure whether an AI system you built is actually worth what it costs?LLMOps & ProductionMediumROI conversations about AI systems go wrong most often by counting the wrong side of the ledger — teams tally the sticker price API cost and stop there, ignoring engineering time…How do you measure whether speculative decoding is actu...EvaluationMediumPro previewTo validate the effectiveness of speculative decoding, one must track the mean acceptance rate (alpha) across different request classes to identify performance degradation.…How do you monitor a GenAI app in production?LLMOps & ProductionMediumPro previewA GenAI app can fail in ways a normal service dashboard won't catch — the API can be perfectly healthy while the answers quietly get worse — so monitoring has to cover quality…How do you monitor an LLM system in production?EvaluationHardPro previewAcross four layers, each watched independently rather than folded into one dashboard: Inputs — drift in the distribution of what's actually arriving. This is the earliest warning…How do you monitor and debug AI agents specifically, as...AgentsMediumPro previewWhat makes agent debugging different from debugging a single LLM call is that a bad final answer can originate at any of several points in a chain of steps, and a log of just the…How do you pick the learning rate for a new 70B model?Training & Fine-tuningHardThere are two primary paths. The first is standard parametrization: fit a power law on the optimal learning rate versus width from a small scale pilot, extrapolate to the target…How do you plan the aspect ratio and parallelism for a...System DesignVery HardPro previewGiven the high speed NVLink within nodes and slower inter node InfiniBand, you should avoid tensor parallelism across nodes. Instead, use 8 way tensor parallelism within each 8…How do you prevent an LLM from reproducing verbatim mul...LLM FoundationsMediumPro previewWhen a language model outputs copyrighted text verbatim, it is critical to address both the immediate emission and the underlying dataset exposure. Post processing controls, such…How do you prevent sensitive data from leaking through...Security & SafetyMediumPro previewSensitive data can leak at either end of a request — a user can phrase a query to extract data they shouldn't have, or a model can surface something sensitive in its answer even…How do you provision inference hardware for a 70B-total...Inference & ServingHardPro previewStart with total parameters to set the memory floor; at BF16, this requires at least two H100 80GB GPUs with expert parallel sharding. While latency per token is determined by the…How do you reconcile a requirement for citations with a...AgentsHardPro previewBoth positions are satisfiable. By keeping the retrieval tool within the agentic loop and ensuring it returns source IDs, you satisfy the compliance requirement for citations.…How do you reconcile the differing results between Deep...Training & Fine-tuningHardPro previewDeepSeekMath's reliance on PRMs was necessary because their smaller base model solved too few problems to receive useful signal from outcome rewards. At the scale of R1, the model…How do you reduce RAG latency in production toward sub-...LLMOps & ProductionHardPro previewGeneration is almost always the single biggest chunk of end to end RAG latency, so the interventions that matter most target it directly rather than shaving milliseconds off…How do you resolve a conflict between a latency budget...LLMOps & ProductionHardPro previewA nightly fine tune is an expensive, blunt instrument that pays for a full training run regardless of the number of changes and fails to guarantee the citation of current…How do you resolve a conflict where Legal requires veri...RAGHardPro previewThe conflict is resolved by moving away from a binary framing. Instead of a hard gate, assign a graded value: p=1 for cryptographically verified documents, a corroboration based…How do you resolve a search failure where BM25 returns...Retrieval & EmbeddingsEasyPro previewWhen a document is absent from posting lists due to missing keywords, it is not a ranking issue but a coverage issue. Rather than jumping to a full architectural change like a…How do you resolve the conflict between security teams...LLMOps & ProductionHardPro previewThe conflict between security requirements and compute constraints can be resolved by moving away from a binary choice. A hybrid training approach provides the best of both…How do you respond to a colleague who suggests replacing CrAM with CAG after a security failure?RAGHardBefore swapping to CAG, you must isolate the failure point. CrAM does not compute credibility; it only acts on the provided scores. If a document was correctly scored low…How do you respond to a platform lead vetoing a pseudo-...LLMOps & ProductionHardPro previewThe summarization pass is a function of the document and is therefore cacheable. In a nightly refresh, only the changed fraction of the corpus incurs costs, significantly reducing…How do you respond to a product lead who wants a 0% fla...EvaluationMediumPro previewA faithfulness checker cannot inherently distinguish between acceptable paraphrasing (bridging) and actual fabrication. If you force the flag rate to zero, the model will stop…How do you respond to a request to retrain a reranker w...LLMOps & ProductionVery HardPro previewThe reranker remains byte for byte the same size and the serving cost is identical. However, one must acknowledge the real risks: increased training FLOPs, the complexity of…How do you roll out and handle failures for an agent mo...EvaluationMediumPro previewTesting an agent before it ships and rolling it out safely are two different problems, and the rollout half is where a lot of otherwise well tested agents still get burned by…How do you run a canary deployment for a machine learni...Inference & ServingHardPro previewA canary for a normal service asks whether the new version is reliable — do requests succeed, is latency acceptable. A canary for an ML model has to ask a second question a…How do you scale an agentic system to handle thousands...AgentsHardPro previewThe core architectural move is the same one that scales any other kind of worker fleet: make the agent stateless. If an agent's state lives entirely in an external store rather…How do you set a policy for a faithfulness checker thre...EvaluationHardPro previewA single global threshold is rarely the right solution for complex generation tasks. Instead, define the policy based on the harm profile of the application. For high stakes…How do you split time-series data for validation?Training & Fine-tuningEasyPro previewChronologically, never randomly. A random split lets the model effectively train on the future and predict the past, which produces excellent validation numbers and an immediate,…How do you stop an agent looping forever?AgentsMediumAn iteration cap is necessary and not sufficient on its own — it just turns an infinite loop into a truncated failure with no useful output, which is better than a runaway process…How do you test an agent?AgentsMediumPro previewBy separating what's deterministic from what isn't, and testing each appropriately: Deterministic components — parsing, validation, the tool wrappers themselves — get ordinary…How do you test prompts before deploying to production?LLMOps & ProductionMediumTesting a prompt change well means running it through several distinct layers, each catching a different kind of failure. Functional tests check the prompt against a labeled set…How do you track and optimize LLM costs in production?LLMOps & ProductionMediumPro previewCost tracking only becomes actionable once it's granular enough to point at a specific decision. Logging total spend tells you the bill is high; logging spend by model, by…How do you use an LLM as a judge safely?EvaluationHardPro previewWith explicit awareness of its known biases, and never as the sole signal for anything that matters. The three biases worth designing around: Position bias — the judge tends to…How do you use SQL to build a feature matrix for an ML...Python & DataMediumPro previewThe pattern that scales best is one CTE per feature family , joined together at the end on the entity key, rather than one enormous query trying to compute everything in a single…How do you validate that your domain-specific benchmark...EvaluationHardPro previewTo validate a benchmark, you must conduct a calibration study. Deploy the model on a small pilot with real practitioners and collect their satisfaction ratings and error reports.…How do you verify that rephrased tokens actually improv...EvaluationHardPro previewVerification should be performed via a controlled ablation study using identical token budgets rather than document counts. Train one model on a mix of N rephrased tokens and N…How do you version control and manage prompts in produc...LLMOps & ProductionMediumPro previewPrompts that drive production behavior deserve the same rigor as application code, not the informal treatment of a text snippet someone edits directly in a config panel. That…How do you write a recursive CTE to traverse hierarchic...Python & DataHardPro previewThe anchor and recursive members have to agree on column shape — same number of columns, compatible types — because they're combined with UNION ALL, and it's worth stating…How does a decision tree pick its splits, and why can i...Training & Fine-tuningMediumPro previewAt each node, the tree evaluates every candidate feature (and, for continuous features, every candidate threshold) and picks the split that most reduces entropy in the child nodes…How does Adaptive RAG dynamically choose between differ...RAGMediumPro previewAdaptive RAG treats retrieval strategy as a routing problem rather than a fixed pipeline. A classifier — which can be as simple as a small model or even rule based keyword…How does an agent decide when retrieved context is insu...RAGMediumPro previewThis is the step that's absent from standard RAG entirely, and it's what actually makes Agentic RAG useful rather than just RAG with extra steps. Two checks, cheap first:…How does an agent discover MCP tools at runtime, and wh...Agent Protocols & ToolsMediumPro previewThe discovery mechanism is what makes MCP genuinely plug and play, and also what makes it exploitable if left fully open. The flow: 1. The MCP client (the agent side) connects to…How does an Agentic RAG agent decide which tool to use...RAGMediumPro previewMulti tool agentic RAG works because the routing intelligence lives up front, in how each tool is described to the model, not in some separate classifier. Vector search gets…How does an SM hide memory latency?Inference & ServingMediumPro previewStreaming Multiprocessors (SMs) hide latency by keeping a large number of warps in flight. When a warp issues a memory request and must wait hundreds of cycles for data, the SM…How does Binary Quantization (BQ) compare to Product Qu...Retrieval & EmbeddingsHardPro previewBinary Quantization (BQ) fixes its cells as the orthants of the space, meaning it requires no training and is immune to corpus shift. PQ, conversely, fits k means to the actual…How does chunked prefill interact with the KV cache, an...Inference & ServingHardPro previewChunked prefill breaks a large prompt into smaller chunks of size C. Between these chunks, the scheduler can pause the prefill process to insert generation steps for other active…How does CLA interact with tensor parallelism and disaggregated KV caching?Inference & ServingHardWith tensor parallelism, each device holds a shard of the KV heads, and downstream layers in a group read the shared shard instead of computing fresh projections, reducing…How does CrewAI compare to LangGraph for building agents?Agent Protocols & ToolsMediumPro previewThe two sit at different levels of abstraction rather than competing on the same axis. CrewAI lets you define agents by role and goal and hands off the orchestration to the…How does DDP overlap gradient communication with the ba...Training & Fine-tuningHardPro previewDDP optimizes synchronization by grouping parameters into buckets (defaulting to 25 MB). As the backward pass computes gradients, the hook for the last parameter in a bucket…How does DeepSeek-V3 achieve load balance without an au...LLM FoundationsMediumPro previewDeepSeek V3 achieves load balance by adding per expert bias scalars (bi) to routing scores during top K selection. These biases are excluded from the gate weights. An online…How does eliminating the KV cache change your serving i...Inference & ServingMediumPro previewRemoving the KV cache fundamentally simplifies the serving stack. Memory usage becomes static and fully predictable before generation begins, meaning the scheduler no longer needs…How does expert parallelism differ from tensor parallel...Training & Fine-tuningHardPro previewExpert parallelism (EP) isn't tensor parallelism applied to experts — it's closer to data parallelism along the expert axis, with one or a few experts placed per GPU.…How does FlashAttention’s backward interact with sequen...Training & Fine-tuningHardPro previewWhen using sequence parallelism like ring attention, each device holds a contiguous shard of queries and computes partial gradients for K and V based on remote tiles passed around…How does Google sustain larger tensor-parallel groups o...Inference & ServingHardPro previewGoogle's TPU clusters utilize an ICI topology that provides each chip with uniform ~340 GB/s bandwidth to its neighbors, eliminating the spine switch bottlenecks found in typical…How does GQA improve long-context throughput?Inference & ServingMediumPro previewGrouped Query Attention (GQA) improves throughput by reducing the memory footprint of the KV cache. By reducing the number of K and V heads by a factor g, the KV cache size (Cseq)…How does GRPO differ from PPO, and when would you choos...Training & Fine-tuningMediumPro previewGRPO is advantageous when memory is a binding constraint or when a value function initialization is unavailable. PPO remains preferable when a mature critic is available and when…How does increasing batch size help, and when does it s...Inference & ServingMediumPro previewIncreasing batch size (B) improves efficiency by allowing the model to load weight matrices once and apply them to multiple activation vectors simultaneously, which raises the…How does KV cache size constrain maximum batch size at...Inference & ServingHardPro previewThe KV cache for B sequences of length T occupies significant VRAM, often exhausting capacity before the GPU's compute capability is fully utilized. Paged attention addresses this…How does MCP tool poisoning work as an attack, and what...Security & SafetyHardPro previewTool poisoning is a distinctive MCP era attack because it targets the part of the system nobody thinks to distrust: the tool's own description. An agent reads that description to…How does metadata filtering fit into RAG retrieval, and...Retrieval & EmbeddingsMediumPro previewMetadata filtering narrows the pool of candidate chunks using structured attributes — document type, department, version number, publication date, access level — before vector…How does prefix caching interact with continuous batching, and what are the memory management implications?Inference & ServingHardPrefix caching allows the system to reuse KV blocks for shared prompt prefixes, such as system prompts used across multiple requests. When integrated with continuous batching,…How does semantic caching work in RAG, and what are its...LLMOps & ProductionMediumPro previewA standard cache needs an exact text match to hit; semantic caching instead embeds the incoming query and checks cosine similarity against previously cached queries, returning the…How does sequence parallelism change the parallelism st...Inference & ServingVery HardPro previewFor 1M token context models, activations—which scale with sequence length, batch size, and dmodel—become the primary memory bottleneck. Sequence parallelism (SP) is mandatory…How does SGLang’s radix attention extend PagedAttention...Inference & ServingHardPro previewRadix attention improves upon basic PagedAttention by managing a prefix trie that tracks KV cached sequences across all current and recent requests. By identifying common…How does sliding-window attention affect long-range ret...Inference & ServingMediumPro previewIn a hybrid attention setup, local layers cannot attend to distant tokens, but global layers retain full context. Retrieval performance is generally maintained because global…How does SPLADE learn a sparse retrieval representation...Retrieval & EmbeddingsHardPro previewBM25 and every classical sparse scorer assign nonzero weight only to terms a document literally contains, so vocabulary mismatch — "laptop won't charge" versus "AC adapter fails…How does splitting a query into k per-chunk training ex...RAGHardPro previewWhen you split a query into k chunks, the training distribution is heavily skewed toward insufficient context. If the recall is r, the fraction of supporting chunks is r/k. In a…How does the capacity planning model change when the se...LLMOps & ProductionHardPro previewCapacity planning shifts significantly when the goal is throughput per dollar. AR throughput is limited by memory bandwidth, becoming independent of batch size once memory is…How does the IsoFLOP result change if you account for i...Inference & ServingHardPro previewThe standard Chinchilla result minimizes training loss per FLOP, ignoring the lifecycle cost of the model. If a model is expected to serve R inference requests, the total cost…How does the MoE FLOPs advantage interact with compute-...LLM FoundationsHardPro previewCompute optimal reasoning applies to training FLOPs and activated parameters. Because dormant MoE parameters do not require multiply accumulate operations, they are essentially…How does the number of KV heads interact with tensor pa...Inference & ServingHardPro previewIn a tensor parallel (TP) architecture, the KV cache must be distributed across the participating GPUs. Because each GPU requires at least one KV head to function, the KV head…How does the router learn, given that top-K is not diff...LLM FoundationsHardPro previewWhile the top K selection itself is not differentiable, the gate weights are differentiable with respect to the router embeddings. This allows the model to learn how to rank…How does tiling improve matrix multiply performance on a GPU?Inference & ServingMediumTiling is a critical optimization technique for matrix multiplication on GPUs. By loading blocks of data into shared memory, the GPU can reuse these elements multiple times for…How does vLLM achieve higher throughput than naive batc...Inference & ServingMediumPro previewvLLM improves throughput by addressing the inefficiencies of static batching. Continuous batching allows the system to reclaim slots as soon as a sequence finishes, preventing…How does vLLM prevent out-of-memory errors at high load?Inference & ServingMediumPro previewvLLM prevents OOM errors by implementing strict admission control based on PagedAttention block accounting. The scheduler tracks available memory in terms of blocks rather than…How does your router avoid recomputing the same system...Inference & ServingMediumPro previewTo avoid redundant computation, use prefix caching. Hash the system prompt tokens and store the associated KV blocks on each replica. The router then directs requests to the…How does ZeRO stage 3 differ from ZeRO stage 1 in memor...Training & Fine-tuningHardPro previewZeRO stages represent a progression in memory sharding. Stage 1 focuses on sharding the optimizer states across the data parallel process group. Stage 2 extends this to include…How has automatic query rewriting evolved from Rocchio...Retrieval & EmbeddingsMediumPro previewRocchio (1971) moves the query vector toward the centroid of relevant documents and away from non relevant ones. In production you rarely have labeled negatives, so you run it as…How is CAG different from just appending credibility la...RAGEasyPro previewCAG (Credibility Aware Generation) differs from simple prompting because it involves fine tuning the model on specific reasoning traces. These traces explicitly teach the model…How is CI/CD for ML models different from CI/CD for reg...LLMOps & ProductionMediumPro previewStandard software CI/CD asks one question — does the code work? — and a passing test suite is sufficient to ship. ML CI/CD has to ask a second, harder question: is the artifact…How is DPO related to contrastive learning?Training & Fine-tuningMediumPro previewThe DPO loss function is closely related to InfoNCE and noise contrastive estimation. It functions by increasing the log likelihood of chosen completions relative to rejected…How is poisoning a RAG system's datastore different fro...Security & SafetyHardPro previewIndirect prompt injection lives inside a single query's context: an attacker plants an instruction in a document a user happens to bring into one conversation, and the attack ends…How is this different from the indirect prompt injectio...Security & SafetyMediumPro previewThe primary difference lies in the persistence and timing of the attack. Indirect prompt injection occurs at the moment of query execution, so it can be mitigated by content…How many H100s do you need to train a 7B model on 1 tri...Training & Fine-tuningHardPro previewA strong answer derives total training FLOPs from the 6ND approximation (where N is the number of parameters and D is the number of tokens). By applying a realistic MFU—typically…How much memory does a 10-million-chunk index at 768 di...Retrieval & EmbeddingsMediumPro previewA strong answer refuses to provide a single number without knowing the index type, precision, and whether the payload is resident. It builds the estimate per vector: 3,072 bytes…How much memory does your vector index need?Retrieval & EmbeddingsMediumThe interviewer is testing your ability to compute index memory rather than looking it up. For example, a million 768 dimensional vectors in FP32 require approximately 3.07 GB,…How often do you re-index, and how did you pick that nu...Retrieval & EmbeddingsHardPro previewDetermining the re indexing frequency requires a quantitative approach rather than an arbitrary schedule. You must derive the optimal interval (T ) by balancing the build cost of…How should a ranking system treat a document that has n...Retrieval & EmbeddingsMediumPro previewTreating missing credentials as 'unknown' or neutral (0.5) is dangerous because it provides an easy path for attackers to bypass security by simply omitting a manifest. To…How should an invariance training objective be reconcil...RAGVery HardPro previewIf the domain requires abstention, the invariance objective is often misaligned. If the model has near zero closed book accuracy, the invariance objective is not actually in…How should authentication and authorization work when a...Security & SafetyHardPro previewAuthentication and authorization in MCP aren't one problem — they're three, and each needs a different mechanism. API key — the simplest option, passed with the request. It's…How should regularization be configured for a 7B pre-tr...Training & Fine-tuningMediumPro previewPre training and fine tuning require different regularization strategies. During pre training, the goal is stability and optimization; therefore, dropout is typically disabled,…How should the retrieved chunks be formatted in the con...RAGMediumPro previewA strong approach rejects the idea of a single optimal format. Instead, you must identify the specific slots that constitute the formatting decision—such as delimiters, chunk…How should you approach designing a retrieval-augmented...System DesignMediumPro previewA strong design process involves stating the five key decisions within the first minute of the discussion. By identifying the corpus size, query volume, and latency budget, you…How should you evaluate the risk of a RAG system that l...Data, Privacy & LegalHardPro previewEvaluating risk based on a flat 10% base rate is inaccurate because it ignores the compounding probability of retrieving restricted content. When drawing multiple chunks (e.g.,…How should you respond if security approves fine-tuning...Security & SafetyHardPro previewRelying on regex stripping for fine tuning security is fundamentally flawed. While regex can successfully eliminate formatted patterns like email addresses or social security…How would you approach SFT if your instruction data was...Training & Fine-tuningHardPro previewWhen using a stronger teacher model, there is a risk of distribution mismatch: the teacher's responses may require reasoning or knowledge the student model does not possess. If…How would you audit a proposed training dataset for legal risk before a model release?Data, Privacy & LegalHardTo audit a dataset, you must first categorize every source by its license type. You should specifically flag shadow library or paywalled content that poses higher legal risks. It…How would you benchmark whether your pipeline-parallel...Training & Fine-tuningVery HardPro previewTo determine the bottleneck in pipeline parallelism, instrument the code with torch.cuda.Event timers to track compute time and send/recv latency separately on each rank. A job is…How would you build a HIPAA-compliant GenAI app for a h...Security & SafetyHardPro previewHIPAA compliance for a GenAI app isn't one control, it's a chain where every link has to hold. It starts before the model is even called: never send patient data to a provider…How would you build an ask-style eval for a general-pur...EvaluationHardPro previewFor tasks without a single correct answer, you should layer three distinct signals. First, use LLM as judge at scale for triage, noting that these are fast and cheap but often…How would you build an instruction dataset from scratch...Training & Fine-tuningMediumPro previewWith limited resources, focus on quality and diversity rather than sheer scale. Start by repurposing existing labeled NLP datasets and applying templates to transform them into…How would you check whether a model's errors in long-fo...EvaluationHardPro previewBy pooling all errors into a single average, you lose visibility into the model's performance trajectory. By segmenting the generation into buckets, you can visualize the…How would you compress a 70B model to fit on a single 8...Inference & ServingHardPro previewA 70B model in BF16 requires approximately 140 GB, which exceeds the capacity of a single 80 GB H100. By applying structured pruning, you can reduce the model to roughly 35B…How would you control the inference cost of a reasoning...Inference & ServingMediumPro previewTo control inference costs, introduce a length reward during the RL phase that incentivizes correct and short responses over verbose ones, ideally after initial convergence to…How would you correctly benchmark a custom CUDA kernel’...LLMOps & ProductionMediumPro previewBenchmarking a custom CUDA kernel requires careful attention to the asynchronous nature of GPU execution. First, warm up iterations are mandatory to prime the JIT compilation and…How would you decide the right token-to-parameter ratio...Training & Fine-tuningHardPro previewThe decision process involves balancing training efficiency with serving costs. After determining the compute optimal ratio for your specific data distribution via isoFLOP…How would you design a 70B hybrid model for an agentic...System DesignVery HardPro previewFor a 70B model with 64k context, a hybrid architecture is optimal to balance memory constraints and factual recall. By placing full attention layers at positions 4, 8, 16, 20,…How would you design a chatbot that needs to search acr...System DesignHardPro previewAt a million documents, a flat vector search is both slow and imprecise, so the fix is to split the work into stages instead of doing it all in one retrieval call. Start with…How would you design a data curation pipeline that automatically identifies SFT examples likely to cause hallucination, at the scale of millions of examples?Training & Fine-tuningVery HardThe pipeline should utilize a self consistency filter. For each candidate SFT example, sample k completions (e.g., k=5) from the base model using only the instruction. Compute…How would you design a GenAI app to handle 1 million da...LLMOps & ProductionHardPro previewAt a million daily users, no single model can economically or reliably serve every request, so the design starts with routing: classify traffic by complexity and send the bulk of…How would you design a legally defensible data collecti...Data, Privacy & LegalMediumPro previewThe design should be layered: use third party crawls for broad web data, but negotiate explicit licenses for high value, high risk content. You must actively exclude sources that…How would you design a machine learning system that aut...Multimodal & Generative MediaHardPro previewTreat image captioning as bridging two modalities rather than as a single model: an image encoder for vision, a text decoder for language, and a training recipe that teaches them…How would you design a pairwise annotation process that...EvaluationHardPro previewDesigning an annotation process that avoids length bias requires a multi faceted approach. First, annotators should be presented with length matched response pairs whenever…How would you design a production AI agent to hit 99.9%...AgentsVery HardPro previewHigh availability for an agent is mostly standard distributed systems design, with one failure mode that's specific to agents: the LLM provider itself becoming unavailable.…How would you design a real-time feature pipeline for a...LLMOps & ProductionHardPro previewA fraud model that recomputes "transactions in the last hour" from a database query at request time will never hit a 200ms budget once you add network round trips and aggregation…How would you design a reward for a general-purpose ass...EvaluationHardPro previewFor general purpose assistants, avoid a monolithic reward model. Instead, layer verifiable signals (e.g., format compliance, citation presence, tool call correctness) with a…How would you design a reward function for a math RL tr...Training & Fine-tuningHardPro previewDesign the reward function using binary accuracy based on symbolic equivalence (SymPy) rather than simple string matching, supplemented by a lightweight format reward to enforce…How would you design a training system for 128K context?System DesignHardPro previewWithin an 8 GPU NVLink node, apply TP=8 for weight sharding and SP=8 for LayerNorm sharding. For attention, apply CP=8, rotating KV in a ring while each GPU holds 16K queries and…How would you design an AI system a regulator could act...System DesignVery HardPro previewPreview only -- unlock to read the worked answer.How would you design an evaluation system that avoids t...EvaluationHardPro previewTo avoid Chatbot Arena's failure modes, the system should implement a blind protocol with randomized comparison partners and strictly prohibit privileged submissions. It must…How would you design the FFN structure for a 7B active...LLM FoundationsHardPro previewTo design a 7B active parameter MoE, one should anchor the design on fine grained experts. By setting m=4, you can have 64 total routed experts at 1/4 size, with K=6 active routed…How would you design the layer composition for a 70B hy...System DesignVery HardPro previewFor a 70B hybrid model with 32k context, a recommended design uses 24 Mamba blocks and 8 full attention layers. The attention layers should be placed at positions 4, 8, 16, 20,…How would you detect and correct for length bias in you...EvaluationHardPro previewTo detect length bias, you should disaggregate win rates by output length brackets and compare chatbot arena rankings against standard benchmark rankings to identify divergences.…How would you detect and fix length bias in a deployed RLHF model?LLMOps & ProductionMediumTo detect length bias, instrument production request logs to monitor output token counts by query category and compare them against the SFT baseline. If length is inflated,…How would you detect that a scaling-law fit is wrong?EvaluationHardPro previewDetecting a poor scaling law fit involves analyzing the residuals (L hat L obs). If the residuals are not zero mean or show a clear correlation with the input variables, the model…How would you distribute a 70B-parameter model across a...Training & Fine-tuningHardPro previewDistributing a 70B model requires a strategy that respects the physical hardware constraints. For a 64 GPU cluster, one must leverage high speed interconnects like NVLink for…How would you estimate how many H100s you need to serve...System DesignHardPro previewEstimating hardware requirements begins with calculating the memory footprint of the model weights (e.g., 140 GB for a 70B model, requiring two H100s for tensor parallelism).…How would you evaluate a code generation model for prod...EvaluationMediumPro previewTo evaluate a code generation model, use pass@1 at the system's actual production sampling temperature as your primary accuracy metric. Supplement this with pass@10 to…How would you evaluate a model for deployment in a medi...EvaluationMediumPro previewEvaluating a model for sensitive domains like medicine or law requires a practitioner interview process that contrasts with standardized benchmarks. You must identify specific…How would you evaluate a model once it’s in production?LLMOps & ProductionMediumPro previewEvaluating a model in production requires a dual approach. First, use aggregate telemetry to monitor ongoing health and performance. Second, implement shadow evaluation to test…How would you evaluate an agent that writes and runs code?EvaluationMediumPro previewEvaluating code writing agents requires a test suite as verifier approach, such as that used in SWE Bench. It is critical to recognize the coverage gap: passing tests does not…How would you evaluate whether a model is safe to deplo...EvaluationHardPro previewA robust safety evaluation includes using benchmarks like HarmBench or AIR Bench to measure direct prompt compliance, and GCG style transfer attacks to test adversarial…How would you evaluate whether a new RLHF checkpoint im...EvaluationMediumPro previewNo single benchmark is sufficient for evaluating instruction following. You should use IFEval to perform cheap structural regression testing on every checkpoint. AlpacaEval LC win…How would you evaluate whether your post-training run actually improved the model?EvaluationMediumEvaluation must separate the proxy reward used during training from a held out evaluation harness that is harder to game. The harness should include both capability benchmarks and…How would you evaluate your company’s new code generati...EvaluationMediumPro previewEvaluating a code generation assistant requires a two pronged approach. Model evaluation focuses on whether the new checkpoint improves performance on standard benchmarks like…How would you extend a LLaMA-2 7B checkpoint from 4k to...LLM FoundationsHardPro previewTo extend the context window, first apply NTK aware base scaling (e.g., raising the base to approximately 128,000 for an 8x extension) to allow immediate inference. Second,…How would you fit a 70B model on a single 8×H100 node?System DesignHardPro previewWith a 70B parameter model, you can use tensor parallelism (TP=8) to distribute the model across 8 GPUs. Each GPU holds 17.5 GB of parameters (140 GB total / 8). By splitting…How would you get training labels for a source router w...RAGHardPro previewManual annotation or LLM as judge passes are inefficient for scaling. Instead, leverage the existing retrieval system by running the expensive broadcast once in a batch offline…How would you implement Agentic RAG with LangGraph? Des...RAGHardPro previewThe graph has five functional nodes: retrieve pulls candidates from the vector store, grade docs scores each one as relevant or not, generate produces the answer from whatever…How would you implement prefix caching across replicas,...Inference & ServingVery HardPro previewTo enable cross replica prefix caching, a fast key/value service is required to track which replica holds specific cached blocks. When a request arrives, the router checks this…How would you isolate English documents from a 100 TB C...Training & Fine-tuningMediumPro previewIsolating English documents at scale requires a robust LID classifier, such as fastText, which utilizes character n gram architecture to identify language patterns. A threshold…How would you make a RAG system say ‘I don’t know’?RAGHardPro previewImplementing a reliable 'I don't know' mechanism requires understanding the failure modes of various approaches. Relying on similarity scores is insufficient because a document…How would you make a Retrieval‑Augmented Generation (RA...RAGMediumPro previewWhen designing a RAG pipeline that can refuse to answer, you should enumerate multiple safeguards rather than a single trick. First, similarity‑based retrieval may return…How would you measure the actual allreduce bandwidth av...Inference & ServingHardPro previewTo measure actual allreduce bandwidth, use the NCCL all reduce perf benchmark. By sweeping message sizes from 1 MB to 10 GB, you can identify two distinct performance regimes.…How would you modify the Chinchilla analysis if you are training a mixture-of-experts (MoE) model?Training & Fine-tuningHardIn MoE models, the total parameter count differs significantly from the active parameter count. To perform a valid Chinchilla style analysis, you must replace total parameters…How would you operate a mixed AR-diffusion cluster to m...LLMOps & ProductionHardPro previewOperating a mixed cluster requires aligning model strengths with workload characteristics. AR models should be prioritized for interactive, recall heavy, and short output tasks…How would you overlap rollout generation and gradient c...Training & Fine-tuningVery HardPro previewDouble buffering allows the trainer to execute K inner gradient steps on batch N while rollout workers simultaneously generate batch N+1 using weights from iteration N. This…How would you pick the refresh interval for your index?LLMOps & ProductionHardPro previewThe refresh interval is a trade off between compute costs and retrieval quality. One should derive the ratio Cr/Cs based on corpus size and encoder complexity. The capacity floor…How would you reduce TTFT for a system serving 10k conc...Inference & ServingMediumPro previewReducing Time To First Token (TTFT) requires addressing two distinct root causes. If long prompts are slowing down prefill, use disaggregated prefill workers or prompt compression…How would you remove toxic content from a web-scale pre...Security & SafetyMediumPro previewRemoving toxic content at scale is best achieved by training specialized fastText classifiers on the Jigsaw dataset. It is standard practice to train separate models for different…How would you run the ablation to decide whether to inc...LLM FoundationsHardPro previewTo properly decide on including a shared expert, you should train three 1B parameter models for 100B tokens each, keeping hyperparameters fixed. The variants are: (a) 0 shared, 64…How would you serve the same 70B model to both an inter...Inference & ServingHardPro previewAttempting to use a single serving configuration for both interactive and batch workloads is suboptimal for both. Instead, you should implement separate serving paths. The…How would you size the inference fleet for a new chat p...System DesignHardPro previewSizing an inference fleet requires a quantitative approach rather than guessing hardware requirements. Start by converting the 10M DAU into peak requests per second based on…How would you structure the data mix for a 70B model’s...Training & Fine-tuningVery HardPro previewFor a 70B model's annealing phase, the data mix should consist of approximately 20 30% instruction adjacent data. This should start with high quality domain specific data—such as…How would you support a query like ‘what happened right before the manager approved the budget’ against a video index?Retrieval & EmbeddingsHardSince standard embedding techniques often lose temporal ordering, filtering by a timestamp column after retrieval is insufficient because it may return topically relevant but…How would you tell whether a new chunker is better than...RAGMediumPro previewA weak approach relies on end to end evaluation, which fails to isolate the chunker's impact and is often obscured by noise in small query sets. A strong approach moves…How would you track training health during a long pre-t...Training & Fine-tuningMediumPro previewDuring a long pre training run, you should monitor validation perplexity on a domain stratified held out set, tracking both aggregate and per domain curves. It is critical to set…How would you use a diffusion model as the draft compon...Inference & ServingHardPro previewIn a speculative decoding pipeline, a diffusion model can serve as a high speed draft component. Because the diffusion model generates K tokens in a single forward pass, it avoids…How would you use a quality classifier to filter a 200-...LLM FoundationsHardPro previewTo filter a massive corpus, define positive examples as high quality instruction style data and negative examples as lightly filtered web text. Train a fastText model, which is…How would you use the PyTorch Profiler to identify whic...LLMOps & ProductionMediumPro previewWrap the training step in a torch.profiler.profile context manager with CPU and CUDA activities enabled. After execution, call key averages().table(sort by='cuda time total') to…How would you use the roofline model to evaluate a prop...System DesignHardPro previewTo evaluate an architectural change, you calculate the arithmetic intensity (AI) of the new operation and compare it against the original. For example, a depth wise convolution…How would you verify that an LLM’s answer is correct?EvaluationMediumPro previewVerification is fundamentally about the oracle used. Faithfulness is checkable against the context provided to the model during the request. Factuality, however, requires an…Humanity’s Last Exam says it will be the hardest benchm...EvaluationMediumPro previewBenchmarks inevitably face saturation as model capabilities improve by orders of magnitude. Furthermore, Humanity’s Last Exam (HLE) suffers from creator selection bias, focusing…I double the number of training tokens. How does the va...LLM FoundationsMediumPro previewValidation loss follows a power law relationship with training tokens. The loss drops by a factor of 2α, where α typically ranges from 0.05 to 0.30. For language models, α is…I swap two rows of the input table and your model’s answer changes. Is that a bug in the model or in your evaluation?EvaluationMediumA relation is a set of tuples, meaning row order should be invariant. The model's sensitivity to row swaps stems from the additive row ID embedding, which injects order dependent…If a document’s C2PA signature verifies cleanly against...Security & SafetyMediumPro previewCryptographic verification only confirms that the signature is valid according to the protocol. It does not account for scenarios where a signing key has been stolen or the signer…If a malicious actor fine-tunes an open-weight model on...EvaluationHardPro previewCurrent research demonstrates that standard RLHF based alignment can be significantly degraded within 100 to 500 fine tuning steps when a model is trained to comply with harmful…If a model ignores the context window and answers from...Training & Fine-tuningMediumPro previewThis issue is categorized as a behavior failure rather than a knowledge failure. To fix it, the training data must be carefully curated. You should include examples where the…If a model is probed and 0.07% of sampled documents are...Security & SafetyMediumPro previewA weak answer treats the 0.07% figure as a static system property. A strong answer recognizes that extractability depends on the probe length (k). By re running the probe at a…If a RAG system quotes a source verbatim and the quote...RAGEasyPro previewA strong answer distinguishes between attribution and authenticity. Passing an attribution check merely confirms that the model correctly identified and extracted text from a…If all four passages cited by a RAG system pass an enta...RAGEasyPro previewEntailment is a property of the fixed text and does not necessarily reflect how the model produced the answer. A passage may entail a claim that the model generated without…If continuous-only adversarial training fails to stop a...Security & SafetyHardPro previewContinuous adversarial training typically creates a symmetric neighborhood (an epsilon ball) around clean prompts to improve robustness. When a new, distant jailbreak framing…If diffusion models are so much faster, why isn’t every...Inference & ServingMediumPro previewWhile diffusion models offer high throughput, they are not currently a universal replacement for AR models. The quality gap in instruction following and factual recall is…If dmodel = 8192 and I want SwiGLU, what is dff?LLM FoundationsMediumPro previewTo calculate the feed forward dimension (dff) for SwiGLU, you multiply the model dimension (dmodel) by 8/3. For a dmodel of 8192, this results in 21,845.3. This value is then…If I tell you the model will serve users in 40 languages, what changes?LLM FoundationsMediumServing 40 languages requires a more robust tokenization strategy. If the tokenizer is trained on an English dominant corpus, non Latin scripts will suffer from high 'fertility'…If Legal requires written confirmation that no customer...Data, Privacy & LegalHardPro previewWhen asked by legal or compliance teams to certify absolute absence of PII in a pre training corpus, an engineer must recognize the technical impossibility of strict enumeration.…If pre-training doesn't overfit, why is weight decay used?Training & Fine-tuningMediumPro previewWeight decay during pre training serves a different purpose than in standard supervised learning. It does not aim to reduce the train to validation gap, but rather to improve the…If prefill is compute-limited and generation is memory-...Inference & ServingHardPro previewWhen a large prefill request arrives, it consumes significant GPU compute resources, which can block the memory bound generation tasks of other requests. This causes noticeable…If pretraining loss is equal for a wide-shallow and a n...System DesignHardPro previewWhile pretraining loss may be identical, the operational characteristics differ. Deeper models often perform better on downstream tasks. From an inference perspective, narrow deep…If primacy comes from the system message always sitting...LLM FoundationsHardPro previewThe system message explanation only accounts for the instruction tuned phase of model development. Base models, however, exhibit a related bias because of their pre training…If rank 2 throws a Python exception mid-training, what...Training & Fine-tuningMediumPro previewIn a distributed training job, collective operations are synchronous across all ranks. If one rank fails or throws an exception, the remaining ranks will block indefinitely at the…If RLVR is strictly better for reasoning, why do produc...Training & Fine-tuningHardPro previewRLVR is superior only within its specific domain. Once math and code competence are established, the model must handle open ended tasks such as writing, instruction following, and…If RMSNorm drops mean-centering, doesn’t that hurt mode...LLM FoundationsHardPro previewThe concern regarding the lack of mean centering in RMSNorm is mitigated by the pre norm architecture. Because the residual stream entering each normalization layer is already…If SwiGLU needs three weight matrices and GeLU only two...LLM FoundationsHardPro previewWhen transitioning from a GeLU based MLP to a SwiGLU based MLP, the architectural change involves moving from two weight matrices to three. To maintain parity in both parameter…If the next GPU generation doubles peak FLOPs but keeps memory bandwidth the same, does token generation speed improve?Inference & ServingMediumSince token generation is already memory bound, doubling peak FLOPs provides no benefit to throughput. The ridge point on the roofline model shifts higher, making the memory bound…If two retrievers have identical precision@10 and recal...EvaluationHardPro previewPrecision@10 and recall@10 give a coarse view of performance but can hide critical differences that matter in production. For example, one retriever might retrieve a relevant…If you cannot access the pretraining corpus to check fo...EvaluationHardPro previewIf the pretraining corpus is unavailable for inspection, you must rely on evaluation design to minimize risk. Strategies include using held out private benchmarks that have not…If you changed the training data mixture—say, you doubl...LLM FoundationsMediumPro previewChanging the data mixture primarily shifts the offset of the scaling curve rather than the slope α, as the slope represents the intrinsic difficulty of the learning task.…If you eliminate token dropping at inference time by ro...Inference & ServingVery HardPro previewWhen a model is trained under a regime where overflow tokens are dropped, it calibrates its downstream layers based on those specific activation statistics. If you introduce re…If you had a fixed compute budget, how would you split...Training & Fine-tuningMediumPro previewThe standard approach is to follow the Chinchilla optimal ratio of approximately 20 tokens per parameter. However, engineering judgment requires adjusting this based on the…If you had to cut your corpus from 15 trillion tokens t...LLM FoundationsHardPro previewWhen facing compute constraints, decisions should be driven by capability impact rather than raw volume. Research from studies like Dolma and DCLM demonstrates that code and…If you had to scale to 1024 GPUs for a single model, ho...System DesignVery HardPro previewThe strategy is to align parallelism with the interconnect hierarchy. Use TP 8 within the node to leverage high speed NVLink. Use pipeline parallelism across nodes to manage model…If you had to train a 1T dense model on GPUs today, wha...System DesignVery HardPro previewFor a 1T dense model, I would configure TP=8, with PP sized to fit the model (likely 32 or more), and DP for remaining capacity. The primary concern is the pipeline bubble; with…If you had to use expert-choice for some reason, how wo...LLM FoundationsHardPro previewIf expert choice must be used, the most common approach is to accept the train test distribution shift by switching to token choice routing during inference. To reduce this shift,…If you increase the FFN dimension (dff) of a 7B model, what must change to keep the total parameter count constant?System DesignHardIncreasing dff from 11008 to 16384 adds approximately 66 million parameters per layer, totaling roughly 2.1 billion extra parameters for a 32 layer model. To maintain a 7B…If you iteratively retrain the reward model on data fro...Training & Fine-tuningHardPro previewIterative retraining fits a fresh finite sample estimator on the current policy’s distribution, which closes the distribution gap at that specific step. However, label noise in…If your RAG endpoint's p50 latency is too high, where s...Inference & ServingMediumPro previewOptimizing a RAG system requires identifying the dominant cost. In systems where the context runs to several thousand tokens, the decode phase is almost always the bottleneck.…If your RAGAS faithfulness score is high but answer rel...RAGMediumPro previewThis combination of scores isolates the problem to the retrieval stage. Since the generator is faithfully reporting what it read, the issue is not a grounding or hallucination…If your target domain is scientific papers and Wikipedi...RAGHardPro previewTo adapt to a scientific domain, train the KenLM on a curated seed set of papers from sources like arXiv or PubMed. If the seed set is small (under 1B tokens), use Kneser Ney…In a Bing‑style assistant that returns an answer with t...EvaluationHardPro previewWhen the assistant places a citation mark next to a span of generated text, it signals that the span was produced during a generation step where the referenced document chunk was…In a generative retriever, where does the index go?Retrieval & EmbeddingsMediumPro previewGenerative retrieval shifts the index from a standalone vector store into the model itself. With atomic identifiers, the index is essentially the output embedding matrix (N x d…In a generative retriever, where is the index stored?Retrieval & EmbeddingsHardPro previewA generative retriever shifts the storage of the index from an external structure into the model parameters themselves. When using atomic identifiers, the index is effectively the…In a hybrid search system using RRF, what is the impact...Retrieval & EmbeddingsMediumPro previewWhen using RRF, the rank of a document determines its fused score. Increasing the retrieval depth admits more documents, but these documents will typically have low ranks in the…In an RLVR pipeline for math or code, do you reward onl...Training & Fine-tuningVery HardPro previewAn outcome reward is a single scalar for the whole response — correct final answer or not — computed by something deterministic like symbolic equivalence checking or a test suite…In quantization-aware training, the rounding operation...Inference & ServingHardPro previewThe honest observation — that rounding is piecewise constant and its true derivative is zero everywhere it's differentiable at all — is correct and also a dead end if you stop…In-context learning lets a frozen model "learn" a task...Training & Fine-tuningVery HardPro previewThe puzzle with in context learning is that nothing about the model changes between seeing zero examples and seeing five — same weights, same architecture — yet performance on the…Infra says moving to generative retrieval deletes the v...Inference & ServingVery HardPro previewThe adjudication requires separating the storage concerns from the computational concerns. Infrastructure is correct that generative retrieval significantly reduces the memory…Infra wants to freeze the graph index because a full re-extraction costs $2,850 and six hours; product wants same-day updates for a compliance SLA. Adjudicate.LLMOps & ProductionVery HardThe core issue is that the current design treats full reconstruction as the only update primitive. By moving to incremental, dual level indexing, you only update touched entities.…Infrastructure has standardized on a managed vector dat...LLMOps & ProductionHardPro previewThe argument should be quantitative rather than aesthetic. By moving the index into the application process, you remove a network hop and an eventual consistency window. The staff…Infrastructure has standardized on a managed vector dat...System DesignVery HardPro previewWhile platform teams rightly prioritize maintaining a single standard infrastructure with a unified on call rotation, an operational and quantitative evaluation justifies an in…Infrastructure wants the gate to cut retrieval calls by...RAGVery HardPro previewInfrastructure and Quality are presenting conflicting requirements that act on the same threshold. By raising the skip rate from 30% to 50%, the system enters a state where every…Infrastructure wants the routing layer deleted - it is...LLMOps & ProductionVery HardPro previewThe conflict arises because the router is both a latency savior and an operational burden. A strong solution preserves the latency win by implementing a router that defaults to a…Infrastructure wants to consolidate our six-machine in-...Retrieval & EmbeddingsVery HardPro previewBoth in memory indexes and DiskANN are approximate, so the recall claim must be tested against exact search on held out queries. The real risk is the write throughput: Vamana…Ingestion wants to delete the layout parser and embed p...System DesignVery HardPro previewWhile vision language models offer a modern, simplified ingestion path, they sacrifice the precision of sparse retrieval for exact matches (e.g., part numbers, error codes) and…INT8 weight-only, INT4 (GPTQ/AWQ), or activation quanti...Inference & ServingHardPro previewThese aren't points on one dial — they trade off differently. Weight only INT8 is close to free: perplexity typically degrades under 1% and you get roughly 1.5 2x throughput from…Is a binary attributable/non-attributable label suffici...RAGMediumPro previewWhile some benchmarks report a binary macro F1 metric, this does not imply that binary judgment is the optimal design for a production pipeline. The FEVER dataset independently…Is an attention heat map sufficient evidence that a mod...EvaluationMediumPro previewAttention distributions can be adversarial and yield equivalent predictions regardless of the mass assigned to specific tokens. To verify if a chunk was used, drop the chunk and…Is beam search the same kind of search as BFS or DFS? W...Inference & ServingMediumPro previewBFS and DFS are complete search strategies: given enough time and memory, they will examine the entire reachable search space and are guaranteed to find a solution if one exists…Is calling a web search API considered RAG?RAGEasyPro previewA strong answer focuses on the RAG contract rather than the underlying plumbing. Whether you use a vector database, BM25, or a web search API is a mechanism detail. The core…Is dividing the group advantage by the standard deviation in GRPO mathematically valid?Training & Fine-tuningHardWhile subtracting the group mean is a valid baseline, dividing by the standard deviation (σ) is problematic. When σ approaches zero, gradients explode. This normalization gives…Is FLOPS regularization necessary if the search engine...Retrieval & EmbeddingsHardPro previewWhile dynamic pruning works well for BM25, learned weights do not preserve the score distributions required for effective pruning. If the skip ratio collapses when using learned…Is it circular to use a language model to generate trai...Training & Fine-tuningMediumPro previewThe process is not circular provided that the rewrite model is significantly stronger than the model being trained. The quality ceiling of the resulting model is determined by the…Is it legitimate to train a reranker on GPT-4-generated...Retrieval & EmbeddingsMediumPro previewA strong answer avoids a simple yes/no and instead probes the relationship between the generator and the target model. You must determine if the generator is downstream of the…Is the absence of fine-tuning on retrieved documents a...Data, Privacy & LegalMediumPro previewPrivacy in RAG systems involves two distinct claims: revocability and confidentiality. The absence of fine tuning on retrieved documents only addresses the former, ensuring that…Is the CoT length growth and backtracking observed in R...EvaluationHardPro previewClaims of emergent reasoning in R1 Zero should be treated with skepticism. The observed growth in CoT length is at least partially explained by biased GRPO objectives, where…Is training-data PII still a security risk if an RLHF-a...Security & SafetyMediumPro previewSafety alignment via Reinforcement Learning from Human Feedback (RLHF) does not erase memorized training data from model parameters. Alignment merely modifies the output…Isn’t recomputing part of the forward pass during the b...Training & Fine-tuningMediumPro previewWhile recomputing tiles during the backward pass adds compute cycles, it is actually faster than the alternative of reading the precomputed N x N matrix from HBM. The…Kaplan and Chinchilla disagree by more than a factor of...LLM FoundationsHardPro previewThe difference between the Kaplan and Chinchilla scaling laws is often misunderstood as a fundamental change in data or architecture. However, the primary drivers of the…LambdaRank has no loss function. Explain how you train...Training & Fine-tuningHardPro previewLead with what gradient descent actually requires a vector to add to the parameters, not a scalar to minimize then show the chain rule doing the work: you specify the gradient of…Launch review is in an hour. Product wants to ship beca...EvaluationHardPro previewAdjudication requires moving beyond binary 'ship' or 'block' decisions. By assessing the statistical significance of the regression versus the gain, you can mitigate risk.…Lay out what runs on every pull request, what runs nigh...EvaluationHardPro previewFor a RAG product, the evaluation strategy must be tiered based on the availability and cost of the oracle. Faithfulness evaluations should be executed on every pull request…Leadership wants demographic parity across viewpoints i...System DesignVery HardPro previewDemographic parity and aggregate credibility are competing terms in the ranking objective. Mathematically, increasing the weight of the parity constraint requires a reduction in…Legal asks you to remove one customer’s records from an...Data, Privacy & LegalHardPro previewThe core technical challenge is that model weights are not a database; they do not support row level deletion. Attempting to 'unlearn' specific customer records requires knowing…Legal commits to unrecoverable deletion within 24 hours...Data, Privacy & LegalHardPro previewThe 24 hour deletion requirement and the nightly index rebuild are not in conflict if you decouple logical deletion from physical removal. A tombstone record combined with…Legal has ruled that no customer record may appear in a prompt at inference time. The ML team proposes fine-tuning on those records instead. Adjudicate.Data, Privacy & LegalHardWhile legal concerns about data in prompts are valid due to request logs and vendor retention, fine tuning is not a safer alternative. Facts embedded in model weights cannot be…Legal is moving us off a vendor API onto an open-weight...System DesignHardPro previewOwning the weights makes FiD available, which is more efficient than REPLUG's per token decoder passes. However, if the business requirement is to show how much each source…Legal needs a licensed corpus out of the product in 30...Data, Privacy & LegalVery HardPro previewThe dispute should be reframed from whether to keep the data to where the data lives. Retraining the model on low risk data while serving the encumbered corpus from a retrieval…Legal needs a licensed corpus removed from the product...Data, Privacy & LegalHardPro previewThe dispute is incorrectly framed as a choice between model performance and legal compliance. By separating the knowledge storage, you can satisfy both requirements. The model…Legal needs a retracted document to stop being returned...Security & SafetyMediumPro previewThe SLA can be met by suppressing the document at the inference layer. By masking the document identifier during constrained decoding, the retriever is prevented from emitting it.…Legal now requires any document to be removable from th...Data, Privacy & LegalVery HardPro previewThe requirement for 24 hour removal shifts the priority from model quality to strict deletability. Proposing an unlearning pass over model weights is problematic because it…Legal now requires erasure within 24 hours, and your in...System DesignVery HardPro previewFirst, translate the new legal constraint into a quantitative requirement: a 24‑hour erasure deadline on a corpus that is 50 × larger than the current 10 M‑document baseline means…Legal now requires erasure within 24 hours, and your re...Data, Privacy & LegalHardPro previewThe proposed solution of a nightly rebuild is fundamentally broken due to the scaling of your corpus. If the rebuild time scales linearly with the corpus size, a 50 fold increase…Legal now requires that every retrieved fact be traceab...Data, Privacy & LegalVery HardPro previewThis scenario requires balancing conflicting constraints. You should not standardize on a single encoder. Instead, keep decoupled and aligned encoding for documents where…Legal requires clause citations in chunks, but Platform...RAGHardPro previewThe conflict is based on a misunderstanding of ANN latency. ANN search cost is independent of the text length that produced the vector; it depends on the number of vectors (N),…Legal requires every retrieved chunk to carry a clause citation, while the platform requires uniform 512-token chunks to keep ANN latency predictable. How do you adjudicate?Retrieval & EmbeddingsHardThe requirement for uniform 512 token chunks to maintain predictable ANN latency is based on a misunderstanding of how vector search works. Every chunk, regardless of its original…Legal requires every shipped answer to carry a cited ev...RAGHardPro previewThe disagreement should be resolved by balancing the business need for a launch with the risk management provided by the evidence trace. Since the trace is a mechanism to mitigate…Legal requires native-speaker review for generated data...Retrieval & EmbeddingsHardPro previewSpreading 2,000 items across 12 languages results in a dataset too small for effective training. By allocating 8 items per language as seeds and the rest as test sets, you create…Legal requires that a deleted customer document be unre...Data, Privacy & LegalHardPro previewThis is a constraint based design problem. A 24 hour deletion deadline is a non negotiable legal requirement, whereas a three point eval lift is a performance target. Since fine…Legal requires that answers cite only documents the use...Security & SafetyVery HardPro previewThe core of this issue is the tension between security compliance and retrieval performance. Hard filters are often necessary for security, but they can lead to silent document…Legal requires that answers cite only documents the use...Security & SafetyVery HardPro previewBegin by decomposing the policy space: the legal clearance requirement is a non‑negotiable security constraint, whereas the search team’s preference for higher recall is a…Legal requires that every retrieval decision be explain...Data, Privacy & LegalVery HardPro previewFirst, verify the evaluation set: if it consists of sentence based questions, it likely ignores identifier queries where the dense vs BM25 margin is negligible. Second, separate…Legal requires that the assistant never contradict the...Data, Privacy & LegalHardPro previewFaithfulness and factuality are often at odds. Without metadata like timestamps or source authority, the generator cannot distinguish between a wrong document and a new one.…Legal requires verbatim citations for all search result...Data, Privacy & LegalHardPro previewThe constraint is a business requirement that changes the design. Since dense retrieval cannot satisfy a verbatim guarantee, you should implement a hybrid system: route queries…Legal says one unsupported claim in a brief is an incid...Data, Privacy & LegalVery HardPro previewThe conflict arises because the team is arguing over the wrong axis. The requirement for Pr(S=1) can be met by reducing the number of claims (n) in each brief, which makes the…Legal wants a hard, per-query, auditable fairness guarantee. Engineering wants to keep the doubly stochastic LP because it costs less accuracy. Adjudicate.System DesignHardDeterministic constraints provide an auditable floor but are more expensive in terms of aggregate accuracy compared to amortized LP approaches. The practical resolution is to use…Legal wants every claim in generated answers traceable...System DesignHardPro previewThe conflict between compliance and latency can be resolved by restructuring the system. Instead of walking the citation chain at query time, perform an offline pass to compute…Legal wants every query logged against all eight source...RAGHardPro previewAudit completeness and query completeness are distinct requirements. The live retrieval path should remain optimized for cost via selective routing. Audit requirements can be met…Legal wants the assistant to say 'I don't know' wheneve...LLMOps & ProductionMediumPro previewA strong answer requires two specific numbers: the cost of a wrong answer relative to a right one (cw) and the cost of an unanswered question (ca). By using the formula τ = (cw…Legal wants to commit contractually to removal from our...Data, Privacy & LegalVery HardPro previewBenchmarks like TOFU fine tune the forget set in before removing it, which does not translate to real world probes of unknown recall. Additionally, a dozen requests a month…Legal wants written confirmation that no customer PII r...Data, Privacy & LegalHardPro previewProviding a blanket certification that no PII exists in a pre training corpus is technically impossible because the tokenization process erases document identity, making it…List comprehensions vs generator expressions — when doe...Python & DataMediumPro previewThe difference is memory, and it's a bigger deal in ML than it sounds. A list comprehension evaluates everything up front and holds it in memory, which means you can index into it…Llama 2 reported that a small set of human-written exam...Training & Fine-tuningHardPro previewThe Llama 2 result is not a universal law; it was highly dependent on the quality of the open source synthetic datasets available at that time, which were often low diversity and…Logit soft-capping’s gradient through the tanh vanishes...Training & Fine-tuningVery HardPro previewOnce a logit exceeds approximately 2s, the gradient of the loss with respect to that logit is attenuated by (1 tanh^2(l/s)), which is near zero. The optimizer receives almost no…Make the economic argument for "small model plus a datastore" over "one big model with everything baked into its weights" — and name its limit.Retrieval & EmbeddingsVery HardEvery fact baked into a model's parameters costs the same inference time compute to carry around whether that fact gets used once a year or a million times a day — a large model…MMLU scores have been in the 90s for a year. Is the ben...EvaluationMediumPro previewWhile MMLU is still a valid tool for basic diagnostics, it no longer provides useful ranking signals for top tier models because it has reached a saturation threshold of…Model A scores a perplexity of 2.1 and Model B scores 2...EvaluationMediumPro previewPerplexity is defined as the exponential of the average negative log likelihood per token: PPL = exp( (1/N)·Σ log P(xᵢ)), and the entire comparison hinges on what N — the token…monoT5 trains a reranker as binary classification — "re...Retrieval & EmbeddingsHardPro previewThe error isn't in the sigmoid squashing or the classification head — both are monotonic transforms, so they can't reorder candidates within a query, and calibrating the output…Multi-hop accuracy is 40 points below single-hop. Do yo...RAGHardPro previewUpgrading the embedding model or raising k are ineffective because both methods simply reorder documents against a query that lacks the required bridge term. Since reordering…Multimodal search performs well in evaluation, but employees report occasionally seeing snippets from documents they shouldn’t have access to. Where’s the bug?Security & SafetyHardThe defect lies in the pipeline architecture rather than the filter logic itself. Because permissions are checked after fusion and reranking, restricted documents influence the…Multiprocessing vs. multithreading in Python — when doe...Python & DataMediumPro previewThe deciding factor is Python's Global Interpreter Lock, which allows only one thread to execute Python bytecode at any given moment. Threads share the same memory space, and…Naive Bayes and Logistic Regression can both produce a...Training & Fine-tuningHardPro previewThe difference is generative versus discriminative. Naive Bayes models the joint distribution P(x, y) by estimating P(y) and P(x|y) under a strong conditional independence…Name a class of questions where turning retrieval on ma...RAGMediumPro previewRetrieval's benefit can be modeled as a rescue term (when the model doesn't know the answer) and a harm term (when the model is misled by retrieved content). As the probability of…Name a class of questions where turning retrieval on ma...RAGMediumPro previewTurning retrieval on degrades performance specifically for questions about high popularity entities where the base model already possesses accurate parametric knowledge. The net…NCCL reports 277 GB/s on your 8-GPU NVLink node, but th...Inference & ServingHardPro previewThe difference between the 900 GB/s spec and the 277 GB/s observed is due to three factors. First, 900 GB/s is the aggregate bidirectional bandwidth, whereas the ring algorithm…Nemotron-CC uses LLM rephrasing to recover low-quality...Security & SafetyVery HardPro previewUsing an LLM to rephrase low quality documents risks introducing hallucinations or systematic biases into the training corpus. To detect this, one should monitor for perplexity…No weights change during in-context learning. What is t...LLM FoundationsHardPro previewIn context learning is not 'learning' in the traditional weight update sense. Instead, pre training on a mixture of data allows the model to predict the integral of the…NumPy copy vs. view — what's the actual difference, and...Python & DataMediumPro previewA view is a new array object pointing at the same underlying memory as the original — you get one from slicing, , or . Modifying a view modifies the original, because there's only…O3 spends roughly $200 per ARC-AGI task at 75% accuracy...EvaluationVery HardPro previewThe O3 result indicates that the necessary representations for high level reasoning are already latent within the model weights, but eliciting them requires extensive search and…Offline metrics for a conversational retriever look fin...Retrieval & EmbeddingsHardPro previewThe issue likely stems from a mismatch between the training distribution and the actual user task. If the training data consists only of single turn queries, the model lacks the…OlMoE found no gain from shared experts but DeepSeek di...LLM FoundationsHardPro previewThe discrepancy between OlMoE and DeepSeek results can be reconciled by looking at scale and training budget. DeepSeek models are significantly larger (16B 671B parameters)…One colleague wants to fix a positional-bias regression...System DesignHardPro previewThe truncation and reranking approach is more efficient and directly targets the cause of the bias. From a compute perspective, a 4x larger context window leads to a 16x increase…One engineer argues RAG’s whole point is shipping a small model because knowledge lives outside the weights. Another says generative retrieval is where the field is going, and it pushes everything back inside. They can’t both be right. Adjudicate - then tell me what changes if the corpus grows from 10^6 to 10^8 chunks.System DesignVery HardThe two engineers are debating different parts of the storage stack. The core benefit of RAG is leaving the heavy document text (the payload) in an external database, allowing the…One engineer wants a single shared embedding space acro...System DesignHardPro previewA shared embedding space pays a fixed per query cost against the entire corpus regardless of the budget. In contrast, a router's cost scales with the number of sources it chooses…One engineer wants aggressive pruning (k = 10); another...RAGHardPro previewFlat offline accuracy metrics can be misleading if the model is subject to positional bias, effectively ignoring the majority of the provided context. Paying a 3x latency penalty…One engineer wants embedding fusion to control latency...Data, Privacy & LegalHardPro previewThis is a conflict between cost optimization and regulatory compliance. Since a well pruned subgraph typically consumes only a few hundred tokens, the verbalization approach is…One engineer wants strict descending relevance order fo...RAGHardPro previewTruncation and reordering are distinct but complementary strategies. Truncation reduces the total number of chunks (n), but you still must decide the order of the remaining…One engineer wants to revert the reranker upgrade entir...LLMOps & ProductionHardPro previewThe accuracy drop is a positional artifact of context depth rather than a failure of the reranker's quality. Reverting the reranker would discard a genuine improvement in…One engineer wants to solve index staleness by fine-tun...RAGHardPro previewFine tuning is not an effective tool for real time knowledge updates. A retrieval side architecture using synchronous invalidation flags provides the necessary freshness.…One product fact in your assistant is wrong. You have a...LLMOps & ProductionMediumPro previewThe three options are: full retraining, which is extremely resource intensive (requiring a massive forward pass); model editing, which can update specific weights in seconds but…One shared retriever serves three generators: a 7B open...System DesignVery HardPro previewThe frontier model's QLM reflects its own specific reasoning patterns and parametric gaps, which may not align with the needs of an extractive reader that requires specific…One team wants binary quantization for the 32x compress...Retrieval & EmbeddingsVery HardPro previewKill the compression framing first, as both methods use 96 bytes and are not competing on memory. The decision hinges on codebook training, distance throughput, and the existence…One team wants HNSW for a 200 M-chunk index, another wants IVF-PQ, and the RAM budget just got cut. Adjudicate.Retrieval & EmbeddingsHardAt 200 million vectors of 768 dimensions, raw float32 storage is 614 GB, and HNSW graph links add significant overhead. The choice between IVF and HNSW is secondary to the need…One teammate wants MS-PoE because it is zero-overhead....Agent Protocols & ToolsMediumPro previewIn a system where the model is accessed via a hosted API, you lack the necessary access to the model's internal attention logits or positional encoding layers required for MS PoE…Our agent can already call a web search API. Is that RAG?RAGMediumPro previewA strong definition of RAG focuses on the information flow contract rather than specific plumbing like vector databases or embeddings. Calling a web search API meets the complete…Our agent re-checks its own answer until the critic pas...AgentsMediumPro previewA strong answer recognizes that rising confidence is not evidence of improved accuracy. Because the model is conditioning on its own previous text, it is not incorporating new…Our assistant answers questions about products that are...AgentsHardPro previewThe model is reciting information from its training data rather than the provided corpus. While it performs well on head entities, it fails at roughly 4% accuracy on tail entities…Our assistant is wrong on rare SKUs. The ML lead wants...RAGMediumPro previewUsing continued pre training to inject factual knowledge about 200,000 product documents into model weights suffers from poor scaling efficiency. The exchange rate for…Our assistant quotes last quarter’s pricing. Would you...Training & Fine-tuningHardPro previewThe premise of fine tuning a model on updated pricing should be rejected because pricing data is highly dynamic and changes faster than any reasonable retraining cycle. Fine…Our audit reports mean token overlap with copyrighted w...EvaluationHardPro previewThe mean is an inappropriate metric because, under lock on, the distribution is bimodal; the mean is largely determined by generations that never locked on and is independent of…Our bi-encoder hits 99% accuracy on in-batch training,...Training & Fine-tuningHardPro previewThe discrepancy exists because the two tasks measure different things. The training task is saturated because the negatives are not challenging enough. The fix is to mine hard…Our bi-encoder hits 99% accuracy on its in-batch traini...Retrieval & EmbeddingsHardPro previewThe 99% in batch accuracy is misleading because it evaluates the model's ability to identify the correct passage out of only 255 candidates drawn uniformly from the batch. These…Our chat model is RLHF-aligned and refuses to output personal data. Is training-data PII still a risk?Security & SafetyMediumAlignment via RLHF changes the model's conditional distribution, but it does not delete the underlying parameters that encode memorized sequences. A refusal behavior is merely a…Our chunk store never recorded source domain, it got fl...RAGMediumPro previewWhen source domain information is lost at the chunk level, it is often still available one level up in the document metadata. By leveraging the existing doc id foreign key, you…Our citation coverage is 100% and users still tell us t...EvaluationMediumPro previewCitation coverage measures whether the relevant document was retrieved, but it does not measure whether the model actually used that document to generate a factually supported…Our confidence scores have an ECE of 0.02. Are we well...EvaluationMediumPro previewAn ECE of 0.02 means that the model's stated confidence matches its empirical accuracy within specific buckets. However, this metric says nothing about the model's ability to rank…Our corpus is 50 GB of PDFs and we want sub-second answ...System DesignHardPro previewAt 50 GB, you are looking at approximately 42 million chunks, which exceeds the capacity for a single HNSW node at FP32. IVF PQ is a more viable candidate for memory constraints.…Our corpus is 500M chunks. A refresh is 1.41×1019 FLOPs...Retrieval & EmbeddingsVery HardPro previewA 32,768 batch size provides sufficient weight to compete with top ANN negatives, but it suffers from two major drawbacks. First, it consumes significant activation memory.…Our CTO argues that context windows are now a million t...System DesignVery HardPro previewThe argument that RAG is a transitional hack is flawed because it ignores the specific bottlenecks of AI systems. While long context windows allow for easy updates and better…Our datastore just grew from 2M to 200M chunks. Can we...RAGHardPro previewThe assumption that a larger datastore makes the generator's job easier is incorrect. A hundredfold increase in chunks makes the top k window more complex due to the higher…Our documentation changes every sprint and the assistan...RAGMediumPro previewTo solve this issue, analyze the update shape: a small fraction of a fixed corpus changing on a recurring two week cadence. Choosing fine tuning to fix deprecated documentation is…Our documentation changes every week. Why not just fine...Training & Fine-tuningMediumPro previewRelying on weekly fine tuning for rapidly changing documentation is flawed both mathematically and computationally compared to RAG: 1. Catastrophic Forgetting: Standard fine…Our generative retriever returns document IDs that don’t exist in the corpus. What’s wrong and how do you fix it?Retrieval & EmbeddingsHardThe issue is structural rather than statistical. In generative retrieval, the decoder ranges over a large space of possible strings (k^L). If the number of possible generated…Our knowledge base is 200k tokens and the model takes 2...Inference & ServingMediumPro previewPrefill compute costs scale with context length, and at 210k tokens, the system is well past the crossover point where retrieval becomes more efficient. Beyond compute, the memory…Our largest customer will sign only if their documents...Data, Privacy & LegalHardPro previewThe customer is buying a deletion guarantee, not an absence of parameters. A per tenant LoRA adapter that remains unmerged is deletable, as every gradient from that tenant's data…Our measured training FLOPs are 30% above the 6ND estim...Training & Fine-tuningHardPro previewThe 30% increase in FLOPs can be attributed to two specific factors. Activation checkpointing adds an extra forward pass, which accounts for exactly 33% of the base compute cost…Our model reproduced 400 words of a novel. How do you s...Security & SafetyMediumPro previewThe emission is a symptom, while the corpus copy is the actual exposure. While a filter can provide immediate symptom control, it has inherent limits. To effectively address the…Our p99 retrieval is 240 ms and we need 150. The vendor...Inference & ServingHardPro previewDo not assume the vector database is the problem. Attribute the latency budget to the four primary candidates: the embedding call, network latency, the reranker, and the round…Our pairwise reranker’s validation pair accuracy climbe...EvaluationHardPro previewA strong answer refuses to treat the two numbers as measuring the same thing: the pairwise objective weights every inversion equally, and nDCG@10 weights inversions by a discount…Our proposal is a nightly LoRA adapter trained on the d...Training & Fine-tuningHardPro previewWhile LoRA is parameter efficient, it does not solve the problem of interference in generative retrieval. Because the document identifier distribution is a shared softmax,…Our research lead wants the Chinchilla-optimal 77 B bec...System DesignVery HardPro previewConcede that the 77B is better at equal training compute, but point out that 'optimal' is being calculated on the wrong integral given the massive inference volume. The decision…Our stakeholders want to know what each dimension of ou...Retrieval & EmbeddingsHardPro previewThe training objective relies on inner products, meaning any orthogonal rotation of the embedding space leaves scores and losses unchanged, rendering per dimension labels…Paired video-caption training data is far scarcer than...Multimodal & Generative MediaHardPro previewThe choice between joint training and pretrain then finetune for image/video data is a familiar transfer learning trade off wearing new clothes: joint training is operationally…Platform is moving the generator behind a vendor API th...LLMOps & ProductionHardPro previewThe requirement was never the specific metric, but the observability of the system. You can use N sample agreement at multiple decodes as a coarse substitute or use an open weight…Platform wants everything consolidated onto Postgres. R...Data, Privacy & LegalVery HardPro previewThe legal requirement for EU data residency is the primary constraint, which forces a per region deployment and makes a single global store illegal. This reframes the debate from…Platform wants to consolidate five per-language indexes...System DesignHardPro previewCorrect the premise: consolidation does not save storage because the number of documents remains the same. Savings come from reducing the number of model deployments, evaluation…Platform wants to decommission the Elasticsearch cluste...LLMOps & ProductionHardPro previewThe resolution should be empirical. Evaluation sets sampled from logs often fail to represent the long tail of queries. You should request recall stratified by IDF. If the…Platform wants to drop TableFormer and go back to TAPAS...LLM FoundationsVery HardPro previewBefore switching, verify if the attention bias truly blocks fused kernel exports, as it is often compatible. If the constraint is real, compare the costs: 5x augmentation consumes…Platform wants to ship GNN-RAG for a two-orders-of-magn...RAGHardPro previewThe latency win and the accuracy regression are not in tension; they measure different aspects of the system. The regression is the expected cost of swapping a symbolic retriever…Pointwise, pairwise, or listwise - pick one for a promp...RAGMediumPro previewA strong answer identifies the governing variable: how many documents the model sees per decision, which fixes call count, serial depth, and whether the model provides a…PPO for an LLM is actually a contextual bandit, not a f...Training & Fine-tuningHardPro previewTreating an LLM as a contextual bandit rather than a full Markov Decision Process (MDP) means that there are no intermediate state transitions; the prompt is the context, the…PQ made the index 30x smaller and recall@10 dropped six points. You add exact reranking to recover it. What just happened to your budget?Retrieval & EmbeddingsHardReranking requires full precision vectors to be available. Consequently, the 1.09 GB index acquires a 15.36 GB companion in float16, causing the real compression ratio to fall…Product just cut the P50 latency budget from 3 s to 800...System DesignVery HardPro previewThe proposal to iterate on every query is mathematically infeasible, as the current iterative configuration takes roughly 3,240 ms, which is four times the new 800 ms budget. The…Product wants agentic RAG because a competitor announce...AgentsHardPro previewTo resolve the conflict between Product and SRE, analyze the per hop execution costs of agentic RAG. A single agent loop requires a tool/control routing decision, vector…Product wants one unified relevance score across all mo...System DesignHardPro previewThe conflict arises from conflating a shared numeric scale with a coherent user experience. You should propose per slot composition: use calibrated per modality thresholds to…Product wants p95 under 1.15 s and will not accept an a...RAGHardPro previewTo meet the latency target without cutting rounds, optimize the input to the reader. By reducing the number of passages from fifteen to five, you can significantly lower the token…Product wants QPS to jump from 500 to 5,000 for a 100 m...Retrieval & EmbeddingsHardPro previewThe decision depends on whether the bottleneck is memory or compute. Because the corpus size is constant, the memory driven shard count remains valid. The increased QPS is a…Product wants the reranking stage to add no more than 1...LLMOps & ProductionVery HardPro previewDo not attempt to pass all 50 candidates through the 7B MLLM. First, shrink the field using per modality confidence thresholds so only the most ambiguous candidates reach the…Product wants to maximize user clicks, and sales wants...System DesignHardPro previewThe tempting move is to fold both objectives into one loss function — something like α·LogLoss(click) + β·MSE(profit) — and spend the interview tuning α against β to find a sweet…Product wants to replace the CLIP retrieval backbone wi...Inference & ServingHardPro previewRather than an all or nothing backbone swap, you should implement a funnel pattern. Use the efficient CLIP based retrieval for the majority of queries to maintain latency SLOs. At…Production accuracy dropped 15% but your offline evalua...EvaluationHardPro previewHealthy offline metrics plus a real production drop is close to a textbook signature of training serving skew, and it's worth diagnosing in a fixed order rather than guessing.…Propose an experiment to determine whether grouped-quer...EvaluationHardPro previewTo design this experiment, you must isolate the impact of grouped query attention (GQA) by controlling for variables such as total model size and training sequence length.…QLoRA versus LoRA — what does QLoRA specifically add, a...Inference & ServingHardPro previewPlain LoRA solves the trainable parameter problem: instead of updating every weight, you freeze the base model and train small low rank adapter matrices injected into specific…RAG relies on in-context learning to make use of retrie...Training & Fine-tuningHardPro previewIn context learning lets a model make use of new information placed in its prompt at inference time, with no weight updates at all — the "learning" is entirely a property of the…Random Forest and Gradient Boosted Trees are both ensembles of trees — what actually distinguishes them in practice?Training & Fine-tuningMediumThey sit on opposite ends of the bagging/boosting split, and that shows up in every practical dimension. Random Forest grows deep, mostly independent trees on bootstrapped rows…Rank the three ablations in the ColBERT paper by damage...Retrieval & EmbeddingsMediumPro previewThe ColBERT paper's ablation study provides critical insights into the architecture's performance. Collapsing to [CLS] is the most damaging, proving that fine grained token level…REALM has no relevance labels. So what supervises the r...RAGMediumPro previewREALM uses the masked token likelihood as its training signal. The coefficient p(z | x)[p(y | z, x)/p(y | x) − 1] determines the gradient; a block receives a positive reward when…Recall is 2 points short. One team wants to double npro...Retrieval & EmbeddingsVery HardPro previewDoubling nprobe doubles the scan to 48,828 candidates, which stays inside the block structured kernel and has no new failure modes. Exact reranking requires 200 scattered random…Recall is low on an IVF-PQ index. What levers can you a...Retrieval & EmbeddingsHardPro previewTo improve recall without increasing memory, start with residual encoding, which captures information PQ cannot model. Before implementing, check the correlation coefficient (ρ)…Recall@10 dropped after migrating from HNSW to IVF-PQ....Retrieval & EmbeddingsHardPro previewTo diagnose the drop, you must separate the two potential sources of error: routing (the IVF component) and quantization (the PQ component). By setting nprobe equal to nlist on a…Recall@20 on your eval set is meaningfully higher than...EvaluationMediumPro previewRecall@k is a measure of retrieval coverage, but it does not account for the generator's performance limitations. As you increase k, you increase the likelihood of the gold…Recall@k held steady - actually improved - after the de...EvaluationHardPro previewWhen recall@k holds steady but accuracy falls, the issue is likely in the generation stage. You should isolate the questions that are now being answered incorrectly and examine…Relative encodings claim to generalize to unseen length...LLM FoundationsHardPro previewRelative encodings often fail to generalize perfectly. T5 clips relative distances at a maximum offset k, meaning the model cannot distinguish between positions beyond that…Research wants a learned per-query stopper. Platform wants a hard cap of two rounds, because p95 is a contractual SLO and variance is the enemy. Adjudicate.RAGVery HardA fixed cap optimizes the tail of the distribution, while a learned stopper optimizes the mean but may widen the tail. If more than 15% of traffic requires three or more hops, a…Research wants a tied Contriever with a 500-step refres...LLMOps & ProductionVery HardPro previewA 500 step refresh with a tied Contriever creates a massive compute multiplier (e.g., 6.2x) that is unsustainable within a two week schedule. If the objective is LM supervised,…Research wants joint end-to-end training. Platform poin...RAGVery HardPro previewThe decision hinges on the operational cost of index maintenance. With the encoder (phi) frozen, a 5% weekly turnover requires encoding only 500,000 new chunks, which is a…Research wants six agents plus a review layer. SRE will...RAGVery HardPro previewWhen evaluating a multi agent system, you must calculate the total decode time. Six summaries plus a critic and synthesis layer will likely exceed a 2s p95. Debuggability is also…Research wants to map copying circuits to guarantee ver...System DesignVery HardPro previewCopying is circuit implemented and can be measured via the OV spectrum, but the eigenvalue evidence is correlational and per model, making it fragile to base model swaps.…Research wants to pre-train a domain 70B model, but fin...System DesignHardPro previewFor a deployment volume of 10,000 queries per day, the cost of pre training a 70B model is prohibitive. The break even point for pre training is significantly higher than this…Research wants to replace the hand-tuned FLARE threshol...AgentsVery HardPro previewThe concern regarding OOD exposure is valid, as learned stopping policies are prone to the same issues as other classifiers like CRAG or Adaptive RAG. However, the cost argument…Research wants to replace the production LambdaMART rer...System DesignVery HardPro previewConcede the offline gain, then name the invariant it breaks. Multivariate scoring makes a document’s score a function of which competitors share its list, so per shard reranking…Research wants to train a 300M model to full convergenc...Training & Fine-tuningHardPro previewWhile training a model to full convergence is theoretically sound for maximizing data utility, the proposed plan leaves 40% of the compute budget unspent while only utilizing 12%…Retrieval and generator teams each want the same quarte...System DesignVery HardPro previewRather than relying on subjective arguments, you should calculate the marginal rates for each team. Retrieval work pays Aorc − Ang, which equals 0.51 per unit of recall. Generator…Retrieval made an internal QA assistant worse on questi...RAGVery HardPro previewFormalize it before reaching for a heuristic. Let p(q) be the probability a closed book answer is correct and r(q) the probability a retrieval augmented answer is correct, with…Retrieval metrics improved after you shipped document-side query expansion, but a stakeholder insists users still can’t find internal documents they know exist. Two engineers disagree on the fix: one wants to regenerate predicted queries with a larger model; the other wants to change the generation prompt. How do you adjudicate?EvaluationHardBefore committing engineering resources to model or prompt changes, you must perform a diagnostic check to localize the failure. By pulling the specific document by its ID, you…Retrieval owns recall@5 of 0.94 and says the generator...EvaluationVery HardPro previewThe current metrics are misleading. Recall@5 measures topical relevance to the surface query, which makes it silent on critical failure modes such as multi hop reasoning errors or…Retrieval quality drops two points a quarter. No model...LLMOps & ProductionMediumPro previewThe system is self consistent because both query and document pass through the same frozen model, but the underlying data distribution has shifted. Do not upgrade the model…Retrieval wants the router to also choose which datasto...System DesignVery HardPro previewJoint routing over both actions and sources creates a massive, sparse labeling problem that is inefficient to maintain. By using a cascade, you separate the decision of 'what to…Retrieval wants to fan out across all three stores for...RAGVery HardPro previewThe framing of these requirements as a single request is flawed. Fan out for retrieval is a separate decision that incurs only a few milliseconds of latency. In contrast, setting…Retrieval wants to raise the context from 8k to 32k to...Inference & ServingHardPro previewIncreasing the context from 8k to 32k results in a 4x increase in KV cache per request and a significant increase in prefill FLOPs due to the quadratic nature of the attention…Retrieval wants top-k raised from 5 to 20 for recall. E...RAGHardPro previewThe conflict between the retrieval team and the evaluation team is a classic trade off. Increasing k improves recall, which helps with missing information, but it also increases…Retrieved knowledge can be injected into a model as tex...RAGVery HardPro previewThese are three different points on the same trade off between flexibility, cost, and auditability. Text injection — standard RAG, placing retrieved passages directly in the…RLHF, DPO, ORPO, and KTO all align a model to human pre...Training & Fine-tuningHardPro previewThe four methods sit on a spectrum of "how much machinery do you need, and what data can you actually collect." RLHF is the original, heaviest approach: train a reward model on…Roughly how much memory do the MLP weights consume in a...LLM FoundationsHardPro previewTo estimate the memory, consider that each layer contains three matrices of size 4096 x 11008. At 2 bytes per parameter (BF16), one matrix is approximately 90 MB. With three…Router accuracy is 82% on the held-out set, but end-to-...EvaluationHardPro previewRelying on aggregate scalar accuracy masks the severity of specific error types. Routing a knowledge intensive query to 'answer directly' removes necessary evidence, leading to…ROW_NUMBER, RANK, and DENSE_RANK all rank rows — what's...Python & DataEasyPro previewThe standard deduplication pattern is worth memorizing verbatim, because it comes up constantly in real data work: keeps exactly one row per email — the earliest by signup date —…Safety wants ECE < 0.01 as a launch gate, while Product...LLMOps & ProductionVery HardPro previewThe two requirements are not mutually exclusive. Calibration is a post processing task that can be achieved by fitting a map on a held out split, which does not degrade AUROC.…Say you're building a funnel where only 1-2% of traffic...Inference & ServingVery HardPro previewIt sharpens the reasoning rather than changing its direction. At a 1 2% positive rate, a funnel is close to strictly dominant, and it's worth making the math explicit rather than…Search wants depth 1,000 for long-tail queries. Platform wants 50 to hold p99. Both have data. Adjudicate.System DesignVery HardFind the variable they disagree about, which is the slope of their recall curve on the long tail slice. If long tail queries are served by an exact match heavy sparse path, their…Search wants to replace the cross-encoder with a listwi...System DesignVery HardPro previewPut the cost model on the board: listwise reranking is significantly slower than cross encoding. The solution is to cascade the cross encoder to k=20 and run one window, which…Search wants to standardize the team’s dashboards on MR...EvaluationHardPro previewUsing MRR for decision making requires binarizing graded relevance judgments, which discards the valuable signal collected by the relevance team. Instead, use nDCG@k for technical…Security has just forbidden any outbound call from this...RAGHardPro previewThe constraint removes the 'web search' action, but the evaluator's verdict remains useful. With no fallback, the cost function forces the 'incorrect' branch toward abstention or…Security proposes binary quantization to mitigate data...System DesignHardPro previewBoth binary and product quantization are memory optimizations, not security mitigations. If you perform the math, you will find that even with quantization, the remaining…Security requires a live revocation check for every doc...LLMOps & ProductionHardPro previewA live check at k=20 would triple the latency budget, making it infeasible. Rather than breaking the SLA or dropping the check entirely, a periodically refreshed cache provides a…Security requires scanning and stripping instructions f...Security & SafetyHardPro previewInstead of debating the 180ms in the abstract, measure the actual security benefit against a red team set. You can optimize by applying the scan only to lower trust sources like…Security wants a full red-team re-run before every depl...LLMOps & ProductionHardPro previewThe conflict between release cadence and security should be resolved by differentiating the risk profile of the changes being deployed. Changes that directly alter the model's…Self-consistency and self-reflection both sample the mo...AgentsHardPro previewThe difference lies in the conditioning. Self consistency draws are exchangeable, which allows for error cancellation. Reflection draws are sequential; each draw is conditioned on…Self-RAG’s critic is the generator itself. Isn’t that j...AgentsMediumPro previewIt is important to separate the timelines. At training time, the judgment is external—a GPT 4 teacher distilled through a critic model into corpus annotations. At serving time,…Semantic chunking improved recall@5 on our evaluation set. Should we ship it?RAGMediumBefore shipping, verify that the evaluation set isn't biased; for example, concatenating unrelated documents can create artificial boundaries that flatter semantic chunking.…Semantic chunking lifted recall@5 by three points on ou...RAGHardPro previewBefore deploying, you must investigate the composition of your evaluation set. If the set was constructed by concatenating unrelated documents, it creates artificially sharp topic…Semantic chunking raised our recall@5 by eight points a...RAGHardPro previewRefuse the framing that the eight point gain is a success. Increasing the text per retrieved chunk by 2.8x will naturally raise recall without necessarily improving the quality of…Serving wants to cut k from 40 to 5 to hit a p99 target...RAGVery HardPro previewRefuse the framing that k is a single knob for quality vs. latency. Analyze the rate at which gold passages appear in the top 5 vs. top 40. If the 'cliff' is explained by this…Should a RAG system ever refuse to answer, and what mak...EvaluationHardPro previewYes, deliberately — when retrieval didn't surface genuinely relevant evidence for a question, generating a confident sounding answer anyway is worse than saying so plainly. A…Should we convert an eight-shot in-context learning blo...LLM FoundationsHardPro previewConverting a demonstration block to a LoRA adapter is technically flawed because the update is additive, rank bounded, and applied at every layer, but it is also query…Should we fine-tune an existing retriever on a new coun...Retrieval & EmbeddingsHardPro previewWhile fine tuning on a new corpus adjusts the embedding space to the new topic distribution, it does not address the specific requirement of identifying counter arguments. Since…Should we perform continued pre-training on 200,000 pro...RAGHardPro previewContinued pre training is the expensive axis of development. With 200,000 documents, most individual facts remain rare within the training data, leading to poor recall.…Should we replace the trained router with a GPT-4 promp...System DesignHardPro previewUsing an LLM to route is often counterproductive because the cost of the LLM call may exceed the savings gained by routing to a cheaper path. Additionally, you lose the calibrated…Should we run three rounds of filter-and-retrain on exi...Retrieval & EmbeddingsVery HardPro previewWhile the first round of filtering raises precision, subsequent rounds are problematic. The filter becomes the model's own top K decision applied to data it was already trained…Should you fine-tune an LLM on your documents to fix wr...RAGEasyPro previewFine tuning is often a misguided response to RAG errors. It teaches the model style and format, not factual knowledge. Before scheduling training, perform an oracle context…Should you fund sparse-autoencoder (SAE) features for interpretability or a cross-encoder reranker for performance?LLMOps & ProductionHardWhile SAEs are a principled way to address the oversubscription of the residual stream, they are fitted to a specific model and layer. A reranker is more robust because it…Should you merge customer-specific adapters into the ba...Inference & ServingHardPro previewMerging adapters into the base model for 40 customers results in 560 GB of weights and prevents batching, which is inefficient. Keeping adapters unmerged allows for a single 14 GB…Should you replace human AIS rating with a single fine-...EvaluationHardPro previewA single step NLI classifier is insufficient because it lacks the ability to distinguish between a model that is hallucinating and a model that is struggling with ambiguous input.…Should you retrieve more documents or buy a better rera...RAGMediumPro previewRefuse the false dichotomy of choosing one over the other without context. At low values of m (e.g., m=3), adding a document often provides more value than a better ranker, but…Should you trust an attribution judge with 95% accuracy...RAGEasyPro previewHigh accuracy can be misleading if the test set is imbalanced. A judge that defaults to 'attributable' for every claim might achieve 95% accuracy while failing to identify any…Should you use a shared constant K for two different ge...EvaluationHardPro previewK represents an expectation of how much information a good response should contain for a specific task. If you import a high K value into a task where brevity is the goal, the…Single-fact lookups work, but multi-fact queries fail....RAGHardPro previewA strong answer identifies that the failure is due to a level shift in complexity. If you need three facts and each has a 90% retrieval probability, the pooled query probability…Sketch a fused softmax kernel in Triton.Inference & ServingHardPro previewTo sketch a fused softmax in Triton, you define a row per block grid where each program ID (pid = tl.program id(0)) handles a specific row. You compute memory offsets using…Some models run attention and MLP in parallel instead o...LLM FoundationsHardPro previewParallel layout fuses both sets of projections against the same normalized input in a single large matrix multiply, which saves memory round trips and can yield roughly a 15% wall…Someone proposes raising your multi-hop loop’s step cap...RAGMediumPro previewAccuracy is not monotone in the number of steps. Past a certain depth, additional rounds add no new evidence and instead introduce dilution, which can degrade performance. Even if…Someone swapped Document 1: for [1] in your context template and grounded accuracy moved four points on a 500-question set. Real, or noise?EvaluationHardTo determine if the change is real or noise, one must first calculate the noise floor. Given a sample size of 500 questions and an accuracy of approximately 64%, the standard…Sparse vectors have tens of thousands of dimensions and...Retrieval & EmbeddingsEasyPro previewDense vectors require a fixed 768 coordinates per chunk, leading to high storage costs (e.g., 33 GB for ten million chunks). Sparse vectors, despite having high dimensional…Suppose you disaggregate prefill and decode onto separa...System DesignHardPro previewDisaggregating prefill and decode allows engineers to match hardware to the specific workload characteristics. Prefill optimized hardware benefits from high FLOP count GPUs (like…Synthetic chunking benchmarks show a massive improvemen...RAGHardPro previewSynthetic benchmarks often rely on concatenated documents that create sharp, artificial topic boundaries which semantic chunkers can easily detect. Real world documents rarely…Tabular data, 50k rows, 30 features. Neural network?Training & Fine-tuningEasyPro previewAlmost certainly not. At that scale — 50,000 rows, 30 features — gradient boosting (XGBoost, LightGBM, that family) will usually match or beat a neural network, train in minutes…TAPAS is just BERT. So what does it actually add?LLM FoundationsMediumPro previewTAPAS modifies the input representation of BERT rather than the attention architecture itself. It uses row major serialization to map cells to indices, but because standard BERT…Tell me about a training run you debugged from first sy...Training & Fine-tuningHardPro previewThis question tests your hands on experience with production training pipelines. You should structure your response by identifying the specific symptom that triggered the…Temperature scaling cut our ECE tenfold and selective p...EvaluationHardPro previewTemperature scaling is a one parameter map that is strictly increasing. Because the entire risk coverage curve and AUROC are dependent only on the ordering of the scores, applying…Template A scores 0.024 nats per token and template B scores 0.019. Ship B?EvaluationMediumSensitivity is evidence about accuracy, not a direct measurement of it. A lower sensitivity score (like 0.019 vs 0.024) suggests better stability, but it is a correlation. You…Tensor parallelism divides your parameter memory by t....Inference & ServingMediumPro previewIn vanilla TP, matmul activations (FFN intermediate, attention projections) divide by t, but pointwise activations stay full size. Sequence parallelism addresses this by replacing…The answer position puts 0.9 of its attention mass on t...RAGHardPro previewSince the QK circuit successfully placed attention mass on the correct chunk, the retrieval mechanism performed its job. To diagnose the issue, one should permute the context to…The attention arithmetic intensity is always ≈ 1 no mat...Inference & ServingVery HardPro previewTo address the low arithmetic intensity of attention, two primary strategies exist. First, reduce the size of the KV cache to minimize the bytes transferred per step. Techniques…The client wants a chatbot over their documents. Walk m...System DesignHardPro previewFirst, I'd push back gently on the framing — "a chatbot over our documents" is a solution someone has already picked, not a problem statement. What decision does someone actually…The clinical safety lead demands 99% correctness before...EvaluationVery HardPro previewThis conflict represents a fundamental tension between safety requirements and product utility that cannot be resolved by compromise. The safety lead's demand for 99% correctness…The corpus refreshes weekly, 5% of chunks change. Produ...LLMOps & ProductionVery HardPro previewA full nightly rebuild is inefficient because it re processes 95% of the data that has not changed. By performing incremental extraction on the 5% of new data and reserving the…The correct passage is in the context window and the mo...Training & Fine-tuningHardPro previewWhen a model ignores provided context in favor of its internal memory, it indicates a failure in instruction following behavior rather than a lack of knowledge. This issue is…The correct passage is in the context window, but the m...Training & Fine-tuningMediumPro previewWhen a model ignores a relevant passage present in its context window and relies on parametric memory instead, the problem is not a lack of knowledge, but an alignment/behavioral…The data lead wants to fine-tune next quarter’s model o...Training & Fine-tuningVery HardPro previewThe research lead is correct about the risks. Training on production traces leads to collapse, where the model loses the ability to handle long tail entities, and selection bias,…The data team wants tables extracted into a warehouse f...RAGHardPro previewRather than forcing a choice between a warehouse and a vector index, the architecture should be partitioned based on the nature of the user's query. Lookup questions, which…The data team wants tables in a warehouse for text-to-SQL; the search team wants everything in a vector index. How do you adjudicate?RAGHardPartition the strategy based on the question type. Lookup questions are answerable via retrieval if headers are repeated in rows. Aggregation questions, which require properties…The data team wants the tables extracted into a warehou...System DesignHardPro previewRefuse the framing that one approach must win. Partition by question type using the derivation: lookup questions name a row and a column and can be answered from a header‑repeated…The latency budget dropped from 3s to 1.2s. Eight paral...Inference & ServingVery HardPro previewSelf probing is often insufficient because it returns a verbalized number with limited support, making it impossible to set precise cutoffs. Instead of switching methods, reduce m…The licence on a corpus we already fine-tuned on is rev...Data, Privacy & LegalVery HardPro previewNeither the legal counsel's demand for destruction nor the ML lead's claim of negligible impact is based on actual measurement. It is critical to distinguish between mixing…The license on a corpus we already fine-tuned on is rev...Data, Privacy & LegalVery HardPro previewNeither the legal nor the ML lead's position is empirically supported. You must clarify that a 0.3% mixing weight is not equivalent to an extraction rate; a small, heavily…The model reports 80% confidence on a six-sentence answ...EvaluationMediumPro previewA scalar confidence score on a multi sentence answer is mathematically ill defined without context. It could represent the probability that the entire document is correct (a point…The p99 budget just dropped from 800ms to 250ms. One en...System DesignHardPro previewThe decision depends on the measured value of the selector. If the selector's contribution to accuracy is near zero, zero shot is the correct choice. If it is high, reducing the…The p99 latency budget dropped significantly. How do yo...System DesignHardPro previewThe adjudication should be based on measured impact. Cutting candidates from 1,000 to 50 saves almost no time on retrieval but takes a 20x bite out of the reranker's visibility.…The platform team will fund exactly one index for a 500...Retrieval & EmbeddingsVery HardPro previewDo not arbitrate based on team preference; instead, focus on the arithmetic of the storage requirements and the failure modes of the models. At 500 million chunks, a dense index…The product team wants a 2x speedup and has forbidden q...Inference & ServingHardPro previewBatching is the instinctive answer, but it improves aggregate throughput across many users — it doesn't make a single user's generation faster, which is what was actually asked…The retrieval lead wants your four demonstrations delet...RAGHardPro previewDo not argue based on priorities. Since demonstrations and retrieved chunks compete for the same prefill FLOPs and KV bytes, the trade off is mathematically decidable.…The retrieval team just shipped a reranker taking recall@5 from 80% to 92%. One engineer wants to retrain with P = 0.92; another says P no longer matters, ship the always-golden model. Adjudicate.Training & Fine-tuningVery HardThe choice between an 'always golden' model and a RAFT trained model depends on the recall threshold. By solving for the intersection of the two models' accuracies, we find that…The retrieval team wants to ship a new embedding model...LLMOps & ProductionHardPro previewThe disagreement is a consequence of the efficiency trade off: precomputed vectors are bound to the specific model weights. Re encoding 500M chunks is computationally expensive…The retrieval team wants to ship a new embedding model...Retrieval & EmbeddingsVery HardPro previewThe disagreement between the retrieval and platform teams is a classic efficiency trade off. Bi encoders rely on precomputed vectors to ensure fast retrieval, but these vectors…The safety lead wants the self-check run five times wit...EvaluationHardPro previewMajority voting only improves accuracy if the votes are independent. Running the same model five times on the same context yields little to no improvement in the likelihood ratio,…The search team wants LLM query expansion on every requ...System DesignHardPro previewThe choice between query time expansion and index time document expansion (doc2query) is primarily a trade off in latency and operational flexibility. While compute costs for both…The task changed from four-way classification to free-f...AgentsHardPro previewThe change to open ended generation invalidates label balance filters and normalization techniques that rely on a finite set of labels. Instead of these methods, you should probe…The task changes from four-way classification to multi-...Training & Fine-tuningHardPro previewThe shift to numerical reasoning breaks the local averaging theory of in context learning, as a weighted average of labels cannot produce a derivation not present in the examples.…The team wants to concatenate the last N turns into the...RAGHardPro previewA fixed window approach is fundamentally flawed because it ignores the semantic structure of a conversation. Instead of a fixed N, you should implement a switch classifier to…The tree needs to support a corpus with rolling daily u...RAGHardPro previewStaleness is acceptable for content where themes change slowly, but it becomes a problem if leaf updates contradict existing summary nodes. Rather than a blind weekly rebuild or…The trigger fires. Do you retrieve with the drafted sen...RAGHardPro previewUsing the raw drafted sentence is a failure because the flagged span is the model’s guess, and embedding it retrieves neighbors of that guess, effectively manufacturing support…There are several ways to get an LLM to produce valid JSON. Rank them by reliability, and say which one belongs in a production pipeline.Agent Protocols & ToolsMediumThe five methods sit on a clear reliability versus control spectrum, and it's worth being precise about what each one actually guarantees rather than treating "JSON output" as one…Thirty percent of your tail queries return zero results. Where do you start?Retrieval & EmbeddingsMediumWhen a significant portion of tail queries returns zero results, the first step is to segment the query population to distinguish between different underlying issues that produce…Three generators sit behind one router. One engineer wa...System DesignHardPro previewBegin by assessing the evaluation size; a four point gain on a small set may simply be noise. Address the maintainability argument by noting that while KV caches are per model…Throughput or latency — which are you optimizing?Inference & ServingMediumPro previewThey trade against each other, so the honest answer is "depends which the use case actually needs" — and knowing which one matters is the actual skill, not defaulting to one.…To avoid a re-index, can we embed only new documents wi...Retrieval & EmbeddingsHardPro previewThe objectives of embedding models depend on inner products, and the resulting space is only defined up to an orthogonal transform. Consequently, cross model cosine similarity is…Top-k and top-p (nucleus) sampling both restrict which...Inference & ServingMediumPro previewBoth methods exist to fix the same problem with plain (unrestricted) sampling: even a low probability token can occasionally get drawn, and in a vocabulary of tens of thousands of…Training only on permissively licensed text will wreck...Data, Privacy & LegalHardPro previewConcede the measurement gap rather than arguing against it. Show that the quality issue is one of composition, not scale, making a test time datastore the correct instrument to…Training sequence length is 128K and the KV cache no lo...Training & Fine-tuningVery HardPro previewPlain sequence parallelism shards the query dimension across GPUs but leaves the key/value dimension whole on every device, so it doesn't actually relieve KV memory pressure —…Training throughput is lower than expected. How do you...LLMOps & ProductionMediumPro previewTo diagnose throughput bottlenecks, use Nsight Systems to visualize the GPU timeline. If there are gaps—periods where no kernel is running—the GPU is idle, meaning the CPU is not…Two annotators labeling a toxicity dataset where only 1...Python & DataMediumPro previewRaw percent agreement is a dangerous metric on imbalanced data because it doesn't separate genuine consensus from the base rate doing the work for you. On a dataset that's 99%…Two candidate systems land on the exact same macro F1....EvaluationMediumPro previewWhen macro metrics are tied, the choice should be driven by the traffic mix. One system might excel at complex multi hop queries while the other performs better on simple single…Two colleagues disagree: one wants to always retrieve b...RAGHardPro previewBuilding a confidence gated router is an expensive and unsolved problem, as it requires highly reliable uncertainty estimates. Given the one month constraint, you should reject…Two engineers disagree on whether to buy a reranker or...System DesignHardPro previewThe adjudication process should focus on identifying the 'shape' of the failure. Rerankers are designed to move L1 and L2 precision, whereas graph indices are machinery for multi…Two engineers disagree. One wants a LoRA adapter per cu...RAGVery HardPro previewAdapters require 400 training runs per hour, making corrections invisible until the next run completes. Vector indexes handle inserts in milliseconds and deletes via tombstones,…Two of your sources return contradicting values for the...RAGHardPro previewThe system should first assess whether the sources are independent or merely copies of the same document, as this distinguishes between a genuine conflict and a counting artifact.…Two RAG systems both score 66% end-to-end accuracy on the same benchmark. Are they equally good?EvaluationVery HardIt is a common trap to assume equal performance based on benchmark scores without verifying the evaluation methodology. Faithfulness against gold context is significantly easier…Two replicas are available. How do you route an incomin...Inference & ServingHardPro previewEffective routing in a multi replica environment prioritizes cache locality. The system computes the prefix hash of the incoming prompt and checks each replica's prefix hash table…Two retrievers post identical precision@10 and recall@1...EvaluationMediumPro previewIdentical precision@10 and recall@10 scores can mask significant differences in performance. For example, one retriever might achieve high recall at rank 5 while another only…Two systems both report 92% faithfulness on the same ev...EvaluationMediumPro previewA single metric like faithfulness does not account for the severity of failure. In high stakes environments, the cost of the residual failure rate is significantly higher. You…Two teams search one index with the same query strings...System DesignMediumPro previewBuilding separate indexes or fine tuning per team rerankers doubles ongoing costs and fails to generalize to future teams. A more robust approach is to incorporate the intent into…UAR’s figure shows four classifiers in parallel and a d...Inference & ServingHardPro previewTraining is parallel, utilizing four independent binary heads over the same frozen base model hidden state without shared loss. During inference, the system functions as a…Under what conditions does kernel fusion not help, or e...Inference & ServingHardPro previewIf an operation is compute bound (above the ridge point), the system is waiting on compute cycles rather than memory bandwidth; therefore, fusing memory bound operations around it…Under what conditions does μP fail to transfer the lear...Training & Fine-tuningMediumPro previewThere are three primary failure modes for μP. First, learnable gains in normalization layers introduce scale dependent implicit learning rate amplification. Second, high weight…Usage triples overnight. The team behind the open sourc...LLMOps & ProductionHardPro previewAdding parallel workers is counterproductive because it increases the request volume, which is the exact cause of the rate limit threat. A blockchain ledger is irrelevant to the…Users query in Swahili, your corpus is mostly English,...Retrieval & EmbeddingsMediumPro previewBM25 scores are based on IDF weighted overlap; if there is no overlap, the score is zero, and the ranking is arbitrary. Tuning hyperparameters or adding synonyms cannot solve this…Users report the assistant gets 'how many' and 'total' questions wrong, but retrieval recall@20 is 0.94. What do you change?RAGHardThe core failure stems from evaluating aggregation questions ('how many', 'total') with standard top k retrieval metrics like recall@20. Recall@20 measures whether relevant…Users type exact part numbers and our dense retriever m...Retrieval & EmbeddingsMediumPro previewIncreasing dimensions (e.g., from 128 to 768) simply multiplies index bytes without changing how the model allocates coordinates to distinctions. Tokens that appear rarely in a…Walk me through a decoder-only transformer block. What...LLM FoundationsMediumPro previewEach decoder only transformer block contains a self attention sub layer followed by an MLP sub layer. These are wrapped in pre norm residuals, where normalization occurs before…Walk me through every place in a BF16 training run wher...Training & Fine-tuningHardPro previewWhile BF16 is used for the HBM heavy tensors, FP32 is necessary in specific areas to maintain numerical stability. First, matmul accumulation occurs in FP32 register buffers…Walk me through how a diffusion language model generate...Inference & ServingMediumPro previewA diffusion language model generates text by iteratively refining a sequence through a denoising chain. Starting from xK, the model performs a series of full sequence forward…Walk me through how Common Crawl becomes training tokens.Data, Privacy & LegalMediumPro previewCommon Crawl provides data in WARC (raw HTTP) and WET (pre extracted text) formats. A robust pipeline extracts high quality text from the raw WARC files using specialized tools…Walk me through how DDP works and what its limitations...Training & Fine-tuningMediumPro previewDDP (Distributed Data Parallel) operates by replicating the model across all participating GPUs. Each GPU processes a unique slice of the data batch. After the local forward and…Walk me through how FSDP reduces optimizer-state memory...Training & Fine-tuningMediumPro previewNaive DDP replicates the entire model, gradients, and optimizer states on every GPU, which is highly memory inefficient for large models. FSDP (Fully Sharded Data Parallel)…Walk me through how gradients are synchronized in a sta...Inference & ServingMediumPro previewIn a standard data parallel training run, each GPU computes gradients on its local mini batch during the backward pass. Following this, the GPUs call AllReduce (typically using a…Walk me through how linear attention eliminates the qua...LLM FoundationsHardPro previewStandard softmax attention suffers from quadratic complexity because it requires computing an N x N attention matrix. Linear attention eliminates this by replacing the softmax…Walk me through how speculative decoding works and why it speeds things up.Inference & ServingMediumSpeculative decoding operates by having a draft model generate a sequence of K tokens, which are then verified by the target model in a single forward pass. Because the target…Walk me through how text representation evolved, and te...Retrieval & EmbeddingsMediumPro previewThe evolution of text representation can be viewed as a series of trade offs rather than a strict timeline. Orthogonal axes provide exact matching but forbid synonymy. Static…Walk me through how you train a reward model from pairw...Training & Fine-tuningMediumPro previewTo train a reward model, you start with the Bradley Terry model, where each response is assigned a latent scalar reward and preferences are modeled as logistic in the reward…Walk me through how you would build a pre-training corp...LLM FoundationsMediumPro previewBuilding a corpus from Common Crawl involves a structured four stage pipeline. First, extract content from WET or WARC files using appropriate tools. Second, apply language…Walk me through how you would checkpoint a 70B model tr...LLMOps & ProductionHardPro previewCheckpointing a 70B model requires a robust strategy: utilize ZeRO 3 sharding to distribute the load, and employ async host RAM staging to move data to NVMe in the background to…Walk me through how you would choose between SFT, DPO,...Training & Fine-tuningMediumPro previewThe choice of training method depends on the type of feedback signal available. If you have expert demonstrations, start with SFT. If you have human pairwise preferences, move to…Walk me through how you would deduplicate a 10-trillion...Data, Privacy & LegalHardPro previewTo deduplicate a 10 trillion token corpus, you must define the unit of deduplication (e.g., paragraph or document), the matching criteria (e.g., exact or fuzzy), and the action…Walk me through how you would design a context-extensio...Training & Fine-tuningHardPro previewA successful context extension design requires a graduated schedule that moves beyond simple architectural changes. It is essential to incorporate document contiguous packing and…Walk me through how you would filter Common Crawl to pr...RAGMediumPro previewA robust filtering pipeline starts with language identification to isolate English text. Next, apply heuristic rules to remove low quality content. Then, use perplexity filtering…Walk me through how you would implement a custom activa...LLMOps & ProductionHardPro previewA custom fused CUDA kernel requires a two part structure. The CPU wrapper handles device checks, contiguous checks, empty like allocation, grid computation, and the kernel launch.…Walk me through how you would run an isoFLOP experiment to estimate the compute-optimal model size for your team’s next training run.Training & Fine-tuningVery HardTo conduct an isoFLOP experiment, first select 5 7 compute budgets spanning 2 3 orders of magnitude below your target. At each budget, train 5 8 model sizes ranging from…Walk me through how you'd take an AI product from an id...System DesignMediumPro previewThe single biggest mistake in building an AI product is reaching for architecture before validating the idea — building a RAG pipeline and an agent framework for a task that a…Walk me through naive RAG and tell me what breaks.RAGMediumPro previewNaive RAG operates in two primary stages: retrieval of relevant documents and generation of an answer based on those documents. Failure in this system generally falls into three…Walk me through one tile of the FlashAttention forward...Inference & ServingHardPro previewIn a single tile of the FlashAttention forward pass, the kernel loads Qi, Kj, and Vj into SRAM. It computes the attention scores Sij = QiKTj / sqrt(d). It then updates the running…Walk me through producing an 8B model from a 15B checkp...Training & Fine-tuningHardPro previewTo produce an 8B model from a 15B checkpoint, first apply structured pruning to remove unnecessary layers and channels, guided by importance scores calculated on a calibration…Walk me through serving a 70B model to 10,000 concurren...Inference & ServingHardPro previewTo serve 10,000 concurrent users, you must address the latency versus throughput trade off. You should size the KV cache per request and recognize that batch size is constrained…Walk me through the arithmetic intensity of a LayerNorm...LLM FoundationsVery HardPro previewThe roofline model highlights that LayerNorm is bandwidth rooflined, characterized by low arithmetic intensity. Consequently, reducing memory accesses in these kernels leads to…Walk me through the bandwidth hierarchy inside a DGX H1...Inference & ServingMediumPro previewThe bandwidth hierarchy inside a DGX H100 node is structured into three primary tiers. First, PCIe Gen 5 handles CPU to GPU traffic at 128 GB/s bidirectional. Second, NVLink 4.0…Walk me through the bias-variance tradeoff, and how wou...Training & Fine-tuningMediumPro previewBias is the error from a model too simple to capture the true relationship — it converges, but to the wrong answer. Variance is the error from a model sensitive enough to noise…Walk me through the exact communication ops for one tra...Inference & ServingHardPro previewThe steps are: (1) Input arrives as s/t rows. (2) AllGather before QKV/FFN projection to get full s x h activation. (3) Column parallel matmul (no communication). (4) Row parallel…Walk me through the forward pass of a 7B decoder-only m...LLM FoundationsMediumPro previewA 7B decoder only model's forward pass involves specific projections within the attention and MLP layers. The attention block utilizes four projection matrices, while the SwiGLU…Walk me through the forward pass of a MoE layer.LLM FoundationsMediumPro previewThe forward pass begins with affinity scoring to determine which experts are most suitable for a given token. Next, a top K selection mechanism identifies the K most relevant…Walk me through the GRPO training loop.Training & Fine-tuningMediumThe process begins with sampling G responses per prompt to compute rewards. Next, advantages are normalized within the group by subtracting the mean and dividing by the standard…Walk me through the infrastructure for a GRPO training...Training & Fine-tuningHardPro previewThe infrastructure for GRPO at scale necessitates a clear separation between rollout workers and trainer workers. Key architectural components include one way weight broadcasting…Walk me through the memory implications of weight-only...Inference & ServingMediumPro previewWeight only INT8 quantization reduces the memory footprint of a 70B model from 140 GB to 70 GB. This is significant because it allows the model to fit on a single H100 80 GB GPU,…Walk me through the PPO loop for a language model.Training & Fine-tuningHardPro previewThe PPO loop for a language model requires managing four distinct models. The process begins with a rollout step where the policy generates completions, followed by reward…Walk me through the roofline model for a LayerNorm kern...LLM FoundationsHardPro previewA LayerNorm kernel exhibits low arithmetic intensity, specifically around 3 7 scalar operations per element loaded. In the context of the roofline model, this places the kernel…Walk me through the trade-offs between FLAN-style aggre...Training & Fine-tuningMediumPro previewFLAN style aggregated data is generally cheap to produce and provides broad coverage, but it often suffers from being unnatural and producing output styles that are overly…Walk me through the training pipeline for a model like...Training & Fine-tuningHardPro previewThe training pipeline for DeepSeek R1 consists of five distinct stages. First, begin with a strong pretrained base model. Second, perform Supervised Fine Tuning (SFT) on long…Walk me through the μP recipe for a transformer.Training & Fine-tuningHardPro previewTo implement μP in a transformer, non embedding weights should be initialized at 1/√nin. The Adam learning rate for each layer must be scaled by 1/nin relative to a base rate…Walk me through what happens on a query where your eval...EvaluationHardPro previewA false negative costs you nothing you did not already have, as the pipeline simply degrades to naive RAG. A false positive is where the architecture is decided. By deriving the…Walk me through what happens when a user hits your LLM API endpoint.System DesignEasyWhen a user hits an LLM API endpoint, the request first undergoes TLS termination and authentication at the gateway. It then passes to the router, which applies routing policies.…Walk me through what happens when a user sends a prompt...Inference & ServingMediumPro previewWhen a user sends a prompt, the system first tokenizes the input. The process then moves to the prefill stage, which is compute bound and involves writing the KV cache to HBM.…Walk me through what happens when your training loop ca...Training & Fine-tuningMediumPro previewWhen dist.all reduce() is invoked, the Python API triggers the torch.distributed NCCL shim. This shim enqueues a specific CUDA kernel to the GPU. The GPU then performs a ring…Walk me through what one attention head computes, and t...LLM FoundationsHardPro previewThe computation is defined by the attention pattern A = softmax(XWQW K X /√dh) and the output h = AXWV WO. These projections are defined only up to an invertible matrix R inside…Walk me through whether training on Common Crawl is legal.Data, Privacy & LegalMediumPro previewThe legality of training on Common Crawl relies heavily on the fair use argument. While most content within the crawl is copyrighted, the transformative nature of LLM training is…Walk me through your mixed-precision training setup for...Training & Fine-tuningMediumPro previewThe setup uses BF16 for all forward and backward matmuls, while maintaining FP32 master weights, gradients, and Adam optimizer states. FlashAttention is used for numerical…Walk me through your parallelism strategy for a 70B mod...Inference & ServingHardPro previewStart by calculating the static memory footprint, which includes the 70B parameters (at 2 bytes each) plus optimizer states. Set Tensor Parallelism (TP) to 8 to match the node…Walk through a complete RAG evaluation pipeline, not ju...LLMOps & ProductionHardPro previewEvaluation done well operates at four distinct layers, and conflating them is how teams end up unable to diagnose what's actually wrong. Layer one is pure retrieval quality — hit…Walk through a concrete, production-grade set of guardr...AgentsHardPro previewA step ceiling alone is the guardrail most people name first, and it's necessary but leaves several gaps that only show up under real production load. Five checks together close…Walk through a real feature-engineering example using P...Python & DataMediumPro previewsplits a DataFrame by a key column, applies a function independently to each group, and stitches the results back together. It's the core tool for turning raw transaction or event…Walk through how you'd write a cohort retention analysi...Python & DataVery HardPro previewThe three CTEs each answer one distinct question, and keeping them separate rather than collapsing into one giant query is what keeps the logic debuggable. The first CTE — call it…Walk through the complete RAG pipeline end-to-end. What...RAGMediumPro previewRAG is really two pipelines wearing one name. The offline indexing pipeline runs once (or on a schedule): pull documents from wherever they live, parse them while preserving…Walk through the complete RAG pipeline, start to finish.RAGEasyPro previewRAG splits cleanly into two phases that run on very different schedules. Indexing runs once, offline, as a batch job: documents get loaded, split into chunks, each chunk gets…Walk through the full memory budget for serving Llama-2...Inference & ServingVery HardPro previewFor Llama 2 70B in bf16, model weights require 140GB, which is 70GB per GPU when split across two. The KV cache calculation (2 80 64 128 2048 2 32) results in approximately 68GB.…Walk through the main families of feature selection methods and when you'd reach for each.Python & DataMediumFeature selection methods split into three families based on how tightly they couple to the downstream model. Filter methods score each feature independently of any model —…Walk through the memory requirements for fine-tuning a...Inference & ServingHardPro previewFull fine tuning requires 12 bytes per parameter for Adam, totaling 84 GB, which exceeds the 24 GB limit. By freezing the base model, you reduce the footprint to 14 GB. Adding…Walk through the RLHF pipeline end to end, and name its...Training & Fine-tuningHardPro previewRLHF runs in three stages. First, collect human preference data — pairs of model outputs for the same prompt, ranked by which one a human prefers. Second, train a separate reward…Walk through the RLHF pipeline end to end, and name the...Training & Fine-tuningHardPro previewRLHF is three stages built on top of a supervised fine tuned base model. First, collect pairwise human preference data: show labelers two model completions for the same prompt and…Walk through the ways you could implement the verificat...EvaluationMediumPro previewThe design space for verification ranges from low cost, low accuracy methods to high cost, high accuracy ones. No context judgment is the cheapest but lacks an oracle. Retrieve…Walk through why prefill and generation are fundamental...Inference & ServingMediumPro previewPrefill takes the entire input prompt and processes all of its tokens in a single parallel forward pass — every token's attention and feed forward computation happens…Was the use of dropout in GPT-3 a mistake?Training & Fine-tuningHardPro previewLabeling GPT 3's use of dropout as a mistake is incorrect. At the time of its training, the empirical consensus that pre training overfitting was a non issue at 175B parameters…Was training a 70B model on 15T tokens (over 200:1 ratio) wasteful compared to Chinchilla's 20:1 recommendation?Training & Fine-tuningMediumChinchilla's 20:1 ratio minimizes training loss per FLOP, whereas Llama 3's approach minimizes total lifecycle cost (training plus serving). For models serving billions of…We already have a when-to-retrieve classifier. Is a que...RAGMediumPro previewWhile both are classifiers over the query, they serve different purposes. A when to retrieve classifier only determines if retrieval is necessary. A query router manages a more…We are building a real-time coding assistant. What serv...Inference & ServingMediumPro previewFor a real time coding assistant, the primary metrics for success are TTFT and per token decode latency, rather than aggregate throughput. A recommended configuration involves…We are doing continued pre-training to improve Hindi on...Training & Fine-tuningHardPro previewExtending a vocabulary for continued pre training is an expensive compromise. Adding new embedding rows requires random initialization, which necessitates different learning rate…We are moving retrieval from a local index at 40 ms to...LLMOps & ProductionVery HardPro previewThe conflict centers on the ratio of retrieval cost to generation time. At 400ms, every sentence retrieval adds significant latency (e.g., 4.8s for a twelve sentence answer),…We are moving this reranker from a search surface score...RAGVery HardPro previewConcede the correct half: the architecture, the pair construction, and the lambda factorization are metric agnostic and do carry over. Then locate the break. Recall@100 has no…We are porting this stack to legal contract search. No...System DesignHardPro previewIn a resource constrained environment (no logs, six weeks, one engineer), the goal is to generate high quality training data. An LLM rewriter is effective at capturing intent but…We concatenated an instruction to the reranker input, r...Training & Fine-tuningHardPro previewIf the median score change under a swapped instruction is zero, the model is not utilizing the instruction tokens. This happens when all negatives are off topic, allowing the…We cut k from 20 to 5 and accuracy went up. Explain wha...Retrieval & EmbeddingsMediumPro previewReducing k from 20 to 5 had two potential effects: removing noisy distractors or changing the position of the relevant information relative to the prompt. To diagnose the cause,…We fine-tuned an 8B model on our product catalog and it...Training & Fine-tuningMediumPro previewThe issue stems from a category error: weight compression is ill suited for high cardinality, low frequency, and frequently changing knowledge. Fine tuning should be reserved for…We handle router uncertainty by escalating to the expensive path. Isn't that enough?Inference & ServingHardA single scalar for confidence conflates two different things: distance from the decision boundary and distance from the training data. An out of distribution query can be far…We have 20 million chunks and multi-tenant access contr...Retrieval & EmbeddingsMediumPro previewAvoid naming a product until you have defined the requirements. Evaluate the system based on memory headroom, filtered search semantics, write rates, and operational ownership.…We moved from one-line answers to briefs. The confidenc...EvaluationHardPro previewThe confidence score tracks E[S] = p, which remains constant regardless of document length. This is why coverage did not change. However, the harm perceived by users is related to…We need 3× throughput improvement on a production 7B mo...Inference & ServingMediumPro previewTo achieve a 3x throughput improvement, we must address the bandwidth bound nature of autoregressive generation. By quantizing weights to INT4 using AWQ, we reduce the amount of…We need to adapt a large model to a highly technical do...Training & Fine-tuningMediumPro previewBe careful about what LoRA actually buys you here. Low rank adaptation is excellent at instruction tuning — shifting format, register, rule following behavior. It's much weaker at…We probed with 50-token prefixes and 0.07% of sampled d...Security & SafetyEasyPro previewEvaluating model safety regarding licensed content extraction requires understanding that k extractability is a property of the probing setup, not just an intrinsic property of…We replaced BM25 with a fine-tuned dense retriever last quarter. End-to-end quality moved two points and latency is unchanged. Where did the rest of the win go?RAGHardThe retriever shifted the recall curve up by roughly ten points at fixed k. Because depth was held constant, this showed up as a small ceiling improvement instead of a large…We sample eight times and gate on agreement. The gate w...EvaluationHardPro previewThe agreement score ˆc = k/m has a standard error of sqrt(c(1 c)/m) compared to a level spacing of 1/m. Levels only separate effectively when m < 1/(c(1 c)). At m=8, the interior…We shipped a cross-encoder reranker last month. End-to-...Retrieval & EmbeddingsHardPro previewEnd to end accuracy is often a product of multiple stages, specifically R1 (retrieval) and R2 (reranking). If the overall accuracy remains stagnant, it does not necessarily mean…We shipped FiD-Light and end-to-end latency fell 4%. Wa...Inference & ServingHardPro previewDo not defend the number; decompose it. FiD Light compresses only the decoder’s cross attention cache, so its benefit is limited to 0.29L ms. If the encoder represents the vast…We shipped SPLADE. Recall@1000 went up four points and...Retrieval & EmbeddingsHardPro previewThe increase in recall and the spike in latency are linked by the same underlying mechanism: the expansion of the query representation. SPLADE increases the number of active,…We want to fine-tune the generator on 200,000 support t...Security & SafetyHardPro previewA regex based approach is insufficient because it only removes formatted subsets like email addresses, leaving unformatted personal data—such as names, employers, and…We will run gradient ascent on the forget set after eac...Data, Privacy & LegalHardPro previewGrant that the method works on what it is given, then move to composition. Derive the error budget; for example, a 1.8% error rate over many runs leads to a tiny per run budget.…We’re adding image search to an existing text-only ente...Retrieval & EmbeddingsMediumPro previewBefore selecting an encoder or building the system, you must address the access model—specifically, who is authorized to see which images. Additionally, you must assess whether a…We’re building a real-time coding assistant. Walk me th...System DesignHardPro previewDesigning a real time coding assistant requires a focus on low latency delivery. For autocomplete features, a TTFT of under 200ms is typically required to ensure a smooth user…We’re fine-tuning with IN2-style rotated-position super...Training & Fine-tuningHardPro previewRotated position supervision is effective at teaching the model that useful information can exist far from the point of generation, which helps close the recency side gap.…We’re replacing HNSW with LSH. The corpus takes 2M inse...Retrieval & EmbeddingsVery HardPro previewLSH allows for exact inserts and deletes because buckets are computed from the document alone, whereas HNSW and IVF are fit to the corpus structure. Before switching, compare the…We’re seeing a gap between our benchmark scores and use...EvaluationMediumPro previewThe discrepancy between benchmark scores and production satisfaction is typically caused by the difference between quiz style benchmarks and real world prompts. Benchmarks rely on…What accuracy can a model reach when trained on a synth...Training & Fine-tuningHardPro previewA strong answer avoids the simplistic 'capped at teacher accuracy' response and instead decomposes the error. By using repeated sampling, you can separate errors that recur from…What activation function do frontier models use in the...LLM FoundationsMediumPro previewThe dominant activation function in modern frontier models is SwiGLU, defined as SwiGLU(x, W, V, W2) = (xW σ(xV ))W2. This gated variant of SiLU uses a gate, σ(xV), which…What actually goes wrong with MoE routing in practice,...Training & Fine-tuningVery HardPro previewLeft unconstrained, a learned router tends to collapse onto a small subset of favored experts early in training — those experts get more gradient signal, become better at whatever…What actually makes Agentic RAG different from standard...RAGHardPro previewStandard RAG runs once, deterministically: embed the query, search, take the top K, generate an answer — and if that single retrieval attempt returns weak or irrelevant chunks,…What architectural lever reduces KV cache footprint wit...Inference & ServingMediumPro previewCross Layer Attention (CLA) is an architectural lever that reduces the KV cache footprint by sharing KV projections across layers. By halving the number of independent KV slices,…What are *args and **kwargs actually for, and where do...Python & DataEasyPro previewgathers any number of positional arguments into a tuple, and gathers any number of keyword arguments into a dictionary. The point of both is flexibility: the function doesn't have…What are decorators in Python, and what do they actually get used for in production ML code?Python & DataMediumA decorator sits above a function and wraps it, adding behavior — timing it, retrying it, caching its result — without modifying the function's own code. The value is separation…What are LLM scaling laws, and what do they actually le...Training & Fine-tuningHardPro previewScaling laws are empirical power law relationships showing how test loss changes as you vary model size, dataset size, and total training compute. They're fit by training a range…What are multi-agent systems, and why are they useful?AgentsEasyA multi agent system splits a complex task across several specialized agents instead of asking one generalist to handle every part of it. Writing a research report might become a…What are the accuracy risks of CLA and how do you catch them in evaluation?EvaluationMediumCross Layer Attention introduces an expressiveness trade off regarding the value projections. To monitor for degradation, one should utilize retrieval heavy benchmarks such as…What are the actual collective-communication primitives...Training & Fine-tuningHardPro previewDistributed data parallel training needs every GPU's locally computed gradients combined into one agreed upon gradient before any optimizer step, and that combination happens…What are the common communication patterns in multi-age...AgentsMediumPro previewFour shapes cover most multi agent workflows, and picking the wrong one for the task is a common design mistake: Sequential / pipeline — Agent A's output becomes Agent B's input,…What are the common failure classes in naive RAG?RAGEasyPro previewSimply stating that a system 'hallucinates' is insufficient. A robust analysis identifies whether the failure is due to poor retrieval (irrelevant passages), poor reasoning…What are the common ways a RAG system actually fails on...RAGHardPro previewSeven failure modes recur across production RAG systems, and they matter because they look identical from the outside — a wrong answer — while needing entirely different fixes.…What are the core components every production AI agent...AgentsMediumPro previewFive components, and it's worth listing all of them rather than jumping straight to a framework name, because the framework is just an implementation of these: A reasoning engine…What are the core components of a production LLMOps stack?LLMOps & ProductionMediumPro previewSix components tend to show up in every mature LLMOps setup, each solving a distinct failure mode. A prompt registry centralizes templates, their versions, and their evaluation…What are the different process types in CrewAI?Agent Protocols & ToolsMediumPro previewCrewAI's process types control how agents in a crew actually coordinate with each other, not just what each one does individually: Sequential — tasks execute one after another in…What are the different types of memory in AI agents?AgentsEasyPro previewFour labels get used, though in practice two of them collapse into one implementation: Short term / working memory — the current conversation, living in the context window. Gone…What are the failure modes of perplexity-based filtering?EvaluationMediumPro previewPerplexity based filters have three main failure modes. First, because n grams are local, text that is globally incoherent can still pass the filter. Second, the filter is…What are the implications of hash collisions for qualit...Training & Fine-tuningHardPro previewIn fastText, hash collisions occur when different n grams map to the same bin, causing them to share a weight. For binary classification, this means the model learns a weight…What are the infrastructure bottlenecks when training a...LLMOps & ProductionHardPro previewTraining a reasoning model with RL faces three primary infrastructure bottlenecks. First, rollout generation blocks training; this is mitigated by separating inference and…What are the key components of a RAG system, and what c...RAGMediumPro previewSix components, and the interesting part of the question is defending a choice at each one rather than just naming options. Document loading determines how cleanly PDFs, HTML, and…What are the limits of the diffusion serving cost advan...Inference & ServingHardPro previewThe diffusion model's cost advantage is not universal. First, for short outputs (L < 64), the per step weight sweep cost is not sufficiently amortized. Second, poor length…What are the main challenges keeping AI agents from bei...AgentsHardPro previewNone of the individual obstacles are exotic — the issue is that several of them compound at once on any task complex enough to matter: Reliability gaps — even strong agents fail a…What are the main chunking strategies, and which do you...RAGMediumPro previewChunking strategies trade off precision against context richness. Fixed size splitting is trivial to implement but indifferent to sentence and table boundaries. Recursive…What are the main failure modes of pairwise preference...Training & Fine-tuningMediumPro previewPairwise preference collection faces several failure modes. These include a strong length bias, where models or humans prefer longer responses regardless of quality; the inability…What are the most common anti-patterns in multi-agent s...AgentsMediumPro previewThese five show up repeatedly enough that interviewers specifically probe for them — describing a system and asking "what's wrong with this" is a common format, and the five anti…What are the risks of training on GPT-4-generated data?Data, Privacy & LegalMediumPro previewThere are three primary risks associated with using GPT 4 generated data. First, there is a legal and contractual risk, as OpenAI's terms of service prohibit using model outputs…What are the risks of using document-level credibility...RAGMediumPro previewUsing document level credibility labels introduces a specific failure mode: a document that is primarily high credibility but contains a single low credibility claim will receive…What are the systemic side effects of RLHF on model beh...Training & Fine-tuningMediumPro previewRLHF often introduces length bias, where verbosity is spuriously rewarded because human annotators conflate length with quality. Additionally, it causes calibration degradation,…What are the three core primitives an MCP server can ex...Agent Protocols & ToolsMediumPro previewAn MCP server can expose three distinct kinds of capability, and each one is controlled by a different party in the system: Tools — functions the model itself can decide to call,…What are the three generations of multimodal RAG encodi...RAGHardPro previewGeneration one, extract and caption, runs a vision language model over every image or table, embeds the resulting caption with an ordinary text embedder, and retrieves as pure…What are the three main failure modes of token-choice top-K routing in MoE models, and how does auxiliary-loss-free load balancing address them?LLM FoundationsHardThe three primary failure modes are: load collapse, where all tokens route to a single expert; token dropping, which occurs when an expert exceeds its capacity; and routing…What are the top reasons a RAG system hallucinates, and...RAGMediumPro previewHallucination in RAG almost always traces back to one of five root causes, and the instinct to blame the generation model first is usually wrong — retrieval failure is responsible…What are the trade-offs between serving a 70B model in...Inference & ServingMediumPro previewThe primary trade off involves balancing resource efficiency against model precision. Using INT4 quantization significantly reduces the memory footprint, which allows for larger…What are your two cheapest levers against lost-in-the-m...RAGMediumPro previewTo address the lost in the middle phenomenon without retraining, you should use a combination of prompting and structural reordering. A prompt based fix involves explicitly…What breaks first when a prototype meets real client data?EvaluationMediumPro previewAlmost always the data itself, not the model. In practice it's some combination of: formats nobody mentioned in discovery, encodings that don't match what the schema documentation…What breaks when you deploy a model trained with absolu...LLM FoundationsMediumPro previewWhen a model encounters positions beyond its training length (L 1), it attempts to access embedding rows that were never trained. This causes the model to produce incoherent…What can go wrong with reward model training and how do...Training & Fine-tuningMediumPro previewThe two main failure modes in reward model training are length bias and distribution shift. Length bias occurs when the reward model assigns higher scores to longer responses…What can supervised fine-tuning (SFT) actually teach a...Training & Fine-tuningHardPro previewSFT trains a model on pairs of (instruction, ideal response), directly teaching it format, tone, and instruction following behavior by demonstration — it's very effective at…What causes an LLM to state a fact incorrectly, and whi...RAGMediumPro previewFactual errors in LLMs originate from five primary sources: the corpus, the query, the model weights, the decoding process, and the reconciliation of information. Retrieval…What causes loss spikes during large-scale training, an...Training & Fine-tuningMediumPro previewLoss spikes occur when logit values grow excessively large, causing the softmax function to saturate and leading to a collapse in gradient flow. Modern training stacks prevent…What changes in your analysis if this is an open-weight...Data, Privacy & LegalHardPro previewFor open weight releases, the requirement for full data disclosure makes it easier for plaintiffs to identify infringing sources. Furthermore, commercial use in an open context…What chunking methods actually exist, and how do you de...Retrieval & EmbeddingsMediumPro previewFive real approaches, roughly in order of how much they respect the document's actual structure. Fixed size chunking just cuts every N tokens — simple to implement, but it will…What determines the AllReduce size in tensor parallelism?System DesignMediumPro previewIn tensor parallelism, the communication overhead is driven by the activation tensors passed between layers. Because the size of these activations is a function of sequence…What did the Chinchilla paper actually change about how people train LLMs, and why do production teams still often deviate from its recommendation?Training & Fine-tuningVery HardBefore Chinchilla, the field had been scaling parameter count faster than training data, on the assumption that was the compute optimal trade off. Chinchilla showed that was wrong…What do you check first when a reranker places the most...RAGMediumPro previewA strong answer focuses on the final state of the data as it reaches the model. You must confirm that the reranker's output list was not modified by downstream processes like…What do you predict when shipping a generative retrieval prototype from a 200k-document set to a 20M-document corpus?Retrieval & EmbeddingsHardAs the corpus grows, the bits available per document decrease. At 20M documents, the model has significantly fewer bits per document compared to the 200k set, likely falling below…What do you set P to, and how would you know you got it...Training & Fine-tuningHardPro previewP should not be a static number but a reflection of the model's prior over context sufficiency, anchored to the retrieval system's recall@k. To find the right value, perform a…What does "Responsible AI" mean in practice, beyond the...Security & SafetyEasyPro previewThe failure mode of most "Responsible AI" efforts is that they live in a document nobody consults during actual engineering work. The fix is mechanical: attach each principle to a…What does a "baseline decoder-only transformer" actuall...LLM FoundationsMediumPro preview"Decoder only" means every layer uses causal (backwards only) attention — a token can only attend to itself and earlier tokens, never later ones. That single constraint is what…What does a 95% confidence interval actually mean, and...Python & DataEasyPro previewA confidence interval is a range, computed from your sample, built by a procedure guaranteed to contain the true population parameter a specified percentage of the time across…What does a citation mark in a Bing-style assistant gua...RAGMediumPro previewIn RAG based systems, citation marks are often used to provide transparency regarding the source of generated information. A citation mark effectively serves as a pointer to the…What does a citation mark in a RAG-based assistant guar...RAGMediumPro previewA citation mark is a trace of origin, not a stamp of truth. It confirms the provenance of the information by indicating which source was available to the model during generation.…What does a pseudo-instruction add to a chunker that al...Retrieval & EmbeddingsMediumPro previewBreakpoint chunking scores si against si+1 to identify subject shifts. In contrast, a pseudo instruction scores every si against a document level anchor to identify utility. This…What does ADC stand for in IVFADC, and why is it asymme...Retrieval & EmbeddingsMediumPro previewAsymmetric Distance Computation (ADC) optimizes the distance calculation by keeping the query vector in its original, high precision form while comparing it against quantized…What does BM25 fix relative to TF-IDF?Retrieval & EmbeddingsMediumPro previewTF IDF suffers from two primary defects that BM25 resolves. First, in TF IDF, term frequency enters the calculation linearly, meaning the eleventh occurrence of a term is weighted…What does it actually mean for a piece of content to ha...Multimodal & Generative MediaHardPro previewThe presence of a valid C2PA credential indicates that the content has been cryptographically signed to prove its origin and history. When evaluating models, relying on an…What does it formally mean for a generated sentence to...EvaluationMediumPro previewGoogle's AIS (Attributable to Identified Sources) framework splits attribution into two sequential yes/no tests specifically so two competent raters — or two automated judges —…What does it mean for a benchmark to be reproducible, a...EvaluationMediumPro previewBenchmark reproducibility depends on locking three key pillars: protocol variance (prompt format and decoding settings), data quality (label noise), and contamination status. If…What does it mean for a concept to be PAC-learnable, an...Training & Fine-tuningVery HardPro previewProbably Approximately Correct learning is the formal answer to "how much data do I actually need, and can I trust this algorithm to generalize at all." A concept class is PAC…What does it mean for a piece of content to have a vali...Security & SafetyEasyPro previewA valid C2PA credential involves three simultaneous checks: hash matching, signature verification, and a valid certificate chain. It is critical to understand that this process…What does it mean that LLaMA and PaLM both independently picked SwiGLU?LLM FoundationsMediumThe convergence of LLaMA and PaLM on SwiGLU acts as a cross validation of the architectural choice. Because these labs operated with different data, hardware, and model scales,…What does linear attention lose versus softmax attentio...LLM FoundationsMediumPro previewSoftmax attention is a sparse content router that can concentrate almost all probability mass on a single token, which is critical for precise tasks. Linear attention, by…What does nprobe do, and how would you pick it?Retrieval & EmbeddingsMediumPro previewNearest centroid assignment partitions vector space into Voronoi cells. A query's true neighbor often resides across a bisector, and nprobe dictates how many of these cells are…What does proper logging look like for a production AI...LLMOps & ProductionHardPro previewA normal service's logs answer "did the request succeed and how long did it take." An AI application's logs need to answer a harder question: given that the request technically…What does QK-norm actually do to the attention distribu...LLM FoundationsMediumPro previewQK norm bounds pre softmax attention logits to O(1/√dk). This prevents the attention mechanism from collapsing into a one hot distribution over long training durations, which…What does reranking actually add to a RAG system that i...Retrieval & EmbeddingsMediumPro previewThe initial vector search step uses what's called a bi encoder: the query and every chunk get embedded completely independently, and similarity is just a distance calculation…What does self-consistency actually change - the model,...Inference & ServingMediumPro previewSelf consistency operates at the decoding layer. Unlike greedy decoding, which returns the end of the single most probable path, self consistency samples multiple paths. It…What does SFT actually change in a pre-trained model?Training & Fine-tuningMediumPro previewSupervised Fine Tuning (SFT) primarily modifies the surface properties of the output distribution, including format, register, and task framing. It does not add new world…What does SPLADE change compared to a standard BM25 index?Retrieval & EmbeddingsMediumPro previewA strong answer notes that the scoring form remains s(q, d) = ∑ wqj wdj and continues to use an inverted index. By using an MLM head over all 30,522 vocabulary entries, SPLADE…What does SPLADE change compared to a traditional BM25...Retrieval & EmbeddingsMediumPro previewWhile SPLADE maintains the scoring form of a traditional inverted index (s(q, d) = ∑ wq j wd j), it fundamentally changes how weights are calculated. Instead of relying on term…What does Supervised Fine-Tuning (SFT) teach a model, a...Training & Fine-tuningMediumPro previewSupervised Fine Tuning (SFT) effectively teaches a model to mimic the style and content of high quality demonstration data. While this significantly improves instruction following…What does temperature actually control in an LLM, and h...Inference & ServingEasyPro previewTemperature is a single scalar dividing the logits before softmax, so its effect is entirely about how peaked or flat the resulting probability distribution is over the vocabulary…What does the LR landscape look like during a μP width...Training & Fine-tuningMediumPro previewA key advantage of μP is that the optimal base learning rate remains consistent across different model widths (e.g., 128, 512, and 2048). In contrast, under standard…What does the original 2017 transformer do differently regarding normalization, and what problem does that cause?LLM FoundationsMediumThe original 2017 transformer utilized post norm, which places the normalization layer after the residual addition. This design forces the gradient back propagating to early…What does ZeRO actually shard, and why is that differen...Training & Fine-tuningVery HardPro previewPlain data parallelism gives every GPU a full copy of the model, a full copy of the gradients, and a full copy of the optimizer state, and synchronizes gradients after each step.…What engineering costs do you accept when switching fro...System DesignHardPro previewSwitching to MoE introduces three primary costs. First, memory: total parameter count grows significantly, requiring expert parallel sharding. Second, routing: non differentiable…What failure modes can still occur with binary verifiab...Training & Fine-tuningHardPro previewDespite the prevention of traditional reward hacking, binary verifiable rewards are susceptible to process hacking. This occurs when a model finds a way to satisfy the verifier…What goes wrong if you accidentally differentiate throu...Training & Fine-tuningHardPro previewWhen πold is not detached and shares the same parameter tensor as πθ, the ratio πθ/πold effectively becomes 1. By the chain rule, the gradient of this ratio with respect to θ is…What goes wrong when indexing sentences, paragraphs, an...Retrieval & EmbeddingsMediumPro previewThe pooled cosine of an n sentence chunk converges to b/√ρ rather than zero. Beyond a specific crossover point, longer chunks outrank shorter, more accurate ones, effectively…What goes wrong when you naively quantize a large trans...Inference & ServingMediumPro previewIn large transformers, a small subset of channels exhibits extreme activation magnitudes. When using a standard absmax quantization approach, these outliers force the quantization…What goes wrong when you try to extend a RoPE model to...LLM FoundationsHardPro previewWhen a model using RoPE is applied to context lengths beyond its training distribution, the high frequency dimensions of the rotation matrix wrap around, leading to a loss of…What happens if you double the number of attention head...LLM FoundationsMediumPro previewWhen you increase the number of heads to 64 while keeping the model dimension at 4096, the head dimension drops to 64. Although the total number of attention parameters remains…What happens if you train a MoE without any load balanc...LLM FoundationsMediumPro previewIf a MoE is trained without load balancing, router collapse occurs quickly, where the model relies on only 1 2 experts. The other experts receive no gradient signal and remain…What happens to GRPO training when the model solves nea...Training & Fine-tuningMediumPro previewWhen the best of G pass rate approaches 100%, the group standard deviation vanishes, rendering the advantage calculation unstable. Training stalls because the model is no longer…What happens to model quality if you skip language filtering?Training & Fine-tuningMediumWhen language filtering is omitted, non target language tokens consume a portion of the compute budget that would otherwise be used for the target language. This dilution results…What happens when you run a RoPE model trained with a 4...LLM FoundationsMediumPro previewWhen a RoPE based model is extended beyond its trained context length, the model encounters rotation angles that were not present during training. This results in a gradual rise…What inner FFN dimension should be used for a 7B model...LLM FoundationsMediumPro previewFor a 7B model with a dmodel of 4096 using SwiGLU, the inner FFN dimension is typically set to 8/3 of the dmodel. This calculation yields 10923, which is rounded to 11008 to…What is 'late' about late interaction in models like Co...Retrieval & EmbeddingsMediumPro previewThe 'lateness' refers to the invariant that the document representation is query independent, allowing it to be precomputed. Unlike cross encoders, ColBERT retains per token…What is a "divergence attack" against an LLM, and why d...Data, Privacy & LegalVery HardPro previewLanguage models memorize some fraction of their training data verbatim — more than most people expect, and more for data that appeared many times or was unusually distinctive. A…What is a Bloom filter, and why use one instead of a ha...Data, Privacy & LegalMediumPro previewA Bloom filter supports membership tests without the ability to store keys or iterate over them. While a hash set for 10^10 items might require 80 GB of RAM, a Bloom filter with a…What is a model registry and why does production ML nee...Inference & ServingEasyPro previewThe problem a registry solves is one every ML team hits without it: after a few months of iteration, nobody can say with confidence which exact model is in production, what data…What is a reranker, and when do you add one to a RAG pipeline?RAGMediumVector similarity is fast but approximate, and it measures a different thing than relevance: it tells you how close two pieces of text are in embedding space, not whether one…What is a Task in A2A, and what lifecycle states does it go through?Agent Protocols & ToolsMediumA Task is created the moment a client agent sends a request to a remote agent, and it moves through a fixed set of states over its life: submitted when the request first lands,…What is a warp and why does its size matter?Inference & ServingMediumPro previewA warp consists of 32 threads executing the same instruction on different data. The size is critical for two reasons: first, it is the unit of instruction dispatch, meaning thread…What is A2A (Agent-to-Agent Protocol), and how is it di...Agent Protocols & ToolsMediumPro previewThe two protocols solve different axes of the same broader problem. MCP is vertical: it connects a model to a tool — a weather API, a database, a file system. A2A is horizontal:…What is Adaptive RAG, and how does it decide when to re...RAGMediumPro previewStandard RAG treats every query the same way — always retrieve, always generate from context — which wastes latency and API cost on questions the model would have answered…What is agent benchmarking, and what are the popular be...EvaluationEasyPro previewAgent benchmarks give every model or framework the exact same standardized tasks, which is what makes comparison meaningful rather than anecdotal. The names worth knowing: SWE…What is agent benchmarking, and which benchmarks actual...EvaluationEasyPro previewAgent benchmarks give every model and framework the same fixed set of tasks so results are actually comparable. The ones worth knowing: SWE bench, which hands an agent a real…What is Agentic AI, and how is it fundamentally differe...AgentsEasyPro previewThe model underneath can be identical. What differs is the control flow wrapped around it. A traditional LLM application is a single pass — prompt goes in, completion comes out,…What is Agentic RAG, and how is it fundamentally differ...RAGMediumPro previewStandard RAG is a fixed pipeline with no judgment in it: embed the query, search the vector store, take the top k chunks, generate an answer. It runs the same way regardless of…What is Agentic RAG, in simple terms, and how does it d...AgentsEasyPro previewBasic RAG is one fixed sequence no matter what's asked: embed the query, search the vector store, take the top handful of chunks, generate an answer from them. The steps never…What is an activation outlier and why does it break nai...Inference & ServingHardPro previewActivation outliers occur when certain dimensions of the residual stream grow to magnitudes 100 times larger than typical values, a phenomenon that is amplified by model depth and…What is an advantage function and how does it connect t...Training & Fine-tuningMediumPro previewThe advantage function quantifies how much better or worse an action is compared to the average action in that state. In the context of outcome reward reinforcement learning for…What is an Agent Card in A2A?Agent Protocols & ToolsMediumPro previewAn Agent Card is a small JSON document, published at a known location, describing what a given agent can actually do: its name, a description, the list of skills it supports, the…What is an AI agent, and how is it different from a reg...AgentsEasyPro previewA chatbot's job ends at the response — you send a message, it returns text, and whatever happens next is entirely on you. Ask a chatbot to book a flight and the honest answer is…What is Anthropic's Contextual Retrieval technique, and...RAGMediumPro previewA chunk in isolation frequently loses the context that made it useful in the first place — a sentence like "revenue increased 12%" is meaningless without knowing which company,…What is ARC-AGI trying to measure that GPQA is not?EvaluationMediumPro previewGPQA relies on knowledge retrieval and expert level reasoning that a model may have memorized during training. In contrast, ARC AGI deliberately strips away language and factual…What is associative recall, and why did early state-spa...LLM FoundationsHardPro previewAssociative recall is the task of retrieving a specific value associated with a key after many intervening tokens. Early SSMs struggled with this because they used fixed linear…What is broadcasting in NumPy, and where does it actual...Python & DataMediumPro previewBroadcasting is NumPy's rule for combining arrays that don't have the same shape: it pads the smaller array's shape with 1s on the left, stretches any dimension of size 1 to match…What is catastrophic forgetting during fine-tuning, and how do you defend against it?Training & Fine-tuningMediumCatastrophic forgetting happens because full fine tuning has no built in mechanism to protect what the model already knows — every gradient step nudges weights toward minimizing…What is chunk overlap, and why does it actually matter...Retrieval & EmbeddingsEasyPro previewOverlap means consecutive chunks share a slice of tokens right at their boundary — if one chunk ends at token 500, the next might start back at token 450, so 50 tokens appear in…What is ColBERT's late-interaction mechanism, and which...Retrieval & EmbeddingsHardPro previewA standard bi encoder pools every token vector from its encoder into a single fixed size embedding per side (mean or [CLS]), which means every token contributes equally to a…What is Constitutional AI, and how does the self-critiq...Training & Fine-tuningMediumPro previewThe underlying research idea is broader than the prompting pattern: Constitutional AI trains a model to critique and revise its own outputs against a written set of principles…What is contextual compression in RAG, and is it actual...Retrieval & EmbeddingsMediumPro previewEven a well retrieved, well reranked chunk is usually mostly irrelevant to the specific question — it got retrieved because one sentence or phrase inside it matched, not because…What is CRAG (Corrective RAG) and how does it improve on standard Agentic RAG?RAGMediumStandard Agentic RAG retrieves and generates in sequence, with no check on whether the retrieved chunks were actually any good — if the vector search returns the wrong document…What is CRAG (Corrective RAG), and how does it improve...RAGHardPro previewStandard RAG has no way to notice when retrieval failed — it hands whatever came back to the generator and trusts it. CRAG adds a grading step in between: a lightweight evaluator…What is CrewAI, and how does it simplify building multi...Agent Protocols & ToolsEasyPro previewCrewAI builds multi agent systems around role playing: you define agents with a role, a goal, and a backstory, give each one specific tasks, and group them into a "crew" that…What is data poisoning and how would you defend against...Security & SafetyMediumPro previewData poisoning involves inserting malicious text to steer model outputs. For platforms like Wikipedia, the attack surface is the window between edits and rollbacks; mitigation…What is DPO, and what is its main advantage over PPO for preference alignment?Training & Fine-tuningMediumDirect Preference Optimization (DPO) works by reparameterizing the RLHF objective, showing that the optimal policy under a KL constrained reward maximization objective can be…What is DSPy, and how does it change prompt engineering...LLMOps & ProductionHardPro previewThe core idea worth internalizing is the separation of concerns DSPy imposes: your code declares what the task is (a signature like , or ) and how it should reason (Predict for a…What is FSDP and when would you use it instead of DDP?Training & Fine-tuningMediumPro previewFSDP shards the entire model state (parameters, gradients, and optimizer states) across all GPUs. While it is essential for fitting massive models that exceed HBM, it comes with a…What is generative retrieval — a differentiable search...RAGVery HardPro previewInstead of embedding documents into a vector store and searching by nearest neighbor, a generative retriever trains a sequence model to decode a document identifier directly,…What is GQA and how does it reduce KV cache pressure?Inference & ServingMediumPro previewGQA reduces KV cache pressure by having multiple query heads share a single KV head. If there are HQ query heads and HKV KV heads where HKV < HQ, each KV head is replicated to…What is gradient accumulation, and what problem does it...Training & Fine-tuningEasyPro previewLarge batch training is often desirable for stable gradient estimates and to keep hardware busy, but memory is a hard constraint — activations and gradients for a large batch…What is GraphRAG, and when does it outperform standard...RAGHardPro previewVector RAG is fundamentally a point lookup tool — it finds semantically similar chunks, which works well for "what does X say" but breaks down for "how are X and Y related" or…What is grouped-query attention (GQA) and why do most p...LLM FoundationsHardPro previewIn standard multi head attention, every query head has its own dedicated key and value heads. At inference time you cache the keys and values for every token generated so far so…What is GRPO, and why does it matter that it eliminates...Training & Fine-tuningMediumPro previewGRPO functions by sampling G completions for each prompt and calculating a self contained advantage estimate based on the group's statistics. By removing the fourth model copy—the…What is Human-in-the-Loop in LangGraph specifically, an...Agent Protocols & ToolsMediumPro previewLangGraph's version of Human in the Loop is built on the same checkpointing mechanism used for crash recovery: execution pauses at a designated node, the full graph state is…What is hybrid search in RAG, and why does it outperfor...RAGMediumPro previewVector search is good at meaning and bad at exact tokens — the product codes, error IDs, and proper nouns that often carry the most signal in enterprise text simply don't embed…What is HyDE (Hypothetical Document Embedding), and whe...RAGMediumPro previewA quiet failure mode in RAG is that queries and documents don't actually live in comparable regions of embedding space — a three word question and a three paragraph technical…What is importance sampling in the context of data filt...Training & Fine-tuningHardPro previewImportance sampling involves calculating the ratio of the target distribution to the source distribution to weight documents during the filtering process. While fastText is a…What is LangGraph, and how is it different from LangChain?Agent Protocols & ToolsMediumPro previewLangChain composes LLM applications out of chains — fixed, linear sequences of steps that run start to finish with no way to go back. That's fine for a pipeline that's genuinely…What is LLM observability and how is it different from...LLMOps & ProductionMediumPro previewTraditional application monitoring answers questions like "is the service up" and "how fast is it responding" — CPU, memory, latency, error rate. LLM observability keeps all of…What is LLMOps and how is it different from MLOps?LLMOps & ProductionEasyPro previewLLMOps is not a rebrand of MLOps — it's what you need on top of MLOps once the model in production is an LLM rather than a classical model you trained yourself. The same input can…What is maximal update parameterization (muP), and why...Training & Fine-tuningVery HardPro previewUnder standard parameterization, the optimal learning rate migrates predictably as width grows — tune it on a 200M proxy and by 7B the true optimum may have shifted by several…What is MCP (Model Context Protocol), and why does it m...Agent Protocols & ToolsEasyPro previewMCP standardizes the interface between an AI model and the tools or data it needs to reach — the same role REST played for standardizing how web services talk to each other, just…What is MCP, and how has it changed how agents use tools?AgentsEasyPro previewBefore a common protocol existed, wiring an agent up to external tools meant writing bespoke integration code for every single service — one integration for a database, a…What is memory coalescing and when does it fail?Inference & ServingMediumPro previewMemory coalescing is a hardware optimization where the system issues a single memory transaction when 32 threads in a warp read 32 consecutive addresses that align with a 128 byte…What is multi-hop RAG, and how do you implement it?RAGHardPro previewSome questions can't be answered from a single retrieval no matter how good the retriever is, because the answer to one part of the question determines what to search for next.…What is Multi-Index RAG, and when does it actually earn...RAGHardPro previewThe premise behind Multi Index RAG is that not every kind of content retrieves well the same way, so forcing everything into one undifferentiated vector index means every content…What is n-gram decontamination and when does it fail?EvaluationMediumPro previewN gram decontamination is a process used to prevent data leakage by identifying and removing overlapping text sequences between training and evaluation datasets. The standard…What is non-negative matrix factorization, and why is t...Training & Fine-tuningMediumPro previewNMF decomposes a matrix X (n×m, all entries ≥0) into two lower rank factors W (n×k) and H (k×m), both also constrained to be non negative, such that WH approximates X. Plain…What is parallel tool calling, and when should you use...Agent Protocols & ToolsEasyPro previewModern models can request multiple tool calls in a single response rather than one at a time. When those calls don't depend on each other's results, the application can execute…What is parallel tool calling, and when would you actua...Agent Protocols & ToolsEasyPro previewWhen an agent needs several independent pieces of information — the weather, a stock portfolio, and today's top news, say — a model can request all three tool calls in a single…What is parent-child (hierarchical) chunking, and what...RAGMediumPro previewThere's a real tradeoff baked into any single level chunking scheme: smaller chunks are more focused, which makes their embeddings more precise and improves retrieval accuracy,…What is product quantization and why does it matter for...Retrieval & EmbeddingsVery HardPro previewA raw embedding vector — say 768 dimensions of 32 bit floats — costs about 3KB per vector, and at a billion vectors that's roughly 3 terabytes just for the raw vectors, before any…What is query transformation in RAG, and why does somet...Retrieval & EmbeddingsMediumPro previewThe problem query transformation solves is a phrasing mismatch: how a user asks a question is often nothing like how the answer is actually written in the source documents, and…What is RAG Fusion, and how does multi-query retrieval...RAGMediumPro previewA user's exact phrasing is one sample from many equally valid ways to ask the same question, and a single query retrieval only searches with that one sample. RAG Fusion works…What is RAG, and how is it fundamentally different from...AgentsEasyPro previewRAG is a specific technique, not a system category: retrieve relevant documents from a knowledge base, feed them into the prompt, and generate an answer grounded in what was…What is RAGAS, and how does it evaluate a RAG pipeline...EvaluationMediumPro previewRAGAS's core trick is using an LLM itself as the evaluator, which lets most of its metrics run without a human labeled ground truth for every single query. Faithfulness works by…What is Reflection in Agentic RAG and how is it impleme...AgentsHardPro previewReflection is a critique and revise loop where the model doesn't just generate an answer once and return it — it generates, then a second LLM call reviews that draft specifically…What is Retrieval-Augmented Generation, and why do you...RAGEasyPro previewRAG is the pattern of pulling relevant documents out of an external knowledge base and injecting them into the prompt before the model generates an answer, instead of trusting the…What is reward overoptimization, and how can it be dete...Training & Fine-tuningHardPro previewReward overoptimization, or reward hacking, occurs when a policy finds outputs that achieve high scores under the reward model but are not actually preferred by humans. To detect…What is RL from Verifiable Rewards (RLVR), and why does it produce more reliable training signal than a learned reward model?Training & Fine-tuningMediumRL from Verifiable Rewards (RLVR) utilizes tasks where correctness can be determined by a checker or unit test rather than a human labeled reward model. Because the reward is…What is RLVR (RL from Verifiable Rewards) and why has i...Training & Fine-tuningVery HardPro previewStandard RLHF's reward signal comes from a learned reward model trained on human preferences — which means it's only as good as that model, and it's inherently gameable, since the…What is self-consistency prompting, and why does sampling multiple reasoning paths actually improve accuracy?Training & Fine-tuningMediumSelf consistency is a decode time technique layered on top of chain of thought prompting: instead of generating one reasoning chain greedily, you sample several reasoning chains…What is self-consistency, and how does it improve on pl...LLM FoundationsMediumPro previewThe mechanism only works if the sampled reasoning chains are actually diverse, which is why self consistency requires temperature above zero — sampling the same chain of thought…What is Self-RAG and how does it differ from standard R...RAGMediumPro previewStandard RAG always retrieves regardless of whether the query needs it, and Agentic RAG relies on an orchestration layer sitting outside the model to decide when to retrieve. Self…What is Self-RAG, and how is it different from CRAG?RAGHardPro previewBoth approaches try to make RAG self correcting, but they put the judgment in different places. CRAG keeps the base LLM untouched and adds an external evaluator that grades…What is silent data corruption and why is it particular...Security & SafetyMediumPro previewSilent data corruption (SDC) is a failure mode where hardware produces numerically plausible but incorrect gradient values. Because it does not trigger explicit errors like…What is the "lost in the middle" problem in RAG, and wh...Retrieval & EmbeddingsMediumPro previewThe finding behind this is that LLMs pay more attention to the beginning and end of a long context than to the middle — so stuffing 10 retrieved chunks into a prompt doesn't…What is the "lost in the middle" problem, and how do yo...RAGMediumPro previewLanguage models don't attend uniformly across a long context — research on this shows recall is strongest for content near the beginning and end of the window and weakest in the…What is the "memory overflow" problem, and how do you s...AgentsMediumPro previewEvery model has a finite context window, and a conversation or task that runs long enough will eventually generate more content than fits inside it — that's the memory overflow…What is the capacity factor in a mixture-of-experts mod...Inference & ServingMediumPro previewThe capacity factor is defined as capacity = bC T / N, where C sets the limit on how many tokens an expert processes. Setting C higher improves representation quality by reducing…What is the communication cost of ZeRO stage 3 compared...Training & Fine-tuningMediumPro previewThe communication cost difference between ZeRO stage 3 and stage 1 is defined by the parameter sharding strategy. ZeRO stage 3 requires an extra P of communication because it…What is the communication overhead of AllReduce for a 7...Inference & ServingHardPro previewFor a 70B parameter model using BF16 (2 bytes per parameter), the total size is 140 GB. The per rank cost of AllReduce is approximately 280 GB. Given a 200 GB/s inter node…What is the critical batch size and how do you use it i...Training & Fine-tuningMediumPro previewThe critical batch size is defined as the threshold above which gradient noise no longer decreases proportionally with the batch size, making further increases less efficient.…What is the difference between a base model and an inst...LLM FoundationsMediumPro previewThe traditional binary distinction between base models and instruct models is no longer accurate. Modern base models are not naive text predictors; they undergo instruction…What is the difference between a base model and an inst...LLM FoundationsEasyPro previewBase models interpret any input as a document to be continued, reflecting their training on raw text. Instruct models are fine tuned on structured instruction response pairs,…What is the difference between a public dataset and a l...Data, Privacy & LegalEasyPro previewPublic datasets, such as YouTube videos, are accessible without authentication but may still violate terms of service if scraped. In contrast, a legally safe dataset consists of…What is the difference between Adam and AdamW, and why...Training & Fine-tuningHardPro previewThe distinction lies in how the weight decay term interacts with the adaptive learning rate. In Adam with L2 regularization, the decay term enters the gradient and is then scaled…What is the difference between C4 and FineWeb, and when would you use one over the other?LLM FoundationsMediumC4 is a 156 billion token dataset based on a single snapshot using heuristic only filtering, making it ideal for reproducibility and controlled ablations. FineWeb, by contrast,…What is the difference between faithfulness and factual...EvaluationMediumPro previewFaithfulness and factuality are distinct concepts in LLM evaluation. Faithfulness refers to the alignment between the generated output and the provided retrieved context. Because…What is the difference between few-shot prompting and r...RAGMediumPro previewWhile both few shot prompting and retrieval augmented generation (RAG) serve to provide additional information to a model within its context window without updating the model's…What is the difference between LLM.int8() and AWQ?Inference & ServingMediumPro previewLLM.int8() and AWQ serve different primary objectives. LLM.int8() focuses on memory efficiency by splitting activations into high precision outliers and low precision INT8,…What is the difference between MQA and GQA-8, and when...Inference & ServingMediumPro previewMulti Query Attention (MQA) uses a single KV head for all query heads, offering the maximum possible reduction in KV cache. GQA 8 uses a moderate number of KV heads. Because MQA…What is the difference between MQA, GQA, and MHA? When...Inference & ServingMediumPro previewMulti Head Attention (MHA) provides maximum expressiveness but requires the most cache. Multi Query Attention (MQA) uses a single KV head, which minimizes cache but often results…What is the difference between outcome and process rewa...Training & Fine-tuningMediumPro previewOutcome rewards are deterministic and costless, requiring no learned scorer. In contrast, process rewards provide a denser gradient signal but necessitate expensive step level…What is the difference between Pretraining, Fine-tuning...System DesignEasyPro previewThese three sit on a clear ladder. Pretraining is the base of it: a model learns general language patterns from a huge, largely unlabeled corpus of text, at a cost measured in the…What is the difference between safety capability and sa...EvaluationHardPro previewSafety capability refers to the knowledge encoded in the model's weights that could potentially be used for harm. Safety propensity refers to the model's tendency to withhold that…What is the difference between shared memory and global...Inference & ServingMediumPro previewShared memory is located on the Streaming Multiprocessor (SM) and provides fast access with approximately 20 cycles of latency. In contrast, global memory (HBM) is off chip,…What is the difference between structured and unstructu...Inference & ServingMediumPro previewUnstructured pruning results in sparse weight matrices, which fail to reduce memory bandwidth requirements on hardware optimized for dense matrix operations. In contrast,…What is the difference between token-choice and expert-choice routing?LLM FoundationsMediumIn token choice routing, each token independently selects the K best experts, which leads to variable load across experts but is highly compatible with standard inference…What is the first thing to check when a bootstrapped re...Retrieval & EmbeddingsMediumPro previewBefore assuming the model is too small or the data volume is insufficient, investigate the quality of the few shot exemplars. If the examples pulled from a public IR dataset are…What is the fundamental quality difference between Medu...Inference & ServingMediumPro previewMedusa's architecture relies on multiple heads that predict tokens based only on the target model's hidden state, meaning each head is unaware of the tokens predicted by preceding…What is the LLaMA 4 no-RoPE global layer and its failur...LLM FoundationsHardPro previewWithout positional encoding (RoPE), the global layer treats all positions as equidistant, relying entirely on content similarity. This enables the model to extrapolate well beyond…What is the main failure mode of LLM-as-judge evaluations?EvaluationMediumPro previewLLM as judge evaluations are prone to biases inherited from the judge's training data. For example, GPT 4 judges often favor longer responses (verbosity bias) or outputs that…What is the next step when an attribution judge returns...RAGEasyPro previewA binary 'not attributable' label is insufficient because it conflates two distinct failure modes: the model is extrapolating beyond the available evidence (silence) or the model…What is the Orchestrator-Worker pattern in multi-agent...AgentsMediumPro previewAn orchestrator agent breaks a large task into sub tasks, hands each to a worker agent built for that narrow job, and combines what comes back into the final output. Workers are…What is the parameter efficiency gain from fine-grained...LLM FoundationsMediumPro previewVanilla MoE configurations typically use N=8 full size experts with K=2, yielding 8x FFN parameters at 2x FFN FLOPs. By moving to a fine grained approach (e.g., m=4, N=64, K=6),…What is the pipeline bubble and how do you reduce it?Inference & ServingMediumPro previewThe pipeline bubble represents idle time for GPUs during the warm up and cool down phases of a pipeline schedule. For a standard 1F1B schedule, the bubble fraction is (p 1)/m. To…What is the ReAct (Reasoning + Acting) pattern in AI ag...AgentsEasyPro previewReAct is a loop with three parts repeating: Thought, where the model reasons about what it still needs; Action, where it calls a tool to get it; and Observation, where it reads…What is the ReAct pattern, and why is it the foundation of most modern AI agents?AgentsEasyReAct — reasoning plus acting — interleaves three things in a loop: a Thought, where the model reasons about what it needs next; an Action, where it calls a tool; and an…What is the recommended process for choosing between RA...RAGMediumPro previewChoosing the right RAG architecture requires evaluating the specific resources available to the deployment. The primary gating factors are whether you have stable source identity…What is the relationship between SFT data quality and h...Training & Fine-tuningHardPro previewHigh factual depth in SFT data is only safe when the model already possesses the underlying knowledge. If there is a capability gap, SFT teaches structural completion rather than…What is the risk of over-filtering for toxicity?Security & SafetyMediumAggressive toxicity filtering can lead to a model that is unable to process discussions regarding violence, discrimination, or explicit content, even when such discussions are…What is the roofline model and how do you use it to rea...Inference & ServingHardPro previewThe roofline model relates a workload's arithmetic intensity — FLOPs performed per byte of data moved — to the hardware's two hard limits: peak compute throughput and peak memory…What is the RoPE compatibility problem with MLA and how...Inference & ServingVery HardPro previewStandard Rotary Positional Embeddings (RoPE) require applying position dependent rotations to keys before they are cached. Because MLA caches position agnostic latents, RoPE…What is the trade-off between DCLM-baseline and Nemotro...LLM FoundationsHardPro previewThe choice between these datasets depends on the target model size. DCLM baseline provides higher average quality per token but is limited to 3.8 trillion tokens, which may…What is the training-time equivalent to inference-time...Training & Fine-tuningMediumPro previewIN2 training involves rotating positional embeddings during the training process to decouple the model's reliance on fixed positional indices. By addressing the root cause of the…What is the value model for in PPO, and can you remove it?Training & Fine-tuningMediumPro previewThe value model is essential in PPO because it provides a baseline that reduces the variance of the policy gradient. Without this baseline, gradient variance scales with sequence…What is the WSD learning rate schedule and why did Mini...Training & Fine-tuningMediumPro previewThe WSD schedule separates training into three distinct phases: a warmup phase, a flat stable phase, and a short, steep decay phase. The stable phase is highly reusable; any…What is tool calling (function calling) in LLMs, and ho...Agent Protocols & ToolsEasyPro previewTool calling lets a model decide when it needs an external capability and specify how to invoke it — but the model itself never runs anything. It outputs a structured object…What is wrong with the design of a monoT5 reranker that...Inference & ServingHardPro previewA strong answer focuses on the lack of separability in the loss function. Because the loss is calculated as a sum of per document terms, the model does not learn the relative…What is z-loss and when would you add it?Training & Fine-tuningMediumPro previewZ loss is an auxiliary term defined as α(log Z(x))^2 added to the cross entropy loss. It forces the output softmax normalizer toward one, preventing logit scale drift that causes…What is μP and what problem does it solve?Training & Fine-tuningMediumPro previewμP ensures that activation magnitudes and gradient update sizes remain Θ(1) per coordinate regardless of the model width. By choosing specific initialization scales (1/√nin) and…What limits expert granularity, and where does DeepSeek...LLM FoundationsHardPro previewTwo primary factors limit expert granularity. First, tensor core efficiency: matrix multiplication performance drops if the inner dimension (dexpert) falls below the GEMM tile…What loss function do you use for distillation and why...Training & Fine-tuningMediumPro previewWhile cross entropy against hard one hot labels is standard for supervised learning, it discards valuable information about the teacher's uncertainty. Forward KL divergence allows…What makes a good instruction-tuning dataset?Training & Fine-tuningMediumA strong instruction tuning dataset prioritizes three core axes. First, it must demonstrate diversity in task types to ensure the model generalizes well. Second, it requires…What makes agent benchmarks harder to game than static...EvaluationMediumPro previewUnlike static multiple choice benchmarks, agent benchmarks are harder to game because they rely on dynamic, objective verifiers. Because the agent must interact with a real test…What makes DCLM-baseline better than FineWeb if both co...LLM FoundationsMediumPro previewWhile both DCLM baseline and FineWeb are derived from Common Crawl and utilize MinHash deduplication, DCLM baseline incorporates a fastText classifier trained on instruction like…What makes distributed inference across multiple GPUs s...Inference & ServingHardPro previewSingle GPU serving only has to deal with the prefill/decode asymmetry within one device: prefill is compute bound and processes the whole prompt in parallel, decode is memory…What makes hybrid search better than pure vector search...Retrieval & EmbeddingsMediumPro previewDense retrieval is built to find meaning, which is exactly why it struggles with exact tokens. Embeddings compress a term like an error code, a clause number, or a product SKU…What metadata should be added to a document loader to s...RAGMediumPro previewA strong answer demonstrates an understanding of how to map natural language queries to structured metadata. Instead of simply listing fields, you must explain the provenance of…What metrics do you log during pre-training and at what...LLMOps & ProductionEasyPro previewEffective monitoring requires high granularity data. Epoch level averages are insufficient because they hide transient spikes that are often correlated with specific data…What problem are state-space models (like Mamba) trying to solve relative to standard attention, and why haven't they fully replaced transformers?Inference & ServingVery HardStandard self attention has two related long context costs: the attention computation itself scales quadratically with sequence length (every token attends to every other token),…What problem does a feature store actually solve?LLMOps & ProductionHardPro previewTraining serving skew is one of the most common and hardest to detect ways an ML system fails, precisely because nothing throws an error — the model just quietly serves worse…What problem does FlashAttention actually solve, and wh...Inference & ServingVery HardPro previewStandard attention computes the full query key similarity matrix, applies softmax, and multiplies by values — and the naive implementation materializes that full N×N matrix in GPU…What problem does PagedAttention actually solve, and wh...Inference & ServingHardPro previewAt serving time you don't know in advance how many tokens a request will generate, which puts a naive KV cache allocator in a bad spot: reserve a contiguous block sized to the…What problem does the Expectation-Maximization algorith...Training & Fine-tuningHardPro previewEM is for maximum likelihood (or MAP) parameter estimation when your model has latent variables you can't observe — cluster assignments in a Gaussian mixture, missing feature…What quantization schemes are production-viable today,...Inference & ServingMediumPro previewINT8 weight only quantization, such as LLM.int8(), is considered effectively lossless, typically resulting in less than 1% perplexity degradation while providing a 1.5 2x…What requirements must be met to commit to a byte-level...Inference & ServingVery HardPro previewMoving to a byte level model requires solving three major hurdles. First, you must mitigate the 4 8x sequence length inflation, likely through subquadratic attention, sliding…What rerank depth do you use, and why that number?RAGMediumPro previewA strong answer provides an exchange rate: depth costs 0.195 ms per candidate for a BERT base cross encoder at 288 tokens, while recall gains vary based on whether you use a dense…What reward signals would you use to train a reasoning...Training & Fine-tuningMediumPro previewFor training a reasoning model, outcome based rewards such as binary accuracy (correct/incorrect), format rewards (for structured tags), and language consistency rewards are…What security risks are unique to agentic AI systems, a...Security & SafetyHardPro previewWhat makes agent security a different problem from LLM security is that an agent can act on a bad instruction, not just say something wrong. A regular chatbot compromised by…What specific mechanisms prevent an AI agent from getti...AgentsMediumPro previewA hard step cap and a wall clock timeout are the baseline — non negotiable, but they only convert an infinite loop into a bounded failure with no useful output, which is progress…What training health metrics do you log beyond the loss...LLMOps & ProductionMediumPro previewThe core set of metrics includes loss, pre clip grad norm, log Z, loss ema ratio, and nan frac. Each provides specific insight into training health and should have defined…What would you do if the acceptance rate on production...Inference & ServingMediumPro previewA low acceptance rate indicates a distribution mismatch between the draft model and the target model for specific traffic slices. The remediation process involves a systematic…What would you do if the scaling curves for two archite...Training & Fine-tuningVery HardPro previewWhen scaling curves cross, it signifies that one architecture is superior in the data limited regime while the other excels in the compute rich regime. You must characterize your…What's actually different between a bag-of-words repres...Retrieval & EmbeddingsMediumPro previewBag of words representations (like TF IDF) encode a document as term counts or weighted term frequencies, with zero notion of meaning — "bank" the river and "bank" the financial…What's actually different between HNSW, IVF, and flat search in a vector database?Retrieval & EmbeddingsHardThese three answer the same question — how do you find nearest neighbors without literally comparing against every vector — with different tradeoffs. Flat (brute force) search…What's different about containerizing and deploying an...Inference & ServingMediumPro previewThe container mechanics look familiar — multi stage Docker builds, a Kubernetes Deployment, resource requests and limits — but several defaults that work fine for a stateless web…What's the actual difference between a query router and...RAGHardPro previewA descriptive controller maps a query to a label describing a property of it — needs external knowledge, time sensitive, multi hop — a boolean or small enum. A prescriptive router…What's the actual difference between fit(), transform()...Python & DataMediumPro previewlearns parameters from the data it's given — for a , that's the mean and standard deviation of each feature — and it should only ever see the training set. takes those already…What's the actual difference between tool calling, func...AgentsMediumPro previewThe three terms describe the same underlying mechanism at increasing levels of standardization, and the distinction is worth being precise about because interviewers and specs use…What's the actual difference between window functions a...Python & DataMediumPro previewA useful mental test: if the query answer needs one row per group, GROUP BY is right; if it needs one row per original row with group level context attached, only a window…What's the actual mechanical difference between bagging...Training & Fine-tuningMediumPro previewBagging trains many independent models in parallel on bootstrap resamples of the same data and averages their predictions. Because the models are independent and identically…What's the difference between apply(), map(), and apply...Python & DataEasyPro previewis Series only, meant for simple element wise substitutions — swapping category codes for readable labels, say. works on both Series and DataFrames; on a DataFrame it runs column…What's the difference between data drift and concept dr...LLMOps & ProductionMediumPro previewThe distinction matters because the two failure modes call for different fixes, and conflating them leads to wasted retraining cycles or, worse, no action when action was actually…What's the difference between ReAct, Plan-and-Execute,...AgentsHardPro previewThree distinct patterns, each suited to a different shape of problem: ReAct — reason, act, observe, repeat, deciding the next step only once the previous one's result is known.…What's the difference between ReAct, Plan-and-Execute,...AgentsHardPro previewEach trades a different pair of properties, and picking the right one is a "what does this task actually look like" question, not a "which is best" one: ReAct — decides one action…What's the difference between reactive and proactive ag...AgentsEasyPro previewA reactive agent only moves when triggered — it sits idle until a message or event arrives, handles it, and goes back to waiting. A customer support agent that answers only when a…What’s the difference between TTFT and inter-token late...Inference & ServingMediumPro previewTTFT (Time To First Token) scales with prompt length and model size, while ITL (Inter Token Latency) scales with model weight bytes and batch KV cache size. In a streaming chat…What's the real difference between causal language mode...LLM FoundationsMediumPro previewThe distinction is about which direction of context the model is allowed to use during training, and it flows directly from what the model is meant to do afterward. Causal…What's the real distinction between Naive RAG, Advanced...RAGMediumPro previewNaive RAG is the pipeline everyone starts with: chunk the documents, embed them, retrieve the top K most similar chunks for a query, stuff them into the prompt, generate. It's…What's the structural difference between a Bayesian net...Training & Fine-tuningVery HardPro previewBoth are probabilistic graphical models that factorize a joint distribution over random variables to avoid representing the full joint table explicitly, but they differ in the…What’s wrong with using only Chatbot Arena or MMLU as your evaluation?EvaluationEasyRelying solely on Chatbot Arena or MMLU is insufficient for production grade evaluation. Chatbot Arena suffers from selection bias, as the user base is skewed toward tech savvy…When a RAG pipeline retrieves correct information but f...RAGMediumPro previewThis is a generation failure, not a retrieval failure. If the necessary components are in one chunk, a simple prompt instruction to compute the sum is the most efficient fix.…When does a dense model win at inference even if the Mo...Inference & ServingHardPro previewIn memory bandwidth bound serving, such as single user or small batch scenarios, the hardware must stream all model weights from HBM for every token. A large total parameter MoE…When does a model actually need tensor/pipeline paralle...Training & Fine-tuningHardPro previewData parallelism, even with full ZeRO sharding, still requires each GPU to materialize a complete layer's activations and weights at the moment it's computing that layer's forward…When does adding a reasoning scaffold like chain-of-tho...LLM FoundationsHardPro previewChain of thought and similar scaffolds help when a question genuinely requires multi step synthesis across retrieved evidence — connecting several passages, doing arithmetic, or…When does an agentic design beat a deterministic pipeline?AgentsHardPro previewPreview only -- unlock to read the worked answer.When does Prompt Engineering stop being enough and you...System DesignMediumPro previewPrompting stops scaling when you notice you're re explaining the same behavior in every call instead of it being learned once. The clearest signals are a system prompt that keeps…When does the wrong choice between Stratified K-Fold and Group K-Fold break a model in production?EvaluationHardStratified K Fold and Group K Fold get reached for interchangeably by candidates who haven't hit the failure mode yet, but they solve genuinely different problems. Stratified K…When is perplexity insufficient as your only signal, ev...Training & Fine-tuningHardPro previewPerplexity is insufficient when the target capability requires compositional generalization rather than simple next token prediction, such as multi step mathematical reasoning or…When should an agent run synchronously versus asynchronously, and what does the hybrid streaming approach actually solve?System DesignMediumThe choice isn't ideological — it follows directly from how long the task actually takes, and getting it wrong shows up immediately as either timeouts or a frozen looking UI.…When should you reach for a precision-recall curve inst...Training & Fine-tuningMediumPro previewBoth curves sweep the same decision threshold and plot two rates against each other, but they use different denominators, and that difference matters most under class imbalance.…When should you use a single agent versus a multi-agent...AgentsMediumPro previewThe default should be a single agent, and multi agent should be a decision you're forced into by a specific limitation rather than a starting architecture. The legitimate reasons…When should you use activation checkpointing vs. activa...Inference & ServingHardPro previewActivation checkpointing is applied at layer boundaries (such as matmuls or full transformer blocks) to reduce peak memory usage when the model does not fit in GPU RAM, though it…When should you use RAG alone, an agent alone, or both...AgentsMediumPro previewThe decision splits cleanly along two questions: does the task need actions, and does it need document knowledge. RAG alone fits pure question answering over a knowledge base with…When using a hosted generator with no gradient access,...Retrieval & EmbeddingsHardPro previewSince the generator's weights are inaccessible, you cannot backpropagate through it. Instead, treat the generator as a black box scoring function. By conditioning the generator on…When would you choose DPO over training an explicit rew...Training & Fine-tuningMediumPro previewDPO reparameterizes the reward in terms of the policy's own log ratio, which removes the need for a separate reward model and the associated RL training loop. It is the optimal…When would you choose Fine-Tuning over RAG, and when wo...System DesignMediumPro previewRAG and fine tuning solve different problems, so the choice comes down to what's actually changing versus what's staying fixed. If the underlying knowledge shifts week to week, or…When would you choose pipeline parallelism over FSDP?Inference & ServingMediumFSDP's AllGather per layer pattern costs 3|θ| per step, which can stall on low bandwidth links like 25 GB/s InfiniBand. Pipeline parallelism's activation handoffs are one to two…When would you choose W8A8 over W8A16 for production, a...Inference & ServingHardPro previewW8A8 quantization is beneficial when the workload is compute bound, which occurs at higher batch sizes (typically above 295 for common projection sizes). Below this threshold, the…When would you distill rather than build a funnel?Inference & ServingHardThey solve different shapes of problem. Distillation makes one expensive model cheaper everywhere it runs — the right choice when almost every request genuinely needs the full…When would you fine-tune the generator instead of putti...Training & Fine-tuningMediumPro previewThe decision to fine tune versus prompt should be split based on the objective: fine tune when you need to instill specific behaviors or styles, and use retrieval or prompting…When would you NOT use RAG?RAGEasyPro previewThree cases where reaching for RAG by default is the wrong call: The problem is behavior, not knowledge — tone, format, domain specific style. Fine tuning fixes that; retrieval…When would you use PPO instead of DPO?Training & Fine-tuningMediumPro previewPPO is the better choice when you have verifiable rewards, such as in code generation or mathematical problem solving, or when you need to perform on policy exploration to…When would you use Triton instead of torch.compile?Inference & ServingMediumPro previewUse torch.compile for standard operations like element wise math or standard matrix multiplications, as it is highly optimized for these cases. Switch to Triton when you need to…When would you use ZeRO-3 instead of pipeline paralleli...Inference & ServingHardPro previewZeRO 3 shards parameters across DP ranks, which is highly effective if the DP group is large enough and the all gather latency is acceptable. For a 70B model on 8 nodes, ZeRO 3…Where do lambda, map(), and filter() actually earn their place in ML data processing?Python & DataEasyLambda is for a short function you're only going to use once, typically inline inside a Pandas call, a argument, or an sklearn . applies a function across every element of an…Where do you look first when a fine-tuned judge disagre...RAGMediumPro previewBefore assuming the model is deficient and jumping to retraining, investigate the data pipeline. Published error analyses show that a large percentage of discrepancies between…Where do you look when the p95 time to first token is 1...LLMOps & ProductionHardPro previewWhen addressing latency issues, it is critical to avoid premature optimization. Instead, decompose the latency budget across the five core inference decisions. Recognize that…Where does BM25’s IDF term come from, and why that form...Retrieval & EmbeddingsHardPro previewA strong answer follows a four step chain: rank by probability of relevance, convert to odds and drop the query constant prior, factorize under binary independence, and estimate…Where does the LayerNorm go in a modern transformer blo...LLM FoundationsMediumPro previewIn modern transformer architectures, LayerNorm is placed before the sub block, a configuration known as pre norm. This approach is preferred because it maintains the residual…Where does the training data for a complexity classifier come from, given that nobody labels hop counts?RAGHardThe training data is derived by running your available pipelines on existing QA pairs and scoring them using exact match. You keep the cheapest configuration that yielded a…Where does the training data for a large language model...Training & Fine-tuningMediumPro previewA comprehensive understanding of pre training data pipelines requires moving beyond generic answers like 'Wikipedia and web scrapes.' Training data construction proceeds in…Where does the training data for a model like this actu...LLM FoundationsMediumPro previewThe training data for a large language model is not simply 'the internet.' It is the product of a systematic pipeline that begins with crawling raw web data. This data undergoes…Where is agentic AI heading over the next two to three...AgentsMediumPro previewA few directions are visible enough now to bet on, and they share a common thread rather than being unrelated trends: Agent to agent delegation — instead of one generalist trying…Where would you look first if users were reporting high...Inference & ServingMediumPro previewThe first step in diagnosing high latency is to determine whether the issue is with Time to First Token (TTFT) or per token latency. High TTFT suggests a prefill bottleneck, which…Which benchmark would you use to evaluate a new 70B mod...EvaluationMediumPro previewEvaluation strategy should be tailored to the deployment use case. For general purpose assistants, MMLU Pro provides a meaningful signal. For specialized domains like medical or…Why are API costs higher for Japanese users compared to...Inference & ServingMediumPro previewThe primary cause is the tokenizer fertility problem. Because Japanese character patterns were underrepresented in the training corpus of standard English centric tokenizers, they…Why build retrieval instead of fine-tuning the model on...RAGMediumPro previewBuilding a retrieval system is superior to fine tuning for company documents because it addresses critical bottlenecks that fine tuning ignores: attribution, deletion, and…Why can an activation function that wins on paper, like...Inference & ServingMediumPro previewSwiGLU's quality edge over GeLU comes from gating: it multiplies two separate learned projections elementwise before the down projection, and that consistently ablates better than…Why can you not simply skip non-matching nodes during H...Retrieval & EmbeddingsHardPro previewWhen you mask nodes in a navigable small world graph, you break the connectivity properties that HNSW relies on for efficient search. The algorithm will reach a local optimum…Why can't discrete, GCG-style adversarial training run...Training & Fine-tuningMediumPro previewContinuous adversarial training relies on gradient based optimization, which is computationally efficient. In contrast, discrete adversarial training, such as GCG style methods,…Why can’t we just use USMLE or bar exam scores to evalu...EvaluationEasyPro previewThere is a critical distinction between quizzing and asking. Licensing exams like the USMLE or the bar exam test whether a model has memorized structured knowledge under exam…Why can’t you just backpropagate recall@k into the rewr...Training & Fine-tuningVery HardPro previewBecause retrieval involves an argsort operation, the output is not differentiable with respect to the query parameters in the standard sense. The function is piecewise constant,…Why can’t you just do gradient ascent directly on the reward model output?Training & Fine-tuningMediumReward models are imperfect, finite capacity proxies for human preference. If you perform direct gradient ascent on the reward model output, the policy will quickly exploit the…Why can’t you just pad all sequences to the same length...Inference & ServingEasyPro previewStandard padding forces all sequences in a batch to match the length of the longest sequence. This is highly inefficient because the attention mechanism performs quadratic…Why can’t you just put all the company’s document embed...Data, Privacy & LegalHardPro previewA primary challenge in enterprise vector database architecture is the conflict between performance optimization and legal compliance. Standard vector databases often use hash…Why can't you just put every knowledge source behind one vector index, and once you have several independently governed sources, how do you decide which ones to actually query per request?System DesignVery HardDistinct sources — legal contracts, HR policy, regional wikis, a compliance archive — often can't merge into one index for reasons that survive any amount of engineering effort:…Why can’t you just put your embeddings in a hash table?Retrieval & EmbeddingsMediumPro previewOrdinary hashing is engineered to ensure that near identical inputs map to unrelated buckets, making it useless for finding nearest neighbors. A suitable hash for embeddings must…Why can’t you just run gradient descent on NDCG?EvaluationMediumPro previewA strong answer starts with the mechanism, not the label: NDCG depends on scores only through integer ranks, so its gradient is zero almost everywhere and undefined at the swap…Why can’t you just scale data parallelism to 10,000 GPUs?System DesignMediumPro previewScaling data parallelism (DP) indefinitely is limited by memory and efficiency constraints. Without ZeRO 3, DP does not reduce the memory footprint of parameters per GPU.…Why can't you simply minimize the number of nonzeros in...Retrieval & EmbeddingsMediumPro previewMinimizing the L0 norm directly is impossible because it is piecewise constant. L1 serves as a convex relaxation of the count, while FLOPS acts as a relaxation of the retrieval…Why can’t you use exact match or BLEU for instruction-f...EvaluationEasyPro previewInstruction following is inherently open ended; a single prompt can have thousands of valid, distinct responses, meaning exact match will almost always return zero. BLEU is…Why can’t you use the same self-supervised augmentation...Retrieval & EmbeddingsMediumPro previewIn vision, the set of meaning preserving augmentations is 'fat,' allowing for strong self supervised representations. In contrast, text is discrete; the smallest legal move is a…Why did cutting the reranker's candidate pool fail to significantly improve p50 latency?Inference & ServingMediumLatency optimization must be guided by the distribution of compute costs. If the reranker accounts for only a few milliseconds of a multi second budget, reducing its candidate…Why did Kaplan et al. get a different answer from Chinc...Training & Fine-tuningMediumPro previewThe discrepancy arises from the training schedule methodology. Kaplan et al. utilized truncated cosine schedules, which inadvertently made model size appear more valuable than it…Why did Kaplan underestimate the optimal token count co...Training & Fine-tuningHardPro previewKaplan's research relied on multi model comparisons using truncated training runs. Because cosine learning rate schedules require a full cooldown to yield a valid checkpoint,…Why did Kaplan’s scaling law predict a different optima...Training & Fine-tuningMediumPro previewThe discrepancy arises because Kaplan’s experimental design did not train models to their natural termination points. Furthermore, the use of truncated cosine learning rate…Why did LLaMA switch from GeLU to SwiGLU?LLM FoundationsMediumPro previewThe switch to SwiGLU is driven by the addition of a learned per dimension gate that selectively suppresses hidden activations. Ablation studies across multiple research efforts…Why did RoPE (rotary position embeddings) win out over learned absolute position embeddings?LLM FoundationsHardSelf attention has no inherent sense of order — it's permutation invariant unless you inject position information. Learned absolute position embeddings do this by giving every…Why did SwiGLU replace plain ReLU/GELU in modern LLM fe...LLM FoundationsHardPro previewA gated linear unit variant like SwiGLU splits the feed forward projection into two paths — one passed through a smooth activation (Swish/SiLU), the other left linear — and…Why did you pick that vocabulary size, and how did you...LLM FoundationsMediumPro previewChoosing a vocabulary size is a foundational decision that impacts both model performance and parameter efficiency. You must evaluate the compression ratio across your target…Why do instruction-tuned models hallucinate more than b...Training & Fine-tuningHardPro previewThe primary cause of increased hallucination in instruction tuned models is the 'citation trap.' During Supervised Fine Tuning (SFT), the model learns type signatures and…Why do modern LLMs avoid using dropout during pre-train...Training & Fine-tuningMediumPro previewModern LLMs generally omit dropout during pre training for several reasons. First, because pre training involves only one pass over the data, the model does not overfit individual…Why do modern LLMs use RMSNorm and pre-normalization in...LLM FoundationsHardPro previewTwo separate decisions, both driven by training stability at depth. Pre norm vs post norm : the original Transformer normalized after each sub layer's residual addition. That's…Why do modern LLMs use RMSNorm instead of LayerNorm?LLM FoundationsMediumPro previewRMSNorm is preferred in modern LLMs primarily due to memory bandwidth efficiency. Normalization operations often account for approximately 25% of total runtime despite…Why do modern models like Llama 3 train at 40:1 or high...Training & Fine-tuningMediumPro previewWhile Chinchilla provides the optimal ratio for minimizing loss per training FLOP, modern production models prioritize inference efficiency. Because inference costs scale with…Why do outliers appear more in larger models?LLM FoundationsHardThe appearance of outlier channels is an empirical phenomenon linked to model scaling. As models grow, they develop specific feature dimensions that function as gating or routing…Why do people say the transformer is doing gradient des...LLM FoundationsHardPro previewA strong explanation strips the softmax and writes the demonstration term as a sum of rank one outer products. This structure mirrors the shape of an accumulated gradient update.…Why do practitioners limit tensor parallelism to 8 GPUs?Inference & ServingMediumPro previewTensor parallelism (TP) is typically limited to the number of GPUs within a single node (e.g., 8 GPUs in a DGX H100) because of the drastic difference in communication speeds.…Why do transformers use residual connections beyond the...LLM FoundationsMediumPro previewWhile residual connections help maintain an identity path to prevent vanishing gradients, their structural role is equally important. By using additivity, the model maintains a…Why do users asking for 'the latest release notes' get...RAGMediumPro previewA common mistake is attempting to inject dates into the chunk text, which treats a hard temporal constraint as a weak topical signal. This fails when users use relative time…Why do you need both a per-expert and a per-device bala...LLM FoundationsHardPro previewPer expert and per device balancing losses are distinct requirements. Expert level balance is a model quality concern, ensuring all parameter sets are trained uniformly. Device…Why do you need to call torch.cuda.synchronize() before...Python & DataEasyPro previewIn PyTorch, operations on the GPU are asynchronous. When you call a function like dist.all reduce(), the CPU merely submits the command to the GPU's work queue and returns…Why do you need to center (and usually scale) your data...Training & Fine-tuningMediumPro previewPCA finds the directions of maximum variance in your data by eigendecomposing the covariance matrix, and covariance is defined relative to the mean — if you skip centering, the…Why does a Mixture-of-Experts (MoE) model offer better...LLM FoundationsMediumPro previewIn a dense model, every parameter is used for every token. In contrast, an MoE model routes each token to the K highest scoring experts out of E total experts. This allows the…Why does a search system need a ranking layer bolted on...Retrieval & EmbeddingsEasyPro previewBoolean retrieval either matches a document or it does not. If you use conjunctions, the answer set size shrinks geometrically, often approaching zero. If you use disjunctions,…Why does a sparse MoE outperform a dense model trained...LLM FoundationsMediumPro previewAt equal FLOPs, the activated experts in an MoE perform the same arithmetic as a dense FFN, but the model retains additional capacity in dormant experts. This extra capacity is…Why does Adam make memory worse than SGD?Training & Fine-tuningEasyUsing BF16, SGD requires 4 bytes per parameter to store parameters and gradients. Adam, however, requires storing the first moment (4 bytes, FP32), the second moment (4 bytes,…Why does ANCE rebuild the ANN index during training ins...Retrieval & EmbeddingsHardPro previewThe effectiveness of hard negative mining depends on the current state of the model parameters (θt). A negative sample that is hard for a current checkpoint will eventually become…Why does aspect ratio matter beyond model quality?System DesignMediumPro previewWidth (dmodel) determines the feasibility of tensor parallelism because weight matrices are partitioned along the hidden dimension. Depth (nlayers) determines the number of…Why does checkpointing matter for a production LangGrap...Agent Protocols & ToolsMediumPro previewCheckpointing is the mechanism LangGraph uses for Human in the Loop, but framing it as "the HITL feature" undersells what it actually buys a production system. Fault tolerance. A…Why does ColBERTv2's centroid-plus-residual quantizatio...Retrieval & EmbeddingsHardPro previewThe effectiveness of ColBERTv2's compression lies in its use of a centroid index and a quantized residual. By storing the token's identity in the codebook, the system offloads the…Why does column-major access of a row-major matrix perf...Inference & ServingMediumPro previewWhen threads in a warp access a row major matrix in column major order, each thread accesses a different row, meaning their memory addresses are separated by the row width.…Why does deduplication matter so much for pre-training...Training & Fine-tuningHardPro previewDuplicated content in a pre training corpus does real damage in two ways: the model effectively sees that content many more times than intended, giving it disproportionate…Why does end-to-end accuracy fall when increasing k in...RAGHardPro previewThe residual stream has a fixed width regardless of the number of tokens in the context. As you increase k, the attention mechanism must distribute its softmax mass across more…Why does exact nearest-neighbor search become impractic...Retrieval & EmbeddingsHardPro previewIn high dimensional spaces, a well known and counterintuitive effect kicks in: as dimensionality grows, the distances between a query point and all other points start to compress…Why does fine-tuning sometimes increase hallucination r...Training & Fine-tuningMediumPro previewSFT applies loss unconditionally across all target tokens. When the training data includes claims that the model does not actually possess in its weights, the model minimizes loss…Why does FlashAttention save memory during training, no...Training & Fine-tuningMediumPro previewStandard attention requires storing the full N x N probability matrix P to compute gradients during the backward pass, which consumes massive amounts of memory at long context…Why does generative retrieval query latency stay flat a...Retrieval & EmbeddingsMediumPro previewThe query cost for generative retrieval is proportional to the number of symbols needed to address the documents, which is roughly log10(N). While not strictly constant, it scales…Why does indexing single-fact propositions instead of p...Retrieval & EmbeddingsMediumPro previewA passage vector is a blend of multiple facts, which dilutes the similarity score for any single fact. By indexing individual propositions, you ensure that the vector represents a…Why does KV cache fragmentation hurt throughput?Inference & ServingMediumWhen memory is fragmented, the system cannot pack as many sequences into the GPU's memory as it could with contiguous allocation. Since LLM inference, particularly in the MLP…Why does L1 regularization drive coefficients to exactl...Training & Fine-tuningHardPro previewBoth add a penalty to the loss, but the shape of the penalty's constraint region decides whether coefficients land on an axis (zero) or just shrink. Picture the unconstrained…Why does leave-one-out attribution report that no chunk...Retrieval & EmbeddingsMediumPro previewWhen multiple chunks carry the same information, the leave one out method reports zero importance for each individual chunk. To fix this, you can group duplicates and ablate the…Why does Llama 3 use context parallelism only for the l...System DesignMediumPro previewContext parallelism (CP) distributes attention computation by passing KV blocks across devices. At standard pre training lengths like 4096 tokens, existing techniques like Tensor…Why does LLaMA-2 70B use GQA instead of standard multi-...Inference & ServingMediumPro previewStandard Multi Head Attention (MHA) is memory intensive because it stores keys and values for every head. At a 70B parameter scale, the KV cache requirements for MHA make it…Why does MLE-Bench use medal rate rather than raw leade...EvaluationMediumPro previewMLE Bench uses medal rate to normalize performance across various competitions that utilize incompatible scoring scales. While this provides a useful metric, it is a step function…Why does MoCo need a separate momentum encoder? Why not...Retrieval & EmbeddingsHardPro previewCaching key vectors is memory efficient but creates a functional inconsistency. A key computed 512 steps ago was generated by parameters (θt 512) that differ from the current…Why does naïve attention become slow at long context?Inference & ServingMediumPro previewNaïve attention scales quadratically with sequence length N. For a large N (e.g., 8,192), the N x N score matrix is too large to fit in SRAM, forcing the system to perform…Why does naively chunking a table for RAG corrupt it, a...RAGMediumPro previewA table's meaning lives in a two dimensional structure — a cell's value is only interpretable together with its row header and column header — but a standard text chunker operates…Why does naively chunking a table for RAG corrupt it, a...RAGMediumPro previewA table's meaning lives entirely in the relationship between a cell and its row and column headers — "47" means nothing on its own, it means something specific because it sits at…Why does nanoGPT’s throughput increase by 25% after inc...Inference & ServingHardPro previewThe vocabulary embedding and unembedding projections are large matmuls where one dimension is the vocabulary size. When this dimension is not a multiple of the hardware tile size…Why does production LLM training use BF16 instead of FP16?Training & Fine-tuningMediumPro previewFP16 uses a 5 bit exponent, which restricts the maximum representable value to 65,504. In large scale LLM training, gradient norms frequently exceed this limit, leading to…Why does production ML need data versioning, and how do...LLMOps & ProductionMediumPro previewCode versioning by itself gives a false sense of reproducibility in ML — checking out the same commit and rerunning training can still produce a materially different model if the…Why does RLHF fail for reasoning tasks?Training & Fine-tuningMediumPro previewRLHF fails for reasoning tasks because the reward model is a noisy, finite proxy for human preferences. The policy exploits the gap between this proxy and ground truth, causing…Why does RLHF outperform SFT for instruction following at scale?Training & Fine-tuningMediumSFT is bounded by the time and cost constraints of human generation. In contrast, pairwise preference collection allows for the exploitation of the generator validator gap, which…Why does RLHF sometimes make models worse even though t...Training & Fine-tuningMediumPro previewThe reward model is a finite sample proxy for human preference. As the policy optimizes against this proxy, it finds stylistic and structural patterns that score well on the proxy…Why does RoPE make the attention score depend only on r...LLM FoundationsMediumPro previewThe rotation matrix Rm applied to the query Q and Rn applied to the key K results in the inner product <Rmq, Rnk . Because rotation matrices compose such that the transpose of Rm…Why does scaling weights by activation magnitude before...Inference & ServingVery HardPro previewThe per token quantization error for a channel j is defined as ϵj = xj · Δwj, where Δwj is the quantization step size (approximately ‖wj‖∞/127). By multiplying the weight wj by a…Why does self-consistency degrade gracefully when a tre...Inference & ServingHardPro previewThe difference lies in the aggregation mechanism. Self consistency is additive: if one of five samples is wrong, the majority vote is still likely to be correct. Tree search is…Why does SFT improve benchmark performance even with ve...Training & Fine-tuningMediumPro previewBenchmarks such as MMLU often utilize multiple choice or short answer formats. Because the base model already contains the necessary knowledge, the primary challenge is outputting…Why does SFT often degrade factual accuracy relative to...Training & Fine-tuningHardPro previewThe degradation of factual accuracy in SFT occurs because data curators typically prioritize fluent and complete sounding responses. Consequently, the model learns to produce…Why does swapping DPR for ColBERT significantly increas...Retrieval & EmbeddingsMediumPro previewStorage scales by the average token count times the dimension ratio. Latency does not move much because the primary cost is the single query encoder pass. Any minor latency…Why does tenant-scoped search return results for large...Retrieval & EmbeddingsMediumPro previewPost filtering is inefficient and prone to failure because the number of survivors scales with tenant size. If you fetch a fixed K and filter afterward, small tenants are…Why does the decay phase recover so much loss so quickl...Training & Fine-tuningHardPro previewThe stable phase maintains a high learning rate, which keeps the model in a noisy equilibrium between gradient signal and step size, preventing it from getting trapped in any…Why does the optimal learning rate decrease as you scale up a transformer?Training & Fine-tuningMediumIn standard transformer training, as the width n increases, the Adam update norm per layer scales at a rate of O(√n) when using a global learning rate. This results in larger…Why does The Pile use 22 sources instead of just filter...LLM FoundationsMediumPro previewRelying solely on Common Crawl, even with advanced filtering, is insufficient because it systematically underrepresents specific technical and academic domains. Sources like…Why does the sliding window in a listwise reranker star...Inference & ServingMediumPro previewThe choice is structural rather than empirical. Sliding head first commits the top ranks early, which prevents documents from the tail from rising to the top. Sliding tail first…Why does the standard recipe use tensor parallelism wit...Inference & ServingMediumPro previewThe standard recipe optimizes for the bandwidth gap between intra node and inter node communication. Tensor parallelism requires an allreduce at every layer, which is supported by…Why does the unfused GELU run significantly slower than...Inference & ServingMediumPro previewThe unfused GELU implementation incurs significant overhead due to multiple HBM round trips for intermediate results, paying the full bandwidth cost for each pass without…Why does training with FP16 sometimes produce NaN value...Training & Fine-tuningMediumPro previewFP16 has a 5 bit exponent capping representable values at 65504. Attention logits, activation values, or gradient products can exceed this threshold, overflowing to infinity,…Why does vanilla policy gradient have high variance, an...Training & Fine-tuningHardPro previewThe gradient of the objective function is derived via the log derivative trick as ∇θJ = E[R∇θ log πθ]. Subtracting a baseline B(s) that depends only on the state is bias free…Why does VeriScore change how claims are extracted rath...EvaluationHardPro previewWhen you isolate sentences for claim extraction, you break the semantic links between pronouns and the entities they refer to, which were established in earlier sentences. This…Why does Z(x) drifting cause specific problems in bfloa...Training & Fine-tuningHardPro previewFp32 has 23 mantissa bits, providing approximately 7 decimal digits of precision, while bfloat16 has only 7 mantissa bits, providing approximately 3 decimal digits. When Z(x) is…Why doesn’t Fusion-in-Decoder (FiD) just concatenate th...RAGMediumPro previewA weak answer focuses only on context window limits. A strong answer addresses the cost structure: self attention over concatenated passages is 4(kn)^2d per layer, compared to…Why doesn’t sequence parallelism alone solve the 128K context memory problem?Inference & ServingMediumWhile SP splits the sequence for pointwise operations, each GPU must still iterate over all s keys during FlashAttention's tile loop. This means KV tensors must be accessible from…Why include a synthetic key-value retrieval task alongs...EvaluationHardPro previewIn the context of evaluating LLM performance across long context windows, researchers often observe a 'U shaped' performance curve where information at the beginning and end of…Why include Stack Exchange in a pre-training corpus giv...LLM FoundationsMediumPro previewWhile Stack Exchange represents only a few billion tokens, its value lies in its structural characteristics rather than raw volume. The platform's question and answer format…Why include the synthetic key-value retrieval task alon...EvaluationHardPro previewMulti‑document QA can be confounded by the fact that middle chunks are harder to reason about, so a performance drop might be due to reasoning difficulty rather than a positional…Why is a 7B model slower per token at batch size 32 tha...Inference & ServingHardPro previewAt batch size 1, generation is primarily memory bandwidth bound because each step requires loading model weights and performing a single matrix vector multiplication. As the batch…Why is a cross-encoder not used for retrieval, and how...Retrieval & EmbeddingsMediumPro previewA strong answer provides the arithmetic: 2P (Lq + Lp) FLOPs per pair, which for millions of passages is impossible within a 50ms budget. The bi encoder is efficient because the…Why is a doubly stochastic matrix, rather than a single...EvaluationHardPro previewA hard ranking is a 0/1 permutation matrix, which creates a discontinuous step function for exposure. By relaxing this to a doubly stochastic matrix (where probabilities are…Why is a kd-tree not suitable for high-dimensional sema...Retrieval & EmbeddingsMediumPro previewThe pruning test |qi s| r fails to exclude nodes because the radius r grows with the square root of the dimensions, while coordinate gaps remain small. At 768 dimensions, the tree…Why is a safety leaderboard where lower ASR is always b...EvaluationMediumPro previewA safety leaderboard focusing solely on Attack Success Rate (ASR) is insufficient because it ignores the model's utility. A model that refuses all prompts achieves a 0% ASR but…Why is automatically verifying whether an LLM's claim i...RAGVery HardPro previewThree separate problems compound to make this genuinely hard, not just tedious: The model is a black box. You can observe its output but not directly inspect the process that…Why is autoregressive decoding slow compared to prefill?Inference & ServingMediumPro previewPrefill is compute bound because it processes all tokens in parallel, allowing the system to utilize tensor cores effectively. In contrast, autoregressive decoding generates…Why is autoregressive generation memory-limited rather than compute-limited?LLM FoundationsMediumAutoregressive generation is memory limited because, at a batch size of 1, the arithmetic intensity is far below the compute saturation point of modern GPUs like the H100.…Why is BF16 faster than FP32 for LLM training?Training & Fine-tuningMediumPro previewBF16 provides two primary mechanisms for speedup over FP32. First, by halving the bytes per element, it reduces HBM traffic for memory bound operations like activations, norms,…Why is Chatbot Arena considered the gold standard for e...EvaluationMediumPro previewChatbot Arena is widely regarded as the gold standard because it relies on live human preference across real world user prompts, utilizing an ELO system that accommodates new…Why is chunking such a big deal in RAG, and what actual...Retrieval & EmbeddingsMediumPro previewChunking sets a hard ceiling on retrieval quality, because whatever unit of text you split a document into is the largest unit that can ever be retrieved as a coherent piece — no…Why is distilling from a pruned initialization better t...Training & Fine-tuningMediumPro previewDistilling from a pruned initialization is superior to training from scratch because the surviving weights in the pruned model are already the best performing weights from the…Why is exact deduplication not enough? What does MinHas...Data, Privacy & LegalMediumPro previewExact deduplication is insufficient for large scale web corpora because it misses near duplicates that provide no additional training signal. MinHash addresses this by…Why is fine-tuning on documentation a poor substitute f...Training & Fine-tuningMediumPro previewThe update objective in fine tuning lacks a term for the old distribution, leading to catastrophic forgetting. Furthermore, the compute cost of updating weights (6Ngen FLOPs) is…Why is INT8 inference faster than BF16 inference at bat...Inference & ServingMediumPro previewAt a batch size of 1, the primary bottleneck for LLM inference is the time taken to load weights from HBM, not the arithmetic throughput of the compute units. Because INT8 weights…Why is it better to intervene on attention weights via...RAGEasyPro previewPrompting a model to ignore a document is unreliable because the instruction competes for attention on the same footing as all other information in the context. There is no…Why is it important to exclude the bias from the gate w...LLM FoundationsMediumPro previewThe bias is intended as a load control signal, not a quality signal. If the bias were included in the gate weight computation, an expert that was promoted due to low affinity…Why is LLM generation slow? What’s the bottleneck?Inference & ServingMediumPro previewLLM generation is limited by memory bandwidth because each step involves matrix vector multiplications and KV cache reads that have an arithmetic intensity near O(1). This is far…Why is Mixture of Experts (MoE) becoming standard in fr...Training & Fine-tuningHardPro previewA dense model activates every parameter for every token, so total parameters and per token compute are the same number — to get more capacity, you pay for more compute on every…Why is NumPy so much faster than plain Python lists for...Python & DataEasyPro previewThree things stack together. First, memory layout: a NumPy array is one contiguous block, like a C array, which the CPU cache handles well; a Python list is actually a list of…Why is perplexity on a held-out set a poor proxy for downstream task performance, and what should you measure instead?EvaluationMediumPerplexity is a measure of a model's ability to predict the next token averaged over a reference corpus. It is inherently sensitive to tokenization, domain distribution, and…Why is prefill compute-bound but generation memory-bound?Inference & ServingMediumPro previewDuring the prefill phase, the model processes a sequence of S tokens simultaneously. This allows the system to amortize the cost of reading model weights over S compute operations…Why is product quantization fast at query time? It stil...Retrieval & EmbeddingsMediumPro previewA strong answer names the two phases: first, build an m × k table of query to centroid distances using k d multiply accumulates. Second, reduce each candidate to m lookups and m 1…Why is pure vector search not enough for an enterprise...RAGMediumPro previewPreview only -- unlock to read the worked answer.Why is ring attention mathematically exact?Inference & ServingHardPro previewThe online softmax accumulator maintains three statistics: running maximum logit m, running log sum exp denominator ℓ, and weighted output sum O. When a new KV chunk arrives,…Why is RL harder to scale than supervised fine-tuning?Training & Fine-tuningMediumPro previewUnlike supervised fine tuning, RL training requires rollouts to complete before gradient steps can occur, placing inference in the critical path. Additionally, maintaining…Why is sequence parallelism said to be free?Inference & ServingMediumPro previewIn a ring based implementation, the AllReduce and the ReduceScatter + AllGather pair move the same number of bytes per device. Sequence parallelism rearranges when the scatter…Why is tensor parallel degree capped at 8 in most produ...System DesignHardPro previewOnce tensor parallelism exceeds the 8 GPU limit of a standard node, AllReduce operations must traverse InfiniBand. For a 70B model, this results in communication times that far…Why is the empirical scaling exponent so much smaller t...LLM FoundationsHardPro previewThe 1/√n rate is the standard non parametric rate for estimating a scalar or fitting a one dimensional function. Language modeling, however, is a high dimensional task where the…Why is the FFN expansion ratio 4x commonly used instead...LLM FoundationsEasyPro previewEmpirical evidence suggests that the loss landscape is relatively flat for FFN expansion ratios between 2x and 8x, meaning there is no significant quality signal distinguishing…Why is the MLP parameter count so sensitive to the dff...LLM FoundationsHardPro previewThe MLP parameter count is sensitive because the transition from ReLU to SwiGLU introduces an additional weight matrix. To keep the total parameter budget consistent with previous…Why is the naive PyTorch GeLU 7× slower than the fused version?LLMOps & ProductionMediumThe naive PyTorch GeLU implementation is slower because it consists of six separate CUDA kernels. Each kernel reads and writes the full tensor to HBM. For a 256 MB tensor at 2…Why is the residual connection important? What breaks w...LLM FoundationsMediumPro previewWithout the additive skip connection, the gradient at a layer involves a product of many Jacobians that collapses to near zero as the depth increases. The residual connection…Why is the target identical for every retrieved chunk i...RAGMediumPro previewThe constant target asserts that the label y belongs to the question, not the specific context question pair. By training on all instances, we force the model to learn to extract…Why is the throughput hit of ZeRO 3 compared to DDP oft...Training & Fine-tuningHardPro previewWhile ZeRO stage 3 theoretically increases communication by 50% (3P vs 2P), the real world impact is often lower. First, FSDP implementations overlap communication and computation…Why is transformer generation memory-bound, and what ar...Inference & ServingMediumPro previewTransformer generation is memory bound because the attention arithmetic intensity is roughly 1; batching requests does not amortize the cost because both FLOPs and memory…Why is ZeRO stage 1 claimed to have zero communication...Training & Fine-tuningMediumPro previewIn standard DDP, the AllReduce operation is used to synchronize gradients across ranks. ZeRO stage 1 leverages the fact that AllReduce internally decomposes into a ReduceScatter…Why isn't a cross-encoder used as a retriever despite i...Retrieval & EmbeddingsMediumPro previewA weak answer simply states that cross encoders are too slow. A strong answer explains the structural property: the bi encoder’s score factorizes into sim(η(q), η(d)), allowing…Why might a model trained on high-quality, expert-level...Training & Fine-tuningHardPro previewWhen SFT examples contain complex knowledge that the model did not acquire during pre training, it learns to mimic the output structure of the expert data. This includes adopting…Why might two SPLADE checkpoints with the same average...Retrieval & EmbeddingsHardPro previewThe cost is proportional to the sum of query activations multiplied by document activations. The two models can differ by up to the size of the vocabulary in cost even if the…Why might you choose gloo over nccl?Training & Fine-tuningEasyPro previewGloo is a collective communication library that supports CPU based operations. It is useful in environments where GPUs are not available, such as local debugging or CI/CD…Why might you choose to ship CAG over CrAM even if CrAM has a higher adversarial-injection score?RAGMediumA high adversarial injection score for CrAM indicates it is near Oracle for the specific, narrow threat it was calibrated against. However, this does not translate to performance…Why not a kd-tree? It’s O(log N ) and it’s in the stand...Retrieval & EmbeddingsHardPro previewThe pruning test for a kd tree is |qi s| r. In high dimensional spaces, such as d=768, the radius r is approximately √2d, which equals 39. Since a single coordinate gap is…Why not just train the new architecture at a small scal...EvaluationMediumPro previewSmall scale benchmark testing is insufficient because architectures may rank differently on perplexity compared to specific benchmarks. Furthermore, emergent capabilities often…Why not just use a much larger vocabulary for an LLM's...LLM FoundationsEasyPro previewVocabulary size is a genuine trade off, not a free lunch, because two of the most expensive parts of the model scale directly with it. The embedding matrix (mapping token IDs to…Why not just use an LLM to extract every triple in your...RAGHardPro previewUsing an LLM to extract triples from every document in a corpus is often impractical due to the nature of the underlying data. When dealing with a structured taxonomy, the schema…Why not just use CLIP for every image in your RAG corpus?Retrieval & EmbeddingsHardPro previewWhile using CLIP for image retrieval simplifies the ingestion pipeline by removing the need for an intermediate captioning step, it creates a significant operational hurdle.…Why not just use the WET files Common Crawl provides?Data, Privacy & LegalEasyPro previewThe WET files provided by Common Crawl are a lossy, pre extracted version of the web data that often includes significant boilerplate and low quality text. For serious training…Why not learn one codebook with 2^32 centroids instead...Retrieval & EmbeddingsHardPro previewThe choice between a single large codebook and multiple smaller ones represents a fundamental trade off between model expressivity and practical feasibility. While a single…Why not simply paste all documentation into a large con...RAGHardPro previewThe appeal of large context windows is the removal of index management and staleness issues. However, the cost is prohibitive: prefill at 2N tokens makes a large corpus thousands…Why not solve for the globally optimal routing assignment?LLM FoundationsMediumPro previewSolving for a globally optimal routing assignment requires a solver step that incurs an O(N T) cost per layer per forward pass. At the scale of modern model training, this…Why not train at long context from the beginning?Inference & ServingMediumPro previewThe primary reason is cost; because attention mechanisms scale at O(L2), training on long sequences is orders of magnitude more expensive per token. Additionally, a model in the…Why not train on all two million synthetic query-passage pairs generated by an LLM?Retrieval & EmbeddingsMediumTraining on unfiltered synthetic data introduces noise. A round trip check—training a preliminary retriever on the set and keeping only pairs where the retriever recovers the…Why not use a soft gate over all experts instead of top-K?LLM FoundationsMediumPro previewIf you were to use a soft gate over all experts, you would be forced to compute the FFN output for every single expert for every token. This would multiply the FFN FLOP cost by…Why retrieval instead of fine-tuning the model on this...RAGMediumPro previewA strong answer focuses on the operational transfers: correctness, attribution, opt out, adaptability, and parameter efficiency. The definitive argument for RAG over fine tuning…Why retrieve top-k per source instead of pooling every...Retrieval & EmbeddingsMediumPro previewA weak answer treats the two aggregation schemes as equivalent. A strong answer identifies the specific failure of document pooled voting: if a low reliability source contributes…Why should most FLOPs in an LLM be in matrix multiplica...LLM FoundationsMediumPro previewMatrix multiplications (matmuls) are unique because their arithmetic intensity (AI) is N/3 for an N x N matrix, meaning they become compute bound as the size increases. Other…Why should you only target specific 'gullible heads' in...RAGMediumPro previewScaling down attention across every head is a blunt approach that negatively impacts model performance. Most attention heads are dedicated to functions unrelated to misinformation…Why split a RAG pipeline into a controller plus sub-age...RAGHardPro previewA common misconception is that agents are inherently more modular or accurate. In reality, splitting a large context into m agents reduces the prefill time by dividing the…Why split classification errors into false positives an...EvaluationMediumPro previewIf you pool errors, the feedback tracks the net difference between false positives and false negatives. If these counts are similar, the signal disappears even though the model is…Why train a graph neural network for knowledge-graph re...RAGMediumPro previewThe primary motivation for using a GNN is to split the process into two phases: graph learning offline, and scoring/path extraction at inference. This trades a one time training…Why use a product codebook (multiple small codebooks) i...Retrieval & EmbeddingsHardPro previewA single codebook with 2^32 centroids is theoretically more expressive but practically impossible due to the massive training data and memory required for centroids. Product…Why use a synthetic key-value retrieval task in addition to multi-document QA to evaluate positional effects?EvaluationMediumThe multi document QA task is insufficient on its own because one could argue that middle chunks are simply harder to reason about. The synthetic key value task acts as a control…Why use Gumbel noise specifically for retriever trainin...Training & Fine-tuningHardPro previewThe max stability property of Gumbel noise allows the perturbation to act as a reparameterization rather than a heuristic smoothing. While Gaussian noise is intuitive, it results…Why use KenLM instead of a BERT-based classifier for qu...Inference & ServingEasyPro previewThe primary constraint is the computational budget. Scoring 10^12 tokens with a BERT based classifier at ~10ms per sentence would cost millions of GPU hours. KenLM, however,…Why would 200-token chunks with 20% overlap be wrong fo...RAGMediumPro previewWhile fixed size chunks work for simple L1 or L2 retrieval, they are inappropriate for compliance based procedures. When you chunk a procedure into arbitrary 200 token segments,…Why would a nearest-neighbor graph deliberately connect...Retrieval & EmbeddingsMediumPro previewIn a nearest neighbor graph, k nearest edges within a cluster often point in the same direction, which can lead to greedy search getting stuck. HNSW uses a selection heuristic to…Why would adding retrieval make a model perform worse o...RAGMediumPro previewThis phenomenon is known as a crossover failure. On popular subjects, the model's internal knowledge is often correct. When retrieval introduces a passage that is irrelevant or…Why would adding retrieval make a model worse on questi...RAGEasyPro previewAdding a retrieval component to an LLM does not strictly improve performance; in some cases, it degrades accuracy on queries the parametric model previously answered correctly.…Why would DPO underperform PPO in some experimental set...Training & Fine-tuningHardPro previewDPO suffers when the policy drifts significantly from the distribution used to collect the preference data, causing the implied rewards to become stale and the gradients to…Why would generating queries from a document help retri...Retrieval & EmbeddingsEasyPro previewThe primary challenge in traditional retrieval is vocabulary mismatch, where a document is relevant but does not contain the specific keywords a user enters. BM25 style scoring…Why would you add a shared expert to a MoE layer?LLM FoundationsMediumPro previewThe hypothesis behind adding a shared expert is that certain MLP level transformations are universal across all token types. By factoring these into a dedicated always on expert,…Why would you build a RAG system over a much larger closed-book model if you cannot guarantee higher accuracy?RAGMediumWhile accuracy is important, the primary value proposition of RAG is the ability to trace generated claims back to specific source documents. A closed book model, regardless of…Why would you deliberately train on examples where the...Training & Fine-tuningMediumPro previewIf every training context contains the answer, the model learns a zero loss policy of simply copying from the context. This leaves the model without a signal for cases where the…Why would you mix instruction data into pre-training in...Training & Fine-tuningMediumPro previewIntegrating instruction data into the pre training phase offers three primary advantages. First, it reduces catastrophic forgetting because the model's learning rate is already in…Would you compress each retrieved document into a singl...Retrieval & EmbeddingsHardPro previewThis is a requirements question disguised as a technical compression question. Retrieval embeddings are optimized for similarity, while the generator's space is optimized for…Would you decompose the query into sub-questions up fro...RAGHardPro previewThere is no single correct approach; it depends on the nature of the query. For comparison questions, static decomposition allows for parallel fan out, which reduces round trips.…Would you ever use ReLU in a new architecture? When?LLM FoundationsMediumPro previewFor standard pre training with a modern stack, there is no compelling reason to choose ReLU over SwiGLU. However, it may be used if there is a specific need for sparsity based…Would you fine-tune an assistant on a new price list to...RAGEasyPro previewA strong answer rejects the premise of fine tuning for dynamic data like pricing. Fine tuning a 27B model requires significant GPU resources (approx. 1,324 GPU hours) and becomes…Would you fine-tune an MLLM reranker or prompt one, and...Inference & ServingHardPro previewThe choice depends on data availability and cost at scale. Prompting based listwise reranking is ideal for early stage development because it requires no labeled pairs and no…Would you serve a 1.3B model instead of a 7B model to r...Inference & ServingMediumPro previewWhile smaller models might theoretically reduce some exposure, the trade off is poor. Deduplication delivers significantly better results in terms of emissions and perplexity.…Would you serve a 1.3B model instead of a 7B to reduce...Data, Privacy & LegalMediumPro previewWhile scaling laws indicate that smaller models (e.g., 1.3B vs 7B) generally retain less verbatim training data, shrinking model size is an inefficient lever for managing…Write a complete, production-quality sklearn pipeline —...Python & DataHardPro previewWhat separates a "production" pipeline from a notebook pipeline is that it removes every place a human could accidentally introduce leakage. Numerical and categorical columns need…Write k-fold cross-validation from scratch, and explain...Python & DataMediumPro previewThe mechanics: shuffle the data, split it into K roughly equal folds, then run K rounds where one fold is held out as the test set and the rest are pooled for training. Each round…Write precision, recall, and F1 from scratch, and expla...Python & DataMediumPro previewPrecision is : of everything the model flagged as positive, what fraction actually was. It's the metric to optimize when false positives are the costly mistake — a spam filter…Write the formula for nDCG@k from memory.EvaluationEasyThe formula for nDCG@k involves calculating the Discounted Cumulative Gain (DCG) and normalizing it by the Ideal Discounted Cumulative Gain (IDCG). The logarithmic discount is…You added a relevance gate using the retriever’s cosine...RAGMediumPro previewThe thresholding of the maximum retrieval objective over the whole index is flawed because it measures topical density rather than whether the retrieved document actually contains…You added retrieval and the error rate barely moved. Di...RAGHardPro previewIf retrieval does not improve performance, you must isolate the failure points. First, measure answer passage recall to determine if the relevant information is actually being…You applied class weights to fix a 1:1000 class imbalan...System DesignMediumPro previewClass weights address the wrong axis of the problem. They rebalance the counts — how much each class contributes to the total loss — but they say nothing about difficulty . Even…You are 20 days into a 30-day run and discover a GPU ha...LLMOps & ProductionVery HardPro previewFirst, quantify the contamination window by comparing canary loss to its expected trajectory. If the divergence is minimal (within two standard deviations of noise), the model may…You are asked to deploy RA-RAG in a new domain - legal...RAGVery HardPro previewRA RAG requires a calibration set with checkable answers, not gradient based training. In legal filings, one might find checkable queries related to citation validity or docket…You are building a medical QA assistant using SFT on do...Training & Fine-tuningHardPro previewFor each doctor written response, you should probe the base model for the underlying factual claims before including the example in your training set. You must filter out examples…You are building an automatic eval for a RAG system’s l...EvaluationEasyPro previewGrading long form answers as a single unit is ineffective because it collapses partial successes and failures into a binary result. The correct approach is to decompose the…You are designing a 100B-parameter model for edge hardw...Inference & ServingVery HardPro previewSwiGLU requires two back to back GEMMs before the element wise product, which can cause two memory round trips to HBM, creating a throughput bottleneck on memory constrained edge…You are designing a new model targeting 128K context se...System DesignVery HardPro previewBegin by defining your memory budget (e.g., 80GB per GPU, with a portion reserved for weights). Calculate the per token KV footprint for MHA, GQA, and MLA at your target context…You are designing speculative decoding for a 70B chat m...System DesignHardPro previewWhen designing for a 70B model on limited hardware, the primary constraint is the KV cache and weight memory footprint. A standalone 7B draft model often consumes too much VRAM.…You are evaluating a closed-weight model and the developer claims the test set was not in training data. You have no access to training data. How do you verify?EvaluationHardWhen you lack access to the training data of a closed weight model, you must rely on behavioral probes to detect contamination. An ordering probe checks if the model's preference…You are on a hosted generator with no gradient access....Training & Fine-tuningHardPro previewWhen working with a hosted generator where you lack gradient access, the model parameters are inaccessible, and the discrete nature of the output (the arg max between generation…You are serving a 70B GQA-8 model (nq = 64, nkv = 8, dh...Inference & ServingHardPro previewTo calculate the KV cache, compute bytes per token per layer: 2 (for K and V) 8 (KV heads) 128 (dhead) 2 (bytes per float16) = 4,096 bytes. Total cache = 4,096 8192 (context) 32…You are told to cut retrieval latency by 30%, and the f...LLMOps & ProductionHardPro previewA strong answer rejects the premise that credibility tagging is a query latency cost. If tagging is performed at ingestion time, it is already off the query latency critical path.…You are training a 30B model and the loss spikes mid-ru...LLMOps & ProductionMediumPro previewWhen a loss spike occurs, you must first determine if it is a transient issue or a fundamental model failure. Start by checking the gradient norm trajectory to see if it was…You are training a 70B model and gradient norm spikes a...LLMOps & ProductionHardPro previewWhen encountering gradient norm spikes, the first step is to implement per layer gradient monitoring to determine if the spikes originate in the attention blocks or the output…You believe that the retrieval harm curve exists in you...EvaluationHardPro previewExplicit relevance labels are not required to locate the crossover point where retrieval starts harming performance because final answer correctness serves as the label. To find…You benchmarked allreduce and got 100 GB/s on a 4-GPU H...Inference & ServingHardPro previewWhen observed bandwidth is significantly lower than peak, first verify that NCCL is utilizing NVLink rather than falling back to PCIe by checking NCCL DEBUG=INFO. Second, ensure…You cut the reranker’s candidate pool from 50 to 10 hop...Inference & ServingHardPro previewIn many LLM serving scenarios, the bottleneck is not the number of candidates processed but the compute cost of the decode phase. If a model is already significantly over the…You deployed an instruction-tuned model, removed a single whitespace character from the prompt template, and benchmark accuracy dropped double digits. Why is the model this brittle to a change that doesn't alter the meaning of the text at all?Retrieval & EmbeddingsMediumCalling this a "grammar" or "formatting" issue undersells what's actually happening, because the model doesn't process characters or words the way a human reader does — it…You don’t have ground-truth relevant documents for this...EvaluationEasyPro previewIn the absence of ground truth data, you must generate a proxy for relevance. This is typically achieved by employing a human labeling panel or using an LLM to act as a judge.…You enabled Self-RAG. p50 latency moved four percent and the GPU bill tripled. Explain.Inference & ServingMediumBecause the K candidate continuations are independent, they run as one batch. Since decoding is memory bandwidth bound, batching K candidates costs roughly one step of wall clock…You fine-tune your embedding model on ten million docum...Retrieval & EmbeddingsMediumPro previewThe index stores embeddings based on the model's parameters at a specific time. When the model is fine tuned, the index becomes versioned and inconsistent with the new query…You fine-tuned with RAFT and your counterfactual errors...Training & Fine-tuningHardPro previewThe failure occurs because RAFT supervises one answer per example, spreading the credit assignment across all documents in the context. This is sufficient for a global 'trust the…You had to delete your original training dataset for co...System DesignHardPro previewThe instinct — load the checkpoint, lower the learning rate a bit, and fine tune on the new class — looks conservative and isn't. Every gradient step in that fine tuning run is…You have 1,000 candidate sources and no labeled trainin...Retrieval & EmbeddingsMediumPro previewA weak answer proposes a manually curated allowlist, which does not scale and fails to adapt when a source’s quality changes over time. A strong answer proposes estimating…You have 1:10,000 class imbalance and SMOTE isn't helpi...Training & Fine-tuningVery HardPro previewThe first move is a framing change, not a technique change: at 1:10,000, this stops being a classification problem you fix with resampling and becomes an anomaly detection…You have 1023 FLOPs of training budget. How many parame...Training & Fine-tuningMediumPro previewTo determine the optimal parameter count, start with the Chinchilla scaling relationship C ≈ 6ND. You must first establish the expected inference volume, as this dictates the…You have 15% missing values in a numeric column. How do...Training & Fine-tuningMediumPro previewSplit first, always. Computing any statistic — a mean, a median, a mode — across the full dataset before splitting means your imputation has already encoded information from the…You have 40 tools registered on an agent. What happens?AgentsMediumPro previewTool selection accuracy degrades, and it degrades faster than most people expect. Redundant tools with overlapping descriptions actively confuse routing — the model has to…You have 500 tenants; five, all government contracts, r...System DesignHardPro previewYou can avoid the overhead of 500 individual deployments by using a tiered architecture. The vast majority of tenants can reside in a shared, logically isolated pool. Only those…You have 64 experts on 16 GPUs. Training throughput is...LLMOps & ProductionHardPro previewEven if per expert utilization metrics appear balanced, device level aggregation can be skewed if multiple high traffic experts are co located on the same GPU. This creates all to…You have 8 million internal documents and zero labeled...Retrieval & EmbeddingsMediumPro previewSince negatives can be sampled, the core issue is the lack of positive pairs. You can generate these by creating independent crops of your existing documents. After training with…You have a $50k budget and six weeks to build an SFT da...Training & Fine-tuningMediumPro previewThe strategy involves a six week timeline where week one is dedicated to identifying five to ten critical task types and running an AI generation pilot to measure failure rates.…You have a 13B parameter model and 8 × A100 80 GB GPUs....Training & Fine-tuningMediumPro previewTo calculate the memory requirements for a 13B parameter model, we multiply 13 billion parameters by 16 bytes per parameter, resulting in 208 GB. Since each A100 GPU only provides…You have a 30.7 GB flat index but only 1 GB of RAM. Wha...Retrieval & EmbeddingsMediumPro previewWith 10 million vectors and 1 GB of RAM, you are limited to roughly 100 bytes per vector. By choosing a configuration like m=96, you can compress the 768 dimensional vectors into…You have a 4,096-GPU budget. Walk me through your parallelism assignment.Inference & ServingVery HardFor a 4,096 GPU budget, the assignment strategy begins by setting tensor parallelism to t=8 within each NVSwitch node. Next, assess if the 512 nodes fit into a single non…You have a fixed per-query inference budget. How do you...RAGHardPro previewBoth prefill and decode operations scale linearly with token count, allowing for a direct trade off between context length and sampling. Rather than arbitrarily increasing top k,…You have a limited annotation budget of $50,000. How do...Training & Fine-tuningMediumPro previewFor a 7B model SFT run, you should leverage model generated data from a strong API model to achieve broad coverage, as this can provide 500,000 to 1,000,000 examples at near zero…You have a six-week deadline to improve long-context pe...LLMOps & ProductionHardPro previewAdopting a DIFF Transformer requires a fundamental change to the model's architecture, specifically the parameterization of attention heads, which necessitates a full training…You have an 8k context window, a 2-second p95 budget, a...RAGHardPro previewWhen choosing between IRCoT and Self Ask, one must derive the prefill costs for each. IRCoT involves a cumulative loop that increases prefill tokens, while Self Ask is generally…You have budget for exactly one gating signal. Do you t...Inference & ServingHardPro previewMechanistically, next token probability scores fluency, which means a confident falsehood is indistinguishable from a confident truth. Therefore, token level confidence is not a…You have deployed a DSI-style retriever. The product te...Retrieval & EmbeddingsMediumPro previewWhen using a DSI style retriever, the model is constrained by its decoding process, which cannot emit an identifier outside of its trie. Adding new documents daily without…You have eight few-shot examples. Does their order matt...AgentsMediumPro previewWith eight examples, there are 8! (40,320) possible arrangements, and research shows performance can swing from near chance to state of the art based on permutation. Do not…You have five hundred human relevance judgments across...Retrieval & EmbeddingsHardPro previewWith 500 judgments across 50 queries, you have an average of 10 judgments per query. This allows you to estimate the S parameter in the BM25 formula. You should show the…You have five modalities and a labeled set for only two of them. How do you set thresholds for the other three?Retrieval & EmbeddingsHardWhen labels are sparse, you should prioritize borrowing thresholds from modalities that utilize structurally similar encoders, followed by manual spot checking for precision.…You have graded labels 0–4. Defend the choice between s...Training & Fine-tuningMediumPro previewRule out the regression head first and for the right reason: the grades are ordinal, not interval, so squared error assumes a metric no annotator supplied. Then state what a flat…You have ground-truth relevant documents for each query...EvaluationEasyPro previewA strong evaluation strategy begins with standard classification metrics such as precision@k, recall@k, and F1@k, defined by the intersection of retrieved documents and ground…You have no labeled evaluation for a new vertical. How...EvaluationHardPro previewFragility is distinct from correctness. By creating variants of your prompt and measuring how much the model's log likelihood changes for the same output, you can quantify…You have one quarter. Do you spend it on a router, or o...RAGHardPro previewCalculate the expected improvement: a router's ceiling is limited by the best available branch, while a new configuration increases the performance of a specific segment, thereby…You have query–document pairs graded 0 to 4 by humans,...EvaluationHardPro previewThe core problem is that nDCG is a function of the relative ordering (argsort) of the scores rather than their absolute values. Because of this, a model can achieve a perfect nDCG…You have six knowledge stores. Why not query all six an...RAGMediumPro previewQuerying all stores is not merely a latency or cost issue; it introduces significant functional failures. Compliance requirements may forbid querying specific stores entirely.…You have tombstone deleted vectors in your HNSW index i...Retrieval & EmbeddingsMediumPro previewWhen using tombstones, deleted nodes remain in the index structure, causing the search algorithm to traverse them unnecessarily, which increases latency. Before adding hardware,…You have two candidate architectures at the same parame...LLM FoundationsMediumPro previewAccording to Kaplan et al., model shape has a minimal impact on loss at a fixed parameter count. Therefore, the decision should be driven by operational requirements. The deeper…You have two candidate models: A is strong on five of s...EvaluationHardPro previewWhen comparing models with different performance profiles across trust axes, the choice depends on the context of the deployment. Simply looking at aggregate radar area can be…You have two million unlabeled domain sentences and one week. How do you build a domain sentence encoder and validate it?Retrieval & EmbeddingsHardStart by measuring an off the shelf model on your domain, as the evaluation set is the most valuable artifact. If you proceed with training, use a dropout recipe with specific…You migrate from a caption-based index to a CLIP-style...Retrieval & EmbeddingsVery HardPro previewMigrating to a CLIP style shared embedding space changes the underlying distribution of your vector data, making a one size fits all thresholding approach ineffective. Different…You minimize KL(PR‖QLM). Is that objective better at pr...RAGHardPro previewThe gradient on logit j is Pj (ℓj − L). When the generator dislikes a passage that the retriever likes, ℓj is large, causing a significant 'push down' effect. Conversely, if the…You moved from IndexIVFPQ to IndexIVFPQFastScan and got...Retrieval & EmbeddingsHardPro previewThe 5x gain is due to memory layout changes: codes are transposed into blocks of 32 so one aligned load serves one subquantizer across the block. Additionally, 4 bit codebooks…You need a graph-based RAG architecture for a support b...RAGVery HardPro previewStart with construction: turning text into a graph means extracting (head, relation, tail) triples, and the method is a precision/recall/cost trade. Manual curation is precise but…You need a real-time model to recommend new connections across a 500-million-user social graph, serving 50k requests per second. Why might reaching straight for a Graph Neural Network be the wrong first move?System DesignMediumThe pattern match is obvious — it's a graph, so use a Graph Neural Network — and that's precisely what makes it a trap. GraphSAGE or GAT is the theoretically appropriate…You need a system that generates realistic, diverse hum...Multimodal & Generative MediaVery HardPro previewThe four standard approaches to image generation sit on a genuinely different point on the speed/quality/control/stability trade off surface, and no single one dominates the…You need to adapt an English-centric LLM's tokenizer to...Retrieval & EmbeddingsHardPro previewBPE learns subword units by statistically merging frequently co occurring character pairs, which works well for concatenative languages like English precisely because the root…You need to quantize a model for deployment. What actua...Inference & ServingHardPro previewThe first thing that actually breaks, well before overall model quality collapses, is precision loss driven by outlier values in specific activation dimensions. In practice, a…You need to validate that adding table-aware retrieval...EvaluationHardPro previewThe choice of benchmark must align with the production task. For financial filings, you need datasets that include long, multi document contexts and complex table structures.…You operate two tenants against one index: tenant A run...System DesignHardPro previewDesign should distinguish between fixed costs (memory/GPU capacity) and variable costs (compute per query). For high volume tenants like A, dedicated hardware is efficient because…You raised top-k from 5 to 40, retrieval recall went up...RAGMediumPro previewA strong answer separates retrieval from utilization. The passage is now in the prompt more often but used less effectively. You can confirm this by holding k fixed and injecting…You removed 8 of 32 layers from a 15B model and see a 1...EvaluationHardPro previewA uniform drop across MMLU categories suggests general capacity loss that can be addressed through distillation. However, if the drop is concentrated in specific areas like multi…You run a remove-the-evidence ablation and find that re...RAGMediumPro previewFirst, rule out noise by checking against the resampled variance floor. If the improvement is significant, it indicates the document is actively harmful, acting as a 'one bad…You said a deterministic function deciding the next ste...AgentsVery HardPro previewWhat makes something an agent is whether the policy — the thing deciding the next action — was authored in advance or interpreted at runtime , not whether the decision happens to…You shipped a mixture-based reader at k=10 and exact ma...RAGHardPro previewDerive the cause by examining the lambda vector. If the top document has too little weight, the ensemble is simply averaging multiple distributions, which dilutes the signal. If…You shipped expansion. Recall@1000 went up four points...Retrieval & EmbeddingsHardPro previewIn BM25, the score is a sum over terms. If you add twelve terms of comparable IDF to a query that originally had three, the original terms lose their relative weight, causing…You shipped the multilingual encoder. Recall@100 barely...Retrieval & EmbeddingsHardPro previewThe retrieval score is being dominated by a language specific constant (the norm of the per language mean) rather than semantic similarity. Because the model is trained with…You shipped WordNet synonym expansion. Recall@100 rose...Retrieval & EmbeddingsHardPro previewLexical expansion via WordNet increases the size of the retrieved document set. Because the retrieved set is now a superset of the original, recall@100 will naturally rise as a…You swapped the first-stage retriever from BM25 to a de...Retrieval & EmbeddingsHardPro previewSeparate two hypotheses: if the reranker is order sensitive, shuffling the candidate order under the old retriever already moves NDCG@10 by a comparable amount, whereas if the…You switch a fine-tuning run from FP16 to QLoRA so it f...Inference & ServingHardPro previewThe instinct that 4 bit weights should mean roughly 4x less data moved and therefore faster training conflates two different resources: how much data sits in VRAM, and how fast…You switched to binary quantization and recall@10 fell eight points. Diagnose it.Retrieval & EmbeddingsHardLead with the mechanism: Hamming distance estimates θ/π with binomial variance. At d = 768, this variance is roughly ±0.027 on cosine, meaning any pair of candidates closer than…You switched to proposition indexing and recall@5 dropp...Retrieval & EmbeddingsMediumPro previewRecall@5 over propositions is not directly comparable to recall@5 over passages because the token density differs significantly. Additionally, the index size increase can cause…You tighten your freshness filter from 24 months to 6 m...RAGHardPro previewThe freshness filter is testing the time difference between the current time and the most recent citation hop. Because the laundering process involves re citing information, the…You verbalize a pruned 50-node subgraph as a flat list...RAGMediumPro previewA strong diagnostic approach splits the failure into two distinct possibilities. First, you must determine if the critical information was discarded during the pruning phase. If…You want an automated trigger for model retraining base...System DesignHardPro previewThe KS test feels rigorous because it produces a clean, familiar number, but it's answering a question that stops being useful once your live traffic volume gets large. A p value…You want to add more chemistry data to a pre-training c...Training & Fine-tuningHardPro previewTo integrate specialized chemistry data, first define a target distribution (T) using high quality sources like arXiv chemistry papers and textbook excerpts. Second, train a KenLM…You want to fit a Chinchilla scaling law for your model...Training & Fine-tuningMediumPro previewThe primary issue is that the model's terminal loss is heavily influenced by the specific learning rate schedule applied during training. An early checkpoint in a long cosine run…You went from one shard to eight. Corpus size and QPS a...Inference & ServingHardPro previewThe bottleneck is the fan out effect: the query latency is now determined by the slowest of the eight machines. Statistically, the user visible p99 is approximately the p99.87…You wire up joint retriever and generator training. The...Training & Fine-tuningHardPro previewThe retriever's weights are not moving because the top k selection process is non differentiable. A weak answer suggests learning rate adjustments or auxiliary losses based on…You wire up prefetching, but the profiler still shows the transfer sitting on the critical path and latency didn’t drop. What broke?Retrieval & EmbeddingsHardWhen prefetching fails to reduce latency, it is often because the two operations are not actually running in parallel. If the prefetch logic waits for the final query rewrite to…You wrap the reranker’s forward pass in torch.compile,...Inference & ServingHardPro previewWhen input shapes vary, torch.compile cannot reuse the cached graph and must retrace, which is computationally expensive. The solution is to enforce a fixed size, padded, and…You're about to sign off on a large pre-training run. What's the actual checklist you walk through before submitting the job, beyond "the model architecture looks right"?System DesignVery HardWork backward from the two ways a run gets wasted: it doesn't fit the hardware, or it finishes and the result is quietly bad. On data, confirm exact and near duplicate…You’re asked to wire a fourth retrieval endpoint into a...RAGMediumPro previewAdding a fourth synchronous call increases the fan out miss probability, which follows the 1 (1 p)^N distribution. Before writing code, one must analyze the latency impact and…You're building a few-shot prompt. How should you actua...LLM FoundationsEasyPro previewFew shot example selection is really a small retrieval problem hiding inside a prompting decision, and the three common strategies trade simplicity for relevance. Random sampling…You’re building image retrieval for an HR recruiting-ph...Security & SafetyHardPro previewStandard metrics like recall@k and MRR do not measure social bias. You must perform demographic parity testing using paired probes across protected attributes to identify if the…You're capacity-planning a production LLM serving stack...Inference & ServingHardPro previewThe process starts from token level math, not request counts, because tokens are what actually consume compute and memory. Estimate expected input and output tokens per request,…You're chunking policy documents. What's your strategy?RAGMediumPro previewFixed size chunking ignores the document's own structure and routinely splits a clause from the heading that makes it findable — you end up with a chunk that contains the answer…You're distilling a large ensemble into a single small model for low-latency serving. Why is training the student purely on the ensemble's winning label a waste of the ensemble's real value?Inference & ServingMediumIf you take the ensemble's top prediction and treat it as ground truth for standard cross entropy training, that's technically defensible — the ensemble really did predict "cat"…You're extending a working text-to-image diffusion mode...Multimodal & Generative MediaVery HardPro previewThe core insight is that "video generation" isn't a different problem from image generation so much as image generation with an extra axis that the existing layers are…You're handed a compute budget and a target model size. Walk through how you'd actually assign data, tensor, pipeline, and — if the model is MoE — expert parallelism across the cluster.Training & Fine-tuningVery HardStart from what's true regardless of topology: tensor parallelism doesn't consume batch size the way data and pipeline parallelism do, so it's the right tool specifically for…You're implementing LoRA from scratch. How should you i...Training & Fine-tuningMediumPro previewLoRA isn't a new layer bolted onto the network — it's a residual correction to an existing weight matrix: W new = W frozen + B·A. That framing is the whole reason the naive answer…You're modeling a dataset where the number of features...Training & Fine-tuningHardPro previewWhen p (features) exceeds n (examples), you're in an underdetermined regime: for any reasonable model class there are infinitely many parameter settings that fit the training data…You’re running federated RAG over a dozen independently...RAGMediumPro previewBroadcasting queries to all knowledge bases is inefficient. Instead of using a heavy LLM call for every query, you should employ a lightweight learned classifier that analyzes the…You’re seeing attention heads collapse to attending a single position after 20B tokens. What’s happening and what do you do?Training & Fine-tuningHardQuery and key norms have grown unchecked, producing logits large enough for the softmax to concentrate near one hot. QK norm prevents this by normalizing Q and K before the dot…You’re serving a 70B model and a user sends a 50k-token...Inference & ServingHardPro previewThe TTFT for a large prompt can be estimated using the formula: 2 Parameters SequenceLength / ComputeCapacity. For a 70B model and a 50k token prompt on an H100 (approx. 989…You're training a 50-billion-parameter MLP and monitori...Training & Fine-tuningVery HardPro previewThe intuition that a zero gradient means "stuck at a minimum" comes from low dimensional loss surfaces — the kind you can actually plot and stare at — where a flat point with high…You're training a CLIP-style contrastive model from scr...Retrieval & EmbeddingsMediumPro previewFor a standard supervised classifier, batch size is mostly a tool for estimating the gradient and trading off compute efficiency against optimization noise — smaller batches are…You’re training a new 70B model from scratch. A colleag...Training & Fine-tuningHardPro previewGQA is a deliberate architectural choice made at initialization to optimize inference economics. To resolve the debate, train two identical 7B models—one with MHA and one with GQA…You’ve built the summary tree. Do you retrieve with a f...RAGHardPro previewA single ranking over the entire tree is superior because it lets the query naturally select the appropriate level of detail. A fixed quota per level forces the system to retrieve…You've implemented a new architecture from a paper. It...System DesignMediumPro previewThe reflex when a loss curve is flat is to start tuning — lower the learning rate, swap AdamW for SGD, double check normalization — and that reflex treats a correctness problem as…You’ve shown me the U-curve. Where does this bias actua...LLM FoundationsMediumPro previewThe U shaped curve is not an unavoidable mathematical property of the transformer architecture. Instead, it is a result of the specific training distributions used to create the…Your 70B pre-training run develops a loss spike at 150B...Training & Fine-tuningHardPro previewFirst, check if the grad norm shows a single step extreme outlier, which suggests a data anomaly, or a gradual elevation, which points to logit drift or learning rate issues. If…Your 70B pre-training run is showing periodic loss spik...Training & Fine-tuningHardPro previewTo investigate, first distinguish a data quality spike (a bad batch artifact) from structural drift. Data quality issues usually recover in 1 2k steps, whereas structural drift…Your abstention rate is 54% and users are leaving. Brin...LLMOps & ProductionHardPro previewResist the urge to simply lower the threshold, as this directly trades off the safety you were tasked to protect. Instead, attack the cost of wrong answers by attaching checkable…Your abstention rate is 54% and users are leaving. How...RAGHardPro previewHigh abstention rates often signal that the system is being too conservative, but lowering the threshold indiscriminately will lead to more errors. The strategy should be to…Your agent's tools return JSON. Where does that break?AgentsMediumTwo places, in practice: Schema drift. A tool's response shape changes upstream — a field gets renamed, a type changes from a number to a string — and the agent silently mis…Your AlpacaEval LC win rate improved 5 points but Chatb...EvaluationHardPro previewA discrepancy between AlpacaEval and Chatbot Arena often arises because the two metrics sample different prompt distributions. You should inspect which prompt categories drove the…Your ANN search stage measured 6 ms in staging on a 10...Retrieval & EmbeddingsHardPro previewAt 500 million chunks, the index is roughly 19 times larger than at 10 million, meaning it no longer fits on a single GPU card. The search must now occur in CPU DRAM, introducing…Your architecture team wants to reduce key-value heads...Inference & ServingMediumPro previewBy reducing the number of key value heads, the memory footprint of the KV cache per sequence is reduced by a factor of four. This allows the maximum batch size to roughly…Your assistant answers ‘Alexander Fleming’ to ‘which sc...EvaluationHardPro previewIn this scenario, the assistant is not hallucinating because the retrieved passages actually support the answer provided. Instead, this is a case of answer drift where the system…Your assistant answers 'who is our current VP of Suppor...RAGMediumPro previewThe core issue is that the gate incorrectly classifies the query as not needing retrieval because it confuses the existence of an answer in the model's training data with the…Your assistant answers the first turn well and the third turn badly. Users say it forgets. What do you check first?RAGMediumA strong diagnostic approach involves inspecting the input at the retrieval stage to see if the query has been corrupted or diluted. Often, the issue is that the current question…Your assistant retrieves the right guideline and answer...RAGMediumPro previewThe problem is identified as a behavior deficit because the model successfully reaches the correct context and answer, meaning recall and reranking are not the primary issues. The…Your assistant returns fluent answers in the wrong form...LLMOps & ProductionHardPro previewIt is a mistake to treat format errors and data staleness as a single bug. Format issues are typically query independent and suggest a problem with the system prompt or output…Your assistant scores well overall, but users who ask q...RAGMediumPro previewThe problem is a configuration issue, not a reranking issue. Standard retrieval configurations linearize tables, which obscures the structure. The solution is to implement a…Your attribution classifier reports 95% precision on a...RAGHardPro previewHigh benchmark precision often fails to translate to production when the classification criteria are too rigid. A binary pass/fail gate for attribution ignores the nuance of…Your automatic attribution judge is too expensive, but...EvaluationHardPro previewThe cost of attribution can be managed by sequencing the evaluation. By using a lightweight filter to identify unresolved pronouns or dangling referents, you can immediately flag…Your autoscaler is scaling in correctly but P99 TTFT is...LLMOps & ProductionHardPro previewSpiking P99 TTFT despite correct autoscaling is often caused by KV cache eviction storms. As sequences complete, blocks are freed, but if the scheduler allows too many long…Your batch is already at memory capacity. What are your...Inference & ServingHardPro previewWhen memory capacity is reached, you can increase TPS by reducing the memory footprint per request. First, use GQA or MLA to reduce the number of KV heads, which shrinks the KV…Your benchmark shows a 10× speedup over PyTorch on a si...LLMOps & ProductionHardPro previewBefore claiming a 10× speedup, you must first verify correctness by asserting that both implementations produce numerically equivalent outputs, as a kernel returning garbage can…Your BM25 index ranks a 40-page onboarding PDF above a two-sentence FAQ entry that answers the question exactly. Which constant do you turn, and which way?Retrieval & EmbeddingsMediumBefore adjusting constants, print the per term contributions to determine if the failure is due to term frequency or document length. If the document is winning because it is long…Your book corpus is 90% genre fiction. What does that m...Training & Fine-tuningMediumPro previewA corpus dominated by genre fiction teaches the model long range narrative patterns such as character tracking, dialogue attribution, and scene transitions. However, it fails to…Your chatbot needs to respond in under 500ms. How do yo...LLMOps & ProductionMediumPro previewSub 500ms responses come from removing latency at every stage of the request, not from one clever trick. Streaming is the single biggest perceived speed win — the moment the first…Your chunks are 512 fixed tokens and recall@10 is 0.71....RAGMediumPro previewA strong answer refuses to speculate without understanding the corpus. Semantic chunking relies on a cosine detector's ability to identify boundaries. If the corpus has high delta…Your cluster uses TP-8. You want a 70B model with dmode...Inference & ServingHardPro previewTo determine the head count, divide the model dimension (8192) by the target head dimension (128) to get 64 heads. When using a Tensor Parallel (TP) degree of 8, each GPU shard…Your ColBERTv2 index fits in memory, but latency is hig...Inference & ServingHardPro previewHigh latency in ColBERTv2 is often a result of excessive data movement during the scoring phase. By calculating the total bytes moved per query, you can identify the bottleneck.…Your complexity classifier routes 60% of traffic to the...LLMOps & ProductionMediumPro previewThe primary risk is that the branch not taken in production provides no feedback, causing accuracy to degrade without triggering traditional alerts. To monitor this, you must…Your consistency filter retains 60% of generated pairs....Retrieval & EmbeddingsHardPro previewThe retention rate is not a proxy for quality. You must investigate the composition of the discarded pairs. If the filter is removing hard positives that are essential for…Your contrastive loss is 0.08 after one epoch and recal...Retrieval & EmbeddingsMediumPro previewA strong answer recognizes that a low loss value in this context is a sign of an easy negative pool, not a high quality retriever. With 255 in batch negatives at a margin of 8…Your corpus grows by 5% daily and freshness has to land...LLMOps & ProductionHardPro previewGraphRAG's global modularity makes hourly updates computationally and financially prohibitive, as it requires re running community detection and summarization across the entire…Your corpus is growing 10x a year. What breaks first?RAGHardPro previewAs the corpus grows, the probability of finding the 'gold' chunk in the top k results decreases unless k increases. Once the context window limit (e.g., 32k tokens) is reached,…Your cost-per-query breakdown covers embedding, vector store, reranker, and generation tokens. What’s missing?LLMOps & ProductionMediumA complete cost analysis must account for externalities, specifically the infrastructure costs imposed on the sources you retrieve from. When your system performs a grounding…Your credibility-weighted ranker keeps a small set of r...RAGMediumPro previewThe ranking mechanism lacks a notion of group exposure. Because the top K slots are filled based on the highest utility scores, simply retrieving more candidates does not change…Your CTO mandates fixed-size chunking for all indexes,...RAGHardPro previewAcknowledge the mandate's utility for standard knowledge bases. For transcripts, argue that the high delta nature of drifting topics between speakers makes them a unique case. The…Your CTO reads the negative result and mandates fixed‑s...System DesignHardPro previewConcede that the mandate is appropriate for documentation, policy, and knowledge‑base corpora, which dominate the company. Then explain that customer‑support chat transcripts…Your custom CUDA GeLU runs at 1.8 ms but PyTorch’s runs...LLMOps & ProductionVery HardPro previewThe performance gap is primarily due to two factors. First, using float32 instead of bfloat16 doubles the bytes moved per element; switching to bfloat16 halves HBM traffic and…Your decoupled-and-aligned index is now 171x larger tha...Inference & ServingHardPro previewTo address the storage and performance issues, you must treat them as distinct problems. For storage, you can apply residual or product quantization to the patch embeddings, which…Your demonstration selector uses embedding top-k and sc...RAGHardPro previewIf embedding based selection performs no better than random, the issue is likely that the demonstrations are not providing the necessary signal. Check if the top k retrieval has…Your dense index is 6 GB and recall@50 is 92% overall b...Retrieval & EmbeddingsHardPro previewThe performance gap on SKU containing queries indicates that the dense model is failing to represent these high IDF terms correctly. Adding a BM25 arm is a cost effective way to…Your dense retriever beats BM25 by 19 points. Should yo...Retrieval & EmbeddingsMediumPro previewThe aggregate win of a dense retriever often hides a tail where its performance is near zero, specifically for rare terms not well represented in training. You should segment your…Your dense retriever misses queries containing product...Retrieval & EmbeddingsHardPro previewWhen a dense retriever fails on specific entities like product SKUs, it is often due to the limitations of the embedding model's tokenizer or the loss of information during vector…Your dense retriever scores well offline and badly on real user questions over a technical corpus, and you have no relevance labels. What is the bug and what is the cheapest fix?Retrieval & EmbeddingsHardThe asymmetry between document document training and question document inference is the root cause. You can diagnose this by comparing mean cosines of document document pairs…Your director wants to ship CrAM to prevent adversarial...RAGHardPro previewIt is important to separate the benchmark performance of a technique like CrAM from the resource requirements it assumes. Since CrAM relies on scaling attention tensors, it cannot…Your DiskANN p99 is 12 ms against a 5 ms budget. What d...Retrieval & EmbeddingsHardPro previewDiskANN latency is driven by the number of I/O rounds. Increasing beam width reduces the number of rounds but increases the number of reads per query, which lowers the QPS…Your document-first decoder reranker profiles at 0.0155...Inference & ServingMediumPro previewThe discrepancy between theoretical FLOPs and actual latency is often due to execution overhead. Eager execution pays a memory round trip at every kernel boundary, while variable…Your embeddings are float32 at d = 768 and the index no...Retrieval & EmbeddingsHardPro previewA strong answer begins by calculating the footprint: 3,072 bytes per vector, which equals 30.72 GB for 10 million vectors. You should then separate the two axes of optimization:…Your eval budget is cut. A teammate wants to drop the '...EvaluationHardPro previewThe remove the evidence ablation is necessary because no attribution judge can distinguish between load bearing and redundant citations using only the fixed output. Dropping this…Your eval lead wants the budget spent upgrading the jud...System DesignVery HardPro previewTo adjudicate, calculate the impact of each investment on the system's error rate. Upgrading the judge model improves the verification of existing claims, but it is bounded by the…Your FActScore dashboard shows the model's factuality s...EvaluationHardPro previewA sudden jump in factuality scores should be treated with suspicion. First, check if the model has started producing shorter or more hedged answers, which can artificially…Your few-shot-calibrated LLM judge disagrees with your...EvaluationHardPro previewRetraining a retriever against unverified labels risks optimizing the system to satisfy a flawed proxy. A 15% disagreement rate indicates a need for investigation rather than…Your five-way relevance classifier hits 82% held-out ac...EvaluationHardPro previewA strong answer separates the metric from the model immediately: accuracy is order blind and dominated by the class 0 mass, and arg max quantizes a hundred candidates onto five…Your flat index is 30.7 GB and you have 1 GB of RAM for it. Same embedding model, same dimension. What do you do?Retrieval & EmbeddingsMediumFirst, convert the memory budget into bytes per vector. With 1 GB of RAM for 10 million vectors, you have a budget of 100 bytes per vector. Using Product Quantization (PQ) with…Your four-agent assistant costs 35% more per query than...RAGMediumPro previewIf the agents are not issuing their own queries, the fan out provides no benefit and only increases costs. Furthermore, conjunctive reliability is a major factor: if each agent…Your four-way classifier predicts label A on 70% of a b...AgentsHardPro previewA strong diagnostic approach starts with a content free probe: feed N/A in place of the input and observe the label distribution. If the model outputs label A with high frequency…Your fraud model has 99.7% accuracy. Are you happy?Training & Fine-tuningEasyPro previewNo. With a base rate that skewed, a model that predicts "never fraud" for every transaction would score about the same, so 99.7% accuracy tells me almost nothing on its own. What…Your fusion stage sums a CLIP image–text score with a B...Retrieval & EmbeddingsMediumPro previewSumming scores from different distributions is a common failure point in hybrid search. Because BM25 is unbounded and CLIP is bounded, the sum is mathematically dominated by the…Your GAN-based image generator has started producing ne...Multimodal & Generative MediaHardPro previewIt helps to keep in mind that a GAN generator's objective is never "match the true data distribution" directly — it's "produce outputs the current discriminator can't distinguish…Your GenAI app worked great for 6 months, then started...LLMOps & ProductionHardPro previewA GenAI system that was stable for months and then breaks almost never breaks because the code changed — it breaks because something in the environment around it changed while the…Your generation model is multimodal-in, text-out only,...Multimodal & Generative MediaHardPro previewYou can derive localization signals as a byproduct of the model's existing architecture. By extracting cross attention weights or forcing the model to emit coordinates, you gain a…Your generation team wants to strip citation markers fr...Data, Privacy & LegalHardPro previewThe conflict arises from conflating user facing utility with backend system requirements. A user study measuring satisfaction scores only captures whether the user feels the…Your generator is behind an API that returns no token p...EvaluationMediumPro previewAsking the model to state its confidence is a common baseline, but it is limited because the output is a token from the same distribution as the answer, often resulting in a…Your GNN-RAG retriever already scores nodes by query re...RAGMediumPro previewReframing the question is key: GNN RAG provides a semantic relevance score, but it does not inherently dictate the optimal size of the context window. Because GNN RAG can struggle…Your GNN-RAG retriever’s accuracy quietly drops three m...RAGHardPro previewIf the code has not changed, the input data—the graph—has likely shifted. A new relation type introduced to the graph is exactly the input the GNN was not trained to handle. You…Your gold set is 90% attributable, 10% non-attributable...EvaluationMediumPro previewSampling exemplars to match the 90:10 production traffic distribution is a mistake because it teaches the judge the base rate rather than the specific features that distinguish…Your gradient norm alert fires, but when you inspect the documents at the data cursor position you find nothing obviously wrong. What else could be causing the spike?LLMOps & ProductionHardIf the data appears clean, the issue is likely infrastructure or numerical. First, check for silent data corruption by comparing gradients across replicas. Second, verify the…Your graph retriever returns individually correct tripl...RAGMediumPro previewA strong answer investigates the mechanics of the retrieval process. It checks whether the three steps of the reasoning chain actually connected: were the right entities linked,…Your graph-augmented system states a fact with a clean...RAGMediumPro previewThe hallucination arises because the model generated reasoning based on retrieved context, but the system failed to validate the reasoning steps against the actual graph…Your GraphRAG system verbalizes every retrieved triple...RAGMediumPro previewThe primary issue is the linear growth of token usage relative to the number of triples. Simply increasing the context window is a temporary fix that does not address the…Your grounded QA accuracy is 60% and the product wants...EvaluationHardPro previewMathematical analysis shows that voting based methods like self consistency have diminishing returns. If the base accuracy (p) is 60%, increasing the number of samples does not…Your HNSW index is at 6ms latency with a 20ms budget an...Retrieval & EmbeddingsMediumPro previewLayer 0 dominates the search latency, so increasing ef (e.g., from 64 to 128) is a reversible, per request adjustment that typically fits within the remaining latency budget. If…Your hypothetical document invents a surgeon’s name and...RAGMediumPro previewHyDE documents are not content for the user; they are probes for the vector space. By generating multiple independent samples and averaging them, the specific hallucinations…Your index grew from ten million to two hundred million...Retrieval & EmbeddingsMediumPro previewHNSW search latency scales logarithmically, which explains why latency remains stable even as the index grows. The drop in quality is a structural issue where the fixed number of…Your isoFLOP analysis says 40:1 is optimal, but you onl...Training & Fine-tuningHardPro previewWith a 500B token limit and a 30B parameter budget, your current ratio is 17:1, which is below the compute optimal 40:1. Option 1 is to reduce the model size to 25B to achieve a…Your IVF index holds p50 at 5 ms but p99 at 60 ms, at f...Retrieval & EmbeddingsHardPro previewThe work per query is the sum of the probed list lengths, which varies because k means on a clustered manifold does not produce equal sized cells. To diagnose, pull the list…Your judge holds 78% macro-F1 on the in-distribution gold set, but drops to 61% on a new document domain, though accuracy is 89%. The PM wants to ship anyway. Adjudicate.EvaluationHardThe high accuracy figure is deceptive because it likely stems from the model defaulting to the majority label in a domain where it lacks sufficient exemplars. The significant drop…Your judge scores 91% accuracy on a held-out set. Do yo...EvaluationEasyPro previewA strong answer requires looking beyond a raw accuracy percentage. If the held out set is skewed, a high accuracy score can be misleading, as the model might be defaulting to the…Your KV cache is overflowing VRAM at the batch size you...Inference & ServingMediumPro previewThe most effective architectural lever is GQA, which reduces the number of KV heads from N to N/G (typically G=8), shrinking the cache by 8x with minimal accuracy impact. Other…Your labels are integers 0 through 4. Argue for and aga...EvaluationHardPro previewWhen labels are integers 0 through 4, they represent an ordered sequence, but treating them as continuous numbers is problematic because the spacing between them is defined by…Your largest tenant is 40% of the corpus and 60% of que...System DesignVery HardPro previewAcknowledge that pure tenant partitioning creates a hot partition that cannot fit on a single node, while pure hash sharding loses the routing efficiency for small tenants.…Your layout model has five pre-training objectives comb...Training & Fine-tuningHardPro previewWeights are meaningless unless the losses share a common range, so normalization is the first step. For validation, use a per corpus hypothesis to determine which objectives the…Your lead wants to replace the production cross-encoder...Inference & ServingHardPro previewThe swap only makes sense if there is sufficient cache hit concentration to justify the overhead of a larger decoder model. If 95% of documents are queried only once, the system…Your leave-one-out attribution says no chunk in the con...RAGHardPro previewThe leave one out attribution method fails in scenarios where the context contains redundant information. If two chunks carry the same fact, removing one chunk does not change the…Your lexical retriever returns section headings and tab...Retrieval & EmbeddingsHardPro previewWhen headings or captions dominate, the mechanism is usually a ratio based normalization where the denominator is minimized by the short length of the snippet, artificially…Your LID model misclassifies Python files as non-Englis...Training & Fine-tuningHardPro previewTo correct LID misclassifications without retraining, implement a two tier threshold system. Documents identified by a heuristic—such as containing a high density of Python…Your LLM API bill hit 50 lakh rupees per month. How do...LLMOps & ProductionMediumPro previewMost runaway LLM bills share the same root cause: a majority of traffic that doesn't need the most expensive model is going to it anyway. The single biggest fix is usually routing…Your LLM feature costs too much at production volume. W...Inference & ServingMediumPro previewFirst, stop calling the model at all where you don't need to. Most volume in most LLM backed systems doesn't actually need the LLM — caching identical or near identical requests,…Your long-form answers are grounded for two sentences and then invent specifics. You already retrieve on the question. What do you change?RAGMediumA strong answer identifies the structural cause: the information need for later sentences is not expressible from the initial question, meaning no amount of initial top k…Your LSH index passes the offline gate at 99% recall, b...Retrieval & EmbeddingsHardPro previewRecall and the number of candidates both rise with L. By increasing L to hit the recall target, the system is now reranking a massive percentage of the corpus on every query,…Your medical RAG system’s localization is wrong about 2...RAGVery HardPro previewA zero error bar is often unattainable in complex RAG systems. Instead of blocking all citations, implement a confidence based routing mechanism. By analyzing the failure…Your model correctly quotes a part number that cannot b...LLM FoundationsHardPro previewInduction heads enable this behavior by identifying the pattern [A][B]...[A] and predicting [B]. A one layer head can score on (ti, tj), but because the position to attend to is…Your model hits 90% on MMLU. How do you decide whether...EvaluationMediumPro previewMMLU is a quiz style benchmark that confirms a model can retrieve factual knowledge under standardized prompts. However, it does not predict how a model will perform on actual…Your model's confidence scores drive a routing decision...Training & Fine-tuningMediumPro previewCalibration, specifically — not just accuracy. A model can rank cases correctly relative to each other and still have probability values that don't mean what they claim to mean.…Your multimodal RAG returns the right building in the t...RAGMediumPro previewThe issue is likely that the pooling mechanism dilutes locally confined details by a factor of 1/R, causing the correct information to be outranked. A strong answer verifies that…Your multimodal RAG system cites a 40-page PDF report f...RAGEasyPro previewTreating the existence of a source document as equivalent to a valid citation is a mistake. In a 40 page document, a user cannot reasonably verify a specific claim without precise…Your multimodal retriever keeps returning the wrong top...EvaluationMediumPro previewThe issue stems from the contrastive objective used to train CLIP, which aligns the entire image with the entire caption. Because the loss function does not distinguish between…Your multimodal retriever never returns any images, eve...Retrieval & EmbeddingsMediumPro previewA strong diagnostic approach begins by pulling the raw image similarity scores for a known good query to compare them against the system's cutoff. It is common for global…Your new pipeline beats the baseline by 1.4 F1 points o...EvaluationMediumPro previewAggregate metrics can be misleading because they often mask significant wins and losses that cancel each other out. A simple significance test on the whole set confirms if the…Your offline eval score dropped 8 points after a routine deploy. What is the first thing you check?EvaluationEasyBefore investigating the embedding model or the LLM, you should recompute retrieval recall@k for both the old and new pipelines. Since the regression could originate in any stage…Your offline metrics improved but the online numbers di...EvaluationHardPro previewBecause offline evaluation measures the model; online outcomes measure the whole system, including the humans using it. Those are different things, and a gap between them is…Your one-shot RAG system confidently answers ‘George H....RAGMediumPro previewThe core problem is that the required information—who won the election following the dissolution of the Soviet Union—was never present in the original retrieved chunks. Because…Your p95 budget just dropped from 800 ms to 250 ms. You...LLMOps & ProductionHardPro previewWhile 25 tokens fits the latency budget, it provides a fabricated span that is barely more 'document shaped' than the original question, rendering the HyDE mechanism ineffective.…Your p95 time to first token is 1.1 seconds against an...Inference & ServingHardPro previewTo debug a TTFT latency breach (1.1s vs an 800ms SLO), avoid making blind optimizations. Decompose the end to end latency budget into its constituent components: network transit,…Your p99 budget is 1.2 s. The ML lead wants IRCoT with...LLMOps & ProductionVery HardPro previewA five step loop is mathematically incompatible with a 1.2s budget, as it would lead to a significant budget violation. The design should instead gate the loop so that it only…Your P99 TTFT spikes every few minutes on an otherwise...Inference & ServingHardPro previewA P99 TTFT spike in this context is typically caused by a KV eviction storm. When the decode batch fills available blocks, admission control pauses new requests. When a large…Your pairwise reranker returned A > B, B > C, and C > A...RAGHardPro previewGiven a cycle, quicksort and heapsort return a permutation determined by the comparison sequence rather than relevance. Cycles usually occur with near duplicates or equally…Your pass@1 improved by 4 points on HumanEval, but user...EvaluationHardPro previewThe gap exists because HumanEval problems are short, self contained, and have canonical test suites, whereas production code generation tasks involve existing codebases with…Your PDF pipeline works on single-column reports and pr...RAGMediumPro previewThe high confidence score indicates that the character level extraction is correct, but the document structure is being misinterpreted. Sorting lines by (y, x) coordinates causes…Your pipeline decomposes ‘Which novels are written by t...RAGMediumPro previewBefore concluding that the graph is missing data and initiating a costly re extraction, verify the schema alignment. Query expansion is designed specifically to handle these…Your pipeline prepends five 512-token chunks to every prompt and p50 latency is too high. Where is the time going, and what do you change first?Inference & ServingMediumA strong answer performs the arithmetic: 2,560 prefill tokens, 2N FLOPs per token, and approximately 287 ms on one A100 at 40% MFU. The primary goal is to keep the interface…Your pipeline retrieves all three fee components correc...RAGMediumPro previewBefore introducing complex modular frameworks, diagnose where the failure occurs. Because all three fee components are successfully retrieved, retrieval functions as expected; the…Your pipeline returns the right document at rank 40 and...RAGMediumPro previewA strong answer establishes the diagnosis before the fix: rank 40 means the document is in a candidate set of depth 100 and is not in the top 5 that reach the context, so R1 is…Your pipeline’s end-to-end accuracy dropped four points...LLMOps & ProductionHardPro previewWhen an end to end accuracy metric drops, the first move is to resist immediate action and instead perform a mathematical decomposition of the metric. By using the formula A = hc1…Your platform lead wants to delete the four probes and...LLMOps & ProductionHardPro previewThe proposal trades off two critical components: the self aware field's validity and the cost profile. A model's verbalized confidence is distinct from its internal activation,…Your PM wants to fine-tune your model on a random sampl...Training & Fine-tuningEasyPro preview"Clean the data, remove PII, dedupe it" is true but beside the point — it treats the problem as one of data hygiene when the real issue is distribution mismatch between what a…Your prefix cache has an 80% hit rate on a 4K shared sy...EvaluationVery HardPro previewTo quantify the impact, calculate the effective KV footprint. A hit sequence uses 0.78 GB (unique 1K KV), while a miss uses 3.9 GB (full 5K KV). With an 80% hit rate, the average…Your product team wants to remove citation markers to i...RAGHardPro previewThe conflict between user satisfaction and compliance is a false dichotomy. By decoupling the UI presentation from the underlying data, you can maintain the necessary attribution…Your production RAG system just had an incident where a...RAGHardPro previewA strong response begins by auditing two access surfaces: generator reachability and chunk level source identity. It is critical to recognize that hosted APIs often foreclose…Your prompt is format-fragile. You can fund one of: a 1...LLM FoundationsMediumPro previewBigger models and instruction tuned checkpoints primarily raise mean accuracy without necessarily reducing the spread of performance across different prompt renderings. Few shot…Your prompt optimizer reports a nine-point gain on the...EvaluationHardPro previewAt typical sample sizes, the standard error of a metric can be significant. Taking the best of many candidates inflates the apparent winner due to statistical noise. To repair…Your prototype performs 50k embeddings in 3ms, but the product requires 20 million. What breaks and how do you change the approach?Inference & ServingEasyScaling to 20 million embeddings increases the memory footprint significantly. Because the arithmetic intensity is only 0.5 FLOP per byte, the bottleneck becomes memory bandwidth…Your quality filter throws away 98% of your Common Craw...Data, Privacy & LegalHardPro previewTo increase usable data without additional crawling, you should employ rephrasing and task conversion. Rephrasing involves rewriting low quality documents to improve their…Your RAG assistant fails on multi-hop questions and the...RAGMediumPro previewBefore upgrading to a 70B model, one must analyze the query volume and the distribution of difficulty. The 70B model imposes a constant 8.75x cost increase on every query. A more…Your RAG assistant scores well on the offline set and d...EvaluationHardPro previewStart by checking the production logs to see if the gold passage was retrieved. If not, the issue is retrieval. If the gold passage is present, keep the context fixed and permute…Your RAG assistant scores well on the offline set and d...RAGHardPro previewWhen a RAG system performs well offline but degrades in production, the first step is to isolate the source of the error. You should check whether the gold passage exists within…Your RAG endpoint’s p50 is 1.3 seconds and product want...LLMOps & ProductionHardPro previewIn a RAG pipeline, the majority of the latency is usually consumed by the LLM's decode phase. If the p50 is 1.3 seconds, it is common to find that 91% of that time is spent on…Your RAG over PDF reports handles prose well and gets n...RAGHardPro previewWhen a RAG system fails on numerical data despite performing well on prose, the issue is typically rooted in the ingestion phase. You should inspect the retrieved chunks to see if…Your RAG over PDF reports handles prose well but gets n...RAGMediumPro previewDo not start by changing the embedding model or adding a reranker, as they cannot fix issues where the necessary context (column names) has been stripped away. Inspect the…Your RAG pipeline barely beats the closed-book baseline...RAGMediumPro previewWhen a RAG pipeline fails to significantly outperform a closed book baseline, it is often due to contamination where the benchmark's source corpus is already present in the…Your RAG system boosts documents by recency. A user com...RAGMediumPro previewA strong answer identifies the distinction between the retrieved document's metadata timestamp and the actual origin date of the claim being cited. Credibility laundering occurs…Your RAG system cites multiple credible sources for a query, yet the user wanted a different entity than the one retrieved. What is broken?RAGMediumCredibility and diversity are independent axes. A system can be highly credible but fail to provide coverage for ambiguous queries. Simply increasing the number of sources or the…Your RAG system hits a 2% hallucination rate on your be...Security & SafetyHardPro previewJudging a system's trustworthiness based on an aggregate hallucination rate is insufficient. The primary consideration must be the deployment context. If the RAG system is exposed…Your RAG system is asked to summarize a webpage, and th...Security & SafetyEasyPro previewThe presence of unexpected marketing messages in a summary suggests that the model processed hidden text within the source document. A browser would typically ignore this content,…Your RAG system is giving wrong answers in production....System DesignHardPro previewThe instinct is to blame the model, but that's almost always the wrong place to start. Work backward through the pipeline instead: first confirm the right document is actually…Your RAG system is less accurate than the base model on...RAGHardPro previewWhen a RAG system shows improved overall accuracy but decreased performance on common queries, you must partition the data to understand the underlying dynamics. By constructing a…Your RAG system nails fact-lookup questions but gives v...RAGMediumPro previewStandard RAG systems often struggle with summarization because they retrieve isolated chunks rather than a cohesive overview. By building a summary tree through recursive…Your RAG system's accuracy changes noticeably when you...LLM FoundationsHardPro previewThis is a documented, reproducible phenomenon, not measurement noise: LLMs are genuinely sensitive to surface level formatting choices — whether retrieved passages are separated…Your RAG system's answer-quality dashboards are green,...RAGHardPro previewIf an AI evaluator scores the output of an AI generator with no external anchor, the two share failure modes and drift together — confidence rises while quality falls, because the…Your reader is a vendor API with no fine-tuning. The re...RAGMediumPro previewInstead of concatenating passages or asking for a larger context window, compute the mixture sum of the probability distributions for each passage. This requires access to next…Your REALM-style run’s retrieval recall plateaus at ste...EvaluationHardPro previewWhen recall plateaus while LM loss improves, the retriever is no longer learning. This happens if the masking policy drifts toward tokens predictable from local context, causing…Your recall@50 is 0.58 and a teammate proposes query ex...Retrieval & EmbeddingsMediumPro previewA strong answer distinguishes between lexical, semantic, and signal based expansion families. It notes that since expansion creates a superset of documents, recall is guaranteed…Your recommendation model's outputs affect user behavio...Training & Fine-tuningHardPro previewThis is a real structural problem specific to recommendation and ranking systems, not a hypothetical edge case — it's usually called feedback loop bias or position bias, and it…Your recommender's click-through rate keeps hitting all...System DesignHardPro previewRising CTR feels like success, but it's measuring the wrong thing once your own model controls the exposure. Users can only click on what they're shown — if the model decides…Your report told the security team the generator copies...Security & SafetyMediumPro previewThe circuit predicted this behavior exactly, confirming the mechanism. The problem is that mechanism is not equivalent to warrant. To mitigate this, one must implement credibility…Your reranker gets replaced with a strictly more accura...RAGHardPro previewThe optimal context cap (k⋆) is derived from the width of the model's safe zones (primacy and recency), which is independent of the reranker's accuracy. Even with a better…Your reranker keeps scoring the same handful of documents against new queries all day, but nothing about that computation is cacheable. Why not, and what would you change?Inference & ServingMediumIn a bidirectional cross encoder, the query and document are processed together, meaning no document only artifact exists to store. By switching to a causal decoder reranker, you…Your reranker returns 10 candidates. The relevance scor...RAGMediumPro previewThe cliff heuristic is a standard approach for optimizing context length. When a reranker shows a sharp decline in relevance scores, it indicates that candidates beyond that point…Your reranking team says retrieval-stage metrics don’t...Retrieval & EmbeddingsHardPro previewThe reranker's effectiveness is bounded by the initial retrieval stage. If the retrieval system fails to include the ground truth document within its top k' results, the reranker…Your reranking team wants to raise k from 10 to 50 cand...System DesignHardPro previewThe conflict between recall and security should not be treated as a binary choice. By calculating the actual exposure risk, you can maintain the performance benefits of a larger…Your research lead wants to publish a claim that your f...EvaluationHardPro previewA 2 point difference on a 1,000 question set may fall within the noise floor, which for this size is often around 3.9 points for unpaired tests. However, since the systems are…Your retrieval index returns five documents for a factu...Security & SafetyEasyPro previewWhen multiple newly created sources suddenly agree on an unusual claim, it is a strong indicator of a coordinated poisoning attempt. Relying on the agreement of these sources…Your retrieval system’s MRR climbed from 0.62 to 0.81 a...EvaluationMediumPro previewMRR is a limited metric because it only considers the position of the first relevant document. An improvement in MRR does not guarantee an improvement in overall system quality.…Your retrieval team argues that as their recall improve...RAGVery HardPro previewThe retrieval team's premise is partially correct in terms of direction, but incomplete in system dynamics. Improving retrieval recall increases the rescue rate $g$ and decreases…Your retrieval team says recall@k is 92%, clean. Your g...EvaluationHardPro previewThe discrepancy arises because the generation team is evaluating against 'gold' context, which is not necessarily what the retrieval system actually provides to the generator in…Your retrieval trace shows every needed chunk in the to...RAGMediumPro previewBuilding a knowledge graph is a significant architectural commitment. A strong answer recognizes that the failure may be a simple relational issue. By decomposing the query into…Your retriever has perfect recall on documents about the entity named in the question, and the answer is still wrong. What is happening?RAGMediumIn bridge chain questions, the second piece of necessary information is logically dependent on the output of the first. Since the original query does not contain the entity needed…Your retriever is precise on two-entity, bidirectional...RAGVery HardPro previewDeeper BFS (Breadth First Search) directly fights the branching cost derivation, leading to unacceptable latency. The disagreement should be reframed: the goal is not deeper…Your retriever returns 40 chunks and you have a long-co...RAGHardPro previewNo. Attention over long contexts isn't uniform — models attend most reliably to the beginning and end of the context window, and evidence buried in the middle is measurably less…Your retriever returns a document on the right topic th...RAGMediumPro previewWhen a model is trained only on supporting contexts, it learns to copy answer shaped spans. If a retriever returns a topically relevant but factually incorrect document, the model…Your retriever’s recall@5 improved four points after fi...RAGMediumPro previewA strong answer identifies that the retriever and the generator are being optimized for different goals. The retriever is tuned to match human relevance labels, but the end to end…Your retriever’s top-5 documents are all above your rel...Retrieval & EmbeddingsEasyPro previewA weak answer proposes raising the relevance threshold or shrinking k, which fails to address the underlying defect. A strong answer immediately clarifies that relevance and…Your rewriter’s loss against the reference rewrites kee...EvaluationMediumPro previewThe model is optimizing for token level agreement with an arbitrary reference string, which does not guarantee that the resulting query will retrieve relevant documents. Because…Your RL-trained search agent hits the accuracy target a...AgentsMediumPro previewThe agent is behaving correctly according to its reward function, which lacks a penalty for search calls. To fix this, introduce a penalty term λn to the reward function. The…Your RLHF reward model score is going up every epoch bu...EvaluationMediumPro previewWhen reward scores rise while human quality drops, the policy has likely drifted into a distribution where the reward model is no longer accurate. To fix this, you can apply a KL…Your RLVR training curve is flat and reward isn’t impro...Training & Fine-tuningMediumPro previewA flat training curve often indicates that the problem set is not well calibrated. Before changing the optimizer or adding a PRM, you should re filter the problem set to ensure a…Your rule-based extractor reports 95% precision, but ha...EvaluationHardPro previewIf the graph is missing the path, no amount of reranking or generator improvement will fix the multi hop failures. You should measure recall against hand labeled sentences or an…Your search lead wants to retire BM25 for a dense bi-encoder to end vocabulary mismatch. On-call objects that head queries will regress. Thirty percent of traffic is exact part numbers. Adjudicate.Retrieval & EmbeddingsVery HardThe proposal to replace BM25 with a dense bi encoder must be scrutinized for its actual utility. While dense retrieval is effective at absorbing synonymy, it does not structurally…Your semantic query expansion raised recall@100 by six...Retrieval & EmbeddingsMediumPro previewSemantic expansion often suffers from polarity inversion because context prediction objectives (like those used in standard word embeddings) score terms based on substitutability…Your sensitivity ranking says Template 4 is best. How o...EvaluationHardPro previewDo not answer with vague adjectives. Instead, use the pairwise error rate formula to quantify performance. For example, at a correlation of r=0.7, the model is correct about 75%…Your similarity gate refuses 11.5% of questions that ha...RAGHardPro previewLowering the cutoff is a mistake because it trades away the unanswerable queries you were successfully catching. The issue is that the softmax objective does not constrain the…Your support bot’s corpus is 500 stable knowledge-base...Inference & ServingMediumPro previewThe redundancy stems from the fact that a retrieved chunk’s key and value vectors are deterministic functions of only that chunk’s own tokens. Because these are recomputed on…Your support-bot index was built once at launch. Six mo...RAGEasyPro previewTreating indexing as a one time batch job is a common architectural failure. The solution is to build a continuous ingestion pipeline that allows for streaming updates to the…Your system eval shows a 5% win rate gain over the prev...EvaluationHardPro previewTo disentangle the impact of the model checkpoint versus the prompt engineering, you should run a 2x2 factorial experiment on a held out slice of traffic. This involves testing…Your system is asked who wrote the 1970 hit song an art...RAGMediumPro previewThe system is currently treating the query as a single hop retrieval. To answer correctly, the system must recognize the bridge (the song title) and perform a second retrieval…Your system prompt says never discuss pricing outside a...Security & SafetyEasyPro previewTreating a jailbreak as a simple wording bug is a mistake. Jailbreaking exploits the model's tendency to follow instructions, effectively overriding the system prompt's…Your tables run 40 rows by 12 columns and the encoder h...System DesignHardPro previewWith a 512 token limit and 36 tokens required per row (12 columns 3 tokens/cell), only 12 of the 40 rows fit. To handle this, you should shard the table into row groups while…Your target bucket improved by 15 points on n = 100, but your control bucket - queries the new component should never touch - also moved by 4 points. Do you ship?EvaluationHardIt is critical to distinguish between signal and noise. When the control bucket shows movement, it suggests that the observed changes might be due to sampling variance. Performing…Your team already runs GraphRAG over the product taxono...RAGVery HardPro previewThe request to reuse the existing GraphRAG pipeline on raw customer call transcripts ignores the fundamental difference in data volatility and extraction complexity. The current…Your team applied 5,000 sequential ROME edits to a 6B m...Training & Fine-tuningHardPro previewThe degradation in MMLU despite high edit efficacy stems from the linear algebra limits of sequential rank one updates. A ROME edit modifies a model layer by computing a rank one…Your team applied 5,000 sequential ROME edits to a 6B m...LLM FoundationsHardPro previewThe mechanism behind this failure is that each ROME edit is a rank one update. The total accumulated update cannot exceed the rank limit of the model's layers (min(d, dmlp) =…Your team disagrees: one engineer wants a rotated, time...Retrieval & EmbeddingsHardPro previewThe decision should be driven by the specific needs of the workload rather than a single architectural philosophy. Correlated but non causal events do not require the overhead of…Your team hash-sharded a single vector index across twe...Data, Privacy & LegalVery HardPro previewThe core issue is treating compliance as a trade off against technical performance or cost. Because data residency requirements are non negotiable, the current sharding strategy…Your team is debating a sprint on hierarchical chunk-me...LLMOps & ProductionMediumPro previewWhen facing a faithfulness regression, it is best to prioritize low effort, high impact interventions. Infrastructure level changes, such as hierarchical chunk merging, are…Your team is deciding between always retrieving and bui...RAGHardPro previewThe 'below closed book' finding suggests that retrieval can sometimes hurt performance if the model is forced to process irrelevant or distracting context. A router can mitigate…Your team is split on how to cut grounding failures: on...RAGVery HardPro previewBefore choosing, you must measure what fraction of queries fail grounding and why. Widening the beam only helps if failures are due to insufficient candidate diversity; if the…Your team is split: one engineer wants to migrate the e...System DesignVery HardPro previewThe correct approach is to avoid an abstract philosophical choice and instead perform a quantitative analysis. By segmenting the corpus, you can apply the document as image index…Your team replaced a chain-of-thought prompt with a four-stage pipeline and accuracy went down. What do you look at first?LLMOps & ProductionMediumWhen a pipeline change degrades performance, you must isolate the failure point. Check if each stage is producing valid output and whether the correct candidate is being filtered…Your team shipped a per-source vote cap as the poisonin...Security & SafetyHardPro previewA per source vote cap only protects against a single source flooding the system with near duplicates; it does not account for coordinated, multi source attacks where each source…Your team ships a new reranker and macro nDCG improves...EvaluationMediumPro previewRelying on a single aggregate number is insufficient to establish causality. By defining slices based on the expected influence of the reranker, you create a framework to verify…Your team ships caption-based unified fusion to control...System DesignHardPro previewThis is a multi granularity noise correspondence problem. Replacing captioning with raw patch attention everywhere is inefficient, as it increases fusion compute by 5–55x for all…Your team spent two weeks tuning the context template f...LLMOps & ProductionVery HardPro previewIt is important to distinguish between the artifact and the asset when migrating between models. The tuned template string is essentially a fitted parameter of the original model;…Your team wants 8-bit scalar quantization to cut the RA...Retrieval & EmbeddingsVery HardPro previewHNSW Flat at 3,332 bytes per vector is 666 GB. Using 8 bit scalar quantization reduces this to 1,028 bytes (206 GB), and switching to IVF reduces it further to 776 bytes (155 GB).…Your team wants every stage collapsed into one LLM call...System DesignVery HardPro previewThe auditability requirement does not necessitate separate round trips. By structuring the single LLM call to output a schema validated record for each sub process, you achieve…Your team wants to add a truthfulness check to the pull...LLMOps & ProductionEasyPro previewBefore integrating a rigorous factuality check into a CI pipeline, you must verify if the infrastructure can support it. Weekly benchmarks are often sized for low frequency use;…Your team wants to enable FP8 training end-to-end on H100s to improve throughput. What is your rollout plan and what failure modes do you specifically instrument?Training & Fine-tuningHardThe rollout plan involves: (1) starting with FP8 only in feed forward matmuls, keeping attention and layer norm in BF16/FP32; (2) instrumenting per tensor amax history to detect…Your team wants to raise top-k retrieval from 5 to 20 b...RAGHardPro previewThe tension between retrieval recall and end to end accuracy is a common trade off in RAG systems. Increasing the top k parameter from 5 to 20 will mathematically improve…Your team wants to replace the human relevance panel wi...EvaluationMediumPro previewWhile replacing human panels with LLM judges offers significant cost and latency benefits, it introduces the risk of systematic bias or inaccuracy. You must validate the judge's…Your team wants to rip out PPO and replace it with DPO...Training & Fine-tuningHardPro previewThe case for DPO is real: it removes an entire training stage (the reward model), removes the instability of on policy RL optimization, and derives its objective in closed form…Your team wants to set a clinical assistant’s abstentio...EvaluationHardPro previewConfidence thresholds must be grounded in the economic or safety related costs of the system's decisions. In a clinical setting, the cost of a wrong answer (Cw) is extremely high,…Your team wants to ship a single regex-based content fi...Security & SafetyMediumPro previewA static regex based filter is insufficient because it is easily bypassed by paraphrasing, similar to how blocklists fail against evolving prompt injection. The effectiveness of…Your team wants to split the agent into a planner, a co...AgentsHardPro previewThe human org analogy is the trap. You split a company into a planner, a coder and a QA reviewer because no single human holds the whole stack in their head — that's a limitation…Your team wants to upgrade from an 8k-context model to...Inference & ServingMediumPro previewSimply increasing the context window from 8k to 128k does not automatically resolve a lost in the middle regression. A larger window represents increased capacity, but it does not…Your team’s uncompressed HNSW cluster for this corpus n...Retrieval & EmbeddingsHardPro previewThe justification relies on showing that memory heavy nodes are a function of the data footprint. By applying compression techniques like IVF PQ, you can significantly reduce the…Your team’s uncompressed HNSW cluster for this corpus n...Retrieval & EmbeddingsHardPro previewThe core issue is separating the axes of corpus size and query load. Because the corpus size is unchanged, the memory driven shard count cannot be reduced without compromising the…Your teammate says the queue is a hack - use gradient c...Retrieval & EmbeddingsHardPro previewWhile gradient checkpointing allows for larger batches and exact gradients, it is computationally expensive. It requires recomputing forward passes, which does not scale well…Your teammate wants to machine-translate all 20M docume...Retrieval & EmbeddingsVery HardPro previewThe primary constraint is that the query cannot be translated online due to the 150 ms latency budget. By translating the corpus offline and indexing both versions in a shared…Your tech lead wants to delete the retrieval service: t...System DesignHardPro previewThe lead's proposal ignores the physical memory requirements: 800k tokens at 131 kB results in 105 GB of KV cache, which exceeds the 80 GB capacity of modern GPUs. Furthermore,…Your three-way complexity classifier is 65% accurate. D...Inference & ServingHardPro previewYou must evaluate the cost of different error directions. Over routing a simple query to an expensive path wastes latency but still returns a correct answer. Under routing a…Your toxicity classifier was trained on Wikipedia talk-page comments. How does that affect its performance on Reddit or Twitter-style text?Security & SafetyHardDomain shift is the central challenge when moving from Wikipedia talk pages to social media. Because Wikipedia text is generally more formal and less abbreviated than social…Your training loss suddenly spikes to NaN partway throu...Training & Fine-tuningHardPro previewSoftmax and attention score overflow in low precision is the single most common culprit. Attention scores are large magnitude dot products before the softmax normalizes them, and…Your training pipeline automatically halts and flags a...Training & Fine-tuningHardPro previewParameter delta feels like a natural convergence signal — if the weights have stopped moving, training must be done — but in high dimensional, non convex optimization it's…Your Triton softmax runs at 1.9 ms but torch.compile ac...Inference & ServingVery HardPro previewA naive softmax implementation often uses two passes: one to find the maximum and another to compute the exponential and normalization. This results in redundant HBM reads. To…Your vector database is exfiltrated but the document st...Security & SafetyMediumPro previewThe blast radius is effectively the entire corpus. Because the container holds significant information, an attacker can perform an inversion attack, which is essentially a search…Your vector index no longer fits in RAM on one machine....Inference & ServingMediumPro previewReplication is ineffective for capacity issues because it copies the full index to every node, leaving the per node memory footprint unchanged. Sharding is the only mechanism that…Your vector index was built once for a static corpus, b...Retrieval & EmbeddingsHardPro previewMost approximate nearest neighbor index structures were designed around a build once, query many assumption — an HNSW graph's layered connectivity or an IVF index's cluster…Your video-RAG index embeds every frame at 1 fps for ho...Retrieval & EmbeddingsMediumPro previewEmbedding every frame at a fixed rate is inefficient because consecutive frames in a video are often near duplicate vectors. By implementing scene cut detection, you can index a…Z-loss controls the output softmax normalizer. But cros...LLM FoundationsHardPro previewWhile cross entropy backpropagates through the softmax, it primarily pushes the correct logit up relative to others, without constraining the absolute scale of the logit vector. Z…μP is derived for SGD on a deep linear network. Why does the Adam rule differ?Training & Fine-tuningVery HardBecause Adam normalizes gradient elements, the effective operator norm of the weight update becomes O(η√nlnl 1) regardless of the raw gradient scale. When you re derive the update…μP is usually validated for width scaling with fixed de...Training & Fine-tuningHardPro previewWhen scaling depth, activations tend to grow at a rate of O(√L) across L layers. To maintain the stability conditions required by μP, production implementations must pair width…
← All questions
RAGMedium· System Design· Resource Allocation
What is the recommended process for choosing between RA...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansChoosing the right RAG architecture requires evaluating the specific resources available to the deployment. The primary gating factors are whether you have stable source identity and whether you have the labeled training data and infrastructure required for fine-tuning.
One should walk the decision tree based on these constraints. Choosing a method simply because it has the most impressive benchmark number is a mistake if the deployment lacks the necessary resources that the benchmark assumed.