nbxtensor 0.1.3__tar.gz → 0.1.5__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.1.3 → nbxtensor-0.1.5}/.gitignore +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/CHANGELOG.md +191 -2
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/CONTRIBUTING.md +15 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/PKG-INFO +21 -6
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/README.md +20 -5
- nbxtensor-0.1.5/docs/API.md +3692 -0
- nbxtensor-0.1.5/docs/BACKENDS.md +167 -0
- nbxtensor-0.1.5/docs/api_undocumented.txt +2 -0
- nbxtensor-0.1.5/docs/certified-autotune-method.md +36 -0
- nbxtensor-0.1.5/docs/design/ALLOCATOR.md +60 -0
- nbxtensor-0.1.5/docs/design/COST.md +106 -0
- nbxtensor-0.1.5/docs/design/DESIGN.md +176 -0
- nbxtensor-0.1.5/docs/device_file_template.yml +106 -0
- nbxtensor-0.1.5/docs/device_keys.txt +61 -0
- nbxtensor-0.1.5/docs/history/INVENTORY.md +42 -0
- nbxtensor-0.1.5/docs/history/MIGRATION.md +81 -0
- nbxtensor-0.1.5/docs/history/migration_list.tsv +2 -0
- nbxtensor-0.1.5/docs/replay-recording-in-a-one-shot-request.md +52 -0
- nbxtensor-0.1.5/docs/tensor-cores-through-linear-layouts.md +86 -0
- nbxtensor-0.1.5/docs/triton_cpu_install.md +108 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/pyproject.toml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/__init__.py +2 -2
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/cpu_backend.py +2 -2
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/device_files.py +1 -1
- nbxtensor-0.1.5/src/nbxtensor/backend/device_measure.py +85 -0
- nbxtensor-0.1.5/src/nbxtensor/backend/device_names.py +61 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/amd/cdna.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/amd/cdna2.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/amd/cdna3.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/amd/cdna4.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/amd/rdna3.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/amd/rdna4.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m1.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m2.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m3.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m4.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m5.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_m6.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/arl_h.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/arl_s.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/bmg.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/dg2.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/lnl.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/mtl.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/ptl_h.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/ptl_u.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/pvc.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/wcl.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/intel/xe_lp.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/nvidia/ampere.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/nvidia/hopper.yml +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/devices/nvidia/volta.yml +2 -2
- nbxtensor-0.1.5/src/nbxtensor/backend/frozen_plan.py +750 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/launcher.py +23 -6
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/metal_device.py +41 -1
- nbxtensor-0.1.5/src/nbxtensor/backend/metal_dispatch.py +218 -0
- nbxtensor-0.1.5/src/nbxtensor/backend/triton_ext_driver.py +393 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/host.py +1 -1
- nbxtensor-0.1.5/src/nbxtensor/inspection.py +106 -0
- nbxtensor-0.1.5/src/nbxtensor/interop/__init__.py +5 -0
- nbxtensor-0.1.5/src/nbxtensor/interop/dlpack.py +157 -0
- nbxtensor-0.1.5/src/nbxtensor/io/constants.py +54 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/io/read_rate.py +23 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/io/safetensors.py +15 -2
- nbxtensor-0.1.5/src/nbxtensor/memory/__init__.py +41 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/allocator.py +48 -2
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/arena.py +47 -0
- nbxtensor-0.1.5/src/nbxtensor/memory/block_upload.py +66 -0
- nbxtensor-0.1.5/src/nbxtensor/memory/deferred_frees.py +108 -0
- nbxtensor-0.1.5/src/nbxtensor/memory/expert_slots.py +463 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/layout.py +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/memory_pool.py +64 -0
- nbxtensor-0.1.5/src/nbxtensor/memory/oom_advice.py +187 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/paged_kv.py +26 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/pages.py +27 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/pointer_tables.py +5 -5
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/pool.py +24 -1
- nbxtensor-0.1.5/src/nbxtensor/memory/shadow.py +215 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/slab.py +9 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/vmm.py +21 -8
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/_configs.py +24 -12
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/_cost.py +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/attention_wrappers.py +18 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/autotune_cache.py +69 -31
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/autotune_certified.py +5 -5
- nbxtensor-0.1.5/src/nbxtensor/ops/autotune_harness.py +1028 -0
- nbxtensor-0.1.5/src/nbxtensor/ops/axis_slices.py +94 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/conv_wrappers.py +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/fused_upsample_conv.py +8 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/launch_keys.py +4 -4
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/mma_m8n8k4.py +1 -1
- nbxtensor-0.1.5/src/nbxtensor/ops/moe_fused.py +507 -0
- nbxtensor-0.1.5/src/nbxtensor/ops/moe_multi_device.py +106 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/moe_wrappers.py +165 -0
- nbxtensor-0.1.5/src/nbxtensor/ops/oracles/attention_fp64.py +31 -0
- nbxtensor-0.1.5/src/nbxtensor/ops/oracles/fp64.py +394 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/residual_chain.py +4 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/screen_oracle.py +1 -1
- nbxtensor-0.1.5/src/nbxtensor/ops/tiles.py +98 -0
- nbxtensor-0.1.5/src/nbxtensor/ops/token_filters.py +43 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/quant/quantized_tensor.py +4 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/random/seeded_draw.py +52 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/tensor.py +95 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/tools/device_key_census.py +1 -1
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/tools/scatter_scan.py +2 -2
- nbxtensor-0.1.3/src/nbxtensor/backend/device_names.py +0 -18
- nbxtensor-0.1.3/src/nbxtensor/backend/triton_ext_driver.py +0 -751
- nbxtensor-0.1.3/src/nbxtensor/memory/__init__.py +0 -9
- nbxtensor-0.1.3/src/nbxtensor/memory/oom_advice.py +0 -91
- nbxtensor-0.1.3/src/nbxtensor/memory/shadow.py +0 -43
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/.github/workflows/cla.yml +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/LICENSE +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/NOTICE +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/THIRD_PARTY_NOTICES.md +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/assets/logo.png +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/__main__.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/__init__.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/capabilities.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/cpu/__init__.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/cpu/blas.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/cpu/pool.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/device_facts.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/faults.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/host_memory.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/install_help.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/install_metal.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/install_steps.yml +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/launcher_contract.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/level_zero.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/level_zero_driver.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/libnames.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/metal_backend.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/process_memory.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/replay_graph.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/backend/runtime.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/dtype/__init__.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/dtype/convert.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/dtype/dtypes.yml +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/dtype/itemsize.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/dtype/operands.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/dtype/outputs.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/dtype/policy.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/dtype/policy.yml +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/dtype/promotion.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/io/__init__.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/device_memory.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/device_transfer.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/host_spill.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/kv_host_pages.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/kv_host_tier.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/kv_session.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/metal.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/to_device_census.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/trace_replay.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/__init__.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/_autotune_policy.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/_common.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/abs.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/add.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/addcdiv.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/addcmul.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/addmv_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/addr.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/all_reduce.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/amax.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/any_reduce.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/arange_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/argmax.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/argmin.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/atan2.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/autotune_bucket.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/autotune_refusals.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/autotune_settings.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/avg_pool2d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/baddbmm_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/batch_norm.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/binary_strided.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/bitwise_and.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/bitwise_not.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/bitwise_or.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/bucketize.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/cat_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/celu.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/certified_index.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/clamp.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/clamp_min.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/conv2d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/copy.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/copy_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/cos.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/count_nonzero.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/cross_entropy.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/cummax.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/cummin.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/cumsum.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/dequant_gemv.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/dft.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/dispatch.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/div.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/dot_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/dropout.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/dtype_convert.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/elementwise_launch.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/elu.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/embedding.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/embedding_pool.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/eq.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/erf.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/exp.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/exp2.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/fft_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/fill_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/flash_attention.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/flash_decode.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/flip_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/floor.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/full_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/fused_moe.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/gather_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/ge.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/gelu.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/gemv_vec.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/glu.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/grid_sampler.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/groupnorm.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/gt.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/hardsigmoid.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/hardswish.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/host_decode_partial.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/im2col.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/index_add.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/index_put_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/index_select.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/index_wrappers.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/isfinite.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/isinf.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/isnan.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/launch_observer.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/layernorm.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/le.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/leaky_relu.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/lerp.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/linalg_wrappers.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/linspace_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/log.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/log_sigmoid.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/logical_and.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/logical_not.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/logical_or.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/logical_xor.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/loss_wrappers.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/lt.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/masked_fill.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/matmul.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/max_pool2d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/max_pool3d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/max_reduce.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/maximum.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/mean.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/min_reduce.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/minimum.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/mish.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/moe_align.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/moe_device_residency.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/mse_loss.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/mul.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/nan_to_num.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/ne.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/neg.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/nllloss.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/nonzero.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/nonzero_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/norm_wrappers.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/ones_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/oracles/__init__.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/pad_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/pow.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/prod.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/rand_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/random_wrappers.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/reciprocal.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/relu.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/remainder.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/repeat_interleave.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/repeat_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/rmsnorm.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/rope.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/rsqrt.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/scaled_softmax.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/scatter_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/selu.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/shape_wrappers.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/sigmoid.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/silu.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/sin.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/softmax.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/softplus.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/sort_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/sqrt.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/stack_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/std.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/strided_copy.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/sub.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/sum.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/tan.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/tanh.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/threshold.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/tiling.yml +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/tiling_policy.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/tiling_sizes.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/token_bitmask.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/topk.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/trace_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/tril.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/triu.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/unfold_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/unique_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/var.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/vector_norm.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/weight_norm.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/where.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/wrappers.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/ops/zeros_op.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/quant/__init__.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/random/__init__.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/random/mt_randn.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/random/rng_pin.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/random/rng_stream.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/shape/__init__.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/src/nbxtensor/terminal.py +0 -0
- {nbxtensor-0.1.3 → nbxtensor-0.1.5}/tools/device_key_trace.py +0 -0
|
@@ -160,7 +160,7 @@ tests/*
|
|
|
160
160
|
!tests/unit/**
|
|
161
161
|
!tests/integration/
|
|
162
162
|
!tests/integration/**
|
|
163
|
-
# nbxtensor's backend conformance suite (docs/
|
|
163
|
+
# nbxtensor's backend conformance suite (nbxtensor/docs/BACKENDS.md), tracked like the unit suites.
|
|
164
164
|
!tests/nbxtensor_backend_conformance/
|
|
165
165
|
!tests/nbxtensor_backend_conformance/**
|
|
166
166
|
# ...but re-ignore the build detritus the broad negation would let back in.
|
|
@@ -7,6 +7,195 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.5] - 2026-11-12
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Triton models on Apple GPUs run several times faster: nbxtensor now runs each compiled kernel on its own Metal stream,
|
|
14
|
+
in order, and waits for the GPU only where a result is read, instead of after every kernel. Measured on an M4 Pro,
|
|
15
|
+
outputs byte-identical: TinyLlama 1.1B, 256 tokens, 46.2 s -> 8.1 s; granite-3.1-1b-a400m (mixture of experts),
|
|
16
|
+
128 tokens, 22.5 s -> 4.7 s.
|
|
17
|
+
- A failed device assert in a kernel now raises at the next read of a result (or the next launch), not at its own
|
|
18
|
+
launch.
|
|
19
|
+
- `NBX_SYNC_TIMING=1` on Apple now counts launches and the time spent issuing them, per kernel; there is no per-launch
|
|
20
|
+
wait left to time.
|
|
21
|
+
- The library's documentation lives in its own `docs/` (the API reference, the backends' contract, the device keys;
|
|
22
|
+
`docs/design/` the allocator, cost and design notes; `docs/history/` the inventory and the migration record) and
|
|
23
|
+
the three tensor reference pages (tensor cores through linear layouts, the certified-autotune method, recording a
|
|
24
|
+
replay in a one-shot request) with the Triton CPU install page. The README links them in this repository.
|
|
25
|
+
- The int4 MoE decode band's tiles, warps and stages no longer change with an environment variable (NBX_MOEV_BN, _BK,
|
|
26
|
+
_WARPS, _BND, _WARPS_D, _STAGES, read by the engine until now): they are the defaults those variables had.
|
|
27
|
+
- `memory.deferred_frees`: `DeferredFrees`, `Drain`, `sync_devices_of` — the tensors a run drops, released in batches
|
|
28
|
+
at a bytes cliff, a count or (pool off) a free-memory reserve, every owning device synchronised first, and the
|
|
29
|
+
allocator's out-of-memory reclaimer while the batch lives. The engine's two hot loops held this queue themselves.
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
- `memory.block_upload` (`open_copy_stream`, `upload_block`, `wait_for_upload`, `drop_upload_events`,
|
|
33
|
+
`close_copy_stream`, `wait_device`): a block of host weights uploaded to one device on a copy stream with an
|
|
34
|
+
ordering-only readiness event the compute stream waits on (synchronous, with no event, given no stream), and the
|
|
35
|
+
stream's and events' release. Moved from the NeuroBrix engine's zero3 strategy, which keeps which block moves, when,
|
|
36
|
+
and how much stays resident.
|
|
37
|
+
- `memory.shadow.install_shadow(devices)`, `shadow_launch`, `shadow_device`, `DevicesVisible`: the whole shadow device — the
|
|
38
|
+
allocator's direct operations, streams, events and device queries answered without a driver, every launch skipped,
|
|
39
|
+
a value read answering a host-born value or a benign one — refused while a device is visible. Moved from the
|
|
40
|
+
NeuroBrix engine's census, which keeps which keys are recorded and its own seams; `from_numpy`'s stand-in now takes
|
|
41
|
+
every argument `from_numpy` takes.
|
|
42
|
+
- `nbxtensor.interop.from_dlpack(obj, device=None)`: take in another library's array through DLPack (a torch tensor,
|
|
43
|
+
a numpy array): host memory is copied in the order it shows, strided views and bfloat16 included; this backend's own
|
|
44
|
+
device memory is used in place (a strided one is first made contiguous on the device); another vendor's device
|
|
45
|
+
memory is refused with its name.
|
|
46
|
+
- `backend.triton_ext_driver.kernel_name(kernel)`: the name a Metal kernel was loaded under. The sync counter
|
|
47
|
+
(`NBX_SYNC_TIMING=1`) now ranks Metal kernels by their own names; every launch was counted as `MetalKernel`.
|
|
48
|
+
- `ops.moe_fused.fused_moe(gate_scores, hidden_states, gate_weights, up_weights, down_weights, top_k, num_experts,
|
|
49
|
+
...)`: a whole mixture-of-experts layer in one call — the routing (top-k and renormalisation, or a blended routing
|
|
50
|
+
taken as given), host experts promoted for the call, the experts' pointer tables, and the path the call's shape and
|
|
51
|
+
placement take (the one-token SIMT bands, the grouped GEMMs, an expert store's slots in runs of experts, the layer
|
|
52
|
+
split over devices); it refuses by name, before any device, a backend that cannot read through a loaded pointer.
|
|
53
|
+
`StackedSlabPromotion` brings a host-resident stacked expert slab to the device once and whole. The NeuroBrix engine
|
|
54
|
+
carried both; it now keeps only its switches and what its diagnostics print.
|
|
55
|
+
- `ops.moe_wrappers.moe_decode_vec_int4_pass(...)` and `MOE_INT4_GROUP`: one decode token through a routed layer of
|
|
56
|
+
int4-g128 experts (the `ops.moe_decode_vec` int4 kernels), its launch settings named constants of the module.
|
|
57
|
+
- `memory.pointer_tables.tables_for_call(...)`: the pointer tables of one call — fresh for weights that live for the
|
|
58
|
+
call alone, cached otherwise (public; it was private).
|
|
59
|
+
- `ExpertSlotStore.decodes_on_card(layer)`, `on_routed(layer, routed, host)`, `on_enqueued(layer, routed)`: what the
|
|
60
|
+
fused op asks and tells a store, answered by default; a subclass decides more.
|
|
61
|
+
- `ops.autotune_harness`: the kernel-level harness of a certification — a key's operands drawn at the kernel's width
|
|
62
|
+
(`draw`, `Synth`, `upload`, `NP_DTYPES`), the size a key is drawn at (`Room`, `shortest_row`, `gemm_rows`), the
|
|
63
|
+
operands it draws (`key_operands`), the wrapper run on them with its lazy float64 reference (`synthesize`, every
|
|
64
|
+
autotuned kernel family), the reference of the launch the autotuner sees (`launch_oracle`), every candidate launched
|
|
65
|
+
on a poisoned output, measured and timed (`LaunchUnderTest`, `launch_and_measure`), the matrix unit's candidates
|
|
66
|
+
(`unit_runs`, `fused_moe_unit_runs`), the regime witness (`witness_ms`, `time_launch`) and the configurations
|
|
67
|
+
(`candidate_configs`, `stored_config`, `config_dict`). Moved from the NeuroBrix engine's certifier, which keeps which
|
|
68
|
+
keys, the tolerance, the timing protocol, the memory budget and the certified files.
|
|
69
|
+
- `ops.oracles.fp64`: the kernel families' float64 references for a certification (products, MoE, attention, softmax,
|
|
70
|
+
GEMV, row and group norms, row reductions, convolutions), whole under `ORACLE_MAX_MACS` and on windows of the output
|
|
71
|
+
above it (`row_windows`, `conv_windows`, `RowWindowedOracle`, `WindowedOracle`, `HostWindows`), and a kernel's output
|
|
72
|
+
measured against one (`deviation_against`, `oracle_deviation`, `host_values`). Moved from the engine's certifier.
|
|
73
|
+
- `ops.attention_wrappers.flash_route_heads`: the fewest heads with which the attention wrapper's route takes the flash.
|
|
74
|
+
- `ops.autotune_cache.config_to_dict`, `config_from_dict`: a Triton config as the sweep store and a certified directory
|
|
75
|
+
record it, and back (formerly private).
|
|
76
|
+
- `NBXTensor.from_numpy_as(arr, dtype, device)` and `NBXTensor.new_tensor(data)`: a host array's values placed at a
|
|
77
|
+
dtype (a float64 array narrowed to float32 on the host first, since a backend without float64 misreads it), and
|
|
78
|
+
torch's `new_tensor` (a tensor's own dtype and card). Moved from the NeuroBrix engine's computed-buffer placement.
|
|
79
|
+
- `io.constants.archived_storage`, `io.constants.constant_array`: a graph constant's stored bytes (the archive
|
|
80
|
+
`torch.save` writes) read and decoded to the dtype it is bound in, without a tensor library. Moved from the engine's
|
|
81
|
+
constant loader.
|
|
82
|
+
- `ops.tiles` (`crossfade_ramp`, `tile_window`, `TileBlend`): a tensor computed tile by tile — a tile read as a
|
|
83
|
+
contiguous edge-replicated window, results crossfaded across their overlaps and divided once. Moved from the
|
|
84
|
+
NeuroBrix engine's TilingEngine, which keeps where the tiles sit.
|
|
85
|
+
- `ops.axis_slices` (`take_slice`, `take_slice_cyclic`, `put_slice`, `whole_shape`, `own`, `accumulate`, `store`): an
|
|
86
|
+
axis read and written a slice at a time as views, and a contraction's partials summed in an accumulator dtype — the
|
|
87
|
+
stitch of a computation run in slices. Moved from the NeuroBrix engine's chunked region.
|
|
88
|
+
- `io.safetensors.bf16_abs_maxima`: the largest magnitude of every bfloat16 tensor of a safetensors file, from its
|
|
89
|
+
stored bytes. Moved from the engine's float16-safety scan.
|
|
90
|
+
- `DeviceAllocator.pool_cached_bytes`, `pool_enabled`, `pool_stats`, `blocks_in_use` and `Arena.bytes_on`: the
|
|
91
|
+
allocator's and an arena's figures for an application's memory lines, forensic dumps and per-key states. The engine
|
|
92
|
+
read the allocator's private tables (`_cuda_live_bytes`, `_POOL`, `_cuda_ptr_size`, `_pool_enabled`) in a dozen places.
|
|
93
|
+
- `memory.oom_advice.held_memory_report(named, big, bucket)` and `Arena.census(large)`: after a refused allocation,
|
|
94
|
+
who holds the device's memory (blocks in use by size, the tensors alive on the large ones named or ORPHAN with their
|
|
95
|
+
referrers, autotuners still holding tensors) and what an arena holds by region. The engine's NBX_LIVE_DUMP_ON_OOM
|
|
96
|
+
dump walked the allocator's tables and the garbage collector itself.
|
|
97
|
+
- `memory.memory_pool.release_weights`, `join_weights` and `Arena.release`: a loaded weight set released after
|
|
98
|
+
every device holding it synchronised (the library's bias and pointer-table caches dropped, the pool emptied), a
|
|
99
|
+
second load's arenas joined to the first's, an arena cleared after its devices drain. The engine did each itself
|
|
100
|
+
(its arena clears synchronised only the current device).
|
|
101
|
+
- `nbxtensor.memory.release_weights`, `join_weights`, `pool_enabled`, `pool_parked_cap_bytes`, `pool_fit_slack`: the
|
|
102
|
+
application's door to the release and the pool's rules, beside `set_limit`.
|
|
103
|
+
- `memory.pool.parks_freed_blocks`, `parked_cap_bytes`, `fit_slack`: the pool's rules for a device, from its file — the
|
|
104
|
+
allocator's own switch, and what a planner prices the pool by. Prism read the same keys and switch again itself.
|
|
105
|
+
- `nbxtensor.backend.device_measure`: `matmul_tflops`, `gemv_gbps` and `copies` — a device's GEMM, decode-step GEMV
|
|
106
|
+
and copy speeds (device to device, page-locked and pageable host to device, device to host), timed through the
|
|
107
|
+
library's own kernels and copies. `io.read_rate.evict(paths)` and `cold_read_gbps(path)`: files out of the page
|
|
108
|
+
cache, and one cold sequential read. The engine's planner measured them with its own raw allocations and copies.
|
|
109
|
+
- `inspection.values_at(t, positions)`: a few values of a tensor at row-major positions, each element read alone after
|
|
110
|
+
a device synchronisation (a view read in its logical order, never its storage's). The engine's sequential value
|
|
111
|
+
sampler walked the strides and copied each element itself.
|
|
112
|
+
- `backend.device_names.ACCELERATOR_PREFIXES`, `accelerator_index(device)`, `to_named_device(tensor, device)` and
|
|
113
|
+
`synchronize_named(device)`: a device name ("cuda:1", "hip:0", "mps:0", "cpu") read once for every backend, a tensor
|
|
114
|
+
moved to the device it names, the named device waited for with the current device restored. The engine's Triton
|
|
115
|
+
strategies and its parked values each read device names themselves.
|
|
116
|
+
- `random.seeded_draw.draw_from_probabilities` and `draw_from_masked_logits`: one token drawn on the host from a logits
|
|
117
|
+
row in its own dtype (repetition penalty, greedy at temperature 0, top-p on the probabilities; or min-p and top-p
|
|
118
|
+
written on the logits), and `ops.token_filters.penalize_repeats` / `outside_nucleus` on a device row. The engine
|
|
119
|
+
held the same arithmetic six times (its Triton sampler, the encoder-decoder, dual-AR and TTS flows, and the
|
|
120
|
+
compiled twins of the last two); every copy draws the same tokens through these.
|
|
121
|
+
|
|
122
|
+
### Fixed
|
|
123
|
+
- `NBXTensor.item()` on a bfloat16 element returns its value (the high half of a float32); it returned 0.0.
|
|
124
|
+
|
|
125
|
+
## [0.1.4] - 2026-11-12
|
|
126
|
+
|
|
127
|
+
### Added
|
|
128
|
+
- `ops.oracles.attention_fp64`: the attention family's float64 reference on query-row windows (moved from the
|
|
129
|
+
engine's certifier): K and V widened once, its products through BLAS — 10x faster on a long key range, same values.
|
|
130
|
+
- `nbxtensor.backend.frozen_plan`: the frozen-plan replay — a device step recorded once (the allocator's copies, sets
|
|
131
|
+
and synchronisations and the launcher's launches, as actions) and replayed as direct launches or captured device
|
|
132
|
+
graphs: `STATE` (the recording interceptor; `site_of`, the caller's predicate naming where a recording broke),
|
|
133
|
+
`FrozenPlan`, `install_seams`, `arm_launch_recorder`, the action tags. Moved from the NeuroBrix engine, which
|
|
134
|
+
keeps only when a step is recorded, verified and replayed.
|
|
135
|
+
- `frozen_plan.measure`, `room_for`, `slabs`, `record`, `retire`, `head_values`, `FrozenPlan.hand_out_outputs`,
|
|
136
|
+
`STATE.open_measurement`, `values_sha256`, `carved_from`: a step's slab measured, made room for, allocated and recorded into, a rejected plan
|
|
137
|
+
released — the mechanism of the replay's state machine, whose decisions stay the caller's.
|
|
138
|
+
- `DeviceAllocator.give_back_cached(dev)`: a card's cached free memory (the expandable range's chunks, the pool's
|
|
139
|
+
blocks) back to the driver after its work ends.
|
|
140
|
+
- `StepSlab.for_carved`, `DeviceAllocator.register_idle_reclaimer`: a decode step's slab sized in the library; an
|
|
141
|
+
application's idle-memory reclaimer registered through a public call. A recording that cannot read the current
|
|
142
|
+
device now breaks its plan by name instead of recording an action without its card.
|
|
143
|
+
- `Arena.slots`: the slot list itself, for a reader pairing it with a snapshot.
|
|
144
|
+
- `NBXTensor.device_idx`: the card a tensor's memory is on.
|
|
145
|
+
- `NBXTensor.bits()`, `same_bits(other)`, `storage_root()`, `storage_address()` and `shares_storage(other)`: a
|
|
146
|
+
tensor read as the integers of its element width, a bit-for-bit comparison on the device (+0.0 and -0.0 differ, a
|
|
147
|
+
NaN equals itself), the allocation a view reads and whether two tensors view one allocation. The engine's invariant
|
|
148
|
+
state asks them before reusing or keeping a result; they lived in the engine until now.
|
|
149
|
+
- `nbxtensor.inspection`: `host_values`, `non_finite`, `value_stats`, `last_position_row` and `digest` — a tensor's
|
|
150
|
+
values read on the host for a diagnostic (a non-finite scan, the record a per-op value dump keeps, the last
|
|
151
|
+
position's row, a digest of the bytes in row-major order). The engine's NaN scan, value dumps and op fingerprints
|
|
152
|
+
call them instead of their own device-to-host copies.
|
|
153
|
+
- `memory.memory_pool.break_aliases(tensors, freed)`: before the tensors at `freed` (keys of a list or a dict) are
|
|
154
|
+
freed, every other entry viewing one of their allocations is replaced by its `contiguous()`. The engine's weight
|
|
155
|
+
eviction called its own two copies of it. Known limit, kept from them: a view that is already contiguous is its own
|
|
156
|
+
`contiguous()` and still reads the freed memory.
|
|
157
|
+
- `NBXTensor.saturated(dtype)`: a one-element float32 or float64 tensor holding a finite value beyond a half dtype's
|
|
158
|
+
range comes back as a new tensor (same dtype, shape and card) holding the clamped value (`saturate_scalar`);
|
|
159
|
+
anything else is itself. The engine's `where` wrap called its own copy, which uploaded to the current card.
|
|
160
|
+
- `memory.paged_kv.keys_seq_major(q, k, pre_transposed=None)` and `one_head_per_group(t, kv_heads, group)`: the keys
|
|
161
|
+
an attention reads put in the queries' order (the recorded layout first, the shape only without one, the square
|
|
162
|
+
case refused by name), and keys or values repeated for grouped-query attention read back as their own heads. The
|
|
163
|
+
engine's KV interceptor held both.
|
|
164
|
+
- `memory.pages.MetalStateFence`: the release fence of the Triton kernels' queue on Metal (`record`, `completed`,
|
|
165
|
+
`drain(pool)`), for the day launches stop waiting for their kernel; not in use today. It was the engine's
|
|
166
|
+
`triton/state_fence.py`, which nothing called.
|
|
167
|
+
- `memory.expert_slots.ExpertSlotStore(residency, device_idx, like, in_place=False)`: the device slots of a
|
|
168
|
+
mixture-of-experts component whose experts stay on the host — one arena carved into aligned views, the misses copied
|
|
169
|
+
into their slots on the store's own stream (`acquire`, `prefetch`), the experts of a unified device bound in place,
|
|
170
|
+
and for one decode token the residency kept on the card (`enable_device_decode`, `decode_on_card`: its slot map,
|
|
171
|
+
stamps and clock, the assign and miss-copy kernels' launches). Which expert sits in which slot stays the caller's: a
|
|
172
|
+
`residency` object answering a small written protocol. The engine carried all of this in its own store.
|
|
173
|
+
- `memory.expert_slots.HeldExperts(device_idx, layers)`: every expert of whole layers copied once into one arena on
|
|
174
|
+
another device.
|
|
175
|
+
- `ops.moe_wrappers.moe_align_block_size(topk_ids_flat, block_size, num_experts, device_idx, pairs=None)`: a routed
|
|
176
|
+
layer's (token, expert) pairs sorted by expert and padded to the kernel's row block, on the device — the launcher of
|
|
177
|
+
the three `ops.moe_align` stages, which the engine carried. `MOE_BLOCK_M` names the block to align by.
|
|
178
|
+
- `ops.moe_wrappers.moe_decode_vec_half_pass(...)`: one decode token through a routed layer of half-precision experts
|
|
179
|
+
(the `ops.moe_decode_vec` half kernels' three launches), which the engine carried.
|
|
180
|
+
- `ops.moe_multi_device.fused_moe_across_devices(hidden_states, flat_indices, flat_scores, tables, top_k,
|
|
181
|
+
num_experts, n_gate, block_m, act_dev)`: a routed layer whose experts sit on several devices, computed where its
|
|
182
|
+
weights are — one share per device of the layer's pointer tables, summed on the activations' device. The engine
|
|
183
|
+
carried this op, with its device-to-host and card-to-card copies; it now hands over the tables its placement built.
|
|
184
|
+
|
|
185
|
+
### Changed
|
|
186
|
+
- The multi-device routed layer no longer reads the routing scores back to the host (a copy per layer nothing read).
|
|
187
|
+
- The slot store reads the card's clock at the size of the word it reads into, no byte count written in the code.
|
|
188
|
+
|
|
189
|
+
### Fixed
|
|
190
|
+
- `autotune_cache.seed_late(tuner)`, called at a tuner's first launch: a kernel module imported after the process's
|
|
191
|
+
first autotuned launch gets the machine's stored settings too (the certified directory first), once — they were
|
|
192
|
+
seeded only into the modules already imported, so every new process measured the late ones again.
|
|
193
|
+
- **A driver error while a card's expandable pool asks which cards reach it is refused by name.** `memory.vmm.Vmm`
|
|
194
|
+
builds the access grant of its chunks from the driver's answers (`cuDeviceGetCount`, `cuDeviceGet`,
|
|
195
|
+
`cuDeviceCanAccessPeer`); a call that failed was read as "no peer" and the grant silently named the owning card
|
|
196
|
+
alone, so a later card-to-card copy failed far from its cause. The failing call, its device and its status are now
|
|
197
|
+
the error. A driver that answers "not a peer" is unchanged.
|
|
198
|
+
|
|
10
199
|
## [0.1.3] - 2026-11-11
|
|
11
200
|
|
|
12
201
|
### Added
|
|
@@ -293,7 +482,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
293
482
|
### Fixed
|
|
294
483
|
- **CDNA3's shared memory per block is 64 KB**, not 160 KB (the device file had CDNA4's figure; Triton 3.8's AMD target features state 64 KB for gfx942): an autotune config needing more is no longer kept for an MI300.
|
|
295
484
|
|
|
296
|
-
|
|
297
485
|
## [0.0.1] - 2026-11-05
|
|
298
486
|
|
|
299
487
|
The first release of nbxtensor: an inference-first tensor library whose kernels are written in Triton and which never
|
|
@@ -403,7 +591,8 @@ memory; the fix is in test).
|
|
|
403
591
|
- **`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.
|
|
404
592
|
- **`conv1d_forward_kernel`**: launched by no route (a 1-D convolution runs through `conv2d`).
|
|
405
593
|
|
|
406
|
-
[Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.
|
|
594
|
+
[Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.4...HEAD
|
|
595
|
+
[0.1.4]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.3...v0.1.4
|
|
407
596
|
[0.1.3]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.2...v0.1.3
|
|
408
597
|
[0.1.2]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.1...v0.1.2
|
|
409
598
|
[0.1.1]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.0...v0.1.1
|
|
@@ -22,6 +22,21 @@ Found a bug on your hardware? [Open an issue](https://github.com/NeuroBrix/nbxte
|
|
|
22
22
|
The library's source lives in `nbxtensor/` of the [NeuroBrix repository](https://github.com/NeuroBrix/neurobrix) and is
|
|
23
23
|
exported here; a pull request on either repository is fine — we carry it across.
|
|
24
24
|
|
|
25
|
+
## The home of every tensor mechanism
|
|
26
|
+
|
|
27
|
+
**nbxtensor is the ecosystem's torch** (owner rule, 2026-11-12). Everything that touches tensors or follows torch's
|
|
28
|
+
logic (tensors, devices, memory, arenas, copies, compute kernels, replay, the tensor side of the experts store) lives in
|
|
29
|
+
nbxtensor, never in the engine. nbxtensor is a library with its own role: it replaces torch, and the engine is one of
|
|
30
|
+
its users, like any other. The engine keeps policy: Prism, model families, flows, the CLI, serving, which expert sits in
|
|
31
|
+
which slot and how many slots Prism grants. Every project of the ecosystem is separate (the engine, nbxtensor,
|
|
32
|
+
NBXGrammar, NBX Code, the container builder, the hub), and a function is filed in the project it belongs to. Engine code
|
|
33
|
+
that does tensor work is a defect as severe as a wrong answer: its fix ships at once, never held back to be grouped into
|
|
34
|
+
a release. The PyTorch engine computes with torch, its own library; that is not a breach.
|
|
35
|
+
|
|
36
|
+
For a contributor: a tensor helper is never added to the engine "for now"; the library is improved instead. A tensor
|
|
37
|
+
operation, a copy, a memory fact or a kernel the engine needs and nbxtensor lacks is added to nbxtensor, with its test,
|
|
38
|
+
and the engine calls it.
|
|
39
|
+
|
|
25
40
|
## Style
|
|
26
41
|
|
|
27
42
|
- **No torch.** nbxtensor never imports torch, not even optionally or inside a `try`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: nbxtensor
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
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
|
|
@@ -77,6 +77,21 @@ assert c.shape == (256, 128) and np.allclose(c.numpy().astype(np.float32), ref,
|
|
|
77
77
|
buffer before the first run, and every kernel declares its cost (outputs, workspace, scratch, bytes moved, flops) so a
|
|
78
78
|
planner prices a model before running it. Capture and replay of a repeated sequence of launches, verified byte-equal.
|
|
79
79
|
|
|
80
|
+
## The home of every tensor mechanism
|
|
81
|
+
|
|
82
|
+
**nbxtensor is the ecosystem's torch** (owner rule, 2026-11-12). Everything that touches tensors or follows torch's
|
|
83
|
+
logic (tensors, devices, memory, arenas, copies, compute kernels, replay, the tensor side of the experts store) lives in
|
|
84
|
+
nbxtensor, never in the engine. nbxtensor is a library with its own role: it replaces torch, and the engine is one of
|
|
85
|
+
its users, like any other. The engine keeps policy: Prism, model families, flows, the CLI, serving, which expert sits in
|
|
86
|
+
which slot and how many slots Prism grants. Every project of the ecosystem is separate (the engine, nbxtensor,
|
|
87
|
+
NBXGrammar, NBX Code, the container builder, the hub), and a function is filed in the project it belongs to. Engine code
|
|
88
|
+
that does tensor work is a defect as severe as a wrong answer: its fix ships at once, never held back to be grouped into
|
|
89
|
+
a release. The PyTorch engine computes with torch, its own library; that is not a breach.
|
|
90
|
+
|
|
91
|
+
For a contributor: a tensor helper is never added to the engine "for now"; the library is improved instead. A tensor
|
|
92
|
+
operation, a copy, a memory fact or a kernel the engine needs and nbxtensor lacks is added to nbxtensor, with its test,
|
|
93
|
+
and the engine calls it. See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
94
|
+
|
|
80
95
|
## Certify your own hardware
|
|
81
96
|
|
|
82
97
|
A kernel setting is certified per launch key (the kernel, its shape class and dtypes) and per GPU class. The keys a GPU
|
|
@@ -114,17 +129,17 @@ the keys (`pip install neurobrix`), with these commands (run as written on a cle
|
|
|
114
129
|
every class certified is a class nobody autotunes again.
|
|
115
130
|
|
|
116
131
|
|
|
117
|
-
**Links:** [API reference](https://github.com/NeuroBrix/
|
|
132
|
+
**Links:** [API reference](https://github.com/NeuroBrix/nbxtensor/blob/main/docs/API.md) ·
|
|
118
133
|
[release notes](https://github.com/NeuroBrix/nbxtensor/blob/main/CHANGELOG.md) ·
|
|
119
134
|
[NeuroBrix](https://github.com/NeuroBrix/neurobrix), the inference engine whose Triton engine is nbxtensor's first
|
|
120
135
|
client; nbxtensor's source lives in its `nbxtensor/` directory and is exported here.
|
|
121
136
|
|
|
122
137
|
## Status
|
|
123
138
|
|
|
124
|
-
Every area below is in the library, and every public name is documented in [`docs/
|
|
139
|
+
Every area below is in the library, and every public name is documented in [`docs/API.md`](https://github.com/NeuroBrix/nbxtensor/blob/main/docs/API.md) (the list of
|
|
125
140
|
undocumented names is empty and a test keeps it so). This README documents what is in the library TODAY; every example below is executed by
|
|
126
141
|
`nbxtensor/tests/test_readme.py`, so an example that stops working fails a test. The target API is
|
|
127
|
-
`docs/
|
|
142
|
+
`docs/API.md`.
|
|
128
143
|
|
|
129
144
|
| area | in the library | what it holds |
|
|
130
145
|
|---|---|---|
|
|
@@ -430,7 +445,7 @@ memory.set_limit(None) # the physical card again
|
|
|
430
445
|
|
|
431
446
|
Some services are still passed through `nbxtensor.host` while the boundary is cleaned before 0.0.1 (the device
|
|
432
447
|
description, the operand decisions of the matrix unit and attention, and where a backend build may live).
|
|
433
|
-
`docs/
|
|
448
|
+
`docs/API.md` section 11 lists each one, its fate (generic in the library, or back in the application) and
|
|
434
449
|
its state.
|
|
435
450
|
|
|
436
451
|
An application may also watch every kernel launch without running it — a dry run, to list the kernel keys a model
|
|
@@ -483,7 +498,7 @@ tuning screens, every value with its source.
|
|
|
483
498
|
|
|
484
499
|
## Backends
|
|
485
500
|
|
|
486
|
-
CUDA (NVIDIA), HIP (AMD), Level Zero (Intel) and Apple Metal through triton-ext; what a new backend provides is [`docs/
|
|
501
|
+
CUDA (NVIDIA), HIP (AMD), Level Zero (Intel) and Apple Metal through triton-ext; what a new backend provides is [`docs/BACKENDS.md`](https://github.com/NeuroBrix/nbxtensor/blob/main/docs/BACKENDS.md), and
|
|
487
502
|
`tests/nbxtensor_backend_conformance` is what it must pass. The backend in force is public API:
|
|
488
503
|
`nbxtensor.backend.runtime.gpu_backend()` names it ("cuda", "hip", "xpu", "metal"), `gpu_runtime()` is its runtime,
|
|
489
504
|
`backend_table()` its entry points, `device_memory()` its memory primitives, and `set_device(tensor)` binds the
|
|
@@ -54,6 +54,21 @@ assert c.shape == (256, 128) and np.allclose(c.numpy().astype(np.float32), ref,
|
|
|
54
54
|
buffer before the first run, and every kernel declares its cost (outputs, workspace, scratch, bytes moved, flops) so a
|
|
55
55
|
planner prices a model before running it. Capture and replay of a repeated sequence of launches, verified byte-equal.
|
|
56
56
|
|
|
57
|
+
## The home of every tensor mechanism
|
|
58
|
+
|
|
59
|
+
**nbxtensor is the ecosystem's torch** (owner rule, 2026-11-12). Everything that touches tensors or follows torch's
|
|
60
|
+
logic (tensors, devices, memory, arenas, copies, compute kernels, replay, the tensor side of the experts store) lives in
|
|
61
|
+
nbxtensor, never in the engine. nbxtensor is a library with its own role: it replaces torch, and the engine is one of
|
|
62
|
+
its users, like any other. The engine keeps policy: Prism, model families, flows, the CLI, serving, which expert sits in
|
|
63
|
+
which slot and how many slots Prism grants. Every project of the ecosystem is separate (the engine, nbxtensor,
|
|
64
|
+
NBXGrammar, NBX Code, the container builder, the hub), and a function is filed in the project it belongs to. Engine code
|
|
65
|
+
that does tensor work is a defect as severe as a wrong answer: its fix ships at once, never held back to be grouped into
|
|
66
|
+
a release. The PyTorch engine computes with torch, its own library; that is not a breach.
|
|
67
|
+
|
|
68
|
+
For a contributor: a tensor helper is never added to the engine "for now"; the library is improved instead. A tensor
|
|
69
|
+
operation, a copy, a memory fact or a kernel the engine needs and nbxtensor lacks is added to nbxtensor, with its test,
|
|
70
|
+
and the engine calls it. See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
71
|
+
|
|
57
72
|
## Certify your own hardware
|
|
58
73
|
|
|
59
74
|
A kernel setting is certified per launch key (the kernel, its shape class and dtypes) and per GPU class. The keys a GPU
|
|
@@ -91,17 +106,17 @@ the keys (`pip install neurobrix`), with these commands (run as written on a cle
|
|
|
91
106
|
every class certified is a class nobody autotunes again.
|
|
92
107
|
|
|
93
108
|
|
|
94
|
-
**Links:** [API reference](https://github.com/NeuroBrix/
|
|
109
|
+
**Links:** [API reference](https://github.com/NeuroBrix/nbxtensor/blob/main/docs/API.md) ·
|
|
95
110
|
[release notes](https://github.com/NeuroBrix/nbxtensor/blob/main/CHANGELOG.md) ·
|
|
96
111
|
[NeuroBrix](https://github.com/NeuroBrix/neurobrix), the inference engine whose Triton engine is nbxtensor's first
|
|
97
112
|
client; nbxtensor's source lives in its `nbxtensor/` directory and is exported here.
|
|
98
113
|
|
|
99
114
|
## Status
|
|
100
115
|
|
|
101
|
-
Every area below is in the library, and every public name is documented in [`docs/
|
|
116
|
+
Every area below is in the library, and every public name is documented in [`docs/API.md`](https://github.com/NeuroBrix/nbxtensor/blob/main/docs/API.md) (the list of
|
|
102
117
|
undocumented names is empty and a test keeps it so). This README documents what is in the library TODAY; every example below is executed by
|
|
103
118
|
`nbxtensor/tests/test_readme.py`, so an example that stops working fails a test. The target API is
|
|
104
|
-
`docs/
|
|
119
|
+
`docs/API.md`.
|
|
105
120
|
|
|
106
121
|
| area | in the library | what it holds |
|
|
107
122
|
|---|---|---|
|
|
@@ -407,7 +422,7 @@ memory.set_limit(None) # the physical card again
|
|
|
407
422
|
|
|
408
423
|
Some services are still passed through `nbxtensor.host` while the boundary is cleaned before 0.0.1 (the device
|
|
409
424
|
description, the operand decisions of the matrix unit and attention, and where a backend build may live).
|
|
410
|
-
`docs/
|
|
425
|
+
`docs/API.md` section 11 lists each one, its fate (generic in the library, or back in the application) and
|
|
411
426
|
its state.
|
|
412
427
|
|
|
413
428
|
An application may also watch every kernel launch without running it — a dry run, to list the kernel keys a model
|
|
@@ -460,7 +475,7 @@ tuning screens, every value with its source.
|
|
|
460
475
|
|
|
461
476
|
## Backends
|
|
462
477
|
|
|
463
|
-
CUDA (NVIDIA), HIP (AMD), Level Zero (Intel) and Apple Metal through triton-ext; what a new backend provides is [`docs/
|
|
478
|
+
CUDA (NVIDIA), HIP (AMD), Level Zero (Intel) and Apple Metal through triton-ext; what a new backend provides is [`docs/BACKENDS.md`](https://github.com/NeuroBrix/nbxtensor/blob/main/docs/BACKENDS.md), and
|
|
464
479
|
`tests/nbxtensor_backend_conformance` is what it must pass. The backend in force is public API:
|
|
465
480
|
`nbxtensor.backend.runtime.gpu_backend()` names it ("cuda", "hip", "xpu", "metal"), `gpu_runtime()` is its runtime,
|
|
466
481
|
`backend_table()` its entry points, `device_memory()` its memory primitives, and `set_device(tensor)` binds the
|