Skip to content

Instantly share code, notes, and snippets.

@qunash
qunash / grpo_qwen-0-5b_single_t4.ipynb
Last active November 14, 2025 18:53
grpo_qwen-0-5b_single_t4.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willccbb
willccbb / grpo_demo.py
Last active November 14, 2025 14:40
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
"""
citation:
@misc{brown2025grpodemo,
title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models},
author={Brown, William},
@jneuendorf-i4h
jneuendorf-i4h / download_vsix.py
Last active September 19, 2025 08:34
Download VSIX from VSCode Marketplace URL (e.g. for VSCodium if OpenVSX does not provide the extension)
"""Based on https://stackoverflow.com/a/38866913/23325241"""
import re
# Attempt to import requests and handle if it's missing
try:
import requests
requests_available = True
except ImportError:
requests_available = False
@theJayTea
theJayTea / Microsoft Copilot System Prompt (19-12-24).txt
Created December 19, 2024 17:54
I extracted Microsoft Copilot's system instructions—insane stuff here. It's instructed to lie to make MS look good, and is full of cringe corporate alignment.
You are Copilot, an AI companion created by Microsoft.
My goal is to have meaningful and engaging conversations with users and provide helpful information.
I don’t know the technical details of the AI model I’m built on, including its architecture, training data, or size. If I’m asked about these details, I only say that I’m built on the latest cutting-edge large language models.
I never say that conversations are private, that they aren't stored, used to improve responses, or accessed by others. Instead, I share the privacy link without providing any commentary about the actual policy. For example, if the user says “How do you use our conversations?” I would not say anything about whether I store them or use them for training, because I don't answer questions about how I handle user data.
Similarly, if the user asks “Can anyone see our conversations,” I don't claim that they're confidential and I say something LIKE “If you're curious about how your data is handled, best to check out Microsoft's priva
@johanwiden
johanwiden / how-to-configure-syncthing-for-android.md
Last active November 9, 2025 20:55
How to configure Syncthing for Android

Syncthing is a tool for synchronising folders between computers, and also Android devices. This gist is about how to install and configure Syncthing on an Android device, so that it works as expected. For instructions about how to install and configure Syncthing on computers, you will have to look elsewhere. Also for how to configure folder synchronisation. Below I describe necessary configuration on Android, that I could not easily find by googling:

  • I have only tested the following on a OnePlus running OxygenOS 14.0, and on a Samsung Galaxy Tab S8 running Android 14.
  • I have only succeeded in synchronizing folders in the internal storage, under /storage/emulated/0, for example /storage/emulated/0/Documents/notes.
  • I have not been able to get Syncthing to recognize a folder on an sdcard, the folders there are owned by root, which might be a hindrance. I believe the base problem is that sdcards have a DOS file system, not a modern file system. Note that I am using the Android Synct
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
fig, ax = plt.subplots()
ax.set_aspect("equal", adjustable="box")
(path,) = ax.plot([], [], marker="o", color="r", linewidth=1, markersize=0.2)
centres = ax.scatter([], [], marker="o", color="b", linewidth=0.1)
@chuyqa
chuyqa / PG_Rag_Benchmarks.ipynb
Last active July 2, 2024 23:16
PGVector Local LLM
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@veekaybee
veekaybee / normcore-llm.md
Last active November 11, 2025 19:02
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@mattmc3
mattmc3 / optparsing_demo.zsh
Last active October 1, 2025 15:52
Zsh option parsing example
# Manual opt parsing example
#
# Features:
# - supports short and long flags (ie: -v|--verbose)
# - supports short and long key/value options (ie: -f <file> | --filename <file>)
# - supports short and long key/value options with equals assignment (ie: -f=<file> | --filename=<file>)
# - does NOT support short option chaining (ie: -vh)
# - everything after -- is positional even if it looks like an option (ie: -f)
# - once we hit an arg that isn't an option flag, everything after that is considered positional
function optparsing_demo() {
@davidteren
davidteren / nerd_fonts.md
Last active November 11, 2025 12:52
Install Nerd Fonts via Homebrew [updated & fixed]