Skip to content

acsresearch/base-models-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Base models, hands-on 🏴‍☠️

A ~90-minute workshop on working with LLM base models — the raw next-token predictors behind chat models — using the ACS base-model platform. You'll go from "what even is a base model" to reading a model's activations and steering it to talk like a pirate, all over a plain HTTP API. No GPU, no local setup.

▶️ Start here (Google Colab)

Open In Colab

  1. Click the badge — the notebook opens in Colab (nothing to install).
  2. Get access: at a live workshop, use the invite link your instructor shares — it's instant. Otherwise sign up at infra.acsresearch.org: during the private beta an admin reviews new sign-ups and emails you once you're approved. Either way, copy your API key when it's shown (just once).
  3. Run the cells top to bottom; fill in the ones marked ✏️ EXERCISE — we do those together.

What's here

File For
workshop_student.ipynb participants — exercise cells left as TODOs
workshop_solutions.ipynb instructor — every cell filled in
build.py source of truth — regenerates both notebooks (python build.py)

What you'll do

  1. Why base models — simulator view, no persona, the distribution as the object of study
  2. Talking to one — completions, sampling (temperature), logprobs, scoring text with echo + prompt_logprobs
  3. Reading its mind — pull the residual-stream activations over the API
  4. Steering it — build a "pirate" direction (difference of means) and add it back mid-generation
  5. Finale — build a steering vector for a style you choose
  6. 🎁 Bonus (optional / take-home) — negative steering, a steering-free logprob probe, and open-ended ideas to explore on your own

Learn more

Editing: change build.py, run python build.py, commit both .ipynb.

About

Hands-on workshop: working with LLM base models on the ACS platform (Colab)

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors