nbxtensor 0.1.5__tar.gz → 0.1.7__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 (373) hide show
  1. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/.gitignore +1 -1
  2. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/CHANGELOG.md +111 -75
  3. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/PKG-INFO +3 -3
  4. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/README.md +2 -2
  5. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/API.md +90 -5
  6. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/pyproject.toml +1 -1
  7. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/__init__.py +1 -1
  8. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/capabilities.py +1 -1
  9. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/device_facts.py +3 -1
  10. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/launcher.py +39 -62
  11. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/metal_device.py +5 -3
  12. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/runtime.py +9 -2
  13. nbxtensor-0.1.7/src/nbxtensor/device.py +79 -0
  14. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/dtype/itemsize.py +1 -1
  15. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/dtype/operands.py +4 -4
  16. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/dtype/outputs.py +20 -13
  17. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/dtype/policy.yml +1 -1
  18. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/inspection.py +8 -0
  19. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/interop/__init__.py +2 -1
  20. nbxtensor-0.1.7/src/nbxtensor/interop/handoff.py +24 -0
  21. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/io/constants.py +1 -1
  22. nbxtensor-0.1.7/src/nbxtensor/io/mapped_shards.py +65 -0
  23. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/io/safetensors.py +9 -0
  24. nbxtensor-0.1.7/src/nbxtensor/memory/__init__.py +141 -0
  25. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/allocator.py +143 -170
  26. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/deferred_frees.py +1 -1
  27. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/host_spill.py +6 -1
  28. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/kv_host_pages.py +4 -0
  29. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/kv_host_tier.py +7 -5
  30. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/memory_pool.py +38 -0
  31. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/oom_advice.py +6 -2
  32. nbxtensor-0.1.7/src/nbxtensor/memory/slot_stores.py +35 -0
  33. nbxtensor-0.1.7/src/nbxtensor/memory/step_stabilizer.py +87 -0
  34. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/to_device_census.py +1 -1
  35. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/attention_wrappers.py +1 -1
  36. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/conv_wrappers.py +1 -1
  37. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/dispatch.py +12 -12
  38. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/elementwise_wrappers.py +4 -4
  39. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/index_wrappers.py +2 -2
  40. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/linalg_wrappers.py +5 -5
  41. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/norm_wrappers.py +1 -1
  42. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/shape_wrappers.py +5 -5
  43. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/spectral_wrappers.py +1 -1
  44. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/quant/quantized_tensor.py +2 -2
  45. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/tensor.py +2 -2
  46. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/tools/scatter_scan.py +2 -2
  47. nbxtensor-0.1.5/src/nbxtensor/memory/__init__.py +0 -41
  48. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
  49. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/.github/workflows/cla.yml +0 -0
  50. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/CONTRIBUTING.md +0 -0
  51. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/LICENSE +0 -0
  52. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/NOTICE +0 -0
  53. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/THIRD_PARTY_NOTICES.md +0 -0
  54. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/assets/logo.png +0 -0
  55. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/BACKENDS.md +0 -0
  56. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/api_undocumented.txt +0 -0
  57. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/certified-autotune-method.md +0 -0
  58. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/design/ALLOCATOR.md +0 -0
  59. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/design/COST.md +0 -0
  60. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/design/DESIGN.md +0 -0
  61. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/device_file_template.yml +0 -0
  62. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/device_keys.txt +0 -0
  63. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/history/INVENTORY.md +0 -0
  64. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/history/MIGRATION.md +0 -0
  65. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/history/migration_list.tsv +0 -0
  66. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/replay-recording-in-a-one-shot-request.md +0 -0
  67. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/tensor-cores-through-linear-layouts.md +0 -0
  68. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/docs/triton_cpu_install.md +0 -0
  69. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/__main__.py +0 -0
  70. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/__init__.py +0 -0
  71. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/cpu/__init__.py +0 -0
  72. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/cpu/blas.py +0 -0
  73. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/cpu/pool.py +0 -0
  74. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/cpu_backend.py +0 -0
  75. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/device_files.py +0 -0
  76. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/device_measure.py +0 -0
  77. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/device_names.py +0 -0
  78. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
  79. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
  80. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
  81. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
  82. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
  83. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
  84. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
  85. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
  86. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
  87. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
  88. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
  89. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
  90. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
  91. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
  92. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
  93. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
  94. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
  95. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
  96. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
  97. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
  98. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
  99. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
  100. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
  101. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
  102. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
  103. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
  104. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
  105. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -0
  106. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -0
  107. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
  108. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
  109. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
  110. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/mtl.yml +0 -0
  111. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -0
  112. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -0
  113. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
  114. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/wcl.yml +0 -0
  115. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/intel/xe_lp.yml +0 -0
  116. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
  117. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
  118. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
  119. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/faults.py +0 -0
  120. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/frozen_plan.py +0 -0
  121. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/host_memory.py +0 -0
  122. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/install_help.py +0 -0
  123. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/install_metal.py +0 -0
  124. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/install_steps.yml +0 -0
  125. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/launcher_contract.py +0 -0
  126. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/level_zero.py +0 -0
  127. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/level_zero_driver.py +0 -0
  128. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/libnames.py +0 -0
  129. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/metal_backend.py +0 -0
  130. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/metal_dispatch.py +0 -0
  131. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/process_memory.py +0 -0
  132. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/replay_graph.py +0 -0
  133. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/backend/triton_ext_driver.py +0 -0
  134. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/dtype/__init__.py +0 -0
  135. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/dtype/convert.py +0 -0
  136. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/dtype/dtypes.yml +0 -0
  137. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
  138. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/dtype/policy.py +0 -0
  139. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/dtype/promotion.py +0 -0
  140. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/host.py +0 -0
  141. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/interop/dlpack.py +0 -0
  142. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/io/__init__.py +0 -0
  143. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/io/read_rate.py +0 -0
  144. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/arena.py +0 -0
  145. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/block_upload.py +0 -0
  146. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/device_memory.py +0 -0
  147. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/device_transfer.py +0 -0
  148. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/expert_slots.py +0 -0
  149. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/kv_session.py +0 -0
  150. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/layout.py +0 -0
  151. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/metal.py +0 -0
  152. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/paged_kv.py +0 -0
  153. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/pages.py +0 -0
  154. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/pointer_tables.py +0 -0
  155. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/pool.py +0 -0
  156. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/shadow.py +0 -0
  157. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/slab.py +2 -2
  158. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/trace_replay.py +0 -0
  159. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
  160. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/memory/vmm.py +0 -0
  161. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/__init__.py +0 -0
  162. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/_autotune_policy.py +0 -0
  163. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/_common.py +0 -0
  164. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/_configs.py +0 -0
  165. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/_cost.py +0 -0
  166. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/abs.py +0 -0
  167. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
  168. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/add.py +0 -0
  169. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/addcdiv.py +0 -0
  170. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/addcmul.py +0 -0
  171. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/addmv_op.py +0 -0
  172. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/addr.py +0 -0
  173. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/all_reduce.py +0 -0
  174. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/amax.py +0 -0
  175. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/any_reduce.py +0 -0
  176. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/arange_op.py +0 -0
  177. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/argmax.py +0 -0
  178. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/argmin.py +0 -0
  179. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/atan2.py +0 -0
  180. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/autotune_bucket.py +0 -0
  181. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/autotune_cache.py +0 -0
  182. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/autotune_certified.py +0 -0
  183. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/autotune_harness.py +0 -0
  184. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/autotune_refusals.py +0 -0
  185. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/autotune_settings.py +0 -0
  186. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/avg_pool2d.py +0 -0
  187. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/axis_slices.py +0 -0
  188. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/baddbmm_op.py +0 -0
  189. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/batch_norm.py +0 -0
  190. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/binary_strided.py +0 -0
  191. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/bitwise_and.py +0 -0
  192. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
  193. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/bitwise_not.py +0 -0
  194. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/bitwise_or.py +0 -0
  195. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
  196. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/bucketize.py +0 -0
  197. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/cat_op.py +0 -0
  198. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/celu.py +0 -0
  199. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/certified_index.py +0 -0
  200. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/clamp.py +0 -0
  201. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/clamp_min.py +0 -0
  202. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/conv2d.py +0 -0
  203. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
  204. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
  205. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
  206. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/copy.py +0 -0
  207. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/copy_op.py +0 -0
  208. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/cos.py +0 -0
  209. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/count_nonzero.py +0 -0
  210. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/cross_entropy.py +0 -0
  211. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/cummax.py +0 -0
  212. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/cummin.py +0 -0
  213. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/cumsum.py +0 -0
  214. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
  215. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
  216. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/dequant_gemv.py +0 -0
  217. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/dft.py +0 -0
  218. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/div.py +0 -0
  219. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/dot_op.py +0 -0
  220. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/dropout.py +0 -0
  221. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/dtype_convert.py +0 -0
  222. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/elementwise_launch.py +0 -0
  223. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/elu.py +0 -0
  224. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/embedding.py +0 -0
  225. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/embedding_pool.py +0 -0
  226. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/eq.py +0 -0
  227. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/erf.py +0 -0
  228. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/exp.py +0 -0
  229. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/exp2.py +0 -0
  230. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/fft_op.py +0 -0
  231. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/fill_op.py +0 -0
  232. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/flash_attention.py +0 -0
  233. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
  234. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/flash_decode.py +0 -0
  235. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/flip_op.py +0 -0
  236. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/floor.py +0 -0
  237. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/full_op.py +0 -0
  238. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/fused_moe.py +0 -0
  239. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
  240. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
  241. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/gather_op.py +0 -0
  242. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/ge.py +0 -0
  243. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/gelu.py +0 -0
  244. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/gemv_vec.py +0 -0
  245. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/glu.py +0 -0
  246. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/grid_sampler.py +0 -0
  247. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
  248. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/groupnorm.py +0 -0
  249. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/gt.py +0 -0
  250. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/hardsigmoid.py +0 -0
  251. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/hardswish.py +0 -0
  252. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/host_decode_partial.py +0 -0
  253. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/im2col.py +0 -0
  254. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/index_add.py +0 -0
  255. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/index_put_op.py +0 -0
  256. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/index_select.py +0 -0
  257. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/isfinite.py +0 -0
  258. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/isinf.py +0 -0
  259. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/isnan.py +0 -0
  260. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/launch_keys.py +0 -0
  261. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/launch_observer.py +0 -0
  262. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/layernorm.py +0 -0
  263. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/le.py +0 -0
  264. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/leaky_relu.py +0 -0
  265. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/lerp.py +0 -0
  266. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/linspace_op.py +0 -0
  267. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/log.py +0 -0
  268. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/log_sigmoid.py +0 -0
  269. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/logical_and.py +0 -0
  270. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/logical_not.py +0 -0
  271. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/logical_or.py +0 -0
  272. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/logical_xor.py +0 -0
  273. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/loss_wrappers.py +0 -0
  274. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/lt.py +0 -0
  275. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/masked_fill.py +0 -0
  276. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/matmul.py +0 -0
  277. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
  278. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/max_pool2d.py +0 -0
  279. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/max_pool3d.py +0 -0
  280. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/max_reduce.py +0 -0
  281. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/maximum.py +0 -0
  282. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/mean.py +0 -0
  283. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/min_reduce.py +0 -0
  284. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/minimum.py +0 -0
  285. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/mish.py +0 -0
  286. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
  287. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/moe_align.py +0 -0
  288. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
  289. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/moe_device_residency.py +0 -0
  290. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/moe_fused.py +0 -0
  291. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/moe_multi_device.py +0 -0
  292. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/moe_wrappers.py +0 -0
  293. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/mse_loss.py +0 -0
  294. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/mul.py +0 -0
  295. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/nan_to_num.py +0 -0
  296. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/ne.py +0 -0
  297. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/neg.py +0 -0
  298. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/nllloss.py +0 -0
  299. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/nonzero.py +0 -0
  300. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/nonzero_op.py +0 -0
  301. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/ones_op.py +0 -0
  302. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/oracles/__init__.py +0 -0
  303. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/oracles/attention_fp64.py +0 -0
  304. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
  305. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/oracles/fp64.py +0 -0
  306. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/pad_op.py +0 -0
  307. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
  308. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
  309. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
  310. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/pow.py +0 -0
  311. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/prod.py +0 -0
  312. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/rand_op.py +0 -0
  313. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/random_wrappers.py +0 -0
  314. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/reciprocal.py +0 -0
  315. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
  316. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/relu.py +0 -0
  317. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/remainder.py +0 -0
  318. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/repeat_interleave.py +0 -0
  319. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/repeat_op.py +0 -0
  320. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/residual_chain.py +0 -0
  321. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/rmsnorm.py +0 -0
  322. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/rope.py +0 -0
  323. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/rsqrt.py +0 -0
  324. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/scaled_softmax.py +0 -0
  325. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/scatter_op.py +0 -0
  326. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/screen_oracle.py +0 -0
  327. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/selu.py +0 -0
  328. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/sigmoid.py +0 -0
  329. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/silu.py +0 -0
  330. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/sin.py +0 -0
  331. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/softmax.py +0 -0
  332. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/softplus.py +0 -0
  333. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/sort_op.py +0 -0
  334. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/sqrt.py +0 -0
  335. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/stack_op.py +0 -0
  336. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/std.py +0 -0
  337. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/strided_copy.py +0 -0
  338. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/sub.py +0 -0
  339. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/sum.py +0 -0
  340. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/tan.py +0 -0
  341. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/tanh.py +0 -0
  342. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/threshold.py +0 -0
  343. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/tiles.py +0 -0
  344. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/tiling.yml +0 -0
  345. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/tiling_policy.py +0 -0
  346. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/tiling_sizes.py +0 -0
  347. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/token_bitmask.py +0 -0
  348. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/token_filters.py +0 -0
  349. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/topk.py +0 -0
  350. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/trace_op.py +0 -0
  351. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/tril.py +0 -0
  352. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/triu.py +0 -0
  353. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/unfold_op.py +0 -0
  354. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/unique_op.py +0 -0
  355. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
  356. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
  357. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
  358. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/var.py +0 -0
  359. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/vector_norm.py +0 -0
  360. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/weight_norm.py +0 -0
  361. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/where.py +0 -0
  362. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/wrappers.py +0 -0
  363. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/ops/zeros_op.py +0 -0
  364. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/quant/__init__.py +0 -0
  365. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/random/__init__.py +0 -0
  366. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/random/mt_randn.py +0 -0
  367. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/random/rng_pin.py +0 -0
  368. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/random/rng_stream.py +0 -0
  369. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/random/seeded_draw.py +0 -0
  370. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/shape/__init__.py +0 -0
  371. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/src/nbxtensor/terminal.py +0 -0
  372. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/tools/device_key_census.py +0 -0
  373. {nbxtensor-0.1.5 → nbxtensor-0.1.7}/tools/device_key_trace.py +0 -0
@@ -169,7 +169,7 @@ tests/integration/**/__pycache__/
169
169
  tests/nbxtensor_backend_conformance/**/__pycache__/
170
170
  tests/unit/**/*.pyc
171
171
  tests/integration/**/*.pyc
172
- !tests/regression/test_upscale_offtrace.py
172
+ !tests/regression/test_upscale_offbuild.py
173
173
  !tests/regression/pytest.ini
174
174
  # Unit tests — tracked explicitly (same policy as the regression harness).
175
175
  !tests/unit/
@@ -7,26 +7,74 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.7] - 2026-11-13
11
+
12
+ ### Changed
13
+ - `nbxtensor.dtype.outputs.amp_fp32_output_dtype`: under float16 compute on a graph built wider than half (float32,
14
+ float64), an op computed in float32 inside stores float32 unless the record narrows it; the range contract (`safe`)
15
+ narrows half graphs only, as the bfloat16 rule already keeps a float32 model's float32 outputs.
16
+ - `nbxtensor.memory.kv_host_tier.host_tier_pages(budget_bytes, num_layers, k_page_bytes, v_page_bytes)` takes a
17
+ page's parts and sizes the page itself.
18
+ - A decode step that stabilizes its allocations serves them from one recycled `StepSlab` from its first stabilized run.
19
+
20
+ ### Added
21
+ - `nbxtensor.memory.weight_arenas()`: a weight set's memory, counted per device and in page-locked host memory,
22
+ allocated once and pinned once its host weights are written.
23
+ - `nbxtensor.io.safetensors.mapped_view`: a host tensor over a weight's bytes inside a read-only mapped file, no byte
24
+ copied.
25
+ - `nbxtensor.io.mapped_shards`: weight files mapped once each, the spans host views are built over, and the pages of a
26
+ view's span given back once its bytes are copied to the device (`ShardMaps`, `drop_pages`).
27
+ - `nbxtensor.memory.slot_store`, `end_store_request`, `release_store`: a compiled sequence's slot memory and its
28
+ request and unload lifecycle, with `store_held_bytes` and `store_contents` for diagnostics.
29
+ - `nbxtensor.memory.step_stabilizer.StepStabilizer`: a decoding sequence's step slab over its first runs (pass through,
30
+ measure, then carve from one recycled slab), ticked once per run.
31
+ - `nbxtensor.memory.host_spill.spill_bytes_per_position`: the host bytes one spilled KV position costs, for a server
32
+ that sizes its reach before any spill exists; `HostPages.nbytes()`: the host bytes its slices hold.
33
+ - `nbxtensor.inspection.label`: a tensor as a diagnostic line names it (shape, dtype, device and the object's id).
34
+ - `nbxtensor.interop.copy_to_address` and `host_bytes`: a tensor's values handed to another array library, into its
35
+ own device buffer or as host bytes in C order.
36
+
37
+ ## [0.1.6] - 2026-11-13
38
+
39
+ A device and memory API that names every answer of the GPU runtime, refusals included.
40
+
41
+ ### Added
42
+ - `nbxtensor.device`: the devices a process sees, the one it works on, the one the next kernel launch runs on, when
43
+ they drain and what each has free (`count`, `current`, `select`, `select_for_launch`, `synchronize`, `drain`,
44
+ `mem_info`, `most_free`).
45
+ - `nbxtensor.memory` answers the allocator's figures and the pool's controls by name (`memory_allocated`,
46
+ `pool_cached_bytes`, `peak_device_bytes`, `empty_cache_pool`, the held-memory windows and others): an application
47
+ calls these names, not the allocator class.
48
+
49
+ ### Changed
50
+ - Every device answer is exact or a named error. Counting the devices answers 0 only when the host has no GPU runtime
51
+ or the runtime reports no device; a driver error raises `DeviceQueryError` with its code. Choosing the device with
52
+ the most free memory and listing the devices consider every device. A device's free and total memory are its
53
+ measured figures, or `DeviceQueryError` when the driver refuses or the process does not see the device, so a plan is
54
+ always made from what the card really has.
55
+
10
56
  ## [0.1.5] - 2026-11-12
11
57
 
58
+ Triton models on Apple GPUs several times faster, and the NeuroBrix engine's remaining tensor work as library calls.
59
+
12
60
  ### Changed
13
61
  - Triton models on Apple GPUs run several times faster: nbxtensor now runs each compiled kernel on its own Metal stream,
14
62
  in order, and waits for the GPU only where a result is read, instead of after every kernel. Measured on an M4 Pro,
15
63
  outputs byte-identical: TinyLlama 1.1B, 256 tokens, 46.2 s -> 8.1 s; granite-3.1-1b-a400m (mixture of experts),
16
64
  128 tokens, 22.5 s -> 4.7 s.
17
- - A failed device assert in a kernel now raises at the next read of a result (or the next launch), not at its own
18
- launch.
65
+ - A device assert raised in a kernel surfaces at the next read of a result (or the next launch).
19
66
  - `NBX_SYNC_TIMING=1` on Apple now counts launches and the time spent issuing them, per kernel; there is no per-launch
20
67
  wait left to time.
21
68
  - The library's documentation lives in its own `docs/` (the API reference, the backends' contract, the device keys;
22
69
  `docs/design/` the allocator, cost and design notes; `docs/history/` the inventory and the migration record) and
23
70
  the three tensor reference pages (tensor cores through linear layouts, the certified-autotune method, recording a
24
71
  replay in a one-shot request) with the Triton CPU install page. The README links them in this repository.
25
- - The int4 MoE decode band's tiles, warps and stages no longer change with an environment variable (NBX_MOEV_BN, _BK,
26
- _WARPS, _BND, _WARPS_D, _STAGES, read by the engine until now): they are the defaults those variables had.
72
+ - The int4 MoE decode band's tiles, warps and stages are the defaults the environment variables NBX_MOEV_BN, _BK,
73
+ _WARPS, _BND, _WARPS_D and _STAGES gave them; the band reads no environment variable.
27
74
  - `memory.deferred_frees`: `DeferredFrees`, `Drain`, `sync_devices_of` — the tensors a run drops, released in batches
28
75
  at a bytes cliff, a count or (pool off) a free-memory reserve, every owning device synchronised first, and the
29
76
  allocator's out-of-memory reclaimer while the batch lives. The engine's two hot loops held this queue themselves.
77
+ - `NBXTensor.item()` on a bfloat16 element returns its value, read as the high half of a float32.
30
78
 
31
79
  ### Added
32
80
  - `memory.block_upload` (`open_copy_stream`, `upload_block`, `wait_for_upload`, `drop_upload_events`,
@@ -34,17 +82,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
34
82
  ordering-only readiness event the compute stream waits on (synchronous, with no event, given no stream), and the
35
83
  stream's and events' release. Moved from the NeuroBrix engine's zero3 strategy, which keeps which block moves, when,
36
84
  and how much stays resident.
37
- - `memory.shadow.install_shadow(devices)`, `shadow_launch`, `shadow_device`, `DevicesVisible`: the whole shadow device — the
38
- allocator's direct operations, streams, events and device queries answered without a driver, every launch skipped,
39
- a value read answering a host-born value or a benign one — refused while a device is visible. Moved from the
40
- NeuroBrix engine's census, which keeps which keys are recorded and its own seams; `from_numpy`'s stand-in now takes
41
- every argument `from_numpy` takes.
85
+ - `memory.shadow.install_shadow(devices)`, `shadow_launch`, `shadow_device`, `DevicesVisible`: the whole shadow device —
86
+ the allocator's direct operations, streams, events and device queries answered without a driver, every launch skipped,
87
+ a value read answering a host-born value or a benign one — refused while a device is visible. Moved from the NeuroBrix
88
+ engine's census, which keeps which keys are recorded and its own seams; `from_numpy`'s stand-in now takes every
89
+ argument `from_numpy` takes.
42
90
  - `nbxtensor.interop.from_dlpack(obj, device=None)`: take in another library's array through DLPack (a torch tensor,
43
91
  a numpy array): host memory is copied in the order it shows, strided views and bfloat16 included; this backend's own
44
92
  device memory is used in place (a strided one is first made contiguous on the device); another vendor's device
45
93
  memory is refused with its name.
46
94
  - `backend.triton_ext_driver.kernel_name(kernel)`: the name a Metal kernel was loaded under. The sync counter
47
- (`NBX_SYNC_TIMING=1`) now ranks Metal kernels by their own names; every launch was counted as `MetalKernel`.
95
+ (`NBX_SYNC_TIMING=1`) ranks Metal kernels by their own names.
48
96
  - `ops.moe_fused.fused_moe(gate_scores, hidden_states, gate_weights, up_weights, down_weights, top_k, num_experts,
49
97
  ...)`: a whole mixture-of-experts layer in one call — the routing (top-k and renormalisation, or a blended routing
50
98
  taken as given), host experts promoted for the call, the experts' pointer tables, and the path the call's shape and
@@ -89,11 +137,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
89
137
  stored bytes. Moved from the engine's float16-safety scan.
90
138
  - `DeviceAllocator.pool_cached_bytes`, `pool_enabled`, `pool_stats`, `blocks_in_use` and `Arena.bytes_on`: the
91
139
  allocator's and an arena's figures for an application's memory lines, forensic dumps and per-key states. The engine
92
- read the allocator's private tables (`_cuda_live_bytes`, `_POOL`, `_cuda_ptr_size`, `_pool_enabled`) in a dozen places.
140
+ read the allocator's private tables (`_cuda_live_bytes`, `_POOL`, `_cuda_ptr_size`, `_pool_enabled`) in a dozen
141
+ places.
93
142
  - `memory.oom_advice.held_memory_report(named, big, bucket)` and `Arena.census(large)`: after a refused allocation,
94
143
  who holds the device's memory (blocks in use by size, the tensors alive on the large ones named or ORPHAN with their
95
144
  referrers, autotuners still holding tensors) and what an arena holds by region. The engine's NBX_LIVE_DUMP_ON_OOM
96
- dump walked the allocator's tables and the garbage collector itself.
145
+ dump walked the allocator's tables and Python's gc module itself.
97
146
  - `memory.memory_pool.release_weights`, `join_weights` and `Arena.release`: a loaded weight set released after
98
147
  every device holding it synchronised (the library's bias and pointer-table caches dropped, the pool emptied), a
99
148
  second load's arenas joined to the first's, an arena cleared after its devices drain. The engine did each itself
@@ -119,9 +168,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
119
168
  held the same arithmetic six times (its Triton sampler, the encoder-decoder, dual-AR and TTS flows, and the
120
169
  compiled twins of the last two); every copy draws the same tokens through these.
121
170
 
122
- ### Fixed
123
- - `NBXTensor.item()` on a bfloat16 element returns its value (the high half of a float32); it returned 0.0.
124
-
125
171
  ## [0.1.4] - 2026-11-12
126
172
 
127
173
  ### Added
@@ -133,8 +179,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
133
179
  `FrozenPlan`, `install_seams`, `arm_launch_recorder`, the action tags. Moved from the NeuroBrix engine, which
134
180
  keeps only when a step is recorded, verified and replayed.
135
181
  - `frozen_plan.measure`, `room_for`, `slabs`, `record`, `retire`, `head_values`, `FrozenPlan.hand_out_outputs`,
136
- `STATE.open_measurement`, `values_sha256`, `carved_from`: a step's slab measured, made room for, allocated and recorded into, a rejected plan
137
- released — the mechanism of the replay's state machine, whose decisions stay the caller's.
182
+ `STATE.open_measurement`, `values_sha256`, `carved_from`: a step's slab measured, made room for, allocated and
183
+ recorded into, a rejected plan released — the mechanism of the replay's state machine, whose decisions stay the
184
+ caller's.
138
185
  - `DeviceAllocator.give_back_cached(dev)`: a card's cached free memory (the expandable range's chunks, the pool's
139
186
  blocks) back to the driver after its work ends.
140
187
  - `StepSlab.for_carved`, `DeviceAllocator.register_idle_reclaimer`: a decode step's slab sized in the library; an
@@ -152,8 +199,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
152
199
  call them instead of their own device-to-host copies.
153
200
  - `memory.memory_pool.break_aliases(tensors, freed)`: before the tensors at `freed` (keys of a list or a dict) are
154
201
  freed, every other entry viewing one of their allocations is replaced by its `contiguous()`. The engine's weight
155
- eviction called its own two copies of it. Known limit, kept from them: a view that is already contiguous is its own
156
- `contiguous()` and still reads the freed memory.
202
+ eviction called its own two copies of it. An entry that is already contiguous is its own `contiguous()` and stays a
203
+ view of that allocation, as in those copies.
157
204
  - `NBXTensor.saturated(dtype)`: a one-element float32 or float64 tensor holding a finite value beyond a half dtype's
158
205
  range comes back as a new tensor (same dtype, shape and card) holding the clamped value (`saturate_scalar`);
159
206
  anything else is itself. The engine's `where` wrap called its own copy, which uploaded to the current card.
@@ -183,18 +230,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
183
230
  carried this op, with its device-to-host and card-to-card copies; it now hands over the tables its placement built.
184
231
 
185
232
  ### Changed
186
- - The multi-device routed layer no longer reads the routing scores back to the host (a copy per layer nothing read).
233
+ - The multi-device routed layer keeps the routing scores on the device.
187
234
  - The slot store reads the card's clock at the size of the word it reads into, no byte count written in the code.
188
-
189
- ### Fixed
190
235
  - `autotune_cache.seed_late(tuner)`, called at a tuner's first launch: a kernel module imported after the process's
191
- first autotuned launch gets the machine's stored settings too (the certified directory first), once — they were
192
- seeded only into the modules already imported, so every new process measured the late ones again.
236
+ first autotuned launch gets the machine's stored settings too (the certified directory first), once, so every new
237
+ process reuses the settings measured for the modules it imports late.
193
238
  - **A driver error while a card's expandable pool asks which cards reach it is refused by name.** `memory.vmm.Vmm`
194
239
  builds the access grant of its chunks from the driver's answers (`cuDeviceGetCount`, `cuDeviceGet`,
195
- `cuDeviceCanAccessPeer`); a call that failed was read as "no peer" and the grant silently named the owning card
196
- alone, so a later card-to-card copy failed far from its cause. The failing call, its device and its status are now
197
- the error. A driver that answers "not a peer" is unchanged.
240
+ `cuDeviceCanAccessPeer`); an error in one of those calls raises at once, naming the call, its device and its status. A
241
+ driver that answers "not a peer" gives a grant naming the owning card, as before.
198
242
 
199
243
  ## [0.1.3] - 2026-11-11
200
244
 
@@ -205,20 +249,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
205
249
  - `PagedTritonKVCache.replay_host_mark()`: the cache's host length, for a replay that mirrors what its recorded run
206
250
  moved (the engine's replayed layer-streamed pieces).
207
251
 
208
- ### Fixed
209
- - **A tensor of a card's expandable pool can be handed to another card.** The pool grows by mapping chunks into one
210
- virtual range; a mapped chunk is readable only from the devices its access grant names, and the grant named the
211
- owning card alone. Any card-to-card copy of a tensor living in the range failed (`cudaMemcpy failed rc=1 (kind=3)`);
212
- only small tensors, held in ordinary blocks, crossed. Each chunk is now granted to its card and to every card that
213
- can reach it as a peer. One card: nothing changes.
214
- - **A routed layer whose experts sit on two cards is read at the right experts.** `memory.pointer_tables.build_ptr_tables`
215
- gave each card a table of its own experts alone, packed, while the grouped GEMM reads a table at the expert's number
216
- 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.
217
- A card's table now keeps the layer's length, each of its experts at its own number (0 where another card holds the
218
- expert); the launch's key, which carries that length, is the layer's again. A layer held by one card is unchanged.
219
-
220
252
  ### Changed
221
253
 
254
+ - **A tensor of a card's expandable pool can be handed to another card.** The pool grows by mapping chunks into one
255
+ virtual range; a mapped chunk is readable from the devices its access grant names, and each chunk is granted to its
256
+ card and to every card that can reach it as a peer, so a tensor of any size living in the range is copied card to
257
+ card. One card: nothing changes.
258
+ - **A routed layer whose experts sit on two cards is read at the right experts.**
259
+ `memory.pointer_tables.build_ptr_tables` gives each card a table of the layer's length, each of its experts at its own
260
+ number (0 where another card holds the expert), as the grouped GEMM reads a table at the expert's number in the layer;
261
+ the launch's key, which carries that length, is the layer's. A layer held by one card is unchanged.
222
262
  - **The library's messages speak of records and graphs.** Seven error texts reworded ("allocation record", "the
223
263
  container's graph"). No behaviour changes.
224
264
 
@@ -230,20 +270,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
230
270
  handed by the launcher; Level Zero no — its kernels load no address from memory). What a launch over a table of
231
271
  `data_ptr()` values stands on; a backend without a row is refused by name.
232
272
 
233
- ### Fixed
234
- - **Apple: an address read through a pinned table is answered from a wrap that covers it.** The Metal driver kept
235
- its pinned whole-allocation wraps under their base address alone, and a pool segment begins where its first block
236
- does. With that first block pinned, a view inside another block of the same segment — a slot of the Triton expert
237
- store's arena — resolved to the first block's short wrap and was handed an address past that buffer's end: another
238
- buffer's bytes, nothing raised. Found by a test that builds the copying expert store (the one with an arena)
239
- directly and runs it after nine earlier mixture-of-experts runs in one process: every row of its result was wrong.
240
- The engine does not build that store on Apple — a unified device's store binds its experts in place, where they
241
- lie in the container's files — and the published 0.6.6 was not seen affected through `neurobrix serve`: on the
242
- two plans the mixture-of-experts model that fits a 24 GB Mac takes (resident, and streamed layer by layer), no
243
- pinned address out of two million was answered past its wrap and every expert's address resolved to an
244
- allocation of its own. The expert-store plan itself was not run on Apple hardware (its models are 31 GB). The
245
- wraps are now kept under their extent (base and size), and `pinned_gpu_address` refuses by name an address beyond
246
- the wrap it resolved. CUDA and Level Zero are not concerned: they have no such wraps.
273
+ ### Changed
274
+ - **Apple: an address read through a pinned table is answered from a wrap that covers it.** The Metal driver keeps its
275
+ pinned whole-allocation wraps under their extent (base and size), so a view inside any block of a pool segment — a
276
+ slot of the Triton expert store's arena — resolves to the wrap that holds it, and `pinned_gpu_address` refuses by name
277
+ an address beyond the wrap it resolved. Proven by a test that builds the copying expert store (the one with an arena)
278
+ directly and runs it after nine earlier mixture-of-experts runs in one process. On Apple the engine builds a unified
279
+ device's store, which binds its experts in place, where they lie in the container's files; with the published 0.6.6
280
+ through `neurobrix serve`, on the two plans the mixture-of-experts model that fits a 24 GB Mac takes (resident, and
281
+ streamed layer by layer), all two million pinned addresses observed resolved inside their wrap, and every expert's
282
+ address to an allocation of its own. CUDA and Level Zero have no such wraps.
247
283
 
248
284
  ## [0.1.1] - 2026-11-11
249
285
 
@@ -268,38 +304,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
268
304
  merged in a fixed order. The host partial (`HostSpill.partial`) stays the decode step's one row: for a chunk's
269
305
  32 x 128 query rows over 14 336 positions it cost 85-122 ms a layer on a Xeon Gold 6230 (40 threads), about half of
270
306
  each spilled chunk of a 79 931-token turn (2026-11-10).
271
- - **A Level Zero failure is a typed refusal**: `backend.level_zero.IntelDeviceError` (a RuntimeError) carries the
272
- call, the `ze_result_t` by name and the module's build log, raised by the runtime, the launch driver and a SPIR-V
273
- module that does not build. The Intel backend is experimental — not yet validated on hardware by the NeuroBrix lab —
274
- and an application decides on this type what a refusal means.
307
+ - **A Level Zero refusal is typed**: `backend.level_zero.IntelDeviceError` (a RuntimeError) carries the call, the
308
+ `ze_result_t` by name and the module's build log, raised by the runtime, the launch driver and a SPIR-V module that
309
+ does not build. The Intel backend is experimental — not yet validated on hardware by the NeuroBrix lab — and an
310
+ application decides on this type what a refusal means.
275
311
  - **The Intel launch driver goes through its runtime's contract** (no behaviour change; the backend stays
276
312
  experimental, not yet validated on hardware): `backend/level_zero.py` is the only module that knows a Level Zero
277
313
  struct, constant or entry point of a module's life — `LevelZeroRuntime.build_module` (answers `ModuleBuilt`: the
278
- result, the module, the build log; a failure is answered, the retry is the driver's decision), `create_kernel`,
314
+ result, the module, the build log; an error is answered, the retry is the driver's decision), `create_kernel`,
279
315
  `kernel_properties`, `destroy_kernel`, `destroy_module`, `set_argument`, `set_group_size`, `append_launch`,
280
316
  `current_device`. `backend/level_zero_driver.py` imported 14 private names and issued 12 raw `ze*` calls; it now
281
317
  imports none and issues none, and holds the one decision that is a driver's (the 256-register rebuild, its two
282
318
  constants beside it). `backend/launcher.py` names publicly what a driver in another file uses: `ModuleDriver`,
283
319
  `ctypes_slot`. Proven without a card: the exact ze calls of ten load and launch paths, recorded before the move,
284
320
  reproduced by it.
285
- - **The library's uploads name their device in the call** (the spilled prefill chunk's blocks, masks and merged
286
- result, the paged decode's host partial, the MoE residency probe): they were written
287
- `NBXTensor.from_numpy(x).to(device=...)`; `from_numpy` lands on the CURRENT device and `.to("cuda:N")` moves
288
- nothing, so that idiom was right only when the call before it had left the wanted device current. No wrong placement
289
- was observed; on a cache whose layers live on two cards it was one reordering away.
321
+ - **The library's uploads name their device in the call** (the spilled prefill chunk's blocks, masks and merged result,
322
+ the paged decode's host partial, the MoE residency probe): `NBXTensor.from_numpy(x, device=...)` places each one on
323
+ the device it names, whichever device is current, so a cache whose layers live on two cards gets each upload on its
324
+ own card.
290
325
  - `NBXTensor.to` reads its positional argument in a named function (`_positional_target`); the method is 40 code
291
326
  lines (49), same answers.
292
-
293
- ### Fixed
294
- - **Reading a device's memory leaves no context on another device**: `DeviceAllocator.free_memory_mb`,
295
- `mem_get_info`, `device_total_bytes` and the other probes "restored the previous device" after reading; in a process
296
- that had selected none, that selected device 0 and made the runtime create a context there. A previous device is
297
- restored only when the process had selected it (`DeviceAllocator.restore_device`).
327
+ - **Reading a device's memory leaves no context on another device**: `DeviceAllocator.free_memory_mb`, `mem_get_info`,
328
+ `device_total_bytes` and the other probes restore a previous device after reading only when the process had selected
329
+ one (`DeviceAllocator.restore_device`), so a process that selected none creates no context on device 0.
298
330
 
299
331
  ## [0.1.0] - 2026-11-10
300
332
  ### Changed
301
- - **Contributions are made under the NeuroBrix Contributor Assignment Agreement** (docs/legal/ of the neurobrix repository, an individual and an entity version): signed once by a comment on the first pull request, for every NeuroBrix project; the `NeuroBrix CLA` check on every pull request says who has yet to sign. CONTRIBUTING.md explains it.
302
- - **The authors' contact address is contact@neurobrix.org** (the package metadata), the project's address being neurobrix.org.
333
+ - **Contributions are made under the NeuroBrix Contributor Assignment Agreement** (docs/legal/ of the neurobrix
334
+ repository, an individual and an entity version): signed once by a comment on the first pull request, for every
335
+ NeuroBrix project; the `NeuroBrix CLA` check on every pull request says who has yet to sign. CONTRIBUTING.md explains
336
+ it.
337
+ - **The authors' contact address is contact@neurobrix.org** (the package metadata), the project's address being
338
+ neurobrix.org.
303
339
 
304
340
  ### Added
305
341
  - **A decoding sequence may outgrow the card's KV pages**: past `card_pages`, `PagedTritonKVCache` moves its oldest
@@ -318,10 +354,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
318
354
  -inf before the sampler; the mask on the logits' own device, the element-wise launch's certified tile; a mask of
319
355
  another shape or allowing no token refused by name. Torch-free.
320
356
  - **A KV cache host tier**: `memory.kv_host_tier` (the prefix index of whole pages, the host page pool, the pages a
321
- sequence holds), `memory.kv_host_pages` (host pages laid out [page][layer][K, V], pinned or pageable; per-layer copies,
322
- and `offload_gathered` / `restore_scattered`: every layer's page gathered on the device by one kernel per K and V, then
323
- one copy per page and run of layers — 43 MB in 21 / 8 ms against 184 / 210 ms per layer on a V100), and the paged
324
- cache's `tier_*` protocol (layout, length, offload, restore in place, resume).
357
+ sequence holds), `memory.kv_host_pages` (host pages laid out [page][layer][K, V], pinned or pageable; per-layer
358
+ copies, and `offload_gathered` / `restore_scattered`: every layer's page gathered on the device by one kernel per K
359
+ and V, then one copy per page and run of layers — 43 MB in 21 / 8 ms against 184 / 210 ms per layer on a V100), and
360
+ the paged cache's `tier_*` protocol (layout, length, offload, restore in place, resume).
325
361
  - **`nbxtensor.ops.embedding_pool`**: an embedding model's pooling on the host (`pool_hidden`: mean over the kept
326
362
  positions, cls, or each sequence's last kept position whatever the padding side; `l2_normalize`), numpy and
327
363
  torch-free; refusals by name.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nbxtensor
3
- Version: 0.1.5
3
+ Version: 0.1.7
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
@@ -326,11 +326,11 @@ assert p.replace(compute="bfloat16").compute == "bfloat16" # a policy
326
326
  An op's output dtype under a half compute dtype, when it computes in float32 inside (`nbxtensor.dtype.outputs`):
327
327
 
328
328
  ```python
329
- from nbxtensor.dtype.outputs import amp_fp32_output_dtype, traced_output_is_complex
329
+ from nbxtensor.dtype.outputs import amp_fp32_output_dtype, built_output_is_complex
330
330
 
331
331
  assert amp_fp32_output_dtype("bfloat16", "bfloat16", safe=False, narrowed=False) == "bfloat16" # follows the graph
332
332
  assert amp_fp32_output_dtype("float16", "float16", safe=False, narrowed=False) == "float32" # no contract: float32
333
- assert traced_output_is_complex({"output_dtypes": ["complex64"]}) # read from the graph's recorded output, never the op's name
333
+ assert built_output_is_complex({"output_dtypes": ["complex64"]}) # read from the graph's recorded output, never the op's name
334
334
  ```
335
335
 
336
336
  ### Array API: type promotion and Python scalars
@@ -303,11 +303,11 @@ assert p.replace(compute="bfloat16").compute == "bfloat16" # a policy
303
303
  An op's output dtype under a half compute dtype, when it computes in float32 inside (`nbxtensor.dtype.outputs`):
304
304
 
305
305
  ```python
306
- from nbxtensor.dtype.outputs import amp_fp32_output_dtype, traced_output_is_complex
306
+ from nbxtensor.dtype.outputs import amp_fp32_output_dtype, built_output_is_complex
307
307
 
308
308
  assert amp_fp32_output_dtype("bfloat16", "bfloat16", safe=False, narrowed=False) == "bfloat16" # follows the graph
309
309
  assert amp_fp32_output_dtype("float16", "float16", safe=False, narrowed=False) == "float32" # no contract: float32
310
- assert traced_output_is_complex({"output_dtypes": ["complex64"]}) # read from the graph's recorded output, never the op's name
310
+ assert built_output_is_complex({"output_dtypes": ["complex64"]}) # read from the graph's recorded output, never the op's name
311
311
  ```
312
312
 
313
313
  ### Array API: type promotion and Python scalars
@@ -115,8 +115,8 @@ def constant_load_dtype(traced: str, compute: str, stores_fp64: bool) -> str #
115
115
 
116
116
  ```python
117
117
  COMPLEX_DTYPE_NAMES = frozenset({"complex32", "complex64", "complex128", "chalf", "cfloat", "cdouble"})
118
- def traced_output_dtype_name(record: dict) -> Optional[str] # output_dtypes[0] at the record's top level, plain name
119
- def traced_output_is_complex(record: dict) -> bool # any recorded output dtype complex (never the op's name or inputs)
118
+ def built_output_dtype_name(record: dict) -> Optional[str] # output_dtypes[0] at the record's top level, plain name
119
+ def built_output_is_complex(record: dict) -> bool # any recorded output dtype complex (never the op's name or inputs)
120
120
  def amp_fp32_output_dtype(compute_dtype, graph_dtype, safe, narrowed, traced=None) -> str
121
121
  # the output of an op computed float32 inside a half forward: bfloat16 follows the graph dtype,
122
122
  # float16 narrows only under `safe` / `narrowed`; a float32 island recorded in the graph only under `narrowed`
@@ -135,6 +135,29 @@ def join_weights(held: dict, loaded: dict) -> dict # memory_pool.joi
135
135
  def pool_enabled() -> bool # pool.parks_freed_blocks
136
136
  def pool_parked_cap_bytes(vendor, architecture, total_bytes) -> int # pool.parked_cap_bytes
137
137
  def pool_fit_slack(vendor, architecture) -> float # pool.fit_slack
138
+ # the allocator's figures and the pool's controls, same arguments as `DeviceAllocator`'s (2026-11-13):
139
+ def memory_allocated(device_idx=None) -> int # live bytes handed out (None: every device)
140
+ def pool_cached_bytes(device_idx=None) -> int # bytes parked in the pool's free blocks
141
+ def blocks_in_use(device_idx=None) -> dict # {address: bytes} of the blocks tensors hold
142
+ def device_free_bytes(device_idx=None) -> int # the driver's free bytes (None: current device)
143
+ def device_total_bytes(device_idx=None) -> int # the device's total memory (refused: DeviceQueryError)
144
+ def free_memory_mb(index: int) -> float # the driver's free memory in MB (refused: DeviceQueryError)
145
+ def peak_device_bytes() -> Optional[int] # the most one device held at once since the start
146
+ def host_pinned_allocated() -> int # live pinned host bytes
147
+ def empty_cache_pool() -> int # the pool's parked blocks given back; bytes freed
148
+ def give_back_cached(dev: int) -> None # a card's cached free memory back to the driver
149
+ def open_window(device_idx: int) -> int # start watching what the process holds; a token
150
+ def window_start(token: int) -> Optional[int] # what was held when the window opened
151
+ def close_window(device_idx: int, token: int) -> Optional[int] # the most held since it opened; the window closed
152
+ def register_idle_reclaimer(reclaim) -> None # `reclaim(dev) -> bytes` when a malloc is refused
153
+ def weight_arenas() -> WeightArenas # a weight set's memory to count, allocate and pin
154
+ # a compiled sequence's slot memory and its lifecycle (`memory.slot_stores`, 2026-11-13):
155
+ SlotStore # the slot store ([weights | inputs | intermediates])
156
+ def slot_store(size, num_weights=0, num_inputs=0) -> SlotStore # the store a sequence takes at compile
157
+ def end_store_request(store) -> None # a request ended: inputs and intermediates dropped
158
+ def release_store(store) -> None # an unload: devices synchronised, then every slot dropped
159
+ def store_held_bytes(store, device_idx) -> tuple # (weights, the rest) bytes it holds on a device
160
+ def store_contents(store, large: int) -> dict # what it holds by region, its large intermediates
138
161
  ```
139
162
 
140
163
  `nbxtensor.memory.allocator`
@@ -184,8 +207,9 @@ DEVICE, HOST
184
207
  class HostPagePool
185
208
  # `capacity` host pages, each one page index of every layer's K and V contiguous: take, give, free_pages; grow(n),
186
209
  # shrink(n) (the last n pages, when all are free) as the host memory grows or frees a slice
187
- def host_tier_pages(budget_bytes, page_bytes_all_layers) -> int
188
- # the whole host pages a budget holds; 0 (the tier off) below one page
210
+ def host_tier_pages(budget_bytes, num_layers, k_page_bytes, v_page_bytes) -> int
211
+ # the whole host pages a budget holds, a page being one page index of every layer's K and V; 0 (the tier off)
212
+ # below one page
189
213
  def sequence_pages(tables, batch) -> List[int]
190
214
  # a serving cache's one sequence's device pages in position order (refused for a batch > 1)
191
215
  class PrefixIndex
@@ -198,7 +222,7 @@ class PrefixIndex
198
222
  ```python
199
223
  class HostPages
200
224
  # host pages, each [layer][K page, V page] contiguous, allocated in slices of `slice_pages` up to `max_pages` (the
201
- # budget a ceiling): grow, shrink, capacity, contiguous(a, b) (one slice), page_view, address(host_page, layer,
225
+ # budget a ceiling): grow, shrink, capacity, nbytes() (the bytes its slices hold), contiguous(a, b) (one slice), page_view, address(host_page, layer,
202
226
  # which), close; fixed(capacity, ...) one slice at once; page-locked when asked, pageable otherwise (unified memory)
203
227
  def offload(k_pools, v_pools, pages, host, host_pages) -> None
204
228
  # each device page (every layer's K and V, `pool[page]`) copied to its host page, after the device's queued work
@@ -235,6 +259,8 @@ def one_head_per_group(t, kv_heads, group)
235
259
  `nbxtensor.memory.host_spill` — the positions a decoding sequence spilled from the card's pages to host memory
236
260
 
237
261
  ```python
262
+ def spill_bytes_per_position(num_layers, kv_heads, k_dim, v_dim) -> int
263
+ # host bytes one spilled position costs across every layer (float32 K and V); a server sizes its reach by it
238
264
  class HostSpill(num_layers, kv_heads, k_dim, v_dim, budget_bytes)
239
265
  # per layer K / V float32 [H_kv, positions, D], written once per spilled page (append(layer, k_pages, v_pages)),
240
266
  # grown by doubling up to the budget (refused by name past it: reach(), position_bytes()); partial(layer, q,
@@ -319,6 +345,9 @@ def join_weights(held: dict, loaded: dict) -> dict
319
345
  # `loaded` with its arenas merged into `held`'s (a second arena on a device under a distinct key), to update `held`
320
346
  def break_aliases(tensors, freed) -> int
321
347
  # Before the entries of `tensors` (list or dict) at `freed` are freed: every other entry viewing one of their allocations replaced by its contiguous(); the count.
348
+ class WeightArenas
349
+ # One weight set's memory: reserve(device, nbytes) / reserve_host(nbytes) at the arenas' alignment, allocate() (one
350
+ # ComponentArena per device, one HostPinnedArena), pin_host() once the host weights are written; .devices, .host.
322
351
  class ComponentArena
323
352
  # Single contiguous GPU memory block for one component's weights.
324
353
  class HostPinnedArena
@@ -485,6 +514,16 @@ class SlabInterceptor(AllocatorInterceptor)
485
514
  # The allocator's interceptor for slab-served runs.
486
515
  ```
487
516
 
517
+ `nbxtensor.memory.step_stabilizer` — a decoding sequence's step slab, stabilized over its first runs
518
+
519
+ ```python
520
+ class StepStabilizer(state, label)
521
+ # one per sequence on the slab interceptor `state`; tick(dev_idx) at each run's start: runs 1-2 pass through,
522
+ # run 3 measures the bytes the step carves (banked at the next tick of any sequence), runs 4+ carve from its
523
+ # recycled StepSlab (StepSlab.for_carved), put in force as state.stab_slab; runs, total, slab
524
+ SAY_AT_RUN # the run whose carve sequence is compared with the previous one, once, at debug level
525
+ ```
526
+
488
527
  ### `nbxtensor.ops.tiling_sizes` — the sizes the tiled and chunked paths cut by (the tiling table in force: `ops.tiling_policy`)
489
528
 
490
529
  Every figure is read from the tiling table in force (`set_tiling` / `tiling_table`), never written in the code.
@@ -612,6 +651,8 @@ def digest(t, algorithm: str, nbytes: int | None = None, **params) -> str
612
651
  # hashlib.new(algorithm, bytes, **params).hexdigest() over the elements in row-major order, the first nbytes
613
652
  def values_at(t, positions) -> list[float]
614
653
  # the values at row-major flat positions, each element read alone after a device synchronisation
654
+ def label(t) -> str
655
+ # shape, dtype, device and the object's id, for a diagnostic line ("-" for None): never the tensor's address
615
656
  ```
616
657
 
617
658
  ### `nbxtensor.ops.fused_upsample_conv` — a convolution streamed in bands of output rows
@@ -2810,6 +2851,10 @@ def verify_driver_contract(driver, jit_fn, signature, constexprs, make_buffer, r
2810
2851
  def from_dlpack(obj, device=None) -> NBXTensor
2811
2852
  # The elements `obj` exports through DLPack: host memory copied in the order it shows (strides, bfloat16), this
2812
2853
  # backend's own device memory wrapped in place, another vendor's device memory refused by name.
2854
+ def copy_to_address(tensor, address: int) -> None
2855
+ # The values, in C order, copied into a buffer another library owns on the same device heap (`interop.handoff`).
2856
+ def host_bytes(tensor) -> bytearray
2857
+ # The values, in C order, as host bytes for another library to type itself (`interop.handoff`).
2813
2858
 
2814
2859
  ### `nbxtensor.backend.metal_dispatch` — Triton's compiled Metal kernels, run on nbxtensor's own stream
2815
2860
 
@@ -2896,9 +2941,23 @@ The cache is evicted before each trial and bypassed during it (macOS `msync(MS_I
2896
2941
  `posix_fadvise(DONTNEED)`): the rate is the storage path's, never the page cache's. A measure whose first and last
2897
2942
  one-worker trials disagree is not steady and is not to be recorded.
2898
2943
 
2944
+ ### `nbxtensor.io.mapped_shards` — weight files mapped once, the views' spans in them, their pages given back
2945
+
2946
+ ```python
2947
+ class ShardMaps(access=mmap.ACCESS_COPY)
2948
+ # map(shard) -> the shard's one mapping (ACCESS_COPY: views a framework may wrap; ACCESS_READ: pages the GPU
2949
+ # reads in place); note(view, shard, offset, nbytes): the span a host view is over; give_back(view) -> (start,
2950
+ # length): that span's pages given back after a copy, found by the view's address (refused by name for a
2951
+ # tensor over no noted span); len()
2952
+ def drop_pages(mapping, offset, nbytes) -> (start, length)
2953
+ # the page-aligned range given back to the kernel (madvise MADV_DONTNEED); refused by name where mmap cannot advise
2954
+ ```
2955
+
2899
2956
  ### `nbxtensor.io.safetensors` — the host conversions of a loaded weight, split across the loader's workers
2900
2957
 
2901
2958
  ```python
2959
+ def mapped_view(mapping, offset: int, shape: tuple, sf_dtype: str) -> NBXTensor
2960
+ # A host tensor over one weight's stored bytes inside a read-only mapped shard, no byte copied, the mapping its base.
2902
2961
  def to_bf16_bits(arr: np.ndarray, io) -> np.ndarray # float32 / float16 -> bfloat16 patterns (uint16), the
2903
2962
  # bytes of one f32_to_bf16_bits call, one span per worker
2904
2963
  def read_bytes(fd: int, offset: int, nbytes: int, io) -> np.ndarray
@@ -3049,6 +3108,28 @@ class Capabilities: # one record per backend, today five dicts (nbx_ten
3049
3108
  nbxtensor.device.synchronize(device) nbxtensor.device.mem_info(device) -> (free: int, total: int)
3050
3109
  ```
3051
3110
 
3111
+ **In the library today (`nbxtensor/device.py`, the application's door; each name answers from
3112
+ `memory.allocator.DeviceAllocator`):**
3113
+
3114
+ ```python
3115
+ def count() -> int # devices this process sees
3116
+ def current() -> int # the runtime's current device
3117
+ def select(index: int) -> None # make `index` current (allocations, copies, synchronizations); refused by name
3118
+ def select_for_launch(index: int) -> None # current for the next kernel launch too (the launcher's context)
3119
+ def synchronize() -> None # the current device finished, through the interceptor in force
3120
+ def drain(index: Optional[int] = None) -> None # every stream of a device drained; the current device restored
3121
+ def mem_info(index: Optional[int] = None) -> Tuple[int, int] # (free, total) bytes, as the runtime reports them
3122
+ def most_free() -> int # the device with the most free memory; the current device restored
3123
+ class DeviceQueryError(RuntimeError) # a device question the runtime refused: the call, the device, its code
3124
+ NoGpuRuntime # (backend.runtime) no GPU runtime on this host: the one refusal meaning no device
3125
+ ```
3126
+
3127
+ No device is a fact, a refusal is an error: `count()` is 0 only on a host with no GPU runtime
3128
+ (`nbxtensor.backend.runtime.NoGpuRuntime`) or when the runtime answers its own "no device" code (the backend table's
3129
+ `no_device_rc`); any other refusal of a device question raises `DeviceQueryError` — the one-device memory reads
3130
+ included (`mem_info`, and `nbxtensor.memory`'s `free_memory_mb`, `device_free_bytes`, `device_total_bytes`: a device
3131
+ the process does not see, a refused selection or read, a failed restore of the current device).
3132
+
3052
3133
  `set_backend_has_fp64` and `declare_backend_capability` (nbx_tensor.py:420,519) mutate module globals
3053
3134
  today. In v1 the record is built once, when the backend is detected. A device's fp64 is a fact the
3054
3135
  backend states (Metal: none). It is not something the engine sets afterwards.
@@ -3152,6 +3233,10 @@ the engine and is passed in.
3152
3233
  `saturate_scalar` in `nbxtensor.dtype.convert`.
3153
3234
  3. **Dependency on the launcher (still open, 2026-11-02).** The `.dtype` change (section 4) needs the launcher to stop
3154
3235
  reading the Triton dtype off the argument (`backend/launcher.py` reads `arg.dtype` to bind and to key).
3236
+ 4. **Two device questions answered through a fallback — done (2026-11-13).** `DeviceAllocator.device_count`
3237
+ answered 0 for any failure of the runtime, and `most_free_device` / `visible_device_memory` skipped a device whose
3238
+ query failed and did not raise a failed restore. They now raise `DeviceQueryError`
3239
+ (nbxtensor/tests/test_a_device_question_the_runtime_refuses_is_raised_by_name.py).
3155
3240
 
3156
3241
  ## 11. The boundary: every host service is generic in the library or goes back to the engine (Hocine Benkelaya 29/10 16:28)
3157
3242
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nbxtensor"
7
- version = "0.1.5"
7
+ version = "0.1.7"
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.5"
16
+ __version__ = "0.1.7"
17
17
  __all__: list = []
@@ -66,7 +66,7 @@ _BACKEND_KERNELS_READ_DATA_PTR = {"cuda": True, "hip": True, "xpu": False, "meta
66
66
  # `TRITON_METAL_FP64_UNAVAILABLE`), so a kernel over a float64 buffer reads eight-byte
67
67
  # elements as four-byte ones. Measured 2026-09-28: `from_numpy(float64).to(bf16)` on the
68
68
  # M4 Pro gave 1 139 of 143 360 bits right and 3 255 non-finite values (the Sana 4K sincos
69
- # positional embedding, every off-trace size). A census says "not this time"; the door in
69
+ # positional embedding, every off-build size). A census says "not this time"; the door in
70
70
  # `NBXTensor.to` says "never": a cast from or to such a dtype is refused BY NAME there.
71
71
  #
72
72
  # The answer is the CALLER's to give (`set_backend_has_fp64`), not a table here: it is a fact
@@ -64,7 +64,9 @@ def device_memory_gb(device_idx: int) -> "int | None":
64
64
  if nbytes is None:
65
65
  if idx not in _MEASURED_MEMORY:
66
66
  from nbxtensor.memory.allocator import DeviceAllocator
67
- _MEASURED_MEMORY[idx] = int(DeviceAllocator.device_total_bytes(idx))
67
+ # no card visible at that index (the count is 0 without a runtime): None; a refused read rises
68
+ visible = idx < DeviceAllocator.device_count()
69
+ _MEASURED_MEMORY[idx] = int(DeviceAllocator.device_total_bytes(idx)) if visible else 0
68
70
  nbytes = _MEASURED_MEMORY[idx]
69
71
  return memory_gb(nbytes / (1 << 20)) if nbytes and nbytes > 0 else None
70
72