nbxtensor 0.1.6__tar.gz → 0.1.8__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 (376) hide show
  1. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/CHANGELOG.md +132 -83
  2. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/PKG-INFO +1 -1
  3. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/API.md +96 -4
  4. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/pyproject.toml +1 -1
  5. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/__init__.py +1 -1
  6. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +8 -4
  7. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/frozen_plan.py +5 -5
  8. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/metal_device.py +31 -1
  9. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/metal_dispatch.py +3 -0
  10. nbxtensor-0.1.8/src/nbxtensor/backend/metal_profile.py +167 -0
  11. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/replay_graph.py +53 -17
  12. nbxtensor-0.1.8/src/nbxtensor/device.py +140 -0
  13. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/dtype/outputs.py +10 -3
  14. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/inspection.py +8 -0
  15. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/interop/__init__.py +2 -1
  16. nbxtensor-0.1.8/src/nbxtensor/interop/handoff.py +24 -0
  17. nbxtensor-0.1.8/src/nbxtensor/io/mapped_shards.py +65 -0
  18. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/io/safetensors.py +9 -0
  19. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/__init__.py +32 -0
  20. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/allocator.py +21 -9
  21. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/host_spill.py +6 -1
  22. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/kv_host_pages.py +4 -0
  23. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/kv_host_tier.py +7 -5
  24. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/memory_pool.py +38 -0
  25. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/shadow.py +30 -5
  26. nbxtensor-0.1.8/src/nbxtensor/memory/slot_stores.py +35 -0
  27. nbxtensor-0.1.8/src/nbxtensor/memory/step_stabilizer.py +87 -0
  28. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/vmm.py +23 -21
  29. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/autotune_cache.py +2 -3
  30. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/autotune_certified.py +4 -0
  31. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/elementwise_wrappers.py +6 -7
  32. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/fused_moe.py +12 -15
  33. nbxtensor-0.1.8/src/nbxtensor/profile.py +95 -0
  34. nbxtensor-0.1.8/tests/conftest.py +4 -0
  35. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/tools/scatter_scan.py +3 -0
  36. nbxtensor-0.1.6/src/nbxtensor/device.py +0 -79
  37. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
  38. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/.github/workflows/cla.yml +0 -0
  39. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/.gitignore +0 -0
  40. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/CONTRIBUTING.md +0 -0
  41. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/LICENSE +0 -0
  42. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/NOTICE +0 -0
  43. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/README.md +0 -0
  44. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/THIRD_PARTY_NOTICES.md +0 -0
  45. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/assets/logo.png +0 -0
  46. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/BACKENDS.md +0 -0
  47. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/api_undocumented.txt +0 -0
  48. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/certified-autotune-method.md +0 -0
  49. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/design/ALLOCATOR.md +0 -0
  50. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/design/COST.md +0 -0
  51. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/design/DESIGN.md +0 -0
  52. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/device_file_template.yml +0 -0
  53. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/device_keys.txt +0 -0
  54. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/history/INVENTORY.md +0 -0
  55. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/history/MIGRATION.md +0 -0
  56. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/history/migration_list.tsv +0 -0
  57. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/replay-recording-in-a-one-shot-request.md +0 -0
  58. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/tensor-cores-through-linear-layouts.md +0 -0
  59. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/docs/triton_cpu_install.md +0 -0
  60. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/__main__.py +0 -0
  61. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/__init__.py +0 -0
  62. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/capabilities.py +0 -0
  63. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/cpu/__init__.py +0 -0
  64. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/cpu/blas.py +0 -0
  65. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/cpu/pool.py +0 -0
  66. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/cpu_backend.py +0 -0
  67. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/device_facts.py +0 -0
  68. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/device_files.py +0 -0
  69. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/device_measure.py +0 -0
  70. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/device_names.py +0 -0
  71. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
  72. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
  73. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
  74. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
  75. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
  76. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
  77. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
  78. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
  79. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
  80. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
  81. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
  82. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
  83. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
  84. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
  85. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
  86. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
  87. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
  88. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
  89. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
  90. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
  91. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
  92. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
  93. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
  94. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
  95. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
  96. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
  97. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -0
  98. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -0
  99. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
  100. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
  101. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
  102. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/mtl.yml +0 -0
  103. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -0
  104. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -0
  105. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
  106. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/wcl.yml +0 -0
  107. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/intel/xe_lp.yml +0 -0
  108. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
  109. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
  110. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
  111. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/faults.py +0 -0
  112. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/host_memory.py +0 -0
  113. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/install_help.py +0 -0
  114. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/install_metal.py +0 -0
  115. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/install_steps.yml +0 -0
  116. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/launcher.py +0 -0
  117. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/launcher_contract.py +0 -0
  118. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/level_zero.py +0 -0
  119. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/level_zero_driver.py +0 -0
  120. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/libnames.py +0 -0
  121. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/metal_backend.py +0 -0
  122. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/process_memory.py +0 -0
  123. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/runtime.py +0 -0
  124. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/backend/triton_ext_driver.py +0 -0
  125. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/dtype/__init__.py +0 -0
  126. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/dtype/convert.py +0 -0
  127. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/dtype/dtypes.yml +0 -0
  128. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/dtype/itemsize.py +0 -0
  129. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
  130. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/dtype/operands.py +0 -0
  131. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/dtype/policy.py +0 -0
  132. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/dtype/policy.yml +0 -0
  133. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/dtype/promotion.py +0 -0
  134. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/host.py +0 -0
  135. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/interop/dlpack.py +0 -0
  136. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/io/__init__.py +0 -0
  137. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/io/constants.py +0 -0
  138. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/io/read_rate.py +0 -0
  139. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/arena.py +0 -0
  140. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/block_upload.py +0 -0
  141. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/deferred_frees.py +0 -0
  142. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/device_memory.py +0 -0
  143. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/device_transfer.py +0 -0
  144. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/expert_slots.py +0 -0
  145. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/kv_session.py +0 -0
  146. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/layout.py +0 -0
  147. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/metal.py +0 -0
  148. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/oom_advice.py +0 -0
  149. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/paged_kv.py +0 -0
  150. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/pages.py +0 -0
  151. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/pointer_tables.py +0 -0
  152. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/pool.py +0 -0
  153. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/slab.py +2 -2
  154. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/to_device_census.py +0 -0
  155. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/trace_replay.py +0 -0
  156. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
  157. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/__init__.py +0 -0
  158. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/_autotune_policy.py +0 -0
  159. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/_common.py +0 -0
  160. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/_configs.py +0 -0
  161. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/_cost.py +0 -0
  162. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/abs.py +0 -0
  163. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
  164. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/add.py +0 -0
  165. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/addcdiv.py +0 -0
  166. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/addcmul.py +0 -0
  167. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/addmv_op.py +0 -0
  168. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/addr.py +0 -0
  169. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/all_reduce.py +0 -0
  170. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/amax.py +0 -0
  171. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/any_reduce.py +0 -0
  172. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/arange_op.py +0 -0
  173. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/argmax.py +0 -0
  174. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/argmin.py +0 -0
  175. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/atan2.py +0 -0
  176. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/attention_wrappers.py +0 -0
  177. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/autotune_bucket.py +0 -0
  178. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/autotune_harness.py +0 -0
  179. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/autotune_refusals.py +0 -0
  180. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/autotune_settings.py +0 -0
  181. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/avg_pool2d.py +0 -0
  182. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/axis_slices.py +0 -0
  183. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/baddbmm_op.py +0 -0
  184. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/batch_norm.py +0 -0
  185. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/binary_strided.py +0 -0
  186. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/bitwise_and.py +0 -0
  187. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
  188. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/bitwise_not.py +0 -0
  189. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/bitwise_or.py +0 -0
  190. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
  191. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/bucketize.py +0 -0
  192. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/cat_op.py +0 -0
  193. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/celu.py +0 -0
  194. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/certified_index.py +0 -0
  195. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/clamp.py +0 -0
  196. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/clamp_min.py +0 -0
  197. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/conv2d.py +0 -0
  198. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
  199. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
  200. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
  201. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/conv_wrappers.py +0 -0
  202. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/copy.py +0 -0
  203. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/copy_op.py +0 -0
  204. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/cos.py +0 -0
  205. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/count_nonzero.py +0 -0
  206. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/cross_entropy.py +0 -0
  207. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/cummax.py +0 -0
  208. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/cummin.py +0 -0
  209. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/cumsum.py +0 -0
  210. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
  211. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
  212. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/dequant_gemv.py +0 -0
  213. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/dft.py +0 -0
  214. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/dispatch.py +0 -0
  215. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/div.py +0 -0
  216. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/dot_op.py +0 -0
  217. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/dropout.py +0 -0
  218. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/dtype_convert.py +0 -0
  219. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/elementwise_launch.py +0 -0
  220. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/elu.py +0 -0
  221. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/embedding.py +0 -0
  222. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/embedding_pool.py +0 -0
  223. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/eq.py +0 -0
  224. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/erf.py +0 -0
  225. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/exp.py +0 -0
  226. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/exp2.py +0 -0
  227. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/fft_op.py +0 -0
  228. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/fill_op.py +0 -0
  229. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/flash_attention.py +0 -0
  230. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
  231. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/flash_decode.py +0 -0
  232. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/flip_op.py +0 -0
  233. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/floor.py +0 -0
  234. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/full_op.py +0 -0
  235. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
  236. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
  237. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/gather_op.py +0 -0
  238. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/ge.py +0 -0
  239. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/gelu.py +0 -0
  240. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/gemv_vec.py +0 -0
  241. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/glu.py +0 -0
  242. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/grid_sampler.py +0 -0
  243. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
  244. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/groupnorm.py +0 -0
  245. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/gt.py +0 -0
  246. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/hardsigmoid.py +0 -0
  247. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/hardswish.py +0 -0
  248. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/host_decode_partial.py +0 -0
  249. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/im2col.py +0 -0
  250. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/index_add.py +0 -0
  251. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/index_put_op.py +0 -0
  252. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/index_select.py +0 -0
  253. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/index_wrappers.py +0 -0
  254. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/isfinite.py +0 -0
  255. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/isinf.py +0 -0
  256. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/isnan.py +0 -0
  257. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/launch_keys.py +0 -0
  258. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/launch_observer.py +0 -0
  259. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/layernorm.py +0 -0
  260. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/le.py +0 -0
  261. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/leaky_relu.py +0 -0
  262. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/lerp.py +0 -0
  263. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/linalg_wrappers.py +0 -0
  264. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/linspace_op.py +0 -0
  265. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/log.py +0 -0
  266. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/log_sigmoid.py +0 -0
  267. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/logical_and.py +0 -0
  268. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/logical_not.py +0 -0
  269. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/logical_or.py +0 -0
  270. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/logical_xor.py +0 -0
  271. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/loss_wrappers.py +0 -0
  272. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/lt.py +0 -0
  273. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/masked_fill.py +0 -0
  274. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/matmul.py +0 -0
  275. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
  276. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/max_pool2d.py +0 -0
  277. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/max_pool3d.py +0 -0
  278. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/max_reduce.py +0 -0
  279. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/maximum.py +0 -0
  280. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/mean.py +0 -0
  281. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/min_reduce.py +0 -0
  282. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/minimum.py +0 -0
  283. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/mish.py +0 -0
  284. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
  285. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/moe_align.py +0 -0
  286. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
  287. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/moe_device_residency.py +0 -0
  288. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/moe_fused.py +0 -0
  289. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/moe_multi_device.py +0 -0
  290. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/moe_wrappers.py +0 -0
  291. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/mse_loss.py +0 -0
  292. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/mul.py +0 -0
  293. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/nan_to_num.py +0 -0
  294. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/ne.py +0 -0
  295. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/neg.py +0 -0
  296. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/nllloss.py +0 -0
  297. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/nonzero.py +0 -0
  298. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/nonzero_op.py +0 -0
  299. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/norm_wrappers.py +0 -0
  300. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/ones_op.py +0 -0
  301. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/oracles/__init__.py +0 -0
  302. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/oracles/attention_fp64.py +0 -0
  303. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
  304. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/oracles/fp64.py +0 -0
  305. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/pad_op.py +0 -0
  306. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
  307. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
  308. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
  309. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/pow.py +0 -0
  310. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/prod.py +0 -0
  311. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/rand_op.py +0 -0
  312. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/random_wrappers.py +0 -0
  313. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/reciprocal.py +0 -0
  314. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
  315. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/relu.py +0 -0
  316. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/remainder.py +0 -0
  317. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/repeat_interleave.py +0 -0
  318. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/repeat_op.py +0 -0
  319. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/residual_chain.py +0 -0
  320. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/rmsnorm.py +0 -0
  321. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/rope.py +0 -0
  322. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/rsqrt.py +0 -0
  323. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/scaled_softmax.py +0 -0
  324. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/scatter_op.py +0 -0
  325. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/screen_oracle.py +0 -0
  326. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/selu.py +0 -0
  327. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/shape_wrappers.py +0 -0
  328. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/sigmoid.py +0 -0
  329. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/silu.py +0 -0
  330. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/sin.py +0 -0
  331. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/softmax.py +0 -0
  332. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/softplus.py +0 -0
  333. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/sort_op.py +0 -0
  334. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
  335. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/sqrt.py +0 -0
  336. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/stack_op.py +0 -0
  337. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/std.py +0 -0
  338. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/strided_copy.py +0 -0
  339. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/sub.py +0 -0
  340. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/sum.py +0 -0
  341. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/tan.py +0 -0
  342. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/tanh.py +0 -0
  343. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/threshold.py +0 -0
  344. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/tiles.py +0 -0
  345. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/tiling.yml +0 -0
  346. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/tiling_policy.py +0 -0
  347. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/tiling_sizes.py +0 -0
  348. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/token_bitmask.py +0 -0
  349. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/token_filters.py +0 -0
  350. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/topk.py +0 -0
  351. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/trace_op.py +0 -0
  352. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/tril.py +0 -0
  353. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/triu.py +0 -0
  354. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/unfold_op.py +0 -0
  355. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/unique_op.py +0 -0
  356. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
  357. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
  358. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
  359. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/var.py +0 -0
  360. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/vector_norm.py +0 -0
  361. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/weight_norm.py +0 -0
  362. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/where.py +0 -0
  363. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/wrappers.py +0 -0
  364. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/ops/zeros_op.py +0 -0
  365. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/quant/__init__.py +0 -0
  366. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/quant/quantized_tensor.py +0 -0
  367. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/random/__init__.py +0 -0
  368. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/random/mt_randn.py +0 -0
  369. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/random/rng_pin.py +0 -0
  370. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/random/rng_stream.py +0 -0
  371. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/random/seeded_draw.py +0 -0
  372. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/shape/__init__.py +0 -0
  373. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/tensor.py +0 -0
  374. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/src/nbxtensor/terminal.py +0 -0
  375. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/tools/device_key_census.py +0 -0
  376. {nbxtensor-0.1.6 → nbxtensor-0.1.8}/tools/device_key_trace.py +0 -0
@@ -7,15 +7,67 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [0.1.6] - 2026-11-13
10
+ ## [0.1.8] - 2026-11-15
11
+
12
+ ### Added
13
+ - `nbxtensor.memory.peak_memory_allocated(device)`, `reset_peak_memory(device)` and `pool_stats()`: the allocator's
14
+ peak, its restart and the pool's counters through the public API.
15
+ - `nbxtensor.device.target_name()` (`<backend>-<arch>`, as measured and certified settings are keyed),
16
+ `declare_target(maker, capability)` and `install_shadow(devices)` (a card-less process that forms every launch key a
17
+ run would, refused with `DevicesVisible` while a device is in sight); `TargetNotDeclarable` names a target that
18
+ cannot be formed from a capability number.
19
+ - `nbxtensor.profile.kernel_times()`: where a real run's GPU time goes on Metal, kernel by kernel (and the copies as
20
+ one row). Inside it every launch runs alone and is timed on the GPU at its own boundaries: the table ranks kernels;
21
+ it is not the production speed, and its header says so. The output bytes do not change.
22
+
23
+ ### Changed
24
+ - The replay runs as CUDA graphs wherever the backend offers them, on one card too: a plan recorded on one card (the
25
+ record naming its card, a device sync on that card) is captured as one graph; a plan that crosses cards is refused by
26
+ name before any capture, and a refused capture keeps the direct replay for its bucket. The opt-in switch
27
+ (`NBX_REPLAY_GRAPH`) is gone; the output bytes are identical.
28
+ - The fused SwiGLU with split gate and up tensors runs as one element-wise launch at the element-wise class's certified
29
+ tile (its fixed 16 x 1024 tile spilled): the same bytes.
30
+ - On an Apple M4 Pro the command stream is committed every 16 dispatches (`backend/devices/apple/apple_m4_pro.yml`):
31
+ the GPU starts a step while the host is still encoding it.
11
32
 
12
33
  ### Fixed
13
- - A device the runtime refuses to describe is now an error, not a smaller machine: counting the devices answers 0
14
- only when the host has no GPU runtime or the runtime says it has no device; a driver that fails raises
15
- `DeviceQueryError` with its code. Choosing the device with the most free memory, and listing the devices, no
16
- longer skip one that fails silently. Reading a device's free or total memory no longer answers 0, -1 or None for a
17
- driver that refuses or a device the process does not see: it raises, so a broken card is never planned as an empty
18
- one.
34
+ - `served_certification` answers what a launch is served: a key certified under its generator's alias (the one hop
35
+ a launch's lookup takes) is found by a planner too, so a plan no longer counts a served key as missing.
36
+ - A peer question the GPU runtime fails is refused by name (`DeviceAllocator.can_access_peer`), never read as "no
37
+ peer"; the expandable memory range asks that one door which cards may reach its memory.
38
+ - `install_shadow(devices)` installs on a host whose GPU runtime is there without its driver (it sees no device);
39
+ a driver that loads and refuses still raises its `DeviceQueryError`.
40
+
41
+ ## [0.1.7] - 2026-11-13
42
+
43
+ ### Changed
44
+ - `nbxtensor.dtype.outputs.amp_fp32_output_dtype`: under float16 compute on a graph built wider than half (float32,
45
+ float64), an op computed in float32 inside stores float32 unless the record narrows it; the range contract (`safe`)
46
+ narrows half graphs only, as the bfloat16 rule already keeps a float32 model's float32 outputs.
47
+ - `nbxtensor.memory.kv_host_tier.host_tier_pages(budget_bytes, num_layers, k_page_bytes, v_page_bytes)` takes a
48
+ page's parts and sizes the page itself.
49
+ - A decode step that stabilizes its allocations serves them from one recycled `StepSlab` from its first stabilized run.
50
+
51
+ ### Added
52
+ - `nbxtensor.memory.weight_arenas()`: a weight set's memory, counted per device and in page-locked host memory,
53
+ allocated once and pinned once its host weights are written.
54
+ - `nbxtensor.io.safetensors.mapped_view`: a host tensor over a weight's bytes inside a read-only mapped file, no byte
55
+ copied.
56
+ - `nbxtensor.io.mapped_shards`: weight files mapped once each, the spans host views are built over, and the pages of a
57
+ view's span given back once its bytes are copied to the device (`ShardMaps`, `drop_pages`).
58
+ - `nbxtensor.memory.slot_store`, `end_store_request`, `release_store`: a compiled sequence's slot memory and its
59
+ request and unload lifecycle, with `store_held_bytes` and `store_contents` for diagnostics.
60
+ - `nbxtensor.memory.step_stabilizer.StepStabilizer`: a decoding sequence's step slab over its first runs (pass through,
61
+ measure, then carve from one recycled slab), ticked once per run.
62
+ - `nbxtensor.memory.host_spill.spill_bytes_per_position`: the host bytes one spilled KV position costs, for a server
63
+ that sizes its reach before any spill exists; `HostPages.nbytes()`: the host bytes its slices hold.
64
+ - `nbxtensor.inspection.label`: a tensor as a diagnostic line names it (shape, dtype, device and the object's id).
65
+ - `nbxtensor.interop.copy_to_address` and `host_bytes`: a tensor's values handed to another array library, into its
66
+ own device buffer or as host bytes in C order.
67
+
68
+ ## [0.1.6] - 2026-11-13
69
+
70
+ A device and memory API that names every answer of the GPU runtime, refusals included.
19
71
 
20
72
  ### Added
21
73
  - `nbxtensor.device`: the devices a process sees, the one it works on, the one the next kernel launch runs on, when
@@ -23,28 +75,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
75
  `mem_info`, `most_free`).
24
76
  - `nbxtensor.memory` answers the allocator's figures and the pool's controls by name (`memory_allocated`,
25
77
  `pool_cached_bytes`, `peak_device_bytes`, `empty_cache_pool`, the held-memory windows and others): an application
26
- no longer calls the allocator class for them.
78
+ calls these names, not the allocator class.
79
+
80
+ ### Changed
81
+ - Every device answer is exact or a named error. Counting the devices answers 0 only when the host has no GPU runtime
82
+ or the runtime reports no device; a driver error raises `DeviceQueryError` with its code. Choosing the device with
83
+ the most free memory and listing the devices consider every device. A device's free and total memory are its
84
+ measured figures, or `DeviceQueryError` when the driver refuses or the process does not see the device, so a plan is
85
+ always made from what the card really has.
27
86
 
28
87
  ## [0.1.5] - 2026-11-12
29
88
 
89
+ Triton models on Apple GPUs several times faster, and the NeuroBrix engine's remaining tensor work as library calls.
90
+
30
91
  ### Changed
31
92
  - Triton models on Apple GPUs run several times faster: nbxtensor now runs each compiled kernel on its own Metal stream,
32
93
  in order, and waits for the GPU only where a result is read, instead of after every kernel. Measured on an M4 Pro,
33
94
  outputs byte-identical: TinyLlama 1.1B, 256 tokens, 46.2 s -> 8.1 s; granite-3.1-1b-a400m (mixture of experts),
34
95
  128 tokens, 22.5 s -> 4.7 s.
35
- - A failed device assert in a kernel now raises at the next read of a result (or the next launch), not at its own
36
- launch.
96
+ - A device assert raised in a kernel surfaces at the next read of a result (or the next launch).
37
97
  - `NBX_SYNC_TIMING=1` on Apple now counts launches and the time spent issuing them, per kernel; there is no per-launch
38
98
  wait left to time.
39
99
  - The library's documentation lives in its own `docs/` (the API reference, the backends' contract, the device keys;
40
100
  `docs/design/` the allocator, cost and design notes; `docs/history/` the inventory and the migration record) and
41
101
  the three tensor reference pages (tensor cores through linear layouts, the certified-autotune method, recording a
42
102
  replay in a one-shot request) with the Triton CPU install page. The README links them in this repository.
43
- - The int4 MoE decode band's tiles, warps and stages no longer change with an environment variable (NBX_MOEV_BN, _BK,
44
- _WARPS, _BND, _WARPS_D, _STAGES, read by the engine until now): they are the defaults those variables had.
103
+ - The int4 MoE decode band's tiles, warps and stages are the defaults the environment variables NBX_MOEV_BN, _BK,
104
+ _WARPS, _BND, _WARPS_D and _STAGES gave them; the band reads no environment variable.
45
105
  - `memory.deferred_frees`: `DeferredFrees`, `Drain`, `sync_devices_of` — the tensors a run drops, released in batches
46
106
  at a bytes cliff, a count or (pool off) a free-memory reserve, every owning device synchronised first, and the
47
107
  allocator's out-of-memory reclaimer while the batch lives. The engine's two hot loops held this queue themselves.
108
+ - `NBXTensor.item()` on a bfloat16 element returns its value, read as the high half of a float32.
48
109
 
49
110
  ### Added
50
111
  - `memory.block_upload` (`open_copy_stream`, `upload_block`, `wait_for_upload`, `drop_upload_events`,
@@ -52,17 +113,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
52
113
  ordering-only readiness event the compute stream waits on (synchronous, with no event, given no stream), and the
53
114
  stream's and events' release. Moved from the NeuroBrix engine's zero3 strategy, which keeps which block moves, when,
54
115
  and how much stays resident.
55
- - `memory.shadow.install_shadow(devices)`, `shadow_launch`, `shadow_device`, `DevicesVisible`: the whole shadow device — the
56
- allocator's direct operations, streams, events and device queries answered without a driver, every launch skipped,
57
- a value read answering a host-born value or a benign one — refused while a device is visible. Moved from the
58
- NeuroBrix engine's census, which keeps which keys are recorded and its own seams; `from_numpy`'s stand-in now takes
59
- every argument `from_numpy` takes.
116
+ - `memory.shadow.install_shadow(devices)`, `shadow_launch`, `shadow_device`, `DevicesVisible`: the whole shadow device —
117
+ the allocator's direct operations, streams, events and device queries answered without a driver, every launch skipped,
118
+ a value read answering a host-born value or a benign one — refused while a device is visible. Moved from the NeuroBrix
119
+ engine's census, which keeps which keys are recorded and its own seams; `from_numpy`'s stand-in now takes every
120
+ argument `from_numpy` takes.
60
121
  - `nbxtensor.interop.from_dlpack(obj, device=None)`: take in another library's array through DLPack (a torch tensor,
61
122
  a numpy array): host memory is copied in the order it shows, strided views and bfloat16 included; this backend's own
62
123
  device memory is used in place (a strided one is first made contiguous on the device); another vendor's device
63
124
  memory is refused with its name.
64
125
  - `backend.triton_ext_driver.kernel_name(kernel)`: the name a Metal kernel was loaded under. The sync counter
65
- (`NBX_SYNC_TIMING=1`) now ranks Metal kernels by their own names; every launch was counted as `MetalKernel`.
126
+ (`NBX_SYNC_TIMING=1`) ranks Metal kernels by their own names.
66
127
  - `ops.moe_fused.fused_moe(gate_scores, hidden_states, gate_weights, up_weights, down_weights, top_k, num_experts,
67
128
  ...)`: a whole mixture-of-experts layer in one call — the routing (top-k and renormalisation, or a blended routing
68
129
  taken as given), host experts promoted for the call, the experts' pointer tables, and the path the call's shape and
@@ -107,11 +168,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
107
168
  stored bytes. Moved from the engine's float16-safety scan.
108
169
  - `DeviceAllocator.pool_cached_bytes`, `pool_enabled`, `pool_stats`, `blocks_in_use` and `Arena.bytes_on`: the
109
170
  allocator's and an arena's figures for an application's memory lines, forensic dumps and per-key states. The engine
110
- read the allocator's private tables (`_cuda_live_bytes`, `_POOL`, `_cuda_ptr_size`, `_pool_enabled`) in a dozen places.
171
+ read the allocator's private tables (`_cuda_live_bytes`, `_POOL`, `_cuda_ptr_size`, `_pool_enabled`) in a dozen
172
+ places.
111
173
  - `memory.oom_advice.held_memory_report(named, big, bucket)` and `Arena.census(large)`: after a refused allocation,
112
174
  who holds the device's memory (blocks in use by size, the tensors alive on the large ones named or ORPHAN with their
113
175
  referrers, autotuners still holding tensors) and what an arena holds by region. The engine's NBX_LIVE_DUMP_ON_OOM
114
- dump walked the allocator's tables and the garbage collector itself.
176
+ dump walked the allocator's tables and Python's gc module itself.
115
177
  - `memory.memory_pool.release_weights`, `join_weights` and `Arena.release`: a loaded weight set released after
116
178
  every device holding it synchronised (the library's bias and pointer-table caches dropped, the pool emptied), a
117
179
  second load's arenas joined to the first's, an arena cleared after its devices drain. The engine did each itself
@@ -137,9 +199,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
137
199
  held the same arithmetic six times (its Triton sampler, the encoder-decoder, dual-AR and TTS flows, and the
138
200
  compiled twins of the last two); every copy draws the same tokens through these.
139
201
 
140
- ### Fixed
141
- - `NBXTensor.item()` on a bfloat16 element returns its value (the high half of a float32); it returned 0.0.
142
-
143
202
  ## [0.1.4] - 2026-11-12
144
203
 
145
204
  ### Added
@@ -151,8 +210,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
151
210
  `FrozenPlan`, `install_seams`, `arm_launch_recorder`, the action tags. Moved from the NeuroBrix engine, which
152
211
  keeps only when a step is recorded, verified and replayed.
153
212
  - `frozen_plan.measure`, `room_for`, `slabs`, `record`, `retire`, `head_values`, `FrozenPlan.hand_out_outputs`,
154
- `STATE.open_measurement`, `values_sha256`, `carved_from`: a step's slab measured, made room for, allocated and recorded into, a rejected plan
155
- released — the mechanism of the replay's state machine, whose decisions stay the caller's.
213
+ `STATE.open_measurement`, `values_sha256`, `carved_from`: a step's slab measured, made room for, allocated and
214
+ recorded into, a rejected plan released — the mechanism of the replay's state machine, whose decisions stay the
215
+ caller's.
156
216
  - `DeviceAllocator.give_back_cached(dev)`: a card's cached free memory (the expandable range's chunks, the pool's
157
217
  blocks) back to the driver after its work ends.
158
218
  - `StepSlab.for_carved`, `DeviceAllocator.register_idle_reclaimer`: a decode step's slab sized in the library; an
@@ -170,8 +230,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
170
230
  call them instead of their own device-to-host copies.
171
231
  - `memory.memory_pool.break_aliases(tensors, freed)`: before the tensors at `freed` (keys of a list or a dict) are
172
232
  freed, every other entry viewing one of their allocations is replaced by its `contiguous()`. The engine's weight
173
- eviction called its own two copies of it. Known limit, kept from them: a view that is already contiguous is its own
174
- `contiguous()` and still reads the freed memory.
233
+ eviction called its own two copies of it. An entry that is already contiguous is its own `contiguous()` and stays a
234
+ view of that allocation, as in those copies.
175
235
  - `NBXTensor.saturated(dtype)`: a one-element float32 or float64 tensor holding a finite value beyond a half dtype's
176
236
  range comes back as a new tensor (same dtype, shape and card) holding the clamped value (`saturate_scalar`);
177
237
  anything else is itself. The engine's `where` wrap called its own copy, which uploaded to the current card.
@@ -201,18 +261,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
201
261
  carried this op, with its device-to-host and card-to-card copies; it now hands over the tables its placement built.
202
262
 
203
263
  ### Changed
204
- - The multi-device routed layer no longer reads the routing scores back to the host (a copy per layer nothing read).
264
+ - The multi-device routed layer keeps the routing scores on the device.
205
265
  - The slot store reads the card's clock at the size of the word it reads into, no byte count written in the code.
206
-
207
- ### Fixed
208
266
  - `autotune_cache.seed_late(tuner)`, called at a tuner's first launch: a kernel module imported after the process's
209
- first autotuned launch gets the machine's stored settings too (the certified directory first), once — they were
210
- seeded only into the modules already imported, so every new process measured the late ones again.
267
+ first autotuned launch gets the machine's stored settings too (the certified directory first), once, so every new
268
+ process reuses the settings measured for the modules it imports late.
211
269
  - **A driver error while a card's expandable pool asks which cards reach it is refused by name.** `memory.vmm.Vmm`
212
270
  builds the access grant of its chunks from the driver's answers (`cuDeviceGetCount`, `cuDeviceGet`,
213
- `cuDeviceCanAccessPeer`); a call that failed was read as "no peer" and the grant silently named the owning card
214
- alone, so a later card-to-card copy failed far from its cause. The failing call, its device and its status are now
215
- the error. A driver that answers "not a peer" is unchanged.
271
+ `cuDeviceCanAccessPeer`); an error in one of those calls raises at once, naming the call, its device and its status. A
272
+ driver that answers "not a peer" gives a grant naming the owning card, as before.
216
273
 
217
274
  ## [0.1.3] - 2026-11-11
218
275
 
@@ -223,20 +280,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
223
280
  - `PagedTritonKVCache.replay_host_mark()`: the cache's host length, for a replay that mirrors what its recorded run
224
281
  moved (the engine's replayed layer-streamed pieces).
225
282
 
226
- ### Fixed
227
- - **A tensor of a card's expandable pool can be handed to another card.** The pool grows by mapping chunks into one
228
- virtual range; a mapped chunk is readable only from the devices its access grant names, and the grant named the
229
- owning card alone. Any card-to-card copy of a tensor living in the range failed (`cudaMemcpy failed rc=1 (kind=3)`);
230
- only small tensors, held in ordinary blocks, crossed. Each chunk is now granted to its card and to every card that
231
- can reach it as a peer. One card: nothing changes.
232
- - **A routed layer whose experts sit on two cards is read at the right experts.** `memory.pointer_tables.build_ptr_tables`
233
- gave each card a table of its own experts alone, packed, while the grouped GEMM reads a table at the expert's number
234
- 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.
235
- A card's table now keeps the layer's length, each of its experts at its own number (0 where another card holds the
236
- expert); the launch's key, which carries that length, is the layer's again. A layer held by one card is unchanged.
237
-
238
283
  ### Changed
239
284
 
285
+ - **A tensor of a card's expandable pool can be handed to another card.** The pool grows by mapping chunks into one
286
+ virtual range; a mapped chunk is readable from the devices its access grant names, and each chunk is granted to its
287
+ 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
288
+ card. One card: nothing changes.
289
+ - **A routed layer whose experts sit on two cards is read at the right experts.**
290
+ `memory.pointer_tables.build_ptr_tables` gives each card a table of the layer's length, each of its experts at its own
291
+ number (0 where another card holds the expert), as the grouped GEMM reads a table at the expert's number in the layer;
292
+ the launch's key, which carries that length, is the layer's. A layer held by one card is unchanged.
240
293
  - **The library's messages speak of records and graphs.** Seven error texts reworded ("allocation record", "the
241
294
  container's graph"). No behaviour changes.
242
295
 
@@ -248,20 +301,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
248
301
  handed by the launcher; Level Zero no — its kernels load no address from memory). What a launch over a table of
249
302
  `data_ptr()` values stands on; a backend without a row is refused by name.
250
303
 
251
- ### Fixed
252
- - **Apple: an address read through a pinned table is answered from a wrap that covers it.** The Metal driver kept
253
- its pinned whole-allocation wraps under their base address alone, and a pool segment begins where its first block
254
- does. With that first block pinned, a view inside another block of the same segment — a slot of the Triton expert
255
- store's arena — resolved to the first block's short wrap and was handed an address past that buffer's end: another
256
- buffer's bytes, nothing raised. Found by a test that builds the copying expert store (the one with an arena)
257
- directly and runs it after nine earlier mixture-of-experts runs in one process: every row of its result was wrong.
258
- The engine does not build that store on Apple — a unified device's store binds its experts in place, where they
259
- lie in the container's files — and the published 0.6.6 was not seen affected through `neurobrix serve`: on the
260
- two plans the mixture-of-experts model that fits a 24 GB Mac takes (resident, and streamed layer by layer), no
261
- pinned address out of two million was answered past its wrap and every expert's address resolved to an
262
- allocation of its own. The expert-store plan itself was not run on Apple hardware (its models are 31 GB). The
263
- wraps are now kept under their extent (base and size), and `pinned_gpu_address` refuses by name an address beyond
264
- the wrap it resolved. CUDA and Level Zero are not concerned: they have no such wraps.
304
+ ### Changed
305
+ - **Apple: an address read through a pinned table is answered from a wrap that covers it.** The Metal driver keeps its
306
+ pinned whole-allocation wraps under their extent (base and size), so a view inside any block of a pool segment — a
307
+ slot of the Triton expert store's arena — resolves to the wrap that holds it, and `pinned_gpu_address` refuses by name
308
+ an address beyond the wrap it resolved. Proven by a test that builds the copying expert store (the one with an arena)
309
+ directly and runs it after nine earlier mixture-of-experts runs in one process. On Apple the engine builds a unified
310
+ device's store, which binds its experts in place, where they lie in the container's files; with the published 0.6.6
311
+ through `neurobrix serve`, on the two plans the mixture-of-experts model that fits a 24 GB Mac takes (resident, and
312
+ streamed layer by layer), all two million pinned addresses observed resolved inside their wrap, and every expert's
313
+ address to an allocation of its own. CUDA and Level Zero have no such wraps.
265
314
 
266
315
  ## [0.1.1] - 2026-11-11
267
316
 
@@ -286,38 +335,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
286
335
  merged in a fixed order. The host partial (`HostSpill.partial`) stays the decode step's one row: for a chunk's
287
336
  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
288
337
  each spilled chunk of a 79 931-token turn (2026-11-10).
289
- - **A Level Zero failure is a typed refusal**: `backend.level_zero.IntelDeviceError` (a RuntimeError) carries the
290
- call, the `ze_result_t` by name and the module's build log, raised by the runtime, the launch driver and a SPIR-V
291
- module that does not build. The Intel backend is experimental — not yet validated on hardware by the NeuroBrix lab —
292
- and an application decides on this type what a refusal means.
338
+ - **A Level Zero refusal is typed**: `backend.level_zero.IntelDeviceError` (a RuntimeError) carries the call, the
339
+ `ze_result_t` by name and the module's build log, raised by the runtime, the launch driver and a SPIR-V module that
340
+ does not build. The Intel backend is experimental — not yet validated on hardware by the NeuroBrix lab — and an
341
+ application decides on this type what a refusal means.
293
342
  - **The Intel launch driver goes through its runtime's contract** (no behaviour change; the backend stays
294
343
  experimental, not yet validated on hardware): `backend/level_zero.py` is the only module that knows a Level Zero
295
344
  struct, constant or entry point of a module's life — `LevelZeroRuntime.build_module` (answers `ModuleBuilt`: the
296
- result, the module, the build log; a failure is answered, the retry is the driver's decision), `create_kernel`,
345
+ result, the module, the build log; an error is answered, the retry is the driver's decision), `create_kernel`,
297
346
  `kernel_properties`, `destroy_kernel`, `destroy_module`, `set_argument`, `set_group_size`, `append_launch`,
298
347
  `current_device`. `backend/level_zero_driver.py` imported 14 private names and issued 12 raw `ze*` calls; it now
299
348
  imports none and issues none, and holds the one decision that is a driver's (the 256-register rebuild, its two
300
349
  constants beside it). `backend/launcher.py` names publicly what a driver in another file uses: `ModuleDriver`,
301
350
  `ctypes_slot`. Proven without a card: the exact ze calls of ten load and launch paths, recorded before the move,
302
351
  reproduced by it.
303
- - **The library's uploads name their device in the call** (the spilled prefill chunk's blocks, masks and merged
304
- result, the paged decode's host partial, the MoE residency probe): they were written
305
- `NBXTensor.from_numpy(x).to(device=...)`; `from_numpy` lands on the CURRENT device and `.to("cuda:N")` moves
306
- nothing, so that idiom was right only when the call before it had left the wanted device current. No wrong placement
307
- was observed; on a cache whose layers live on two cards it was one reordering away.
352
+ - **The library's uploads name their device in the call** (the spilled prefill chunk's blocks, masks and merged result,
353
+ the paged decode's host partial, the MoE residency probe): `NBXTensor.from_numpy(x, device=...)` places each one on
354
+ the device it names, whichever device is current, so a cache whose layers live on two cards gets each upload on its
355
+ own card.
308
356
  - `NBXTensor.to` reads its positional argument in a named function (`_positional_target`); the method is 40 code
309
357
  lines (49), same answers.
310
-
311
- ### Fixed
312
- - **Reading a device's memory leaves no context on another device**: `DeviceAllocator.free_memory_mb`,
313
- `mem_get_info`, `device_total_bytes` and the other probes "restored the previous device" after reading; in a process
314
- that had selected none, that selected device 0 and made the runtime create a context there. A previous device is
315
- restored only when the process had selected it (`DeviceAllocator.restore_device`).
358
+ - **Reading a device's memory leaves no context on another device**: `DeviceAllocator.free_memory_mb`, `mem_get_info`,
359
+ `device_total_bytes` and the other probes restore a previous device after reading only when the process had selected
360
+ one (`DeviceAllocator.restore_device`), so a process that selected none creates no context on device 0.
316
361
 
317
362
  ## [0.1.0] - 2026-11-10
318
363
  ### Changed
319
- - **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.
320
- - **The authors' contact address is contact@neurobrix.org** (the package metadata), the project's address being neurobrix.org.
364
+ - **Contributions are made under the NeuroBrix Contributor Assignment Agreement** (docs/legal/ of the neurobrix
365
+ repository, an individual and an entity version): signed once by a comment on the first pull request, for every
366
+ NeuroBrix project; the `NeuroBrix CLA` check on every pull request says who has yet to sign. CONTRIBUTING.md explains
367
+ it.
368
+ - **The authors' contact address is contact@neurobrix.org** (the package metadata), the project's address being
369
+ neurobrix.org.
321
370
 
322
371
  ### Added
323
372
  - **A decoding sequence may outgrow the card's KV pages**: past `card_pages`, `PagedTritonKVCache` moves its oldest
@@ -336,10 +385,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
336
385
  -inf before the sampler; the mask on the logits' own device, the element-wise launch's certified tile; a mask of
337
386
  another shape or allowing no token refused by name. Torch-free.
338
387
  - **A KV cache host tier**: `memory.kv_host_tier` (the prefix index of whole pages, the host page pool, the pages a
339
- sequence holds), `memory.kv_host_pages` (host pages laid out [page][layer][K, V], pinned or pageable; per-layer copies,
340
- and `offload_gathered` / `restore_scattered`: every layer's page gathered on the device by one kernel per K and V, then
341
- 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
342
- cache's `tier_*` protocol (layout, length, offload, restore in place, resume).
388
+ sequence holds), `memory.kv_host_pages` (host pages laid out [page][layer][K, V], pinned or pageable; per-layer
389
+ copies, and `offload_gathered` / `restore_scattered`: every layer's page gathered on the device by one kernel per K
390
+ 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
391
+ the paged cache's `tier_*` protocol (layout, length, offload, restore in place, resume).
343
392
  - **`nbxtensor.ops.embedding_pool`**: an embedding model's pooling on the host (`pool_hidden`: mean over the kept
344
393
  positions, cls, or each sequence's last kept position whatever the padding side; `l2_normalize`), numpy and
345
394
  torch-free; refusals by name.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nbxtensor
3
- Version: 0.1.6
3
+ Version: 0.1.8
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
@@ -138,10 +138,13 @@ def pool_fit_slack(vendor, architecture) -> float # pool.fit_slack
138
138
  # the allocator's figures and the pool's controls, same arguments as `DeviceAllocator`'s (2026-11-13):
139
139
  def memory_allocated(device_idx=None) -> int # live bytes handed out (None: every device)
140
140
  def pool_cached_bytes(device_idx=None) -> int # bytes parked in the pool's free blocks
141
+ def pool_stats() -> dict # a copy of the pool's counters (hits, miss, flushes, evictions)
141
142
  def blocks_in_use(device_idx=None) -> dict # {address: bytes} of the blocks tensors hold
142
143
  def device_free_bytes(device_idx=None) -> int # the driver's free bytes (None: current device)
143
144
  def device_total_bytes(device_idx=None) -> int # the device's total memory (refused: DeviceQueryError)
144
145
  def free_memory_mb(index: int) -> float # the driver's free memory in MB (refused: DeviceQueryError)
146
+ def peak_memory_allocated(device_idx=None) -> int # highest live bytes on a device since its last reset (None: summed)
147
+ def reset_peak_memory(device_idx=None) -> None # restart that peak from the live bytes (None: every device)
145
148
  def peak_device_bytes() -> Optional[int] # the most one device held at once since the start
146
149
  def host_pinned_allocated() -> int # live pinned host bytes
147
150
  def empty_cache_pool() -> int # the pool's parked blocks given back; bytes freed
@@ -150,6 +153,14 @@ def open_window(device_idx: int) -> int # start watching
150
153
  def window_start(token: int) -> Optional[int] # what was held when the window opened
151
154
  def close_window(device_idx: int, token: int) -> Optional[int] # the most held since it opened; the window closed
152
155
  def register_idle_reclaimer(reclaim) -> None # `reclaim(dev) -> bytes` when a malloc is refused
156
+ def weight_arenas() -> WeightArenas # a weight set's memory to count, allocate and pin
157
+ # a compiled sequence's slot memory and its lifecycle (`memory.slot_stores`, 2026-11-13):
158
+ SlotStore # the slot store ([weights | inputs | intermediates])
159
+ def slot_store(size, num_weights=0, num_inputs=0) -> SlotStore # the store a sequence takes at compile
160
+ def end_store_request(store) -> None # a request ended: inputs and intermediates dropped
161
+ def release_store(store) -> None # an unload: devices synchronised, then every slot dropped
162
+ def store_held_bytes(store, device_idx) -> tuple # (weights, the rest) bytes it holds on a device
163
+ def store_contents(store, large: int) -> dict # what it holds by region, its large intermediates
153
164
  ```
154
165
 
155
166
  `nbxtensor.memory.allocator`
@@ -199,8 +210,9 @@ DEVICE, HOST
199
210
  class HostPagePool
200
211
  # `capacity` host pages, each one page index of every layer's K and V contiguous: take, give, free_pages; grow(n),
201
212
  # shrink(n) (the last n pages, when all are free) as the host memory grows or frees a slice
202
- def host_tier_pages(budget_bytes, page_bytes_all_layers) -> int
203
- # the whole host pages a budget holds; 0 (the tier off) below one page
213
+ def host_tier_pages(budget_bytes, num_layers, k_page_bytes, v_page_bytes) -> int
214
+ # the whole host pages a budget holds, a page being one page index of every layer's K and V; 0 (the tier off)
215
+ # below one page
204
216
  def sequence_pages(tables, batch) -> List[int]
205
217
  # a serving cache's one sequence's device pages in position order (refused for a batch > 1)
206
218
  class PrefixIndex
@@ -213,7 +225,7 @@ class PrefixIndex
213
225
  ```python
214
226
  class HostPages
215
227
  # host pages, each [layer][K page, V page] contiguous, allocated in slices of `slice_pages` up to `max_pages` (the
216
- # budget a ceiling): grow, shrink, capacity, contiguous(a, b) (one slice), page_view, address(host_page, layer,
228
+ # budget a ceiling): grow, shrink, capacity, nbytes() (the bytes its slices hold), contiguous(a, b) (one slice), page_view, address(host_page, layer,
217
229
  # which), close; fixed(capacity, ...) one slice at once; page-locked when asked, pageable otherwise (unified memory)
218
230
  def offload(k_pools, v_pools, pages, host, host_pages) -> None
219
231
  # each device page (every layer's K and V, `pool[page]`) copied to its host page, after the device's queued work
@@ -250,6 +262,8 @@ def one_head_per_group(t, kv_heads, group)
250
262
  `nbxtensor.memory.host_spill` — the positions a decoding sequence spilled from the card's pages to host memory
251
263
 
252
264
  ```python
265
+ def spill_bytes_per_position(num_layers, kv_heads, k_dim, v_dim) -> int
266
+ # host bytes one spilled position costs across every layer (float32 K and V); a server sizes its reach by it
253
267
  class HostSpill(num_layers, kv_heads, k_dim, v_dim, budget_bytes)
254
268
  # per layer K / V float32 [H_kv, positions, D], written once per spilled page (append(layer, k_pages, v_pages)),
255
269
  # grown by doubling up to the budget (refused by name past it: reach(), position_bytes()); partial(layer, q,
@@ -334,6 +348,9 @@ def join_weights(held: dict, loaded: dict) -> dict
334
348
  # `loaded` with its arenas merged into `held`'s (a second arena on a device under a distinct key), to update `held`
335
349
  def break_aliases(tensors, freed) -> int
336
350
  # 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.
351
+ class WeightArenas
352
+ # One weight set's memory: reserve(device, nbytes) / reserve_host(nbytes) at the arenas' alignment, allocate() (one
353
+ # ComponentArena per device, one HostPinnedArena), pin_host() once the host weights are written; .devices, .host.
337
354
  class ComponentArena
338
355
  # Single contiguous GPU memory block for one component's weights.
339
356
  class HostPinnedArena
@@ -500,6 +517,16 @@ class SlabInterceptor(AllocatorInterceptor)
500
517
  # The allocator's interceptor for slab-served runs.
501
518
  ```
502
519
 
520
+ `nbxtensor.memory.step_stabilizer` — a decoding sequence's step slab, stabilized over its first runs
521
+
522
+ ```python
523
+ class StepStabilizer(state, label)
524
+ # one per sequence on the slab interceptor `state`; tick(dev_idx) at each run's start: runs 1-2 pass through,
525
+ # run 3 measures the bytes the step carves (banked at the next tick of any sequence), runs 4+ carve from its
526
+ # recycled StepSlab (StepSlab.for_carved), put in force as state.stab_slab; runs, total, slab
527
+ SAY_AT_RUN # the run whose carve sequence is compared with the previous one, once, at debug level
528
+ ```
529
+
503
530
  ### `nbxtensor.ops.tiling_sizes` — the sizes the tiled and chunked paths cut by (the tiling table in force: `ops.tiling_policy`)
504
531
 
505
532
  Every figure is read from the tiling table in force (`set_tiling` / `tiling_table`), never written in the code.
@@ -627,6 +654,8 @@ def digest(t, algorithm: str, nbytes: int | None = None, **params) -> str
627
654
  # hashlib.new(algorithm, bytes, **params).hexdigest() over the elements in row-major order, the first nbytes
628
655
  def values_at(t, positions) -> list[float]
629
656
  # the values at row-major flat positions, each element read alone after a device synchronisation
657
+ def label(t) -> str
658
+ # shape, dtype, device and the object's id, for a diagnostic line ("-" for None): never the tensor's address
630
659
  ```
631
660
 
632
661
  ### `nbxtensor.ops.fused_upsample_conv` — a convolution streamed in bands of output rows
@@ -2825,6 +2854,10 @@ def verify_driver_contract(driver, jit_fn, signature, constexprs, make_buffer, r
2825
2854
  def from_dlpack(obj, device=None) -> NBXTensor
2826
2855
  # The elements `obj` exports through DLPack: host memory copied in the order it shows (strides, bfloat16), this
2827
2856
  # backend's own device memory wrapped in place, another vendor's device memory refused by name.
2857
+ def copy_to_address(tensor, address: int) -> None
2858
+ # The values, in C order, copied into a buffer another library owns on the same device heap (`interop.handoff`).
2859
+ def host_bytes(tensor) -> bytearray
2860
+ # The values, in C order, as host bytes for another library to type itself (`interop.handoff`).
2828
2861
 
2829
2862
  ### `nbxtensor.backend.metal_dispatch` — Triton's compiled Metal kernels, run on nbxtensor's own stream
2830
2863
 
@@ -2883,6 +2916,34 @@ def copies(nbytes=1 << 30, reps=10) -> dict
2883
2916
 
2884
2917
  The operands come from `numpy.random.default_rng(0)`: two machines time the same values.
2885
2918
 
2919
+ ### `nbxtensor.profile` — where a real run's GPU time goes, kernel by kernel
2920
+
2921
+ ```python
2922
+ def ranked_call(fn, path=None, out=print) # fn() inside a session, its table to `out` (and `path` as JSON)
2923
+ def kernel_times() -> ContextManager[KernelTimes]
2924
+ # a profiling session around the caller's work (Metal; another backend refused by name; one per process): every
2925
+ # launch and every copy runs alone and is timed on the GPU at its own boundaries — the table RANKS kernels, it is
2926
+ # not the production step's time (the batching changes)
2927
+ class KernelTimes
2928
+ # rows: {kernel name: [launches, total ms, max ms]} ('blit' for the copies); wall_s, gpu_ms, unsampled;
2929
+ # ranked() -> [(name, launches, total ms, max ms)] heaviest first; format(top=25) -> the printed table; as_dict();
2930
+ # report(path=None, top=25) -> the table, and the whole of it written to `path` as JSON
2931
+ ```
2932
+
2933
+ `nbxtensor.backend.metal_profile` — the Metal mechanism behind it
2934
+
2935
+ ```python
2936
+ SESSION # the open session or None: the one flag the stream reads
2937
+ POOL_ASK # the sample buffers a first session asks the device for (it keeps what is granted)
2938
+ class Session(device, per_buffer)
2939
+ # open_encoder(command_buffer, kind, index, label): a launch's own encoder, sampled at 2 x index and 2 x index + 1;
2940
+ # retired(command_buffer): its samples read into the table; close() -> KernelTimes; granted_pool()
2941
+ def open_session(device, per_buffer, flush) -> KernelTimes
2942
+ def close_session(flush) -> KernelTimes
2943
+ ```
2944
+
2945
+ `MetalRuntime.open_kernel_times()`, `close_kernel_times()`; `encoder_for(stream, kind, label=None)` names the launch.
2946
+
2886
2947
  ### `nbxtensor.io.read_rate` — how fast the machine reads its weight files, by parallel reads
2887
2948
 
2888
2949
  ```python
@@ -2911,9 +2972,23 @@ The cache is evicted before each trial and bypassed during it (macOS `msync(MS_I
2911
2972
  `posix_fadvise(DONTNEED)`): the rate is the storage path's, never the page cache's. A measure whose first and last
2912
2973
  one-worker trials disagree is not steady and is not to be recorded.
2913
2974
 
2975
+ ### `nbxtensor.io.mapped_shards` — weight files mapped once, the views' spans in them, their pages given back
2976
+
2977
+ ```python
2978
+ class ShardMaps(access=mmap.ACCESS_COPY)
2979
+ # map(shard) -> the shard's one mapping (ACCESS_COPY: views a framework may wrap; ACCESS_READ: pages the GPU
2980
+ # reads in place); note(view, shard, offset, nbytes): the span a host view is over; give_back(view) -> (start,
2981
+ # length): that span's pages given back after a copy, found by the view's address (refused by name for a
2982
+ # tensor over no noted span); len()
2983
+ def drop_pages(mapping, offset, nbytes) -> (start, length)
2984
+ # the page-aligned range given back to the kernel (madvise MADV_DONTNEED); refused by name where mmap cannot advise
2985
+ ```
2986
+
2914
2987
  ### `nbxtensor.io.safetensors` — the host conversions of a loaded weight, split across the loader's workers
2915
2988
 
2916
2989
  ```python
2990
+ def mapped_view(mapping, offset: int, shape: tuple, sf_dtype: str) -> NBXTensor
2991
+ # A host tensor over one weight's stored bytes inside a read-only mapped shard, no byte copied, the mapping its base.
2917
2992
  def to_bf16_bits(arr: np.ndarray, io) -> np.ndarray # float32 / float16 -> bfloat16 patterns (uint16), the
2918
2993
  # bytes of one f32_to_bf16_bits call, one span per worker
2919
2994
  def read_bytes(fd: int, offset: int, nbytes: int, io) -> np.ndarray
@@ -3076,9 +3151,25 @@ def synchronize() -> None # the current device finished, through
3076
3151
  def drain(index: Optional[int] = None) -> None # every stream of a device drained; the current device restored
3077
3152
  def mem_info(index: Optional[int] = None) -> Tuple[int, int] # (free, total) bytes, as the runtime reports them
3078
3153
  def most_free() -> int # the device with the most free memory; the current device restored
3154
+ def target_name() -> str # what the process compiles for, `<backend>-<arch>` (cuda-70); a driver's refusal raised
3079
3155
  class DeviceQueryError(RuntimeError) # a device question the runtime refused: the call, the device, its code
3080
3156
  NoGpuRuntime # (backend.runtime) no GPU runtime on this host: the one refusal meaning no device
3081
- ```
3157
+ def install_shadow(devices: int) -> None # the process becomes a shadow of `devices` devices, once (memory.shadow)
3158
+ DevicesVisible # (memory.shadow) install_shadow refused: a device is in sight
3159
+ def declare_target(maker: str, capability: str) -> None # the compile target bound with no driver asked
3160
+ class TargetNotDeclarable(ValueError) # declare_target refused: a maker other than nvidia / amd, or no capability number
3161
+ ```
3162
+
3163
+ **A device with no driver asked (2026-11-13).** Two doors serve an application that derives what a run would launch
3164
+ without running it. `install_shadow(devices)` turns the process into a shadow: allocations hand out addresses that
3165
+ address nothing, no kernel launches, a value read answers a benign value (a value born on the host answers its own).
3166
+ After it, `count()` answers `devices` and `current()` answers the device `select` named last. It is refused with
3167
+ `DevicesVisible` while the runtime sees a device, and with `ValueError` for a count below one.
3168
+ `declare_target(maker, capability)` binds the compile target a hardware description states, so that
3169
+ `backend.launcher.target()` and the device description answer as on that device: `"nvidia"` is cuda with 32
3170
+ threads a warp, `"amd"` is hip with 64, and `"7.0"` becomes 70. It is refused with `TargetNotDeclarable` for any other
3171
+ maker, since a device whose architecture is a name keeps its driver's answer, and for a capability that is not
3172
+ "major" or "major.minor".
3082
3173
 
3083
3174
  No device is a fact, a refusal is an error: `count()` is 0 only on a host with no GPU runtime
3084
3175
  (`nbxtensor.backend.runtime.NoGpuRuntime`) or when the runtime answers its own "no device" code (the backend table's
@@ -3519,6 +3610,7 @@ def reset_runtime_for_tests() -> None # Drop the cached runtime — and everyt
3519
3610
  class CapturedPlan # One bucket's action list as an instantiated CUDA graph.
3520
3611
  class GraphReplayError #
3521
3612
  class SegmentedPlan # A multi-card plan's action list as one CUDA graph per stretch of actions on one card (S3, 2026-10-28).
3613
+ def capable() -> bool # The backend offers CUDA graphs (the driver's cuGraph API this module binds): CUDA today. HIP, Metal and Level
3522
3614
  ```
3523
3615
 
3524
3616
  ### `nbxtensor.backend.runtime`
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nbxtensor"
7
- version = "0.1.6"
7
+ version = "0.1.8"
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.6"
16
+ __version__ = "0.1.8"
17
17
  __all__: list = []
@@ -156,10 +156,14 @@ dispatch:
156
156
  # NeuroBrix stream is one command buffer with one serialised compute
157
157
  # encoder; this bounds how long the host waits for a result and how much
158
158
  # work a single failure takes down with it. It is not a correctness knob —
159
- # the encoder's own barriers keep the order at any value. A decode step of
160
- # TinyLlama encodes ~1,350 dispatches, so 512 puts it in three buffers
161
- # where one per launch put it in 1,505.
162
- max_dispatches_per_command_buffer: 512
159
+ # the encoder's own barriers keep the order at any value. It also sets how
160
+ # soon the GPU starts on a step the host is still encoding: the GPU runs
161
+ # nothing of a buffer before its commit. MEASURED on THIS chip 2026-11-13
162
+ # (TinyLlama, 128 tokens, warm; a decode step ~660 dispatches): 512 3.90 s,
163
+ # 128 3.68, 64 3.61, 32 3.56, 16 3.51, 8 3.48, 4 3.51, 2 3.56 — the same
164
+ # output bytes at every value. 16: within noise of the best, half the
165
+ # buffers of 8.
166
+ max_dispatches_per_command_buffer: 16
163
167
 
164
168
  autotune:
165
169
  buckets: