~/talk

LLM Inference with Few-Shot Prompting and Chain of Thought

slides:none on file

Combines few-shot prompting with chain-of-thought and shows a working inference pipeline built on Hugging Face models and OpenAI-style APIs, running Falcon 7B and Llama 3-style checkpoints with adjustable params. Demonstrates a poetry generator and a multi-step shopping cost calculator that uses self-consistency majority vote across 10 reasoning traces and temperature 0.95, max_new_tokens 300 to boost creativity. Finds few-shot + CoT reduces obvious errors but a wrong intermediate step still cascades, so majority-vote and step-level validation are necessary.

AI-written summary · about

  1. 0:00Introduction to LLM prompting
  2. 3:19Transformer architecture basics
  3. 8:45Positional encoding and attention
  4. 13:00Prompt engineering fundamentals
  5. 16:14Zero-shot vs few-shot learning
  6. 18:51Chain of Thought prompting
  7. 21:21Multi-step reasoning demo
  8. 23:33Poetry generation with constraints
  9. 24:40Cost calculation example
  10. 25:46Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.