nbxtensor 0.0.4__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.
- nbxtensor-0.0.8/.gitignore +309 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/CHANGELOG.md +98 -1
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/LICENSE +1 -1
- nbxtensor-0.0.8/NOTICE +8 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/PKG-INFO +16 -10
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/README.md +12 -8
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/pyproject.toml +3 -2
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/__init__.py +1 -1
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/__main__.py +12 -2
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/cpu/blas.py +11 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/cpu_backend.py +5 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/device_facts.py +6 -2
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/device_files.py +13 -1
- nbxtensor-0.0.8/src/nbxtensor/backend/devices/intel/arl_h.yml +207 -0
- nbxtensor-0.0.8/src/nbxtensor/backend/devices/intel/arl_s.yml +209 -0
- nbxtensor-0.0.8/src/nbxtensor/backend/devices/intel/mtl.yml +206 -0
- nbxtensor-0.0.8/src/nbxtensor/backend/devices/intel/ptl_h.yml +206 -0
- nbxtensor-0.0.8/src/nbxtensor/backend/devices/intel/ptl_u.yml +206 -0
- nbxtensor-0.0.8/src/nbxtensor/backend/install_help.py +234 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/install_metal.py +29 -1
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/launcher.py +62 -63
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/launcher_contract.py +6 -5
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/level_zero.py +46 -10
- nbxtensor-0.0.8/src/nbxtensor/backend/libnames.py +26 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/metal_backend.py +5 -4
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/replay_graph.py +2 -1
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/runtime.py +13 -6
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/triton_ext_driver.py +20 -19
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/io/read_rate.py +22 -3
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/io/safetensors.py +35 -2
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/allocator.py +18 -16
- nbxtensor-0.0.8/src/nbxtensor/memory/kv_session.py +124 -0
- nbxtensor-0.0.8/src/nbxtensor/memory/paged_kv.py +467 -0
- nbxtensor-0.0.8/src/nbxtensor/memory/pages.py +182 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/pointer_tables.py +43 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/trace_replay.py +39 -6
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/_configs.py +10 -14
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/attention_wrappers.py +48 -12
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/autotune_cache.py +4 -2
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/autotune_certified.py +416 -73
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/autotune_refusals.py +6 -4
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/conv_wrappers.py +6 -4
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/index_wrappers.py +4 -2
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/linalg_wrappers.py +5 -3
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/masked_fill.py +4 -1
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/paged_decode_attn.py +28 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/residual_chain.py +8 -7
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/screen_oracle.py +7 -5
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/wrappers.py +15 -14
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/tensor.py +4 -3
- nbxtensor-0.0.8/src/nbxtensor/terminal.py +90 -0
- nbxtensor-0.0.4/src/nbxtensor/backend/install_help.py +0 -130
- nbxtensor-0.0.4/tests/test_a_small_tensor_never_pins_a_large_block.py +0 -52
- nbxtensor-0.0.4/tests/test_a_sweep_refused_everywhere_says_so.py +0 -35
- nbxtensor-0.0.4/tests/test_a_triton_kernel_compiles_for_amd_and_launches_through_hip.py +0 -115
- nbxtensor-0.0.4/tests/test_allocator_interceptor.py +0 -159
- nbxtensor-0.0.4/tests/test_array_api_promotion.py +0 -70
- nbxtensor-0.0.4/tests/test_cpu_pool.py +0 -85
- nbxtensor-0.0.4/tests/test_device_facts.py +0 -55
- nbxtensor-0.0.4/tests/test_device_files.py +0 -25
- nbxtensor-0.0.4/tests/test_device_memory.py +0 -63
- nbxtensor-0.0.4/tests/test_dtype_convert.py +0 -58
- nbxtensor-0.0.4/tests/test_dtype_outputs.py +0 -53
- nbxtensor-0.0.4/tests/test_dtype_promotion.py +0 -60
- nbxtensor-0.0.4/tests/test_host.py +0 -50
- nbxtensor-0.0.4/tests/test_install_metal_fetches_only_what_it_names.py +0 -117
- nbxtensor-0.0.4/tests/test_io_bf16_split.py +0 -20
- nbxtensor-0.0.4/tests/test_io_read_rate.py +0 -85
- nbxtensor-0.0.4/tests/test_it_installs_on_a_mac.py +0 -23
- nbxtensor-0.0.4/tests/test_nbx_dtype.py +0 -37
- nbxtensor-0.0.4/tests/test_no_environment_switch_changes_a_kernel.py +0 -24
- nbxtensor-0.0.4/tests/test_ops_cost.py +0 -63
- nbxtensor-0.0.4/tests/test_policy.py +0 -55
- nbxtensor-0.0.4/tests/test_readme.py +0 -39
- nbxtensor-0.0.4/tests/test_shape.py +0 -56
- nbxtensor-0.0.4/tests/test_the_backend_is_the_card_on_the_machine.py +0 -19
- nbxtensor-0.0.4/tests/test_the_compiler_key_is_prewarmed.py +0 -23
- nbxtensor-0.0.4/tests/test_the_hip_driver_keeps_the_launch_contract.py +0 -174
- nbxtensor-0.0.4/tests/test_the_launcher_refuses_a_backend_it_has_no_driver_for.py +0 -42
- nbxtensor-0.0.4/tests/test_the_level_zero_backend_keeps_its_contracts.py +0 -403
- nbxtensor-0.0.4/tests/test_the_malloc_trace_names_the_wrapper.py +0 -25
- nbxtensor-0.0.4/tests/test_the_metal_dispatch_facts_are_declared_or_refused.py +0 -31
- nbxtensor-0.0.4/tests/test_third_party_notices.py +0 -81
- nbxtensor-0.0.4/tests/test_version.py +0 -23
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/CONTRIBUTING.md +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/THIRD_PARTY_NOTICES.md +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/assets/logo.png +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/__init__.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/capabilities.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/cpu/__init__.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/cpu/pool.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/device_names.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/faults.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/host_memory.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/install_steps.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/level_zero_driver.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/metal_device.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/backend/process_memory.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/dtype/__init__.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/dtype/convert.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/dtype/dtypes.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/dtype/itemsize.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/dtype/operands.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/dtype/outputs.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/dtype/policy.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/dtype/policy.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/dtype/promotion.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/host.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/io/__init__.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/__init__.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/arena.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/device_memory.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/device_transfer.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/layout.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/memory_pool.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/metal.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/oom_advice.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/pool.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/shadow.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/slab.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/memory/vmm.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/__init__.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/_autotune_policy.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/_common.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/_cost.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/abs.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/add.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/addcdiv.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/addcmul.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/addmv_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/addr.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/all_reduce.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/amax.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/any_reduce.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/arange_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/argmax.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/argmin.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/atan2.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/autotune_bucket.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/autotune_settings.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/avg_pool2d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/baddbmm_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/batch_norm.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/binary_strided.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/bitwise_and.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/bitwise_not.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/bitwise_or.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/bucketize.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/cat_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/celu.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/certified_index.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/clamp.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/clamp_min.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/conv2d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/copy.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/copy_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/cos.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/count_nonzero.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/cross_entropy.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/cummax.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/cummin.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/cumsum.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/dequant_gemv.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/dft.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/dispatch.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/div.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/dot_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/dropout.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/dtype_convert.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/elementwise_launch.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/elu.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/embedding.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/eq.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/erf.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/exp.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/exp2.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/fft_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/fill_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/flash_attention.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/flash_decode.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/flip_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/floor.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/full_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/fused_moe.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/gather_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/ge.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/gelu.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/gemv_vec.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/glu.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/grid_sampler.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/groupnorm.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/gt.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/hardsigmoid.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/hardswish.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/im2col.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/index_add.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/index_put_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/index_select.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/isfinite.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/isinf.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/isnan.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/launch_keys.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/launch_observer.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/layernorm.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/le.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/leaky_relu.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/lerp.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/linspace_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/log.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/log_sigmoid.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/logical_and.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/logical_not.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/logical_or.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/logical_xor.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/loss_wrappers.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/lt.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/matmul.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/max_pool2d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/max_pool3d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/max_reduce.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/maximum.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/mean.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/min_reduce.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/minimum.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/mish.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/moe_align.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/moe_device_residency.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/moe_wrappers.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/mse_loss.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/mul.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/nan_to_num.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/ne.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/neg.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/nllloss.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/nonzero.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/nonzero_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/norm_wrappers.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/ones_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/oracles/__init__.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/pad_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/pow.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/prod.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/rand_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/random_wrappers.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/reciprocal.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/relu.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/remainder.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/repeat_interleave.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/repeat_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/rmsnorm.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/rope.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/rsqrt.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/scaled_softmax.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/scatter_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/selu.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/shape_wrappers.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/sigmoid.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/silu.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/sin.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/softmax.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/softplus.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/sort_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/sqrt.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/stack_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/std.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/strided_copy.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/sub.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/sum.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/tan.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/tanh.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/threshold.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/tiling.yml +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/tiling_policy.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/tiling_sizes.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/topk.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/trace_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/tril.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/triu.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/unfold_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/unique_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/var.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/vector_norm.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/weight_norm.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/where.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/ops/zeros_op.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/quant/__init__.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/quant/quantized_tensor.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/random/__init__.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/random/mt_randn.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/random/rng_pin.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/random/rng_stream.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/random/seeded_draw.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/src/nbxtensor/shape/__init__.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/tools/device_key_census.py +0 -0
- {nbxtensor-0.0.4 → nbxtensor-0.0.8}/tools/device_key_trace.py +0 -0
- {nbxtensor-0.0.4 → 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,101 @@ 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
|
+
|
|
87
|
+
## [0.0.5] - 2026-11-07
|
|
88
|
+
|
|
89
|
+
### Fixed
|
|
90
|
+
- **The library runs on Windows**: weights are read at their offset without `os.preadv` (Windows' `ReadFile` with an
|
|
91
|
+
OVERLAPPED offset), the BLAS's thread control is found beside numpy (`numpy.libs`) instead of through /proc, and the
|
|
92
|
+
GPU libraries are opened by their Windows names (nvcuda.dll, cudart64_12.dll from the runtime wheel's `bin`, nvml.dll,
|
|
93
|
+
amdhip64_6.dll, ze_loader.dll, OpenCL.dll). Written and tested with Windows simulated: the project has no Windows
|
|
94
|
+
machine yet.
|
|
95
|
+
- **`python -m nbxtensor doctor` on a Mac without Triton exits 1**: it named the fix and exited 0, so a script could
|
|
96
|
+
not tell that nothing could run yet.
|
|
97
|
+
- **The library imports on Windows**: its page size came from `os.sysconf`, which Windows does not have; and the code
|
|
98
|
+
generator's identity now reads a backend's files as `/` paths with its `.pyd` and `.dll` binaries, so the same code
|
|
99
|
+
has the same identity on every system.
|
|
100
|
+
- **A certified setting that is not served says why**: where the directory holds a key proven under another code
|
|
101
|
+
generator than the running one, the line named a memory class that matched ("certified for 18 GB, this card is
|
|
102
|
+
18 GB, not served"); it now names both generators and the re-proof command. A setting proven on another memory class
|
|
103
|
+
is still said as such.
|
|
104
|
+
|
|
10
105
|
## [0.0.4] - 2026-11-07
|
|
11
106
|
|
|
12
107
|
### Added
|
|
@@ -162,7 +257,9 @@ memory; the fix is in test).
|
|
|
162
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.
|
|
163
258
|
- **`conv1d_forward_kernel`**: launched by no route (a 1-D convolution runs through `conv2d`).
|
|
164
259
|
|
|
165
|
-
[Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.
|
|
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
|
|
262
|
+
[0.0.5]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.4...v0.0.5
|
|
166
263
|
[0.0.4]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.3...v0.0.4
|
|
167
264
|
[0.0.3]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.2...v0.0.3
|
|
168
265
|
[0.0.2]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.1...v0.0.2
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
|
|
175
175
|
END OF TERMS AND CONDITIONS
|
|
176
176
|
|
|
177
|
-
Copyright 2025
|
|
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.
|
|
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:
|
|
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'
|
|
@@ -25,7 +27,7 @@ Description-Content-Type: text/markdown
|
|
|
25
27
|
|
|
26
28
|
Run AI models without PyTorch, on any GPU Triton supports: tensors, Triton kernels, planned memory and certified tuning.
|
|
27
29
|
|
|
28
|
-
Runs wherever Triton runs — NVIDIA, AMD, Intel and Apple Silicon GPUs. Inference first; training is not in this
|
|
30
|
+
Runs wherever Triton runs — NVIDIA, AMD, Intel and Apple Silicon GPUs, on Linux, Windows and macOS. Inference first; training is not in this
|
|
29
31
|
release. Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxtensor/issues) — we fix fast.
|
|
30
32
|
|
|
31
33
|
[](https://pypi.org/project/nbxtensor/)
|
|
@@ -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
|
|
|
@@ -156,10 +158,10 @@ install commands when one is not.
|
|
|
156
158
|
|
|
157
159
|
**From the NeuroBrix repository** (contributors): `pip install -e nbxtensor`.
|
|
158
160
|
|
|
159
|
-
**macOS, Apple silicon (Metal).** PyPI publishes no Triton for macOS. `install-metal` installs
|
|
160
|
-
|
|
161
|
-
`TRITON_EXT_ENABLED=1
|
|
162
|
-
|
|
161
|
+
**macOS, Apple silicon (Metal).** PyPI publishes no Triton for macOS. `install-metal` installs NeuroBrix's Triton
|
|
162
|
+
build for Apple GPUs, [NeuroBrix/triton-ext](https://github.com/NeuroBrix/triton-ext) (Triton built with
|
|
163
|
+
`TRITON_EXT_ENABLED=1` and the `nbx-triton-apple` backend; upstream:
|
|
164
|
+
[triton-lang/triton-ext#126](https://github.com/triton-lang/triton-ext/pull/126)); each wheel is checked against the
|
|
163
165
|
sha256 written in the library (Python 3.12, macOS 15 or later):
|
|
164
166
|
|
|
165
167
|
```
|
|
@@ -500,10 +502,14 @@ with the tensor class (API.md §4).
|
|
|
500
502
|
|
|
501
503
|
## Versions
|
|
502
504
|
|
|
503
|
-
The first publication was **0.0.1**; this is **0.0.
|
|
505
|
+
The first publication was **0.0.1**; this is **0.0.5**. Each fix published after it increments the number (0.0.6,
|
|
504
506
|
…), with no alpha or beta label. The rewrite of the core in Rust will be **2.0.0**. `nbxtensor.__version__` is the
|
|
505
507
|
installed version.
|
|
506
508
|
|
|
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).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Run AI models without PyTorch, on any GPU Triton supports: tensors, Triton kernels, planned memory and certified tuning.
|
|
6
6
|
|
|
7
|
-
Runs wherever Triton runs — NVIDIA, AMD, Intel and Apple Silicon GPUs. Inference first; training is not in this
|
|
7
|
+
Runs wherever Triton runs — NVIDIA, AMD, Intel and Apple Silicon GPUs, on Linux, Windows and macOS. Inference first; training is not in this
|
|
8
8
|
release. Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxtensor/issues) — we fix fast.
|
|
9
9
|
|
|
10
10
|
[](https://pypi.org/project/nbxtensor/)
|
|
@@ -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
|
|
|
@@ -135,10 +135,10 @@ install commands when one is not.
|
|
|
135
135
|
|
|
136
136
|
**From the NeuroBrix repository** (contributors): `pip install -e nbxtensor`.
|
|
137
137
|
|
|
138
|
-
**macOS, Apple silicon (Metal).** PyPI publishes no Triton for macOS. `install-metal` installs
|
|
139
|
-
|
|
140
|
-
`TRITON_EXT_ENABLED=1
|
|
141
|
-
|
|
138
|
+
**macOS, Apple silicon (Metal).** PyPI publishes no Triton for macOS. `install-metal` installs NeuroBrix's Triton
|
|
139
|
+
build for Apple GPUs, [NeuroBrix/triton-ext](https://github.com/NeuroBrix/triton-ext) (Triton built with
|
|
140
|
+
`TRITON_EXT_ENABLED=1` and the `nbx-triton-apple` backend; upstream:
|
|
141
|
+
[triton-lang/triton-ext#126](https://github.com/triton-lang/triton-ext/pull/126)); each wheel is checked against the
|
|
142
142
|
sha256 written in the library (Python 3.12, macOS 15 or later):
|
|
143
143
|
|
|
144
144
|
```
|
|
@@ -479,10 +479,14 @@ with the tensor class (API.md §4).
|
|
|
479
479
|
|
|
480
480
|
## Versions
|
|
481
481
|
|
|
482
|
-
The first publication was **0.0.1**; this is **0.0.
|
|
482
|
+
The first publication was **0.0.1**; this is **0.0.5**. Each fix published after it increments the number (0.0.6,
|
|
483
483
|
…), with no alpha or beta label. The rewrite of the core in Rust will be **2.0.0**. `nbxtensor.__version__` is the
|
|
484
484
|
installed version.
|
|
485
485
|
|
|
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.
|
|
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 = "
|
|
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.
|
|
@@ -11,7 +11,7 @@ def doctor() -> int:
|
|
|
11
11
|
from nbxtensor.backend.metal_backend import is_apple_silicon, triton_metal_available
|
|
12
12
|
if is_apple_silicon() and not triton_metal_available():
|
|
13
13
|
print("Apple GPU found; Triton for Metal not installed — run: python -m nbxtensor install-metal")
|
|
14
|
-
return
|
|
14
|
+
return 1 # nothing can run yet: a script reads it from the exit status
|
|
15
15
|
try:
|
|
16
16
|
backend = runtime.gpu_backend()
|
|
17
17
|
print(f"backend in force: {backend}" + (" (the Apple GPU, through Metal)" if backend == "metal" else ""))
|
|
@@ -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())
|
|
@@ -20,6 +20,7 @@ from __future__ import annotations
|
|
|
20
20
|
import ctypes
|
|
21
21
|
import functools
|
|
22
22
|
import platform
|
|
23
|
+
import sys
|
|
23
24
|
from pathlib import Path
|
|
24
25
|
from typing import Optional, Tuple
|
|
25
26
|
|
|
@@ -33,6 +34,16 @@ _OPENBLAS_GET = ("scipy_openblas_get_num_threads64_", "scipy_openblas_get_num_th
|
|
|
33
34
|
|
|
34
35
|
|
|
35
36
|
def _loaded_openblas() -> Optional[str]:
|
|
37
|
+
if sys.platform == "win32":
|
|
38
|
+
# no /proc on Windows: numpy's wheel ships its OpenBLAS beside the package (`numpy.libs`, older wheels
|
|
39
|
+
# `numpy/.libs`), loaded with numpy; ctypes opening the same path returns the module already in the process
|
|
40
|
+
import numpy
|
|
41
|
+
root = Path(numpy.__file__).resolve().parent
|
|
42
|
+
for d in (root.parent / "numpy.libs", root / ".libs"):
|
|
43
|
+
hits = sorted(d.glob("*openblas*.dll")) if d.is_dir() else []
|
|
44
|
+
if hits:
|
|
45
|
+
return str(hits[0])
|
|
46
|
+
return None
|
|
36
47
|
maps = Path("/proc/self/maps")
|
|
37
48
|
if not maps.is_file():
|
|
38
49
|
return None
|