Skip to content

Instantly share code, notes, and snippets.

@ulises-c
ulises-c / QUICK_START.md
Last active September 22, 2026 20:43
Self-hosting a RuneScape: Dragonwilds dedicated server on Linux — setup, the documented gotchas the official guide gets wrong, and systemd/monitoring/backup wiring

Dragonwilds — quick start

The full guide lives in ulises-c/Computer-Setup — along with the scripts, systemd units and compose file it refers to. This gist is just an easy way to share it and may drift out of date; the repo is authoritative.

Copy-paste path. Full detail and the reasoning behind each step: README.md.

1. Get your player ID

@ulises-c
ulises-c / README.md
Last active August 21, 2026 21:01
Reviving the Tehuti TN9710P (1fc9:4027, Marvell 88X3310) on mainline Linux: firmware loading + MACTYPE + rate matching fixes for marvell10g and tn40xx

Reviving the Tehuti TN9710P (1fc9:4027) on mainline Linux

A five-layer fix that takes the TN9710P 10GBase-T NIC (PCI 1fc9:4027, TN4010 "Bordeaux" MAC + Marvell 88X3310 PHY) from "kernel oops on a dead interface" to a working, rate-matched link on an unmodified distro kernel — with three small patches and one firmware file.

Status: VERIFIED WORKING — 1fc9:4027 / subsystem 1fc9:3015, kernel 7.0.0-29-generic, Ubuntu 24.04.3 LTS, 2026-08-21.

TL;DR

The TN9710P ships its 88X3310 PHY with an empty firmware flash: the PHY waits for a firmware download over XMDIO that mainline marvell10g never performs, so the card is dead on every stock kernel. The fix combines:

@ulises-c
ulises-c / omlx-context-findings.md
Last active August 18, 2026 00:24
Extending context on oMLX: Qwen3.8-27B-4bit on a 36GB M5 Max — the GPU memory cap beat KV quantization 5:1, plus seven ways local-LLM benchmarking lies to you

Extending context on oMLX: Qwen3.8-27B-4bit on a 36 GB M5 Max

Measured findings from a session spent pushing context length on a local oMLX server. Headline: the GPU memory cap was worth ~5x more than KV cache quantization, and most of the effort I spent tuning KV bits was tuning the wrong knob.

Every number below is a measured single-shot prefill of a real prompt that returned a parseable answer — not a configured ctx-size.

@ulises-c
ulises-c / Qwen3.5-9B-MTP-MLX.md
Last active July 9, 2026 18:45
Qwen3.5 / Qwen3.6 MTP on MLX — quantize the drafter, and fix the 'tuple object has no attribute hidden_states' error caused by MLX quants (mlx-community, lmstudio-community, ...) dropping the target's native MTP head

Qwen3.5 / Qwen3.6 MTP on MLX

Getting Qwen3.5 / Qwen3.6 Multi-Token Prediction (MTP) speculative decoding working on MLX (via mlx-vlm / oMLX). Covers both pieces — the drafter quant and the target model, which is the part that actually bites you at runtime.

Started with Qwen3.5-9B, but the same behavior reproduces on Qwen3.6-27B (mlx, 4-bit) and the Qwen3.6-35B-A3B MoE. It's a model-family-wide issue, not a one-off.

TL;DR

  • Quantizing the MTP drafter is easy and works (script below).
  • But MTP won't run until the target model also keeps its native mtp.* weights. Most stock MLX quants — including mlx-community and lmstudio-community — silently drop them, which produces this runtime error:
@ulises-c
ulises-c / GFX1201_RDNA4_TRAINING.md
Last active May 31, 2026 05:13
Training LLMs on AMD gfx1201 (RDNA4 / Radeon AI PRO R9700) under ROCm 7.2 — what works, what costs you vs NVIDIA/CUDA, and why

Training LLMs on AMD gfx1201 (RDNA 4 / Radeon AI PRO R9700): What Works, What Costs You, and Why

A field report on QLoRA / LoRA fine-tuning of modern transformer and hybrid (Mamba + attention) LLMs on AMD gfx1201 (RDNA 4, Wave32) under ROCm 7.2, framed against the NVIDIA/CUDA baseline where most of these capabilities are free.

Source repo: github.com/ulises-c/csen-346 — the canonical home of this report, the companion docs/GPU_SUPPORT.md, scripts/patch_fla_rocm.sh, and the full investigation history (#100 · #79 ·

@ulises-c
ulises-c / rag_demo.ipynb
Last active May 15, 2026 21:40
RAG_Demo.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.