nbxtensor 0.0.5__tar.gz → 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. nbxtensor-0.0.8/.gitignore +309 -0
  2. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/CHANGELOG.md +79 -1
  3. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/LICENSE +1 -1
  4. nbxtensor-0.0.8/NOTICE +8 -0
  5. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/PKG-INFO +10 -4
  6. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/README.md +6 -2
  7. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/pyproject.toml +3 -2
  8. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/__init__.py +1 -1
  9. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/__main__.py +11 -1
  10. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/cpu_backend.py +5 -0
  11. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/device_facts.py +6 -2
  12. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/device_files.py +13 -1
  13. nbxtensor-0.0.8/src/nbxtensor/backend/devices/intel/arl_h.yml +207 -0
  14. nbxtensor-0.0.8/src/nbxtensor/backend/devices/intel/arl_s.yml +209 -0
  15. nbxtensor-0.0.8/src/nbxtensor/backend/devices/intel/mtl.yml +206 -0
  16. nbxtensor-0.0.8/src/nbxtensor/backend/devices/intel/ptl_h.yml +206 -0
  17. nbxtensor-0.0.8/src/nbxtensor/backend/devices/intel/ptl_u.yml +206 -0
  18. nbxtensor-0.0.8/src/nbxtensor/backend/install_help.py +234 -0
  19. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/install_metal.py +29 -1
  20. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/launcher.py +59 -61
  21. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/launcher_contract.py +6 -5
  22. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/level_zero.py +44 -8
  23. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/metal_backend.py +5 -4
  24. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/runtime.py +4 -0
  25. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/triton_ext_driver.py +20 -19
  26. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/io/read_rate.py +8 -0
  27. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/allocator.py +18 -16
  28. nbxtensor-0.0.8/src/nbxtensor/memory/kv_session.py +124 -0
  29. nbxtensor-0.0.8/src/nbxtensor/memory/paged_kv.py +467 -0
  30. nbxtensor-0.0.8/src/nbxtensor/memory/pages.py +182 -0
  31. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/pointer_tables.py +43 -0
  32. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/trace_replay.py +39 -6
  33. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/_configs.py +10 -14
  34. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/attention_wrappers.py +48 -12
  35. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/autotune_cache.py +4 -2
  36. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/autotune_certified.py +398 -65
  37. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/autotune_refusals.py +6 -4
  38. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/conv_wrappers.py +6 -4
  39. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/index_wrappers.py +4 -2
  40. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/linalg_wrappers.py +5 -3
  41. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/masked_fill.py +4 -1
  42. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/paged_decode_attn.py +28 -0
  43. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/residual_chain.py +8 -7
  44. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/screen_oracle.py +7 -5
  45. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/wrappers.py +15 -14
  46. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/tensor.py +4 -3
  47. nbxtensor-0.0.8/src/nbxtensor/terminal.py +90 -0
  48. nbxtensor-0.0.5/src/nbxtensor/backend/install_help.py +0 -130
  49. nbxtensor-0.0.5/tests/test_a_setting_not_served_says_why.py +0 -32
  50. nbxtensor-0.0.5/tests/test_a_small_tensor_never_pins_a_large_block.py +0 -52
  51. nbxtensor-0.0.5/tests/test_a_sweep_refused_everywhere_says_so.py +0 -35
  52. nbxtensor-0.0.5/tests/test_a_triton_kernel_compiles_for_amd_and_launches_through_hip.py +0 -115
  53. nbxtensor-0.0.5/tests/test_allocator_interceptor.py +0 -159
  54. nbxtensor-0.0.5/tests/test_array_api_promotion.py +0 -70
  55. nbxtensor-0.0.5/tests/test_cpu_pool.py +0 -85
  56. nbxtensor-0.0.5/tests/test_device_facts.py +0 -55
  57. nbxtensor-0.0.5/tests/test_device_files.py +0 -25
  58. nbxtensor-0.0.5/tests/test_device_memory.py +0 -63
  59. nbxtensor-0.0.5/tests/test_dtype_convert.py +0 -58
  60. nbxtensor-0.0.5/tests/test_dtype_outputs.py +0 -53
  61. nbxtensor-0.0.5/tests/test_dtype_promotion.py +0 -60
  62. nbxtensor-0.0.5/tests/test_host.py +0 -50
  63. nbxtensor-0.0.5/tests/test_install_metal_fetches_only_what_it_names.py +0 -117
  64. nbxtensor-0.0.5/tests/test_io_bf16_split.py +0 -20
  65. nbxtensor-0.0.5/tests/test_io_read_rate.py +0 -85
  66. nbxtensor-0.0.5/tests/test_it_installs_on_a_mac.py +0 -23
  67. nbxtensor-0.0.5/tests/test_nbx_dtype.py +0 -37
  68. nbxtensor-0.0.5/tests/test_no_environment_switch_changes_a_kernel.py +0 -24
  69. nbxtensor-0.0.5/tests/test_ops_cost.py +0 -63
  70. nbxtensor-0.0.5/tests/test_policy.py +0 -55
  71. nbxtensor-0.0.5/tests/test_readme.py +0 -39
  72. nbxtensor-0.0.5/tests/test_shape.py +0 -56
  73. nbxtensor-0.0.5/tests/test_the_backend_is_the_card_on_the_machine.py +0 -19
  74. nbxtensor-0.0.5/tests/test_the_compiler_key_is_prewarmed.py +0 -23
  75. nbxtensor-0.0.5/tests/test_the_hip_driver_keeps_the_launch_contract.py +0 -174
  76. nbxtensor-0.0.5/tests/test_the_launcher_refuses_a_backend_it_has_no_driver_for.py +0 -42
  77. nbxtensor-0.0.5/tests/test_the_level_zero_backend_keeps_its_contracts.py +0 -403
  78. nbxtensor-0.0.5/tests/test_the_malloc_trace_names_the_wrapper.py +0 -25
  79. nbxtensor-0.0.5/tests/test_the_metal_dispatch_facts_are_declared_or_refused.py +0 -31
  80. nbxtensor-0.0.5/tests/test_third_party_notices.py +0 -81
  81. nbxtensor-0.0.5/tests/test_version.py +0 -23
  82. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
  83. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/CONTRIBUTING.md +0 -0
  84. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/THIRD_PARTY_NOTICES.md +0 -0
  85. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/assets/logo.png +0 -0
  86. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/__init__.py +0 -0
  87. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/capabilities.py +0 -0
  88. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/cpu/__init__.py +0 -0
  89. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/cpu/blas.py +0 -0
  90. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/cpu/pool.py +0 -0
  91. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/device_names.py +0 -0
  92. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
  93. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
  94. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
  95. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
  96. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
  97. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
  98. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
  99. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
  100. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
  101. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
  102. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
  103. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
  104. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
  105. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
  106. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
  107. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
  108. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
  109. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
  110. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
  111. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
  112. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
  113. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
  114. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
  115. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
  116. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
  117. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
  118. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
  119. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
  120. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
  121. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
  122. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
  123. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
  124. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
  125. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
  126. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/faults.py +0 -0
  127. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/host_memory.py +0 -0
  128. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/install_steps.yml +0 -0
  129. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/level_zero_driver.py +0 -0
  130. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/libnames.py +0 -0
  131. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/metal_device.py +0 -0
  132. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/process_memory.py +0 -0
  133. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/backend/replay_graph.py +0 -0
  134. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/dtype/__init__.py +0 -0
  135. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/dtype/convert.py +0 -0
  136. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/dtype/dtypes.yml +0 -0
  137. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/dtype/itemsize.py +0 -0
  138. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
  139. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/dtype/operands.py +0 -0
  140. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/dtype/outputs.py +0 -0
  141. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/dtype/policy.py +0 -0
  142. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/dtype/policy.yml +0 -0
  143. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/dtype/promotion.py +0 -0
  144. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/host.py +0 -0
  145. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/io/__init__.py +0 -0
  146. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/io/safetensors.py +0 -0
  147. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/__init__.py +0 -0
  148. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/arena.py +0 -0
  149. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/device_memory.py +0 -0
  150. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/device_transfer.py +0 -0
  151. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/layout.py +0 -0
  152. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/memory_pool.py +0 -0
  153. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/metal.py +0 -0
  154. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/oom_advice.py +0 -0
  155. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/pool.py +0 -0
  156. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/shadow.py +0 -0
  157. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/slab.py +0 -0
  158. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
  159. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/memory/vmm.py +0 -0
  160. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/__init__.py +0 -0
  161. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/_autotune_policy.py +0 -0
  162. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/_common.py +0 -0
  163. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/_cost.py +0 -0
  164. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/abs.py +0 -0
  165. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
  166. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/add.py +0 -0
  167. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/addcdiv.py +0 -0
  168. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/addcmul.py +0 -0
  169. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/addmv_op.py +0 -0
  170. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/addr.py +0 -0
  171. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/all_reduce.py +0 -0
  172. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/amax.py +0 -0
  173. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/any_reduce.py +0 -0
  174. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/arange_op.py +0 -0
  175. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/argmax.py +0 -0
  176. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/argmin.py +0 -0
  177. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/atan2.py +0 -0
  178. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/autotune_bucket.py +0 -0
  179. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/autotune_settings.py +0 -0
  180. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/avg_pool2d.py +0 -0
  181. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/baddbmm_op.py +0 -0
  182. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/batch_norm.py +0 -0
  183. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/binary_strided.py +0 -0
  184. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/bitwise_and.py +0 -0
  185. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
  186. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/bitwise_not.py +0 -0
  187. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/bitwise_or.py +0 -0
  188. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
  189. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/bucketize.py +0 -0
  190. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/cat_op.py +0 -0
  191. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/celu.py +0 -0
  192. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/certified_index.py +0 -0
  193. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/clamp.py +0 -0
  194. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/clamp_min.py +0 -0
  195. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/conv2d.py +0 -0
  196. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
  197. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
  198. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
  199. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/copy.py +0 -0
  200. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/copy_op.py +0 -0
  201. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/cos.py +0 -0
  202. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/count_nonzero.py +0 -0
  203. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/cross_entropy.py +0 -0
  204. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/cummax.py +0 -0
  205. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/cummin.py +0 -0
  206. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/cumsum.py +0 -0
  207. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
  208. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
  209. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/dequant_gemv.py +0 -0
  210. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/dft.py +0 -0
  211. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/dispatch.py +0 -0
  212. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/div.py +0 -0
  213. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/dot_op.py +0 -0
  214. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/dropout.py +0 -0
  215. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/dtype_convert.py +0 -0
  216. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/elementwise_launch.py +0 -0
  217. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
  218. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/elu.py +0 -0
  219. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/embedding.py +0 -0
  220. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/eq.py +0 -0
  221. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/erf.py +0 -0
  222. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/exp.py +0 -0
  223. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/exp2.py +0 -0
  224. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/fft_op.py +0 -0
  225. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/fill_op.py +0 -0
  226. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/flash_attention.py +0 -0
  227. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
  228. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/flash_decode.py +0 -0
  229. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/flip_op.py +0 -0
  230. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/floor.py +0 -0
  231. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/full_op.py +0 -0
  232. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/fused_moe.py +0 -0
  233. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
  234. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
  235. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/gather_op.py +0 -0
  236. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/ge.py +0 -0
  237. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/gelu.py +0 -0
  238. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/gemv_vec.py +0 -0
  239. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/glu.py +0 -0
  240. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/grid_sampler.py +0 -0
  241. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
  242. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/groupnorm.py +0 -0
  243. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/gt.py +0 -0
  244. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/hardsigmoid.py +0 -0
  245. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/hardswish.py +0 -0
  246. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/im2col.py +0 -0
  247. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/index_add.py +0 -0
  248. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/index_put_op.py +0 -0
  249. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/index_select.py +0 -0
  250. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/isfinite.py +0 -0
  251. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/isinf.py +0 -0
  252. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/isnan.py +0 -0
  253. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/launch_keys.py +0 -0
  254. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/launch_observer.py +0 -0
  255. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/layernorm.py +0 -0
  256. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/le.py +0 -0
  257. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/leaky_relu.py +0 -0
  258. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/lerp.py +0 -0
  259. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/linspace_op.py +0 -0
  260. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/log.py +0 -0
  261. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/log_sigmoid.py +0 -0
  262. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/logical_and.py +0 -0
  263. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/logical_not.py +0 -0
  264. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/logical_or.py +0 -0
  265. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/logical_xor.py +0 -0
  266. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/loss_wrappers.py +0 -0
  267. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/lt.py +0 -0
  268. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/matmul.py +0 -0
  269. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
  270. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/max_pool2d.py +0 -0
  271. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/max_pool3d.py +0 -0
  272. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/max_reduce.py +0 -0
  273. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/maximum.py +0 -0
  274. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/mean.py +0 -0
  275. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/min_reduce.py +0 -0
  276. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/minimum.py +0 -0
  277. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/mish.py +0 -0
  278. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
  279. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/moe_align.py +0 -0
  280. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
  281. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/moe_device_residency.py +0 -0
  282. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/moe_wrappers.py +0 -0
  283. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/mse_loss.py +0 -0
  284. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/mul.py +0 -0
  285. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/nan_to_num.py +0 -0
  286. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/ne.py +0 -0
  287. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/neg.py +0 -0
  288. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/nllloss.py +0 -0
  289. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/nonzero.py +0 -0
  290. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/nonzero_op.py +0 -0
  291. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/norm_wrappers.py +0 -0
  292. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/ones_op.py +0 -0
  293. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/oracles/__init__.py +0 -0
  294. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
  295. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/pad_op.py +0 -0
  296. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
  297. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
  298. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/pow.py +0 -0
  299. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/prod.py +0 -0
  300. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/rand_op.py +0 -0
  301. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/random_wrappers.py +0 -0
  302. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/reciprocal.py +0 -0
  303. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
  304. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/relu.py +0 -0
  305. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/remainder.py +0 -0
  306. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/repeat_interleave.py +0 -0
  307. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/repeat_op.py +0 -0
  308. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/rmsnorm.py +0 -0
  309. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/rope.py +0 -0
  310. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/rsqrt.py +0 -0
  311. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/scaled_softmax.py +0 -0
  312. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/scatter_op.py +0 -0
  313. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/selu.py +0 -0
  314. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/shape_wrappers.py +0 -0
  315. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/sigmoid.py +0 -0
  316. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/silu.py +0 -0
  317. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/sin.py +0 -0
  318. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/softmax.py +0 -0
  319. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/softplus.py +0 -0
  320. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/sort_op.py +0 -0
  321. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
  322. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/sqrt.py +0 -0
  323. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/stack_op.py +0 -0
  324. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/std.py +0 -0
  325. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/strided_copy.py +0 -0
  326. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/sub.py +0 -0
  327. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/sum.py +0 -0
  328. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/tan.py +0 -0
  329. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/tanh.py +0 -0
  330. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/threshold.py +0 -0
  331. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/tiling.yml +0 -0
  332. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/tiling_policy.py +0 -0
  333. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/tiling_sizes.py +0 -0
  334. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/topk.py +0 -0
  335. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/trace_op.py +0 -0
  336. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/tril.py +0 -0
  337. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/triu.py +0 -0
  338. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/unfold_op.py +0 -0
  339. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/unique_op.py +0 -0
  340. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
  341. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
  342. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
  343. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/var.py +0 -0
  344. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/vector_norm.py +0 -0
  345. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/weight_norm.py +0 -0
  346. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/where.py +0 -0
  347. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/ops/zeros_op.py +0 -0
  348. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/quant/__init__.py +0 -0
  349. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/quant/quantized_tensor.py +0 -0
  350. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/random/__init__.py +0 -0
  351. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/random/mt_randn.py +0 -0
  352. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/random/rng_pin.py +0 -0
  353. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/random/rng_stream.py +0 -0
  354. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/random/seeded_draw.py +0 -0
  355. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/src/nbxtensor/shape/__init__.py +0 -0
  356. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/tools/device_key_census.py +0 -0
  357. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/tools/device_key_trace.py +0 -0
  358. {nbxtensor-0.0.5 → nbxtensor-0.0.8}/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,83 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.0.8] - 2026-11-09
11
+
12
+ ### Added
13
+ - **Integrated GPUs described from the device**: `backend.level_zero.gpu_facts` reads an Intel GPU's integrated flag,
14
+ usable memory and largest single allocation (`maxMemAllocSize`) from Level Zero; `backend.device_files.for_pci_id`
15
+ finds a device file by PCI id; `backend.install_help.pci_display_devices` lists the display controllers on the PCI
16
+ bus. Device files for Meteor Lake, Arrow Lake (H, S) and Panther Lake (H, U), the compile targets Intel's Triton
17
+ knows (copied from the closest validated file: unvalidated on hardware, said in each file).
18
+ - **Level Zero lists only the GPUs a device file describes**: a GPU no backend drives is no longer usable as device 0.
19
+ - **A certification carries one proof per code generator**: `autotune_certified` keeps an entry's (or memory-class
20
+ variant's) `proof` and adds the proofs of the same configuration under other generators in `also_proven`; where the
21
+ stored configuration failed the oracle under a new generator and a sweep chose another, that certification is filed
22
+ in the class's `alternates`. A re-proof under a new generator therefore adds its proof and never un-serves another
23
+ build (macOS 14 and 15 Metal wheels with byte-identical kernels are both served); a re-proof under the same
24
+ generator replaces that generator's proof only. Serving picks the card's memory class, then the certification one
25
+ of whose proofs names the running generator, within that class only. Both fields are additive: a reader that knows
26
+ `proof` alone reads a file as before. New names: `certification_proofs`, `class_certifications`,
27
+ `entry_certifications`, `entry_proofs`, `certification_for_generator`, `class_proven_since`, `reproof_source`,
28
+ `ALSO_PROVEN`, `ALTERNATES`.
29
+ - **Paged KV cache and its session bookkeeping**: `nbxtensor.memory.paged_kv.PagedTritonKVCache` (per-layer page
30
+ pools on each layer's card, the block table, append and decode through it, `truncate`, `gather_pages`), moved from
31
+ the engine with an `on_reallocate(uid, generation)` hook in place of its call into the engine's replay plans;
32
+ `chunk_attention`, `chunk_mask` and `require_causal_mask`: a prefill chunk at a cached length attending over the
33
+ cache's keys gathered as whole pages, with an explicit 0/-inf mask.
34
+ - **`nbxtensor.memory.pages`** (moved from the engine): the page pool, page tables, reference counts and fenced
35
+ release. Pure bookkeeping, standard library only: importing it loads no triton and no torch, so the engine's
36
+ compiled (torch) cache reads the same tables.
37
+ - **`nbxtensor.memory.kv_session`** (moved from the engine): the positions a serving session's cache holds between
38
+ turns, matched by token ids (`KVSession`, `held_ids`, `forgetting_on_failure`), and `chunk_rows`, the rows of each
39
+ prefill chunk.
40
+ - **`paged_kv_gather`** (`paged_kv_gather_kernel`): a layer's K or V of every sequence as whole pages, contiguous,
41
+ heads re-expanded to the query heads, widened exactly to the output dtype.
42
+ - **`autotune_certified.served_certification`**: the certification served one key on a memory class, read by a planner
43
+ that holds no kernel tuner; `generator=` takes the running generator a caller pricing many keys asked once (on a
44
+ process with no card visible, each ask probes the driver again).
45
+ - **`nbxtensor.terminal`, the one terminal rule of a command line built on the library** (`python -m nbxtensor`,
46
+ `neurobrix`): one stderr handler, INFO by default, `-v` the developer lines, `-vv` an error's traceback too, and
47
+ `NBX_LOG=debug|info|warning|error` from the environment (a name that is no level is refused by name).
48
+ - **`backend.install_help.compiler_missing`**: names a machine without the C (or C++) compiler Triton builds a kernel
49
+ with, read from the frame Triton raises in (`triton/runtime/build.py`, `_find_compiler`), never from the text.
50
+ - **`backend.install_help.hidden_gpus`** (the GPUs the backend's visibility variable — the table's new `visible_env`,
51
+ `CUDA_VISIBLE_DEVICES` on CUDA, ROCm's three on HIP — hides from this process, against the PCI bus) and
52
+ **`backend.cpu_backend.triton_cpu_installed`**.
53
+ - **`io.read_rate.read_seconds`** (how long this storage takes to read so many bytes, measured now) and
54
+ **`memory.trace_replay.first_replay` / `vmm_granularity`** (the chunk probe's first replay made ahead, its cost
55
+ pricing the others).
56
+ - **`pointer_tables.TablePins` and `end_call_pins`**: a holder for the pins of per-call pointer tables built for a cache
57
+ of experts that outlives the call. The cache ends them before it lets the pages they cover go, and at its release; a
58
+ table over wraps already held ends its pins at once.
59
+
60
+ ### Changed
61
+ - **A kernel served through a generator alias says so in the debug log, not on the terminal**: the line
62
+ appeared once per kernel at default verbosity (6 to 9 lines on a plain run under a macOS 14 wheel); it is a
63
+ developer line (`-v` / `NBX_LOG=debug`), and the plan's explanation still counts the kernels served that way.
64
+ - **An out-of-tree backend's certificate identity no longer includes its Python binding**: the CPython extension module
65
+ tagged for one Python (`*.cpython-312-*.so`, `*.cp312-*.pyd`) is built per Python and generates no code, so the Metal wheels for Python
66
+ 3.10-3.13 share one identity when their code generator is the same bytes. Proven on 235-236 kernels per wheel set: the
67
+ compiled .ttir, .ttgir, .msl and .metallib are byte-identical. The identity of an installed backend changes once:
68
+ its certificates are re-labelled or re-proven under the new identity (`neurobrix autotune certify --reprove-generator`).
69
+ - **The library logs; it does not print**: every line goes through `logging`, one logger per module, and importing it
70
+ installs no handler. Its developer lines are DEBUG; warnings and errors reach a command line's terminal.
71
+ - **`python -m nbxtensor doctor` lists the GPUs the process sees**: it listed every display controller on the host's
72
+ PCI bus (four in a container given one); the others are counted as not visible here.
73
+ - **`python -m nbxtensor install-metal` downloads nothing when the pinned wheels are already installed**, and says so in
74
+ one line (it re-downloaded 131 MB on every call); pip's own lines only with `NBX_LOG=debug`.
75
+ - **Attribution**: author, maintainer and copyright holder Hocine Benkelaya (contact@neurobrix.es); a NOTICE file ships
76
+ beside the LICENSE (supported and funded by Neural Network Holding Ltd, commercial distribution by WizWorks OÜ); the
77
+ README carries the same attribution.
78
+
79
+ ### Fixed
80
+ - **No Triton warning at the first compile of `masked_fill`**: a uint8 mask reached `tl.where` as its condition, which
81
+ Triton calls deprecated; the condition is cast to a boolean, the compiled code identical.
82
+ - **A mapped mixture-of-experts store no longer keeps every decoded expert resident on Apple GPUs**: a per-call
83
+ 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
84
+ all (the decode path: a wrap left over every expert the store had let go). Held by `TablePins`, they end when the
85
+ store says.
86
+
10
87
  ## [0.0.5] - 2026-11-07
11
88
 
12
89
  ### Fixed
@@ -180,7 +257,8 @@ memory; the fix is in test).
180
257
  - **`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
258
  - **`conv1d_forward_kernel`**: launched by no route (a 1-D convolution runs through `conv2d`).
182
259
 
183
- [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.5...HEAD
260
+ [Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.8...HEAD
261
+ [0.0.8]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.5...v0.0.8
184
262
  [0.0.5]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.4...v0.0.5
185
263
  [0.0.4]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.3...v0.0.4
186
264
  [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.8/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.8
4
4
  Summary: Run AI models without PyTorch: tensors, Triton kernels, planned memory and certified tuning, wherever Triton runs — NVIDIA, AMD, Intel and Apple GPUs.
5
5
  Project-URL: Homepage, https://github.com/NeuroBrix/nbxtensor
6
6
  Project-URL: Source, https://github.com/NeuroBrix/nbxtensor
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.8"
8
8
  description = "Run AI models without PyTorch: tensors, Triton kernels, planned memory and certified tuning, wherever Triton runs — NVIDIA, AMD, Intel and Apple GPUs."
9
9
  readme = "README.md"
10
10
  license = { text = "Apache-2.0" }
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.8"
17
17
  __all__: list = []
@@ -23,8 +23,17 @@ def doctor() -> int:
23
23
  return 0
24
24
 
25
25
 
26
+ def _configure_terminal() -> None:
27
+ """The one handler of nbxtensor's command line (the library installs none): `nbxtensor.terminal`'s rule."""
28
+ from nbxtensor import terminal
29
+ try:
30
+ terminal.configure(*terminal.resolve(terminal.verbosity(sys.argv[1:])))
31
+ except terminal.LogLevelRefused as exc:
32
+ raise SystemExit(f"Error: {exc}")
33
+
34
+
26
35
  def main(argv=None) -> int:
27
- argv = sys.argv[1:] if argv is None else argv
36
+ 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
37
  if argv[:1] == ["doctor"]:
29
38
  return doctor()
30
39
  if argv[:1] == ["install-metal"] and set(argv[1:]) <= {"--dry-run"}:
@@ -36,4 +45,5 @@ def main(argv=None) -> int:
36
45
 
37
46
 
38
47
  if __name__ == "__main__":
48
+ _configure_terminal()
39
49
  raise SystemExit(main())
@@ -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
 
@@ -5,8 +5,9 @@ An application may still provide its own answer through `nbxtensor.host` (NeuroB
5
5
  profile declares); with none provided, the library's reading here is the answer.
6
6
 
7
7
  - `host_shares_memory_with_device()`: Metal asks the device (`MTLDevice.hasUnifiedMemory`); CUDA asks the runtime
8
- (`cudaDeviceGetAttribute(cudaDevAttrIntegrated)`, attribute 18 of the CUDA runtime API's `cudaDeviceAttr`). A
9
- backend whose answer is not read here is refused by name.
8
+ (`cudaDeviceGetAttribute(cudaDevAttrIntegrated)`, attribute 18 of the CUDA runtime API's `cudaDeviceAttr`); Level
9
+ Zero asks the device (`ZE_DEVICE_PROPERTY_FLAG_INTEGRATED` of zeDeviceGetProperties). A backend whose answer is not
10
+ read here is refused by name.
10
11
  - `kernels_carry_fp64()`: whether the backend's kernels compute float64 — Metal: no (the Metal Shading Language has
11
12
  no double type); CUDA and HIP: yes (every NVIDIA and AMD GPU computes it, at whatever rate).
12
13
  - `memory_gb(memory_mb)` / `device_memory_gb(device_idx)`: a card's memory rounded to GB, the size a certified kernel
@@ -85,6 +86,9 @@ def host_shares_memory_with_device() -> bool:
85
86
  raise RuntimeError(f"ZERO FALLBACK: cudaDeviceGetAttribute(cudaDevAttrIntegrated) failed (error {rc}): "
86
87
  f"whether this device shares the host's memory is not known")
87
88
  return bool(value.value)
89
+ if name == "xpu":
90
+ from . import level_zero as _ze
91
+ return bool(_ze.runtime().properties().flags & _ze._DEVICE_FLAG_INTEGRATED)
88
92
  raise RuntimeError(f"ZERO FALLBACK: whether a {name!r} device shares the host's memory is not read by nbxtensor; "
89
93
  f"provide it (nbxtensor.host.provide('host_shares_memory_with_device', ...))")
90
94
 
@@ -19,7 +19,8 @@ from typing import Any, Dict, Iterator, Optional, Tuple
19
19
 
20
20
  DEVICES = Path(__file__).resolve().parent / "devices"
21
21
 
22
- __all__ = ["DEVICES", "names", "read", "merge", "merged", "describe", "param", "in_force", "for_arch", "forget"]
22
+ __all__ = ["DEVICES", "names", "read", "merge", "merged", "describe", "param", "in_force", "for_arch", "for_pci_id",
23
+ "forget"]
23
24
 
24
25
 
25
26
  @functools.lru_cache(maxsize=None)
@@ -123,6 +124,17 @@ def for_arch(arch: str) -> Dict[str, Any]:
123
124
  return _configs.vendor_profile_for_arch(arch)
124
125
 
125
126
 
127
+ def for_pci_id(vendor: str, device_id: int) -> Optional[Tuple[str, Dict[str, Any]]]:
128
+ """(name, description) of the device file of `vendor` whose `pci_device_ids` hold `device_id` (the PCI device id
129
+ the operating system or the device's runtime reports), None when no file lists it."""
130
+ for v, name, _path in names():
131
+ if v == vendor:
132
+ desc = describe(v, name)
133
+ if int(device_id) in [int(str(i), 0) for i in desc.get("pci_device_ids") or []]:
134
+ return name, desc
135
+ return None
136
+
137
+
126
138
  def forget() -> None:
127
139
  """Forget the description in force: the next reader resolves it again (after the launch target is bound)."""
128
140
  from nbxtensor.ops import _configs