Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

LLMs for Engineers

Free · sign in to start and track progress

1 · Inside the transformer

  • 1Tokens and embeddings
  • 2Attention, step by step
  • 3The transformer block

2 · How models are trained

  • 4Pretraining and scaling laws
  • 5Post-training an assistant

3 · Running models in production

  • 6Sampling and hallucination
  • 7Context windows, KV cache and caching
  • 8Reasoning models and extended thinking
  • 9Choosing and comparing models

    Exercise answers

    • Answer: Run a model bake-off on title-register extraction
    • Answer: Add an open-weight model to the bake-off
CapstoneChoose a model for document extractionReference implementation

Module 3 · Running models in production · Lesson 9

Choosing and comparing models

How to read benchmarks critically, compare models on cost per completed task, latency and data constraints, decide between frontier APIs and open-weight models, and keep the decision current as new models ship.

70 min 2 videos 3 exercises 6-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvGet an OpenRouter keyOpenRouter or a local model?Local models with Ollama

By the end of this lesson you can

  • Explain what major benchmarks measure and the main ways benchmark scores mislead (saturation, contamination, leaderboard gaming, harness differences)
  • Compute cost per completed task, including the cost of failures, and use it to compare models
  • List the non-quality constraints (latency, context, data retention and residency, rate limits) that rule models in or out
  • Weigh frontier APIs against open-weight models for a given workload
  • Design a repeatable model-selection process built on your own eval

On this page

  • What actually matters
  • Reading benchmarks
  • How scores mislead
  • Cost per completed task
  • Worked example
  • Frontier APIs or open-weight models?
  • A repeatable selection process
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01What actually matters
  2. 02Reading benchmarks
  3. 03Cost per completed task
  4. 04Frontier APIs or open-weight models?
  5. 05A repeatable selection process
  6. 06Summary

Sources & further reading

  • Chatbot Arena: An Open Platform for Evaluating LLMs by Human PreferencePaper · Chiang et al. · UC Berkeley (LMSYS) · 2024How pairwise human votes become a leaderboard, and the statistics behind it.
  • The Leaderboard IllusionPaper · Singh et al. · Cohere Labs and others · 2025Documents how undisclosed private testing and selective reporting distort the most popular leaderboard. Read before trusting any single ranking.
  • SWE-bench: Can Language Models Resolve Real-World GitHub Issues?Paper · Jimenez et al. · Princeton · 2024The benchmark design most agentic coding results are reported on; a model for building task-based evals from real work.
  • GPQA: A Graduate-Level Google-Proof Q&A BenchmarkPaper · Rein et al. · NYU · 2023Hard expert-written science questions; a standard reasoning benchmark and a case study in building questions that resist look-up.
  • Measuring AI Ability to Complete Long Software TasksPaper · Kwa et al. · METR · 2025Measures capability as the length of tasks (in human time) a model completes with 50% success, a more intuitive scale for agent work.
  • Holistic Evaluation of Language Models (HELM)Paper · Liang et al. · Stanford CRFM · 2022The argument for evaluating many metrics (accuracy, calibration, robustness, efficiency) across many scenarios instead of one number.
  • Optimizing for cost and intelligence (Claude docs)Docs · AnthropicMeasured guidance on cost per completed task, effort sweeps, caching and multi-model strategies, with a step-by-step selection method. The best single read for this lesson.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 6 more sections
  • 3 hands-on exercises
  • A 6-question quiz
  • Progress, quiz scores and bookmarks