Skip to content

Instantly share code, notes, and snippets.

View randomvariable's full-sized avatar
⬇️
Downstream. I may be slow to respond.

Naadir Jeewa randomvariable

⬇️
Downstream. I may be slow to respond.
View GitHub Profile
diff -Naur linux-4.19.138/drivers/net/vmxnet3/vmxnet3_drv.c ../SOURCES/linux-5.8/drivers/net/vmxnet3/vmxnet3_drv.c
--- linux-4.19.138/drivers/net/vmxnet3/vmxnet3_drv.c 2020-09-18 02:49:39.826513351 +0100
+++ ../SOURCES/linux-5.8/drivers/net/vmxnet3/vmxnet3_drv.c 2020-09-18 02:58:22.467376972 +0100
@@ -535,8 +535,8 @@
}
sz = tq->tx_ring.size * sizeof(tq->buf_info[0]);
- tq->buf_info = dma_zalloc_coherent(&adapter->pdev->dev, sz,
- &tq->buf_info_pa, GFP_KERNEL);
+ tq->buf_info = dma_alloc_coherent(&adapter->pdev->dev, sz,
@randomvariable
randomvariable / goldpinger.yaml
Created September 21, 2020 22:51
goldpinger.yaml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: goldpinger-serviceaccount
namespace: default
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
@randomvariable
randomvariable / template.yaml
Last active July 13, 2021 12:03
injected template
apiVersion: v1
data: ${CNI_RESOURCES}
kind: ConfigMap
metadata:
name: cni-${CLUSTER_NAME}-crs-0
namespace: default
---
apiVersion: addons.cluster.x-k8s.io/v1alpha4
kind: ClusterResourceSet
metadata:
#!/bin/bash
declare -A seenNamespaces
declare -A containerInfo
# Ensure ipcs command is available
ipcsPath=$(which ipcs)
if [ -z "$ipcsPath" ]; then
echo "ipcs command could not be found"
exit
@randomvariable
randomvariable / MFT-covid.md
Last active June 27, 2026 10:21
Did the Moral Foundations Theory Group Publish a Post-COVID Retrospective on the Purity Foundation? A Slop Report

Did the Moral Foundations Theory Group Publish a Post-COVID Retrospective on the Purity Foundation? A Slop Report

TL;DR

  • No. The original Moral Foundations Theory (MFT) authors—Jonathan Haidt and Jesse Graham—have not published a formal scholarly retrospective or reassessment of the Purity/Sanctity foundation in light of COVID-19. The closest thing on record is an informal, unpublished remark by Haidt in a 2024 Conversations with Tyler interview, where—asked directly whether COVID changed his view—he argued the pandemic "wasn't about germs" but about government control, so it neither cleanly validated nor revised his purity work.
  • The MFT group did publish a major theory revision in this window—Atari, Haidt, Graham et al. (2023), "Morality Beyond the WEIRD," JPSP (the MFQ-2, which splits Fairness into Equality and Proportionality)—but it is a cross-cultural measurement overhaul built on 25 populations, not a COVID/purity retrospective. The Liberty/Oppression foundation was added ea
@randomvariable
randomvariable / laguna-s-2.1-vllm-tp2-1M.yaml
Last active July 24, 2026 22:48
Laguna-S-2.1-NVFP4 on DGX Spark (GB10): 2-node TP=2 vLLM at native 1M context over ConnectX-7 RoCE (ray backend), DFlash spec decoding + FlashInfer B12X NVFP4 MoE, fronted by llm-d EPP. Includes GB10 UMA wedge-safety rationale (why ray not mp, no VLLM_SKIP_INIT_MEMORY_CHECK).
# Laguna-S-2.1-NVFP4 on NVIDIA DGX Spark (GB10, sm_121a, arm64)
# 2-node TENSOR-PARALLEL (TP=2) vLLM serving at NATIVE 1M context, one engine
# sharded across two GB10 nodes over ConnectX-7 RoCE, with DFlash speculative
# decoding and the FlashInfer B12X NVFP4 MoE backend. Fronted by an llm-d
# Endpoint Picker (EPP) constrained to rank0.
#
# ─────────────────────────────────────────────────────────────────────────────
# WHY TP=2 (vs 2 independent replicas):
# One vLLM engine tensor-sharded across 2 DGX Spark nodes (1 GPU/node) gives a
# single UNIFIED KV pool and shards the weights (~35 GiB/node vs ~70 GiB on a
@randomvariable
randomvariable / Qwen3.8-Flash-Next: serving the 100 GB per-layer embedding table.md
Created August 30, 2026 21:18
Qwen3.8-Flash-Next: serving the 100 GB per-layer embedding table

Qwen3.8-Flash-Next: serving the 100 GB per-layer embedding table

Identity

The model the community calls Qwen3.8-Flash-Next lands in transformers as model_type = "qwen4_exp", under src/transformers/models/qwen4_exp/, with @auto_docstring(checkpoint="Qwen/Qwen4-Exp"). It is a VLM (Qwen4ExpForConditionalGeneration) over a hybrid text stack: linear-attention layers, MoE, hyper-connections, and Qwen sparse attention (QSA) on the layers that indexer_n_heads enables.

@randomvariable
randomvariable / 2026-09-24_iommu-arm64_changes_6.17_to_7.0.md
Last active September 24, 2026 21:52
GB10 (NVIDIA DGX Spark) arm64 IOMMU notes v6.17 to v7.0: explainer, probed applicability, tuning knobs, passthrough, durable settings, changelog subset

GB10 (NVIDIA DGX Spark) arm64 IOMMU notes: v6.17 → v7.0

Audience: someone running inference on a GB10 (DGX Spark) who wants to know what changed in the arm64 IOMMU stack between v6.17 and v7.0, what it means for that part, and what to set. §1 is a plain-language explainer for the stock 4 KiB kernel. §§2–6 are measured on one GB10 host. §§7–15 are the arm64 IOMMU changelog the GB10 analysis depends on, reduced to the parts that reach this hardware.

Source of truth: local Linus tree at ~/go/src/git.kernel.org/pub/scm/linux (HEAD = 93f51579e7df, tag v7.3-rc4, 2026-09-20). Every commit hash below was resolved

@randomvariable
randomvariable / dgx-spark-page-sizes-and-thp.md
Created October 2, 2026 10:14
DGX Spark: 64 KiB pages, transparent huge pages, and measured allocator behaviour

DGX Spark: 64 KiB pages, THP and what the measurements establish

This note separates three changes that are often discussed together: kernel base-page size, huge-page policy and memory reserves. They affect different parts of Linux memory management. They must be measured separately.

Measurements below come from four GB10 hosts running two live, two-host vLLM groups on 2 October 2026. Host labels are anonymous. No isolated inference benchmark was completed.

The short version

@randomvariable
randomvariable / qwen38-flash-next-decode-eager-analysis.md
Last active October 11, 2026 03:32
Qwen3.8 Flash Next on LiL/vLLM: why the MTP decode step is host-bound, and what LMCache does and does not do to it

Qwen3.8 Flash Next on LiL/vLLM: why the decode step is host-bound, and what LMCache does and does not do to it

Date: 2026-10-07 Container under analysis: ghcr.io/local-inference-lab/vllm@sha256:629d097ce4f3ac2ceea86bffb174fec94f5c7fe9bb0a6dbc70e9a05e30b9e54a Reported symptom: decode throughput on RTX PRO 6000 Blackwell PCIe under WSL2 is far below the published recipe numbers; an Nsight CUDA timeline shows large GPU-idle holes between CUDA-graph replays in the MTP verifier loop.

Status of claims: everything marked verified was produced by running the shipped image or by reading the source files that the shipped image contains. The per-step timing table is the end user's own capture and is not independently reproduced here — no SM120 device was available on the analysis host.