Skip to content

Instantly share code, notes, and snippets.

View wojtess's full-sized avatar
💭
Do a flip

wojtess

💭
Do a flip
View GitHub Profile
@vgel
vgel / r1.py
Last active June 1, 2025 08:44
script to run deepseek-r1 with a min-thinking-tokens parameter, replacing </think> with a random continuation string to extend the model's chain of thought
import argparse
import random
import sys
from transformers import AutoModelForCausalLM, AutoTokenizer, DynamicCache
import torch
parser = argparse.ArgumentParser()
parser.add_argument("question", type=str)
parser.add_argument(
@elktros
elktros / Raspberry-Pi-Pico-USB-CMakeLists.txt
Created March 22, 2021 12:56
Raspberry Pi Pico USB Serial CMakeLists
if (TARGET tinyusb_device)
add_executable(hello_usb
hello_usb.c
)
# Pull in our pico_stdlib which aggregates commonly used features
target_link_libraries(hello_usb pico_stdlib)
# enable usb output, disable uart output
pico_enable_stdio_usb(hello_usb 1)