Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 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

Packages

Contributors

Languages