nbxtensor 0.0.8__tar.gz → 0.1.0__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 (375) hide show
  1. nbxtensor-0.1.0/.github/workflows/cla.yml +29 -0
  2. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/CHANGELOG.md +48 -1
  3. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/CONTRIBUTING.md +12 -0
  4. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/NOTICE +1 -0
  5. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/PKG-INFO +5 -4
  6. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/README.md +2 -1
  7. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/pyproject.toml +3 -3
  8. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/__init__.py +1 -1
  9. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/__main__.py +7 -0
  10. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/cpu/blas.py +28 -3
  11. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/install_metal.py +37 -8
  12. nbxtensor-0.1.0/src/nbxtensor/memory/host_spill.py +90 -0
  13. nbxtensor-0.1.0/src/nbxtensor/memory/kv_host_pages.py +317 -0
  14. nbxtensor-0.1.0/src/nbxtensor/memory/kv_host_tier.py +222 -0
  15. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/kv_session.py +5 -0
  16. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/paged_kv.py +159 -13
  17. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/attention_wrappers.py +67 -22
  18. nbxtensor-0.1.0/src/nbxtensor/ops/embedding_pool.py +44 -0
  19. nbxtensor-0.1.0/src/nbxtensor/ops/host_decode_partial.py +114 -0
  20. nbxtensor-0.1.0/src/nbxtensor/ops/token_bitmask.py +64 -0
  21. nbxtensor-0.1.0/tests/test_a_kv_page_goes_to_the_host_and_back_bit_exact.py +82 -0
  22. nbxtensor-0.1.0/tests/test_a_sequence_decodes_past_the_card_s_pages.py +122 -0
  23. nbxtensor-0.1.0/tests/test_a_setting_not_served_says_why.py +32 -0
  24. nbxtensor-0.1.0/tests/test_a_small_tensor_never_pins_a_large_block.py +52 -0
  25. nbxtensor-0.1.0/tests/test_a_spilled_sequence_attends_as_one.py +115 -0
  26. nbxtensor-0.1.0/tests/test_a_sweep_refused_everywhere_says_so.py +35 -0
  27. nbxtensor-0.1.0/tests/test_a_table_pin_holder_holds_one_pin_per_set_of_wraps.py +36 -0
  28. nbxtensor-0.1.0/tests/test_a_token_bitmask_leaves_only_the_allowed_logits.py +85 -0
  29. nbxtensor-0.1.0/tests/test_a_triton_kernel_compiles_for_amd_and_launches_through_hip.py +115 -0
  30. nbxtensor-0.1.0/tests/test_allocator_interceptor.py +159 -0
  31. nbxtensor-0.1.0/tests/test_an_attention_returns_its_rows_log_sum_exp.py +91 -0
  32. nbxtensor-0.1.0/tests/test_an_embedding_is_pooled_as_its_model_declares.py +41 -0
  33. nbxtensor-0.1.0/tests/test_array_api_promotion.py +70 -0
  34. nbxtensor-0.1.0/tests/test_blas_on_macos_14_runs_without_thread_control.py +76 -0
  35. nbxtensor-0.1.0/tests/test_cpu_pool.py +85 -0
  36. nbxtensor-0.1.0/tests/test_device_facts.py +55 -0
  37. nbxtensor-0.1.0/tests/test_device_files.py +25 -0
  38. nbxtensor-0.1.0/tests/test_device_memory.py +63 -0
  39. nbxtensor-0.1.0/tests/test_dtype_convert.py +58 -0
  40. nbxtensor-0.1.0/tests/test_dtype_outputs.py +53 -0
  41. nbxtensor-0.1.0/tests/test_dtype_promotion.py +60 -0
  42. nbxtensor-0.1.0/tests/test_gathered_kv_pages_are_the_per_layer_copies_bits.py +118 -0
  43. nbxtensor-0.1.0/tests/test_host.py +50 -0
  44. nbxtensor-0.1.0/tests/test_install_metal_fetches_only_what_it_names.py +186 -0
  45. nbxtensor-0.1.0/tests/test_io_bf16_split.py +20 -0
  46. nbxtensor-0.1.0/tests/test_io_read_rate.py +85 -0
  47. nbxtensor-0.1.0/tests/test_it_installs_on_a_mac.py +23 -0
  48. nbxtensor-0.1.0/tests/test_level_zero_states_an_integrated_gpu.py +126 -0
  49. nbxtensor-0.1.0/tests/test_nbx_dtype.py +37 -0
  50. nbxtensor-0.1.0/tests/test_no_environment_switch_changes_a_kernel.py +24 -0
  51. nbxtensor-0.1.0/tests/test_ops_cost.py +63 -0
  52. nbxtensor-0.1.0/tests/test_policy.py +55 -0
  53. nbxtensor-0.1.0/tests/test_readme.py +39 -0
  54. nbxtensor-0.1.0/tests/test_shape.py +56 -0
  55. nbxtensor-0.1.0/tests/test_the_backend_is_the_card_on_the_machine.py +19 -0
  56. nbxtensor-0.1.0/tests/test_the_compiler_key_is_prewarmed.py +23 -0
  57. nbxtensor-0.1.0/tests/test_the_hip_driver_keeps_the_launch_contract.py +174 -0
  58. nbxtensor-0.1.0/tests/test_the_kv_host_tier_keeps_whole_pages_by_prefix.py +83 -0
  59. nbxtensor-0.1.0/tests/test_the_launcher_refuses_a_backend_it_has_no_driver_for.py +42 -0
  60. nbxtensor-0.1.0/tests/test_the_level_zero_backend_keeps_its_contracts.py +403 -0
  61. nbxtensor-0.1.0/tests/test_the_malloc_trace_names_the_wrapper.py +25 -0
  62. nbxtensor-0.1.0/tests/test_the_metal_dispatch_facts_are_declared_or_refused.py +31 -0
  63. nbxtensor-0.1.0/tests/test_third_party_notices.py +81 -0
  64. nbxtensor-0.1.0/tests/test_version.py +23 -0
  65. nbxtensor-0.0.8/.gitignore +0 -309
  66. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
  67. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/LICENSE +0 -0
  68. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/THIRD_PARTY_NOTICES.md +0 -0
  69. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/assets/logo.png +0 -0
  70. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/__init__.py +0 -0
  71. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/capabilities.py +0 -0
  72. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/cpu/__init__.py +0 -0
  73. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/cpu/pool.py +0 -0
  74. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/cpu_backend.py +0 -0
  75. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/device_facts.py +0 -0
  76. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/device_files.py +0 -0
  77. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/device_names.py +0 -0
  78. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
  79. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
  80. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
  81. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
  82. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
  83. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
  84. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
  85. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
  86. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
  87. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
  88. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
  89. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
  90. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
  91. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
  92. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
  93. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
  94. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
  95. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
  96. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
  97. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
  98. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
  99. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
  100. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
  101. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
  102. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
  103. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
  104. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
  105. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -0
  106. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -0
  107. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
  108. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
  109. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
  110. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/intel/mtl.yml +0 -0
  111. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -0
  112. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -0
  113. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
  114. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
  115. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
  116. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
  117. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/faults.py +0 -0
  118. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/host_memory.py +0 -0
  119. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/install_help.py +0 -0
  120. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/install_steps.yml +0 -0
  121. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/launcher.py +0 -0
  122. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/launcher_contract.py +0 -0
  123. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/level_zero.py +0 -0
  124. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/level_zero_driver.py +0 -0
  125. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/libnames.py +0 -0
  126. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/metal_backend.py +0 -0
  127. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/metal_device.py +0 -0
  128. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/process_memory.py +0 -0
  129. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/replay_graph.py +0 -0
  130. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/runtime.py +0 -0
  131. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/backend/triton_ext_driver.py +0 -0
  132. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/dtype/__init__.py +0 -0
  133. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/dtype/convert.py +0 -0
  134. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/dtype/dtypes.yml +0 -0
  135. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/dtype/itemsize.py +0 -0
  136. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
  137. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/dtype/operands.py +0 -0
  138. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/dtype/outputs.py +0 -0
  139. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/dtype/policy.py +0 -0
  140. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/dtype/policy.yml +0 -0
  141. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/dtype/promotion.py +0 -0
  142. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/host.py +0 -0
  143. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/io/__init__.py +0 -0
  144. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/io/read_rate.py +0 -0
  145. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/io/safetensors.py +0 -0
  146. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/__init__.py +0 -0
  147. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/allocator.py +0 -0
  148. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/arena.py +0 -0
  149. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/device_memory.py +0 -0
  150. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/device_transfer.py +0 -0
  151. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/layout.py +0 -0
  152. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/memory_pool.py +0 -0
  153. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/metal.py +0 -0
  154. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/oom_advice.py +0 -0
  155. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/pages.py +0 -0
  156. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/pointer_tables.py +0 -0
  157. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/pool.py +0 -0
  158. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/shadow.py +0 -0
  159. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/slab.py +0 -0
  160. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/trace_replay.py +0 -0
  161. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
  162. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/memory/vmm.py +0 -0
  163. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/__init__.py +0 -0
  164. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/_autotune_policy.py +0 -0
  165. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/_common.py +0 -0
  166. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/_configs.py +0 -0
  167. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/_cost.py +0 -0
  168. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/abs.py +0 -0
  169. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
  170. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/add.py +0 -0
  171. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/addcdiv.py +0 -0
  172. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/addcmul.py +0 -0
  173. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/addmv_op.py +0 -0
  174. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/addr.py +0 -0
  175. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/all_reduce.py +0 -0
  176. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/amax.py +0 -0
  177. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/any_reduce.py +0 -0
  178. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/arange_op.py +0 -0
  179. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/argmax.py +0 -0
  180. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/argmin.py +0 -0
  181. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/atan2.py +0 -0
  182. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/autotune_bucket.py +0 -0
  183. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/autotune_cache.py +0 -0
  184. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/autotune_certified.py +0 -0
  185. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/autotune_refusals.py +0 -0
  186. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/autotune_settings.py +0 -0
  187. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/avg_pool2d.py +0 -0
  188. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/baddbmm_op.py +0 -0
  189. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/batch_norm.py +0 -0
  190. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/binary_strided.py +0 -0
  191. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/bitwise_and.py +0 -0
  192. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
  193. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/bitwise_not.py +0 -0
  194. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/bitwise_or.py +0 -0
  195. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
  196. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/bucketize.py +0 -0
  197. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/cat_op.py +0 -0
  198. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/celu.py +0 -0
  199. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/certified_index.py +0 -0
  200. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/clamp.py +0 -0
  201. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/clamp_min.py +0 -0
  202. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/conv2d.py +0 -0
  203. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
  204. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
  205. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
  206. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/conv_wrappers.py +0 -0
  207. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/copy.py +0 -0
  208. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/copy_op.py +0 -0
  209. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/cos.py +0 -0
  210. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/count_nonzero.py +0 -0
  211. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/cross_entropy.py +0 -0
  212. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/cummax.py +0 -0
  213. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/cummin.py +0 -0
  214. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/cumsum.py +0 -0
  215. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
  216. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
  217. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/dequant_gemv.py +0 -0
  218. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/dft.py +0 -0
  219. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/dispatch.py +0 -0
  220. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/div.py +0 -0
  221. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/dot_op.py +0 -0
  222. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/dropout.py +0 -0
  223. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/dtype_convert.py +0 -0
  224. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/elementwise_launch.py +0 -0
  225. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
  226. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/elu.py +0 -0
  227. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/embedding.py +0 -0
  228. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/eq.py +0 -0
  229. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/erf.py +0 -0
  230. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/exp.py +0 -0
  231. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/exp2.py +0 -0
  232. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/fft_op.py +0 -0
  233. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/fill_op.py +0 -0
  234. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/flash_attention.py +0 -0
  235. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
  236. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/flash_decode.py +0 -0
  237. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/flip_op.py +0 -0
  238. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/floor.py +0 -0
  239. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/full_op.py +0 -0
  240. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/fused_moe.py +0 -0
  241. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
  242. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
  243. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/gather_op.py +0 -0
  244. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/ge.py +0 -0
  245. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/gelu.py +0 -0
  246. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/gemv_vec.py +0 -0
  247. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/glu.py +0 -0
  248. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/grid_sampler.py +0 -0
  249. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
  250. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/groupnorm.py +0 -0
  251. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/gt.py +0 -0
  252. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/hardsigmoid.py +0 -0
  253. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/hardswish.py +0 -0
  254. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/im2col.py +0 -0
  255. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/index_add.py +0 -0
  256. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/index_put_op.py +0 -0
  257. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/index_select.py +0 -0
  258. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/index_wrappers.py +0 -0
  259. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/isfinite.py +0 -0
  260. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/isinf.py +0 -0
  261. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/isnan.py +0 -0
  262. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/launch_keys.py +0 -0
  263. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/launch_observer.py +0 -0
  264. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/layernorm.py +0 -0
  265. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/le.py +0 -0
  266. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/leaky_relu.py +0 -0
  267. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/lerp.py +0 -0
  268. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/linalg_wrappers.py +0 -0
  269. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/linspace_op.py +0 -0
  270. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/log.py +0 -0
  271. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/log_sigmoid.py +0 -0
  272. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/logical_and.py +0 -0
  273. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/logical_not.py +0 -0
  274. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/logical_or.py +0 -0
  275. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/logical_xor.py +0 -0
  276. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/loss_wrappers.py +0 -0
  277. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/lt.py +0 -0
  278. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/masked_fill.py +0 -0
  279. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/matmul.py +0 -0
  280. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
  281. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/max_pool2d.py +0 -0
  282. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/max_pool3d.py +0 -0
  283. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/max_reduce.py +0 -0
  284. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/maximum.py +0 -0
  285. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/mean.py +0 -0
  286. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/min_reduce.py +0 -0
  287. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/minimum.py +0 -0
  288. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/mish.py +0 -0
  289. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
  290. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/moe_align.py +0 -0
  291. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
  292. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/moe_device_residency.py +0 -0
  293. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/moe_wrappers.py +0 -0
  294. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/mse_loss.py +0 -0
  295. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/mul.py +0 -0
  296. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/nan_to_num.py +0 -0
  297. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/ne.py +0 -0
  298. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/neg.py +0 -0
  299. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/nllloss.py +0 -0
  300. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/nonzero.py +0 -0
  301. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/nonzero_op.py +0 -0
  302. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/norm_wrappers.py +0 -0
  303. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/ones_op.py +0 -0
  304. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/oracles/__init__.py +0 -0
  305. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
  306. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/pad_op.py +0 -0
  307. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
  308. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
  309. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
  310. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/pow.py +0 -0
  311. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/prod.py +0 -0
  312. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/rand_op.py +0 -0
  313. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/random_wrappers.py +0 -0
  314. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/reciprocal.py +0 -0
  315. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
  316. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/relu.py +0 -0
  317. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/remainder.py +0 -0
  318. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/repeat_interleave.py +0 -0
  319. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/repeat_op.py +0 -0
  320. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/residual_chain.py +0 -0
  321. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/rmsnorm.py +0 -0
  322. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/rope.py +0 -0
  323. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/rsqrt.py +0 -0
  324. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/scaled_softmax.py +0 -0
  325. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/scatter_op.py +0 -0
  326. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/screen_oracle.py +0 -0
  327. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/selu.py +0 -0
  328. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/shape_wrappers.py +0 -0
  329. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/sigmoid.py +0 -0
  330. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/silu.py +0 -0
  331. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/sin.py +0 -0
  332. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/softmax.py +0 -0
  333. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/softplus.py +0 -0
  334. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/sort_op.py +0 -0
  335. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
  336. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/sqrt.py +0 -0
  337. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/stack_op.py +0 -0
  338. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/std.py +0 -0
  339. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/strided_copy.py +0 -0
  340. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/sub.py +0 -0
  341. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/sum.py +0 -0
  342. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/tan.py +0 -0
  343. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/tanh.py +0 -0
  344. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/threshold.py +0 -0
  345. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/tiling.yml +0 -0
  346. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/tiling_policy.py +0 -0
  347. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/tiling_sizes.py +0 -0
  348. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/topk.py +0 -0
  349. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/trace_op.py +0 -0
  350. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/tril.py +0 -0
  351. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/triu.py +0 -0
  352. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/unfold_op.py +0 -0
  353. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/unique_op.py +0 -0
  354. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
  355. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
  356. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
  357. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/var.py +0 -0
  358. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/vector_norm.py +0 -0
  359. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/weight_norm.py +0 -0
  360. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/where.py +0 -0
  361. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/wrappers.py +0 -0
  362. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/ops/zeros_op.py +0 -0
  363. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/quant/__init__.py +0 -0
  364. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/quant/quantized_tensor.py +0 -0
  365. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/random/__init__.py +0 -0
  366. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/random/mt_randn.py +0 -0
  367. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/random/rng_pin.py +0 -0
  368. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/random/rng_stream.py +0 -0
  369. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/random/seeded_draw.py +0 -0
  370. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/shape/__init__.py +0 -0
  371. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/tensor.py +0 -0
  372. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/src/nbxtensor/terminal.py +0 -0
  373. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/tools/device_key_census.py +0 -0
  374. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/tools/device_key_trace.py +0 -0
  375. {nbxtensor-0.0.8 → nbxtensor-0.1.0}/tools/scatter_scan.py +0 -0
@@ -0,0 +1,29 @@
1
+ # The NeuroBrix CLA check: every author of a pull request has signed the NeuroBrix Contributor Assignment Agreement.
2
+ # The check's code and the signatures live in the private repository NeuroBrix/cla-signatures (one copy for every
3
+ # NeuroBrix repository); the pull request's own code is never checked out or run.
4
+ name: CLA
5
+ on:
6
+ pull_request_target:
7
+ types: [opened, synchronize, reopened]
8
+ issue_comment:
9
+ types: [created]
10
+ permissions:
11
+ contents: read
12
+ pull-requests: write
13
+ issues: write
14
+ statuses: write
15
+ concurrency:
16
+ group: cla-${{ github.event.pull_request.number || github.event.issue.number }}
17
+ jobs:
18
+ cla:
19
+ if: github.event_name == 'pull_request_target' || github.event.issue.pull_request
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - name: Check the signatures
23
+ env:
24
+ PR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25
+ STORE_TOKEN: ${{ secrets.CLA_STORE_TOKEN }}
26
+ run: |
27
+ curl -fsSL -H "Authorization: Bearer $STORE_TOKEN" -H "Accept: application/vnd.github.raw" \
28
+ https://api.github.com/repos/NeuroBrix/cla-signatures/contents/check.py -o "$RUNNER_TEMP/check.py"
29
+ python3 "$RUNNER_TEMP/check.py"
@@ -7,6 +7,52 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.0] - 2026-11-10
11
+ ### Changed
12
+ - **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.
13
+ - **The authors' contact address is contact@neurobrix.org** (the package metadata), the project's address being neurobrix.org.
14
+
15
+ ### Added
16
+ - **A decoding sequence may outgrow the card's KV pages**: past `card_pages`, `PagedTritonKVCache` moves its oldest
17
+ written pages to `memory.host_spill.HostSpill` (float32 in the attention's layout, bounded by a host budget) and keeps
18
+ decoding; each step's attention over the spilled positions is computed on the host
19
+ (`ops.host_decode_partial`) and joins the card's split partials in the same reduce launch — exact, the split-KV
20
+ merge. Qwen3-30B's attention shape on an M4 Pro: 131 072 spilled positions cost 15 ms per layer and step.
21
+ A prompt longer than the card's pages is prefilled chunk by chunk over the card and the host
22
+ (`memory.paged_kv` `chunk_attention`); on a V100 host with 40 threads, 131 072 spilled positions cost 25.8 ms per
23
+ layer and step.
24
+ - **An attention returns its rows' log-sum-exp**: `scaled_dot_product_attention_wrapper(return_lse=True)` returns the
25
+ natural-log LSE of each query row (fp32) on every route — math, chunked math, the flash kernels and the decode path —
26
+ so partial attentions over split keys merge exactly.
27
+ - **`nbxtensor.ops.token_bitmask`**: a token bitmask applied to a decode step's fp32 logits in place (constrained
28
+ decoding): every token whose bit is clear (bit v % 32 of int32 word v // 32, ceil(vocab / 32) words a row) set to
29
+ -inf before the sampler; the mask on the logits' own device, the element-wise launch's certified tile; a mask of
30
+ another shape or allowing no token refused by name. Torch-free.
31
+ - **A KV cache host tier**: `memory.kv_host_tier` (the prefix index of whole pages, the host page pool, the pages a
32
+ sequence holds), `memory.kv_host_pages` (host pages laid out [page][layer][K, V], pinned or pageable; per-layer copies,
33
+ and `offload_gathered` / `restore_scattered`: every layer's page gathered on the device by one kernel per K and V, then
34
+ 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
35
+ cache's `tier_*` protocol (layout, length, offload, restore in place, resume).
36
+ - **`nbxtensor.ops.embedding_pool`**: an embedding model's pooling on the host (`pool_hidden`: mean over the kept
37
+ positions, cls, or each sequence's last kept position whatever the padding side; `l2_normalize`), numpy and
38
+ torch-free; refusals by name.
39
+
40
+ ## [0.0.9] - 2026-11-09
41
+
42
+ ### Fixed
43
+ - **`python -m nbxtensor install-metal` installs the macOS 14 Metal wheels and CPython 3.10-3.13**: 0.0.8 carried the
44
+ macOS 15 / CPython 3.12 build only and refused every other Python by name. The table now holds the triton-ext release
45
+ apple-v0.1.0+triton3.8.0-macos14 (Triton 3.8.0 and nbx-triton-apple 0.1.0, macOS 14.0 arm64, CPython 3.10, 3.11,
46
+ 3.12 and 3.13, each sha256 read on the downloaded file and equal to the release's SHA256SUMS) beside the macOS 15.0
47
+ build of CPython 3.12. A Python tag may carry one build per minimum macOS: the Mac installs the newest build its
48
+ macOS satisfies (CPython 3.12 on macOS 15 or later keeps the 15.0 build), and a Mac older than every build is
49
+ refused naming the macOS it needs.
50
+ - **The CPU pool runs on macOS 14**: Accelerate before macOS 15 has no `BLASSetThreading`, and 0.0.8 then knew no BLAS
51
+ of the process and raised at the pool's setup, so every Triton run stopped at start on macOS 14. That Accelerate is
52
+ now its own kind (`ACCELERATE_UNCONTROLLED`): its threads are not set (results unchanged; a `parallel_for` piece may
53
+ use Accelerate's own threads beside the pool's), `python -m nbxtensor doctor` names it, and `VECLIB_MAXIMUM_THREADS=1`
54
+ set before Python starts stays the user's choice (nbxtensor never sets it).
55
+
10
56
  ## [0.0.8] - 2026-11-09
11
57
 
12
58
  ### Added
@@ -257,7 +303,8 @@ memory; the fix is in test).
257
303
  - **`flash_decode_split_kernel` and its route**: armed only by an environment switch (`NBX_FLASH_DECODE`, with `NBX_FD_BLOCK_N` and `NBX_FD_SEG`) and measured slower than the vector decode kernels; `flash_decode.py` keeps the fixed-order reduce they share.
258
304
  - **`conv1d_forward_kernel`**: launched by no route (a 1-D convolution runs through `conv2d`).
259
305
 
260
- [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.8...HEAD
306
+ [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.0...HEAD
307
+ [0.1.0]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.9...v0.1.0
261
308
  [0.0.8]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.5...v0.0.8
262
309
  [0.0.5]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.4...v0.0.5
263
310
  [0.0.4]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.3...v0.0.4
@@ -31,6 +31,18 @@ exported here; a pull request on either repository is fine — we carry it acros
31
31
  - **No model knowledge.** The library knows tensors, kernels and devices, never a model by name.
32
32
  - English in code, comments and documentation.
33
33
 
34
+ ## Contributor Assignment Agreement
35
+
36
+ Before your first pull request is merged, you sign the [NeuroBrix Contributor Assignment
37
+ Agreement](https://github.com/NeuroBrix/neurobrix/blob/main/docs/legal/contributor-assignment-agreement.md) — once, for
38
+ every NeuroBrix project (neurobrix, nbxtensor, NBXGrammar, NBX Code, the hub). You assign the rights in your contribution
39
+ to the owner of the NeuroBrix project (named in the NOTICE file) and its successors, and receive back a license to use
40
+ your own contribution as you wish; the owner may license the projects under other terms; no trademark right is involved.
41
+ To sign, post on your pull request the comment `I have read the NeuroBrix Contributor Assignment Agreement and I hereby
42
+ sign it.` — the `NeuroBrix CLA` check then passes. Contributing for a company? Your employer signs the [entity
43
+ agreement](https://github.com/NeuroBrix/neurobrix/blob/main/docs/legal/entity-contributor-assignment-agreement.md) first:
44
+ write to contact@neurobrix.org.
45
+
34
46
  ## Certificates
35
47
 
36
48
  Certificates are the proven kernel settings of a GPU class: see [Certify your own hardware](README.md#certify-your-own-hardware)
@@ -1,5 +1,6 @@
1
1
  nbxtensor
2
2
  Copyright 2025–2026 Hocine Benkelaya
3
+ Owner of the NeuroBrix project (the Owner under the Contributor Assignment Agreement): Hocine Benkelaya
3
4
 
4
5
  Supported and funded by Neural Network Holding Ltd (https://neuralnetworkholding.com).
5
6
  Commercial distribution by WizWorks OÜ (https://wizworks.io).
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nbxtensor
3
- Version: 0.0.8
3
+ Version: 0.1.0
4
4
  Summary: Run AI models without PyTorch: tensors, Triton kernels, planned memory and certified tuning, wherever Triton runs — NVIDIA, AMD, Intel and Apple GPUs.
5
5
  Project-URL: Homepage, https://github.com/NeuroBrix/nbxtensor
6
6
  Project-URL: Source, https://github.com/NeuroBrix/nbxtensor
7
7
  Project-URL: Issues, https://github.com/NeuroBrix/nbxtensor/issues
8
8
  Project-URL: Changelog, https://github.com/NeuroBrix/nbxtensor/blob/main/CHANGELOG.md
9
- Author-email: Hocine Benkelaya <contact@neurobrix.es>
10
- Maintainer-email: Hocine Benkelaya <contact@neurobrix.es>
9
+ Author-email: Hocine Benkelaya <contact@neurobrix.org>
10
+ Maintainer-email: Hocine Benkelaya <contact@neurobrix.org>
11
11
  License: Apache-2.0
12
12
  License-File: LICENSE
13
13
  License-File: NOTICE
@@ -27,7 +27,8 @@ Description-Content-Type: text/markdown
27
27
 
28
28
  Run AI models without PyTorch, on any GPU Triton supports: tensors, Triton kernels, planned memory and certified tuning.
29
29
 
30
- Runs wherever Triton runs — NVIDIA, AMD, Intel and Apple Silicon GPUs, on Linux, Windows and macOS. Inference first; training is not in this
30
+ Validated on NVIDIA and Apple Silicon GPUs, on Linux, Windows and macOS; AMD and Intel GPUs, through the same Triton
31
+ kernels, are targets not yet validated on a card. Inference first; training is not in this
31
32
  release. Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxtensor/issues) — we fix fast.
32
33
 
33
34
  [![PyPI](https://img.shields.io/pypi/v/nbxtensor)](https://pypi.org/project/nbxtensor/)
@@ -4,7 +4,8 @@
4
4
 
5
5
  Run AI models without PyTorch, on any GPU Triton supports: tensors, Triton kernels, planned memory and certified tuning.
6
6
 
7
- Runs wherever Triton runs — NVIDIA, AMD, Intel and Apple Silicon GPUs, on Linux, Windows and macOS. Inference first; training is not in this
7
+ Validated on NVIDIA and Apple Silicon GPUs, on Linux, Windows and macOS; AMD and Intel GPUs, through the same Triton
8
+ kernels, are targets not yet validated on a card. Inference first; training is not in this
8
9
  release. Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxtensor/issues) — we fix fast.
9
10
 
10
11
  [![PyPI](https://img.shields.io/pypi/v/nbxtensor)](https://pypi.org/project/nbxtensor/)
@@ -4,13 +4,13 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nbxtensor"
7
- version = "0.0.8"
7
+ version = "0.1.0"
8
8
  description = "Run AI models without PyTorch: tensors, Triton kernels, planned memory and certified tuning, wherever Triton runs — NVIDIA, AMD, Intel and Apple GPUs."
9
9
  readme = "README.md"
10
10
  license = { text = "Apache-2.0" }
11
11
  requires-python = ">=3.10"
12
- authors = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.es" }]
13
- maintainers = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.es" }]
12
+ authors = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.org" }]
13
+ maintainers = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.org" }]
14
14
  # numpy, triton, pyyaml (the dtype table is a YAML file) and, on Linux, the CUDA runtime. torch is never a dependency, not even an optional one:
15
15
  # nbxtensor never imports torch (R-NBXT 6). Exchange with any other tensor
16
16
  # library goes through DLPack, which the OTHER library imports.
@@ -13,5 +13,5 @@ first publication is 0.0.1, each fix after it increments, the Rust rewrite is
13
13
  """
14
14
 
15
15
  #: the one version number; `pyproject.toml` states the same (tests/test_version.py)
16
- __version__ = "0.0.8"
16
+ __version__ = "0.1.0"
17
17
  __all__: list = []
@@ -18,6 +18,13 @@ def doctor() -> int:
18
18
  except RuntimeError as exc:
19
19
  backend = None
20
20
  print(f"backend in force: none — {str(exc).splitlines()[0]}")
21
+ if sys.platform == "darwin":
22
+ from nbxtensor.backend.cpu import blas
23
+ try:
24
+ if blas.blas()[0] == blas.ACCELERATE_UNCONTROLLED:
25
+ print(blas.uncontrolled_note())
26
+ except RuntimeError as exc: # a BLAS whose threads nbxtensor cannot set: said, by name
27
+ print(f"BLAS: {exc}")
21
28
  if backend != "metal" or install_help.pci_gpus(): # a Mac has no PCI GPU to report: nothing to install there
22
29
  print(install_help.report())
23
30
  return 0
@@ -10,6 +10,10 @@ Through the BLAS's own symbols, found in the process (no new dependency):
10
10
 
11
11
  - Apple's Accelerate (`BLASSetThreading`, macOS 15+): a setting PER THREAD, multi-threaded (Accelerate chooses how
12
12
  many) or single-threaded — the pool's threads are set single-threaded when they start;
13
+ - Accelerate before macOS 15 (`ACCELERATE_UNCONTROLLED`): no thread control at all (BLASSetThreading is macOS 15.0+;
14
+ Apple's one lever, `VECLIB_MAXIMUM_THREADS`, is read when Accelerate loads, before any library can set it). The kind
15
+ is named (doctor, a DEBUG line once), its threads are not set — the results are the same, a `parallel_for` piece may
16
+ use Accelerate's own threads beside the pool's — and the variable stays the user's choice, never set here;
13
17
  - OpenBLAS (numpy's wheels on Linux; `openblas_set_num_threads` / `scipy_openblas_set_num_threads64_`): a count for
14
18
  the PROCESS — set to 1 while `parallel_for` runs, the pool's size otherwise.
15
19
 
@@ -19,12 +23,18 @@ from __future__ import annotations
19
23
 
20
24
  import ctypes
21
25
  import functools
26
+ import logging
22
27
  import platform
23
28
  import sys
24
29
  from pathlib import Path
25
30
  from typing import Optional, Tuple
26
31
 
27
- __all__ = ["blas", "set_blas_threads", "blas_threads_of_this_thread"]
32
+ __all__ = ["blas", "set_blas_threads", "blas_threads_of_this_thread", "ACCELERATE_UNCONTROLLED", "uncontrolled_note"]
33
+
34
+ _LOG = logging.getLogger(__name__)
35
+
36
+ #: the kind of Accelerate without BLASSetThreading (macOS < 15)
37
+ ACCELERATE_UNCONTROLLED = "accelerate_uncontrolled"
28
38
 
29
39
  _ACCELERATE = "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib"
30
40
  _OPENBLAS_SET = ("scipy_openblas_set_num_threads64_", "scipy_openblas_set_num_threads", "openblas_set_num_threads64_",
@@ -56,8 +66,9 @@ def _loaded_openblas() -> Optional[str]:
56
66
 
57
67
  @functools.lru_cache(maxsize=1)
58
68
  def blas() -> Tuple[str, object]:
59
- """(kind, library) of the BLAS numpy runs in this process: ("accelerate", libBLAS) or ("openblas", the loaded
60
- library); refused by name otherwise."""
69
+ """(kind, library) of the BLAS numpy runs in this process: ("accelerate", libBLAS), (ACCELERATE_UNCONTROLLED,
70
+ libBLAS) on a macOS whose Accelerate has no BLASSetThreading, or ("openblas", the loaded library); refused by name
71
+ otherwise."""
61
72
  import numpy # noqa: F401 — numpy loads its BLAS; the library is the one already in the process
62
73
  if platform.system() == "Darwin":
63
74
  # a system library lives in the dyld shared cache, not as a file on disk: it is loaded, never stat-ed
@@ -67,6 +78,9 @@ def blas() -> Tuple[str, object]:
67
78
  lib = None
68
79
  if lib is not None and hasattr(lib, "BLASSetThreading") and hasattr(lib, "BLASGetThreading"):
69
80
  return "accelerate", lib
81
+ if lib is not None:
82
+ _LOG.debug(uncontrolled_note())
83
+ return ACCELERATE_UNCONTROLLED, lib
70
84
  path = _loaded_openblas()
71
85
  if path is not None:
72
86
  lib = ctypes.CDLL(path)
@@ -89,6 +103,8 @@ def set_blas_threads(n: int) -> None:
89
103
  if not isinstance(n, int) or n < 1:
90
104
  raise ValueError(f"set_blas_threads: {n!r} — one thread or more")
91
105
  kind, lib = blas()
106
+ if kind == ACCELERATE_UNCONTROLLED:
107
+ return # nothing to set: named by blas() and doctor (uncontrolled_note)
92
108
  if kind == "accelerate":
93
109
  fn = lib.BLASSetThreading
94
110
  fn.argtypes, fn.restype = [ctypes.c_uint], ctypes.c_int
@@ -104,6 +120,8 @@ def blas_threads_of_this_thread() -> Optional[int]:
104
120
  """1 when the BLAS runs single-threaded for the calling thread, else its count (OpenBLAS), or None for
105
121
  Accelerate's own multi-threading (it states no count)."""
106
122
  kind, lib = blas()
123
+ if kind == ACCELERATE_UNCONTROLLED:
124
+ return None
107
125
  if kind == "accelerate":
108
126
  fn = lib.BLASGetThreading
109
127
  fn.restype = ctypes.c_uint
@@ -111,3 +129,10 @@ def blas_threads_of_this_thread() -> Optional[int]:
111
129
  fn = _symbol(lib, _OPENBLAS_GET)
112
130
  fn.restype = ctypes.c_int
113
131
  return int(fn())
132
+
133
+
134
+ def uncontrolled_note() -> str:
135
+ """The line doctor prints (and blas() logs once in DEBUG) for Accelerate without thread control."""
136
+ return ("BLAS: Accelerate without per-thread control (macOS before 15 has no BLASSetThreading): the CPU pool's threads "
137
+ "may each use Accelerate's own threads; VECLIB_MAXIMUM_THREADS=1, set before Python starts, makes it "
138
+ "single-threaded (your choice; NeuroBrix does not set it)")
@@ -22,16 +22,40 @@ from typing import List, Tuple
22
22
  #: the only place the wheels are fetched from: the releases of the project's fork of triton-ext
23
23
  RELEASES = "https://github.com/NeuroBrix/triton-ext/releases/download/"
24
24
 
25
- #: the Metal wheels per CPython tag: (URL of the release asset, sha256 of the file), Triton first; a tag absent here is
26
- #: refused by name. The fork's release apple-v0.1.0+triton3.8.0 (2026-11-07): Triton 3.8.0 (git 4a15f415) built with
27
- #: TRITON_EXT_ENABLED=1 and nbx-triton-apple 0.1.0, both macOS 15.0 arm64 (the prebuilt LLVM Triton links is minos 15.0);
28
- #: sha256 read on the downloaded assets.
25
+ #: the Metal wheels per CPython tag: (URL of the release asset, sha256 of the file), Triton first within each build;
26
+ #: a tag absent here is refused by name. Two releases of the project's fork: apple-v0.1.0+triton3.8.0 (2026-11-07),
27
+ #: Triton 3.8.0 (git 4a15f415) built with TRITON_EXT_ENABLED=1 and nbx-triton-apple 0.1.0 for CPython 3.12, macOS 15.0
28
+ #: arm64; apple-v0.1.0+triton3.8.0-macos14 (2026-11-09), the same sources for CPython 3.10-3.13, macOS 14.0 arm64. A Mac
29
+ #: on macOS 15 or later under CPython 3.12 installs the 15.0 build, any other covered Mac the 14.0 build (`wheels`).
30
+ #: sha256 read on the downloaded assets (each matches the release's SHA256SUMS).
29
31
  METAL_WHEELS: dict = {
32
+ "cp310": (
33
+ (RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/triton-3.8.0%2Bgit4a15f415.nbx1-cp310-cp310-macosx_14_0_arm64.whl",
34
+ "77d9c1e43c77a490264ad810a0a624f15963b120eff96384bf2c921748352f8c"),
35
+ (RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/nbx_triton_apple-0.1.0-cp310-cp310-macosx_14_0_arm64.whl",
36
+ "4ac872b376f113e40c15772aa81a3c95b2e83a412f4bbfb12211129cec03b284"),
37
+ ),
38
+ "cp311": (
39
+ (RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/triton-3.8.0%2Bgit4a15f415.nbx1-cp311-cp311-macosx_14_0_arm64.whl",
40
+ "8af8dbce2acb4d32de26b3e745696bd52fea6f54723fe96cb229c9feee70668c"),
41
+ (RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/nbx_triton_apple-0.1.0-cp311-cp311-macosx_14_0_arm64.whl",
42
+ "fd6a9e309d0f37c719d33e921267dc6413edd406920055fed1563ad942062148"),
43
+ ),
30
44
  "cp312": (
31
45
  (RELEASES + "apple-v0.1.0%2Btriton3.8.0/triton-3.8.0%2Bgit4a15f415.nbx1-cp312-cp312-macosx_15_0_arm64.whl",
32
46
  "b9084dc93ae7f1468062a03e713d49c9add9a1c9a609fae753a7b32a13b7a223"),
33
47
  (RELEASES + "apple-v0.1.0%2Btriton3.8.0/nbx_triton_apple-0.1.0-cp312-cp312-macosx_15_0_arm64.whl",
34
48
  "b9ed95c983b220b1fbf1300481b1e2f52a0435c10ee618ef7ccf60a132fe263c"),
49
+ (RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/triton-3.8.0%2Bgit4a15f415.nbx1-cp312-cp312-macosx_14_0_arm64.whl",
50
+ "daad78ec3e8a8cfe28dc531f9372aaf7d5a16a347b59d2df2759866f78c7c78f"),
51
+ (RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/nbx_triton_apple-0.1.0-cp312-cp312-macosx_14_0_arm64.whl",
52
+ "f09c969635255f67350a3ca4f9ef2fa416934193cea3dd5b2b930ff9d78c6bab"),
53
+ ),
54
+ "cp313": (
55
+ (RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/triton-3.8.0%2Bgit4a15f415.nbx1-cp313-cp313-macosx_14_0_arm64.whl",
56
+ "4099a5199cc4b0114aae75a325a139acdc737b2d7ed56493c27a3ca4e7a5a703"),
57
+ (RELEASES + "apple-v0.1.0%2Btriton3.8.0-macos14/nbx_triton_apple-0.1.0-cp313-cp313-macosx_14_0_arm64.whl",
58
+ "21d96a90e3d74c6bd4a478610de4135a2fb71bed245f10684ba5eab7829528c7"),
35
59
  ),
36
60
  }
37
61
 
@@ -56,14 +80,19 @@ def wheels(version: str) -> List[Tuple[str, str]]:
56
80
  raise InstallMetalRefused(
57
81
  f"nbxtensor {version} carries no Metal wheels for Python {sys.version_info.major}.{sys.version_info.minor} "
58
82
  f"({tag}); covered: {covered}.")
59
- entries = list(METAL_WHEELS[tag])
60
- need = max(_min_macos(url) for url, _sha in entries)
83
+ # A tag may carry one build per minimum macOS (the wheels' platform tag, e.g. macosx_15_0 and macosx_14_0): the
84
+ # Mac installs the NEWEST build its macOS satisfies; one too old for every build is refused by name.
85
+ builds: dict = {}
86
+ for url, sha in METAL_WHEELS[tag]:
87
+ builds.setdefault(_min_macos(url), []).append((url, sha))
61
88
  have = _macos_version()
62
- if have < need:
89
+ fits = [need for need in builds if have >= need]
90
+ if not fits:
91
+ need = min(builds)
63
92
  raise InstallMetalRefused(
64
93
  f"macOS {'.'.join(map(str, need))} required for now: the Metal wheels of nbxtensor {version} are built for "
65
94
  f"macOS {'.'.join(map(str, need))} and later (this Mac: macOS {'.'.join(map(str, have))}).")
66
- return entries
95
+ return builds[max(fits)]
67
96
 
68
97
 
69
98
  def _min_macos(url: str) -> Tuple[int, int]:
@@ -0,0 +1,90 @@
1
+ """The positions a decoding sequence spilled from the card's paged cache to host memory (point 10, the mid-decode
2
+ spill; Dell + Mac 2026-11-10): the card keeps the newest positions, the oldest whole pages move here when the card may
3
+ hold no more, and each decode step's attention over them is computed here (ops/host_decode_partial.py), joined to the
4
+ card's as the reduce's last split.
5
+
6
+ Per layer, K and V as float32 in the attention's own layout [H_kv, positions, D], written ONCE per spilled page: a
7
+ per-step conversion and transpose cost 7x the math (measured 2026-11-10, 131 072 positions, M4 Pro). The price is twice
8
+ the card's half-precision bytes per position; `budget_bytes` (the serving layer's, from the profile and the user's cap:
9
+ an int, or a callable giving the bytes the spill may hold now — the share of one host budget the KV tier's parked pages
10
+ leave) bounds it, and a spill past it is refused by name. Grows by doubling up to the budget, never at max_len.
11
+ """
12
+ from __future__ import annotations
13
+
14
+ from typing import List, Optional
15
+
16
+ import numpy as np
17
+
18
+ from nbxtensor.ops.host_decode_partial import host_decode_partial
19
+
20
+
21
+ class HostSpill:
22
+ def __init__(self, num_layers: int, kv_heads: int, k_dim: int, v_dim: int, budget_bytes):
23
+ self.num_layers, self.kv_heads, self.k_dim, self.v_dim = int(num_layers), int(kv_heads), int(k_dim), int(v_dim)
24
+ self._budget = budget_bytes if callable(budget_bytes) else (lambda b=int(budget_bytes): b)
25
+ self.k: List[Optional[np.ndarray]] = [None] * self.num_layers
26
+ self.v: List[Optional[np.ndarray]] = [None] * self.num_layers
27
+ self.held = [0] * self.num_layers # positions each layer holds
28
+
29
+ def position_bytes(self) -> int:
30
+ """Host bytes one spilled position costs across every layer (float32 K and V)."""
31
+ return 4 * self.kv_heads * (self.k_dim + self.v_dim) * self.num_layers
32
+
33
+ @property
34
+ def budget_bytes(self) -> int:
35
+ return int(self._budget())
36
+
37
+ def reach(self) -> int:
38
+ """Positions the budget can hold now."""
39
+ return self.budget_bytes // self.position_bytes()
40
+
41
+ @property
42
+ def length(self) -> int:
43
+ return self.held[0]
44
+
45
+ def nbytes(self) -> int:
46
+ return sum(a.nbytes for a in self.k + self.v if a is not None)
47
+
48
+ def append(self, layer: int, k_pages: np.ndarray, v_pages: np.ndarray) -> None:
49
+ """Layer `layer`'s next spilled pages, in position order: [pages, H_kv, page_tokens, D] as the card pool holds
50
+ them (any float dtype) — converted and laid out once here."""
51
+ n = int(k_pages.shape[0]) * int(k_pages.shape[2])
52
+ end = self.held[layer] + n
53
+ if end > self.reach():
54
+ raise RuntimeError(f"ZERO FALLBACK: spilling to {end} positions in host memory; the host budget "
55
+ f"({self.budget_bytes / 2 ** 20:.0f} MB, {self.position_bytes()} bytes a position across "
56
+ f"{self.num_layers} layers) holds {self.reach()} — the request is past the cache's reach")
57
+ cap = 0 if self.k[layer] is None else self.k[layer].shape[1]
58
+ if end > cap:
59
+ new_cap = min(max(end, 2 * cap), self.reach())
60
+ for arrs, d in ((self.k, self.k_dim), (self.v, self.v_dim)):
61
+ grown = np.zeros((self.kv_heads, new_cap, d), np.float32)
62
+ if arrs[layer] is not None:
63
+ grown[:, :self.held[layer]] = arrs[layer][:, :self.held[layer]]
64
+ arrs[layer] = grown
65
+ for arrs, pages in ((self.k, k_pages), (self.v, v_pages)):
66
+ # [pages, H_kv, P, D] -> [H_kv, pages * P, D]
67
+ flat = np.asarray(pages).transpose(1, 0, 2, 3).reshape(self.kv_heads, n, pages.shape[3])
68
+ arrs[layer][:, self.held[layer]:end] = flat
69
+ self.held[layer] = end
70
+
71
+ def partial(self, layer: int, q: np.ndarray, groups: int, scale: float):
72
+ """The attention partial of query rows q [H, D] (float32, rounded as the card reads them) over this layer's
73
+ spilled positions (acc, m, l)."""
74
+ if self.k[layer] is None:
75
+ return host_decode_partial(q, np.zeros((self.kv_heads, 0, self.k_dim), np.float32),
76
+ np.zeros((self.kv_heads, 0, self.v_dim), np.float32), 0, groups, scale)
77
+ # the scores take, at once, at most what the budget leaves beside the spilled positions themselves
78
+ return host_decode_partial(q, self.k[layer], self.v[layer], self.held[layer], groups, scale,
79
+ scores_bytes=max(0, self.budget_bytes - self.nbytes()))
80
+
81
+ def truncate(self, length: int) -> None:
82
+ """Keep the first `length` spilled positions (a session's matched prefix)."""
83
+ if length > self.length:
84
+ raise RuntimeError(f"ZERO FALLBACK: truncating the host spill to {length} positions; it holds {self.length}")
85
+ self.held = [min(h, int(length)) for h in self.held]
86
+
87
+ def clear(self) -> None:
88
+ self.k = [None] * self.num_layers
89
+ self.v = [None] * self.num_layers
90
+ self.held = [0] * self.num_layers