[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fuzoowi3gozhr":3},{"slug":4,"category":5,"publishedAt":6,"titleZh":7,"titleEn":8,"summaryZh":9,"summaryEn":10,"models":11,"hardwares":15,"bodyZh":19,"bodyEn":20,"sourceName":21,"sourceUrl":22,"updatedAt":23},"inkling-rocm-context-ub-compute-buffer-2026-11-26","RUNTIME","2026-11-25T23:10:02.546Z","Inkling显存不够，先查计算缓冲：社区把上下文与ubatch拆开测","Inkling memory failures: a community probe separates context and ubatch costs","11月25日合并的Strix Halo报告在llama.cpp b12653上拆测计算缓冲，强调超过32768上下文的数字属于外推。模型权重装得下，不代表运行内存够。","A Strix Halo report merged November 25 probes compute-buffer scaling on llama.cpp b12653. Values above 32,768 context are extrapolations. Fitting weights alone does not prove that the full workload fits.",[12],{"id":13,"name":14},100,"Inkling-2-Mini",[16],{"id":17,"name":18},87,"AMD Strix Halo (Radeon 8060S)","11月25日，nix-amd-ai合并PR #379，针对Inkling-2-Mini在ROCm后端出现的大计算缓冲做了专项探测。报告使用Strix Halo（gfx1151）与llama.cpp b12653，区分权重、上下文和微批次的开销。它是一份社区自报，本站未独立复现；不能把单机结果直接套给全部AMD显卡。\n\n1. 装得下权重，不等于装得下运行过程。作者在4096至32768上下文内改变配置，报告计算缓冲随上下文及-ub增长；开启Flash Attention、-ub 512时，每个上下文token约对应99.0 KiB计算缓冲，-ub 2048时约为396 KiB。这是指定构建与架构下的缓冲观测，不是模型文件大小，也不是整机实测显存占用。\n\n2. 超过测试范围的值必须另标。报告没有运行超过32768的探测；更大上下文对应的内存数字来自外推。原始求助缺少明确上下文、-ub和后端，作者列出不止一种可能解释，不能据此替求助者认定唯一故障原因。文档还保留一条早期Vulkan加载与外推不一致的记录，没有把它藏起来。\n\n3. 自动上下文不等于安全上下文。报告检查的服务默认允许自动选取上下文，而计算预留并未按上下文同步增长。对部署者更有用的动作，是显式限制上下文并固定微批次，再记录后端、Flash Attention和缓冲日志；不要直接抄模型标称的最大窗口。文档给出的更大窗口配置仍含外推，不能理解为已验收方案。\n\n同日llama.cpp #33053只是为Inkling图接入indexed-bias路径，正文明确当时尚无后端支持，仍回退稠密路径。合入接口不等于已经解决所有显存问题。能否省内存，要回到实际构建、后端和加载日志。\n\n来源：https:\u002F\u002Fgithub.com\u002Fnoamsto\u002Fnix-amd-ai\u002Fpull\u002F379\n上游状态：https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp\u002Fpull\u002F33053","On November 25, nix-amd-ai merged PR #379 investigating large compute buffers for Inkling-2-Mini on ROCm. The report specifies Strix Halo gfx1151 and llama.cpp b12653. This is one community report, not an AraoAI reproduction or a result for every AMD GPU.\n\n1. Fitting weights is not the same as fitting execution. Across contexts from 4,096 to 32,768, the author reports compute-buffer growth with context and microbatch size. With Flash Attention enabled, the observed slope is 99.0 KiB per context token at -ub 512 and 396 KiB at -ub 2048. These are buffer observations for a particular architecture and build, not file sizes or measured total device-memory usage.\n\n2. Values beyond the tested range must remain extrapolations. No probe above context 32,768 was run. The original failure report does not identify context, microbatch or backend, so multiple hypothetical configurations fit its symptoms. The author also retains an earlier large-context Vulkan load that contradicts the projection instead of suppressing it.\n\n3. Automatic context selection does not guarantee safe allocation. In the inspected service configuration, automatic context selection and compute-memory reserve do not scale together. Explicitly cap context, pin microbatch size and retain backend, Flash Attention and allocation logs. A model advertised with a large trained window is not proof that the chosen runtime can allocate it. Larger suggested configurations in this report still include projections, not validated recipes.\n\nUpstream PR #33053 merged the same day only enables an indexed-bias graph path. Its description explicitly states that no backend supported it at that point and execution still falls back to a dense path. An interface merge is not a universal memory fix; check the actual build and backend.\n\nSources: https:\u002F\u002Fgithub.com\u002Fnoamsto\u002Fnix-amd-ai\u002Fpull\u002F379\nhttps:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp\u002Fpull\u002F33053","nix-amd-ai \u002F llama.cpp","https:\u002F\u002Fgithub.com\u002Fnoamsto\u002Fnix-amd-ai\u002Fpull\u002F379","2026-11-25T23:10:02.547Z"]