YoVDO

Test Time Compute: Sampling and Chain of Thought Techniques

Offered By: Trelis Research via YouTube

Tags

Sampling Courses Inference Courses OpenAI Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore advanced inference techniques for large language models in this comprehensive 55-minute video lecture. Dive into the differences between training and test-time compute, and learn why investing more resources in inference can be beneficial. Discover how to use verifiers for selecting optimal answers and explore methods for critiquing responses during inference. Gain a deep understanding of temperature in sampling, including when to use zero or non-zero values, and explore alternatives like beam search, top-p, top-k, and min-p sampling. Learn to implement chain-of-thought reasoning and see practical demonstrations using datasets like GSM8K and HotpotQA. Follow along with notebook run-throughs, learn to use VLLM for efficient batching, and discover techniques for scoring and grading responses. Analyze the results of various sampling and chain-of-thought configurations through detailed charts, and receive expert recommendations on optimizing these parameters for different tasks.

Syllabus

OpenAI o1 type techniques for scaling test time compute
Video Overview temperature, chain of thought
Training compute versus test time compute
Why spend more compute on test time / inference?
Using verifiers to select the best answers
Exploring and critiquing/verifying answers during inference
Understanding Temperature for sampling
Should you set temperature to zero?
Beam search
Problems with setting a non-zero temperature
Using top p, top k, min p, and best of
Recap on choosing temperature for sampling
How to implement chain of thought
Setup for notebook run-through on gsm8k and hotpot qa
Using sampling and chain of thought on hotpotqa and gsm8k
Running vllm in a Jupyter notebook allows for batching
Scoring / Grading with OpenAI gpt4o-mini using regex enforcement
Multi-threading the scoring / grading for speed
Running the dataset multiple times to get the mean and mean absolute deviation of correct answers
Controlling sampling parameters min p, top p, top k, beam search, temperature
Running temperature / sampling ablations WITHOUT chain of thought
Chain of Thought Setup
Running ablations WITH chain of thought
GSM8K Results Charts
Hotpot QA Results Charts
Recommendations on sampling, temperature and chain of thought
Video resources


Taught by

Trelis Research

Related Courses

Building Document Intelligence Applications with Azure Applied AI and Azure Cognitive Services
Microsoft via YouTube
Unlocking the Power of OpenAI for Startups - Microsoft for Startups
Microsoft via YouTube
AI Show - Ignite Recap: Arc-Enabled ML, Language Services, and OpenAI
Microsoft via YouTube
Building Intelligent Applications with World-Class AI
Microsoft via YouTube
Build an AI Image Generator with OpenAI & Node.js
Traversy Media via YouTube