nbxtensor 0.1.1__tar.gz → 0.1.2__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 → nbxtensor-0.1.2}/CHANGELOG.md +25 -1
  2. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/PKG-INFO +1 -1
  3. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/pyproject.toml +1 -1
  4. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/__init__.py +1 -1
  5. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/capabilities.py +16 -0
  6. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/triton_ext_driver.py +47 -32
  7. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
  8. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/.github/workflows/cla.yml +0 -0
  9. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/.gitignore +0 -0
  10. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/CONTRIBUTING.md +0 -0
  11. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/LICENSE +0 -0
  12. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/NOTICE +0 -0
  13. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/README.md +0 -0
  14. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/THIRD_PARTY_NOTICES.md +0 -0
  15. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/assets/logo.png +0 -0
  16. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/__main__.py +0 -0
  17. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/__init__.py +0 -0
  18. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/cpu/__init__.py +0 -0
  19. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/cpu/blas.py +0 -0
  20. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/cpu/pool.py +0 -0
  21. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/cpu_backend.py +0 -0
  22. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/device_facts.py +0 -0
  23. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/device_files.py +0 -0
  24. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/device_names.py +0 -0
  25. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
  26. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
  27. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
  28. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
  29. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
  30. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
  31. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
  32. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
  33. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
  34. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
  35. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
  36. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
  37. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
  38. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
  39. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
  40. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
  41. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
  42. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
  43. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
  44. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
  45. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
  46. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
  47. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
  48. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
  49. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
  50. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
  51. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
  52. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -0
  53. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -0
  54. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
  55. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
  56. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
  57. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/mtl.yml +0 -0
  58. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -0
  59. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -0
  60. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
  61. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/wcl.yml +0 -0
  62. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/xe_lp.yml +0 -0
  63. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
  64. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
  65. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
  66. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/faults.py +0 -0
  67. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/host_memory.py +0 -0
  68. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/install_help.py +0 -0
  69. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/install_metal.py +0 -0
  70. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/install_steps.yml +0 -0
  71. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/launcher.py +0 -0
  72. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/launcher_contract.py +0 -0
  73. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/level_zero.py +0 -0
  74. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/level_zero_driver.py +0 -0
  75. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/libnames.py +0 -0
  76. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/metal_backend.py +0 -0
  77. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/metal_device.py +0 -0
  78. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/process_memory.py +0 -0
  79. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/replay_graph.py +0 -0
  80. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/runtime.py +0 -0
  81. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/__init__.py +0 -0
  82. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/convert.py +0 -0
  83. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/dtypes.yml +0 -0
  84. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/itemsize.py +0 -0
  85. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
  86. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/operands.py +0 -0
  87. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/outputs.py +0 -0
  88. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/policy.py +0 -0
  89. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/policy.yml +0 -0
  90. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/promotion.py +0 -0
  91. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/host.py +0 -0
  92. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/io/__init__.py +0 -0
  93. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/io/read_rate.py +0 -0
  94. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/io/safetensors.py +0 -0
  95. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/__init__.py +0 -0
  96. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/allocator.py +0 -0
  97. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/arena.py +0 -0
  98. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/device_memory.py +0 -0
  99. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/device_transfer.py +0 -0
  100. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/host_spill.py +0 -0
  101. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/kv_host_pages.py +0 -0
  102. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/kv_host_tier.py +0 -0
  103. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/kv_session.py +0 -0
  104. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/layout.py +0 -0
  105. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/memory_pool.py +0 -0
  106. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/metal.py +0 -0
  107. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/oom_advice.py +0 -0
  108. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/paged_kv.py +0 -0
  109. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/pages.py +0 -0
  110. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/pointer_tables.py +0 -0
  111. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/pool.py +0 -0
  112. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/shadow.py +0 -0
  113. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/slab.py +0 -0
  114. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/to_device_census.py +0 -0
  115. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/trace_replay.py +0 -0
  116. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
  117. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/vmm.py +0 -0
  118. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/__init__.py +0 -0
  119. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/_autotune_policy.py +0 -0
  120. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/_common.py +0 -0
  121. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/_configs.py +0 -0
  122. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/_cost.py +0 -0
  123. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/abs.py +0 -0
  124. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
  125. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/add.py +0 -0
  126. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/addcdiv.py +0 -0
  127. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/addcmul.py +0 -0
  128. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/addmv_op.py +0 -0
  129. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/addr.py +0 -0
  130. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/all_reduce.py +0 -0
  131. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/amax.py +0 -0
  132. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/any_reduce.py +0 -0
  133. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/arange_op.py +0 -0
  134. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/argmax.py +0 -0
  135. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/argmin.py +0 -0
  136. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/atan2.py +0 -0
  137. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/attention_wrappers.py +0 -0
  138. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/autotune_bucket.py +0 -0
  139. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/autotune_cache.py +0 -0
  140. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/autotune_certified.py +0 -0
  141. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/autotune_refusals.py +0 -0
  142. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/autotune_settings.py +0 -0
  143. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/avg_pool2d.py +0 -0
  144. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/baddbmm_op.py +0 -0
  145. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/batch_norm.py +0 -0
  146. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/binary_strided.py +0 -0
  147. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bitwise_and.py +0 -0
  148. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
  149. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bitwise_not.py +0 -0
  150. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bitwise_or.py +0 -0
  151. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
  152. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bucketize.py +0 -0
  153. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cat_op.py +0 -0
  154. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/celu.py +0 -0
  155. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/certified_index.py +0 -0
  156. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/clamp.py +0 -0
  157. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/clamp_min.py +0 -0
  158. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/conv2d.py +0 -0
  159. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
  160. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
  161. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
  162. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/conv_wrappers.py +0 -0
  163. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/copy.py +0 -0
  164. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/copy_op.py +0 -0
  165. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cos.py +0 -0
  166. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/count_nonzero.py +0 -0
  167. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cross_entropy.py +0 -0
  168. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cummax.py +0 -0
  169. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cummin.py +0 -0
  170. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cumsum.py +0 -0
  171. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
  172. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
  173. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dequant_gemv.py +0 -0
  174. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dft.py +0 -0
  175. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dispatch.py +0 -0
  176. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/div.py +0 -0
  177. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dot_op.py +0 -0
  178. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dropout.py +0 -0
  179. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dtype_convert.py +0 -0
  180. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/elementwise_launch.py +0 -0
  181. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
  182. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/elu.py +0 -0
  183. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/embedding.py +0 -0
  184. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/embedding_pool.py +0 -0
  185. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/eq.py +0 -0
  186. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/erf.py +0 -0
  187. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/exp.py +0 -0
  188. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/exp2.py +0 -0
  189. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/fft_op.py +0 -0
  190. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/fill_op.py +0 -0
  191. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/flash_attention.py +0 -0
  192. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
  193. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/flash_decode.py +0 -0
  194. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/flip_op.py +0 -0
  195. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/floor.py +0 -0
  196. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/full_op.py +0 -0
  197. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/fused_moe.py +0 -0
  198. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
  199. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
  200. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/gather_op.py +0 -0
  201. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/ge.py +0 -0
  202. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/gelu.py +0 -0
  203. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/gemv_vec.py +0 -0
  204. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/glu.py +0 -0
  205. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/grid_sampler.py +0 -0
  206. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
  207. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/groupnorm.py +0 -0
  208. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/gt.py +0 -0
  209. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/hardsigmoid.py +0 -0
  210. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/hardswish.py +0 -0
  211. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/host_decode_partial.py +0 -0
  212. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/im2col.py +0 -0
  213. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/index_add.py +0 -0
  214. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/index_put_op.py +0 -0
  215. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/index_select.py +0 -0
  216. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/index_wrappers.py +0 -0
  217. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/isfinite.py +0 -0
  218. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/isinf.py +0 -0
  219. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/isnan.py +0 -0
  220. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/launch_keys.py +0 -0
  221. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/launch_observer.py +0 -0
  222. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/layernorm.py +0 -0
  223. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/le.py +0 -0
  224. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/leaky_relu.py +0 -0
  225. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/lerp.py +0 -0
  226. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/linalg_wrappers.py +0 -0
  227. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/linspace_op.py +0 -0
  228. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/log.py +0 -0
  229. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/log_sigmoid.py +0 -0
  230. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/logical_and.py +0 -0
  231. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/logical_not.py +0 -0
  232. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/logical_or.py +0 -0
  233. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/logical_xor.py +0 -0
  234. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/loss_wrappers.py +0 -0
  235. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/lt.py +0 -0
  236. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/masked_fill.py +0 -0
  237. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/matmul.py +0 -0
  238. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
  239. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/max_pool2d.py +0 -0
  240. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/max_pool3d.py +0 -0
  241. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/max_reduce.py +0 -0
  242. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/maximum.py +0 -0
  243. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/mean.py +0 -0
  244. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/min_reduce.py +0 -0
  245. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/minimum.py +0 -0
  246. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/mish.py +0 -0
  247. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
  248. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/moe_align.py +0 -0
  249. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
  250. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/moe_device_residency.py +0 -0
  251. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/moe_wrappers.py +0 -0
  252. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/mse_loss.py +0 -0
  253. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/mul.py +0 -0
  254. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/nan_to_num.py +0 -0
  255. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/ne.py +0 -0
  256. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/neg.py +0 -0
  257. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/nllloss.py +0 -0
  258. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/nonzero.py +0 -0
  259. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/nonzero_op.py +0 -0
  260. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/norm_wrappers.py +0 -0
  261. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/ones_op.py +0 -0
  262. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/oracles/__init__.py +0 -0
  263. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
  264. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/pad_op.py +0 -0
  265. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
  266. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
  267. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
  268. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/pow.py +0 -0
  269. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/prod.py +0 -0
  270. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/rand_op.py +0 -0
  271. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/random_wrappers.py +0 -0
  272. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/reciprocal.py +0 -0
  273. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
  274. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/relu.py +0 -0
  275. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/remainder.py +0 -0
  276. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/repeat_interleave.py +0 -0
  277. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/repeat_op.py +0 -0
  278. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/residual_chain.py +0 -0
  279. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/rmsnorm.py +0 -0
  280. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/rope.py +0 -0
  281. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/rsqrt.py +0 -0
  282. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/scaled_softmax.py +0 -0
  283. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/scatter_op.py +0 -0
  284. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/screen_oracle.py +0 -0
  285. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/selu.py +0 -0
  286. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/shape_wrappers.py +0 -0
  287. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sigmoid.py +0 -0
  288. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/silu.py +0 -0
  289. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sin.py +0 -0
  290. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/softmax.py +0 -0
  291. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/softplus.py +0 -0
  292. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sort_op.py +0 -0
  293. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
  294. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sqrt.py +0 -0
  295. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/stack_op.py +0 -0
  296. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/std.py +0 -0
  297. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/strided_copy.py +0 -0
  298. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sub.py +0 -0
  299. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sum.py +0 -0
  300. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tan.py +0 -0
  301. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tanh.py +0 -0
  302. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/threshold.py +0 -0
  303. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tiling.yml +0 -0
  304. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tiling_policy.py +0 -0
  305. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tiling_sizes.py +0 -0
  306. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/token_bitmask.py +0 -0
  307. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/topk.py +0 -0
  308. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/trace_op.py +0 -0
  309. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tril.py +0 -0
  310. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/triu.py +0 -0
  311. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/unfold_op.py +0 -0
  312. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/unique_op.py +0 -0
  313. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
  314. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
  315. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
  316. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/var.py +0 -0
  317. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/vector_norm.py +0 -0
  318. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/weight_norm.py +0 -0
  319. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/where.py +0 -0
  320. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/wrappers.py +0 -0
  321. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/zeros_op.py +0 -0
  322. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/quant/__init__.py +0 -0
  323. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/quant/quantized_tensor.py +0 -0
  324. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/random/__init__.py +0 -0
  325. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/random/mt_randn.py +0 -0
  326. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/random/rng_pin.py +0 -0
  327. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/random/rng_stream.py +0 -0
  328. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/random/seeded_draw.py +0 -0
  329. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/shape/__init__.py +0 -0
  330. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/tensor.py +0 -0
  331. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/terminal.py +0 -0
  332. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/tools/device_key_census.py +0 -0
  333. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/tools/device_key_trace.py +0 -0
  334. {nbxtensor-0.1.1 → nbxtensor-0.1.2}/tools/scatter_scan.py +0 -0
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.2] - 2026-11-11
11
+
12
+ ### Added
13
+ - `backend.capabilities.backend_kernels_read_data_ptr()`: whether a tensor's `data_ptr()` is the address a kernel
14
+ dereferences, stated per backend (CUDA and HIP yes; Metal no — a kernel there reads a pinned wrap's address,
15
+ handed by the launcher; Level Zero no — its kernels load no address from memory). What a launch over a table of
16
+ `data_ptr()` values stands on; a backend without a row is refused by name.
17
+
18
+ ### Fixed
19
+ - **Apple: an address read through a pinned table is answered from a wrap that covers it.** The Metal driver kept
20
+ its pinned whole-allocation wraps under their base address alone, and a pool segment begins where its first block
21
+ does. With that first block pinned, a view inside another block of the same segment — a slot of the Triton expert
22
+ store's arena — resolved to the first block's short wrap and was handed an address past that buffer's end: another
23
+ buffer's bytes, nothing raised. Found by a test that builds the copying expert store (the one with an arena)
24
+ directly and runs it after nine earlier mixture-of-experts runs in one process: every row of its result was wrong.
25
+ The engine does not build that store on Apple — a unified device's store binds its experts in place, where they
26
+ lie in the container's files — and the published 0.6.6 was not seen affected through `neurobrix serve`: on the
27
+ two plans the mixture-of-experts model that fits a 24 GB Mac takes (resident, and streamed layer by layer), no
28
+ pinned address out of two million was answered past its wrap and every expert's address resolved to an
29
+ allocation of its own. The expert-store plan itself was not run on Apple hardware (its models are 31 GB). The
30
+ wraps are now kept under their extent (base and size), and `pinned_gpu_address` refuses by name an address beyond
31
+ the wrap it resolved. CUDA and Level Zero are not concerned: they have no such wraps.
32
+
10
33
  ## [0.1.1] - 2026-11-11
11
34
 
12
35
  ### Added
@@ -354,7 +377,8 @@ memory; the fix is in test).
354
377
  - **`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.
355
378
  - **`conv1d_forward_kernel`**: launched by no route (a 1-D convolution runs through `conv2d`).
356
379
 
357
- [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.1...HEAD
380
+ [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.2...HEAD
381
+ [0.1.2]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.1...v0.1.2
358
382
  [0.1.1]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.0...v0.1.1
359
383
  [0.1.0]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.9...v0.1.0
360
384
  [0.0.8]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.5...v0.0.8
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nbxtensor
3
- Version: 0.1.1
3
+ Version: 0.1.2
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nbxtensor"
7
- version = "0.1.1"
7
+ version = "0.1.2"
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" }
@@ -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.1.1"
16
+ __version__ = "0.1.2"
17
17
  __all__: list = []
@@ -52,6 +52,15 @@ _BACKEND_TRAPS_ON_DEVICE_ASSERT = {"cuda": True, "hip": True, "xpu": False, "met
52
52
  # backend is adding a row.
53
53
  # xpu: not measured on a card — False (the band refuses by name) until a launch reads through a loaded address.
54
54
  _BACKEND_LOADS_POINTERS_FROM_MEMORY = {"cuda": True, "hip": True, "xpu": False, "metal": False}
55
+ # Whether a tensor's `data_ptr()` is the address a KERNEL dereferences — what a launch over a table of `data_ptr()`
56
+ # values (the expert store's residency on the card, `ops/moe_device_residency`) stands on.
57
+ # cuda, hip: yes — one address space for the host's handle and the kernel (the residency's device test, V100).
58
+ # metal: no — `data_ptr()` is the CPU mapping; a kernel reads a pinned wrap's GPU address, handed by the
59
+ # launcher (`triton_ext_driver.pinned_gpu_address`), and a raw launch refuses a tensor it did not wrap.
60
+ # xpu: no — its kernels load no address from memory at all (the row above), so no table of them is read.
61
+ # A different question from the row above: Metal loads an address from memory (declared by its launcher) and still
62
+ # answers no here. Adding a backend is adding a row.
63
+ _BACKEND_KERNELS_READ_DATA_PTR = {"cuda": True, "hip": True, "xpu": False, "metal": False}
55
64
  # Whether the backend's kernels can read and write a float64 (or complex128) element. Metal
56
65
  # has no double: its lowering NARROWS f64 to float in silence (`triton/metal_backend.py`,
57
66
  # `TRITON_METAL_FP64_UNAVAILABLE`), so a kernel over a float64 buffer reads eight-byte
@@ -207,3 +216,10 @@ def backend_traps_on_device_assert() -> bool:
207
216
  return _backend_capability(
208
217
  _BACKEND_TRAPS_ON_DEVICE_ASSERT, "_BACKEND_TRAPS_ON_DEVICE_ASSERT",
209
218
  "whether it honours a device-side assert")
219
+
220
+
221
+ def backend_kernels_read_data_ptr() -> bool:
222
+ """True where a tensor's `data_ptr()` is the address a kernel dereferences (a table of them can be launched on)."""
223
+ return _backend_capability(
224
+ _BACKEND_KERNELS_READ_DATA_PTR, "_BACKEND_KERNELS_READ_DATA_PTR",
225
+ "whether a kernel reads a tensor's data_ptr() as its address")
@@ -447,29 +447,41 @@ _PINNED_WRAPS: dict = {}
447
447
  # (`reads_addresses`, carried by `_Trailing`). Measured 2026-09-21
448
448
  # (granite): per-expert kept wraps also worked but Metal declined the ~480th
449
449
  # GB-scale alias, so one wrap per allocation is the shape that scales.
450
- # base -> [wrap, refcount, gpu_va].
450
+ # (base, size) -> [wrap, refcount, gpu_va]. Keyed by the EXTENT, never by the base alone: a pool segment and its
451
+ # first block begin at the same address, and under one key a view inside another block of the segment found the
452
+ # first block's short wrap and was handed an address past that buffer's end (the expert store's slots, 2026-11-11:
453
+ # wrong bytes, nothing raised).
451
454
  _RESIDENT_WRAPS: dict = {}
452
455
 
453
456
 
454
- def _resident_acquire(addr: int) -> int:
457
+ def _pinned_extent(addr: int):
458
+ """(base, size) of the allocation whose whole-allocation wrap answers for `addr` — the block registered at
459
+ `addr`, else the live range containing it — or None for a recorded shadow (memory that exists nowhere). The one
460
+ place both the pin and the address read it, so they cannot disagree."""
461
+ from nbxtensor.memory.allocator import DeviceAllocator
462
+ size = DeviceAllocator._cuda_ptr_size.get(addr)
463
+ if size is not None:
464
+ return addr, size
465
+ if _recorded_shadow(addr) is not None:
466
+ return None
467
+ return _containing_allocation(addr)
468
+
469
+
470
+ def _resident_acquire(addr: int):
455
471
  """Pin one wrap of the whole allocation containing `addr` for the scope's
456
- lifetime (`_RESIDENT_WRAPS` holds it); returns base."""
472
+ lifetime (`_RESIDENT_WRAPS` holds it); returns its key, the extent (None: a
473
+ census shadow allocation, recorded as one — nothing to wrap, nothing to
474
+ hold; an address nobody recorded still fails in `_pinned_extent`)."""
457
475
  import numpy as np
458
- from nbxtensor.memory.allocator import DeviceAllocator
459
476
 
460
- size = DeviceAllocator._cuda_ptr_size.get(addr)
461
- base = addr
462
- if size is None:
463
- if _recorded_shadow(addr) is not None:
464
- # A census shadow allocation, recorded as one: memory that exists nowhere, so
465
- # nothing to wrap and nothing to hold. Recognised, not skipped: an address that
466
- # nobody recorded still fails below, in a shadow as in a real run.
467
- return None
468
- base, size = _containing_allocation(addr)
469
- ent = _RESIDENT_WRAPS.get(base)
477
+ key = _pinned_extent(addr)
478
+ if key is None:
479
+ return None
480
+ ent = _RESIDENT_WRAPS.get(key)
470
481
  if ent is not None:
471
482
  ent[1] += 1
472
- return base
483
+ return key
484
+ base, size = key
473
485
  raw = (ctypes.c_byte * size).from_address(base)
474
486
  view = np.frombuffer(memoryview(raw), dtype=np.uint8)
475
487
  # Inside a pool: `gpu_address()` records the buffer in triton-ext's weak table of exposed buffers, and an
@@ -481,8 +493,8 @@ def _resident_acquire(addr: int) -> int:
481
493
  with objc.autorelease_pool():
482
494
  buf = _native().wrap(view)
483
495
  gpu_va = int(buf.gpu_address()) # also records it as exposed, weakly
484
- _RESIDENT_WRAPS[base] = [buf, 1, gpu_va]
485
- return base
496
+ _RESIDENT_WRAPS[key] = [buf, 1, gpu_va]
497
+ return key
486
498
 
487
499
 
488
500
  def pinned_gpu_address(addr: int) -> int:
@@ -494,23 +506,26 @@ def pinned_gpu_address(addr: int) -> int:
494
506
  probe_read_through 2026-09-21). The pin's whole-allocation kept wrap
495
507
  is therefore the one address authority: its gpu_address plus the CPU
496
508
  offset inside the allocation, computable on the host with no launch.
509
+ Refuses by name an address its allocation's wrap is not held for, and one
510
+ that would lie beyond the wrap it resolved: past a buffer's end the read
511
+ is whatever Metal maps there.
497
512
  """
498
- from nbxtensor.memory.allocator import DeviceAllocator
499
- size = DeviceAllocator._cuda_ptr_size.get(addr)
500
- base = addr
501
- if size is None:
502
- if _recorded_shadow(addr) is not None:
503
- # A recorded shadow has no GPU address to give; the shadow's own address stands
504
- # for it, exactly as every other address in a shadow addresses nothing.
505
- return int(addr)
506
- base, size = _containing_allocation(addr)
507
- ent = _RESIDENT_WRAPS.get(base)
513
+ key = _pinned_extent(addr)
514
+ if key is None:
515
+ # A recorded shadow has no GPU address to give; the shadow's own address stands
516
+ # for it, exactly as every other address in a shadow addresses nothing.
517
+ return int(addr)
518
+ ent = _RESIDENT_WRAPS.get(key)
508
519
  if ent is None:
509
520
  raise RuntimeError(
510
521
  f"pinned_gpu_address(0x{addr:x}): its allocation is not under any "
511
522
  f"pinned_addresses scope — an address handed out without a pin "
512
523
  f"would go stale silently, which is the defect this refuses")
513
- return ent[2] + (addr - base)
524
+ if not 0 <= addr - key[0] < ent[0].nbytes:
525
+ raise RuntimeError(
526
+ f"pinned_gpu_address(0x{addr:x}): {addr - key[0]} bytes from its allocation's base, beyond the wrap "
527
+ f"held for it ({ent[0].nbytes} bytes) — an address past a buffer's end reads another buffer's bytes")
528
+ return ent[2] + (addr - key[0])
514
529
 
515
530
 
516
531
  def _recorded_shadow(addr: int):
@@ -520,15 +535,15 @@ def _recorded_shadow(addr: int):
520
535
  return shadow_range(addr)
521
536
 
522
537
 
523
- def _resident_release(base) -> None:
524
- if base is None: # a recorded shadow held nothing
538
+ def _resident_release(key) -> None:
539
+ if key is None: # a recorded shadow held nothing
525
540
  return
526
- ent = _RESIDENT_WRAPS.get(base)
541
+ ent = _RESIDENT_WRAPS.get(key)
527
542
  if ent is None:
528
543
  return
529
544
  ent[1] -= 1
530
545
  if ent[1] <= 0:
531
- _RESIDENT_WRAPS.pop(base, None) # the wrap dies here; the weak exposed table drops it
546
+ _RESIDENT_WRAPS.pop(key, None) # the wrap dies here; the weak exposed table drops it
532
547
  #: How many open scopes pin each address. A wrap is dropped only when the last
533
548
  #: scope holding its address exits.
534
549
  _PIN_COUNTS: dict = {}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes