Technical notes, mostly on LLM inference.

by kkkzoz
Latest doc
KKZ-TN-164
Entries
164
Latest entry
2026-12-03
Activity / 12 mo
  1. /164
    2026-12-03

    Tailscale 与 Shadowrocket 的路由冲突

    Mac 上同时开着 Tailscale 和 Shadowrocket,SSH 连 a6000 一直超时,修好路由表后浏览器又返回 503。记录排查路由表和系统代理的过程。

    DevNetwork
  2. /163
    2026-12-02

    代理环境下的 DNS 解析

    HTTP、SOCKS5h、Fake-IP 和 Sniffing 模式下 DNS 分别在哪一跳解析,为什么国内会出现 DNS 污染、出口在美国时怎么避免连回新加坡,以及实验室两跳 v2rayA 拓扑里的实际走向。

    DevNetwork
  3. /162
    2026-12-01

    系统代理、REDIRECT、TPROXY 与 TUN

    从 v2rayA 的一段透明代理说明出发,看看系统代理、Linux 的 REDIRECT / TPROXY / TUN 和 macOS 的 Network Extension 各自怎么接管流量、为什么有的不支持 UDP,以及 Xray 和 v2ray-core 的来历。

    DevNetwork
  4. /161
    2026-11-30

    NFS 中的 UID/GID 映射

    为什么两台机器的用户编号不一致时,NFS 挂载会显示错误的所有者或拒绝访问,以及服务端能在哪些环节映射身份:squashing、NFSv4 名称映射和 Kerberos。

    DevLinux
  5. /160
    2026-11-24

    Binary-Coding Quantization

    How BCQ writes a weight as a sum of signed scales, how greedy and alternating fits choose the scales, how fast its error falls with each bit, how it compares with uniform quantization, and how a kernel computes with bit planes.

    QuantizationLLM-Inference
  6. /159
    2026-11-23

    评测结果的标准误、z 值与配对检验

    在相同的 1940 道选择题上,两种 2-bit 量化格式的准确率差距不到 0.75 个百分点。本文从重跑直觉出发,依次讲清标准误、z 值、配对差值,以及这种规模的评测最小能稳定检出多大的差距。

    MathQuantization
  7. /158
    2026-11-19

    Decode GEMV on the CPU

    Decode GEMV on a Core Ultra 9, an M4 Pro and a dual-socket Xeon: how close each gets to its memory bandwidth, and what holds it back.

    LLM-InferenceHardwareggml
  8. /157
    2026-11-16

    CUDA Hardware Hierarchy

    Where the threads of one CUDA launch run on an RTX A6000, where their data lives, and why some memory access patterns are slow.

    GPUCUDAHardware
  9. /156
    2026-11-04

    vLLM Hybrid KV Cache

    Why vLLM's "GPU KV cache size" for Qwen3.8-27B is not a count of token slots and changes with max_model_len: GDN state, attention pages and one shared block pool.

    vLLMLLM-Inference
  10. /155
    2026-11-04

    TorchInductor Pipeline 与算子融合

    跟着一个 10 个算子的例子走完 TorchInductor 的四个阶段:Graph Preprocessing、Lowering、Scheduling、Codegen,重点是 Scheduler 怎么用 can_fuse、score_fusion 和 fuse_nodes 决定融合,并与 TVM 的 FuseOps 对比。

    ML Compilerstorch.compile