Skip to content

Instantly share code, notes, and snippets.

View tristandruyen's full-sized avatar
⌨️
Moving slow & fixing things.

Tristan Druyen tristandruyen

⌨️
Moving slow & fixing things.
View GitHub Profile
@tristandruyen
tristandruyen / scp-via-ssh.fish
Last active October 24, 2024 11:52
scp-via-ssh-shell Useful when you have only a minimal setup booted like an emergency initramfs with no proper scp/sftp support. Allows recursively copying files via "raw" ssh from a remote to your local system. On the remote host, just ls, cat & find are required for everything to work.
#!/usr/bin/env fish
# Check if all required arguments are provided
set min_args 3
set max_args 4
if test (count $argv) -lt $min_args; or test (count $argv) -gt $max_args
echo "Usage: "(status filename)" <user@host> <remote_dir> <local_dir> [--dry-run]"
exit 1
end
@tristandruyen
tristandruyen / a-rescue-iso.nix
Last active October 17, 2024 20:33
NixOS Rescue Iso with mainline kernel
{
lib,
pkgs,
inputs,
...
}: {
imports = [
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix"
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
];
@tristandruyen
tristandruyen / .envrc
Last active August 26, 2024 18:13
Rust Devshell
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
fi
use flake
@tristandruyen
tristandruyen / calibration_data_v5_rc.txt
Last active June 10, 2025 02:08 — forked from bartowski1182/calibration_datav3.txt
Adapted from bartowskis v3, added more languages for sparse moe models like qwen 57B-A14B. Calibration data provided by Dampf, combines his own efforts on top of Kalomaze's. Used for calibrating GGUF imatrix files
===========
; A072257: a(n) = ((6*n-17)*4^n - 1)/3.
; -6,-15,-27,21,597,4437,25941,136533,677205,3233109,15029589,68506965,307582293,1364546901,5995058517,26127717717,113100805461,486762960213,2084490794325,8887718991189,37749899220309,159795689903445,674367131702613,2838206015165781,11915774014084437,49914895870022997,208666782734832981,870695927958295893,3626898899909039445,15084056351939581269,62642068416972019029,259791645704742851925,1076060070966390510933,4451814236455238456661,18397552756179659478357,75951394266153460520277,313250310030353132508501,1290780171984369691743573,5314236415389307413812565,21861408571364544242603349,89863485924687435319825749,369125350255666774676952405,1515187027250335232298407253,6215490613912013463556019541,25480932475290743991673640277,104399609979733736516492809557,427501960233217988265164232021,1749621922190004121857428903253,7156944013788545162616803513685,29261601355268295351215565657429,119581706621529640207855669040469,488468031287944396043396301804885,1994436944359
{
"basics": {
"name": "Tristan Antoon Druyen",
"label": "Moving slow & fixing things",
"image": "",
"email": "[email protected]",
"url": "https://me.vault81.de",
"summary": "",
"location": {
"countryCode": "DE",
#!/usr/bin/env fish
# Invoke like './autoquant-hf-bf16.fish meta-llama/Meta-Llama-3-8B-Instruct'
# TODOS:
# TODO Just a rough outline of automatic script atm, mostly example commands, no real automation done, needs params etc
# TODO Create hf repo automatically using CLI
# TODO Select good quant types
# TODO Decide repo name template (IQ-Imatrix, iMat.GGUF and more seem to be in use)
# TODO Parallelize upload while still quanting
@tristandruyen
tristandruyen / keybase.md
Created July 16, 2019 08:27
Keybase verification

Keybase proof

I hereby claim:

  • I am tristandruyen on github.
  • I am tristandruyen (https://keybase.io/tristandruyen) on keybase.
  • I have a public key ASBUFddtECkJRKy_6v_GiY1vgEcLrTgccqrAYZ_KKmWimQo

To claim this, I am signing this object:

{
"chart": {
"type": "area",
"panning": false,
"spacingTop": 0,
"spacingRight": 20,
"spacingBottom": 20,
"height": 250
},
"title": {