nbxtensor 0.0.5__tar.gz → 0.0.9__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 (358) hide show
  1. nbxtensor-0.0.9/.gitignore +309 -0
  2. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/CHANGELOG.md +95 -1
  3. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/LICENSE +1 -1
  4. nbxtensor-0.0.9/NOTICE +8 -0
  5. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/PKG-INFO +10 -4
  6. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/README.md +6 -2
  7. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/pyproject.toml +3 -2
  8. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/__init__.py +1 -1
  9. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/__main__.py +18 -1
  10. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/cpu/blas.py +28 -3
  11. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/cpu_backend.py +5 -0
  12. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/device_facts.py +6 -2
  13. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/device_files.py +13 -1
  14. nbxtensor-0.0.9/src/nbxtensor/backend/devices/intel/arl_h.yml +207 -0
  15. nbxtensor-0.0.9/src/nbxtensor/backend/devices/intel/arl_s.yml +209 -0
  16. nbxtensor-0.0.9/src/nbxtensor/backend/devices/intel/mtl.yml +206 -0
  17. nbxtensor-0.0.9/src/nbxtensor/backend/devices/intel/ptl_h.yml +206 -0
  18. nbxtensor-0.0.9/src/nbxtensor/backend/devices/intel/ptl_u.yml +206 -0
  19. nbxtensor-0.0.9/src/nbxtensor/backend/install_help.py +234 -0
  20. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/install_metal.py +66 -9
  21. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/launcher.py +59 -61
  22. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/launcher_contract.py +6 -5
  23. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/level_zero.py +44 -8
  24. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/metal_backend.py +5 -4
  25. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/runtime.py +4 -0
  26. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/triton_ext_driver.py +20 -19
  27. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/io/read_rate.py +8 -0
  28. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/allocator.py +18 -16
  29. nbxtensor-0.0.9/src/nbxtensor/memory/kv_session.py +124 -0
  30. nbxtensor-0.0.9/src/nbxtensor/memory/paged_kv.py +467 -0
  31. nbxtensor-0.0.9/src/nbxtensor/memory/pages.py +182 -0
  32. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/pointer_tables.py +43 -0
  33. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/trace_replay.py +39 -6
  34. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/_configs.py +10 -14
  35. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/attention_wrappers.py +48 -12
  36. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/autotune_cache.py +4 -2
  37. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/autotune_certified.py +398 -65
  38. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/autotune_refusals.py +6 -4
  39. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/conv_wrappers.py +6 -4
  40. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/index_wrappers.py +4 -2
  41. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/linalg_wrappers.py +5 -3
  42. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/masked_fill.py +4 -1
  43. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/paged_decode_attn.py +28 -0
  44. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/residual_chain.py +8 -7
  45. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/screen_oracle.py +7 -5
  46. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/wrappers.py +15 -14
  47. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/tensor.py +4 -3
  48. nbxtensor-0.0.9/src/nbxtensor/terminal.py +90 -0
  49. nbxtensor-0.0.5/src/nbxtensor/backend/install_help.py +0 -130
  50. nbxtensor-0.0.5/tests/test_a_setting_not_served_says_why.py +0 -32
  51. nbxtensor-0.0.5/tests/test_a_small_tensor_never_pins_a_large_block.py +0 -52
  52. nbxtensor-0.0.5/tests/test_a_sweep_refused_everywhere_says_so.py +0 -35
  53. nbxtensor-0.0.5/tests/test_a_triton_kernel_compiles_for_amd_and_launches_through_hip.py +0 -115
  54. nbxtensor-0.0.5/tests/test_allocator_interceptor.py +0 -159
  55. nbxtensor-0.0.5/tests/test_array_api_promotion.py +0 -70
  56. nbxtensor-0.0.5/tests/test_cpu_pool.py +0 -85
  57. nbxtensor-0.0.5/tests/test_device_facts.py +0 -55
  58. nbxtensor-0.0.5/tests/test_device_files.py +0 -25
  59. nbxtensor-0.0.5/tests/test_device_memory.py +0 -63
  60. nbxtensor-0.0.5/tests/test_dtype_convert.py +0 -58
  61. nbxtensor-0.0.5/tests/test_dtype_outputs.py +0 -53
  62. nbxtensor-0.0.5/tests/test_dtype_promotion.py +0 -60
  63. nbxtensor-0.0.5/tests/test_host.py +0 -50
  64. nbxtensor-0.0.5/tests/test_install_metal_fetches_only_what_it_names.py +0 -117
  65. nbxtensor-0.0.5/tests/test_io_bf16_split.py +0 -20
  66. nbxtensor-0.0.5/tests/test_io_read_rate.py +0 -85
  67. nbxtensor-0.0.5/tests/test_it_installs_on_a_mac.py +0 -23
  68. nbxtensor-0.0.5/tests/test_nbx_dtype.py +0 -37
  69. nbxtensor-0.0.5/tests/test_no_environment_switch_changes_a_kernel.py +0 -24
  70. nbxtensor-0.0.5/tests/test_ops_cost.py +0 -63
  71. nbxtensor-0.0.5/tests/test_policy.py +0 -55
  72. nbxtensor-0.0.5/tests/test_readme.py +0 -39
  73. nbxtensor-0.0.5/tests/test_shape.py +0 -56
  74. nbxtensor-0.0.5/tests/test_the_backend_is_the_card_on_the_machine.py +0 -19
  75. nbxtensor-0.0.5/tests/test_the_compiler_key_is_prewarmed.py +0 -23
  76. nbxtensor-0.0.5/tests/test_the_hip_driver_keeps_the_launch_contract.py +0 -174
  77. nbxtensor-0.0.5/tests/test_the_launcher_refuses_a_backend_it_has_no_driver_for.py +0 -42
  78. nbxtensor-0.0.5/tests/test_the_level_zero_backend_keeps_its_contracts.py +0 -403
  79. nbxtensor-0.0.5/tests/test_the_malloc_trace_names_the_wrapper.py +0 -25
  80. nbxtensor-0.0.5/tests/test_the_metal_dispatch_facts_are_declared_or_refused.py +0 -31
  81. nbxtensor-0.0.5/tests/test_third_party_notices.py +0 -81
  82. nbxtensor-0.0.5/tests/test_version.py +0 -23
  83. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
  84. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/CONTRIBUTING.md +0 -0
  85. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/THIRD_PARTY_NOTICES.md +0 -0
  86. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/assets/logo.png +0 -0
  87. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/__init__.py +0 -0
  88. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/capabilities.py +0 -0
  89. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/cpu/__init__.py +0 -0
  90. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/cpu/pool.py +0 -0
  91. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/device_names.py +0 -0
  92. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
  93. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
  94. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
  95. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
  96. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
  97. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
  98. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
  99. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
  100. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
  101. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
  102. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
  103. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
  104. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
  105. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
  106. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
  107. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
  108. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
  109. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
  110. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
  111. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
  112. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
  113. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
  114. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
  115. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
  116. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
  117. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
  118. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
  119. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
  120. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
  121. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
  122. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
  123. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
  124. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
  125. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
  126. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/faults.py +0 -0
  127. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/host_memory.py +0 -0
  128. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/install_steps.yml +0 -0
  129. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/level_zero_driver.py +0 -0
  130. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/libnames.py +0 -0
  131. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/metal_device.py +0 -0
  132. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/process_memory.py +0 -0
  133. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/backend/replay_graph.py +0 -0
  134. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/dtype/__init__.py +0 -0
  135. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/dtype/convert.py +0 -0
  136. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/dtype/dtypes.yml +0 -0
  137. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/dtype/itemsize.py +0 -0
  138. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
  139. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/dtype/operands.py +0 -0
  140. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/dtype/outputs.py +0 -0
  141. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/dtype/policy.py +0 -0
  142. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/dtype/policy.yml +0 -0
  143. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/dtype/promotion.py +0 -0
  144. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/host.py +0 -0
  145. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/io/__init__.py +0 -0
  146. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/io/safetensors.py +0 -0
  147. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/__init__.py +0 -0
  148. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/arena.py +0 -0
  149. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/device_memory.py +0 -0
  150. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/device_transfer.py +0 -0
  151. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/layout.py +0 -0
  152. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/memory_pool.py +0 -0
  153. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/metal.py +0 -0
  154. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/oom_advice.py +0 -0
  155. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/pool.py +0 -0
  156. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/shadow.py +0 -0
  157. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/slab.py +0 -0
  158. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
  159. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/memory/vmm.py +0 -0
  160. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/__init__.py +0 -0
  161. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/_autotune_policy.py +0 -0
  162. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/_common.py +0 -0
  163. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/_cost.py +0 -0
  164. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/abs.py +0 -0
  165. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
  166. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/add.py +0 -0
  167. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/addcdiv.py +0 -0
  168. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/addcmul.py +0 -0
  169. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/addmv_op.py +0 -0
  170. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/addr.py +0 -0
  171. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/all_reduce.py +0 -0
  172. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/amax.py +0 -0
  173. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/any_reduce.py +0 -0
  174. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/arange_op.py +0 -0
  175. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/argmax.py +0 -0
  176. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/argmin.py +0 -0
  177. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/atan2.py +0 -0
  178. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/autotune_bucket.py +0 -0
  179. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/autotune_settings.py +0 -0
  180. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/avg_pool2d.py +0 -0
  181. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/baddbmm_op.py +0 -0
  182. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/batch_norm.py +0 -0
  183. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/binary_strided.py +0 -0
  184. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/bitwise_and.py +0 -0
  185. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
  186. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/bitwise_not.py +0 -0
  187. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/bitwise_or.py +0 -0
  188. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
  189. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/bucketize.py +0 -0
  190. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/cat_op.py +0 -0
  191. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/celu.py +0 -0
  192. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/certified_index.py +0 -0
  193. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/clamp.py +0 -0
  194. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/clamp_min.py +0 -0
  195. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/conv2d.py +0 -0
  196. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
  197. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
  198. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
  199. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/copy.py +0 -0
  200. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/copy_op.py +0 -0
  201. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/cos.py +0 -0
  202. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/count_nonzero.py +0 -0
  203. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/cross_entropy.py +0 -0
  204. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/cummax.py +0 -0
  205. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/cummin.py +0 -0
  206. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/cumsum.py +0 -0
  207. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
  208. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
  209. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/dequant_gemv.py +0 -0
  210. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/dft.py +0 -0
  211. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/dispatch.py +0 -0
  212. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/div.py +0 -0
  213. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/dot_op.py +0 -0
  214. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/dropout.py +0 -0
  215. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/dtype_convert.py +0 -0
  216. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/elementwise_launch.py +0 -0
  217. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
  218. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/elu.py +0 -0
  219. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/embedding.py +0 -0
  220. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/eq.py +0 -0
  221. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/erf.py +0 -0
  222. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/exp.py +0 -0
  223. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/exp2.py +0 -0
  224. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/fft_op.py +0 -0
  225. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/fill_op.py +0 -0
  226. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/flash_attention.py +0 -0
  227. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
  228. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/flash_decode.py +0 -0
  229. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/flip_op.py +0 -0
  230. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/floor.py +0 -0
  231. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/full_op.py +0 -0
  232. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/fused_moe.py +0 -0
  233. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
  234. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
  235. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/gather_op.py +0 -0
  236. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/ge.py +0 -0
  237. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/gelu.py +0 -0
  238. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/gemv_vec.py +0 -0
  239. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/glu.py +0 -0
  240. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/grid_sampler.py +0 -0
  241. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
  242. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/groupnorm.py +0 -0
  243. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/gt.py +0 -0
  244. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/hardsigmoid.py +0 -0
  245. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/hardswish.py +0 -0
  246. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/im2col.py +0 -0
  247. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/index_add.py +0 -0
  248. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/index_put_op.py +0 -0
  249. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/index_select.py +0 -0
  250. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/isfinite.py +0 -0
  251. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/isinf.py +0 -0
  252. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/isnan.py +0 -0
  253. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/launch_keys.py +0 -0
  254. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/launch_observer.py +0 -0
  255. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/layernorm.py +0 -0
  256. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/le.py +0 -0
  257. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/leaky_relu.py +0 -0
  258. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/lerp.py +0 -0
  259. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/linspace_op.py +0 -0
  260. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/log.py +0 -0
  261. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/log_sigmoid.py +0 -0
  262. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/logical_and.py +0 -0
  263. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/logical_not.py +0 -0
  264. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/logical_or.py +0 -0
  265. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/logical_xor.py +0 -0
  266. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/loss_wrappers.py +0 -0
  267. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/lt.py +0 -0
  268. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/matmul.py +0 -0
  269. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
  270. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/max_pool2d.py +0 -0
  271. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/max_pool3d.py +0 -0
  272. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/max_reduce.py +0 -0
  273. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/maximum.py +0 -0
  274. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/mean.py +0 -0
  275. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/min_reduce.py +0 -0
  276. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/minimum.py +0 -0
  277. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/mish.py +0 -0
  278. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
  279. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/moe_align.py +0 -0
  280. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
  281. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/moe_device_residency.py +0 -0
  282. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/moe_wrappers.py +0 -0
  283. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/mse_loss.py +0 -0
  284. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/mul.py +0 -0
  285. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/nan_to_num.py +0 -0
  286. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/ne.py +0 -0
  287. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/neg.py +0 -0
  288. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/nllloss.py +0 -0
  289. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/nonzero.py +0 -0
  290. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/nonzero_op.py +0 -0
  291. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/norm_wrappers.py +0 -0
  292. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/ones_op.py +0 -0
  293. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/oracles/__init__.py +0 -0
  294. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
  295. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/pad_op.py +0 -0
  296. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
  297. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
  298. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/pow.py +0 -0
  299. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/prod.py +0 -0
  300. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/rand_op.py +0 -0
  301. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/random_wrappers.py +0 -0
  302. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/reciprocal.py +0 -0
  303. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
  304. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/relu.py +0 -0
  305. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/remainder.py +0 -0
  306. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/repeat_interleave.py +0 -0
  307. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/repeat_op.py +0 -0
  308. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/rmsnorm.py +0 -0
  309. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/rope.py +0 -0
  310. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/rsqrt.py +0 -0
  311. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/scaled_softmax.py +0 -0
  312. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/scatter_op.py +0 -0
  313. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/selu.py +0 -0
  314. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/shape_wrappers.py +0 -0
  315. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/sigmoid.py +0 -0
  316. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/silu.py +0 -0
  317. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/sin.py +0 -0
  318. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/softmax.py +0 -0
  319. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/softplus.py +0 -0
  320. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/sort_op.py +0 -0
  321. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
  322. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/sqrt.py +0 -0
  323. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/stack_op.py +0 -0
  324. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/std.py +0 -0
  325. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/strided_copy.py +0 -0
  326. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/sub.py +0 -0
  327. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/sum.py +0 -0
  328. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/tan.py +0 -0
  329. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/tanh.py +0 -0
  330. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/threshold.py +0 -0
  331. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/tiling.yml +0 -0
  332. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/tiling_policy.py +0 -0
  333. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/tiling_sizes.py +0 -0
  334. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/topk.py +0 -0
  335. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/trace_op.py +0 -0
  336. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/tril.py +0 -0
  337. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/triu.py +0 -0
  338. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/unfold_op.py +0 -0
  339. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/unique_op.py +0 -0
  340. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
  341. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
  342. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
  343. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/var.py +0 -0
  344. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/vector_norm.py +0 -0
  345. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/weight_norm.py +0 -0
  346. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/where.py +0 -0
  347. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/ops/zeros_op.py +0 -0
  348. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/quant/__init__.py +0 -0
  349. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/quant/quantized_tensor.py +0 -0
  350. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/random/__init__.py +0 -0
  351. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/random/mt_randn.py +0 -0
  352. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/random/rng_pin.py +0 -0
  353. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/random/rng_stream.py +0 -0
  354. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/random/seeded_draw.py +0 -0
  355. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/src/nbxtensor/shape/__init__.py +0 -0
  356. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/tools/device_key_census.py +0 -0
  357. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/tools/device_key_trace.py +0 -0
  358. {nbxtensor-0.0.5 → nbxtensor-0.0.9}/tools/scatter_scan.py +0 -0
@@ -0,0 +1,309 @@
1
+
2
+ # Auto-generated hardware profile (machine-specific)
3
+ # Binary / large files
4
+ # Build artifacts
5
+ # Cache
6
+ # Environments
7
+ # IDE
8
+ # Internal / dev files
9
+ # Misc
10
+ # Model data
11
+ # NeuroBrix — Public inference engine package
12
+ # OS
13
+ # Python
14
+ # Test outputs
15
+ # This repo contains ONLY the public runtime (src/neurobrix/)
16
+ *.egg-info/
17
+ *.log
18
+ *.nbx
19
+ *.pyc
20
+ *.safetensors
21
+
22
+ # Audit / validation artefacts — local-only, never committed nor packaged.
23
+ # Canonical verdicts that need durability live under docs/verdicts/.
24
+ validation_outputs/
25
+ .DS_Store
26
+ ._*
27
+ .cache/
28
+ # flight recorder state (machine-local power-loss resume records)
29
+ .flightrec/
30
+
31
+ # ---------------------------------------------------------------------------
32
+ # Assistant configuration — NEVER tracked, in any form (2026-09-22).
33
+ # This repository is public. An assistant's configuration describes how this
34
+ # machine is driven, not what the engine is, and it carries machine facts,
35
+ # private paths and working habits that have no place in a public trunk.
36
+ # The four .claude/agents/*.md files WERE tracked until 2026-09-22; they are
37
+ # untracked here and stay on disk. Rewriting the history that still holds them
38
+ # is a separate decision, the owner's.
39
+ # ---------------------------------------------------------------------------
40
+ .claude/
41
+ **/.claude/
42
+ .claude*/
43
+ CLAUDE.md
44
+ **/CLAUDE.md
45
+ CLAUDE.local.md
46
+ **/CLAUDE.local.md
47
+ AGENTS.md
48
+ **/AGENTS.md
49
+ GEMINI.md
50
+ **/GEMINI.md
51
+ .cursorrules
52
+ .mcp.json
53
+ **/.mcp.json
54
+ .env
55
+ .gemini/
56
+ .idea/
57
+ .nfs*
58
+ .plan/
59
+ .pytest_cache/
60
+ .venv
61
+ .vscode/
62
+ CLAUDE.md
63
+ MODIFICATIONS.md
64
+ ROADMAP_INTERNAL.md
65
+ Saves/
66
+ TRACE_COMPARISON_REPORT.txt
67
+ __pycache__/
68
+ archives/
69
+ benchmark_report.json
70
+ build/
71
+ dist/
72
+ docs/audit_*.md
73
+ docs/audits/
74
+ docs/handover_*.md
75
+ docs/internal/
76
+ docs/lessons/
77
+ docs/roadmap/
78
+ docs/verdicts/
79
+ models/
80
+ native/build/
81
+ output_*.png
82
+ output_*.txt
83
+ results.json
84
+ save/
85
+ save_current/
86
+ site/
87
+ src/neurobrix/CLAUDE.md
88
+ src/neurobrix/config/hardware/default.yml
89
+ src/neurobrix/config/hardware/default-*.yml
90
+ test-*.json
91
+ test-*.png
92
+ test-*.txt
93
+ test_*.py
94
+ # nbxtensor's own tests travel with the library (R-NBXT 10: an export ships with its test)
95
+ !nbxtensor/tests/test_*.py
96
+
97
+ # Stray run/upscale outputs at repo root — the CLI defaults to writing
98
+ # `output_<model>.<ext>` in cwd when `--output` is not provided. The
99
+ # regression harness now passes an explicit --output under /tmp (see
100
+ # tests/regression/test_all_models.py:_run_out_path), but any other
101
+ # invocation that forgets --output must not leak into the repo root.
102
+ output_*.png
103
+ output_*.wav
104
+ output_*.txt
105
+ output_*.mp4
106
+ output_*.jpg
107
+ output_*.jpeg
108
+
109
+ # macOS resource-fork "shadow" files. These appear when the project
110
+ # tree is browsed from macOS (NFS / SMB share) and are never useful
111
+ # in a Linux repo.
112
+ ._*
113
+ .DS_Store
114
+ tests/*
115
+ # The tests package marker itself. Without it a FRESH checkout cannot collect
116
+ # the suite at all: any test importing through the `tests.` package path (e.g.
117
+ # tests/unit/flow/test_decoder_kv_wiring.py) raises
118
+ # "ModuleNotFoundError: No module named 'tests.unit'". The working repo hid this
119
+ # because the file was present-but-untracked; a worktree created from a commit
120
+ # to run a control suite has no such luck (2026-09-10).
121
+ !tests/__init__.py
122
+ # The suite-wide conftest, tracked for the same reason the package marker is: it
123
+ # is part of what makes the suite RUNNABLE, not a local convenience. It converts
124
+ # the one failure that means "this host has no GPU" into a skip, so the unit
125
+ # suite can run beside a timed campaign behind the workshop's device door
126
+ # (2026-09-16: 42 of 56 failures under that door were that single fact). A
127
+ # machine that checks out this repo without it gets those 42 reds back.
128
+ !tests/conftest.py
129
+ # Regression harness — tracked explicitly. Everything else under tests/
130
+ # (scratch, __pycache__, etc.) stays ignored via the `tests/*` rule above,
131
+ # which matches only immediate children of tests/.
132
+ !tests/regression/
133
+ !tests/regression/__init__.py
134
+ !tests/regression/conftest.py
135
+ !tests/regression/test_all_models.py
136
+ !tests/regression/test_serve_warm.py
137
+ !tests/regression/test_a_container_with_an_rng_op_runs_twice_and_matches.py
138
+ !tests/regression/test_a_streamed_component_computes_what_it_computes_whole.py
139
+ !tests/regression/test_a_streamed_lm_cuts_the_graph_prism_cut.py
140
+ !tests/regression/test_a_streamed_stage_serves_the_flow.py
141
+ !tests/regression/test_a_streamed_piece_receives_every_list_member.py
142
+
143
+ # The failure register is TRACKED, and named here rather than force-added for
144
+ # the reason the comment below gives. It is the set of failing node ids, so
145
+ # that "no new failures" after a battery is a diff the machine produces and
146
+ # not a sentence its author writes — unverifiable by the reader and by the
147
+ # author alike. See tools/failure_register.py.
148
+ !tests/failure_register.txt
149
+
150
+ # The unit/integration SUITES are tracked too. The broad `test_*.py`
151
+ # rule far above is meant for stray scratch scripts at the repo root,
152
+ # not for the test tree — but it caught every new test under tests/,
153
+ # so each one had to be `git add -f`ed by hand (66 files accumulated
154
+ # that way). Force-adding an ignored path is exactly the habit that
155
+ # has twice put content in this repo that was ignored BY DESIGN, so
156
+ # the pattern is fixed here rather than worked around each time.
157
+ # `tests/scratch/`, `__pycache__` and every other immediate child of
158
+ # tests/ stay ignored via the `tests/*` rule above.
159
+ !tests/unit/
160
+ !tests/unit/**
161
+ !tests/integration/
162
+ !tests/integration/**
163
+ # nbxtensor's backend conformance suite (docs/nbxtensor/BACKENDS.md), tracked like the unit suites.
164
+ !tests/nbxtensor_backend_conformance/
165
+ !tests/nbxtensor_backend_conformance/**
166
+ # ...but re-ignore the build detritus the broad negation would let back in.
167
+ tests/unit/**/__pycache__/
168
+ tests/integration/**/__pycache__/
169
+ tests/nbxtensor_backend_conformance/**/__pycache__/
170
+ tests/unit/**/*.pyc
171
+ tests/integration/**/*.pyc
172
+ !tests/regression/test_upscale_offtrace.py
173
+ !tests/regression/pytest.ini
174
+ # Unit tests — tracked explicitly (same policy as the regression harness).
175
+ !tests/unit/
176
+ !tests/unit/__init__.py
177
+ !tests/unit/kernels/
178
+ !tests/unit/kernels/__init__.py
179
+ !tests/unit/audio/
180
+ !tests/unit/audio/__init__.py
181
+ !tests/unit/audio/test_kokoro_durations.py
182
+ !tests/unit/audio/test_stt_longform.py
183
+ !tests/unit/audio/test_import_purity.py
184
+ !tests/unit/kernels/test_linspace.py
185
+ !tests/unit/kernels/test_alloc_pool_gate.py
186
+ !tests/unit/kernels/test_index_select_negative.py
187
+ !tests/unit/runtime/
188
+ !tests/unit/runtime/__init__.py
189
+ !tests/unit/runtime/test_promotion_exact_sizes.py
190
+ !tests/unit/kernels/test_index_put.py
191
+ !tests/unit/kernels/test_bmm_batched.py
192
+ !tests/unit/dtype/
193
+ !tests/unit/dtype/__init__.py
194
+ !tests/unit/dtype/test_engine_doctrine.py
195
+ !tests/unit/dtype/test_auto_fp32_family_aware.py
196
+ !tests/unit/runtime/
197
+ !tests/unit/runtime/__init__.py
198
+ !tests/unit/runtime/test_seq_promotion_sum_offset.py
199
+ !tests/unit/runtime/test_registry_flags_zero_fallback.py
200
+ !tests/unit/runtime/test_next_token_diffusion_require_default.py
201
+ !tests/unit/runtime/test_loop_state_finite_gate.py
202
+ !tests/unit/runtime/test_check_nan_inf_guard.py
203
+ !tests/unit/runtime/test_cfg_optional_port.py
204
+ !tests/unit/runtime/test_flow_memory_and_dtype_resolver.py
205
+ !tests/unit/dtype/test_force_fp32_zero_fallback.py
206
+ !tests/unit/tiling/
207
+ !tests/unit/tiling/__init__.py
208
+ !tests/unit/tiling/test_chain_merge_failure_raises.py
209
+ !tests/unit/triton/
210
+ !tests/unit/triton/__init__.py
211
+ !tests/unit/triton/test_device_parse_and_flow_memory.py
212
+ !tests/unit/agent/
213
+ !tests/unit/agent/__init__.py
214
+ !tests/unit/agent/test_loop.py
215
+ !tests/unit/agent/test_parsers.py
216
+ !tests/unit/agent/test_purity.py
217
+ !tests/unit/agent/test_sandbox.py
218
+ !tests/regression/README.md
219
+ !tests/regression/golden/
220
+ !tests/regression/golden/*.txt
221
+ tmp/
222
+ todos/
223
+ vendors/
224
+ # Track the runtime data-driven hardware configs (R10) — same status
225
+ # as the already-tracked config/families/*.yml. Any OTHER vendors/
226
+ # tree (per-model build vendoring, R25) stays ignored by the line
227
+ # above.
228
+ !src/neurobrix/config/vendors/
229
+ !src/neurobrix/config/vendors/**
230
+ venv/
231
+ wandb/
232
+
233
+ # Internal-only Makefile (regression harness targets).
234
+ Makefile
235
+
236
+ # Test artefacts generated locally — never committed.
237
+ output_*.wav
238
+ output_*.png
239
+ output_*.mp4
240
+ test_speech_ref.*
241
+ test_upscale_input.*
242
+ .zo_cleanroom/
243
+
244
+ # Root-level development reports / diagnostics — never committed (archive or
245
+ # delete locally; they are not part of the public engine).
246
+ /audit_*.md
247
+ /*_signature.md
248
+ /*_diagnostic*.md
249
+ /*_chain_signature.md
250
+
251
+ # Confidential — internal doctrine / debt registry, never in the public repo (2026-07-21)
252
+ CLAUDE.md
253
+ /DETTE.md
254
+
255
+ # dev registry pointer (see registry_flags._find_registry_yaml)
256
+ .nbx_registry
257
+ # S2 long-clip fixture: derived locally (recipe in S2_STT_PREREG.md), too large for the repo
258
+ benchmarks/assets/librivox_aow0506_600s.wav
259
+ benchmarks/micro/_noassert/
260
+ # Benchmark result sets keep their measurements (the per-cell JSONs and the index); the run logs
261
+ # beside them are not part of the record — none is tracked anywhere under benchmarks/results/.
262
+ benchmarks/results/**/*.log
263
+
264
+ # --- Secrets: nothing that carries a credential enters this repository ------
265
+ # Added 2026-09-05 when the Mac took the Dell's own git identity. The key and
266
+ # the GitLab credentials live OUTSIDE the work tree (~/.ssh and
267
+ # ~/.config/neurobrix), which is the real protection; this list is the second
268
+ # line, so a copy made inside the tree by accident is refused rather than
269
+ # committed. Deliberately broad: a false positive costs one `git add -f`, a
270
+ # false negative costs a rotated credential and a rewritten history.
271
+ .env
272
+ .env.*
273
+ *.env
274
+ !.env.example
275
+ *credential*
276
+ *credentials*
277
+ .git-credentials
278
+ .netrc
279
+ _netrc
280
+ id_rsa
281
+ id_dsa
282
+ id_ecdsa
283
+ id_ed25519
284
+ id_*_neurobrix
285
+ *.pem
286
+ *.p12
287
+ *.pfx
288
+ *.keystore
289
+ *_rsa
290
+ *_ed25519
291
+ *.key
292
+ !**/*.pub
293
+ secrets.*
294
+ *.secret
295
+
296
+ # The certifier's per-file fcntl lock (kernels/autotune_certify.py::_write_file), transient.
297
+ src/neurobrix/config/autotune/**/*.json.lock
298
+
299
+ # the machine workshop root inside the repo holds run logs only — never tracked.
300
+ # ANCHORED: a bare `nbx/` matches at every depth, so it also swallowed the engine's own
301
+ # `src/neurobrix/nbx/` package and `tests/unit/nbx/`. The tracked sources there predate the
302
+ # rule and survived (ignore rules do not apply to tracked files), but every NEW file under
303
+ # either path was untracked in silence — measured 2026-09-22, when the gate for the cache
304
+ # door was left out of its own commit and the commit message described a test that was not
305
+ # in it. `/nbx/` is the workshop and nothing else.
306
+ /nbx/
307
+
308
+ # the census table writers' lock files (tools/census_table.py, certified_census.py)
309
+ src/neurobrix/config/census/**/*.jsonl.lock
@@ -7,6 +7,99 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.0.9] - 2026-11-09
11
+
12
+ ### Fixed
13
+ - **`python -m nbxtensor install-metal` installs the macOS 14 Metal wheels and CPython 3.10-3.13**: 0.0.8 carried the
14
+ macOS 15 / CPython 3.12 build only and refused every other Python by name. The table now holds the triton-ext release
15
+ 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,
16
+ 3.12 and 3.13, each sha256 read on the downloaded file and equal to the release's SHA256SUMS) beside the macOS 15.0
17
+ build of CPython 3.12. A Python tag may carry one build per minimum macOS: the Mac installs the newest build its
18
+ macOS satisfies (CPython 3.12 on macOS 15 or later keeps the 15.0 build), and a Mac older than every build is
19
+ refused naming the macOS it needs.
20
+ - **The CPU pool runs on macOS 14**: Accelerate before macOS 15 has no `BLASSetThreading`, and 0.0.8 then knew no BLAS
21
+ of the process and raised at the pool's setup, so every Triton run stopped at start on macOS 14. That Accelerate is
22
+ now its own kind (`ACCELERATE_UNCONTROLLED`): its threads are not set (results unchanged; a `parallel_for` piece may
23
+ use Accelerate's own threads beside the pool's), `python -m nbxtensor doctor` names it, and `VECLIB_MAXIMUM_THREADS=1`
24
+ set before Python starts stays the user's choice (nbxtensor never sets it).
25
+
26
+ ## [0.0.8] - 2026-11-09
27
+
28
+ ### Added
29
+ - **Integrated GPUs described from the device**: `backend.level_zero.gpu_facts` reads an Intel GPU's integrated flag,
30
+ usable memory and largest single allocation (`maxMemAllocSize`) from Level Zero; `backend.device_files.for_pci_id`
31
+ finds a device file by PCI id; `backend.install_help.pci_display_devices` lists the display controllers on the PCI
32
+ bus. Device files for Meteor Lake, Arrow Lake (H, S) and Panther Lake (H, U), the compile targets Intel's Triton
33
+ knows (copied from the closest validated file: unvalidated on hardware, said in each file).
34
+ - **Level Zero lists only the GPUs a device file describes**: a GPU no backend drives is no longer usable as device 0.
35
+ - **A certification carries one proof per code generator**: `autotune_certified` keeps an entry's (or memory-class
36
+ variant's) `proof` and adds the proofs of the same configuration under other generators in `also_proven`; where the
37
+ stored configuration failed the oracle under a new generator and a sweep chose another, that certification is filed
38
+ in the class's `alternates`. A re-proof under a new generator therefore adds its proof and never un-serves another
39
+ build (macOS 14 and 15 Metal wheels with byte-identical kernels are both served); a re-proof under the same
40
+ generator replaces that generator's proof only. Serving picks the card's memory class, then the certification one
41
+ of whose proofs names the running generator, within that class only. Both fields are additive: a reader that knows
42
+ `proof` alone reads a file as before. New names: `certification_proofs`, `class_certifications`,
43
+ `entry_certifications`, `entry_proofs`, `certification_for_generator`, `class_proven_since`, `reproof_source`,
44
+ `ALSO_PROVEN`, `ALTERNATES`.
45
+ - **Paged KV cache and its session bookkeeping**: `nbxtensor.memory.paged_kv.PagedTritonKVCache` (per-layer page
46
+ pools on each layer's card, the block table, append and decode through it, `truncate`, `gather_pages`), moved from
47
+ the engine with an `on_reallocate(uid, generation)` hook in place of its call into the engine's replay plans;
48
+ `chunk_attention`, `chunk_mask` and `require_causal_mask`: a prefill chunk at a cached length attending over the
49
+ cache's keys gathered as whole pages, with an explicit 0/-inf mask.
50
+ - **`nbxtensor.memory.pages`** (moved from the engine): the page pool, page tables, reference counts and fenced
51
+ release. Pure bookkeeping, standard library only: importing it loads no triton and no torch, so the engine's
52
+ compiled (torch) cache reads the same tables.
53
+ - **`nbxtensor.memory.kv_session`** (moved from the engine): the positions a serving session's cache holds between
54
+ turns, matched by token ids (`KVSession`, `held_ids`, `forgetting_on_failure`), and `chunk_rows`, the rows of each
55
+ prefill chunk.
56
+ - **`paged_kv_gather`** (`paged_kv_gather_kernel`): a layer's K or V of every sequence as whole pages, contiguous,
57
+ heads re-expanded to the query heads, widened exactly to the output dtype.
58
+ - **`autotune_certified.served_certification`**: the certification served one key on a memory class, read by a planner
59
+ that holds no kernel tuner; `generator=` takes the running generator a caller pricing many keys asked once (on a
60
+ process with no card visible, each ask probes the driver again).
61
+ - **`nbxtensor.terminal`, the one terminal rule of a command line built on the library** (`python -m nbxtensor`,
62
+ `neurobrix`): one stderr handler, INFO by default, `-v` the developer lines, `-vv` an error's traceback too, and
63
+ `NBX_LOG=debug|info|warning|error` from the environment (a name that is no level is refused by name).
64
+ - **`backend.install_help.compiler_missing`**: names a machine without the C (or C++) compiler Triton builds a kernel
65
+ with, read from the frame Triton raises in (`triton/runtime/build.py`, `_find_compiler`), never from the text.
66
+ - **`backend.install_help.hidden_gpus`** (the GPUs the backend's visibility variable — the table's new `visible_env`,
67
+ `CUDA_VISIBLE_DEVICES` on CUDA, ROCm's three on HIP — hides from this process, against the PCI bus) and
68
+ **`backend.cpu_backend.triton_cpu_installed`**.
69
+ - **`io.read_rate.read_seconds`** (how long this storage takes to read so many bytes, measured now) and
70
+ **`memory.trace_replay.first_replay` / `vmm_granularity`** (the chunk probe's first replay made ahead, its cost
71
+ pricing the others).
72
+ - **`pointer_tables.TablePins` and `end_call_pins`**: a holder for the pins of per-call pointer tables built for a cache
73
+ of experts that outlives the call. The cache ends them before it lets the pages they cover go, and at its release; a
74
+ table over wraps already held ends its pins at once.
75
+
76
+ ### Changed
77
+ - **A kernel served through a generator alias says so in the debug log, not on the terminal**: the line
78
+ appeared once per kernel at default verbosity (6 to 9 lines on a plain run under a macOS 14 wheel); it is a
79
+ developer line (`-v` / `NBX_LOG=debug`), and the plan's explanation still counts the kernels served that way.
80
+ - **An out-of-tree backend's certificate identity no longer includes its Python binding**: the CPython extension module
81
+ tagged for one Python (`*.cpython-312-*.so`, `*.cp312-*.pyd`) is built per Python and generates no code, so the Metal wheels for Python
82
+ 3.10-3.13 share one identity when their code generator is the same bytes. Proven on 235-236 kernels per wheel set: the
83
+ compiled .ttir, .ttgir, .msl and .metallib are byte-identical. The identity of an installed backend changes once:
84
+ its certificates are re-labelled or re-proven under the new identity (`neurobrix autotune certify --reprove-generator`).
85
+ - **The library logs; it does not print**: every line goes through `logging`, one logger per module, and importing it
86
+ installs no handler. Its developer lines are DEBUG; warnings and errors reach a command line's terminal.
87
+ - **`python -m nbxtensor doctor` lists the GPUs the process sees**: it listed every display controller on the host's
88
+ PCI bus (four in a container given one); the others are counted as not visible here.
89
+ - **`python -m nbxtensor install-metal` downloads nothing when the pinned wheels are already installed**, and says so in
90
+ one line (it re-downloaded 131 MB on every call); pip's own lines only with `NBX_LOG=debug`.
91
+ - **Attribution**: author, maintainer and copyright holder Hocine Benkelaya (contact@neurobrix.es); a NOTICE file ships
92
+ beside the LICENSE (supported and funded by Neural Network Holding Ltd, commercial distribution by WizWorks OÜ); the
93
+ README carries the same attribution.
94
+
95
+ ### Fixed
96
+ - **No Triton warning at the first compile of `masked_fill`**: a uint8 mask reached `tl.where` as its condition, which
97
+ Triton calls deprecated; the condition is cast to a boolean, the compiled code identical.
98
+ - **A mapped mixture-of-experts store no longer keeps every decoded expert resident on Apple GPUs**: a per-call
99
+ table's pins ended at the call (re-wrapping the store's arena at a new address while it could still be read) or not at
100
+ all (the decode path: a wrap left over every expert the store had let go). Held by `TablePins`, they end when the
101
+ store says.
102
+
10
103
  ## [0.0.5] - 2026-11-07
11
104
 
12
105
  ### Fixed
@@ -180,7 +273,8 @@ memory; the fix is in test).
180
273
  - **`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.
181
274
  - **`conv1d_forward_kernel`**: launched by no route (a 1-D convolution runs through `conv2d`).
182
275
 
183
- [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.5...HEAD
276
+ [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.8...HEAD
277
+ [0.0.8]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.5...v0.0.8
184
278
  [0.0.5]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.4...v0.0.5
185
279
  [0.0.4]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.3...v0.0.4
186
280
  [0.0.3]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.2...v0.0.3
@@ -174,7 +174,7 @@
174
174
 
175
175
  END OF TERMS AND CONDITIONS
176
176
 
177
- Copyright 2025 Neural Networks Holding LTD
177
+ Copyright 2025–2026 Hocine Benkelaya
178
178
 
179
179
  Licensed under the Apache License, Version 2.0 (the "License");
180
180
  you may not use this file except in compliance with the License.
nbxtensor-0.0.9/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ nbxtensor
2
+ Copyright 2025–2026 Hocine Benkelaya
3
+
4
+ Supported and funded by Neural Network Holding Ltd (https://neuralnetworkholding.com).
5
+ Commercial distribution by WizWorks OÜ (https://wizworks.io).
6
+
7
+ This product is released under the Apache License 2.0 (LICENSE).
8
+ Third-party code it includes, and its licenses, are listed in THIRD_PARTY_NOTICES.md.
@@ -1,14 +1,16 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nbxtensor
3
- Version: 0.0.5
3
+ Version: 0.0.9
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: NeuroBrix
9
+ Author-email: Hocine Benkelaya <contact@neurobrix.es>
10
+ Maintainer-email: Hocine Benkelaya <contact@neurobrix.es>
10
11
  License: Apache-2.0
11
12
  License-File: LICENSE
13
+ License-File: NOTICE
12
14
  Requires-Python: >=3.10
13
15
  Requires-Dist: numpy
14
16
  Requires-Dist: nvidia-cuda-runtime-cu12; platform_system == 'Linux'
@@ -84,7 +86,7 @@ the keys (`pip install neurobrix`), with these commands (run as written on a cle
84
86
  1. Run the models you use. Every key no certificate covers is swept and kept in `~/.neurobrix/replay_cache/`:
85
87
 
86
88
  ```
87
- neurobrix run --model TinyLlama-1.1B-Chat-v1.0 --triton --prompt "Hello" --max-tokens 32
89
+ neurobrix run --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 --triton --prompt "Hello" --max-tokens 32
88
90
  ```
89
91
 
90
92
  2. Certify the keys your card formed — every candidate setting is run against a float64 oracle and timed; the proofs are
@@ -99,7 +101,7 @@ the keys (`pip install neurobrix`), with these commands (run as written on a cle
99
101
  3. Check that they are served: a certified-only run uses only certificates and fails, naming the key, if one is missing:
100
102
 
101
103
  ```
102
- NEUROBRIX_AUTOTUNE_CERTIFIED_DIR=./my-certificates neurobrix run --model TinyLlama-1.1B-Chat-v1.0 --triton \
104
+ NEUROBRIX_AUTOTUNE_CERTIFIED_DIR=./my-certificates neurobrix run --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 --triton \
103
105
  --prompt "Hello" --max-tokens 32 --certified-only
104
106
  ```
105
107
 
@@ -507,3 +509,7 @@ installed version.
507
509
  ## License
508
510
 
509
511
  Apache 2.0.
512
+
513
+ © 2025–2026 Hocine Benkelaya. NeuroBrix engine released under the Apache License 2.0.
514
+
515
+ Developed by Hocine Benkelaya · Supported and funded by [Neural Network Holding Ltd](https://neuralnetworkholding.com) · Commercial distribution by [WizWorks OÜ](https://wizworks.io).
@@ -63,7 +63,7 @@ the keys (`pip install neurobrix`), with these commands (run as written on a cle
63
63
  1. Run the models you use. Every key no certificate covers is swept and kept in `~/.neurobrix/replay_cache/`:
64
64
 
65
65
  ```
66
- neurobrix run --model TinyLlama-1.1B-Chat-v1.0 --triton --prompt "Hello" --max-tokens 32
66
+ neurobrix run --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 --triton --prompt "Hello" --max-tokens 32
67
67
  ```
68
68
 
69
69
  2. Certify the keys your card formed — every candidate setting is run against a float64 oracle and timed; the proofs are
@@ -78,7 +78,7 @@ the keys (`pip install neurobrix`), with these commands (run as written on a cle
78
78
  3. Check that they are served: a certified-only run uses only certificates and fails, naming the key, if one is missing:
79
79
 
80
80
  ```
81
- NEUROBRIX_AUTOTUNE_CERTIFIED_DIR=./my-certificates neurobrix run --model TinyLlama-1.1B-Chat-v1.0 --triton \
81
+ NEUROBRIX_AUTOTUNE_CERTIFIED_DIR=./my-certificates neurobrix run --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 --triton \
82
82
  --prompt "Hello" --max-tokens 32 --certified-only
83
83
  ```
84
84
 
@@ -486,3 +486,7 @@ installed version.
486
486
  ## License
487
487
 
488
488
  Apache 2.0.
489
+
490
+ © 2025–2026 Hocine Benkelaya. NeuroBrix engine released under the Apache License 2.0.
491
+
492
+ Developed by Hocine Benkelaya · Supported and funded by [Neural Network Holding Ltd](https://neuralnetworkholding.com) · Commercial distribution by [WizWorks OÜ](https://wizworks.io).
@@ -4,12 +4,13 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nbxtensor"
7
- version = "0.0.5"
7
+ version = "0.0.9"
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 = "NeuroBrix" }]
12
+ authors = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.es" }]
13
+ maintainers = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.es" }]
13
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:
14
15
  # nbxtensor never imports torch (R-NBXT 6). Exchange with any other tensor
15
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.5"
16
+ __version__ = "0.0.9"
17
17
  __all__: list = []
@@ -18,13 +18,29 @@ 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
24
31
 
25
32
 
33
+ def _configure_terminal() -> None:
34
+ """The one handler of nbxtensor's command line (the library installs none): `nbxtensor.terminal`'s rule."""
35
+ from nbxtensor import terminal
36
+ try:
37
+ terminal.configure(*terminal.resolve(terminal.verbosity(sys.argv[1:])))
38
+ except terminal.LogLevelRefused as exc:
39
+ raise SystemExit(f"Error: {exc}")
40
+
41
+
26
42
  def main(argv=None) -> int:
27
- argv = sys.argv[1:] if argv is None else argv
43
+ argv = [a for a in (sys.argv[1:] if argv is None else argv) if a != "--verbose" and not (a[:2] == "-v" and set(a[1:]) == {"v"})]
28
44
  if argv[:1] == ["doctor"]:
29
45
  return doctor()
30
46
  if argv[:1] == ["install-metal"] and set(argv[1:]) <= {"--dry-run"}:
@@ -36,4 +52,5 @@ def main(argv=None) -> int:
36
52
 
37
53
 
38
54
  if __name__ == "__main__":
55
+ _configure_terminal()
39
56
  raise SystemExit(main())
@@ -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)")
@@ -97,6 +97,11 @@ def _triton_cpu_available() -> bool:
97
97
  return False
98
98
 
99
99
 
100
+ def triton_cpu_installed() -> bool:
101
+ """Whether upstream `triton-cpu` is installed (the Triton engine's CPU backend), asked without importing it."""
102
+ return _triton_cpu_available()
103
+
104
+
100
105
  def ensure_triton_cpu_or_raise() -> None:
101
106
  """Verify `triton-cpu` is installed when we're on a CPU-only profile.
102
107