nbxtensor 0.1.9__tar.gz → 0.1.12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (918) hide show
  1. nbxtensor-0.1.12/CHANGELOG.md +917 -0
  2. nbxtensor-0.1.12/PKG-INFO +550 -0
  3. nbxtensor-0.1.12/README.md +527 -0
  4. nbxtensor-0.1.12/docs/API.md +4046 -0
  5. nbxtensor-0.1.12/docs/device_keys.txt +62 -0
  6. nbxtensor-0.1.12/docs/kernels_provenance.md +126 -0
  7. nbxtensor-0.1.12/docs/tensor-cores-through-linear-layouts.md +86 -0
  8. nbxtensor-0.1.12/pyproject.toml +45 -0
  9. nbxtensor-0.1.12/src/nbxtensor/__init__.py +17 -0
  10. nbxtensor-0.1.12/src/nbxtensor/backend/c_compiler.py +122 -0
  11. nbxtensor-0.1.12/src/nbxtensor/backend/compile_bound.py +203 -0
  12. nbxtensor-0.1.12/src/nbxtensor/backend/cuda_profile.py +269 -0
  13. nbxtensor-0.1.12/src/nbxtensor/backend/devices/amd/cdna.yml +235 -0
  14. nbxtensor-0.1.12/src/nbxtensor/backend/devices/amd/cdna2.yml +235 -0
  15. nbxtensor-0.1.12/src/nbxtensor/backend/devices/amd/cdna3.yml +233 -0
  16. nbxtensor-0.1.12/src/nbxtensor/backend/devices/amd/cdna4.yml +224 -0
  17. nbxtensor-0.1.12/src/nbxtensor/backend/devices/amd/rdna3.yml +225 -0
  18. nbxtensor-0.1.12/src/nbxtensor/backend/devices/amd/rdna4.yml +225 -0
  19. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m1.yml +273 -0
  20. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +273 -0
  21. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +273 -0
  22. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +273 -0
  23. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m2.yml +273 -0
  24. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +273 -0
  25. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +273 -0
  26. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +273 -0
  27. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m3.yml +273 -0
  28. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +273 -0
  29. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +273 -0
  30. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +273 -0
  31. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m4.yml +273 -0
  32. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +273 -0
  33. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +318 -0
  34. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m5.yml +276 -0
  35. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +276 -0
  36. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +276 -0
  37. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +276 -0
  38. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_m6.yml +276 -0
  39. nbxtensor-0.1.12/src/nbxtensor/backend/devices/apple/apple_silicon.yml +270 -0
  40. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/arl_h.yml +214 -0
  41. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/arl_s.yml +216 -0
  42. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/bmg.yml +210 -0
  43. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/dg2.yml +210 -0
  44. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/lnl.yml +210 -0
  45. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/mtl.yml +213 -0
  46. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/ptl_h.yml +213 -0
  47. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/ptl_u.yml +213 -0
  48. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/pvc.yml +210 -0
  49. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/wcl.yml +212 -0
  50. nbxtensor-0.1.12/src/nbxtensor/backend/devices/intel/xe_lp.yml +218 -0
  51. nbxtensor-0.1.12/src/nbxtensor/backend/devices/nvidia/ada.yml +50 -0
  52. nbxtensor-0.1.12/src/nbxtensor/backend/devices/nvidia/ampere.yml +233 -0
  53. nbxtensor-0.1.12/src/nbxtensor/backend/devices/nvidia/blackwell.yml +59 -0
  54. nbxtensor-0.1.12/src/nbxtensor/backend/devices/nvidia/blackwell_consumer.yml +47 -0
  55. nbxtensor-0.1.12/src/nbxtensor/backend/devices/nvidia/hopper.yml +220 -0
  56. nbxtensor-0.1.12/src/nbxtensor/backend/devices/nvidia/maxwell.yml +49 -0
  57. nbxtensor-0.1.12/src/nbxtensor/backend/devices/nvidia/pascal.yml +49 -0
  58. nbxtensor-0.1.12/src/nbxtensor/backend/devices/nvidia/turing.yml +50 -0
  59. nbxtensor-0.1.12/src/nbxtensor/backend/devices/nvidia/volta.yml +424 -0
  60. nbxtensor-0.1.12/src/nbxtensor/backend/faults.py +185 -0
  61. nbxtensor-0.1.12/src/nbxtensor/backend/frozen_plan.py +796 -0
  62. nbxtensor-0.1.12/src/nbxtensor/backend/host_measure.py +46 -0
  63. nbxtensor-0.1.12/src/nbxtensor/backend/install_help.py +260 -0
  64. nbxtensor-0.1.12/src/nbxtensor/backend/launcher.py +2690 -0
  65. nbxtensor-0.1.12/src/nbxtensor/backend/metal_device.py +1479 -0
  66. nbxtensor-0.1.12/src/nbxtensor/backend/metal_dispatch.py +289 -0
  67. nbxtensor-0.1.12/src/nbxtensor/backend/replay_graph.py +390 -0
  68. nbxtensor-0.1.12/src/nbxtensor/backend/triton_floor.py +106 -0
  69. nbxtensor-0.1.12/src/nbxtensor/device.py +151 -0
  70. nbxtensor-0.1.12/src/nbxtensor/dtype/operands.py +158 -0
  71. nbxtensor-0.1.12/src/nbxtensor/interop/handoff.py +32 -0
  72. nbxtensor-0.1.12/src/nbxtensor/io/read_rate.py +256 -0
  73. nbxtensor-0.1.12/src/nbxtensor/io/reader.py +253 -0
  74. nbxtensor-0.1.12/src/nbxtensor/io/safetensors.py +576 -0
  75. nbxtensor-0.1.12/src/nbxtensor/memory/__init__.py +205 -0
  76. nbxtensor-0.1.12/src/nbxtensor/memory/allocator.py +2076 -0
  77. nbxtensor-0.1.12/src/nbxtensor/memory/chunk_rule.py +164 -0
  78. nbxtensor-0.1.12/src/nbxtensor/memory/chunk_rule.yml +21 -0
  79. nbxtensor-0.1.12/src/nbxtensor/memory/guarded.py +117 -0
  80. nbxtensor-0.1.12/src/nbxtensor/memory/memory_pool.py +307 -0
  81. nbxtensor-0.1.12/src/nbxtensor/memory/metal.py +150 -0
  82. nbxtensor-0.1.12/src/nbxtensor/memory/paged_kv.py +674 -0
  83. nbxtensor-0.1.12/src/nbxtensor/memory/pinned_pool.py +312 -0
  84. nbxtensor-0.1.12/src/nbxtensor/memory/pointer_tables.py +367 -0
  85. nbxtensor-0.1.12/src/nbxtensor/memory/pool.py +537 -0
  86. nbxtensor-0.1.12/src/nbxtensor/memory/streams.py +247 -0
  87. nbxtensor-0.1.12/src/nbxtensor/memory/tied.py +314 -0
  88. nbxtensor-0.1.12/src/nbxtensor/memory/trace_replay.py +198 -0
  89. nbxtensor-0.1.12/src/nbxtensor/memory/vmm.py +224 -0
  90. nbxtensor-0.1.12/src/nbxtensor/ops/_common.py +36 -0
  91. nbxtensor-0.1.12/src/nbxtensor/ops/_configs.py +1005 -0
  92. nbxtensor-0.1.12/src/nbxtensor/ops/_cost.py +292 -0
  93. nbxtensor-0.1.12/src/nbxtensor/ops/_launch_seam.py +12 -0
  94. nbxtensor-0.1.12/src/nbxtensor/ops/abs.py +22 -0
  95. nbxtensor-0.1.12/src/nbxtensor/ops/adaptive_avg_pool2d.py +206 -0
  96. nbxtensor-0.1.12/src/nbxtensor/ops/add.py +123 -0
  97. nbxtensor-0.1.12/src/nbxtensor/ops/addcdiv.py +40 -0
  98. nbxtensor-0.1.12/src/nbxtensor/ops/addcmul.py +40 -0
  99. nbxtensor-0.1.12/src/nbxtensor/ops/addmv_op.py +68 -0
  100. nbxtensor-0.1.12/src/nbxtensor/ops/addr.py +72 -0
  101. nbxtensor-0.1.12/src/nbxtensor/ops/all_reduce.py +87 -0
  102. nbxtensor-0.1.12/src/nbxtensor/ops/amax.py +41 -0
  103. nbxtensor-0.1.12/src/nbxtensor/ops/any_reduce.py +87 -0
  104. nbxtensor-0.1.12/src/nbxtensor/ops/arange_op.py +38 -0
  105. nbxtensor-0.1.12/src/nbxtensor/ops/argmax.py +111 -0
  106. nbxtensor-0.1.12/src/nbxtensor/ops/argmin.py +97 -0
  107. nbxtensor-0.1.12/src/nbxtensor/ops/atan2.py +76 -0
  108. nbxtensor-0.1.12/src/nbxtensor/ops/attention_wrappers.py +1769 -0
  109. nbxtensor-0.1.12/src/nbxtensor/ops/autotune_cache.py +568 -0
  110. nbxtensor-0.1.12/src/nbxtensor/ops/autotune_certified.py +1736 -0
  111. nbxtensor-0.1.12/src/nbxtensor/ops/autotune_harness.py +1116 -0
  112. nbxtensor-0.1.12/src/nbxtensor/ops/avg_pool2d.py +77 -0
  113. nbxtensor-0.1.12/src/nbxtensor/ops/baddbmm_op.py +136 -0
  114. nbxtensor-0.1.12/src/nbxtensor/ops/batch_norm.py +167 -0
  115. nbxtensor-0.1.12/src/nbxtensor/ops/binary_strided.py +215 -0
  116. nbxtensor-0.1.12/src/nbxtensor/ops/bitwise_and.py +34 -0
  117. nbxtensor-0.1.12/src/nbxtensor/ops/bitwise_left_shift.py +59 -0
  118. nbxtensor-0.1.12/src/nbxtensor/ops/bitwise_not.py +32 -0
  119. nbxtensor-0.1.12/src/nbxtensor/ops/bitwise_or.py +34 -0
  120. nbxtensor-0.1.12/src/nbxtensor/ops/bitwise_right_shift.py +59 -0
  121. nbxtensor-0.1.12/src/nbxtensor/ops/bucketize.py +38 -0
  122. nbxtensor-0.1.12/src/nbxtensor/ops/cat_op.py +136 -0
  123. nbxtensor-0.1.12/src/nbxtensor/ops/celu.py +31 -0
  124. nbxtensor-0.1.12/src/nbxtensor/ops/clamp.py +32 -0
  125. nbxtensor-0.1.12/src/nbxtensor/ops/clamp_min.py +30 -0
  126. nbxtensor-0.1.12/src/nbxtensor/ops/conv2d.py +316 -0
  127. nbxtensor-0.1.12/src/nbxtensor/ops/conv2d_m8n8k4.py +167 -0
  128. nbxtensor-0.1.12/src/nbxtensor/ops/conv_depthwise2d.py +155 -0
  129. nbxtensor-0.1.12/src/nbxtensor/ops/conv_transpose2d.py +209 -0
  130. nbxtensor-0.1.12/src/nbxtensor/ops/conv_wrappers.py +1505 -0
  131. nbxtensor-0.1.12/src/nbxtensor/ops/copy.py +23 -0
  132. nbxtensor-0.1.12/src/nbxtensor/ops/copy_op.py +47 -0
  133. nbxtensor-0.1.12/src/nbxtensor/ops/cos.py +22 -0
  134. nbxtensor-0.1.12/src/nbxtensor/ops/count_nonzero.py +68 -0
  135. nbxtensor-0.1.12/src/nbxtensor/ops/cross_entropy.py +71 -0
  136. nbxtensor-0.1.12/src/nbxtensor/ops/cummax.py +113 -0
  137. nbxtensor-0.1.12/src/nbxtensor/ops/cummin.py +109 -0
  138. nbxtensor-0.1.12/src/nbxtensor/ops/cumsum.py +248 -0
  139. nbxtensor-0.1.12/src/nbxtensor/ops/decode_attn_vec.py +163 -0
  140. nbxtensor-0.1.12/src/nbxtensor/ops/depthwise_conv2d.py +133 -0
  141. nbxtensor-0.1.12/src/nbxtensor/ops/dequant_gemv.py +191 -0
  142. nbxtensor-0.1.12/src/nbxtensor/ops/dft.py +114 -0
  143. nbxtensor-0.1.12/src/nbxtensor/ops/dispatch.py +1240 -0
  144. nbxtensor-0.1.12/src/nbxtensor/ops/div.py +87 -0
  145. nbxtensor-0.1.12/src/nbxtensor/ops/dot_op.py +71 -0
  146. nbxtensor-0.1.12/src/nbxtensor/ops/dropout.py +28 -0
  147. nbxtensor-0.1.12/src/nbxtensor/ops/dtype_convert.py +47 -0
  148. nbxtensor-0.1.12/src/nbxtensor/ops/elementwise_launch.py +146 -0
  149. nbxtensor-0.1.12/src/nbxtensor/ops/elementwise_wrappers.py +2317 -0
  150. nbxtensor-0.1.12/src/nbxtensor/ops/elu.py +28 -0
  151. nbxtensor-0.1.12/src/nbxtensor/ops/embedding.py +73 -0
  152. nbxtensor-0.1.12/src/nbxtensor/ops/eq.py +41 -0
  153. nbxtensor-0.1.12/src/nbxtensor/ops/erf.py +23 -0
  154. nbxtensor-0.1.12/src/nbxtensor/ops/ew_canary.py +21 -0
  155. nbxtensor-0.1.12/src/nbxtensor/ops/ew_proof.py +542 -0
  156. nbxtensor-0.1.12/src/nbxtensor/ops/ew_proof_child.py +593 -0
  157. nbxtensor-0.1.12/src/nbxtensor/ops/ew_synthetic.py +639 -0
  158. nbxtensor-0.1.12/src/nbxtensor/ops/ew_tile.py +124 -0
  159. nbxtensor-0.1.12/src/nbxtensor/ops/exp.py +22 -0
  160. nbxtensor-0.1.12/src/nbxtensor/ops/exp2.py +26 -0
  161. nbxtensor-0.1.12/src/nbxtensor/ops/fft_op.py +216 -0
  162. nbxtensor-0.1.12/src/nbxtensor/ops/fill_op.py +28 -0
  163. nbxtensor-0.1.12/src/nbxtensor/ops/fixed_order.py +59 -0
  164. nbxtensor-0.1.12/src/nbxtensor/ops/flash_attention.py +311 -0
  165. nbxtensor-0.1.12/src/nbxtensor/ops/flash_attention_m8n8k4.py +386 -0
  166. nbxtensor-0.1.12/src/nbxtensor/ops/flash_decode.py +79 -0
  167. nbxtensor-0.1.12/src/nbxtensor/ops/flip_op.py +88 -0
  168. nbxtensor-0.1.12/src/nbxtensor/ops/floor.py +98 -0
  169. nbxtensor-0.1.12/src/nbxtensor/ops/full_op.py +25 -0
  170. nbxtensor-0.1.12/src/nbxtensor/ops/fused_moe.py +451 -0
  171. nbxtensor-0.1.12/src/nbxtensor/ops/fused_moe_m8n8k4.py +101 -0
  172. nbxtensor-0.1.12/src/nbxtensor/ops/gated_delta_rule.py +264 -0
  173. nbxtensor-0.1.12/src/nbxtensor/ops/gated_delta_rule_chunked.py +459 -0
  174. nbxtensor-0.1.12/src/nbxtensor/ops/gather_op.py +131 -0
  175. nbxtensor-0.1.12/src/nbxtensor/ops/ge.py +41 -0
  176. nbxtensor-0.1.12/src/nbxtensor/ops/gelu.py +36 -0
  177. nbxtensor-0.1.12/src/nbxtensor/ops/gemv_vec.py +93 -0
  178. nbxtensor-0.1.12/src/nbxtensor/ops/glu.py +51 -0
  179. nbxtensor-0.1.12/src/nbxtensor/ops/grid_sampler.py +146 -0
  180. nbxtensor-0.1.12/src/nbxtensor/ops/group_norm_tiled.py +68 -0
  181. nbxtensor-0.1.12/src/nbxtensor/ops/groupnorm.py +124 -0
  182. nbxtensor-0.1.12/src/nbxtensor/ops/gt.py +41 -0
  183. nbxtensor-0.1.12/src/nbxtensor/ops/hardsigmoid.py +19 -0
  184. nbxtensor-0.1.12/src/nbxtensor/ops/hardswish.py +20 -0
  185. nbxtensor-0.1.12/src/nbxtensor/ops/im2col.py +58 -0
  186. nbxtensor-0.1.12/src/nbxtensor/ops/index_add.py +131 -0
  187. nbxtensor-0.1.12/src/nbxtensor/ops/index_put_op.py +118 -0
  188. nbxtensor-0.1.12/src/nbxtensor/ops/index_select.py +152 -0
  189. nbxtensor-0.1.12/src/nbxtensor/ops/index_wrappers.py +780 -0
  190. nbxtensor-0.1.12/src/nbxtensor/ops/isfinite.py +28 -0
  191. nbxtensor-0.1.12/src/nbxtensor/ops/isinf.py +28 -0
  192. nbxtensor-0.1.12/src/nbxtensor/ops/isnan.py +26 -0
  193. nbxtensor-0.1.12/src/nbxtensor/ops/launch_keys.py +1167 -0
  194. nbxtensor-0.1.12/src/nbxtensor/ops/layernorm.py +83 -0
  195. nbxtensor-0.1.12/src/nbxtensor/ops/le.py +47 -0
  196. nbxtensor-0.1.12/src/nbxtensor/ops/leaky_relu.py +27 -0
  197. nbxtensor-0.1.12/src/nbxtensor/ops/lerp.py +90 -0
  198. nbxtensor-0.1.12/src/nbxtensor/ops/linalg_wrappers.py +1392 -0
  199. nbxtensor-0.1.12/src/nbxtensor/ops/linspace_op.py +51 -0
  200. nbxtensor-0.1.12/src/nbxtensor/ops/log.py +22 -0
  201. nbxtensor-0.1.12/src/nbxtensor/ops/log_sigmoid.py +27 -0
  202. nbxtensor-0.1.12/src/nbxtensor/ops/logical_and.py +34 -0
  203. nbxtensor-0.1.12/src/nbxtensor/ops/logical_not.py +32 -0
  204. nbxtensor-0.1.12/src/nbxtensor/ops/logical_or.py +34 -0
  205. nbxtensor-0.1.12/src/nbxtensor/ops/logical_xor.py +45 -0
  206. nbxtensor-0.1.12/src/nbxtensor/ops/loss_wrappers.py +283 -0
  207. nbxtensor-0.1.12/src/nbxtensor/ops/lt.py +41 -0
  208. nbxtensor-0.1.12/src/nbxtensor/ops/masked_fill.py +32 -0
  209. nbxtensor-0.1.12/src/nbxtensor/ops/matmul.py +378 -0
  210. nbxtensor-0.1.12/src/nbxtensor/ops/matmul_m8n8k4.py +237 -0
  211. nbxtensor-0.1.12/src/nbxtensor/ops/matrix_units.py +97 -0
  212. nbxtensor-0.1.12/src/nbxtensor/ops/max_pool2d.py +78 -0
  213. nbxtensor-0.1.12/src/nbxtensor/ops/max_pool3d.py +97 -0
  214. nbxtensor-0.1.12/src/nbxtensor/ops/max_reduce.py +95 -0
  215. nbxtensor-0.1.12/src/nbxtensor/ops/maximum.py +23 -0
  216. nbxtensor-0.1.12/src/nbxtensor/ops/mean.py +41 -0
  217. nbxtensor-0.1.12/src/nbxtensor/ops/min_reduce.py +95 -0
  218. nbxtensor-0.1.12/src/nbxtensor/ops/minimum.py +23 -0
  219. nbxtensor-0.1.12/src/nbxtensor/ops/mish.py +23 -0
  220. nbxtensor-0.1.12/src/nbxtensor/ops/mma_m8n8k4.py +154 -0
  221. nbxtensor-0.1.12/src/nbxtensor/ops/moe_align.py +196 -0
  222. nbxtensor-0.1.12/src/nbxtensor/ops/moe_decode_vec.py +375 -0
  223. nbxtensor-0.1.12/src/nbxtensor/ops/moe_device_residency.py +142 -0
  224. nbxtensor-0.1.12/src/nbxtensor/ops/moe_fused.py +496 -0
  225. nbxtensor-0.1.12/src/nbxtensor/ops/moe_multi_device.py +109 -0
  226. nbxtensor-0.1.12/src/nbxtensor/ops/moe_route.py +306 -0
  227. nbxtensor-0.1.12/src/nbxtensor/ops/moe_route_census.json +184 -0
  228. nbxtensor-0.1.12/src/nbxtensor/ops/moe_wrappers.py +511 -0
  229. nbxtensor-0.1.12/src/nbxtensor/ops/mse_loss.py +87 -0
  230. nbxtensor-0.1.12/src/nbxtensor/ops/mul.py +62 -0
  231. nbxtensor-0.1.12/src/nbxtensor/ops/nan_to_num.py +34 -0
  232. nbxtensor-0.1.12/src/nbxtensor/ops/ne.py +41 -0
  233. nbxtensor-0.1.12/src/nbxtensor/ops/neg.py +22 -0
  234. nbxtensor-0.1.12/src/nbxtensor/ops/nllloss.py +128 -0
  235. nbxtensor-0.1.12/src/nbxtensor/ops/nonzero.py +34 -0
  236. nbxtensor-0.1.12/src/nbxtensor/ops/nonzero_op.py +66 -0
  237. nbxtensor-0.1.12/src/nbxtensor/ops/norm_wrappers.py +581 -0
  238. nbxtensor-0.1.12/src/nbxtensor/ops/ones_op.py +21 -0
  239. nbxtensor-0.1.12/src/nbxtensor/ops/operand.py +33 -0
  240. nbxtensor-0.1.12/src/nbxtensor/ops/pad_op.py +340 -0
  241. nbxtensor-0.1.12/src/nbxtensor/ops/paged_decode_attn.py +275 -0
  242. nbxtensor-0.1.12/src/nbxtensor/ops/pixel_shuffle.py +230 -0
  243. nbxtensor-0.1.12/src/nbxtensor/ops/pixel_unshuffle.py +114 -0
  244. nbxtensor-0.1.12/src/nbxtensor/ops/pow.py +145 -0
  245. nbxtensor-0.1.12/src/nbxtensor/ops/prod.py +85 -0
  246. nbxtensor-0.1.12/src/nbxtensor/ops/rand_op.py +66 -0
  247. nbxtensor-0.1.12/src/nbxtensor/ops/random_wrappers.py +367 -0
  248. nbxtensor-0.1.12/src/nbxtensor/ops/reciprocal.py +22 -0
  249. nbxtensor-0.1.12/src/nbxtensor/ops/reduction_wrappers.py +848 -0
  250. nbxtensor-0.1.12/src/nbxtensor/ops/relu.py +23 -0
  251. nbxtensor-0.1.12/src/nbxtensor/ops/remainder.py +55 -0
  252. nbxtensor-0.1.12/src/nbxtensor/ops/repeat_interleave.py +52 -0
  253. nbxtensor-0.1.12/src/nbxtensor/ops/repeat_op.py +133 -0
  254. nbxtensor-0.1.12/src/nbxtensor/ops/rmsnorm.py +76 -0
  255. nbxtensor-0.1.12/src/nbxtensor/ops/rope.py +163 -0
  256. nbxtensor-0.1.12/src/nbxtensor/ops/rsqrt.py +22 -0
  257. nbxtensor-0.1.12/src/nbxtensor/ops/scaled_softmax.py +100 -0
  258. nbxtensor-0.1.12/src/nbxtensor/ops/scatter_op.py +233 -0
  259. nbxtensor-0.1.12/src/nbxtensor/ops/selu.py +23 -0
  260. nbxtensor-0.1.12/src/nbxtensor/ops/shape_wrappers.py +1029 -0
  261. nbxtensor-0.1.12/src/nbxtensor/ops/sigmoid.py +24 -0
  262. nbxtensor-0.1.12/src/nbxtensor/ops/silu.py +32 -0
  263. nbxtensor-0.1.12/src/nbxtensor/ops/sin.py +22 -0
  264. nbxtensor-0.1.12/src/nbxtensor/ops/softmax.py +175 -0
  265. nbxtensor-0.1.12/src/nbxtensor/ops/softplus.py +38 -0
  266. nbxtensor-0.1.12/src/nbxtensor/ops/sort_op.py +308 -0
  267. nbxtensor-0.1.12/src/nbxtensor/ops/spectral_wrappers.py +482 -0
  268. nbxtensor-0.1.12/src/nbxtensor/ops/sqrt.py +22 -0
  269. nbxtensor-0.1.12/src/nbxtensor/ops/stack_op.py +88 -0
  270. nbxtensor-0.1.12/src/nbxtensor/ops/std.py +117 -0
  271. nbxtensor-0.1.12/src/nbxtensor/ops/strided_copy.py +213 -0
  272. nbxtensor-0.1.12/src/nbxtensor/ops/sub.py +45 -0
  273. nbxtensor-0.1.12/src/nbxtensor/ops/sum.py +41 -0
  274. nbxtensor-0.1.12/src/nbxtensor/ops/tan.py +27 -0
  275. nbxtensor-0.1.12/src/nbxtensor/ops/tanh.py +26 -0
  276. nbxtensor-0.1.12/src/nbxtensor/ops/threshold.py +30 -0
  277. nbxtensor-0.1.12/src/nbxtensor/ops/token_bitmask.py +84 -0
  278. nbxtensor-0.1.12/src/nbxtensor/ops/topk.py +271 -0
  279. nbxtensor-0.1.12/src/nbxtensor/ops/trace_op.py +68 -0
  280. nbxtensor-0.1.12/src/nbxtensor/ops/tril.py +68 -0
  281. nbxtensor-0.1.12/src/nbxtensor/ops/triu.py +66 -0
  282. nbxtensor-0.1.12/src/nbxtensor/ops/unfold_op.py +38 -0
  283. nbxtensor-0.1.12/src/nbxtensor/ops/unique_op.py +101 -0
  284. nbxtensor-0.1.12/src/nbxtensor/ops/upsample_bilinear2d.py +107 -0
  285. nbxtensor-0.1.12/src/nbxtensor/ops/upsample_nearest2d.py +102 -0
  286. nbxtensor-0.1.12/src/nbxtensor/ops/upsample_nearest3d.py +96 -0
  287. nbxtensor-0.1.12/src/nbxtensor/ops/var.py +140 -0
  288. nbxtensor-0.1.12/src/nbxtensor/ops/vector_norm.py +220 -0
  289. nbxtensor-0.1.12/src/nbxtensor/ops/weight_norm.py +108 -0
  290. nbxtensor-0.1.12/src/nbxtensor/ops/where.py +44 -0
  291. nbxtensor-0.1.12/src/nbxtensor/ops/wrappers.py +828 -0
  292. nbxtensor-0.1.12/src/nbxtensor/ops/zeros_op.py +21 -0
  293. nbxtensor-0.1.12/src/nbxtensor/profile.py +129 -0
  294. nbxtensor-0.1.12/src/nbxtensor/tensor.py +2060 -0
  295. nbxtensor-0.1.12/tests/_device_dicts_on_main_50597afcc7a3.json +10179 -0
  296. nbxtensor-0.1.12/tests/_ew_overrun_kernel.py +28 -0
  297. nbxtensor-0.1.12/tests/_moe_route_compare.py +100 -0
  298. nbxtensor-0.1.12/tests/_moe_route_interpreter_run.py +73 -0
  299. nbxtensor-0.1.12/tests/_record_device_dicts_on_main.py +66 -0
  300. nbxtensor-0.1.12/tests/test_a_card_a_neighbour_holds_gets_a_chunk_never_a_refusal.py +104 -0
  301. nbxtensor-0.1.12/tests/test_a_certificate_never_holds_a_dead_compile_worker.py +120 -0
  302. nbxtensor-0.1.12/tests/test_a_certificate_of_another_bits_epoch_is_refused_by_name_and_its_keys_autotune.py +68 -0
  303. nbxtensor-0.1.12/tests/test_a_certification_harness_draws_measures_and_sweeps.py +205 -0
  304. nbxtensor-0.1.12/tests/test_a_class_moves_to_the_nearest_passing_tile_on_its_ladder_never_by_a_timing.py +53 -0
  305. nbxtensor-0.1.12/tests/test_a_compile_bound_tells_a_timeout_from_a_dead_worker.py +108 -0
  306. nbxtensor-0.1.12/tests/test_a_compile_that_did_not_end_is_kept_by_stamp_and_named.py +58 -0
  307. nbxtensor-0.1.12/tests/test_a_confirmation_run_serves_a_turn_prefill_flash_only_its_certified_square_key.py +58 -0
  308. nbxtensor-0.1.12/tests/test_a_cuda_kernel_time_session_times_each_launch_between_two_events.py +359 -0
  309. nbxtensor-0.1.12/tests/test_a_device_question_the_runtime_refuses_is_raised_by_name.py +172 -0
  310. nbxtensor-0.1.12/tests/test_a_horizontal_matmul_band_computes_what_its_own_matmul_computes.py +31 -0
  311. nbxtensor-0.1.12/tests/test_a_host_error_in_the_proof_worker_is_never_a_fault.py +38 -0
  312. nbxtensor-0.1.12/tests/test_a_host_tensor_crossing_to_a_moe_device_is_always_moved.py +44 -0
  313. nbxtensor-0.1.12/tests/test_a_launch_at_a_proven_tile_settles_without_a_move.py +116 -0
  314. nbxtensor-0.1.12/tests/test_a_layout_file_names_one_real_launch_and_its_verdict_line.py +68 -0
  315. nbxtensor-0.1.12/tests/test_a_matmul_family_call_runs_the_unit_the_rule_gives_it_never_the_one_a_timing_chose.py +165 -0
  316. nbxtensor-0.1.12/tests/test_a_metal_event_times_the_kernels_recorded_before_it.py +67 -0
  317. nbxtensor-0.1.12/tests/test_a_missing_c_compiler_is_refused_by_name_before_the_first_build.py +164 -0
  318. nbxtensor-0.1.12/tests/test_a_one_row_conv_key_is_drawn_where_the_fma_kernel_forms_it.py +43 -0
  319. nbxtensor-0.1.12/tests/test_a_pinned_host_buffer_is_released_after_the_work_in_flight.py +53 -0
  320. nbxtensor-0.1.12/tests/test_a_planner_reads_the_matrix_unit_and_the_cost_operand_by_public_names.py +54 -0
  321. nbxtensor-0.1.12/tests/test_a_pool_block_freed_with_the_pool_switched_off_goes_back_to_its_pool.py +55 -0
  322. nbxtensor-0.1.12/tests/test_a_profile_books_no_negative_time_and_says_what_it_could_not_attribute.py +49 -0
  323. nbxtensor-0.1.12/tests/test_a_replay_artifact_of_another_bits_epoch_is_never_seeded.py +59 -0
  324. nbxtensor-0.1.12/tests/test_a_replay_child_sees_its_one_card.py +70 -0
  325. nbxtensor-0.1.12/tests/test_a_runtime_autotune_on_metal_ranks_on_times_that_follow_the_work.py +76 -0
  326. nbxtensor-0.1.12/tests/test_a_runtime_reset_drops_the_fault_words_of_the_old_runtime.py +64 -0
  327. nbxtensor-0.1.12/tests/test_a_sweep_candidate_compiles_under_a_bound.py +43 -0
  328. nbxtensor-0.1.12/tests/test_a_synthetic_launch_carries_each_integer_at_the_variants_own_width.py +339 -0
  329. nbxtensor-0.1.12/tests/test_a_tensor_alive_at_exit_frees_nothing_while_the_interpreter_finalizes.py +43 -0
  330. nbxtensor-0.1.12/tests/test_a_tensor_zeroes_in_place_for_triton_s_reset_to_zero.py +49 -0
  331. nbxtensor-0.1.12/tests/test_a_tied_weight_is_the_source_s_tensor_across_unload_and_reload.py +327 -0
  332. nbxtensor-0.1.12/tests/test_a_triton_below_the_declared_floor_is_refused_by_name_at_the_first_launch.py +109 -0
  333. nbxtensor-0.1.12/tests/test_a_tuning_keyword_the_installed_triton_lacks_is_refused_by_name.py +60 -0
  334. nbxtensor-0.1.12/tests/test_a_turn_prefill_flash_is_served_its_square_key.py +96 -0
  335. nbxtensor-0.1.12/tests/test_an_array_is_placed_on_the_device_it_names.py +89 -0
  336. nbxtensor-0.1.12/tests/test_an_element_wise_proof_is_a_function_of_the_variant_alone.py +585 -0
  337. nbxtensor-0.1.12/tests/test_an_element_wise_tile_is_proven_on_the_variant_it_reaches.py +247 -0
  338. nbxtensor-0.1.12/tests/test_an_empty_product_forms_no_key_and_launches_nothing.py +52 -0
  339. nbxtensor-0.1.12/tests/test_any_op_module_imported_first_launches_through_the_nbxtensor_launcher.py +70 -0
  340. nbxtensor-0.1.12/tests/test_conv2d_offers_only_candidates_whose_accumulator_fits_the_device_pool.py +47 -0
  341. nbxtensor-0.1.12/tests/test_every_candidate_of_a_matmul_family_op_gives_the_same_bits.py +127 -0
  342. nbxtensor-0.1.12/tests/test_every_class_that_runs_today_resolves_the_dict_it_resolved_on_main.py +39 -0
  343. nbxtensor-0.1.12/tests/test_every_class_tile_launch_hands_its_grid_as_a_function_of_the_tile.py +74 -0
  344. nbxtensor-0.1.12/tests/test_every_kernel_computes_its_flat_offsets_in_64_bit.py +117 -0
  345. nbxtensor-0.1.12/tests/test_every_launch_candidate_of_conv2d_gives_the_same_bits.py +87 -0
  346. nbxtensor-0.1.12/tests/test_every_launch_candidate_of_matmul_addmm_and_baddbmm_gives_the_same_bits.py +110 -0
  347. nbxtensor-0.1.12/tests/test_every_launch_candidate_of_the_row_norms_gemv_and_paged_decode_gives_the_same_bits.py +192 -0
  348. nbxtensor-0.1.12/tests/test_every_launch_of_the_fused_softmax_gives_the_same_bits.py +58 -0
  349. nbxtensor-0.1.12/tests/test_every_name_the_census_test_reads_from_the_op_module_exists.py +25 -0
  350. nbxtensor-0.1.12/tests/test_every_nvidia_capability_the_compiler_targets_reads_its_documented_shared_memory.py +137 -0
  351. nbxtensor-0.1.12/tests/test_gather_reads_through_an_index_smaller_than_its_input.py +54 -0
  352. nbxtensor-0.1.12/tests/test_host_bytes_reads_a_tensor_past_two_gib.py +43 -0
  353. nbxtensor-0.1.12/tests/test_index_put_value_broadcasting.py +237 -0
  354. nbxtensor-0.1.12/tests/test_index_select_noncontiguous_index.py +182 -0
  355. nbxtensor-0.1.12/tests/test_io_read_rate.py +94 -0
  356. nbxtensor-0.1.12/tests/test_no_python_boolean_produces_a_value_in_a_kernel.py +145 -0
  357. nbxtensor-0.1.12/tests/test_p3_decode_speed_optimizations.py +401 -0
  358. nbxtensor-0.1.12/tests/test_pinned_host_allocator.py +498 -0
  359. nbxtensor-0.1.12/tests/test_read_at_caps_preadv_below_int_max.py +95 -0
  360. nbxtensor-0.1.12/tests/test_the_allocator_reads_the_chunk_rule_before_a_measure.py +48 -0
  361. nbxtensor-0.1.12/tests/test_the_apple_gpu_limits_are_asked_of_the_device_or_refused_by_name.py +87 -0
  362. nbxtensor-0.1.12/tests/test_the_application_gives_the_library_its_kernel_module_prefix_and_its_replay_cache_directory.py +95 -0
  363. nbxtensor-0.1.12/tests/test_the_chunk_is_given_by_a_rule_per_memory_class.py +101 -0
  364. nbxtensor-0.1.12/tests/test_the_chunk_sweep_stops_where_the_measure_decides.py +150 -0
  365. nbxtensor-0.1.12/tests/test_the_chunked_gated_delta_rule_costs_its_workspace.py +116 -0
  366. nbxtensor-0.1.12/tests/test_the_chunked_gated_delta_rule_on_a_device_is_its_oracle.py +152 -0
  367. nbxtensor-0.1.12/tests/test_the_dead_causal_mask_elimination_computes_what_the_mask_computes.py +28 -0
  368. nbxtensor-0.1.12/tests/test_the_declared_triton_floor_is_the_one_the_launch_path_needs.py +58 -0
  369. nbxtensor-0.1.12/tests/test_the_device_door_answers_from_the_allocator.py +70 -0
  370. nbxtensor-0.1.12/tests/test_the_fused_rope_computes_what_its_chain_computes.py +46 -0
  371. nbxtensor-0.1.12/tests/test_the_fused_swiglu_computes_what_its_chain_computes.py +44 -0
  372. nbxtensor-0.1.12/tests/test_the_gated_delta_rule_op_runs_the_form_its_census_certifies.py +159 -0
  373. nbxtensor-0.1.12/tests/test_the_host_speeds_are_measured_by_the_library.py +19 -0
  374. nbxtensor-0.1.12/tests/test_the_moe_route_census_names_what_its_kernel_uses.py +76 -0
  375. nbxtensor-0.1.12/tests/test_the_moe_route_certification_keys_are_the_kernels_own.py +68 -0
  376. nbxtensor-0.1.12/tests/test_the_moe_route_oracle_is_the_routing_written_by_hand.py +109 -0
  377. nbxtensor-0.1.12/tests/test_the_moe_route_over_tokens_is_its_plain_reference_on_the_interpreter.py +145 -0
  378. nbxtensor-0.1.12/tests/test_the_moe_route_prefill_on_a_device_is_each_token_routed_alone.py +75 -0
  379. nbxtensor-0.1.12/tests/test_the_proof_worker_runs_on_the_freest_card_of_the_launch_s_stamp.py +131 -0
  380. nbxtensor-0.1.12/tests/test_the_proof_worker_runs_only_on_the_run_s_declared_cards_read_by_nvml.py +185 -0
  381. nbxtensor-0.1.12/tests/test_the_public_api_names_nothing_of_neurobrix.py +87 -0
  382. nbxtensor-0.1.12/tests/test_the_replay_presses_the_card_it_was_recorded_on.py +56 -0
  383. nbxtensor-0.1.12/tests/test_the_routing_of_a_mixture_of_experts_is_an_op_of_the_library.py +127 -0
  384. nbxtensor-0.1.12/tests/test_the_scatter_family_walks_an_index_smaller_than_its_operands.py +144 -0
  385. nbxtensor-0.1.12/tests/test_the_scatter_family_writes_along_any_dim.py +105 -0
  386. nbxtensor-0.1.12/tests/test_the_vertical_epilogue_computes_what_its_chain_computes.py +50 -0
  387. nbxtensor-0.1.12/tests/test_the_weight_reader_measures_itself_on_the_load.py +260 -0
  388. nbxtensor-0.1.12/tests/test_triton_is_required_only_where_pypi_publishes_it.py +60 -0
  389. nbxtensor-0.1.12/tools/bind_tied_uaf_old_head.py +119 -0
  390. nbxtensor-0.1.12/tools/ew_wide_scalars.md +120 -0
  391. nbxtensor-0.1.12/tools/layouts/flex_t5_position_bias_add.json +17 -0
  392. nbxtensor-0.1.12/tools/moe_route_certification_keys.py +57 -0
  393. nbxtensor-0.1.12/tools/prove_an_element_wise_variant.py +252 -0
  394. nbxtensor-0.1.9/CHANGELOG.md +0 -694
  395. nbxtensor-0.1.9/PKG-INFO +0 -550
  396. nbxtensor-0.1.9/README.md +0 -527
  397. nbxtensor-0.1.9/docs/API.md +0 -3956
  398. nbxtensor-0.1.9/docs/device_keys.txt +0 -61
  399. nbxtensor-0.1.9/docs/kernels_provenance.md +0 -124
  400. nbxtensor-0.1.9/docs/tensor-cores-through-linear-layouts.md +0 -86
  401. nbxtensor-0.1.9/pyproject.toml +0 -40
  402. nbxtensor-0.1.9/src/nbxtensor/__init__.py +0 -17
  403. nbxtensor-0.1.9/src/nbxtensor/backend/devices/amd/cdna.yml +0 -228
  404. nbxtensor-0.1.9/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -228
  405. nbxtensor-0.1.9/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -226
  406. nbxtensor-0.1.9/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -217
  407. nbxtensor-0.1.9/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -218
  408. nbxtensor-0.1.9/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -218
  409. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -266
  410. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -266
  411. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -266
  412. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -266
  413. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -266
  414. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -266
  415. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -266
  416. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -266
  417. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -266
  418. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -266
  419. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -266
  420. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -266
  421. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -266
  422. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -266
  423. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -312
  424. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -269
  425. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -269
  426. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -269
  427. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -269
  428. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -269
  429. nbxtensor-0.1.9/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -263
  430. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -207
  431. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -209
  432. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/bmg.yml +0 -203
  433. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/dg2.yml +0 -203
  434. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/lnl.yml +0 -203
  435. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/mtl.yml +0 -206
  436. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -206
  437. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -206
  438. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/pvc.yml +0 -203
  439. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/wcl.yml +0 -205
  440. nbxtensor-0.1.9/src/nbxtensor/backend/devices/intel/xe_lp.yml +0 -211
  441. nbxtensor-0.1.9/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -214
  442. nbxtensor-0.1.9/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -213
  443. nbxtensor-0.1.9/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -411
  444. nbxtensor-0.1.9/src/nbxtensor/backend/faults.py +0 -151
  445. nbxtensor-0.1.9/src/nbxtensor/backend/frozen_plan.py +0 -783
  446. nbxtensor-0.1.9/src/nbxtensor/backend/install_help.py +0 -234
  447. nbxtensor-0.1.9/src/nbxtensor/backend/launcher.py +0 -2590
  448. nbxtensor-0.1.9/src/nbxtensor/backend/metal_device.py +0 -1347
  449. nbxtensor-0.1.9/src/nbxtensor/backend/metal_dispatch.py +0 -280
  450. nbxtensor-0.1.9/src/nbxtensor/backend/replay_graph.py +0 -359
  451. nbxtensor-0.1.9/src/nbxtensor/device.py +0 -140
  452. nbxtensor-0.1.9/src/nbxtensor/dtype/operands.py +0 -158
  453. nbxtensor-0.1.9/src/nbxtensor/interop/handoff.py +0 -24
  454. nbxtensor-0.1.9/src/nbxtensor/io/read_rate.py +0 -238
  455. nbxtensor-0.1.9/src/nbxtensor/io/safetensors.py +0 -567
  456. nbxtensor-0.1.9/src/nbxtensor/memory/__init__.py +0 -158
  457. nbxtensor-0.1.9/src/nbxtensor/memory/allocator.py +0 -2012
  458. nbxtensor-0.1.9/src/nbxtensor/memory/memory_pool.py +0 -293
  459. nbxtensor-0.1.9/src/nbxtensor/memory/metal.py +0 -96
  460. nbxtensor-0.1.9/src/nbxtensor/memory/paged_kv.py +0 -670
  461. nbxtensor-0.1.9/src/nbxtensor/memory/pointer_tables.py +0 -366
  462. nbxtensor-0.1.9/src/nbxtensor/memory/pool.py +0 -530
  463. nbxtensor-0.1.9/src/nbxtensor/memory/trace_replay.py +0 -155
  464. nbxtensor-0.1.9/src/nbxtensor/memory/vmm.py +0 -150
  465. nbxtensor-0.1.9/src/nbxtensor/ops/_common.py +0 -35
  466. nbxtensor-0.1.9/src/nbxtensor/ops/_configs.py +0 -1049
  467. nbxtensor-0.1.9/src/nbxtensor/ops/_cost.py +0 -300
  468. nbxtensor-0.1.9/src/nbxtensor/ops/abs.py +0 -17
  469. nbxtensor-0.1.9/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -161
  470. nbxtensor-0.1.9/src/nbxtensor/ops/add.py +0 -96
  471. nbxtensor-0.1.9/src/nbxtensor/ops/addcdiv.py +0 -32
  472. nbxtensor-0.1.9/src/nbxtensor/ops/addcmul.py +0 -32
  473. nbxtensor-0.1.9/src/nbxtensor/ops/addmv_op.py +0 -67
  474. nbxtensor-0.1.9/src/nbxtensor/ops/addr.py +0 -71
  475. nbxtensor-0.1.9/src/nbxtensor/ops/all_reduce.py +0 -86
  476. nbxtensor-0.1.9/src/nbxtensor/ops/amax.py +0 -40
  477. nbxtensor-0.1.9/src/nbxtensor/ops/any_reduce.py +0 -86
  478. nbxtensor-0.1.9/src/nbxtensor/ops/arange_op.py +0 -30
  479. nbxtensor-0.1.9/src/nbxtensor/ops/argmax.py +0 -110
  480. nbxtensor-0.1.9/src/nbxtensor/ops/argmin.py +0 -96
  481. nbxtensor-0.1.9/src/nbxtensor/ops/atan2.py +0 -71
  482. nbxtensor-0.1.9/src/nbxtensor/ops/attention_wrappers.py +0 -1732
  483. nbxtensor-0.1.9/src/nbxtensor/ops/autotune_cache.py +0 -469
  484. nbxtensor-0.1.9/src/nbxtensor/ops/autotune_certified.py +0 -1633
  485. nbxtensor-0.1.9/src/nbxtensor/ops/autotune_harness.py +0 -1028
  486. nbxtensor-0.1.9/src/nbxtensor/ops/avg_pool2d.py +0 -76
  487. nbxtensor-0.1.9/src/nbxtensor/ops/baddbmm_op.py +0 -135
  488. nbxtensor-0.1.9/src/nbxtensor/ops/batch_norm.py +0 -166
  489. nbxtensor-0.1.9/src/nbxtensor/ops/binary_strided.py +0 -196
  490. nbxtensor-0.1.9/src/nbxtensor/ops/bitwise_and.py +0 -29
  491. nbxtensor-0.1.9/src/nbxtensor/ops/bitwise_left_shift.py +0 -50
  492. nbxtensor-0.1.9/src/nbxtensor/ops/bitwise_not.py +0 -27
  493. nbxtensor-0.1.9/src/nbxtensor/ops/bitwise_or.py +0 -29
  494. nbxtensor-0.1.9/src/nbxtensor/ops/bitwise_right_shift.py +0 -50
  495. nbxtensor-0.1.9/src/nbxtensor/ops/bucketize.py +0 -37
  496. nbxtensor-0.1.9/src/nbxtensor/ops/cat_op.py +0 -90
  497. nbxtensor-0.1.9/src/nbxtensor/ops/celu.py +0 -23
  498. nbxtensor-0.1.9/src/nbxtensor/ops/clamp.py +0 -24
  499. nbxtensor-0.1.9/src/nbxtensor/ops/clamp_min.py +0 -22
  500. nbxtensor-0.1.9/src/nbxtensor/ops/conv2d.py +0 -268
  501. nbxtensor-0.1.9/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -166
  502. nbxtensor-0.1.9/src/nbxtensor/ops/conv_depthwise2d.py +0 -154
  503. nbxtensor-0.1.9/src/nbxtensor/ops/conv_transpose2d.py +0 -148
  504. nbxtensor-0.1.9/src/nbxtensor/ops/conv_wrappers.py +0 -1502
  505. nbxtensor-0.1.9/src/nbxtensor/ops/copy.py +0 -18
  506. nbxtensor-0.1.9/src/nbxtensor/ops/copy_op.py +0 -42
  507. nbxtensor-0.1.9/src/nbxtensor/ops/cos.py +0 -17
  508. nbxtensor-0.1.9/src/nbxtensor/ops/count_nonzero.py +0 -67
  509. nbxtensor-0.1.9/src/nbxtensor/ops/cross_entropy.py +0 -70
  510. nbxtensor-0.1.9/src/nbxtensor/ops/cummax.py +0 -112
  511. nbxtensor-0.1.9/src/nbxtensor/ops/cummin.py +0 -108
  512. nbxtensor-0.1.9/src/nbxtensor/ops/cumsum.py +0 -247
  513. nbxtensor-0.1.9/src/nbxtensor/ops/decode_attn_vec.py +0 -162
  514. nbxtensor-0.1.9/src/nbxtensor/ops/depthwise_conv2d.py +0 -132
  515. nbxtensor-0.1.9/src/nbxtensor/ops/dequant_gemv.py +0 -190
  516. nbxtensor-0.1.9/src/nbxtensor/ops/dft.py +0 -67
  517. nbxtensor-0.1.9/src/nbxtensor/ops/dispatch.py +0 -1239
  518. nbxtensor-0.1.9/src/nbxtensor/ops/div.py +0 -75
  519. nbxtensor-0.1.9/src/nbxtensor/ops/dot_op.py +0 -70
  520. nbxtensor-0.1.9/src/nbxtensor/ops/dropout.py +0 -23
  521. nbxtensor-0.1.9/src/nbxtensor/ops/dtype_convert.py +0 -42
  522. nbxtensor-0.1.9/src/nbxtensor/ops/elementwise_launch.py +0 -81
  523. nbxtensor-0.1.9/src/nbxtensor/ops/elementwise_wrappers.py +0 -2314
  524. nbxtensor-0.1.9/src/nbxtensor/ops/elu.py +0 -20
  525. nbxtensor-0.1.9/src/nbxtensor/ops/embedding.py +0 -72
  526. nbxtensor-0.1.9/src/nbxtensor/ops/eq.py +0 -32
  527. nbxtensor-0.1.9/src/nbxtensor/ops/erf.py +0 -18
  528. nbxtensor-0.1.9/src/nbxtensor/ops/exp.py +0 -17
  529. nbxtensor-0.1.9/src/nbxtensor/ops/exp2.py +0 -21
  530. nbxtensor-0.1.9/src/nbxtensor/ops/fft_op.py +0 -125
  531. nbxtensor-0.1.9/src/nbxtensor/ops/fill_op.py +0 -20
  532. nbxtensor-0.1.9/src/nbxtensor/ops/flash_attention.py +0 -310
  533. nbxtensor-0.1.9/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -385
  534. nbxtensor-0.1.9/src/nbxtensor/ops/flash_decode.py +0 -78
  535. nbxtensor-0.1.9/src/nbxtensor/ops/flip_op.py +0 -63
  536. nbxtensor-0.1.9/src/nbxtensor/ops/floor.py +0 -90
  537. nbxtensor-0.1.9/src/nbxtensor/ops/full_op.py +0 -24
  538. nbxtensor-0.1.9/src/nbxtensor/ops/fused_moe.py +0 -414
  539. nbxtensor-0.1.9/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -100
  540. nbxtensor-0.1.9/src/nbxtensor/ops/gated_delta_rule.py +0 -263
  541. nbxtensor-0.1.9/src/nbxtensor/ops/gated_delta_rule_chunked.py +0 -435
  542. nbxtensor-0.1.9/src/nbxtensor/ops/gather_op.py +0 -55
  543. nbxtensor-0.1.9/src/nbxtensor/ops/ge.py +0 -32
  544. nbxtensor-0.1.9/src/nbxtensor/ops/gelu.py +0 -31
  545. nbxtensor-0.1.9/src/nbxtensor/ops/gemv_vec.py +0 -83
  546. nbxtensor-0.1.9/src/nbxtensor/ops/glu.py +0 -46
  547. nbxtensor-0.1.9/src/nbxtensor/ops/grid_sampler.py +0 -145
  548. nbxtensor-0.1.9/src/nbxtensor/ops/group_norm_tiled.py +0 -67
  549. nbxtensor-0.1.9/src/nbxtensor/ops/groupnorm.py +0 -123
  550. nbxtensor-0.1.9/src/nbxtensor/ops/gt.py +0 -32
  551. nbxtensor-0.1.9/src/nbxtensor/ops/hardsigmoid.py +0 -18
  552. nbxtensor-0.1.9/src/nbxtensor/ops/hardswish.py +0 -19
  553. nbxtensor-0.1.9/src/nbxtensor/ops/im2col.py +0 -57
  554. nbxtensor-0.1.9/src/nbxtensor/ops/index_add.py +0 -95
  555. nbxtensor-0.1.9/src/nbxtensor/ops/index_put_op.py +0 -92
  556. nbxtensor-0.1.9/src/nbxtensor/ops/index_select.py +0 -124
  557. nbxtensor-0.1.9/src/nbxtensor/ops/index_wrappers.py +0 -772
  558. nbxtensor-0.1.9/src/nbxtensor/ops/isfinite.py +0 -23
  559. nbxtensor-0.1.9/src/nbxtensor/ops/isinf.py +0 -23
  560. nbxtensor-0.1.9/src/nbxtensor/ops/isnan.py +0 -21
  561. nbxtensor-0.1.9/src/nbxtensor/ops/launch_keys.py +0 -1115
  562. nbxtensor-0.1.9/src/nbxtensor/ops/layernorm.py +0 -74
  563. nbxtensor-0.1.9/src/nbxtensor/ops/le.py +0 -38
  564. nbxtensor-0.1.9/src/nbxtensor/ops/leaky_relu.py +0 -19
  565. nbxtensor-0.1.9/src/nbxtensor/ops/lerp.py +0 -79
  566. nbxtensor-0.1.9/src/nbxtensor/ops/linalg_wrappers.py +0 -1384
  567. nbxtensor-0.1.9/src/nbxtensor/ops/linspace_op.py +0 -50
  568. nbxtensor-0.1.9/src/nbxtensor/ops/log.py +0 -17
  569. nbxtensor-0.1.9/src/nbxtensor/ops/log_sigmoid.py +0 -26
  570. nbxtensor-0.1.9/src/nbxtensor/ops/logical_and.py +0 -29
  571. nbxtensor-0.1.9/src/nbxtensor/ops/logical_not.py +0 -27
  572. nbxtensor-0.1.9/src/nbxtensor/ops/logical_or.py +0 -29
  573. nbxtensor-0.1.9/src/nbxtensor/ops/logical_xor.py +0 -40
  574. nbxtensor-0.1.9/src/nbxtensor/ops/loss_wrappers.py +0 -282
  575. nbxtensor-0.1.9/src/nbxtensor/ops/lt.py +0 -32
  576. nbxtensor-0.1.9/src/nbxtensor/ops/masked_fill.py +0 -24
  577. nbxtensor-0.1.9/src/nbxtensor/ops/matmul.py +0 -377
  578. nbxtensor-0.1.9/src/nbxtensor/ops/matmul_m8n8k4.py +0 -236
  579. nbxtensor-0.1.9/src/nbxtensor/ops/max_pool2d.py +0 -77
  580. nbxtensor-0.1.9/src/nbxtensor/ops/max_pool3d.py +0 -96
  581. nbxtensor-0.1.9/src/nbxtensor/ops/max_reduce.py +0 -94
  582. nbxtensor-0.1.9/src/nbxtensor/ops/maximum.py +0 -18
  583. nbxtensor-0.1.9/src/nbxtensor/ops/mean.py +0 -40
  584. nbxtensor-0.1.9/src/nbxtensor/ops/min_reduce.py +0 -94
  585. nbxtensor-0.1.9/src/nbxtensor/ops/minimum.py +0 -18
  586. nbxtensor-0.1.9/src/nbxtensor/ops/mish.py +0 -22
  587. nbxtensor-0.1.9/src/nbxtensor/ops/mma_m8n8k4.py +0 -153
  588. nbxtensor-0.1.9/src/nbxtensor/ops/moe_align.py +0 -195
  589. nbxtensor-0.1.9/src/nbxtensor/ops/moe_decode_vec.py +0 -374
  590. nbxtensor-0.1.9/src/nbxtensor/ops/moe_device_residency.py +0 -141
  591. nbxtensor-0.1.9/src/nbxtensor/ops/moe_fused.py +0 -507
  592. nbxtensor-0.1.9/src/nbxtensor/ops/moe_multi_device.py +0 -106
  593. nbxtensor-0.1.9/src/nbxtensor/ops/moe_route.py +0 -249
  594. nbxtensor-0.1.9/src/nbxtensor/ops/moe_wrappers.py +0 -510
  595. nbxtensor-0.1.9/src/nbxtensor/ops/mse_loss.py +0 -82
  596. nbxtensor-0.1.9/src/nbxtensor/ops/mul.py +0 -51
  597. nbxtensor-0.1.9/src/nbxtensor/ops/nan_to_num.py +0 -26
  598. nbxtensor-0.1.9/src/nbxtensor/ops/ne.py +0 -32
  599. nbxtensor-0.1.9/src/nbxtensor/ops/neg.py +0 -17
  600. nbxtensor-0.1.9/src/nbxtensor/ops/nllloss.py +0 -127
  601. nbxtensor-0.1.9/src/nbxtensor/ops/nonzero.py +0 -33
  602. nbxtensor-0.1.9/src/nbxtensor/ops/nonzero_op.py +0 -65
  603. nbxtensor-0.1.9/src/nbxtensor/ops/norm_wrappers.py +0 -579
  604. nbxtensor-0.1.9/src/nbxtensor/ops/ones_op.py +0 -20
  605. nbxtensor-0.1.9/src/nbxtensor/ops/pad_op.py +0 -162
  606. nbxtensor-0.1.9/src/nbxtensor/ops/paged_decode_attn.py +0 -243
  607. nbxtensor-0.1.9/src/nbxtensor/ops/pixel_shuffle.py +0 -144
  608. nbxtensor-0.1.9/src/nbxtensor/ops/pixel_unshuffle.py +0 -72
  609. nbxtensor-0.1.9/src/nbxtensor/ops/pow.py +0 -137
  610. nbxtensor-0.1.9/src/nbxtensor/ops/prod.py +0 -84
  611. nbxtensor-0.1.9/src/nbxtensor/ops/rand_op.py +0 -52
  612. nbxtensor-0.1.9/src/nbxtensor/ops/random_wrappers.py +0 -366
  613. nbxtensor-0.1.9/src/nbxtensor/ops/reciprocal.py +0 -17
  614. nbxtensor-0.1.9/src/nbxtensor/ops/reduction_wrappers.py +0 -845
  615. nbxtensor-0.1.9/src/nbxtensor/ops/relu.py +0 -18
  616. nbxtensor-0.1.9/src/nbxtensor/ops/remainder.py +0 -46
  617. nbxtensor-0.1.9/src/nbxtensor/ops/repeat_interleave.py +0 -51
  618. nbxtensor-0.1.9/src/nbxtensor/ops/repeat_op.py +0 -132
  619. nbxtensor-0.1.9/src/nbxtensor/ops/rmsnorm.py +0 -71
  620. nbxtensor-0.1.9/src/nbxtensor/ops/rope.py +0 -145
  621. nbxtensor-0.1.9/src/nbxtensor/ops/rsqrt.py +0 -17
  622. nbxtensor-0.1.9/src/nbxtensor/ops/scaled_softmax.py +0 -99
  623. nbxtensor-0.1.9/src/nbxtensor/ops/scatter_op.py +0 -142
  624. nbxtensor-0.1.9/src/nbxtensor/ops/selu.py +0 -22
  625. nbxtensor-0.1.9/src/nbxtensor/ops/shape_wrappers.py +0 -1032
  626. nbxtensor-0.1.9/src/nbxtensor/ops/sigmoid.py +0 -19
  627. nbxtensor-0.1.9/src/nbxtensor/ops/silu.py +0 -27
  628. nbxtensor-0.1.9/src/nbxtensor/ops/sin.py +0 -17
  629. nbxtensor-0.1.9/src/nbxtensor/ops/softmax.py +0 -172
  630. nbxtensor-0.1.9/src/nbxtensor/ops/softplus.py +0 -30
  631. nbxtensor-0.1.9/src/nbxtensor/ops/sort_op.py +0 -307
  632. nbxtensor-0.1.9/src/nbxtensor/ops/spectral_wrappers.py +0 -481
  633. nbxtensor-0.1.9/src/nbxtensor/ops/sqrt.py +0 -17
  634. nbxtensor-0.1.9/src/nbxtensor/ops/stack_op.py +0 -87
  635. nbxtensor-0.1.9/src/nbxtensor/ops/std.py +0 -116
  636. nbxtensor-0.1.9/src/nbxtensor/ops/strided_copy.py +0 -200
  637. nbxtensor-0.1.9/src/nbxtensor/ops/sub.py +0 -35
  638. nbxtensor-0.1.9/src/nbxtensor/ops/sum.py +0 -40
  639. nbxtensor-0.1.9/src/nbxtensor/ops/tan.py +0 -22
  640. nbxtensor-0.1.9/src/nbxtensor/ops/tanh.py +0 -21
  641. nbxtensor-0.1.9/src/nbxtensor/ops/threshold.py +0 -22
  642. nbxtensor-0.1.9/src/nbxtensor/ops/token_bitmask.py +0 -64
  643. nbxtensor-0.1.9/src/nbxtensor/ops/topk.py +0 -270
  644. nbxtensor-0.1.9/src/nbxtensor/ops/trace_op.py +0 -67
  645. nbxtensor-0.1.9/src/nbxtensor/ops/tril.py +0 -67
  646. nbxtensor-0.1.9/src/nbxtensor/ops/triu.py +0 -65
  647. nbxtensor-0.1.9/src/nbxtensor/ops/unfold_op.py +0 -37
  648. nbxtensor-0.1.9/src/nbxtensor/ops/unique_op.py +0 -100
  649. nbxtensor-0.1.9/src/nbxtensor/ops/upsample_bilinear2d.py +0 -106
  650. nbxtensor-0.1.9/src/nbxtensor/ops/upsample_nearest2d.py +0 -55
  651. nbxtensor-0.1.9/src/nbxtensor/ops/upsample_nearest3d.py +0 -61
  652. nbxtensor-0.1.9/src/nbxtensor/ops/var.py +0 -139
  653. nbxtensor-0.1.9/src/nbxtensor/ops/vector_norm.py +0 -219
  654. nbxtensor-0.1.9/src/nbxtensor/ops/weight_norm.py +0 -107
  655. nbxtensor-0.1.9/src/nbxtensor/ops/where.py +0 -39
  656. nbxtensor-0.1.9/src/nbxtensor/ops/wrappers.py +0 -826
  657. nbxtensor-0.1.9/src/nbxtensor/ops/zeros_op.py +0 -20
  658. nbxtensor-0.1.9/src/nbxtensor/profile.py +0 -95
  659. nbxtensor-0.1.9/src/nbxtensor/tensor.py +0 -1994
  660. nbxtensor-0.1.9/tests/_moe_route_compare.py +0 -64
  661. nbxtensor-0.1.9/tests/test_a_certification_harness_draws_measures_and_sweeps.py +0 -152
  662. nbxtensor-0.1.9/tests/test_a_device_question_the_runtime_refuses_is_raised_by_name.py +0 -178
  663. nbxtensor-0.1.9/tests/test_an_array_is_placed_on_the_device_it_names.py +0 -84
  664. nbxtensor-0.1.9/tests/test_io_read_rate.py +0 -85
  665. nbxtensor-0.1.9/tests/test_it_installs_on_a_mac.py +0 -23
  666. nbxtensor-0.1.9/tests/test_the_chunked_gated_delta_rule_costs_its_workspace.py +0 -83
  667. nbxtensor-0.1.9/tests/test_the_chunked_gated_delta_rule_on_a_device_is_its_oracle.py +0 -136
  668. nbxtensor-0.1.9/tests/test_the_device_door_answers_from_the_allocator.py +0 -70
  669. nbxtensor-0.1.9/tests/test_the_gated_delta_rule_op_runs_the_form_its_census_certifies.py +0 -159
  670. nbxtensor-0.1.9/tests/test_the_moe_route_oracle_is_the_routing_written_by_hand.py +0 -93
  671. nbxtensor-0.1.9/tests/test_the_routing_of_a_mixture_of_experts_is_an_op_of_the_library.py +0 -112
  672. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
  673. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/.github/workflows/cla.yml +0 -0
  674. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/.gitignore +0 -0
  675. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/CONTRIBUTING.md +0 -0
  676. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/LICENSE +0 -0
  677. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/NOTICE +0 -0
  678. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/THIRD_PARTY_NOTICES.md +0 -0
  679. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/assets/logo.png +0 -0
  680. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/BACKENDS.md +0 -0
  681. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/api_undocumented.txt +0 -0
  682. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/certified-autotune-method.md +0 -0
  683. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/design/ALLOCATOR.md +0 -0
  684. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/design/COST.md +0 -0
  685. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/design/DESIGN.md +0 -0
  686. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/device_file_template.yml +0 -0
  687. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/history/ENGINE_SLIM.md +0 -0
  688. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/history/INVENTORY.md +0 -0
  689. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/history/MIGRATION.md +0 -0
  690. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/history/engine_slim_list.tsv +0 -0
  691. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/history/migration_list.tsv +0 -0
  692. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/replay-recording-in-a-one-shot-request.md +0 -0
  693. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/docs/triton_cpu_install.md +0 -0
  694. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/__main__.py +0 -0
  695. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/__init__.py +0 -0
  696. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/capabilities.py +0 -0
  697. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/cpu/__init__.py +0 -0
  698. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/cpu/blas.py +0 -0
  699. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/cpu/pool.py +0 -0
  700. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/cpu_backend.py +0 -0
  701. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/cuda_launch.py +0 -0
  702. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/device_facts.py +0 -0
  703. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/device_files.py +0 -0
  704. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/device_measure.py +0 -0
  705. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/device_names.py +0 -0
  706. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/host_memory.py +0 -0
  707. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/install_metal.py +0 -0
  708. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/install_steps.yml +0 -0
  709. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/launcher_contract.py +0 -0
  710. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/level_zero.py +0 -0
  711. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/level_zero_driver.py +0 -0
  712. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/libnames.py +0 -0
  713. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/metal_backend.py +0 -0
  714. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/metal_profile.py +0 -0
  715. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/process_memory.py +0 -0
  716. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/runtime.py +0 -0
  717. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/backend/triton_ext_driver.py +0 -0
  718. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/dtype/__init__.py +0 -0
  719. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/dtype/convert.py +0 -0
  720. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/dtype/dtypes.yml +0 -0
  721. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/dtype/itemsize.py +0 -0
  722. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
  723. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/dtype/outputs.py +0 -0
  724. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/dtype/policy.py +0 -0
  725. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/dtype/policy.yml +0 -0
  726. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/dtype/promotion.py +0 -0
  727. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/host.py +0 -0
  728. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/inspection.py +0 -0
  729. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/interop/__init__.py +0 -0
  730. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/interop/dlpack.py +0 -0
  731. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/io/__init__.py +0 -0
  732. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/io/constants.py +0 -0
  733. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/io/mapped_shards.py +0 -0
  734. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/arena.py +0 -0
  735. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/block_upload.py +0 -0
  736. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/deferred_frees.py +0 -0
  737. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/device_memory.py +0 -0
  738. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/device_transfer.py +0 -0
  739. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/expert_slots.py +0 -0
  740. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/fixed_state.py +0 -0
  741. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/host_spill.py +0 -0
  742. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/kv_host_pages.py +0 -0
  743. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/kv_host_tier.py +0 -0
  744. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/kv_session.py +0 -0
  745. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/layout.py +0 -0
  746. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/oom_advice.py +0 -0
  747. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/pages.py +0 -0
  748. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/shadow.py +0 -0
  749. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/slab.py +0 -0
  750. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/slot_stores.py +0 -0
  751. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/step_stabilizer.py +0 -0
  752. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/to_device_census.py +0 -0
  753. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
  754. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/__init__.py +0 -0
  755. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/_autotune_policy.py +0 -0
  756. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/_causal_conv1d.py +0 -0
  757. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/autotune_bucket.py +0 -0
  758. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/autotune_refusals.py +0 -0
  759. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/autotune_settings.py +0 -0
  760. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/axis_slices.py +0 -0
  761. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/certified_index.py +0 -0
  762. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/embedding_pool.py +0 -0
  763. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
  764. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/gated_delta_rule_census.json +0 -0
  765. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/host_decode_partial.py +0 -0
  766. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/launch_observer.py +0 -0
  767. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/oracles/__init__.py +0 -0
  768. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/oracles/attention_fp64.py +0 -0
  769. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
  770. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/oracles/fp64.py +0 -0
  771. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/residual_chain.py +0 -0
  772. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/screen_oracle.py +0 -0
  773. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/tiles.py +0 -0
  774. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/tiling.yml +0 -0
  775. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/tiling_policy.py +0 -0
  776. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/tiling_sizes.py +0 -0
  777. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/ops/token_filters.py +0 -0
  778. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/quant/__init__.py +0 -0
  779. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/quant/quantized_tensor.py +0 -0
  780. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/random/__init__.py +0 -0
  781. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/random/mt_randn.py +0 -0
  782. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/random/rng_pin.py +0 -0
  783. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/random/rng_stream.py +0 -0
  784. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/random/seeded_draw.py +0 -0
  785. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/shape/__init__.py +0 -0
  786. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/src/nbxtensor/terminal.py +0 -0
  787. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/_chunked_interpreter_run.py +0 -0
  788. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/_delta_rule_draw.py +0 -0
  789. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/_moe_route_draw.py +0 -0
  790. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/_no_device.py +0 -0
  791. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/conftest.py +0 -0
  792. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_benchmark_spends_its_time_budget_not_more.py +0 -0
  793. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_cards_expert_table_keeps_the_layers_length.py +0 -0
  794. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_causal_convolution_carries_its_last_taps_minus_one_columns.py +0 -0
  795. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_device_name_is_read_once_for_every_backend.py +0 -0
  796. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_device_naming_that_moves_nothing_is_counted.py +0 -0
  797. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_device_speed_is_what_it_moves_over_its_time.py +0 -0
  798. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_dropped_tensor_is_freed_after_the_work_that_reads_it.py +0 -0
  799. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_dtype_the_key_carries_is_never_dropped.py +0 -0
  800. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_failed_driver_call_refuses_the_peer_grant.py +0 -0
  801. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_fixed_state_is_allocated_zero_written_reordered_copied_and_forgotten.py +0 -0
  802. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_fixed_state_on_a_card_keeps_its_bytes_through_every_verb.py +0 -0
  803. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_frozen_plan_replays_its_launches_pre_bound.py +0 -0
  804. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_graph_constant_is_read_without_a_tensor_library.py +0 -0
  805. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_kernel_file_carries_the_header_of_its_provenance_class.py +0 -0
  806. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_kernel_time_session_ranks_launches_and_changes_no_byte.py +0 -0
  807. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_key_carrying_an_integer_dtype_is_synthesised_as_that_dtype.py +0 -0
  808. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_key_the_card_has_not_certified_is_refused_by_name_never_swept_for_the_moe_route.py +0 -0
  809. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_kv_page_goes_to_the_host_and_back_bit_exact.py +0 -0
  810. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_layer_on_several_devices_is_the_sum_of_their_shares.py +0 -0
  811. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_mapped_shard_gives_back_the_pages_of_a_copied_view.py +0 -0
  812. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_metal_fence_frees_only_the_pages_past_it.py +0 -0
  813. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_metal_kernel_runs_on_nbxtensors_own_stream.py +0 -0
  814. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_one_element_sentinel_is_saturated_to_a_half_range.py +0 -0
  815. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_probe_leaves_no_context_on_a_card_nobody_selected.py +0 -0
  816. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_promoted_slab_crosses_once_and_its_table_is_never_cached.py +0 -0
  817. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_refused_allocation_names_who_holds_the_memory.py +0 -0
  818. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_replayed_launch_binds_by_the_extents_it_was_launched_with.py +0 -0
  819. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_replayed_view_output_keeps_its_values.py +0 -0
  820. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_run_s_end_synchronises_only_where_a_mid_run_release_would.py +0 -0
  821. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_sampler_s_filters_keep_what_transformers_keeps.py +0 -0
  822. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_sequence_decodes_past_the_card_s_pages.py +0 -0
  823. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_setting_not_served_says_why.py +0 -0
  824. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_shadow_installs_where_the_runtime_has_no_driver.py +0 -0
  825. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_shadow_never_reads_a_host_copy_of_a_shadow_value.py +0 -0
  826. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_shadow_value_read_keys_off_the_dtype_name.py +0 -0
  827. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_single_card_plan_replays_as_one_graph.py +0 -0
  828. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_slot_store_ends_its_request_and_is_released_by_the_library.py +0 -0
  829. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_small_tensor_never_pins_a_large_block.py +0 -0
  830. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_spilled_sequence_attends_as_one.py +0 -0
  831. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_stack_of_stored_tensors_is_built_one_source_at_a_time.py +0 -0
  832. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_step_stabilizer_measures_once_then_serves_one_recycled_slab.py +0 -0
  833. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_stored_bf16_weight_is_measured_from_its_bytes.py +0 -0
  834. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_sweep_refused_everywhere_says_so.py +0 -0
  835. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_table_pin_holder_holds_one_pin_per_set_of_wraps.py +0 -0
  836. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_tensor_is_compared_bit_for_bit_and_knows_its_allocation.py +0 -0
  837. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_token_bitmask_leaves_only_the_allowed_logits.py +0 -0
  838. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_triton_kernel_compiles_for_amd_and_launches_through_hip.py +0 -0
  839. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_tuner_imported_late_gets_its_stored_settings.py +0 -0
  840. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_view_of_freed_memory_is_copied_out_first.py +0 -0
  841. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_weight_block_uploads_on_its_copy_stream.py +0 -0
  842. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_weight_set_is_released_after_its_devices_drain.py +0 -0
  843. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_a_weight_sets_memory_is_counted_then_held_by_the_library.py +0 -0
  844. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_allocator_interceptor.py +0 -0
  845. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_an_arena_counts_what_it_holds.py +0 -0
  846. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_an_array_enters_at_a_dtype_the_backend_has.py +0 -0
  847. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_an_array_is_taken_in_through_dlpack.py +0 -0
  848. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_an_attention_returns_its_rows_log_sum_exp.py +0 -0
  849. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_an_axis_is_read_and_written_a_slice_at_a_time.py +0 -0
  850. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_an_embedding_is_pooled_as_its_model_declares.py +0 -0
  851. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_an_expert_table_keeps_its_experts_alive.py +0 -0
  852. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_an_inspection_reads_every_value_once_on_the_host.py +0 -0
  853. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_array_api_promotion.py +0 -0
  854. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_blas_on_macos_14_runs_without_thread_control.py +0 -0
  855. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_cpu_pool.py +0 -0
  856. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_device_facts.py +0 -0
  857. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_device_files.py +0 -0
  858. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_device_memory.py +0 -0
  859. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_dtype_convert.py +0 -0
  860. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_dtype_outputs.py +0 -0
  861. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_dtype_promotion.py +0 -0
  862. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_gathered_kv_pages_are_the_per_layer_copies_bits.py +0 -0
  863. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_host.py +0 -0
  864. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_install_metal_fetches_only_what_it_names.py +0 -0
  865. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_io_bf16_split.py +0 -0
  866. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_keys_are_read_in_the_queries_order_and_one_head_per_group.py +0 -0
  867. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_level_zero_states_an_integrated_gpu.py +0 -0
  868. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_nbx_dtype.py +0 -0
  869. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_no_environment_switch_changes_a_kernel.py +0 -0
  870. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_one_token_of_the_gated_delta_rule_on_a_device_is_its_oracle.py +0 -0
  871. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_one_token_of_the_moe_route_on_a_device_is_its_oracle.py +0 -0
  872. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_ops_cost.py +0 -0
  873. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_policy.py +0 -0
  874. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_readme.py +0 -0
  875. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_shape.py +0 -0
  876. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_allocator_peak_is_read_and_restarted_through_the_memory_api.py +0 -0
  877. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_allocator_states_its_pool_and_its_blocks.py +0 -0
  878. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_attention_reference_is_softmax_qk_v_in_float64.py +0 -0
  879. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_backend_is_the_card_on_the_machine.py +0 -0
  880. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_chunked_gated_delta_rule_is_its_oracle_on_the_interpreter.py +0 -0
  881. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_compile_target_and_the_pool_s_counters_are_read_through_the_doors.py +0 -0
  882. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_compiler_key_is_prewarmed.py +0 -0
  883. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_delta_rule_oracle_is_the_recurrence_the_vendor_computes.py +0 -0
  884. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_device_door_installs_a_shadow_and_declares_a_target.py +0 -0
  885. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_expert_slots_copy_with_the_measured_launch.py +0 -0
  886. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_expert_slots_hold_what_the_host_copied.py +0 -0
  887. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_expert_slots_live_in_one_allocation.py +0 -0
  888. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_fp16_range_scan_names_the_first_weight_outside_the_range.py +0 -0
  889. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_fused_moe_op_refuses_before_any_device.py +0 -0
  890. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_gated_delta_rule_is_an_op_of_the_library.py +0 -0
  891. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_gated_delta_rule_over_a_length_on_a_device_is_its_oracle.py +0 -0
  892. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_gated_delta_rule_runs_over_a_symbolic_length.py +0 -0
  893. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_hip_driver_keeps_the_launch_contract.py +0 -0
  894. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_host_sees_slots_a_replayed_step_moved.py +0 -0
  895. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_int4_moe_decode_band_matches_the_oracle.py +0 -0
  896. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_kv_host_tier_keeps_whole_pages_by_prefix.py +0 -0
  897. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_launcher_refuses_a_backend_it_has_no_driver_for.py +0 -0
  898. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_level_zero_backend_keeps_its_contracts.py +0 -0
  899. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_level_zero_driver_issues_the_recorded_ze_calls.py +0 -0
  900. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_malloc_trace_names_the_wrapper.py +0 -0
  901. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_matmul_oracle_is_windowed_by_rows_above_the_cap.py +0 -0
  902. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_metal_dispatch_facts_are_declared_or_refused.py +0 -0
  903. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_moe_route_device_comparison_goes_red_on_a_wrong_set_or_weights.py +0 -0
  904. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_moe_table_refuses_experts_of_two_layouts.py +0 -0
  905. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_oracle_reads_only_its_windows_off_the_device.py +0 -0
  906. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_pool_states_its_rules_for_a_device.py +0 -0
  907. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_shadow_device_answers_without_a_driver.py +0 -0
  908. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_shadow_reads_a_dtype_by_name_not_by_str.py +0 -0
  909. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_the_sync_counter_names_each_metal_kernel.py +0 -0
  910. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_third_party_notices.py +0 -0
  911. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_tiles_are_cut_padded_and_crossfaded.py +0 -0
  912. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_two_views_of_one_layout_are_the_same_memory.py +0 -0
  913. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tests/test_version.py +0 -0
  914. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tools/device_key_census.py +0 -0
  915. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tools/device_key_trace.py +0 -0
  916. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tools/kernels_provenance_audit.py +0 -0
  917. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tools/measure_the_chunked_gated_delta_rule.py +0 -0
  918. {nbxtensor-0.1.9 → nbxtensor-0.1.12}/tools/scatter_scan.py +0 -0
@@ -0,0 +1,917 @@
1
+ # Changelog
2
+
3
+ All notable changes to nbxtensor are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+ - Public names for what a planner reads: `nbxtensor.ops.matrix_units.matrix_unit` (moved from `ops._configs`, the one
12
+ decision point every library reader now goes through) and `nbxtensor.ops.operand.Spec` (moved from `ops._cost`,
13
+ which imports it); and `nbxtensor.backend.metal_device.device_limits()` (each limit asked through the device door, `nbxtensor.device.apple_gpu_limit(key)`, judged on its own), the Apple GPU's working-set budget and
14
+ largest single buffer asked of `MTLCreateSystemDefaultDevice()` without opening the Metal runtime, refused by name
15
+ (`MetalUnavailableError`, its reason) when the device cannot be asked.
16
+ - The host's speeds beside the device's (`nbxtensor.backend.host_measure`): `host_matmul_gflops` (a float32 GEMM on
17
+ numpy's BLAS) and `host_memory_gbps` (one host-memory copy), moved unchanged from NeuroBrix's planner, which keeps
18
+ calling its own copy until its side moves.
19
+ - The expandable range's chunk BY RULE per memory class (`nbxtensor.memory.chunk_rule`, data in `chunk_rule.yml`): on
20
+ a class with an entry the allocator takes the largest chunk of the class's measured grid that replayed faster than
21
+ the driver segments, is whole units of the device's VMM granularity, and lies within the allocator's bound (what a
22
+ refusal's reclaim can strand, (2 (B + 1) + 1) chunks for B large blocks live at the carried run's peak, within the
23
+ card's room over that peak; 75.7 MiB on the carried 16 GB trace). Both measured classes (16 and 32 GB) get 64 MiB, so
24
+ their first launch owes no chunk sweep (40-48 s on the rack, and its choice varied between 16 and 32 MiB). A class
25
+ with no entry is measured once and kept, as before.
26
+ - The library's bits epoch (`autotune_certified.BITS_EPOCH`, now 1): one number raised by every change that moves a
27
+ kernel's bits. Every proof the placement rule (`file_certification`) files carries it, and the entries a file holds
28
+ from another epoch are dropped as it files, so a certifying tool writes the new epoch with no change of its own. At
29
+ load a certificate of another epoch, or with none (every certificate written before the matrix-family rule of
30
+ 2026-11-22), is REFUSED BY NAME — the file, its epoch and the library's — and its keys take the normal autotune
31
+ path: a user who certified with the old library is not served stale settings after the upgrade.
32
+ - The machine's replay artifact (`autotune_cache`, the configurations its own sweeps chose) is named by the bits epoch
33
+ too (`autotune_configs_<arch>-<generator>-e<epoch>.json`, its screen exclusions likewise): after an upgrade that
34
+ raises the epoch the older artifact is never read, so it cannot seed back a setting the certificate's epoch refusal
35
+ sent to autotune. An artifact of another epoch, or under the old name of before the epoch (what every machine
36
+ holds today), is named once in the log — the file, its epoch and the library's — and its keys sweep.
37
+ - A weight reader that measures itself on the load it serves (`nbxtensor.io.reader.Reader`): the model's weight files
38
+ are read with parallel reads that start at one and double while the rate measured on those same reads rises, then
39
+ settle on the best width. Nothing is measured ahead of the load and nothing is kept; the caller sets the most reads
40
+ it allows (no default), and `measured()` returns the width reached, the rate at each width, the bytes and seconds.
41
+ A width an earlier load settled on can be handed back (`Reader(ceiling, start=)`): the reader starts there instead
42
+ of at one and keeps measuring it, and `measured()` gives every reading per width and the spread at the width
43
+ reached, so the application can keep the figure with its spread. The library itself keeps nothing.
44
+ - The weight reader judges a width on a window of its reads: the window opens once the reads started before the
45
+ width moved have ended, and each read gives it the bytes it moved inside it, pro rata to its life; a width is no
46
+ longer overrated by the reads carried into it nor underrated by the reads still in flight at its end. A window the
47
+ end of the load reaches before it is judged is not judged: a short load no longer settles a doubling or two low. A load
48
+ too short to conclude ends unsettled, and `measured()` then gives the best width it measured with its spread, never
49
+ the next width to try. `Reader.close()` ends its threads (the reader's maker owns its life). The read-rate trial
50
+ functions it replaces (`workers_for`, `measure`, `choose`, `mount_of`, `can_bypass_the_cache`) give a
51
+ `DeprecationWarning` when called.
52
+ - `backend.install_help.one_device_env(device)`: the environment of a child process that sees one device only, through the
53
+ variable the backend's runtime reads to hide devices.
54
+
55
+ ### Changed
56
+ - A matmul-family call runs one fixed unit by rule, never by a timing: where the device profile declares a matrix unit,
57
+ the operands' dtype has a representation on it and the call's rows fill its smallest tile, `mm`, `addmm`, `bmm`,
58
+ `baddbmm` and `conv2d` run on the unit, and every other call runs the FMA kernel; the fused mixture-of-experts GEMM
59
+ has its own rule, read from its activations' dtype only: float16 activations run on the unit's `mm` tiles whatever
60
+ their rows, any other dtype runs the FMA kernel; a device that declares no matrix unit has one path, the FMA kernel. Before, the certificate of a `mm`, an `addmm` or a
61
+ fused MoE launch chose between the two by which was faster on the card that certified it, so two certifications of one
62
+ key could answer a near tie two ways, and a launch with no certificate took the unit where a fused MoE took the FMA
63
+ kernel. The certificate now names only which of the unit's own tiles (all of one set of bits); an entry that names the
64
+ FMA kernel, or a tile the profile does not declare, is refused by name (`autotune_certified.refused_unit_entries`, said
65
+ once) and the rule's tile runs; `NBX_AUTOTUNE_CERTIFIED=off`, a confirmation run and a tuning sweep of the FMA kernel
66
+ no longer move the unit; a certificate's unit tile is no longer required to beat the FMA kernel's time.
67
+ - The cost of the fixed unit, from the shipped NVIDIA certificates: of the 9,752 entries timed on both routes, 447 (4.6
68
+ percent; 0.3 percent of the fp16 matmul keys to 16 percent of the fp32 addmm keys) were faster on the FMA kernel, by a
69
+ median of 13 to 208 microseconds per group of kernel, dtype and card class; 10,228 further entries were never timed on
70
+ the unit (no cost is known for them), and all 10,675 name the FMA kernel for a launch the rule gives to the unit: they
71
+ are re-certified by the certification queue.
72
+ - The library's tests no longer carry a test that imports the engine: the check that Prism's budget reader never builds a
73
+ card of 0 MB from a broken driver lives in the engine's tests, and the library's own check (the runtime's refusal is
74
+ raised by name) stays.
75
+ - The expandable pool's chunk probe runs each replay on its own card alone, and stops a candidate once more than half
76
+ of its replays lie on one side of the bound the driver segments set (with an odd count, a replay also stops at that
77
+ bound). It picks the same chunk as the full sweep on every draw; on the recorded seconds of a 4-card V100 rack it runs
78
+ 17 replays of 24 and about a tenth of their replay time. The replay still runs under the card size the trace was
79
+ recorded on: under the trace's own live peak the same events are refused and map more, not fewer.
80
+ `pool.simulate` now returns the chunks it maps and unmaps.
81
+ - The library names no application in the autotune record's module walk: the kernel modules it walks for autotuners are
82
+ its own (`nbxtensor.ops.`) and the prefixes the application registers (`autotune_cache.register_kernel_module_prefix`);
83
+ the engine's `neurobrix.kernels.ops.` prefix is gone from the source (the engine holds no autotuned kernel under it
84
+ today). The application gives the replay cache directory through `autotune_cache.set_replay_cache_dir` (a path or a
85
+ callable read when used), which wins over every default; the engine's own variable and `~/.neurobrix` home stay as the
86
+ default until the engine passes its directory, so the engine keeps its cache where it is, and leave with that call.
87
+
88
+ ### Deprecated
89
+ - The read-rate trial API of `nbxtensor.io.read_rate` (`workers_for`, `measure`, `choose`, `mount_of`,
90
+ `can_bypass_the_cache`, `WITNESS_BYTES`, `START_BYTES` and the private `_median_of_three`) has no caller once the
91
+ engine reads through `io.reader`; it is removed in the next library release. `read_seconds`, `trial`, `pieces`,
92
+ `PIECE`, `evict` and `cold_read_gbps` stay.
93
+
94
+ ### Fixed
95
+ - The test that gates Python `and` / `or` in the library's kernels spares a boolean operator in an `if`, `while` or
96
+ conditional-expression test only when its operands are compile-time values (it spared any test by position), and finds a
97
+ kernel through the module's imports (`import triton as t` with `@t.jit` was missed). No kernel of the library changes.
98
+ - The test that gates Python `and` / `or` in the library's kernels states what the engine's own gate reads (the library's
99
+ `ops` kernels too, where it was red on the matrix-vector kernel) and what a mixed expression loses (the dropped
100
+ operand's effects and block shape, not a mask); only its text changes.
101
+ - The copy of U a tuning call holds is read from the chunked gated delta rule's workspace entry for U, not typed beside
102
+ it, so the cost's copy and the buffer the kernel launches cannot drift apart; a test changes the workspace's U and
103
+ the copy follows.
104
+ - A tuning keyword the installed Triton's autotuner lacks is refused with the kernel's qualified name in the message
105
+ (`module.kernel`), so a failure at import says which kernel asked for it.
106
+ - Where the library hands a launch to Triton's own driver (a kernel that is not the library's, and the differential arm
107
+ `NBX_LAUNCHER=triton`), it first finds the C compiler that driver builds its C helper with, resolved as Triton resolves
108
+ it (`CC`, else `gcc` then `clang` on PATH), and refuses a missing one by name (`NoCCompiler`) instead of failing on
109
+ "Failed to find C compiler" inside the first build. A `CC` naming a compiler that does not exist is refused by that name.
110
+ The library's own launch path needs no C compiler and is not checked: a kernel compiles to its binary with the vendor's
111
+ assembler and the library's driver loads it. Triton builds only on a cache miss, so a machine whose Triton cache already
112
+ holds the built helper keeps working with no compiler: the refusal is registered as Triton's build implementation
113
+ (`triton.knobs.build.impl`), which Triton reaches only on a miss, and the driver is made at once, so the helper loads
114
+ from the cache or the miss is refused by name before the hand-back.
115
+ - The launcher checks the installed Triton once against the floor the library declares and refuses a Triton below it by
116
+ name, with no fallback: the dependency's floor binds only where pip installs Triton, so on a Mac or with a source-built
117
+ Triton anywhere an older one still failed on an AttributeError at the first launch (qa on 1217). The floor is read from
118
+ the declaration (the dependency line of `pyproject.toml` beside the source, or the installed package's metadata), never
119
+ typed a second time; a local version such as `3.8.0+git4a15f415.nbx1` is read as its release, and a pre-release is
120
+ below the release it precedes.
121
+ - The library's metadata states its Triton floor, 3.5.0 (`triton>=3.5.0`), the first release with everything the launch
122
+ path calls without a fallback (`JITFunction._pack_args`, `is_gluon`); it allowed any Triton before, and an older one
123
+ failed on an AttributeError at the first launch. A test reads the declared floor and the installed Triton against it.
124
+ - No kernel of the library uses Python's `and` / `or` to produce a value, which Triton deprecates on tensors and
125
+ short-circuits without a word on compile-time constants; a test reads every kernel for it. The one case, a
126
+ compile-time check in the matrix-vector kernel, computed the right answer and is now two checks.
127
+ - The cost of the chunked gated delta rule names the copy of its U buffer a call that tunes holds (134 MB at a
128
+ length of 8192 with 32 value heads of 128): its peak memory is now the cold call's. Before, that copy was left out,
129
+ so a memory plan could fit a call whose first run did not fit.
130
+ - A kernel's tuning keyword that the installed Triton does not take is refused by name when the kernel is defined.
131
+ Before, it was dropped with a warning, so a Triton lacking `restore_value` or `reset_to_zero` would have tuned an
132
+ overwriting or accumulating kernel on its previous configuration's output.
133
+ - Certification measures every candidate configuration from the state the caller gave: the arguments a kernel declares
134
+ `restore_value` are copied back and those it declares `reset_to_zero` are zeroed before each run, as Triton's own
135
+ tuning does. Before, a kernel that overwrites an input or accumulates into a buffer gave every candidate after the
136
+ first the previous candidate's result as its input, so correct configurations could be excluded and wrong ones kept.
137
+ - A device block taken while the memory pool was on and freed while it is off goes back to the pool, and its segment
138
+ goes to the driver once wholly free. Before, the free handed that one block to the driver alone: the driver refused
139
+ a block inside a segment, and released the whole segment for its first block while the segment's other blocks were
140
+ still in use, so the next write to one of them crashed the process.
141
+ - A tensor zeroes in place with `zero_()`, so a kernel that declares `reset_to_zero` tunes through Triton's own tuning.
142
+ Before, that tuning failed with "object has no attribute 'zero_'". Zeroing a strided view with `fill_(0)` now
143
+ zeroes that view's elements only; before, it cleared a contiguous span from the view's first element.
144
+ - Every kernel launches through nbxtensor's launcher whatever module a program imports first: each kernel module
145
+ installs it. Before, a program whose first kernel came from a module other than `wrappers`, the twelve `*_wrappers`
146
+ modules, `token_bitmask` and `memory.kv_host_pages` (the chunked gated delta rule imported alone) failed on Apple
147
+ with "Arg 0: expected an MPS tensor".
148
+ - The chunked gated delta rule gives the right result on its first, untuned call: tuning now restores the buffer its
149
+ state kernel overwrites. Before, the first call of a run with no tuning cache returned a wrong output and state.
150
+ - Conv2d and the mixture-of-experts kernels no longer refuse an NVIDIA card for want of its shared-memory figure, on
151
+ any card the bundled compiler targets. They size their tiles by the card's shared memory per block and refuse by
152
+ name when no device file states it; the library described
153
+ only compute capabilities 7.0, 8.0 and 9.0, so a Pascal, Maxwell or Blackwell card got a refusal instead of a run,
154
+ and, with the library alone, a Turing card read Volta's 96 KB and an Ada card Ampere's 164 KB, figures above the
155
+ card's own 64 KB and 99 KB: tiles offered that the card cannot hold. The library now describes 5.x, 6.x, 7.5, 8.9,
156
+ 10.x and 12.x in its own device files (Turing, Ada and Blackwell moved from the engine's files, where the library's
157
+ keys had stayed), each figure with its NVIDIA source. A minor without a file of its own reads a file of its major
158
+ only where that file lists it with its own figures, every documented minor listed (10.7 holds 327 KB per block where
159
+ 10.0 holds 227); a minor no file documents is refused by name, never handed its major's figures. Sm_86 (A10, A40, RTX 30) now reads its own 99 KB where it
160
+ read sm_80's figure, and sm_80 reads 163 KB, the documented figure per block, where 164 KB (the figure per SM) was
161
+ written. A test checks every target of the shipped ptxas against NVIDIA's documented figures.
162
+ - Conv2d gives the same bits whichever launch candidate the run-time autotune picks. Its input features are summed in
163
+ one fixed 16-wide chunk order whatever the candidate, and on a GPU whose threadgroup memory cannot hold a
164
+ candidate's float32 accumulator tile that candidate is no longer offered: Metal lowers such a tile in passes and
165
+ adds in another order (on an Apple M4 Pro every 64 KB tile gave other bits than the 32 KB ones). The limit is read
166
+ from the device profile: Apple GPUs keep 34 of the 36 candidates, a V100 all 36. A test launches every candidate
167
+ conv2d may choose and requires one set of bits.
168
+ - A device tensor still alive when the program exits no longer prints "Exception ignored ... TypeError: 'NoneType'
169
+ object is not iterable" while a slab-served run's interceptor is installed: a tensor freed while the interpreter
170
+ shuts down frees nothing, since the driver takes every device buffer back with the process.
171
+ - On Apple GPUs, a timing event now comes after the kernels launched before it: the benchmark (`launcher.do_bench`)
172
+ and the certification timer measure the kernel. Before, every matmul read about 0.1 ms whatever its size (a 2048^3
173
+ fp16 matmul: 0.08 ms against 3.0 ms by the wall clock), so autotuning and certification on Metal ranked their
174
+ configurations on a number that did not depend on them. Ordering events (expert slots, weight block uploads) now
175
+ also come after the work encoded before them. The same timer serves the run-time autotune of a key with no
176
+ certificate on the user's own machine, and a test now proves that path ranks on times that follow the work.
177
+ - A served model gives the same answer on every fresh install. Softmax, RMS norm, layer norm, the vector GEMV and the
178
+ paged decode attention summed in an order that followed their launch configuration (warps, rows per program, the K
179
+ chunk, the attention tile), and a key with no certificate gets its configuration from a run-time autotune that picks
180
+ by timing, so two installs could pick differently and round differently. The fault was already in published
181
+ releases: nbxtensor 0.1.3 (with neurobrix 0.6.8) and 0.0.8 (with neurobrix 0.6.3) changed the fifth answer of a
182
+ granite-3.1-1b-a400m conversation on some fresh installs and not others, on both V100 memory classes (2 and 3 of 6
183
+ on a 32 GB card; each old release ran on a fresh install holding this release's measured hardware profile, copied
184
+ in). Every candidate of these kernels now sums in one fixed order: row sums and dot products pairwise
185
+ in a fixed tree, the GEMV over K in fixed 128-wide sub-chunks, the paged decode by one fixed 64-position tile; the
186
+ norms divide correctly rounded. With this release the same conversation gave the vendor's answer on 36 of 36 fresh
187
+ installs, 18 on each memory class, where the library before it gave it on 17 of 24. Cost on a V100: the paged decode
188
+ kernel is 3 to 10 % slower, a served chat within run-to-run noise (8000-token context: 101 against 103 tokens/s);
189
+ the norms and the GEMV are within noise. Tests launch every candidate of these kernels, and of matmul, addmm and
190
+ baddbmm, and require one set of bits. A norm over a feature width of 1 computes (the single product), and a GEMV
191
+ candidate whose K chunk is not a whole number of sub-chunks is refused when it is compiled instead of storing a
192
+ partial sum.
193
+
194
+ ## [0.1.11] - 2026-11-18
195
+
196
+ ### Fixed
197
+ - nbxtensor installs on native Windows: triton is asked for only where PyPI publishes it,
198
+ `triton; sys_platform == 'linux' and (platform_machine == 'x86_64' or platform_machine == 'aarch64')` (PyPI's
199
+ triton files are manylinux x86_64 and aarch64 wheels alone); `triton; platform_system != 'Darwin'` had no solution
200
+ on win_amd64. macOS keeps its Metal Triton built from source, as before.
201
+
202
+ ### Added
203
+ - Per-kernel GPU time on CUDA: `kernel_times` puts every launch and every copy or set that reaches a device between two
204
+ timing events on its stream (`nbxtensor.backend.cuda_profile`), the host never waiting, so the run keeps its cadence;
205
+ the table adds the GPU time between kernels, the session's own host time, the most its figures overstate the kernels
206
+ and the wall time no interval holds. Another backend than Metal and CUDA is refused by name; the output bytes do not
207
+ change.
208
+ - `nbxtensor.ops.moe_route.moe_route` routes the token step and the prefill alike, over `[T, H]` or `[B, T, H]` in one
209
+ launch (one program per token row: a row routed inside a prefill is the row routed alone, byte for byte), with its op
210
+ census (`ops/moe_route_census.json`), its certification keys (`tools/moe_route_certification_keys.py`, from
211
+ `launch_keys.moe_route_launches`) and its synthesis in the certification harness.
212
+ - The routing reads its hidden rows at any batch stride (a view of a longer buffer), proven by a padded-stride case on
213
+ the interpreter; `ops/moe_route.py` and `tools/moe_route_certification_keys.py` are listed in the kernels' provenance
214
+ table (written here, class A).
215
+
216
+ ### Changed
217
+ - A flash launch with fewer query rows than keys whose own key the directory does not hold is served the certified
218
+ square key of its key length (`launch_keys.square_default_key`), at the launch site and when a warm replay cache is
219
+ seeded; a confirmation run refuses by name only when the square is not certified either.
220
+
221
+ ## [0.1.10] - 2026-11-17
222
+
223
+ ### Fixed
224
+ - The chunked gated delta rule's kernels take their program ids as 64-bit integers (`tl.program_id(..).to(tl.int64)`),
225
+ so the flat offsets they compute do not wrap on a long sequence.
226
+
227
+ ### Changed
228
+ - The gated delta rule's census names follow the public-name rule (a public name states nothing of the application):
229
+ `GATED_DELTA_RULE_CENSUS`, `GATED_DELTA_RULE_CENSUS_FORMAT` and `gated_delta_rule_census` are private
230
+ (`_GATED_DELTA_RULE_CENSUS`, `_GATED_DELTA_RULE_CENSUS_FORMAT`, `_gated_delta_rule_census`); the six
231
+ `cache_clear` call sites of the tests name the private reader.
232
+
233
+ ## [0.1.9] - 2026-11-17
234
+
235
+ ### Added
236
+ - The gated delta rule over a sequence has a chunked form beside its serial scan
237
+ (`nbxtensor.ops.gated_delta_rule_chunked.gated_delta_rule_chunked_wrapper`, ported from flash-linear-attention, MIT):
238
+ 64 tokens solved at a time with matrix products, every product and the state float32, the state handed to and from
239
+ the serial scan unchanged. Its cost is `nbxtensor.ops._cost.gated_delta_rule_chunked` (the float32 workspace by name),
240
+ its launch keys `launch_keys.gated_delta_rule_chunked_launches`.
241
+ - The op `gated_delta_rule` runs the form the census beside the kernel (`ops/gated_delta_rule_census.json`) certifies
242
+ for the call's dimensions: one token always runs the serial scan; a call whose dimensions are in no cell is refused
243
+ by name. Every cell ships uncertified (the serial scan runs, the output bytes unchanged) until
244
+ `tools/measure_the_chunked_gated_delta_rule.py` measures it on a card against the serial scan and flash-linear-
245
+ attention's chunk form.
246
+ - `nbxtensor.io.safetensors.stack_shards` / `concat_shards` (`ShardRef`, `ShardConcat`, `ShardStack`): one parameter
247
+ built from several stored tensors, in the stored dtype, peak memory the result plus one source; disagreements raise
248
+ `ShardsRefused` naming the sources.
249
+ - `nbxtensor.ops.moe_route.moe_route`: the routing of a mixture-of-experts layer for one token as one kernel (the
250
+ float32 router product, sigmoid or softmax scores, an optional choice bias, grouped or ungrouped top-k, the
251
+ renormalised and scaled weights), refused by name outside its shapes, dtypes and attributes; its launch key
252
+ `launch_keys.moe_route_launches`, its float64 reference `oracles.fp64.moe_route_oracle`. It stays outside the
253
+ dispatch table and reaches `fused_moe` through its precomputed-routing entry.
254
+
255
+ ## [0.1.8] - 2026-11-15
256
+
257
+ ### Added
258
+ - `nbxtensor.memory.peak_memory_allocated(device)`, `reset_peak_memory(device)` and `pool_stats()`: the allocator's
259
+ peak, its restart and the pool's counters through the public API.
260
+ - `nbxtensor.device.target_name()` (`<backend>-<arch>`, as measured and certified settings are keyed),
261
+ `declare_target(maker, capability)` and `install_shadow(devices)` (a card-less process that forms every launch key a
262
+ run would, refused with `DevicesVisible` while a device is in sight); `TargetNotDeclarable` names a target that
263
+ cannot be formed from a capability number.
264
+ - `nbxtensor.profile.kernel_times()`: where a real run's GPU time goes on Metal, kernel by kernel (and the copies as
265
+ one row). Inside it every launch runs alone and is timed on the GPU at its own boundaries: the table ranks kernels;
266
+ it is not the production speed, and its header says so. The output bytes do not change.
267
+
268
+ ### Changed
269
+ - The replay runs as CUDA graphs wherever the backend offers them, on one card too: a plan recorded on one card (the
270
+ record naming its card, a device sync on that card) is captured as one graph; a plan that crosses cards is refused by
271
+ name before any capture, and a refused capture keeps the direct replay for its bucket. The opt-in switch
272
+ (`NBX_REPLAY_GRAPH`) is gone; the output bytes are identical.
273
+ - The fused SwiGLU with split gate and up tensors runs as one element-wise launch at the element-wise class's certified
274
+ tile (its fixed 16 x 1024 tile spilled): the same bytes.
275
+ - On an Apple M4 Pro the command stream is committed every 16 dispatches (`backend/devices/apple/apple_m4_pro.yml`):
276
+ the GPU starts a step while the host is still encoding it.
277
+
278
+ ### Fixed
279
+ - `served_certification` answers what a launch is served: a key certified under its generator's alias (the one hop
280
+ a launch's lookup takes) is found by a planner too, so a plan no longer counts a served key as missing.
281
+ - A peer question the GPU runtime fails is refused by name (`DeviceAllocator.can_access_peer`), never read as "no
282
+ peer"; the expandable memory range asks that one door which cards may reach its memory.
283
+ - `install_shadow(devices)` installs on a host whose GPU runtime is there without its driver (it sees no device);
284
+ a driver that loads and refuses still raises its `DeviceQueryError`.
285
+
286
+ ## [0.1.7] - 2026-11-13
287
+
288
+ ### Changed
289
+ - `nbxtensor.dtype.outputs.amp_fp32_output_dtype`: under float16 compute on a graph built wider than half (float32,
290
+ float64), an op computed in float32 inside stores float32 unless the record narrows it; the range contract (`safe`)
291
+ narrows half graphs only, as the bfloat16 rule already keeps a float32 model's float32 outputs.
292
+ - `nbxtensor.memory.kv_host_tier.host_tier_pages(budget_bytes, num_layers, k_page_bytes, v_page_bytes)` takes a
293
+ page's parts and sizes the page itself.
294
+ - A decode step that stabilizes its allocations serves them from one recycled `StepSlab` from its first stabilized run.
295
+
296
+ ### Added
297
+ - `nbxtensor.memory.weight_arenas()`: a weight set's memory, counted per device and in page-locked host memory,
298
+ allocated once and pinned once its host weights are written.
299
+ - `nbxtensor.io.safetensors.mapped_view`: a host tensor over a weight's bytes inside a read-only mapped file, no byte
300
+ copied.
301
+ - `nbxtensor.io.mapped_shards`: weight files mapped once each, the spans host views are built over, and the pages of a
302
+ view's span given back once its bytes are copied to the device (`ShardMaps`, `drop_pages`).
303
+ - `nbxtensor.memory.slot_store`, `end_store_request`, `release_store`: a compiled sequence's slot memory and its
304
+ request and unload lifecycle, with `store_held_bytes` and `store_contents` for diagnostics.
305
+ - `nbxtensor.memory.step_stabilizer.StepStabilizer`: a decoding sequence's step slab over its first runs (pass through,
306
+ measure, then carve from one recycled slab), ticked once per run.
307
+ - `nbxtensor.memory.host_spill.spill_bytes_per_position`: the host bytes one spilled KV position costs, for a server
308
+ that sizes its reach before any spill exists; `HostPages.nbytes()`: the host bytes its slices hold.
309
+ - `nbxtensor.inspection.label`: a tensor as a diagnostic line names it (shape, dtype, device and the object's id).
310
+ - `nbxtensor.interop.copy_to_address` and `host_bytes`: a tensor's values handed to another array library, into its
311
+ own device buffer or as host bytes in C order.
312
+
313
+ ## [0.1.6] - 2026-11-13
314
+
315
+ A device and memory API that names every answer of the GPU runtime, refusals included.
316
+
317
+ ### Added
318
+ - `nbxtensor.device`: the devices a process sees, the one it works on, the one the next kernel launch runs on, when
319
+ they drain and what each has free (`count`, `current`, `select`, `select_for_launch`, `synchronize`, `drain`,
320
+ `mem_info`, `most_free`).
321
+ - `nbxtensor.memory` answers the allocator's figures and the pool's controls by name (`memory_allocated`,
322
+ `pool_cached_bytes`, `peak_device_bytes`, `empty_cache_pool`, the held-memory windows and others): an application
323
+ calls these names, not the allocator class.
324
+
325
+ ### Changed
326
+ - Every device answer is exact or a named error. Counting the devices answers 0 only when the host has no GPU runtime
327
+ or the runtime reports no device; a driver error raises `DeviceQueryError` with its code. Choosing the device with
328
+ the most free memory and listing the devices consider every device. A device's free and total memory are its
329
+ measured figures, or `DeviceQueryError` when the driver refuses or the process does not see the device, so a plan is
330
+ always made from what the card really has.
331
+
332
+ ## [0.1.5] - 2026-11-12
333
+
334
+ Triton models on Apple GPUs several times faster, and the NeuroBrix engine's remaining tensor work as library calls.
335
+
336
+ ### Changed
337
+ - Triton models on Apple GPUs run several times faster: nbxtensor now runs each compiled kernel on its own Metal stream,
338
+ in order, and waits for the GPU only where a result is read, instead of after every kernel. Measured on an M4 Pro,
339
+ outputs byte-identical: TinyLlama 1.1B, 256 tokens, 46.2 s -> 8.1 s; granite-3.1-1b-a400m (mixture of experts),
340
+ 128 tokens, 22.5 s -> 4.7 s.
341
+ - A device assert raised in a kernel surfaces at the next read of a result (or the next launch).
342
+ - `NBX_SYNC_TIMING=1` on Apple now counts launches and the time spent issuing them, per kernel; there is no per-launch
343
+ wait left to time.
344
+ - The library's documentation lives in its own `docs/` (the API reference, the backends' contract, the device keys;
345
+ `docs/design/` the allocator, cost and design notes; `docs/history/` the inventory and the migration record) and
346
+ the three tensor reference pages (tensor cores through linear layouts, the certified-autotune method, recording a
347
+ replay in a one-shot request) with the Triton CPU install page. The README links them in this repository.
348
+ - The int4 MoE decode band's tiles, warps and stages are the defaults the environment variables NBX_MOEV_BN, _BK,
349
+ _WARPS, _BND, _WARPS_D and _STAGES gave them; the band reads no environment variable.
350
+ - `memory.deferred_frees`: `DeferredFrees`, `Drain`, `sync_devices_of` — the tensors a run drops, released in batches
351
+ at a bytes cliff, a count or (pool off) a free-memory reserve, every owning device synchronised first, and the
352
+ allocator's out-of-memory reclaimer while the batch lives. The engine's two hot loops held this queue themselves.
353
+ - `NBXTensor.item()` on a bfloat16 element returns its value, read as the high half of a float32.
354
+
355
+ ### Added
356
+ - `memory.block_upload` (`open_copy_stream`, `upload_block`, `wait_for_upload`, `drop_upload_events`,
357
+ `close_copy_stream`, `wait_device`): a block of host weights uploaded to one device on a copy stream with an
358
+ ordering-only readiness event the compute stream waits on (synchronous, with no event, given no stream), and the
359
+ stream's and events' release. Moved from the NeuroBrix engine's zero3 strategy, which keeps which block moves, when,
360
+ and how much stays resident.
361
+ - `memory.shadow.install_shadow(devices)`, `shadow_launch`, `shadow_device`, `DevicesVisible`: the whole shadow device —
362
+ the allocator's direct operations, streams, events and device queries answered without a driver, every launch skipped,
363
+ a value read answering a host-born value or a benign one — refused while a device is visible. Moved from the NeuroBrix
364
+ engine's census, which keeps which keys are recorded and its own seams; `from_numpy`'s stand-in now takes every
365
+ argument `from_numpy` takes.
366
+ - `nbxtensor.interop.from_dlpack(obj, device=None)`: take in another library's array through DLPack (a torch tensor,
367
+ a numpy array): host memory is copied in the order it shows, strided views and bfloat16 included; this backend's own
368
+ device memory is used in place (a strided one is first made contiguous on the device); another vendor's device
369
+ memory is refused with its name.
370
+ - `backend.triton_ext_driver.kernel_name(kernel)`: the name a Metal kernel was loaded under. The sync counter
371
+ (`NBX_SYNC_TIMING=1`) ranks Metal kernels by their own names.
372
+ - `ops.moe_fused.fused_moe(gate_scores, hidden_states, gate_weights, up_weights, down_weights, top_k, num_experts,
373
+ ...)`: a whole mixture-of-experts layer in one call — the routing (top-k and renormalisation, or a blended routing
374
+ taken as given), host experts promoted for the call, the experts' pointer tables, and the path the call's shape and
375
+ placement take (the one-token SIMT bands, the grouped GEMMs, an expert store's slots in runs of experts, the layer
376
+ split over devices); it refuses by name, before any device, a backend that cannot read through a loaded pointer.
377
+ `StackedSlabPromotion` brings a host-resident stacked expert slab to the device once and whole. The NeuroBrix engine
378
+ carried both; it now keeps only its switches and what its diagnostics print.
379
+ - `ops.moe_wrappers.moe_decode_vec_int4_pass(...)` and `MOE_INT4_GROUP`: one decode token through a routed layer of
380
+ int4-g128 experts (the `ops.moe_decode_vec` int4 kernels), its launch settings named constants of the module.
381
+ - `memory.pointer_tables.tables_for_call(...)`: the pointer tables of one call — fresh for weights that live for the
382
+ call alone, cached otherwise (public; it was private).
383
+ - `ExpertSlotStore.decodes_on_card(layer)`, `on_routed(layer, routed, host)`, `on_enqueued(layer, routed)`: what the
384
+ fused op asks and tells a store, answered by default; a subclass decides more.
385
+ - `ops.autotune_harness`: the kernel-level harness of a certification — a key's operands drawn at the kernel's width
386
+ (`draw`, `Synth`, `upload`, `NP_DTYPES`), the size a key is drawn at (`Room`, `shortest_row`, `gemm_rows`), the
387
+ operands it draws (`key_operands`), the wrapper run on them with its lazy float64 reference (`synthesize`, every
388
+ autotuned kernel family), the reference of the launch the autotuner sees (`launch_oracle`), every candidate launched
389
+ on a poisoned output, measured and timed (`LaunchUnderTest`, `launch_and_measure`), the matrix unit's candidates
390
+ (`unit_runs`, `fused_moe_unit_runs`), the regime witness (`witness_ms`, `time_launch`) and the configurations
391
+ (`candidate_configs`, `stored_config`, `config_dict`). Moved from the NeuroBrix engine's certifier, which keeps which
392
+ keys, the tolerance, the timing protocol, the memory budget and the certified files.
393
+ - `ops.oracles.fp64`: the kernel families' float64 references for a certification (products, MoE, attention, softmax,
394
+ GEMV, row and group norms, row reductions, convolutions), whole under `ORACLE_MAX_MACS` and on windows of the output
395
+ above it (`row_windows`, `conv_windows`, `RowWindowedOracle`, `WindowedOracle`, `HostWindows`), and a kernel's output
396
+ measured against one (`deviation_against`, `oracle_deviation`, `host_values`). Moved from the engine's certifier.
397
+ - `ops.attention_wrappers.flash_route_heads`: the fewest heads with which the attention wrapper's route takes the flash.
398
+ - `ops.autotune_cache.config_to_dict`, `config_from_dict`: a Triton config as the sweep store and a certified directory
399
+ record it, and back (formerly private).
400
+ - `NBXTensor.from_numpy_as(arr, dtype, device)` and `NBXTensor.new_tensor(data)`: a host array's values placed at a
401
+ dtype (a float64 array narrowed to float32 on the host first, since a backend without float64 misreads it), and
402
+ torch's `new_tensor` (a tensor's own dtype and card). Moved from the NeuroBrix engine's computed-buffer placement.
403
+ - `io.constants.archived_storage`, `io.constants.constant_array`: a graph constant's stored bytes (the archive
404
+ `torch.save` writes) read and decoded to the dtype it is bound in, without a tensor library. Moved from the engine's
405
+ constant loader.
406
+ - `ops.tiles` (`crossfade_ramp`, `tile_window`, `TileBlend`): a tensor computed tile by tile — a tile read as a
407
+ contiguous edge-replicated window, results crossfaded across their overlaps and divided once. Moved from the
408
+ NeuroBrix engine's TilingEngine, which keeps where the tiles sit.
409
+ - `ops.axis_slices` (`take_slice`, `take_slice_cyclic`, `put_slice`, `whole_shape`, `own`, `accumulate`, `store`): an
410
+ axis read and written a slice at a time as views, and a contraction's partials summed in an accumulator dtype — the
411
+ stitch of a computation run in slices. Moved from the NeuroBrix engine's chunked region.
412
+ - `io.safetensors.bf16_abs_maxima`: the largest magnitude of every bfloat16 tensor of a safetensors file, from its
413
+ stored bytes. Moved from the engine's float16-safety scan.
414
+ - `DeviceAllocator.pool_cached_bytes`, `pool_enabled`, `pool_stats`, `blocks_in_use` and `Arena.bytes_on`: the
415
+ allocator's and an arena's figures for an application's memory lines, forensic dumps and per-key states. The engine
416
+ read the allocator's private tables (`_cuda_live_bytes`, `_POOL`, `_cuda_ptr_size`, `_pool_enabled`) in a dozen
417
+ places.
418
+ - `memory.oom_advice.held_memory_report(named, big, bucket)` and `Arena.census(large)`: after a refused allocation,
419
+ who holds the device's memory (blocks in use by size, the tensors alive on the large ones named or ORPHAN with their
420
+ referrers, autotuners still holding tensors) and what an arena holds by region. The engine's NBX_LIVE_DUMP_ON_OOM
421
+ dump walked the allocator's tables and Python's gc module itself.
422
+ - `memory.memory_pool.release_weights`, `join_weights` and `Arena.release`: a loaded weight set released after
423
+ every device holding it synchronised (the library's bias and pointer-table caches dropped, the pool emptied), a
424
+ second load's arenas joined to the first's, an arena cleared after its devices drain. The engine did each itself
425
+ (its arena clears synchronised only the current device).
426
+ - `nbxtensor.memory.release_weights`, `join_weights`, `pool_enabled`, `pool_parked_cap_bytes`, `pool_fit_slack`: the
427
+ application's door to the release and the pool's rules, beside `set_limit`.
428
+ - `memory.pool.parks_freed_blocks`, `parked_cap_bytes`, `fit_slack`: the pool's rules for a device, from its file — the
429
+ allocator's own switch, and what a planner prices the pool by. Prism read the same keys and switch again itself.
430
+ - `nbxtensor.backend.device_measure`: `matmul_tflops`, `gemv_gbps` and `copies` — a device's GEMM, decode-step GEMV
431
+ and copy speeds (device to device, page-locked and pageable host to device, device to host), timed through the
432
+ library's own kernels and copies. `io.read_rate.evict(paths)` and `cold_read_gbps(path)`: files out of the page
433
+ cache, and one cold sequential read. The engine's planner measured them with its own raw allocations and copies.
434
+ - `inspection.values_at(t, positions)`: a few values of a tensor at row-major positions, each element read alone after
435
+ a device synchronisation (a view read in its logical order, never its storage's). The engine's sequential value
436
+ sampler walked the strides and copied each element itself.
437
+ - `backend.device_names.ACCELERATOR_PREFIXES`, `accelerator_index(device)`, `to_named_device(tensor, device)` and
438
+ `synchronize_named(device)`: a device name ("cuda:1", "hip:0", "mps:0", "cpu") read once for every backend, a tensor
439
+ moved to the device it names, the named device waited for with the current device restored. The engine's Triton
440
+ strategies and its parked values each read device names themselves.
441
+ - `random.seeded_draw.draw_from_probabilities` and `draw_from_masked_logits`: one token drawn on the host from a logits
442
+ row in its own dtype (repetition penalty, greedy at temperature 0, top-p on the probabilities; or min-p and top-p
443
+ written on the logits), and `ops.token_filters.penalize_repeats` / `outside_nucleus` on a device row. The engine
444
+ held the same arithmetic six times (its Triton sampler, the encoder-decoder, dual-AR and TTS flows, and the
445
+ compiled twins of the last two); every copy draws the same tokens through these.
446
+
447
+ ## [0.1.4] - 2026-11-12
448
+
449
+ ### Added
450
+ - `ops.oracles.attention_fp64`: the attention family's float64 reference on query-row windows (moved from the
451
+ engine's certifier): K and V widened once, its products through BLAS — 10x faster on a long key range, same values.
452
+ - `nbxtensor.backend.frozen_plan`: the frozen-plan replay — a device step recorded once (the allocator's copies, sets
453
+ and synchronisations and the launcher's launches, as actions) and replayed as direct launches or captured device
454
+ graphs: `STATE` (the recording interceptor; `site_of`, the caller's predicate naming where a recording broke),
455
+ `FrozenPlan`, `install_seams`, `arm_launch_recorder`, the action tags. Moved from the NeuroBrix engine, which
456
+ keeps only when a step is recorded, verified and replayed.
457
+ - `frozen_plan.measure`, `room_for`, `slabs`, `record`, `retire`, `head_values`, `FrozenPlan.hand_out_outputs`,
458
+ `STATE.open_measurement`, `values_sha256`, `carved_from`: a step's slab measured, made room for, allocated and
459
+ recorded into, a rejected plan released — the mechanism of the replay's state machine, whose decisions stay the
460
+ caller's.
461
+ - `DeviceAllocator.give_back_cached(dev)`: a card's cached free memory (the expandable range's chunks, the pool's
462
+ blocks) back to the driver after its work ends.
463
+ - `StepSlab.for_carved`, `DeviceAllocator.register_idle_reclaimer`: a decode step's slab sized in the library; an
464
+ application's idle-memory reclaimer registered through a public call. A recording that cannot read the current
465
+ device now breaks its plan by name instead of recording an action without its card.
466
+ - `Arena.slots`: the slot list itself, for a reader pairing it with a snapshot.
467
+ - `NBXTensor.device_idx`: the card a tensor's memory is on.
468
+ - `NBXTensor.bits()`, `same_bits(other)`, `storage_root()`, `storage_address()` and `shares_storage(other)`: a
469
+ tensor read as the integers of its element width, a bit-for-bit comparison on the device (+0.0 and -0.0 differ, a
470
+ NaN equals itself), the allocation a view reads and whether two tensors view one allocation. The engine's invariant
471
+ state asks them before reusing or keeping a result; they lived in the engine until now.
472
+ - `nbxtensor.inspection`: `host_values`, `non_finite`, `value_stats`, `last_position_row` and `digest` — a tensor's
473
+ values read on the host for a diagnostic (a non-finite scan, the record a per-op value dump keeps, the last
474
+ position's row, a digest of the bytes in row-major order). The engine's NaN scan, value dumps and op fingerprints
475
+ call them instead of their own device-to-host copies.
476
+ - `memory.memory_pool.break_aliases(tensors, freed)`: before the tensors at `freed` (keys of a list or a dict) are
477
+ freed, every other entry viewing one of their allocations is replaced by its `contiguous()`. The engine's weight
478
+ eviction called its own two copies of it. An entry that is already contiguous is its own `contiguous()` and stays a
479
+ view of that allocation, as in those copies.
480
+ - `NBXTensor.saturated(dtype)`: a one-element float32 or float64 tensor holding a finite value beyond a half dtype's
481
+ range comes back as a new tensor (same dtype, shape and card) holding the clamped value (`saturate_scalar`);
482
+ anything else is itself. The engine's `where` wrap called its own copy, which uploaded to the current card.
483
+ - `memory.paged_kv.keys_seq_major(q, k, pre_transposed=None)` and `one_head_per_group(t, kv_heads, group)`: the keys
484
+ an attention reads put in the queries' order (the recorded layout first, the shape only without one, the square
485
+ case refused by name), and keys or values repeated for grouped-query attention read back as their own heads. The
486
+ engine's KV interceptor held both.
487
+ - `memory.pages.MetalStateFence`: the release fence of the Triton kernels' queue on Metal (`record`, `completed`,
488
+ `drain(pool)`), for the day launches stop waiting for their kernel; not in use today. It was the engine's
489
+ `triton/state_fence.py`, which nothing called.
490
+ - `memory.expert_slots.ExpertSlotStore(residency, device_idx, like, in_place=False)`: the device slots of a
491
+ mixture-of-experts component whose experts stay on the host — one arena carved into aligned views, the misses copied
492
+ into their slots on the store's own stream (`acquire`, `prefetch`), the experts of a unified device bound in place,
493
+ and for one decode token the residency kept on the card (`enable_device_decode`, `decode_on_card`: its slot map,
494
+ stamps and clock, the assign and miss-copy kernels' launches). Which expert sits in which slot stays the caller's: a
495
+ `residency` object answering a small written protocol. The engine carried all of this in its own store.
496
+ - `memory.expert_slots.HeldExperts(device_idx, layers)`: every expert of whole layers copied once into one arena on
497
+ another device.
498
+ - `ops.moe_wrappers.moe_align_block_size(topk_ids_flat, block_size, num_experts, device_idx, pairs=None)`: a routed
499
+ layer's (token, expert) pairs sorted by expert and padded to the kernel's row block, on the device — the launcher of
500
+ the three `ops.moe_align` stages, which the engine carried. `MOE_BLOCK_M` names the block to align by.
501
+ - `ops.moe_wrappers.moe_decode_vec_half_pass(...)`: one decode token through a routed layer of half-precision experts
502
+ (the `ops.moe_decode_vec` half kernels' three launches), which the engine carried.
503
+ - `ops.moe_multi_device.fused_moe_across_devices(hidden_states, flat_indices, flat_scores, tables, top_k,
504
+ num_experts, n_gate, block_m, act_dev)`: a routed layer whose experts sit on several devices, computed where its
505
+ weights are — one share per device of the layer's pointer tables, summed on the activations' device. The engine
506
+ carried this op, with its device-to-host and card-to-card copies; it now hands over the tables its placement built.
507
+
508
+ ### Changed
509
+ - The multi-device routed layer keeps the routing scores on the device.
510
+ - The slot store reads the card's clock at the size of the word it reads into, no byte count written in the code.
511
+ - `autotune_cache.seed_late(tuner)`, called at a tuner's first launch: a kernel module imported after the process's
512
+ first autotuned launch gets the machine's stored settings too (the certified directory first), once, so every new
513
+ process reuses the settings measured for the modules it imports late.
514
+ - **A driver error while a card's expandable pool asks which cards reach it is refused by name.** `memory.vmm.Vmm`
515
+ builds the access grant of its chunks from the driver's answers (`cuDeviceGetCount`, `cuDeviceGet`,
516
+ `cuDeviceCanAccessPeer`); an error in one of those calls raises at once, naming the call, its device and its status. A
517
+ driver that answers "not a peer" gives a grant naming the owning card, as before.
518
+
519
+ ## [0.1.3] - 2026-11-11
520
+
521
+ ### Added
522
+ - `NBXTensor.is_same_memory(other)` and `memory_layout()`: whether two tensor objects read the very same elements in
523
+ the same order (one address, device, dtype, shape and strides) — two views of one layout. The engine's replay asks
524
+ it before copying a re-bound weight onto its recorded buffer.
525
+ - `PagedTritonKVCache.replay_host_mark()`: the cache's host length, for a replay that mirrors what its recorded run
526
+ moved (the engine's replayed layer-streamed pieces).
527
+
528
+ ### Changed
529
+
530
+ - **A tensor of a card's expandable pool can be handed to another card.** The pool grows by mapping chunks into one
531
+ virtual range; a mapped chunk is readable from the devices its access grant names, and each chunk is granted to its
532
+ card and to every card that can reach it as a peer, so a tensor of any size living in the range is copied card to
533
+ card. One card: nothing changes.
534
+ - **A routed layer whose experts sit on two cards is read at the right experts.**
535
+ `memory.pointer_tables.build_ptr_tables` gives each card a table of the layer's length, each of its experts at its own
536
+ number (0 where another card holds the expert), as the grouped GEMM reads a table at the expert's number in the layer;
537
+ the launch's key, which carries that length, is the layer's. A layer held by one card is unchanged.
538
+ - **The library's messages speak of records and graphs.** Seven error texts reworded ("allocation record", "the
539
+ container's graph"). No behaviour changes.
540
+
541
+ ## [0.1.2] - 2026-11-11
542
+
543
+ ### Added
544
+ - `backend.capabilities.backend_kernels_read_data_ptr()`: whether a tensor's `data_ptr()` is the address a kernel
545
+ dereferences, stated per backend (CUDA and HIP yes; Metal no — a kernel there reads a pinned wrap's address,
546
+ handed by the launcher; Level Zero no — its kernels load no address from memory). What a launch over a table of
547
+ `data_ptr()` values stands on; a backend without a row is refused by name.
548
+
549
+ ### Changed
550
+ - **Apple: an address read through a pinned table is answered from a wrap that covers it.** The Metal driver keeps its
551
+ pinned whole-allocation wraps under their extent (base and size), so a view inside any block of a pool segment — a
552
+ slot of the Triton expert store's arena — resolves to the wrap that holds it, and `pinned_gpu_address` refuses by name
553
+ an address beyond the wrap it resolved. Proven by a test that builds the copying expert store (the one with an arena)
554
+ directly and runs it after nine earlier mixture-of-experts runs in one process. On Apple the engine builds a unified
555
+ device's store, which binds its experts in place, where they lie in the container's files; with the published 0.6.6
556
+ through `neurobrix serve`, on the two plans the mixture-of-experts model that fits a 24 GB Mac takes (resident, and
557
+ streamed layer by layer), all two million pinned addresses observed resolved inside their wrap, and every expert's
558
+ address to an allocation of its own. CUDA and Level Zero have no such wraps.
559
+
560
+ ## [0.1.1] - 2026-11-11
561
+
562
+ ### Added
563
+ - **`NBXTensor.from_numpy(arr, dtype=None, device=None)`**: with `device` (an index or `"cuda:N"`) the device is
564
+ selected, then the array placed; a device that names no index (`"cuda"`, `"cpu"`, a negative number) is refused by
565
+ name, never read as device 0.
566
+ - **Device files for Intel Gen12 graphics (`xe_lp`) and Wildcat Lake (`wcl`)**, experimental, not yet validated on
567
+ hardware by the NeuroBrix lab — reports welcome: the Level Zero driver tries these chips; their extension facts are
568
+ read from the chip's OpenCL ICD, never assumed. Intel's Triton compiler emits the same SPIR-V whatever architecture
569
+ name it is handed (measured off-card with triton-xpu 3.8.0, torch never imported), so a chip it names no
570
+ architecture for can be compiled for; the chip's own driver accepts or refuses.
571
+ - **A measure of the `.to(<device>)` calls that move nothing** (`memory/to_device_census.py`, off by default):
572
+ `NBXTensor.to("cuda:N")` answers "already on device" whatever N. With `NBX_TO_DEVICE_CENSUS=<file>` a process
573
+ appends one JSON line at exit — every device-naming call it saw and, by caller, those naming another device than
574
+ the tensor's. No behaviour changes; the count decides whether that contract can refuse or move.
575
+
576
+ ### Changed
577
+ - **A prefill chunk reads the positions spilled to host memory through the card**: `memory/paged_kv`'s spilled chunk
578
+ attention hands the spilled K / V back to the card in blocks (`HostSpill.blocks`, at most the card part's own key
579
+ count each, so a block's scores never exceed the chunk's) and runs the same attention with its log-sum-exp on each,
580
+ merged in a fixed order. The host partial (`HostSpill.partial`) stays the decode step's one row: for a chunk's
581
+ 32 x 128 query rows over 14 336 positions it cost 85-122 ms a layer on a Xeon Gold 6230 (40 threads), about half of
582
+ each spilled chunk of a 79 931-token turn (2026-11-10).
583
+ - **A Level Zero refusal is typed**: `backend.level_zero.IntelDeviceError` (a RuntimeError) carries the call, the
584
+ `ze_result_t` by name and the module's build log, raised by the runtime, the launch driver and a SPIR-V module that
585
+ does not build. The Intel backend is experimental — not yet validated on hardware by the NeuroBrix lab — and an
586
+ application decides on this type what a refusal means.
587
+ - **The Intel launch driver goes through its runtime's contract** (no behaviour change; the backend stays
588
+ experimental, not yet validated on hardware): `backend/level_zero.py` is the only module that knows a Level Zero
589
+ struct, constant or entry point of a module's life — `LevelZeroRuntime.build_module` (answers `ModuleBuilt`: the
590
+ result, the module, the build log; an error is answered, the retry is the driver's decision), `create_kernel`,
591
+ `kernel_properties`, `destroy_kernel`, `destroy_module`, `set_argument`, `set_group_size`, `append_launch`,
592
+ `current_device`. `backend/level_zero_driver.py` imported 14 private names and issued 12 raw `ze*` calls; it now
593
+ imports none and issues none, and holds the one decision that is a driver's (the 256-register rebuild, its two
594
+ constants beside it). `backend/launcher.py` names publicly what a driver in another file uses: `ModuleDriver`,
595
+ `ctypes_slot`. Proven without a card: the exact ze calls of ten load and launch paths, recorded before the move,
596
+ reproduced by it.
597
+ - **The library's uploads name their device in the call** (the spilled prefill chunk's blocks, masks and merged result,
598
+ the paged decode's host partial, the MoE residency probe): `NBXTensor.from_numpy(x, device=...)` places each one on
599
+ the device it names, whichever device is current, so a cache whose layers live on two cards gets each upload on its
600
+ own card.
601
+ - `NBXTensor.to` reads its positional argument in a named function (`_positional_target`); the method is 40 code
602
+ lines (49), same answers.
603
+ - **Reading a device's memory leaves no context on another device**: `DeviceAllocator.free_memory_mb`, `mem_get_info`,
604
+ `device_total_bytes` and the other probes restore a previous device after reading only when the process had selected
605
+ one (`DeviceAllocator.restore_device`), so a process that selected none creates no context on device 0.
606
+
607
+ ## [0.1.0] - 2026-11-10
608
+ ### Changed
609
+ - **Contributions are made under the NeuroBrix Contributor Assignment Agreement** (docs/legal/ of the neurobrix
610
+ repository, an individual and an entity version): signed once by a comment on the first pull request, for every
611
+ NeuroBrix project; the `NeuroBrix CLA` check on every pull request says who has yet to sign. CONTRIBUTING.md explains
612
+ it.
613
+ - **The authors' contact address is contact@neurobrix.org** (the package metadata), the project's address being
614
+ neurobrix.org.
615
+
616
+ ### Added
617
+ - **A decoding sequence may outgrow the card's KV pages**: past `card_pages`, `PagedTritonKVCache` moves its oldest
618
+ written pages to `memory.host_spill.HostSpill` (float32 in the attention's layout, bounded by a host budget) and keeps
619
+ decoding; each step's attention over the spilled positions is computed on the host
620
+ (`ops.host_decode_partial`) and joins the card's split partials in the same reduce launch — exact, the split-KV
621
+ merge. Qwen3-30B's attention shape on an M4 Pro: 131 072 spilled positions cost 15 ms per layer and step.
622
+ A prompt longer than the card's pages is prefilled chunk by chunk over the card and the host
623
+ (`memory.paged_kv` `chunk_attention`); on a V100 host with 40 threads, 131 072 spilled positions cost 25.8 ms per
624
+ layer and step.
625
+ - **An attention returns its rows' log-sum-exp**: `scaled_dot_product_attention_wrapper(return_lse=True)` returns the
626
+ natural-log LSE of each query row (fp32) on every route — math, chunked math, the flash kernels and the decode path —
627
+ so partial attentions over split keys merge exactly.
628
+ - **`nbxtensor.ops.token_bitmask`**: a token bitmask applied to a decode step's fp32 logits in place (constrained
629
+ decoding): every token whose bit is clear (bit v % 32 of int32 word v // 32, ceil(vocab / 32) words a row) set to
630
+ -inf before the sampler; the mask on the logits' own device, the element-wise launch's certified tile; a mask of
631
+ another shape or allowing no token refused by name. Torch-free.
632
+ - **A KV cache host tier**: `memory.kv_host_tier` (the prefix index of whole pages, the host page pool, the pages a
633
+ sequence holds), `memory.kv_host_pages` (host pages laid out [page][layer][K, V], pinned or pageable; per-layer
634
+ copies, and `offload_gathered` / `restore_scattered`: every layer's page gathered on the device by one kernel per K
635
+ and V, then one copy per page and run of layers — 43 MB in 21 / 8 ms against 184 / 210 ms per layer on a V100), and
636
+ the paged cache's `tier_*` protocol (layout, length, offload, restore in place, resume).
637
+ - **`nbxtensor.ops.embedding_pool`**: an embedding model's pooling on the host (`pool_hidden`: mean over the kept
638
+ positions, cls, or each sequence's last kept position whatever the padding side; `l2_normalize`), numpy and
639
+ torch-free; refusals by name.
640
+
641
+ ## [0.0.9] - 2026-11-09
642
+
643
+ ### Fixed
644
+ - **`python -m nbxtensor install-metal` installs the macOS 14 Metal wheels and CPython 3.10-3.13**: 0.0.8 carried the
645
+ macOS 15 / CPython 3.12 build only and refused every other Python by name. The table now holds the triton-ext release
646
+ apple-v0.1.0+triton3.8.0-macos14 (Triton 3.8.0 and nbx-triton-apple 0.1.0, macOS 14.0 arm64, CPython 3.10, 3.11,
647
+ 3.12 and 3.13, each sha256 read on the downloaded file and equal to the release's SHA256SUMS) beside the macOS 15.0
648
+ build of CPython 3.12. A Python tag may carry one build per minimum macOS: the Mac installs the newest build its
649
+ macOS satisfies (CPython 3.12 on macOS 15 or later keeps the 15.0 build), and a Mac older than every build is
650
+ refused naming the macOS it needs.
651
+ - **The CPU pool runs on macOS 14**: Accelerate before macOS 15 has no `BLASSetThreading`, and 0.0.8 then knew no BLAS
652
+ of the process and raised at the pool's setup, so every Triton run stopped at start on macOS 14. That Accelerate is
653
+ now its own kind (`ACCELERATE_UNCONTROLLED`): its threads are not set (results unchanged; a `parallel_for` piece may
654
+ use Accelerate's own threads beside the pool's), `python -m nbxtensor doctor` names it, and `VECLIB_MAXIMUM_THREADS=1`
655
+ set before Python starts stays the user's choice (nbxtensor never sets it).
656
+
657
+ ## [0.0.8] - 2026-11-09
658
+
659
+ ### Added
660
+ - **Integrated GPUs described from the device**: `backend.level_zero.gpu_facts` reads an Intel GPU's integrated flag,
661
+ usable memory and largest single allocation (`maxMemAllocSize`) from Level Zero; `backend.device_files.for_pci_id`
662
+ finds a device file by PCI id; `backend.install_help.pci_display_devices` lists the display controllers on the PCI
663
+ bus. Device files for Meteor Lake, Arrow Lake (H, S) and Panther Lake (H, U), the compile targets Intel's Triton
664
+ knows (copied from the closest validated file: unvalidated on hardware, said in each file).
665
+ - **Level Zero lists only the GPUs a device file describes**: a GPU no backend drives is no longer usable as device 0.
666
+ - **A certification carries one proof per code generator**: `autotune_certified` keeps an entry's (or memory-class
667
+ variant's) `proof` and adds the proofs of the same configuration under other generators in `also_proven`; where the
668
+ stored configuration failed the oracle under a new generator and a sweep chose another, that certification is filed
669
+ in the class's `alternates`. A re-proof under a new generator therefore adds its proof and never un-serves another
670
+ build (macOS 14 and 15 Metal wheels with byte-identical kernels are both served); a re-proof under the same
671
+ generator replaces that generator's proof only. Serving picks the card's memory class, then the certification one
672
+ of whose proofs names the running generator, within that class only. Both fields are additive: a reader that knows
673
+ `proof` alone reads a file as before. New names: `certification_proofs`, `class_certifications`,
674
+ `entry_certifications`, `entry_proofs`, `certification_for_generator`, `class_proven_since`, `reproof_source`,
675
+ `ALSO_PROVEN`, `ALTERNATES`.
676
+ - **Paged KV cache and its session bookkeeping**: `nbxtensor.memory.paged_kv.PagedTritonKVCache` (per-layer page
677
+ pools on each layer's card, the block table, append and decode through it, `truncate`, `gather_pages`), moved from
678
+ the engine with an `on_reallocate(uid, generation)` hook in place of its call into the engine's replay plans;
679
+ `chunk_attention`, `chunk_mask` and `require_causal_mask`: a prefill chunk at a cached length attending over the
680
+ cache's keys gathered as whole pages, with an explicit 0/-inf mask.
681
+ - **`nbxtensor.memory.pages`** (moved from the engine): the page pool, page tables, reference counts and fenced
682
+ release. Pure bookkeeping, standard library only: importing it loads no triton and no torch, so the engine's
683
+ compiled (torch) cache reads the same tables.
684
+ - **`nbxtensor.memory.kv_session`** (moved from the engine): the positions a serving session's cache holds between
685
+ turns, matched by token ids (`KVSession`, `held_ids`, `forgetting_on_failure`), and `chunk_rows`, the rows of each
686
+ prefill chunk.
687
+ - **`paged_kv_gather`** (`paged_kv_gather_kernel`): a layer's K or V of every sequence as whole pages, contiguous,
688
+ heads re-expanded to the query heads, widened exactly to the output dtype.
689
+ - **`autotune_certified.served_certification`**: the certification served one key on a memory class, read by a planner
690
+ that holds no kernel tuner; `generator=` takes the running generator a caller pricing many keys asked once (on a
691
+ process with no card visible, each ask probes the driver again).
692
+ - **`nbxtensor.terminal`, the one terminal rule of a command line built on the library** (`python -m nbxtensor`,
693
+ `neurobrix`): one stderr handler, INFO by default, `-v` the developer lines, `-vv` an error's traceback too, and
694
+ `NBX_LOG=debug|info|warning|error` from the environment (a name that is no level is refused by name).
695
+ - **`backend.install_help.compiler_missing`**: names a machine without the C (or C++) compiler Triton builds a kernel
696
+ with, read from the frame Triton raises in (`triton/runtime/build.py`, `_find_compiler`), never from the text.
697
+ - **`backend.install_help.hidden_gpus`** (the GPUs the backend's visibility variable — the table's new `visible_env`,
698
+ `CUDA_VISIBLE_DEVICES` on CUDA, ROCm's three on HIP — hides from this process, against the PCI bus) and
699
+ **`backend.cpu_backend.triton_cpu_installed`**.
700
+ - **`io.read_rate.read_seconds`** (how long this storage takes to read so many bytes, measured now) and
701
+ **`memory.trace_replay.first_replay` / `vmm_granularity`** (the chunk probe's first replay made ahead, its cost
702
+ pricing the others).
703
+ - **`pointer_tables.TablePins` and `end_call_pins`**: a holder for the pins of per-call pointer tables built for a cache
704
+ of experts that outlives the call. The cache ends them before it lets the pages they cover go, and at its release; a
705
+ table over wraps already held ends its pins at once.
706
+
707
+ ### Changed
708
+ - **A kernel served through a generator alias says so in the debug log, not on the terminal**: the line
709
+ appeared once per kernel at default verbosity (6 to 9 lines on a plain run under a macOS 14 wheel); it is a
710
+ developer line (`-v` / `NBX_LOG=debug`), and the plan's explanation still counts the kernels served that way.
711
+ - **An out-of-tree backend's certificate identity no longer includes its Python binding**: the CPython extension module
712
+ tagged for one Python (`*.cpython-312-*.so`, `*.cp312-*.pyd`) is built per Python and generates no code, so the Metal wheels for Python
713
+ 3.10-3.13 share one identity when their code generator is the same bytes. Proven on 235-236 kernels per wheel set: the
714
+ compiled .ttir, .ttgir, .msl and .metallib are byte-identical. The identity of an installed backend changes once:
715
+ its certificates are re-labelled or re-proven under the new identity (`neurobrix autotune certify --reprove-generator`).
716
+ - **The library logs; it does not print**: every line goes through `logging`, one logger per module, and importing it
717
+ installs no handler. Its developer lines are DEBUG; warnings and errors reach a command line's terminal.
718
+ - **`python -m nbxtensor doctor` lists the GPUs the process sees**: it listed every display controller on the host's
719
+ PCI bus (four in a container given one); the others are counted as not visible here.
720
+ - **`python -m nbxtensor install-metal` downloads nothing when the pinned wheels are already installed**, and says so in
721
+ one line (it re-downloaded 131 MB on every call); pip's own lines only with `NBX_LOG=debug`.
722
+ - **Attribution**: author, maintainer and copyright holder Hocine Benkelaya (contact@neurobrix.org); a NOTICE file ships
723
+ beside the LICENSE (supported and funded by Neural Network Holding Ltd, commercial distribution by WizWorks OÜ); the
724
+ README carries the same attribution.
725
+
726
+ ### Fixed
727
+ - **No Triton warning at the first compile of `masked_fill`**: a uint8 mask reached `tl.where` as its condition, which
728
+ Triton calls deprecated; the condition is cast to a boolean, the compiled code identical.
729
+ - **A mapped mixture-of-experts store no longer keeps every decoded expert resident on Apple GPUs**: a per-call
730
+ table's pins ended at the call (re-wrapping the store's arena at a new address while it could still be read) or not at
731
+ all (the decode path: a wrap left over every expert the store had let go). Held by `TablePins`, they end when the
732
+ store says.
733
+
734
+ ## [0.0.5] - 2026-11-07
735
+
736
+ ### Fixed
737
+ - **The library runs on Windows**: weights are read at their offset without `os.preadv` (Windows' `ReadFile` with an
738
+ OVERLAPPED offset), the BLAS's thread control is found beside numpy (`numpy.libs`) instead of through /proc, and the
739
+ GPU libraries are opened by their Windows names (nvcuda.dll, cudart64_12.dll from the runtime wheel's `bin`, nvml.dll,
740
+ amdhip64_6.dll, ze_loader.dll, OpenCL.dll). Written and tested with Windows simulated: the project has no Windows
741
+ machine yet.
742
+ - **`python -m nbxtensor doctor` on a Mac without Triton exits 1**: it named the fix and exited 0, so a script could
743
+ not tell that nothing could run yet.
744
+ - **The library imports on Windows**: its page size came from `os.sysconf`, which Windows does not have; and the code
745
+ generator's identity now reads a backend's files as `/` paths with its `.pyd` and `.dll` binaries, so the same code
746
+ has the same identity on every system.
747
+ - **A certified setting that is not served says why**: where the directory holds a key proven under another code
748
+ generator than the running one, the line named a memory class that matched ("certified for 18 GB, this card is
749
+ 18 GB, not served"); it now names both generators and the re-proof command. A setting proven on another memory class
750
+ is still said as such.
751
+
752
+ ## [0.0.4] - 2026-11-07
753
+
754
+ ### Added
755
+ - **Triton for the Apple GPU in one command**: `python -m nbxtensor install-metal` installs the Metal wheels of the
756
+ project's fork NeuroBrix/triton-ext (Triton built with triton-ext, and imperatormk's AppleGPU backend as
757
+ `nbx-triton-apple`, triton-lang/triton-ext#126), each by the release URL and sha256 written in the library,
758
+ through pip with `--no-deps --require-hashes --no-index` — never an extra index nor a package name resolved on PyPI. The
759
+ wheels are for Python 3.12 and macOS 15 or later (release apple-v0.1.0+triton3.8.0); it refuses by name off an
760
+ Apple-silicon Mac, on another Python, or below the macOS the wheels are built for. `python -m nbxtensor doctor` on a Mac
761
+ without it says so and names the command; the Metal backend's refusal names it too. On a Mac, nbxtensor depends on
762
+ `pyobjc-framework-Metal`, through which it opens the Metal device; without it the run fell to a CPU profile and was
763
+ refused for triton-cpu, it is now refused by name with its install line.
764
+
765
+ ### Fixed
766
+ - **nbxtensor installs on a Mac**: it depended on `triton` on every platform, and PyPI publishes no Triton for macOS, so
767
+ `pip install nbxtensor` — and with it the NeuroBrix engine, even its PyTorch engine on MPS — could not resolve on a
768
+ clean macOS environment. Triton is now a dependency where PyPI has it; on a Mac it is built from source with its Metal
769
+ backend (the README's install), and the library says by name what to build when it is absent.
770
+
771
+ ## [0.0.3] - 2026-11-06
772
+
773
+ ### Fixed
774
+ - **The backend is the one whose card is on the machine**: nbxtensor depends on the CUDA runtime wheel on Linux, and a runtime library loads without its card — on an AMD or Intel machine 0.0.2 named the CUDA backend and never tried HIP or Level Zero. Detection now tries only the runtime libraries of the GPU vendors present on the PCI bus (all of them where the bus cannot be read). The CUDA runtime wheel stays a Linux dependency: without an NVIDIA card it is not used.
775
+ - **The package summary says where it runs**: wherever Triton runs — NVIDIA, AMD, Intel and Apple GPUs (it still named NVIDIA and Apple only).
776
+
777
+ ## [0.0.2] - 2026-11-06
778
+
779
+ ### Added
780
+ - **`backend.launcher.prewarm_compiler()`**: computes Triton's cache key (`triton_key`, the sha256 of libtriton and of Triton's sources, about 1.3 s on a V100 host) in a daemon thread, so a process's first kernel compile no longer waits for it; an application calls it at start, while it loads weights.
781
+ - **Intel GPUs through Level Zero** (`backend.level_zero`, `backend.level_zero_driver`; the `xpu` backend, chosen when the system's Level Zero loader reports a GPU): a runtime over Level Zero that serves the allocator (device and page-locked host memory, in-order command lists as streams, timed events), and a launch driver for the SPIR-V kernels Intel's Triton build compiles, with Intel's own argument ABI; the compile target is built without torch or SYCL (Level Zero's counts, the OpenCL ICD's extensions, the device file's architecture name). Proven against stand-ins of libze_loader and the OpenCL ICD: no Intel card has run it yet.
782
+ - **What to install when a GPU is present and unusable** (`backend.install_help`, `python -m nbxtensor doctor`): for every NVIDIA, AMD or Intel GPU on the PCI bus, whether its runtime library and its Triton backend are installed, with the vendor's install commands when one is not; the refusal when no GPU runtime answers carries the same steps instead of a bare error. The README's "Install on AMD / Intel GPUs" section gives them.
783
+ - **Device files** for AMD CDNA4 (gfx950), RDNA3 (gfx11xx) and RDNA4 (gfx120x), and Intel Data Center GPU Max (pvc), Arc A-series and Flex (dg2), Arc B-series (bmg) and Lunar Lake (lnl), every value with its source.
784
+ - **A HIP launch driver for AMD GPUs** (`backend.launcher.HipDriver`, chosen when the runtime detects HIP): the HIP module API through the HIP runtime library the runtime already loaded, the launch Triton's own AMD launcher performs (hsaco code objects, `hipModuleLaunchKernel`, the kernel's arguments then the scratch pointers, a block of the code object's wavefront times the kernel's warps), one module per device and code object, the argument count read from the code object's own metadata and a list of another length refused, shared memory past the device's per-block maximum refused as Triton's own AMD launcher refuses it, the wavefront read from the code object and the device file (never defaulted), the launcher contract's `compile` surface shared with the CUDA driver, every missing symbol refused by name; page-locked host memory is asked of `hipHostMalloc` with its flags word. Its tests compile real Triton kernels for gfx90a, gfx942, gfx950, gfx1100 and gfx1201 on a machine without an AMD card and launch them through a stand-in HIP library: no AMD card has run it yet.
785
+
786
+ ### Removed
787
+ - **Nine environment switches that changed a kernel**: `NBX_MM_MAX_OUTPUT_ELEMS` (the matrix product's output split, fixed by an int32 element offset), `NBX_FLASH_BLOCK_M_VOLTA` (Volta's flash Q tile, 64, the measured floor of correctness), `NBX_CONV3D_EAGER_FREE_BYTES` (when a 3-D convolution frees its buffers early), `NBX_FLASH_NUM_WARPS` and `NBX_FLASH_NUM_STAGES` (the flash kernel's launch, which its device file's flash rows state), `NBX_DGEMV_ADAPT` (the dequantising GEMV's width adaptation, set by `dequant_gemv.min_programs`), `NBX_D128_DETOUR` (the power-of-two head-dim detour, decided by `flash.pow2_head_dim_correct`; `launch_keys.flash_headdim_detour` loses its `enabled` argument), `NBX_DEPTHWISE_DISABLE` (the depthwise convolution route) and `NBX_GC_ON_OOM` (a garbage-collecting retry of a refused allocation, which is raised, never rescued). A value a kernel needs is a fact of its device file or of a certificate, never a host setting.
788
+
789
+ ### Changed
790
+ - **A certified file is parsed and validated once, then read from its compiled index** (`ops.certified_index`): the directory stays JSON, the source contributors edit; the first launch after a change validates a file and writes, per memory class, a binary index of the entries that class is served (length-prefixed keys and certifications, a SHA-256 trailer, never a pickle), named by the fingerprint of everything the validation read; later launches read the index and parse a certification only when its key is asked. A corrupt index is refused by name.
791
+ - **The launch recorder receives each pointer's extent** (`backend.launcher.set_launch_recorder`: `fn(prepared, grid, params, extents)`): the byte extent of each pointer's tensor that a driver binding by extent is handed, None for a driver that binds by address — a replay can now launch exactly what was launched.
792
+ - **The README opens with what the library is and `pip install nbxtensor`**: the 0.0.1 README began its installation with `pip install -e nbxtensor` from the engine's repository, which PyPI showed as the package's description; it now opens with its title, what it does, the install from PyPI (the repository install is below, for contributors), a GPU example its tests run, why the library exists (no PyTorch, any Triton GPU, the V100's tensor cores back in use with their measured gains, planned memory, certified tuning) and the hardware tested and expected, and it links its API and backend references in the NeuroBrix repository, where they live (they were relative links to files the library's repository does not hold). The package's one-line description no longer names a CPU backend, which the library does not have.
793
+
794
+ ### Fixed
795
+ - **CDNA3's shared memory per block is 64 KB**, not 160 KB (the device file had CDNA4's figure; Triton 3.8's AMD target features state 64 KB for gfx942): an autotune config needing more is no longer kept for an MI300.
796
+
797
+ ## [0.0.1] - 2026-11-05
798
+
799
+ The first release of nbxtensor: an inference-first tensor library whose kernels are written in Triton and which never
800
+ imports torch. NeuroBrix's Triton engine is its first client: on 2026-11-05 the engine's final gate ran its 49 catalogue
801
+ models through the library on four V100 cards (both card classes, every output judged by eye), and the library's tests,
802
+ five reference models and an uncertified autotune sweep ran in an environment where torch is not installed, with no
803
+ attempt to import it.
804
+
805
+ **What the library holds**
806
+ - **A tensor without torch**: `nbxtensor.Tensor` with its dtype table (`dtypes.yml`: every width, safetensors code and
807
+ key spelling in one place), strides counted in elements, ATen's view rule, broadcasting, Array API type promotion with
808
+ weak Python scalars, seeded random streams, quantized weights (grouped int4 with scales and minima), and DLPack for
809
+ exchange (`__dlpack__`, `from_dlpack`): a torch user writes `torch.from_dlpack(t)` on their side.
810
+ - **Triton kernels for the operators of inference graphs**, each declaring its cost (outputs, workspace and scratch with
811
+ their lifetimes, bytes moved, flops) so a planner prices a model before running it: elementwise and comparison ops,
812
+ reductions, softmax, layer, group, RMS and batch norms, matrix products and matrix-vector products (on the V100's
813
+ m8n8k4 matrix unit where certified faster), 1-D, 2-D and 3-D convolutions and transposed convolutions, pooling and
814
+ resampling, rotary embeddings, attention (flash, split decode, paged decode, vector decode), mixture-of-experts (the
815
+ fused GEMM, the one-token band, the routing alignment), FFT, sorting, top-k, gathers and scatters.
816
+ - **Memory that is planned**: allocators per device behind one interface (a pool that splits and merges freed blocks; on
817
+ CUDA with virtual memory management an expandable range), a slab planner (`memory.slab`), and the capture and replay
818
+ of a repeated sequence of launches, verified byte-equal (CUDA graphs on NVIDIA).
819
+ - **Kernel settings proven once, per device class**: every autotuned kernel is certified per launch key against a
820
+ float64 oracle and served from a store of proven settings; the library sweeps a key it has no setting for at first
821
+ use, and an application may require certified settings only (a missing key is then an error naming it).
822
+ - **Every core of the host**: host work over large arrays (weight conversions at load) runs on a thread pool sized to
823
+ the machine's compute cores, with the BLAS held to the same cores.
824
+
825
+ **Hardware**: NVIDIA V100 (CUDA) and Apple M4 Pro (Metal through triton-ext) are proven; NVIDIA Ampere and Hopper and
826
+ the other Apple silicon chips have device files and are not proven on our machines; AMD Instinct (HIP) and Intel GPUs
827
+ (Level Zero) have their interfaces written and are not tested for lack of hardware; there is no CPU kernel backend.
828
+
829
+ **Named refusals**: a missing fact is an error that names it, never a default — a dtype absent from the table, a
830
+ device fact absent from its device file, a strided slice, a signed integer promoted with `uint64`, a Python integer
831
+ outside an integer array's range, a pointer Metal declines to bind in place, a per-row bias of more than four rows in
832
+ `addmm`, an uncertified key where certified settings are required.
833
+
834
+ **Known limitations**: inference only (no autograd); slicing has step 1; no array namespace (`__array_namespace__`)
835
+ yet; `conv_transpose2d` runs on the FMA kernel only (no matrix-unit path; no catalogue model forms it); on Apple silicon,
836
+ two of NeuroBrix's video models do not complete on the M4 Pro yet — mochi-1-preview (the PyTorch engine's memory at its
837
+ decoder's temporal stream) and Allegro / Allegro-TI2V on the Triton engine with its replay (a Metal command buffer out of
838
+ memory; the fix is in test).
839
+
840
+ ### Added
841
+ - **`nbxtensor.memory.slab.first_fit_extent`**: the slab a run needs, the highest offset the slab's own first fit
842
+ reaches over the run's allocations and frees — between its live peak and the sum of its blocks.
843
+ - **nbxtensor describes the NVIDIA and AMD devices itself**: `backend/devices/nvidia/` (Volta, Ampere, Hopper) and
844
+ `backend/devices/amd/` (CDNA, CDNA2, CDNA3) hold the facts its kernels read — tiles, shared memory, registers,
845
+ warp size, the matrix unit, the autotune ladders and screen, the attention thresholds — as Apple's did; an
846
+ application's vendor file only adds its own keys beside them (a key in both is refused).
847
+ - **The fused mixture-of-experts GEMM runs on the V100's matrix unit** (`fused_moe_m8n8k4_kernel`, `moe_wrappers.invoke_fused_moe_m8n8k4`): the FMA kernel's contract — the alignment's blocks, the expert pointer table, the top-k division, the routed weight — on the m8n8k4 unit at the profile's tiles, the routing aligned at the tile's rows. Its certificate decides per key against the FMA kernel (`fused_moe_unit_tile`); on a V100 the unit measured 2.5-5x faster on every prefill projection timed (DeepSeek-Coder-V2-Lite's 20-token gate 2.49 -> 0.96 ms, Qwen3-30B-A3B's 512-token gate 7.24 -> 1.40 ms).
848
+ - **nbxtensor names the device in force publicly**: `nbxtensor.backend.device_files.in_force()`, `for_arch(arch)` and `forget()`, and `nbxtensor.backend.launcher.bind_target(target)` for a derivation that launches nothing; the engine's key census and paged KV cache read them instead of the library's private configuration module.
849
+
850
+ ### Changed
851
+ - **The launch recorder receives each pointer's extent** (`backend.launcher.set_launch_recorder`: `fn(prepared, grid, params, extents)`): the byte extent of each pointer's tensor that a driver binding by extent is handed, None for a driver that binds by address — a replay can now launch exactly what was launched.
852
+ - **Every device file states the tolerance an integer kernel output is certified at**: `autotune_screen_rtol.int64: 0.0` — met exactly (the MoE alignment's routing tables); the certifier invents no tolerance and refused every alignment key without it.
853
+ - **The MoE alignment's three stages take their chunk widths and warps from their certificates**: `moe_align_stage{1,2,3}_kernel` ran per-backend literal widths (128 or the experts' count on CUDA, 32-64 on Metal) at 4 warps; each is now certified per key (the block, the padded expert count, the layer's pairs in the profile's `elements` classes), its candidates pruned to the blocks that fit the profile's `memory.max_shared_memory_per_block`. Every candidate computes the same routing; the choice is speed only.
854
+ - **`nbxtensor.memory.pointer_tables.build_ptr_tables` is public**: the expert pointer tables a MoE kernel reads (on Metal captured under a pinned scope), built by the engine's MoE layer and by its certifier alike; it was the private `_build_ptr_tables`.
855
+ - **The split decode's reduce takes its warps from its certificate**: `flash_decode_reduce_kernel` ran at a literal 4 warps after both split decodes (vector and paged); it is now certified per key (the splits, the value head dim, the output dtype) through `attention_wrappers.decode_reduce`, and `decode_attn_vec.decode_vec_splits` names the vector decode's split rule for the wrapper, the census and the certifier alike.
856
+ - **The paged decode attention takes its position tile and warps from its certificate**: `paged_decode_attention` ran the judged tile (32, `PAGED_DECODE_JUDGED_TILE`, removed) at 4 warps; the tile is now certified per key among the candidates that divide the page, and the call takes no tile argument. A split's positions are whole pages' worth of the largest tile (`PAGED_DECODE_SPLIT_ALIGN`), so every candidate cuts the splits alike. The certificate is keyed by the splits the longest sequence makes (`paged_decode_attn.paged_decode_splits`), the same count a replayed decode step is bucketed by, so a replayed step and the step it is verified against run one configuration.
857
+ - **A matrix product the V100's matrix unit can take runs on the unit or on its FMA kernel as its certificate measured**: `mm` and `addmm` took the m8n8k4 unit whenever its smallest tile filled, at the first tile of the profile that fit, a launch the certification never compared with anything. The FMA launch now keeps its autotune key on the unit too; certifying it times every unit tile the profile declares beside the FMA configurations, against the same oracle, and the entry names the unit's tile only when it was faster (a 80 x 4096 x 4096 fp16 product: FMA 0.404 ms, the first tile 0.207, the second 0.191 — the second is served). A run with no certificate keeps the declared unit; a confirmation run refuses the missing key.
858
+ - **A 1-D transposed convolution runs as a GEMM and an overlap-add** (`conv_transpose_wrapper`, groups 1, dilation 1, no output padding): `x^T [L, C_in] @ W [C_in, C_out*K]` through `mm` (the length on the rows, which the autotune key classes) — the matrix unit where the hardware profile declares one — then `col2im1d_kernel` gathers each output position's taps. The scatter kernel looped over every input channel and tap per output element; the vocoders' upsamplers ran 20-307x slower on a V100. Same output dtype; the waveform of a chatterbox sentence agrees with the scatter kernel's at 49.5 dB SNR, its transcription exact.
859
+ - **The vector decode attention takes its key block and warps from its certificate**: `decode_attn_vec_split_kernel` ran 32 keys a step and 4 warps, read from environment variables (`NBX_DV_BLOCK_N`, `NBX_DV_WARPS`) with those defaults; both are now candidates certified per key (the keys' bucket, the head dims, the GQA group, the bias). The split (256 keys a program, at most 64) stays the kernel's: it defines the partials.
860
+ - **A one-token mixture-of-experts layer on half-precision experts takes its tiles from its certificate**: the gateup, the down projection's partials and their sum (`moe_decode_vec`) ran a hand table (32 x 128, 4 warps; 256 / 2 warps for the sum); each is now certified per key over the ladder the table was measured from (Qwen3-30B-A3B's 2048 x 768 experts on a V100: gateup 16 x 64, down 16 x 256, sum 1024).
861
+ - **The fused mixture-of-experts GEMM takes its tile from its certificate**: `fused_moe_kernel`'s column and reduction tiles, warps and stages were literals (64 x 32, 4 warps, 2 stages, `moe_wrappers._MOE_BN/_MOE_BK`); they are now candidates the certification measures per key — the GEMM's dims, the valid (token, expert) pairs' bucket and the layer's experts (`launch_keys.fused_moe_launches`). The row block stays the routing alignment's. A 512-token Qwen3-30B-A3B prefill's gate projection takes 128 columns.
862
+ - **A 1-D transposed convolution runs as a GEMM and an overlap-add** (`conv_transpose_wrapper`, groups 1, dilation 1, no output padding): `W^T [C_out*K, C_in] @ x` through `mm` — the matrix unit where the hardware profile declares one — then `col2im1d_kernel` gathers each output position's taps. The scatter kernel looped over every input channel and tap per output element; the vocoders' upsamplers ran 20-307x slower on a V100. Same output dtype; the waveform of a chatterbox sentence agrees with the scatter kernel's at 49.5 dB SNR, its transcription exact.
863
+ - **Depthwise convolutions read their input coalesced**: the depthwise kernel's tile put the channels on its fastest axis, H*W elements apart in memory, so no load coalesced; it now computes a (channels x rows x columns) output tile with the width fastest. On a V100: SANA-Video's 11200-channel 3x3 4.5-8 times faster (2.63 -> 0.33 ms, at or past torch's 0.38 ms), the vocoders' one-row depthwise 1.6-2.4 times faster (orpheus-3b's first audio 3.68 -> 1.85 s); every depthwise key re-certified on both memory classes.
864
+ - **An fp32 1 x 1 convolution runs on the V100's matrix unit**: the convolution's implicit GEMM carries fp32 operands as hi + lo through three MMAs (as the GEMM already did), but only where the hardware profile declares a measured row for the kernel window and the tile fills — on a V100 the 1 x 1 window (1.26-1.95 times faster on the video VAEs' shapes); a 3 x 3 measured slower than the FMA path at every tile and keeps it. The census forms no autotune key where the unit runs.
865
+ - **The matrix product and the linear layer declare what they allocate** (`nbxtensor.ops.linalg_wrappers.mm_cost` / `addmm_cost`, beside `bmm_cost`): the casts, the decode rows' GEMV and the weight copy a row-major weight costs there, the bias made contiguous, the output at its store dtype, an epilogue's output; each equal to the allocator's measured peak on the device, over the dtypes, the decode and tiled row counts, both weight layouts and the bias forms.
866
+
867
+ ### Fixed
868
+ - **nbxtensor finds the NVIDIA card on a machine that has only the driver**: its CUDA backend opens the CUDA runtime library (`libcudart.so.12`), which the driver does not ship; on a clean Linux machine no GPU runtime was found and the card was read as a CPU. nbxtensor now depends on `nvidia-cuda-runtime-cu12` on Linux.
869
+ - **The README's examples run in their own interpreter**: the suite ran them in its own process, and the settings
870
+ example's `set_store(None)` reset the certified store every later test of that process read (a test of the live
871
+ directory found it empty in the suite and green alone).
872
+ - **The Metal runtime no longer invents its dispatch limits**: the command buffers a queue may hold in flight and the
873
+ dispatches one buffer may carry fell back to 32 and 512 written in the runtime when the device file did not state them;
874
+ they are read from the device file, and a missing one is refused by name.
875
+ - **The half-precision MoE decode band no longer tries configs past the device's shared memory**: `moe_gateup_vec_half_kernel` and `moe_down_split_vec_half_kernel` prune their tiles to the [BLOCK_K, BLOCK_N] fp32 blocks `memory.max_shared_memory_per_block` holds before any compile (on Apple's 32 KB a 256 x 64 block aborted the Metal emitter); the door is `_configs.fits_shared_memory`.
876
+ - **The library alone autotunes on NVIDIA**: without an application's hardware profile, a kernel's device facts
877
+ (`memory.max_registers_per_block` and the like) were read through the profile and found absent, so a reduction or
878
+ a softmax without a certified configuration was refused; they are now read from the device file of the card the
879
+ launch targets. The backend conformance suite passes on CUDA with nbxtensor alone.
880
+ - **A request larger than a card's whole expandable range is refused as the out-of-memory it is**: on a device whose
881
+ large blocks grow in an expandable (VMM) range, such a request raised a plain error without its figures; it now
882
+ raises `DeviceOOMError` with the requested, live, pool-cached and driver-free bytes, as the driver path does, so a
883
+ caller that reshapes the work on a refusal catches it.
884
+ - **A certified entry naming parameters its kernel lacks is no longer served**: the directory's check compared a
885
+ key's arity and dtype with the kernel, never the configuration's parameter names, so the depthwise convolution's
886
+ entries from its former tile (`BLOCK_HW`, `BLOCK_C`) were served to the new one (`BC`, `TH`, `TW`). Such a file is now
887
+ refused by name; the Apple and V100 depthwise entries were certified again in the new space (1aa40649, f78b9c4b).
888
+ - **A certified-only launch whose key cannot be formed is refused by name**: the key builder raising left the key empty, which skipped the certified lookup and let Triton's autotuner sweep inside a run promised to serve the certified directory only; it is now a `KeyNotCertified` naming the kernel and the exception.
889
+ - **The Triton allocator's expandable range maps in chunks the engine measures on a real run, and a refusal remaps the
890
+ memory it takes back**: the chunk was measured per mapping call (2 MiB on a V100), and a refusal released the chunks
891
+ it reclaimed and created them again — SANA-Video_2B_720p on a V100-16GB mapped 89 GB over a run and was 33-44 % slower
892
+ than without the range. The first launch now replays a real run's allocation record, which the library carries, with
893
+ the range off and at each candidate chunk, and keeps the smallest within the off replay's noise (32 MiB on the V100
894
+ 16 GB, 64 MiB on the 32 GB); a reclaim maps its chunks again where they are needed. SANA-Video 16g runs at the off figure, and on
895
+ a 32 GB card the range holds 8 GB less at its peak.
896
+ - **The Triton allocator's large class grows in an expandable range on a CUDA device with virtual memory management**: one reserved address range per device, physical chunks mapped into it as the pool grows, and at a refusal one synchronisation, then every mapped chunk lying whole inside a free block unmapped and mapped again where the request needs it — a free remainder beside a live tensor no longer pins its pages (Wan2.1-I2V triton on a V100-16GB was refused a 731 MB attention product with 1.1 GB of 48 MB remainders pinned in driver segments). The method of PyTorch's `expandable_segments`; the chunk is a measured fact of the generated profile (`vmm_chunk_bytes`: the smallest multiple of the granularity whose map costs no more than an ordinary allocation, 2 MiB on V100), refused by name when absent; a device without VMM keeps its driver segments. The small class and the weight arenas are unchanged; `memory.pool.simulate` replays the same rules.
897
+ - **A refused small allocation is retried at the size of the segment the pool records**: a small request grows the device by a 2 MiB segment the pool then carves later small blocks from, but the retries after a refusal (the pool's flush, the idle slabs' release, the opt-in collection) asked the driver for the request's bytes — a 1 KiB driver allocation the pool treated as 2 MiB. Found while reading the allocator for the expandable segments (2026-11-02), on the path a full card takes; a test pins it.
898
+ - **The Triton allocator's pool no longer lets a scalar pin a multi-gigabyte block**: a request took "the smallest free block that holds it" in one class, so a 17 KB scalar carved a freed 2.5 GB block and pinned its remainder alive, a 632 MB request the next — Allegro triton on a V100-16GB (gate of 2026-11-01) was refused a 2.5 GB gelu output with 4.4 GB of free blocks in pinned segments (Allegro-TI2V, CogVideoX-5b-I2V, Wan2.1/2.2-I2V, MiniCPM-o the same). The pool now has two size classes (a request of at most 1 MiB is carved from 2 MiB small segments, torch's caching allocator's kSmallSize / kSmallBuffer) and the half rule (a large block is split only when what is left is at most the request); its wholly free segments stay parked across a growth and return to the driver at a refusal, as before 164e89dc, whose flush before every growth — which emptied the small free segments the scalars then carved large blocks for — is withdrawn. The real run's allocation record replayed through the pool's own rules (`memory.pool.simulate`, M3's replay) completes with the least held of every pooled rule tried, on Allegro 16g, mochi-1-preview 32g and Kokoro alike.
899
+ - **nbxtensor's `addmm` refuses a per-row bias `[M, N]` above four rows instead of computing it wrong**: its kernel adds one bias row to every output row, so such a bias was applied with its first row only. It is now refused by name (a bias `[N]` or `[1, N]`, which every catalogue model uses, is unchanged; a per-row bias at up to four rows is still served).
900
+
901
+ ### Removed
902
+ - **`decode_attn_vec_grouped_kernel` and the environment switches of the vector decode** (`NBX_DV_GROUPED`, `NBX_DV_SEG`, `NBX_DV_BLOCK_N`, `NBX_DV_WARPS`): the grouped variant ran only behind its switch.
903
+ - **`flash_decode_split_kernel` and its route**: armed only by an environment switch (`NBX_FLASH_DECODE`, with `NBX_FD_BLOCK_N` and `NBX_FD_SEG`) and measured slower than the vector decode kernels; `flash_decode.py` keeps the fixed-order reduce they share.
904
+ - **`conv1d_forward_kernel`**: launched by no route (a 1-D convolution runs through `conv2d`).
905
+
906
+ [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.4...HEAD
907
+ [0.1.4]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.3...v0.1.4
908
+ [0.1.3]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.2...v0.1.3
909
+ [0.1.2]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.1...v0.1.2
910
+ [0.1.1]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.0...v0.1.1
911
+ [0.1.0]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.9...v0.1.0
912
+ [0.0.8]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.5...v0.0.8
913
+ [0.0.5]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.4...v0.0.5
914
+ [0.0.4]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.3...v0.0.4
915
+ [0.0.3]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.2...v0.0.3
916
+ [0.0.2]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.1...v0.0.2
917
+ [0.0.1]: https://github.com/NeuroBrix/nbxtensor/releases/tag/v0.0.1