nbxtensor 0.1.2__tar.gz → 0.1.3__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.2 → nbxtensor-0.1.3}/CHANGELOG.md +30 -3
  2. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/PKG-INFO +7 -6
  3. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/README.md +6 -5
  4. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/pyproject.toml +1 -1
  5. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/__init__.py +1 -1
  6. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/dtype/outputs.py +1 -1
  7. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/paged_kv.py +4 -0
  8. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/pointer_tables.py +16 -16
  9. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/trace_replay.py +3 -3
  10. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/vmm.py +20 -3
  11. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/linalg_wrappers.py +1 -1
  12. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/tensor.py +11 -2
  13. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
  14. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/.github/workflows/cla.yml +0 -0
  15. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/.gitignore +0 -0
  16. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/CONTRIBUTING.md +0 -0
  17. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/LICENSE +0 -0
  18. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/NOTICE +0 -0
  19. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/THIRD_PARTY_NOTICES.md +0 -0
  20. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/assets/logo.png +0 -0
  21. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/__main__.py +0 -0
  22. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/__init__.py +0 -0
  23. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/capabilities.py +0 -0
  24. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/cpu/__init__.py +0 -0
  25. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/cpu/blas.py +0 -0
  26. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/cpu/pool.py +0 -0
  27. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/cpu_backend.py +0 -0
  28. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/device_facts.py +0 -0
  29. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/device_files.py +0 -0
  30. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/device_names.py +0 -0
  31. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
  32. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
  33. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
  34. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
  35. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
  36. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
  37. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
  38. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
  39. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
  40. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
  41. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
  42. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
  43. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
  44. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
  45. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
  46. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
  47. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
  48. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
  49. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
  50. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
  51. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
  52. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
  53. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
  54. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
  55. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
  56. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
  57. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
  58. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -0
  59. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -0
  60. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
  61. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
  62. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
  63. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/mtl.yml +0 -0
  64. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -0
  65. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -0
  66. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
  67. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/wcl.yml +0 -0
  68. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/intel/xe_lp.yml +0 -0
  69. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
  70. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
  71. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
  72. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/faults.py +0 -0
  73. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/host_memory.py +0 -0
  74. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/install_help.py +0 -0
  75. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/install_metal.py +0 -0
  76. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/install_steps.yml +0 -0
  77. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/launcher.py +0 -0
  78. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/launcher_contract.py +0 -0
  79. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/level_zero.py +0 -0
  80. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/level_zero_driver.py +0 -0
  81. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/libnames.py +0 -0
  82. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/metal_backend.py +0 -0
  83. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/metal_device.py +0 -0
  84. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/process_memory.py +0 -0
  85. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/replay_graph.py +0 -0
  86. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/runtime.py +0 -0
  87. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/backend/triton_ext_driver.py +0 -0
  88. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/dtype/__init__.py +0 -0
  89. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/dtype/convert.py +0 -0
  90. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/dtype/dtypes.yml +0 -0
  91. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/dtype/itemsize.py +0 -0
  92. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
  93. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/dtype/operands.py +0 -0
  94. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/dtype/policy.py +0 -0
  95. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/dtype/policy.yml +0 -0
  96. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/dtype/promotion.py +0 -0
  97. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/host.py +0 -0
  98. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/io/__init__.py +0 -0
  99. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/io/read_rate.py +0 -0
  100. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/io/safetensors.py +0 -0
  101. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/__init__.py +0 -0
  102. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/allocator.py +0 -0
  103. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/arena.py +0 -0
  104. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/device_memory.py +0 -0
  105. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/device_transfer.py +0 -0
  106. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/host_spill.py +0 -0
  107. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/kv_host_pages.py +0 -0
  108. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/kv_host_tier.py +0 -0
  109. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/kv_session.py +0 -0
  110. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/layout.py +0 -0
  111. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/memory_pool.py +0 -0
  112. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/metal.py +0 -0
  113. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/oom_advice.py +0 -0
  114. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/pages.py +0 -0
  115. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/pool.py +0 -0
  116. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/shadow.py +0 -0
  117. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/slab.py +0 -0
  118. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/to_device_census.py +0 -0
  119. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
  120. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/__init__.py +0 -0
  121. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/_autotune_policy.py +0 -0
  122. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/_common.py +0 -0
  123. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/_configs.py +0 -0
  124. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/_cost.py +0 -0
  125. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/abs.py +0 -0
  126. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
  127. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/add.py +0 -0
  128. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/addcdiv.py +0 -0
  129. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/addcmul.py +0 -0
  130. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/addmv_op.py +0 -0
  131. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/addr.py +0 -0
  132. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/all_reduce.py +0 -0
  133. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/amax.py +0 -0
  134. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/any_reduce.py +0 -0
  135. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/arange_op.py +0 -0
  136. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/argmax.py +0 -0
  137. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/argmin.py +0 -0
  138. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/atan2.py +0 -0
  139. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/attention_wrappers.py +0 -0
  140. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/autotune_bucket.py +0 -0
  141. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/autotune_cache.py +0 -0
  142. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/autotune_certified.py +0 -0
  143. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/autotune_refusals.py +0 -0
  144. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/autotune_settings.py +0 -0
  145. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/avg_pool2d.py +0 -0
  146. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/baddbmm_op.py +0 -0
  147. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/batch_norm.py +0 -0
  148. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/binary_strided.py +0 -0
  149. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/bitwise_and.py +0 -0
  150. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
  151. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/bitwise_not.py +0 -0
  152. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/bitwise_or.py +0 -0
  153. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
  154. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/bucketize.py +0 -0
  155. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/cat_op.py +0 -0
  156. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/celu.py +0 -0
  157. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/certified_index.py +0 -0
  158. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/clamp.py +0 -0
  159. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/clamp_min.py +0 -0
  160. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/conv2d.py +0 -0
  161. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
  162. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
  163. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
  164. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/conv_wrappers.py +0 -0
  165. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/copy.py +0 -0
  166. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/copy_op.py +0 -0
  167. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/cos.py +0 -0
  168. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/count_nonzero.py +0 -0
  169. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/cross_entropy.py +0 -0
  170. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/cummax.py +0 -0
  171. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/cummin.py +0 -0
  172. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/cumsum.py +0 -0
  173. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
  174. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
  175. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/dequant_gemv.py +0 -0
  176. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/dft.py +0 -0
  177. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/dispatch.py +0 -0
  178. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/div.py +0 -0
  179. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/dot_op.py +0 -0
  180. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/dropout.py +0 -0
  181. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/dtype_convert.py +0 -0
  182. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/elementwise_launch.py +0 -0
  183. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
  184. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/elu.py +0 -0
  185. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/embedding.py +0 -0
  186. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/embedding_pool.py +0 -0
  187. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/eq.py +0 -0
  188. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/erf.py +0 -0
  189. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/exp.py +0 -0
  190. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/exp2.py +0 -0
  191. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/fft_op.py +0 -0
  192. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/fill_op.py +0 -0
  193. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/flash_attention.py +0 -0
  194. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
  195. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/flash_decode.py +0 -0
  196. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/flip_op.py +0 -0
  197. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/floor.py +0 -0
  198. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/full_op.py +0 -0
  199. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/fused_moe.py +0 -0
  200. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
  201. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
  202. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/gather_op.py +0 -0
  203. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/ge.py +0 -0
  204. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/gelu.py +0 -0
  205. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/gemv_vec.py +0 -0
  206. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/glu.py +0 -0
  207. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/grid_sampler.py +0 -0
  208. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
  209. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/groupnorm.py +0 -0
  210. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/gt.py +0 -0
  211. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/hardsigmoid.py +0 -0
  212. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/hardswish.py +0 -0
  213. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/host_decode_partial.py +0 -0
  214. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/im2col.py +0 -0
  215. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/index_add.py +0 -0
  216. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/index_put_op.py +0 -0
  217. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/index_select.py +0 -0
  218. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/index_wrappers.py +0 -0
  219. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/isfinite.py +0 -0
  220. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/isinf.py +0 -0
  221. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/isnan.py +0 -0
  222. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/launch_keys.py +0 -0
  223. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/launch_observer.py +0 -0
  224. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/layernorm.py +0 -0
  225. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/le.py +0 -0
  226. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/leaky_relu.py +0 -0
  227. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/lerp.py +0 -0
  228. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/linspace_op.py +0 -0
  229. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/log.py +0 -0
  230. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/log_sigmoid.py +0 -0
  231. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/logical_and.py +0 -0
  232. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/logical_not.py +0 -0
  233. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/logical_or.py +0 -0
  234. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/logical_xor.py +0 -0
  235. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/loss_wrappers.py +0 -0
  236. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/lt.py +0 -0
  237. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/masked_fill.py +0 -0
  238. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/matmul.py +0 -0
  239. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
  240. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/max_pool2d.py +0 -0
  241. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/max_pool3d.py +0 -0
  242. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/max_reduce.py +0 -0
  243. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/maximum.py +0 -0
  244. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/mean.py +0 -0
  245. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/min_reduce.py +0 -0
  246. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/minimum.py +0 -0
  247. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/mish.py +0 -0
  248. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
  249. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/moe_align.py +0 -0
  250. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
  251. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/moe_device_residency.py +0 -0
  252. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/moe_wrappers.py +0 -0
  253. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/mse_loss.py +0 -0
  254. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/mul.py +0 -0
  255. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/nan_to_num.py +0 -0
  256. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/ne.py +0 -0
  257. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/neg.py +0 -0
  258. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/nllloss.py +0 -0
  259. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/nonzero.py +0 -0
  260. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/nonzero_op.py +0 -0
  261. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/norm_wrappers.py +0 -0
  262. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/ones_op.py +0 -0
  263. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/oracles/__init__.py +0 -0
  264. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
  265. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/pad_op.py +0 -0
  266. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
  267. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
  268. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
  269. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/pow.py +0 -0
  270. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/prod.py +0 -0
  271. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/rand_op.py +0 -0
  272. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/random_wrappers.py +0 -0
  273. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/reciprocal.py +0 -0
  274. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
  275. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/relu.py +0 -0
  276. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/remainder.py +0 -0
  277. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/repeat_interleave.py +0 -0
  278. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/repeat_op.py +0 -0
  279. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/residual_chain.py +0 -0
  280. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/rmsnorm.py +0 -0
  281. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/rope.py +0 -0
  282. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/rsqrt.py +0 -0
  283. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/scaled_softmax.py +0 -0
  284. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/scatter_op.py +0 -0
  285. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/screen_oracle.py +0 -0
  286. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/selu.py +0 -0
  287. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/shape_wrappers.py +0 -0
  288. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/sigmoid.py +0 -0
  289. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/silu.py +0 -0
  290. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/sin.py +0 -0
  291. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/softmax.py +0 -0
  292. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/softplus.py +0 -0
  293. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/sort_op.py +0 -0
  294. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
  295. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/sqrt.py +0 -0
  296. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/stack_op.py +0 -0
  297. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/std.py +0 -0
  298. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/strided_copy.py +0 -0
  299. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/sub.py +0 -0
  300. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/sum.py +0 -0
  301. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/tan.py +0 -0
  302. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/tanh.py +0 -0
  303. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/threshold.py +0 -0
  304. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/tiling.yml +0 -0
  305. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/tiling_policy.py +0 -0
  306. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/tiling_sizes.py +0 -0
  307. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/token_bitmask.py +0 -0
  308. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/topk.py +0 -0
  309. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/trace_op.py +0 -0
  310. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/tril.py +0 -0
  311. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/triu.py +0 -0
  312. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/unfold_op.py +0 -0
  313. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/unique_op.py +0 -0
  314. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
  315. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
  316. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
  317. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/var.py +0 -0
  318. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/vector_norm.py +0 -0
  319. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/weight_norm.py +0 -0
  320. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/where.py +0 -0
  321. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/wrappers.py +0 -0
  322. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/ops/zeros_op.py +0 -0
  323. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/quant/__init__.py +0 -0
  324. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/quant/quantized_tensor.py +0 -0
  325. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/random/__init__.py +0 -0
  326. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/random/mt_randn.py +0 -0
  327. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/random/rng_pin.py +0 -0
  328. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/random/rng_stream.py +0 -0
  329. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/random/seeded_draw.py +0 -0
  330. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/shape/__init__.py +0 -0
  331. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/src/nbxtensor/terminal.py +0 -0
  332. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/tools/device_key_census.py +0 -0
  333. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/tools/device_key_trace.py +0 -0
  334. {nbxtensor-0.1.2 → nbxtensor-0.1.3}/tools/scatter_scan.py +0 -0
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.3] - 2026-11-11
11
+
12
+ ### Added
13
+ - `NBXTensor.is_same_memory(other)` and `memory_layout()`: whether two tensor objects read the very same elements in
14
+ the same order (one address, device, dtype, shape and strides) — two views of one layout. The engine's replay asks
15
+ it before copying a re-bound weight onto its recorded buffer.
16
+ - `PagedTritonKVCache.replay_host_mark()`: the cache's host length, for a replay that mirrors what its recorded run
17
+ moved (the engine's replayed layer-streamed pieces).
18
+
19
+ ### Fixed
20
+ - **A tensor of a card's expandable pool can be handed to another card.** The pool grows by mapping chunks into one
21
+ virtual range; a mapped chunk is readable only from the devices its access grant names, and the grant named the
22
+ owning card alone. Any card-to-card copy of a tensor living in the range failed (`cudaMemcpy failed rc=1 (kind=3)`);
23
+ only small tensors, held in ordinary blocks, crossed. Each chunk is now granted to its card and to every card that
24
+ can reach it as a peer. One card: nothing changes.
25
+ - **A routed layer whose experts sit on two cards is read at the right experts.** `memory.pointer_tables.build_ptr_tables`
26
+ gave each card a table of its own experts alone, packed, while the grouped GEMM reads a table at the expert's number
27
+ in the layer: on a card that does not hold experts 0..n-1 it read another expert's weights, or past the table's end.
28
+ A card's table now keeps the layer's length, each of its experts at its own number (0 where another card holds the
29
+ expert); the launch's key, which carries that length, is the layer's again. A layer held by one card is unchanged.
30
+
31
+ ### Changed
32
+
33
+ - **The library's messages speak of records and graphs.** Seven error texts reworded ("allocation record", "the
34
+ container's graph"). No behaviour changes.
35
+
10
36
  ## [0.1.2] - 2026-11-11
11
37
 
12
38
  ### Added
@@ -363,13 +389,13 @@ memory; the fix is in test).
363
389
  - **The Triton allocator's expandable range maps in chunks the engine measures on a real run, and a refusal remaps the
364
390
  memory it takes back**: the chunk was measured per mapping call (2 MiB on a V100), and a refusal released the chunks
365
391
  it reclaimed and created them again — SANA-Video_2B_720p on a V100-16GB mapped 89 GB over a run and was 33-44 % slower
366
- than without the range. The first launch now replays a real run's allocation trace, which the library carries, with
392
+ than without the range. The first launch now replays a real run's allocation record, which the library carries, with
367
393
  the range off and at each candidate chunk, and keeps the smallest within the off replay's noise (32 MiB on the V100
368
394
  16 GB, 64 MiB on the 32 GB); a reclaim maps its chunks again where they are needed. SANA-Video 16g runs at the off figure, and on
369
395
  a 32 GB card the range holds 8 GB less at its peak.
370
396
  - **The Triton allocator's large class grows in an expandable range on a CUDA device with virtual memory management**: one reserved address range per device, physical chunks mapped into it as the pool grows, and at a refusal one synchronisation, then every mapped chunk lying whole inside a free block unmapped and mapped again where the request needs it — a free remainder beside a live tensor no longer pins its pages (Wan2.1-I2V triton on a V100-16GB was refused a 731 MB attention product with 1.1 GB of 48 MB remainders pinned in driver segments). The method of PyTorch's `expandable_segments`; the chunk is a measured fact of the generated profile (`vmm_chunk_bytes`: the smallest multiple of the granularity whose map costs no more than an ordinary allocation, 2 MiB on V100), refused by name when absent; a device without VMM keeps its driver segments. The small class and the weight arenas are unchanged; `memory.pool.simulate` replays the same rules.
371
397
  - **A refused small allocation is retried at the size of the segment the pool records**: a small request grows the device by a 2 MiB segment the pool then carves later small blocks from, but the retries after a refusal (the pool's flush, the idle slabs' release, the opt-in collection) asked the driver for the request's bytes — a 1 KiB driver allocation the pool treated as 2 MiB. Found while reading the allocator for the expandable segments (2026-11-02), on the path a full card takes; a test pins it.
372
- - **The Triton allocator's pool no longer lets a scalar pin a multi-gigabyte block**: a request took "the smallest free block that holds it" in one class, so a 17 KB scalar carved a freed 2.5 GB block and pinned its remainder alive, a 632 MB request the next — Allegro triton on a V100-16GB (gate of 2026-11-01) was refused a 2.5 GB gelu output with 4.4 GB of free blocks in pinned segments (Allegro-TI2V, CogVideoX-5b-I2V, Wan2.1/2.2-I2V, MiniCPM-o the same). The pool now has two size classes (a request of at most 1 MiB is carved from 2 MiB small segments, torch's caching allocator's kSmallSize / kSmallBuffer) and the half rule (a large block is split only when what is left is at most the request); its wholly free segments stay parked across a growth and return to the driver at a refusal, as before 164e89dc, whose flush before every growth — which emptied the small free segments the scalars then carved large blocks for — is withdrawn. The real trace replayed through the pool's own rules (`memory.pool.simulate`, M3's replay) completes with the least held of every pooled rule tried, on Allegro 16g, mochi-1-preview 32g and Kokoro alike.
398
+ - **The Triton allocator's pool no longer lets a scalar pin a multi-gigabyte block**: a request took "the smallest free block that holds it" in one class, so a 17 KB scalar carved a freed 2.5 GB block and pinned its remainder alive, a 632 MB request the next — Allegro triton on a V100-16GB (gate of 2026-11-01) was refused a 2.5 GB gelu output with 4.4 GB of free blocks in pinned segments (Allegro-TI2V, CogVideoX-5b-I2V, Wan2.1/2.2-I2V, MiniCPM-o the same). The pool now has two size classes (a request of at most 1 MiB is carved from 2 MiB small segments, torch's caching allocator's kSmallSize / kSmallBuffer) and the half rule (a large block is split only when what is left is at most the request); its wholly free segments stay parked across a growth and return to the driver at a refusal, as before 164e89dc, whose flush before every growth — which emptied the small free segments the scalars then carved large blocks for — is withdrawn. The real run's allocation record replayed through the pool's own rules (`memory.pool.simulate`, M3's replay) completes with the least held of every pooled rule tried, on Allegro 16g, mochi-1-preview 32g and Kokoro alike.
373
399
  - **nbxtensor's `addmm` refuses a per-row bias `[M, N]` above four rows instead of computing it wrong**: its kernel adds one bias row to every output row, so such a bias was applied with its first row only. It is now refused by name (a bias `[N]` or `[1, N]`, which every catalogue model uses, is unchanged; a per-row bias at up to four rows is still served).
374
400
 
375
401
  ### Removed
@@ -377,7 +403,8 @@ memory; the fix is in test).
377
403
  - **`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.
378
404
  - **`conv1d_forward_kernel`**: launched by no route (a 1-D convolution runs through `conv2d`).
379
405
 
380
- [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.2...HEAD
406
+ [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.3...HEAD
407
+ [0.1.3]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.2...v0.1.3
381
408
  [0.1.2]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.1...v0.1.2
382
409
  [0.1.1]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.0...v0.1.1
383
410
  [0.1.0]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.9...v0.1.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nbxtensor
3
- Version: 0.1.2
3
+ Version: 0.1.3
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
@@ -28,8 +28,8 @@ Description-Content-Type: text/markdown
28
28
  Run AI models without PyTorch, on any GPU Triton supports: tensors, Triton kernels, planned memory and certified tuning.
29
29
 
30
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
32
- release. Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxtensor/issues) — we fix fast.
31
+ kernels, are targets not yet validated on a card. Inference first: training and fine-tuning will come to
32
+ this library, on the same certified kernels; they are not in this release. Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxtensor/issues) — we fix fast.
33
33
 
34
34
  [![PyPI](https://img.shields.io/pypi/v/nbxtensor)](https://pypi.org/project/nbxtensor/)
35
35
  [![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue)](https://github.com/NeuroBrix/nbxtensor/blob/main/LICENSE)
@@ -315,7 +315,7 @@ from nbxtensor.dtype.outputs import amp_fp32_output_dtype, traced_output_is_comp
315
315
 
316
316
  assert amp_fp32_output_dtype("bfloat16", "bfloat16", safe=False, narrowed=False) == "bfloat16" # follows the graph
317
317
  assert amp_fp32_output_dtype("float16", "float16", safe=False, narrowed=False) == "float32" # no contract: float32
318
- assert traced_output_is_complex({"output_dtypes": ["complex64"]}) # read from the traced output, never the op's name
318
+ assert traced_output_is_complex({"output_dtypes": ["complex64"]}) # read from the graph's recorded output, never the op's name
319
319
  ```
320
320
 
321
321
  ### Array API: type promotion and Python scalars
@@ -503,8 +503,9 @@ with the tensor class (API.md §4).
503
503
 
504
504
  ## Versions
505
505
 
506
- The first publication was **0.0.1**; this is **0.0.5**. Each fix published after it increments the number (0.0.6,
507
- …), with no alpha or beta label. The rewrite of the core in Rust will be **2.0.0**. `nbxtensor.__version__` is the
506
+ Published versions are consecutive, with no alpha or beta label: a publication increments the number, and the fixes
507
+ landed between two publications are grouped under the next one ([`CHANGELOG.md`](https://github.com/NeuroBrix/nbxtensor/blob/main/CHANGELOG.md)
508
+ says what each version changed). The rewrite of the core in Rust will be **2.0.0**. `nbxtensor.__version__` is the
508
509
  installed version.
509
510
 
510
511
  ## License
@@ -5,8 +5,8 @@
5
5
  Run AI models without PyTorch, on any GPU Triton supports: tensors, Triton kernels, planned memory and certified tuning.
6
6
 
7
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
9
- release. Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxtensor/issues) — we fix fast.
8
+ kernels, are targets not yet validated on a card. Inference first: training and fine-tuning will come to
9
+ this library, on the same certified kernels; they are not in this release. Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxtensor/issues) — we fix fast.
10
10
 
11
11
  [![PyPI](https://img.shields.io/pypi/v/nbxtensor)](https://pypi.org/project/nbxtensor/)
12
12
  [![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue)](https://github.com/NeuroBrix/nbxtensor/blob/main/LICENSE)
@@ -292,7 +292,7 @@ from nbxtensor.dtype.outputs import amp_fp32_output_dtype, traced_output_is_comp
292
292
 
293
293
  assert amp_fp32_output_dtype("bfloat16", "bfloat16", safe=False, narrowed=False) == "bfloat16" # follows the graph
294
294
  assert amp_fp32_output_dtype("float16", "float16", safe=False, narrowed=False) == "float32" # no contract: float32
295
- assert traced_output_is_complex({"output_dtypes": ["complex64"]}) # read from the traced output, never the op's name
295
+ assert traced_output_is_complex({"output_dtypes": ["complex64"]}) # read from the graph's recorded output, never the op's name
296
296
  ```
297
297
 
298
298
  ### Array API: type promotion and Python scalars
@@ -480,8 +480,9 @@ with the tensor class (API.md §4).
480
480
 
481
481
  ## Versions
482
482
 
483
- The first publication was **0.0.1**; this is **0.0.5**. Each fix published after it increments the number (0.0.6,
484
- …), with no alpha or beta label. The rewrite of the core in Rust will be **2.0.0**. `nbxtensor.__version__` is the
483
+ Published versions are consecutive, with no alpha or beta label: a publication increments the number, and the fixes
484
+ landed between two publications are grouped under the next one ([`CHANGELOG.md`](https://github.com/NeuroBrix/nbxtensor/blob/main/CHANGELOG.md)
485
+ says what each version changed). The rewrite of the core in Rust will be **2.0.0**. `nbxtensor.__version__` is the
485
486
  installed version.
486
487
 
487
488
  ## License
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nbxtensor"
7
- version = "0.1.2"
7
+ version = "0.1.3"
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.2"
16
+ __version__ = "0.1.3"
17
17
  __all__: list = []
@@ -54,7 +54,7 @@ def amp_fp32_output_dtype(compute_dtype: str, graph_dtype: Optional[str], safe:
54
54
  if graph_dtype not in _GRAPH_FLOAT_NAMES:
55
55
  raise ValueError(
56
56
  f"amp_fp32_output_dtype: under bfloat16 compute the output follows the graph dtype, and "
57
- f"{graph_dtype!r} is none of {sorted(_GRAPH_FLOAT_NAMES)} — the traced graph must state it")
57
+ f"{graph_dtype!r} is none of {sorted(_GRAPH_FLOAT_NAMES)} — the container's graph must state it")
58
58
  return "bfloat16" if graph_dtype == "bfloat16" else "float32"
59
59
  if compute_dtype == "float16":
60
60
  if traced == "float32" and graph_dtype in _HALF_GRAPH_NAMES:
@@ -408,6 +408,10 @@ class PagedTritonKVCache:
408
408
  return None
409
409
  return ("kv_decode_paged", paged_decode_splits(nxt), self.batch, self._uid, self.generation)
410
410
 
411
+ def replay_host_mark(self) -> int:
412
+ """The host length: what a replay must know moved during its recorded run (the last layer's decode moves it)."""
413
+ return self.length
414
+
411
415
  def replay_advance(self) -> None:
412
416
  """The replayed launches appended one position per layer and advanced every device length: mirror it."""
413
417
  self.length += 1
@@ -189,6 +189,16 @@ def _addr_capture_kernel(src_ptr, table_ptr, idx):
189
189
  tl.store(table_ptr + idx, tl.cast(src_ptr, tl.int64, bitcast=True))
190
190
 
191
191
 
192
+ def _at_layer_numbers(num_experts: int, expert_ids, addresses) -> np.ndarray:
193
+ """One card's pointer table at the LAYER's length: each of its experts' address at the expert's number, 0 where
194
+ another card holds the expert (never read: a card is only handed the pairs routed to its own experts). The kernel
195
+ reads a table at the expert's number, and the launch's key carries the table's length — a table of the card's
196
+ experts alone was read past its end, or at another expert's entry, and keyed every split layer apart."""
197
+ table = np.zeros(num_experts, dtype=np.int64)
198
+ table[np.asarray(expert_ids, dtype=np.int64)] = np.asarray(addresses, dtype=np.int64)
199
+ return table
200
+
201
+
192
202
  def build_ptr_tables(gate_weights, up_weights, down_weights):
193
203
  """Build per-projection absolute pointer tables.
194
204
 
@@ -268,10 +278,8 @@ def build_ptr_tables(gate_weights, up_weights, down_weights):
268
278
  from nbxtensor.backend.triton_ext_driver import pinned_gpu_address
269
279
 
270
280
  def _capture_proj(weights):
271
- ptrs = np.array(
272
- [pinned_gpu_address(weights[eid].data_ptr())
273
- for eid in expert_ids],
274
- dtype=np.int64)
281
+ ptrs = _at_layer_numbers(num_experts, expert_ids,
282
+ [pinned_gpu_address(weights[eid].data_ptr()) for eid in expert_ids])
275
283
  tab = NBXTensor.from_numpy(ptrs)
276
284
  base = weights[expert_ids[0]]
277
285
  return tab, base.stride(1), base.stride(0)
@@ -293,24 +301,16 @@ def build_ptr_tables(gate_weights, up_weights, down_weights):
293
301
  def _build_proj(weights):
294
302
  # Absolute pointers as int64
295
303
  if tables.quantized:
296
- qw = np.array(
297
- [weights[eid].qweight.data_ptr() for eid in expert_ids],
298
- dtype=np.int64)
299
- sc = np.array(
300
- [weights[eid].scales.data_ptr() for eid in expert_ids],
301
- dtype=np.int64)
302
- mn = np.array(
303
- [weights[eid].qmins.data_ptr() for eid in expert_ids],
304
- dtype=np.int64)
304
+ qw = _at_layer_numbers(num_experts, expert_ids, [weights[eid].qweight.data_ptr() for eid in expert_ids])
305
+ sc = _at_layer_numbers(num_experts, expert_ids, [weights[eid].scales.data_ptr() for eid in expert_ids])
306
+ mn = _at_layer_numbers(num_experts, expert_ids, [weights[eid].qmins.data_ptr() for eid in expert_ids])
305
307
  base = weights[expert_ids[0]]
306
308
  return ((NBXTensor.from_numpy(qw),
307
309
  NBXTensor.from_numpy(sc),
308
310
  NBXTensor.from_numpy(mn)),
309
311
  base.qweight.stride(0), base.qweight.stride(1),
310
312
  base.scales.stride(0), base.scales.stride(1))
311
- ptrs = np.array(
312
- [weights[eid].data_ptr() for eid in expert_ids],
313
- dtype=np.int64)
313
+ ptrs = _at_layer_numbers(num_experts, expert_ids, [weights[eid].data_ptr() for eid in expert_ids])
314
314
  ptr_table = NBXTensor.from_numpy(ptrs)
315
315
  base = weights[expert_ids[0]]
316
316
  return ptr_table, base.stride(1), base.stride(0)
@@ -48,7 +48,7 @@ def load_trace(path) -> Tuple[Dict[str, str], List[Tuple[str, int, int]]]:
48
48
  if len(parts) == 3 and parts[0] in ("M", "A", "F"):
49
49
  events.append((parts[0], int(parts[1]), int(parts[2])))
50
50
  if "card_mb" not in meta or not events:
51
- raise RuntimeError(f"ZERO FALLBACK: the allocation trace {path} states no card_mb or holds no event")
51
+ raise RuntimeError(f"ZERO FALLBACK: the allocation record {path} states no card_mb or holds no event")
52
52
  return meta, events
53
53
 
54
54
 
@@ -88,7 +88,7 @@ def _child(trace: str, device: int, chunk: int) -> Dict[str, float]:
88
88
  env=env)
89
89
  line = next((l for l in r.stdout.splitlines() if l.startswith(_MARK)), None)
90
90
  if r.returncode != 0 or line is None:
91
- raise RuntimeError(f"the allocation-trace replay of {Path(trace).name} at chunk {chunk} failed: "
91
+ raise RuntimeError(f"the allocation-record replay of {Path(trace).name} at chunk {chunk} failed: "
92
92
  f"{(r.stderr or r.stdout)[-400:]}")
93
93
  return json.loads(line[len(_MARK):])
94
94
 
@@ -97,7 +97,7 @@ def _the_trace(trace: Optional[str]) -> str:
97
97
  if trace is None:
98
98
  carried = traces()
99
99
  if len(carried) != 1:
100
- raise RuntimeError(f"ZERO FALLBACK: the library carries {len(carried)} allocation traces "
100
+ raise RuntimeError(f"ZERO FALLBACK: the library carries {len(carried)} allocation records "
101
101
  f"({', '.join(p.name for p in carried)}): the chunk probe names the one it replays")
102
102
  trace = str(carried[0])
103
103
  return trace
@@ -53,7 +53,24 @@ class Vmm:
53
53
  self._prop = _Prop()
54
54
  self._prop.type = _ALLOC_PINNED
55
55
  self._prop.location = _Loc(_LOC_DEVICE, self.device)
56
- self._access = _Access(_Loc(_LOC_DEVICE, self.device), _PROT_RW)
56
+ self._access = self._reachable_from()
57
+
58
+ def _reachable_from(self):
59
+ """The access grant of every chunk this device maps: the device itself, then every other device of the process
60
+ that can reach it as a peer (`cuDeviceCanAccessPeer`). A VMM mapping is readable ONLY from the devices its
61
+ grant names — enabling peer access between two contexts does nothing for it — so a chunk granted to its owner
62
+ alone could not be copied card to card: `cudaMemcpy` answered "invalid value" for any tensor of the expandable
63
+ range (a dense model split over two cards died at its first hand-off of more than a pool block, 2026-11-11;
64
+ NVIDIA's statement of the rule: forums.developer.nvidia.com/t/148875)."""
65
+ count, owner = ctypes.c_int(0), ctypes.c_int()
66
+ peers = []
67
+ if self.lib.cuDeviceGetCount(ctypes.byref(count)) == 0 and self.lib.cuDeviceGet(ctypes.byref(owner), self.device) == 0:
68
+ for other in range(count.value):
69
+ dev, can = ctypes.c_int(), ctypes.c_int(0)
70
+ if (other != self.device and self.lib.cuDeviceGet(ctypes.byref(dev), other) == 0
71
+ and self.lib.cuDeviceCanAccessPeer(ctypes.byref(can), dev, owner) == 0 and can.value == 1):
72
+ peers.append(other)
73
+ return (_Access * (1 + len(peers)))(*(_Access(_Loc(_LOC_DEVICE, d), _PROT_RW) for d in (self.device, *peers)))
57
74
 
58
75
  @staticmethod
59
76
  def load(libs) -> Optional[object]:
@@ -105,8 +122,8 @@ class Vmm:
105
122
  ctypes.c_ulonglong(handle), ctypes.c_ulonglong(0))
106
123
  if rc != 0:
107
124
  return rc
108
- rc = self.lib.cuMemSetAccess(ctypes.c_uint64(va), ctypes.c_size_t(nbytes), ctypes.byref(self._access),
109
- ctypes.c_size_t(1))
125
+ rc = self.lib.cuMemSetAccess(ctypes.c_uint64(va), ctypes.c_size_t(nbytes), self._access,
126
+ ctypes.c_size_t(len(self._access)))
110
127
  if rc != 0:
111
128
  self.lib.cuMemUnmap(ctypes.c_uint64(va), ctypes.c_size_t(nbytes))
112
129
  return rc
@@ -313,7 +313,7 @@ def _mm_quantized(a, qt, _epilogue: int = 0):
313
313
  raise NotImplementedError(
314
314
  "quantized mm without the graph-side transpose marker is "
315
315
  "outside the v1 contract (the packed layout is [K, N]; "
316
- "the traced linear always transposes) — named follow-up.")
316
+ "the container's linear always transposes) — named follow-up.")
317
317
  a = _core._ensure_cuda(a)
318
318
  K, N = qt.shape
319
319
  M = a.shape[0] if a.ndim == 2 else 1
@@ -124,7 +124,7 @@ def _copy_nd(src: 'NBXTensor', dst: 'NBXTensor'):
124
124
  if ndim > MAX_NDIM:
125
125
  raise RuntimeError(
126
126
  f"NBXTensor._copy_nd: ndim={ndim} exceeds the PyTorch hard limit "
127
- f"of {MAX_NDIM}. Please open an issue with the model name and trace site.")
127
+ f"of {MAX_NDIM}. Please open an issue with the model name and the place it was raised.")
128
128
  n = dst._numel
129
129
  if n == 0:
130
130
  return
@@ -310,7 +310,7 @@ def _strided_copy(src: 'NBXTensor', dst: 'NBXTensor'):
310
310
  raise RuntimeError(
311
311
  f"NBXTensor._strided_copy: ndim={ndim} exceeds the PyTorch "
312
312
  f"hard limit of {MAX_NDIM}. Please open an issue with the "
313
- f"model name and trace site."
313
+ f"model name and the place it was raised."
314
314
  )
315
315
  n = src._numel
316
316
 
@@ -1520,6 +1520,15 @@ class NBXTensor:
1520
1520
  # Non-zero fill via the pure-Triton fill_kernel.
1521
1521
  return _fill_constant(self, value)
1522
1522
 
1523
+ def is_same_memory(self, other: 'NBXTensor') -> bool:
1524
+ """Whether `other` reads the very elements `self` does, in the same order: one address, one device, one dtype,
1525
+ one shape and one stride per axis — two views of one layout. Not an overlap test: any difference is False."""
1526
+ return self.memory_layout() == other.memory_layout()
1527
+
1528
+ def memory_layout(self) -> tuple:
1529
+ """(address of the first element, device kind, device index, dtype, shape, strides): what a kernel reads."""
1530
+ return (self.data_ptr(), self._device, self._device_idx, self._dtype, tuple(self._shape), tuple(self._strides))
1531
+
1523
1532
  def copy_(self, src, non_blocking: bool = False) -> 'NBXTensor':
1524
1533
  if isinstance(src, NBXTensor):
1525
1534
  # PyTorch Tensor.copy_ converts src to self's dtype. A raw byte
File without changes
File without changes
File without changes
File without changes
File without changes