Skip to content

Instantly share code, notes, and snippets.

@luatil
luatil / example_chat_template.py
Created October 19, 2025 03:41
Example of passing tools to chat template in gpt-oss
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "jinja2",
# "transformers",
# ]
# ///
from transformers import AutoTokenizer
@luatil
luatil / elixir.nix
Created July 29, 2024 00:55
Sample nix shell elixir config
# elixir.nix
{pkgs ? import <nixpkgs> {}}:
with pkgs;
let
inherit (lib) optional optionals;
e27 = beam.packages.erlang_27;
basePackages = [
e27.elixir_1_16