nbxtensor 0.0.9__tar.gz → 0.1.1__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 (334) hide show
  1. nbxtensor-0.1.1/.github/workflows/cla.yml +29 -0
  2. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/.gitignore +2 -0
  3. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/CHANGELOG.md +84 -1
  4. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/CONTRIBUTING.md +12 -0
  5. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/NOTICE +1 -0
  6. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/PKG-INFO +5 -4
  7. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/README.md +2 -1
  8. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/pyproject.toml +3 -3
  9. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/__init__.py +1 -1
  10. nbxtensor-0.1.1/src/nbxtensor/backend/devices/intel/wcl.yml +205 -0
  11. nbxtensor-0.1.1/src/nbxtensor/backend/devices/intel/xe_lp.yml +211 -0
  12. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/launcher.py +6 -6
  13. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/level_zero.py +99 -3
  14. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/level_zero_driver.py +38 -60
  15. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/allocator.py +18 -8
  16. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/device_memory.py +11 -1
  17. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/device_transfer.py +1 -1
  18. nbxtensor-0.1.1/src/nbxtensor/memory/host_spill.py +100 -0
  19. nbxtensor-0.1.1/src/nbxtensor/memory/kv_host_pages.py +317 -0
  20. nbxtensor-0.1.1/src/nbxtensor/memory/kv_host_tier.py +222 -0
  21. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/kv_session.py +5 -0
  22. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/memory_pool.py +1 -1
  23. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/paged_kv.py +180 -13
  24. nbxtensor-0.1.1/src/nbxtensor/memory/to_device_census.py +73 -0
  25. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/attention_wrappers.py +67 -22
  26. nbxtensor-0.1.1/src/nbxtensor/ops/embedding_pool.py +44 -0
  27. nbxtensor-0.1.1/src/nbxtensor/ops/host_decode_partial.py +114 -0
  28. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/moe_device_residency.py +1 -1
  29. nbxtensor-0.1.1/src/nbxtensor/ops/token_bitmask.py +64 -0
  30. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/tensor.py +39 -17
  31. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
  32. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/LICENSE +0 -0
  33. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/THIRD_PARTY_NOTICES.md +0 -0
  34. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/assets/logo.png +0 -0
  35. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/__main__.py +0 -0
  36. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/__init__.py +0 -0
  37. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/capabilities.py +0 -0
  38. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/cpu/__init__.py +0 -0
  39. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/cpu/blas.py +0 -0
  40. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/cpu/pool.py +0 -0
  41. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/cpu_backend.py +0 -0
  42. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/device_facts.py +0 -0
  43. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/device_files.py +0 -0
  44. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/device_names.py +0 -0
  45. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
  46. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
  47. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
  48. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
  49. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
  50. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
  51. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
  52. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
  53. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
  54. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
  55. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
  56. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
  57. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
  58. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
  59. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
  60. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
  61. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
  62. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
  63. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
  64. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
  65. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
  66. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
  67. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
  68. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
  69. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
  70. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
  71. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
  72. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -0
  73. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -0
  74. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
  75. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
  76. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
  77. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/intel/mtl.yml +0 -0
  78. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -0
  79. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -0
  80. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
  81. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
  82. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
  83. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
  84. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/faults.py +0 -0
  85. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/host_memory.py +0 -0
  86. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/install_help.py +0 -0
  87. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/install_metal.py +0 -0
  88. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/install_steps.yml +0 -0
  89. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/launcher_contract.py +0 -0
  90. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/libnames.py +0 -0
  91. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/metal_backend.py +0 -0
  92. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/metal_device.py +0 -0
  93. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/process_memory.py +0 -0
  94. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/replay_graph.py +0 -0
  95. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/runtime.py +0 -0
  96. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/backend/triton_ext_driver.py +0 -0
  97. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/dtype/__init__.py +0 -0
  98. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/dtype/convert.py +0 -0
  99. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/dtype/dtypes.yml +0 -0
  100. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/dtype/itemsize.py +0 -0
  101. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
  102. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/dtype/operands.py +0 -0
  103. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/dtype/outputs.py +0 -0
  104. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/dtype/policy.py +0 -0
  105. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/dtype/policy.yml +0 -0
  106. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/dtype/promotion.py +0 -0
  107. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/host.py +0 -0
  108. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/io/__init__.py +0 -0
  109. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/io/read_rate.py +0 -0
  110. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/io/safetensors.py +0 -0
  111. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/__init__.py +0 -0
  112. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/arena.py +0 -0
  113. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/layout.py +0 -0
  114. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/metal.py +0 -0
  115. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/oom_advice.py +0 -0
  116. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/pages.py +0 -0
  117. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/pointer_tables.py +0 -0
  118. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/pool.py +0 -0
  119. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/shadow.py +0 -0
  120. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/slab.py +0 -0
  121. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/trace_replay.py +0 -0
  122. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
  123. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/memory/vmm.py +0 -0
  124. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/__init__.py +0 -0
  125. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/_autotune_policy.py +0 -0
  126. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/_common.py +0 -0
  127. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/_configs.py +0 -0
  128. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/_cost.py +0 -0
  129. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/abs.py +0 -0
  130. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
  131. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/add.py +0 -0
  132. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/addcdiv.py +0 -0
  133. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/addcmul.py +0 -0
  134. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/addmv_op.py +0 -0
  135. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/addr.py +0 -0
  136. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/all_reduce.py +0 -0
  137. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/amax.py +0 -0
  138. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/any_reduce.py +0 -0
  139. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/arange_op.py +0 -0
  140. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/argmax.py +0 -0
  141. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/argmin.py +0 -0
  142. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/atan2.py +0 -0
  143. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/autotune_bucket.py +0 -0
  144. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/autotune_cache.py +0 -0
  145. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/autotune_certified.py +0 -0
  146. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/autotune_refusals.py +0 -0
  147. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/autotune_settings.py +0 -0
  148. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/avg_pool2d.py +0 -0
  149. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/baddbmm_op.py +0 -0
  150. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/batch_norm.py +0 -0
  151. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/binary_strided.py +0 -0
  152. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/bitwise_and.py +0 -0
  153. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
  154. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/bitwise_not.py +0 -0
  155. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/bitwise_or.py +0 -0
  156. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
  157. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/bucketize.py +0 -0
  158. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/cat_op.py +0 -0
  159. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/celu.py +0 -0
  160. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/certified_index.py +0 -0
  161. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/clamp.py +0 -0
  162. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/clamp_min.py +0 -0
  163. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/conv2d.py +0 -0
  164. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
  165. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
  166. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
  167. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/conv_wrappers.py +0 -0
  168. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/copy.py +0 -0
  169. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/copy_op.py +0 -0
  170. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/cos.py +0 -0
  171. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/count_nonzero.py +0 -0
  172. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/cross_entropy.py +0 -0
  173. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/cummax.py +0 -0
  174. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/cummin.py +0 -0
  175. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/cumsum.py +0 -0
  176. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
  177. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
  178. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/dequant_gemv.py +0 -0
  179. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/dft.py +0 -0
  180. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/dispatch.py +0 -0
  181. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/div.py +0 -0
  182. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/dot_op.py +0 -0
  183. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/dropout.py +0 -0
  184. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/dtype_convert.py +0 -0
  185. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/elementwise_launch.py +0 -0
  186. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
  187. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/elu.py +0 -0
  188. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/embedding.py +0 -0
  189. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/eq.py +0 -0
  190. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/erf.py +0 -0
  191. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/exp.py +0 -0
  192. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/exp2.py +0 -0
  193. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/fft_op.py +0 -0
  194. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/fill_op.py +0 -0
  195. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/flash_attention.py +0 -0
  196. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
  197. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/flash_decode.py +0 -0
  198. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/flip_op.py +0 -0
  199. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/floor.py +0 -0
  200. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/full_op.py +0 -0
  201. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/fused_moe.py +0 -0
  202. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
  203. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
  204. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/gather_op.py +0 -0
  205. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/ge.py +0 -0
  206. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/gelu.py +0 -0
  207. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/gemv_vec.py +0 -0
  208. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/glu.py +0 -0
  209. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/grid_sampler.py +0 -0
  210. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
  211. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/groupnorm.py +0 -0
  212. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/gt.py +0 -0
  213. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/hardsigmoid.py +0 -0
  214. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/hardswish.py +0 -0
  215. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/im2col.py +0 -0
  216. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/index_add.py +0 -0
  217. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/index_put_op.py +0 -0
  218. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/index_select.py +0 -0
  219. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/index_wrappers.py +0 -0
  220. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/isfinite.py +0 -0
  221. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/isinf.py +0 -0
  222. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/isnan.py +0 -0
  223. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/launch_keys.py +0 -0
  224. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/launch_observer.py +0 -0
  225. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/layernorm.py +0 -0
  226. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/le.py +0 -0
  227. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/leaky_relu.py +0 -0
  228. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/lerp.py +0 -0
  229. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/linalg_wrappers.py +0 -0
  230. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/linspace_op.py +0 -0
  231. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/log.py +0 -0
  232. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/log_sigmoid.py +0 -0
  233. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/logical_and.py +0 -0
  234. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/logical_not.py +0 -0
  235. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/logical_or.py +0 -0
  236. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/logical_xor.py +0 -0
  237. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/loss_wrappers.py +0 -0
  238. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/lt.py +0 -0
  239. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/masked_fill.py +0 -0
  240. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/matmul.py +0 -0
  241. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
  242. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/max_pool2d.py +0 -0
  243. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/max_pool3d.py +0 -0
  244. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/max_reduce.py +0 -0
  245. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/maximum.py +0 -0
  246. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/mean.py +0 -0
  247. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/min_reduce.py +0 -0
  248. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/minimum.py +0 -0
  249. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/mish.py +0 -0
  250. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
  251. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/moe_align.py +0 -0
  252. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
  253. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/moe_wrappers.py +0 -0
  254. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/mse_loss.py +0 -0
  255. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/mul.py +0 -0
  256. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/nan_to_num.py +0 -0
  257. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/ne.py +0 -0
  258. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/neg.py +0 -0
  259. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/nllloss.py +0 -0
  260. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/nonzero.py +0 -0
  261. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/nonzero_op.py +0 -0
  262. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/norm_wrappers.py +0 -0
  263. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/ones_op.py +0 -0
  264. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/oracles/__init__.py +0 -0
  265. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
  266. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/pad_op.py +0 -0
  267. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
  268. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
  269. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
  270. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/pow.py +0 -0
  271. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/prod.py +0 -0
  272. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/rand_op.py +0 -0
  273. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/random_wrappers.py +0 -0
  274. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/reciprocal.py +0 -0
  275. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
  276. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/relu.py +0 -0
  277. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/remainder.py +0 -0
  278. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/repeat_interleave.py +0 -0
  279. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/repeat_op.py +0 -0
  280. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/residual_chain.py +0 -0
  281. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/rmsnorm.py +0 -0
  282. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/rope.py +0 -0
  283. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/rsqrt.py +0 -0
  284. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/scaled_softmax.py +0 -0
  285. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/scatter_op.py +0 -0
  286. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/screen_oracle.py +0 -0
  287. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/selu.py +0 -0
  288. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/shape_wrappers.py +0 -0
  289. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/sigmoid.py +0 -0
  290. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/silu.py +0 -0
  291. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/sin.py +0 -0
  292. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/softmax.py +0 -0
  293. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/softplus.py +0 -0
  294. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/sort_op.py +0 -0
  295. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
  296. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/sqrt.py +0 -0
  297. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/stack_op.py +0 -0
  298. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/std.py +0 -0
  299. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/strided_copy.py +0 -0
  300. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/sub.py +0 -0
  301. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/sum.py +0 -0
  302. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/tan.py +0 -0
  303. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/tanh.py +0 -0
  304. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/threshold.py +0 -0
  305. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/tiling.yml +0 -0
  306. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/tiling_policy.py +0 -0
  307. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/tiling_sizes.py +0 -0
  308. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/topk.py +0 -0
  309. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/trace_op.py +0 -0
  310. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/tril.py +0 -0
  311. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/triu.py +0 -0
  312. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/unfold_op.py +0 -0
  313. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/unique_op.py +0 -0
  314. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
  315. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
  316. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
  317. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/var.py +0 -0
  318. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/vector_norm.py +0 -0
  319. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/weight_norm.py +0 -0
  320. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/where.py +0 -0
  321. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/wrappers.py +0 -0
  322. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/ops/zeros_op.py +0 -0
  323. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/quant/__init__.py +0 -0
  324. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/quant/quantized_tensor.py +0 -0
  325. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/random/__init__.py +0 -0
  326. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/random/mt_randn.py +0 -0
  327. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/random/rng_pin.py +0 -0
  328. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/random/rng_stream.py +0 -0
  329. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/random/seeded_draw.py +0 -0
  330. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/shape/__init__.py +0 -0
  331. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/src/nbxtensor/terminal.py +0 -0
  332. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/tools/device_key_census.py +0 -0
  333. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/tools/device_key_trace.py +0 -0
  334. {nbxtensor-0.0.9 → nbxtensor-0.1.1}/tools/scatter_scan.py +0 -0
@@ -0,0 +1,29 @@
1
+ # The NeuroBrix CLA check: every author of a pull request has signed the NeuroBrix Contributor Assignment Agreement.
2
+ # The check's code and the signatures live in the private repository NeuroBrix/cla-signatures (one copy for every
3
+ # NeuroBrix repository); the pull request's own code is never checked out or run.
4
+ name: CLA
5
+ on:
6
+ pull_request_target:
7
+ types: [opened, synchronize, reopened]
8
+ issue_comment:
9
+ types: [created]
10
+ permissions:
11
+ contents: read
12
+ pull-requests: write
13
+ issues: write
14
+ statuses: write
15
+ concurrency:
16
+ group: cla-${{ github.event.pull_request.number || github.event.issue.number }}
17
+ jobs:
18
+ cla:
19
+ if: github.event_name == 'pull_request_target' || github.event.issue.pull_request
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - name: Check the signatures
23
+ env:
24
+ PR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25
+ STORE_TOKEN: ${{ secrets.CLA_STORE_TOKEN }}
26
+ run: |
27
+ curl -fsSL -H "Authorization: Bearer $STORE_TOKEN" -H "Accept: application/vnd.github.raw" \
28
+ https://api.github.com/repos/NeuroBrix/cla-signatures/contents/check.py -o "$RUNNER_TEMP/check.py"
29
+ python3 "$RUNNER_TEMP/check.py"
@@ -307,3 +307,5 @@ src/neurobrix/config/autotune/**/*.json.lock
307
307
 
308
308
  # the census table writers' lock files (tools/census_table.py, certified_census.py)
309
309
  src/neurobrix/config/census/**/*.jsonl.lock
310
+
311
+ # the grammar crate's build output
@@ -7,6 +7,87 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.1] - 2026-11-11
11
+
12
+ ### Added
13
+ - **`NBXTensor.from_numpy(arr, dtype=None, device=None)`**: with `device` (an index or `"cuda:N"`) the device is
14
+ selected, then the array placed; a device that names no index (`"cuda"`, `"cpu"`, a negative number) is refused by
15
+ name, never read as device 0.
16
+ - **Device files for Intel Gen12 graphics (`xe_lp`) and Wildcat Lake (`wcl`)**, experimental, not yet validated on
17
+ hardware by the NeuroBrix lab — reports welcome: the Level Zero driver tries these chips; their extension facts are
18
+ read from the chip's OpenCL ICD, never assumed. Intel's Triton compiler emits the same SPIR-V whatever architecture
19
+ name it is handed (measured off-card with triton-xpu 3.8.0, torch never imported), so a chip it names no
20
+ architecture for can be compiled for; the chip's own driver accepts or refuses.
21
+ - **A measure of the `.to(<device>)` calls that move nothing** (`memory/to_device_census.py`, off by default):
22
+ `NBXTensor.to("cuda:N")` answers "already on device" whatever N. With `NBX_TO_DEVICE_CENSUS=<file>` a process
23
+ appends one JSON line at exit — every device-naming call it saw and, by caller, those naming another device than
24
+ the tensor's. No behaviour changes; the count decides whether that contract can refuse or move.
25
+
26
+ ### Changed
27
+ - **A prefill chunk reads the positions spilled to host memory through the card**: `memory/paged_kv`'s spilled chunk
28
+ attention hands the spilled K / V back to the card in blocks (`HostSpill.blocks`, at most the card part's own key
29
+ count each, so a block's scores never exceed the chunk's) and runs the same attention with its log-sum-exp on each,
30
+ merged in a fixed order. The host partial (`HostSpill.partial`) stays the decode step's one row: for a chunk's
31
+ 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
32
+ each spilled chunk of a 79 931-token turn (2026-11-10).
33
+ - **A Level Zero failure is a typed refusal**: `backend.level_zero.IntelDeviceError` (a RuntimeError) carries the
34
+ call, the `ze_result_t` by name and the module's build log, raised by the runtime, the launch driver and a SPIR-V
35
+ module that does not build. The Intel backend is experimental — not yet validated on hardware by the NeuroBrix lab —
36
+ and an application decides on this type what a refusal means.
37
+ - **The Intel launch driver goes through its runtime's contract** (no behaviour change; the backend stays
38
+ experimental, not yet validated on hardware): `backend/level_zero.py` is the only module that knows a Level Zero
39
+ struct, constant or entry point of a module's life — `LevelZeroRuntime.build_module` (answers `ModuleBuilt`: the
40
+ result, the module, the build log; a failure is answered, the retry is the driver's decision), `create_kernel`,
41
+ `kernel_properties`, `destroy_kernel`, `destroy_module`, `set_argument`, `set_group_size`, `append_launch`,
42
+ `current_device`. `backend/level_zero_driver.py` imported 14 private names and issued 12 raw `ze*` calls; it now
43
+ imports none and issues none, and holds the one decision that is a driver's (the 256-register rebuild, its two
44
+ constants beside it). `backend/launcher.py` names publicly what a driver in another file uses: `ModuleDriver`,
45
+ `ctypes_slot`. Proven without a card: the exact ze calls of ten load and launch paths, recorded before the move,
46
+ reproduced by it.
47
+ - **The library's uploads name their device in the call** (the spilled prefill chunk's blocks, masks and merged
48
+ result, the paged decode's host partial, the MoE residency probe): they were written
49
+ `NBXTensor.from_numpy(x).to(device=...)`; `from_numpy` lands on the CURRENT device and `.to("cuda:N")` moves
50
+ nothing, so that idiom was right only when the call before it had left the wanted device current. No wrong placement
51
+ was observed; on a cache whose layers live on two cards it was one reordering away.
52
+ - `NBXTensor.to` reads its positional argument in a named function (`_positional_target`); the method is 40 code
53
+ lines (49), same answers.
54
+
55
+ ### Fixed
56
+ - **Reading a device's memory leaves no context on another device**: `DeviceAllocator.free_memory_mb`,
57
+ `mem_get_info`, `device_total_bytes` and the other probes "restored the previous device" after reading; in a process
58
+ that had selected none, that selected device 0 and made the runtime create a context there. A previous device is
59
+ restored only when the process had selected it (`DeviceAllocator.restore_device`).
60
+
61
+ ## [0.1.0] - 2026-11-10
62
+ ### Changed
63
+ - **Contributions are made under the NeuroBrix Contributor Assignment Agreement** (docs/legal/ of the neurobrix repository, an individual and an entity version): signed once by a comment on the first pull request, for every NeuroBrix project; the `NeuroBrix CLA` check on every pull request says who has yet to sign. CONTRIBUTING.md explains it.
64
+ - **The authors' contact address is contact@neurobrix.org** (the package metadata), the project's address being neurobrix.org.
65
+
66
+ ### Added
67
+ - **A decoding sequence may outgrow the card's KV pages**: past `card_pages`, `PagedTritonKVCache` moves its oldest
68
+ written pages to `memory.host_spill.HostSpill` (float32 in the attention's layout, bounded by a host budget) and keeps
69
+ decoding; each step's attention over the spilled positions is computed on the host
70
+ (`ops.host_decode_partial`) and joins the card's split partials in the same reduce launch — exact, the split-KV
71
+ merge. Qwen3-30B's attention shape on an M4 Pro: 131 072 spilled positions cost 15 ms per layer and step.
72
+ A prompt longer than the card's pages is prefilled chunk by chunk over the card and the host
73
+ (`memory.paged_kv` `chunk_attention`); on a V100 host with 40 threads, 131 072 spilled positions cost 25.8 ms per
74
+ layer and step.
75
+ - **An attention returns its rows' log-sum-exp**: `scaled_dot_product_attention_wrapper(return_lse=True)` returns the
76
+ natural-log LSE of each query row (fp32) on every route — math, chunked math, the flash kernels and the decode path —
77
+ so partial attentions over split keys merge exactly.
78
+ - **`nbxtensor.ops.token_bitmask`**: a token bitmask applied to a decode step's fp32 logits in place (constrained
79
+ decoding): every token whose bit is clear (bit v % 32 of int32 word v // 32, ceil(vocab / 32) words a row) set to
80
+ -inf before the sampler; the mask on the logits' own device, the element-wise launch's certified tile; a mask of
81
+ another shape or allowing no token refused by name. Torch-free.
82
+ - **A KV cache host tier**: `memory.kv_host_tier` (the prefix index of whole pages, the host page pool, the pages a
83
+ sequence holds), `memory.kv_host_pages` (host pages laid out [page][layer][K, V], pinned or pageable; per-layer copies,
84
+ and `offload_gathered` / `restore_scattered`: every layer's page gathered on the device by one kernel per K and V, then
85
+ one copy per page and run of layers — 43 MB in 21 / 8 ms against 184 / 210 ms per layer on a V100), and the paged
86
+ cache's `tier_*` protocol (layout, length, offload, restore in place, resume).
87
+ - **`nbxtensor.ops.embedding_pool`**: an embedding model's pooling on the host (`pool_hidden`: mean over the kept
88
+ positions, cls, or each sequence's last kept position whatever the padding side; `l2_normalize`), numpy and
89
+ torch-free; refusals by name.
90
+
10
91
  ## [0.0.9] - 2026-11-09
11
92
 
12
93
  ### Fixed
@@ -273,7 +354,9 @@ memory; the fix is in test).
273
354
  - **`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.
274
355
  - **`conv1d_forward_kernel`**: launched by no route (a 1-D convolution runs through `conv2d`).
275
356
 
276
- [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.8...HEAD
357
+ [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.1...HEAD
358
+ [0.1.1]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.0...v0.1.1
359
+ [0.1.0]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.9...v0.1.0
277
360
  [0.0.8]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.5...v0.0.8
278
361
  [0.0.5]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.4...v0.0.5
279
362
  [0.0.4]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.3...v0.0.4
@@ -31,6 +31,18 @@ exported here; a pull request on either repository is fine — we carry it acros
31
31
  - **No model knowledge.** The library knows tensors, kernels and devices, never a model by name.
32
32
  - English in code, comments and documentation.
33
33
 
34
+ ## Contributor Assignment Agreement
35
+
36
+ Before your first pull request is merged, you sign the [NeuroBrix Contributor Assignment
37
+ Agreement](https://github.com/NeuroBrix/neurobrix/blob/main/docs/legal/contributor-assignment-agreement.md) — once, for
38
+ every NeuroBrix project (neurobrix, nbxtensor, NBXGrammar, NBX Code, the hub). You assign the rights in your contribution
39
+ to the owner of the NeuroBrix project (named in the NOTICE file) and its successors, and receive back a license to use
40
+ your own contribution as you wish; the owner may license the projects under other terms; no trademark right is involved.
41
+ To sign, post on your pull request the comment `I have read the NeuroBrix Contributor Assignment Agreement and I hereby
42
+ sign it.` — the `NeuroBrix CLA` check then passes. Contributing for a company? Your employer signs the [entity
43
+ agreement](https://github.com/NeuroBrix/neurobrix/blob/main/docs/legal/entity-contributor-assignment-agreement.md) first:
44
+ write to contact@neurobrix.org.
45
+
34
46
  ## Certificates
35
47
 
36
48
  Certificates are the proven kernel settings of a GPU class: see [Certify your own hardware](README.md#certify-your-own-hardware)
@@ -1,5 +1,6 @@
1
1
  nbxtensor
2
2
  Copyright 2025–2026 Hocine Benkelaya
3
+ Owner of the NeuroBrix project (the Owner under the Contributor Assignment Agreement): Hocine Benkelaya
3
4
 
4
5
  Supported and funded by Neural Network Holding Ltd (https://neuralnetworkholding.com).
5
6
  Commercial distribution by WizWorks OÜ (https://wizworks.io).
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nbxtensor
3
- Version: 0.0.9
3
+ Version: 0.1.1
4
4
  Summary: Run AI models without PyTorch: tensors, Triton kernels, planned memory and certified tuning, wherever Triton runs — NVIDIA, AMD, Intel and Apple GPUs.
5
5
  Project-URL: Homepage, https://github.com/NeuroBrix/nbxtensor
6
6
  Project-URL: Source, https://github.com/NeuroBrix/nbxtensor
7
7
  Project-URL: Issues, https://github.com/NeuroBrix/nbxtensor/issues
8
8
  Project-URL: Changelog, https://github.com/NeuroBrix/nbxtensor/blob/main/CHANGELOG.md
9
- Author-email: Hocine Benkelaya <contact@neurobrix.es>
10
- Maintainer-email: Hocine Benkelaya <contact@neurobrix.es>
9
+ Author-email: Hocine Benkelaya <contact@neurobrix.org>
10
+ Maintainer-email: Hocine Benkelaya <contact@neurobrix.org>
11
11
  License: Apache-2.0
12
12
  License-File: LICENSE
13
13
  License-File: NOTICE
@@ -27,7 +27,8 @@ Description-Content-Type: text/markdown
27
27
 
28
28
  Run AI models without PyTorch, on any GPU Triton supports: tensors, Triton kernels, planned memory and certified tuning.
29
29
 
30
- Runs wherever Triton runs — NVIDIA, AMD, Intel and Apple Silicon GPUs, on Linux, Windows and macOS. Inference first; training is not in this
30
+ Validated on NVIDIA and Apple Silicon GPUs, on Linux, Windows and macOS; AMD and Intel GPUs, through the same Triton
31
+ kernels, are targets not yet validated on a card. Inference first; training is not in this
31
32
  release. Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxtensor/issues) — we fix fast.
32
33
 
33
34
  [![PyPI](https://img.shields.io/pypi/v/nbxtensor)](https://pypi.org/project/nbxtensor/)
@@ -4,7 +4,8 @@
4
4
 
5
5
  Run AI models without PyTorch, on any GPU Triton supports: tensors, Triton kernels, planned memory and certified tuning.
6
6
 
7
- Runs wherever Triton runs — NVIDIA, AMD, Intel and Apple Silicon GPUs, on Linux, Windows and macOS. Inference first; training is not in this
7
+ Validated on NVIDIA and Apple Silicon GPUs, on Linux, Windows and macOS; AMD and Intel GPUs, through the same Triton
8
+ kernels, are targets not yet validated on a card. Inference first; training is not in this
8
9
  release. Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxtensor/issues) — we fix fast.
9
10
 
10
11
  [![PyPI](https://img.shields.io/pypi/v/nbxtensor)](https://pypi.org/project/nbxtensor/)
@@ -4,13 +4,13 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nbxtensor"
7
- version = "0.0.9"
7
+ version = "0.1.1"
8
8
  description = "Run AI models without PyTorch: tensors, Triton kernels, planned memory and certified tuning, wherever Triton runs — NVIDIA, AMD, Intel and Apple GPUs."
9
9
  readme = "README.md"
10
10
  license = { text = "Apache-2.0" }
11
11
  requires-python = ">=3.10"
12
- authors = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.es" }]
13
- maintainers = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.es" }]
12
+ authors = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.org" }]
13
+ maintainers = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.org" }]
14
14
  # numpy, triton, pyyaml (the dtype table is a YAML file) and, on Linux, the CUDA runtime. torch is never a dependency, not even an optional one:
15
15
  # nbxtensor never imports torch (R-NBXT 6). Exchange with any other tensor
16
16
  # library goes through DLPack, which the OTHER library imports.
@@ -13,5 +13,5 @@ first publication is 0.0.1, each fix after it increments, the Rust rewrite is
13
13
  """
14
14
 
15
15
  #: the one version number; `pyproject.toml` states the same (tests/test_version.py)
16
- __version__ = "0.0.9"
16
+ __version__ = "0.1.1"
17
17
  __all__: list = []
@@ -0,0 +1,205 @@
1
+ # The library's half of the Intel Wildcat Lake device (Xe3-LPG, integrated) — the keys nbxtensor reads
2
+ # (docs/nbxtensor/device_keys.txt). EXPERIMENTAL, not yet validated on hardware by the NeuroBrix lab (the owner,
3
+ # 2026-11-10 13:09: tried when its Level Zero driver is present). Written 2026-11-10 from ptl_u.yml; no Intel device
4
+ # has run it.
5
+ #
6
+ # compute_capability: Intel's Triton maps no Wildcat Lake architecture (arch_parser.c v3.8.0); Panther Lake-U's name is
7
+ # handed instead — the name reaches only the compiler's native-code path, never taken here (measured 2026-11-10: the
8
+ # SPIR-V is byte-identical under any name, tools/intel_spirv_census.py); Linux's xe driver reads Wildcat Lake with
9
+ # Panther Lake's descriptor (drivers/gpu/drm/xe/xe_pci.c).
10
+ # pci_device_ids: Linux include/drm/intel/pciids.h, INTEL_WCL_IDS.
11
+
12
+ architecture: xe3_lpg
13
+ compute_capability: "ptl_u"
14
+ validation_status: experimental
15
+ pci_device_ids: [0xFD80, 0xFD81]
16
+
17
+ block_sizes:
18
+ # Default block size for simple kernels
19
+ default: 1024
20
+
21
+ # Batched Matrix Multiply configuration
22
+ bmm:
23
+ block_m: 64
24
+ block_n: 64
25
+ block_k: 16
26
+ num_warps: 4
27
+
28
+ # Convolution configuration
29
+ conv2d:
30
+ block_h: 16
31
+ block_w: 16
32
+ num_warps: 4
33
+
34
+ # Generic reduction block size
35
+ reduction: 1024
36
+ # dequant_gemv.min_programs: absent (no width adaptation) until a card measures its Xe-core waves
37
+
38
+ # Scaled Dot-Product Attention block size thresholds.
39
+ # Schema documented in volta.yml. Decode entries first.
40
+ # Values: CDNA3's conservative rows (analytical; owed at first light, docs/reference/owed-proofs.md 2026-11-06).
41
+ sdpa_thresholds:
42
+ # Decode path (seqlen_q ≤ 16)
43
+ - seqlen_q_le: 16
44
+ head_dim_ge: 256
45
+ block_m: 16
46
+ block_n: 16
47
+ num_warps: 4
48
+ - seqlen_q_le: 16
49
+ block_m: 16
50
+ block_n: 32
51
+ num_warps: 4
52
+ # Prefill path (seqlen_q > 16)
53
+ - head_dim_ge: 256
54
+ block_m: 16
55
+ block_n: 16
56
+ num_warps: 4
57
+ - head_dim_ge: 128
58
+ block_m: 32
59
+ block_n: 32
60
+ num_warps: 4
61
+ - head_dim_lt: 128
62
+ block_m: 64
63
+ block_n: 64
64
+ num_warps: 4
65
+
66
+ memory:
67
+ # Shared local memory per work-group. Intel's oneAPI GPU optimization guide (2025-2, "Thread mapping and GPU
68
+ # occupancy"): 128 KB of SLM per Xe-core; a work-group's ceiling is 128 KB on this family. The driver states the
69
+ # exact ceiling (zeDeviceGetComputeProperties maxSharedLocalMemory) and the launch refuses past it.
70
+ max_shared_memory_per_block: 131072
71
+ # fp32 registers one work-group may hold (analytical, owed at first light): 128 GRFs of 64 bytes per hardware
72
+ # thread (Intel oneAPI GPU optimization guide, "Intel Xe GPU architecture": 64-byte GRFs on this family) over its
73
+ # 16 lanes, times the 1024-lane work-group ceiling.
74
+ max_registers_per_block: 131072
75
+ # Triton's Intel target is built with warp_size 32 (driver.py `_construct_target`); a kernel's own subgroup size is
76
+ # its compile metadata's `threads_per_warp`.
77
+ warp_size: 32
78
+ sdpa_math_max_scores_bytes: 0
79
+ sdpa_math_min_chunk_rows: 128
80
+ alloc_pool_parked_cap_fraction: 0.50
81
+
82
+ precision:
83
+ # Attention operands that disagree in dtype (an fp16 GEMM stored fp32 feeding V) all take the
84
+ # narrowest of the three, the compiled engine's alignment: the half attention stays on the matrix
85
+ # unit (V100, 2026-10-08: 1.16 s/op aligned narrowest vs 22.0 s/op on the scalar flash aligned widest).
86
+ attention_operands: narrowest
87
+ # Whether each engine branch's OWN kernels compute float64 / complex128 elements, read with
88
+ # supports_fp64 (both must hold) -- a CAPABILITY: `compiled` is ATen's, which carries both wherever
89
+ # the device does; `triton` is the NeuroBrix Triton kernels' (Intel lowers double where the
90
+ # device has fp64 hardware; Metal's lowering narrows it in silence, measured 2026-09-28). Read
91
+ # by the DtypeEngine (`config.device_supports_fp64`) and by the Triton wrappers' binding
92
+ # (`triton.dtype.triton_has_fp64` -> `nbx_tensor.set_backend_has_fp64`).
93
+ kernels_carry_fp64: # no fp64 hardware stated for this family (Intel Xe architecture guide)
94
+ compiled: false
95
+ triton: false
96
+ # Software-pipelining budget — see nvidia/volta.yml for the schema.
97
+ #
98
+ # validation_status: conservative_pending_first_light — the cap is 2 until an Intel card measures deeper
99
+ # pipelining (clamping costs throughput, unvalidated pipelining could cost correctness).
100
+ pipelining:
101
+ max_num_stages: 2
102
+
103
+ # Autotune correctness screen. The engine runs every candidate config once and
104
+ # compares its result against a reference config's before timing any of them,
105
+ # because an autotuner that ranks on speed alone selects whichever WRONG
106
+ # kernel is fastest — a kernel that writes half its output does half the
107
+ # stores and wins. Measured on Apple 2026-09-07: fp16 mm [64,32]@[32,64] chose
108
+ # a config that left half the columns zero.
109
+ #
110
+ # These are the tolerances that separate "a different but valid summation
111
+ # order" from "a different answer". Two configs with different block sizes
112
+ # reduce in a different order, so their results differ in the last bits; a
113
+ # config that drops output differs by the scale of the output itself. The
114
+ # gap between those two is several orders of magnitude, and these sit in it.
115
+ #
116
+ # Relative to the reference's own magnitude: max|a - b| / max|b|. Integer
117
+ # and boolean results are compared BIT-IDENTICALLY and ignore this table —
118
+ # there is no valid reordering that changes an integer.
119
+ autotune_screen_rtol:
120
+ float16: 2.0e-2
121
+ bfloat16: 4.0e-2
122
+ float32: 1.0e-4
123
+ float64: 1.0e-8
124
+ int64: 0.0 # an integer result (the MoE alignment's routing tables) is met exactly
125
+
126
+ # Above this many bytes of buffer, the autotune correctness screen does not
127
+ # run. Screening copies every argument out and back once per candidate, so a
128
+ # very large tensor turns a tuning step into hundreds of megabytes of traffic
129
+ # — and on unified memory that pressure is the machine's, not a card's.
130
+ # MEASURED 2026-09-07: unbounded screening of a 151936-wide softmax perturbed
131
+ # six unrelated tests in the same process. A skipped screen is announced, not
132
+ # silent.
133
+ autotune_screen_max_bytes: 33554432
134
+
135
+ autotune:
136
+ buckets:
137
+ # elements — an element-wise launch's element count (`kernels/ops/elementwise_launch.py`), NEVER the `default`
138
+ # dimension ladder (`autotune_bucket.ladder_for` refuses it). NOT measured on this architecture (no such device on
139
+ # either machine): the four classes measured on V100-SXM2 2026-10-23 (nvidia/volta.yml, launch-bound under 65 536
140
+ # elements, bandwidth classes above) and confirmed on apple_m4_pro 2026-10-24 — the measurement on this
141
+ # architecture is owed (docs/reference/owed-proofs.md, "element-wise ladder per architecture").
142
+ elements:
143
+ - {up_to: 65536, step: 65536}
144
+ - {up_to: 1048576, step: 1048576}
145
+ - {up_to: 16777216, step: 16777216}
146
+ - {up_to: null, step: 68719476736}
147
+ default:
148
+ - {up_to: 64, step: 1}
149
+ - {up_to: 256, step: 16}
150
+ - {up_to: 1024, step: 32}
151
+ - {up_to: 8192, step: 128}
152
+ # Above 8 192 a QUARTER-OCTAVE, not a 512-step. The 512 tail was decided by a sweep
153
+ # that ran to about 4 096 and never met a request-scale dimension: a vocoder's batched
154
+ # GEMM keys on the WAVEFORM and reaches 1 963 520, which a 512-step cuts into some four
155
+ # thousand buckets — 1 400 of one model's 1 522 distinct M values sat above 8 192.
156
+ # Measured 2026-09-22 on both classes, two shapes (the vocoder's B=1,N=1,K=9 and a
157
+ # GEMM at N=K=512), each octave bucket carrying three or four measured values with its
158
+ # TOP as representative: 0.0 % median loss, 0.2 % max at ONE octave bucket. The rows
159
+ # below are finer than the octave that was measured, so they cost no more than it did.
160
+ # The first three octaves above the knee keep a NARROW step. Measured directly on the
161
+ # rows as shipped (the upscalers' N=360, K=180; three sizes inside each bucket with
162
+ # its TOP among them, 2026-09-22): a quarter-octave there cost 0.0 % median but
163
+ # **5.2 %** at the 10 240 bucket and 1.2 % at 16 384 — the loss lives just above the
164
+ # knee, where a quarter of an OCTAVE is still a quarter of the VALUE. Beyond 65 536
165
+ # the same sweep measured 0.0 % median and at most 0.6 %, so the quarter-octave stands.
166
+ # The convolution-width ladder below keeps its quarter-octave: its own sweep measured
167
+ # 0.0 % median AND max there, on both classes and two channel counts.
168
+ - {up_to: 16384, step: 512}
169
+ - {up_to: 32768, step: 1024}
170
+ - {up_to: 65536, step: 2048}
171
+ - {up_to: 131072, step: 16384}
172
+ - {up_to: 262144, step: 32768}
173
+ - {up_to: 524288, step: 65536}
174
+ - {up_to: 1048576, step: 131072}
175
+ - {up_to: 2097152, step: 262144}
176
+ - {up_to: null, step: 524288}
177
+ # The width of a ONE-ROW convolution (a 1-D convolution over a sequence: a vocoder's
178
+ # samples, a mel spectrogram's frames) is the request's length, unbounded by any
179
+ # resolution — chatterbox's vocoder reaches 444 721 samples for 18 s of speech. Above the
180
+ # GEMM ladder it steps by a quarter-octave (≤ 25 % of the value), so a census meets every
181
+ # class of a speech length in ~100 runs instead of ~1 000; the loss of that step is owed a
182
+ # measurement on both classes (bucket_loss.py) before the ladder is called final.
183
+ W:
184
+ - {up_to: 64, step: 1}
185
+ - {up_to: 256, step: 16}
186
+ - {up_to: 1024, step: 32}
187
+ - {up_to: 8192, step: 128}
188
+ - {up_to: 16384, step: 2048}
189
+ - {up_to: 32768, step: 4096}
190
+ - {up_to: 65536, step: 8192}
191
+ - {up_to: 131072, step: 16384}
192
+ - {up_to: 262144, step: 32768}
193
+ - {up_to: 524288, step: 65536}
194
+ - {up_to: null, step: 131072}
195
+
196
+ # The flash kernel at a power-of-two head dim >= 128 is NOT measured on this architecture: the zero-pad
197
+ # detour stays (launch_keys.flash_headdim_detour). Declared, never left absent: true only where the
198
+ # correctness oracle was run with the detour off on this arch and stack (Volta, Triton 3.8, 2026-10-03).
199
+ flash:
200
+ pow2_head_dim_correct: false
201
+
202
+ # Convolution weight storage order (launch_keys.conv_weight_layout): KCRS, the container's own,
203
+ # until this arch measures KRSC (the M4 Pro measured +46-63 % on its 3x3 keys, 2026-10-07).
204
+ conv:
205
+ weight_layout: KCRS
@@ -0,0 +1,211 @@
1
+ # The library's half of the Intel xe_lp device (Gen12 graphics: Tiger Lake, Rocket Lake, Alder Lake-S/P/N, Raptor
2
+ # Lake-S/U/P and the discrete DG1) — the keys nbxtensor reads (docs/nbxtensor/device_keys.txt).
3
+ # EXPERIMENTAL, not yet validated on hardware by the NeuroBrix lab (the owner, 2026-11-10 13:09: the chip is TRIED when
4
+ # its Level Zero driver is present; a refusal is the driver's, named with its cause). Written 2026-11-10 from mtl.yml;
5
+ # no Intel device has run it. The tiles, thresholds and screens are CDNA3's conservative rows, to be certified on a
6
+ # device by its owner.
7
+ #
8
+ # compute_capability: Intel's Triton names no architecture for Gen12 (intel-xpu-backend-for-triton v3.8.0,
9
+ # third_party/intel/backend/arch_parser.c). The name is handed to the compiler through knobs.intel.device_arch and
10
+ # reaches only its native-code path (ocloc -device), which this library never takes: measured 2026-11-10, the SPIR-V
11
+ # of one kernel is byte-identical under "mtl", "unknown" and "tgllp" (tools/intel_spirv_census.py). "tgllp" is
12
+ # ocloc's own name for Tiger Lake. What decides is the driver's compiler (IGC) at zeModuleCreate, with the
13
+ # extension facts the chip's OpenCL ICD states (level_zero.EXTENSION_FACTS), never assumed here.
14
+ # pci_device_ids: Linux include/drm/intel/pciids.h, INTEL_TGL_IDS, INTEL_RKL_IDS, INTEL_ADLS_IDS, INTEL_ADLP_IDS,
15
+ # INTEL_ADLN_IDS, INTEL_RPLS_IDS, INTEL_RPLU_IDS, INTEL_RPLP_IDS, INTEL_DG1_IDS (the rows of
16
+ # config/vendors/pci_platforms.yml); current compute-runtime lists these platforms as supported (its README).
17
+
18
+ architecture: xe_lp
19
+ compute_capability: "tgllp"
20
+ validation_status: experimental
21
+ pci_device_ids: [0x9A60, 0x9A68, 0x9A70, 0x9A40, 0x9A49, 0x9A59, 0x9A78, 0x9AC0, 0x9AC9, 0x9AD9, 0x9AF8, 0x4C80, 0x4C8A, 0x4C8B, 0x4C8C, 0x4C90, 0x4C9A, 0x4680, 0x4682, 0x4688, 0x468A, 0x468B, 0x4690, 0x4692, 0x4693, 0x46A0, 0x46A1, 0x46A2, 0x46A3, 0x46A6, 0x46A8, 0x46AA, 0x462A, 0x4626, 0x4628, 0x46B0, 0x46B1, 0x46B2, 0x46B3, 0x46C0, 0x46C1, 0x46C2, 0x46C3, 0x46D0, 0x46D1, 0x46D2, 0x46D3, 0x46D4, 0xA780, 0xA781, 0xA782, 0xA783, 0xA788, 0xA789, 0xA78A, 0xA78B, 0xA721, 0xA7A1, 0xA7A9, 0xA7AC, 0xA7AD, 0xA720, 0xA7A0, 0xA7A8, 0xA7AA, 0xA7AB, 0x4905, 0x4906, 0x4907, 0x4908, 0x4909]
22
+
23
+ block_sizes:
24
+ # Default block size for simple kernels
25
+ default: 1024
26
+
27
+ # Batched Matrix Multiply configuration
28
+ bmm:
29
+ block_m: 64
30
+ block_n: 64
31
+ block_k: 16
32
+ num_warps: 4
33
+
34
+ # Convolution configuration
35
+ conv2d:
36
+ block_h: 16
37
+ block_w: 16
38
+ num_warps: 4
39
+
40
+ # Generic reduction block size
41
+ reduction: 1024
42
+ # dequant_gemv.min_programs: absent (no width adaptation) until a card measures its Xe-core waves
43
+
44
+ # Scaled Dot-Product Attention block size thresholds.
45
+ # Schema documented in volta.yml. Decode entries first.
46
+ # Values: CDNA3's conservative rows (analytical; owed at first light, docs/reference/owed-proofs.md 2026-11-06).
47
+ sdpa_thresholds:
48
+ # Decode path (seqlen_q ≤ 16)
49
+ - seqlen_q_le: 16
50
+ head_dim_ge: 256
51
+ block_m: 16
52
+ block_n: 16
53
+ num_warps: 4
54
+ - seqlen_q_le: 16
55
+ block_m: 16
56
+ block_n: 32
57
+ num_warps: 4
58
+ # Prefill path (seqlen_q > 16)
59
+ - head_dim_ge: 256
60
+ block_m: 16
61
+ block_n: 16
62
+ num_warps: 4
63
+ - head_dim_ge: 128
64
+ block_m: 32
65
+ block_n: 32
66
+ num_warps: 4
67
+ - head_dim_lt: 128
68
+ block_m: 64
69
+ block_n: 64
70
+ num_warps: 4
71
+
72
+ memory:
73
+ # Shared local memory per work-group. Intel's oneAPI GPU optimization guide (2025-2, "Thread mapping and GPU
74
+ # occupancy"): 128 KB of SLM per Xe-core; a work-group's ceiling is 64 KB on this family. The driver states the
75
+ # exact ceiling (zeDeviceGetComputeProperties maxSharedLocalMemory) and the launch refuses past it.
76
+ max_shared_memory_per_block: 65536
77
+ # fp32 registers one work-group may hold (analytical, owed at first light): 128 GRFs of 32 bytes per hardware
78
+ # thread (Intel oneAPI GPU optimization guide, "Intel Xe GPU architecture": 32-byte GRFs on this family) over its
79
+ # 16 lanes, times the 1024-lane work-group ceiling.
80
+ max_registers_per_block: 65536
81
+ # Triton's Intel target is built with warp_size 32 (driver.py `_construct_target`); a kernel's own subgroup size is
82
+ # its compile metadata's `threads_per_warp`.
83
+ warp_size: 32
84
+ sdpa_math_max_scores_bytes: 0
85
+ sdpa_math_min_chunk_rows: 128
86
+ alloc_pool_parked_cap_fraction: 0.50
87
+
88
+ precision:
89
+ # Attention operands that disagree in dtype (an fp16 GEMM stored fp32 feeding V) all take the
90
+ # narrowest of the three, the compiled engine's alignment: the half attention stays on the matrix
91
+ # unit (V100, 2026-10-08: 1.16 s/op aligned narrowest vs 22.0 s/op on the scalar flash aligned widest).
92
+ attention_operands: narrowest
93
+ # Whether each engine branch's OWN kernels compute float64 / complex128 elements, read with
94
+ # supports_fp64 (both must hold) -- a CAPABILITY: `compiled` is ATen's, which carries both wherever
95
+ # the device does; `triton` is the NeuroBrix Triton kernels' (Intel lowers double where the
96
+ # device has fp64 hardware; Metal's lowering narrows it in silence, measured 2026-09-28). Read
97
+ # by the DtypeEngine (`config.device_supports_fp64`) and by the Triton wrappers' binding
98
+ # (`triton.dtype.triton_has_fp64` -> `nbx_tensor.set_backend_has_fp64`).
99
+ kernels_carry_fp64: # no fp64 hardware stated for this family (Intel Xe architecture guide)
100
+ compiled: false
101
+ triton: false
102
+ # Software-pipelining budget — see nvidia/volta.yml for the schema.
103
+ #
104
+ # validation_status: conservative_pending_first_light — the cap is 2 until an Intel card measures deeper
105
+ # pipelining (clamping costs throughput, unvalidated pipelining could cost correctness).
106
+ pipelining:
107
+ max_num_stages: 2
108
+
109
+ # Autotune correctness screen. The engine runs every candidate config once and
110
+ # compares its result against a reference config's before timing any of them,
111
+ # because an autotuner that ranks on speed alone selects whichever WRONG
112
+ # kernel is fastest — a kernel that writes half its output does half the
113
+ # stores and wins. Measured on Apple 2026-09-07: fp16 mm [64,32]@[32,64] chose
114
+ # a config that left half the columns zero.
115
+ #
116
+ # These are the tolerances that separate "a different but valid summation
117
+ # order" from "a different answer". Two configs with different block sizes
118
+ # reduce in a different order, so their results differ in the last bits; a
119
+ # config that drops output differs by the scale of the output itself. The
120
+ # gap between those two is several orders of magnitude, and these sit in it.
121
+ #
122
+ # Relative to the reference's own magnitude: max|a - b| / max|b|. Integer
123
+ # and boolean results are compared BIT-IDENTICALLY and ignore this table —
124
+ # there is no valid reordering that changes an integer.
125
+ autotune_screen_rtol:
126
+ float16: 2.0e-2
127
+ bfloat16: 4.0e-2
128
+ float32: 1.0e-4
129
+ float64: 1.0e-8
130
+ int64: 0.0 # an integer result (the MoE alignment's routing tables) is met exactly
131
+
132
+ # Above this many bytes of buffer, the autotune correctness screen does not
133
+ # run. Screening copies every argument out and back once per candidate, so a
134
+ # very large tensor turns a tuning step into hundreds of megabytes of traffic
135
+ # — and on unified memory that pressure is the machine's, not a card's.
136
+ # MEASURED 2026-09-07: unbounded screening of a 151936-wide softmax perturbed
137
+ # six unrelated tests in the same process. A skipped screen is announced, not
138
+ # silent.
139
+ autotune_screen_max_bytes: 33554432
140
+
141
+ autotune:
142
+ buckets:
143
+ # elements — an element-wise launch's element count (`kernels/ops/elementwise_launch.py`), NEVER the `default`
144
+ # dimension ladder (`autotune_bucket.ladder_for` refuses it). NOT measured on this architecture (no such device on
145
+ # either machine): the four classes measured on V100-SXM2 2026-10-23 (nvidia/volta.yml, launch-bound under 65 536
146
+ # elements, bandwidth classes above) and confirmed on apple_m4_pro 2026-10-24 — the measurement on this
147
+ # architecture is owed (docs/reference/owed-proofs.md, "element-wise ladder per architecture").
148
+ elements:
149
+ - {up_to: 65536, step: 65536}
150
+ - {up_to: 1048576, step: 1048576}
151
+ - {up_to: 16777216, step: 16777216}
152
+ - {up_to: null, step: 68719476736}
153
+ default:
154
+ - {up_to: 64, step: 1}
155
+ - {up_to: 256, step: 16}
156
+ - {up_to: 1024, step: 32}
157
+ - {up_to: 8192, step: 128}
158
+ # Above 8 192 a QUARTER-OCTAVE, not a 512-step. The 512 tail was decided by a sweep
159
+ # that ran to about 4 096 and never met a request-scale dimension: a vocoder's batched
160
+ # GEMM keys on the WAVEFORM and reaches 1 963 520, which a 512-step cuts into some four
161
+ # thousand buckets — 1 400 of one model's 1 522 distinct M values sat above 8 192.
162
+ # Measured 2026-09-22 on both classes, two shapes (the vocoder's B=1,N=1,K=9 and a
163
+ # GEMM at N=K=512), each octave bucket carrying three or four measured values with its
164
+ # TOP as representative: 0.0 % median loss, 0.2 % max at ONE octave bucket. The rows
165
+ # below are finer than the octave that was measured, so they cost no more than it did.
166
+ # The first three octaves above the knee keep a NARROW step. Measured directly on the
167
+ # rows as shipped (the upscalers' N=360, K=180; three sizes inside each bucket with
168
+ # its TOP among them, 2026-09-22): a quarter-octave there cost 0.0 % median but
169
+ # **5.2 %** at the 10 240 bucket and 1.2 % at 16 384 — the loss lives just above the
170
+ # knee, where a quarter of an OCTAVE is still a quarter of the VALUE. Beyond 65 536
171
+ # the same sweep measured 0.0 % median and at most 0.6 %, so the quarter-octave stands.
172
+ # The convolution-width ladder below keeps its quarter-octave: its own sweep measured
173
+ # 0.0 % median AND max there, on both classes and two channel counts.
174
+ - {up_to: 16384, step: 512}
175
+ - {up_to: 32768, step: 1024}
176
+ - {up_to: 65536, step: 2048}
177
+ - {up_to: 131072, step: 16384}
178
+ - {up_to: 262144, step: 32768}
179
+ - {up_to: 524288, step: 65536}
180
+ - {up_to: 1048576, step: 131072}
181
+ - {up_to: 2097152, step: 262144}
182
+ - {up_to: null, step: 524288}
183
+ # The width of a ONE-ROW convolution (a 1-D convolution over a sequence: a vocoder's
184
+ # samples, a mel spectrogram's frames) is the request's length, unbounded by any
185
+ # resolution — chatterbox's vocoder reaches 444 721 samples for 18 s of speech. Above the
186
+ # GEMM ladder it steps by a quarter-octave (≤ 25 % of the value), so a census meets every
187
+ # class of a speech length in ~100 runs instead of ~1 000; the loss of that step is owed a
188
+ # measurement on both classes (bucket_loss.py) before the ladder is called final.
189
+ W:
190
+ - {up_to: 64, step: 1}
191
+ - {up_to: 256, step: 16}
192
+ - {up_to: 1024, step: 32}
193
+ - {up_to: 8192, step: 128}
194
+ - {up_to: 16384, step: 2048}
195
+ - {up_to: 32768, step: 4096}
196
+ - {up_to: 65536, step: 8192}
197
+ - {up_to: 131072, step: 16384}
198
+ - {up_to: 262144, step: 32768}
199
+ - {up_to: 524288, step: 65536}
200
+ - {up_to: null, step: 131072}
201
+
202
+ # The flash kernel at a power-of-two head dim >= 128 is NOT measured on this architecture: the zero-pad
203
+ # detour stays (launch_keys.flash_headdim_detour). Declared, never left absent: true only where the
204
+ # correctness oracle was run with the detour off on this arch and stack (Volta, Triton 3.8, 2026-10-03).
205
+ flash:
206
+ pow2_head_dim_correct: false
207
+
208
+ # Convolution weight storage order (launch_keys.conv_weight_layout): KCRS, the container's own,
209
+ # until this arch measures KRSC (the M4 Pro measured +46-63 % on its 3x3 keys, 2026-10-07).
210
+ conv:
211
+ weight_layout: KCRS