Skip to content

datanizing/oreilly-open-source-reasoning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 vllm and unsloth. I recommend using a different kernel 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
  • datasets
  • flash-attn
  • ipython
  • jupyter
  • kernels
  • liger-kernel
  • peft
  • transformers
  • triton
  • trl

flash-attn should be installed with the option --no-build-isolation.

For unsloth and vllm, you can use:

  • datasets
  • ipykernel
  • jupyter
  • transformers
  • trl
  • unsloth
  • vllm

For MacOS notebooks, the following packages are recommended:

  • jupyter
  • mlx-lm

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

Running different models on MacOS

Finetuning with GRPO

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors