Skip to content

About

Material for the O'Reilly course "Open Source Reasoning Language Models"

Resources

Stars

15 stars

Watchers

1 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

O'Reilly Live Course: Open Source Reasoning Language Models

Repository for the course with all material.

Presentation

The slides contain additional background and theroretical information.

Python setup

uv

If possible, work with uv. Clone the repository and run uv sync. However, there are some challenges:

  • Most of the notebooks work with pyproject.toml.
  • Currently, the lastest transformers is not compatible with both SGLang and unsloth. I recommend using different kernels for that.
  • Some notebooks are specifically suited for MacOS using the mlx-lm package. It is only useful to install that with a Mac.

anaconda

Create an venv or conda environment and install the following packages for the normal notebooks:

  • accelerate
  • causal-conv1d
  • datasets
  • flash-linear-attention
  • ipython
  • jupyter
  • kernels
  • liger-kernel
  • math-verify
  • openai
  • openrouter
  • peft
  • torch
  • triton
  • trl

For unsloth you just need to install unsloth and vllm.

For SGLang, you just have to install sglang or use uvx run sglang.

For MacOS notebooks, the following packages are recommended:

  • jupyter
  • mlx-lm
  • mlx-vlm
  • mlx-optiq
  • openai
  • openrouter

I have not provided a requirements.txt as dependencies tend to get outdated faster that I can update.

runpod

You can also use runpod. uv is already preinstalled there. Of course, the MacOS notebooks won't work there.

Notebooks

You can either try to run the notebooks directly or try to follow how I run them and use it as a documentation (or run it later).

Running different models with GPUs or Macs directly in the notebook

Running models with platform-specific external server software

Running models platform-independently with llama.cpp

Testing different models with OpenRouter

Finetuning with GRPO

About

Material for the O'Reilly course "Open Source Reasoning Language Models"

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages