nbxtensor 0.1.1__tar.gz → 0.1.2__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.1 → nbxtensor-0.1.2}/CHANGELOG.md +25 -1
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/PKG-INFO +1 -1
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/pyproject.toml +1 -1
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/__init__.py +1 -1
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/capabilities.py +16 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/triton_ext_driver.py +47 -32
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/.github/workflows/cla.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/.gitignore +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/CONTRIBUTING.md +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/LICENSE +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/NOTICE +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/README.md +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/THIRD_PARTY_NOTICES.md +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/assets/logo.png +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/__main__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/__init__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/cpu/__init__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/cpu/blas.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/cpu/pool.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/cpu_backend.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/device_facts.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/device_files.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/device_names.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/mtl.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/wcl.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/intel/xe_lp.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/faults.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/host_memory.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/install_help.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/install_metal.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/install_steps.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/launcher.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/launcher_contract.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/level_zero.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/level_zero_driver.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/libnames.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/metal_backend.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/metal_device.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/process_memory.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/replay_graph.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/backend/runtime.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/__init__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/convert.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/dtypes.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/itemsize.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/operands.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/outputs.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/policy.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/policy.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/dtype/promotion.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/host.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/io/__init__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/io/read_rate.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/io/safetensors.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/__init__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/allocator.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/arena.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/device_memory.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/device_transfer.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/host_spill.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/kv_host_pages.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/kv_host_tier.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/kv_session.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/layout.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/memory_pool.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/metal.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/oom_advice.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/paged_kv.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/pages.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/pointer_tables.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/pool.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/shadow.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/slab.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/to_device_census.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/trace_replay.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/memory/vmm.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/__init__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/_autotune_policy.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/_common.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/_configs.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/_cost.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/abs.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/add.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/addcdiv.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/addcmul.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/addmv_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/addr.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/all_reduce.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/amax.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/any_reduce.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/arange_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/argmax.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/argmin.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/atan2.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/attention_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/autotune_bucket.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/autotune_cache.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/autotune_certified.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/autotune_refusals.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/autotune_settings.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/avg_pool2d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/baddbmm_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/batch_norm.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/binary_strided.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bitwise_and.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bitwise_not.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bitwise_or.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/bucketize.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cat_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/celu.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/certified_index.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/clamp.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/clamp_min.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/conv2d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/conv_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/copy.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/copy_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cos.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/count_nonzero.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cross_entropy.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cummax.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cummin.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/cumsum.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dequant_gemv.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dft.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dispatch.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/div.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dot_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dropout.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/dtype_convert.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/elementwise_launch.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/elu.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/embedding.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/embedding_pool.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/eq.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/erf.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/exp.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/exp2.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/fft_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/fill_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/flash_attention.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/flash_decode.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/flip_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/floor.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/full_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/fused_moe.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/gather_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/ge.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/gelu.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/gemv_vec.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/glu.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/grid_sampler.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/groupnorm.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/gt.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/hardsigmoid.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/hardswish.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/host_decode_partial.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/im2col.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/index_add.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/index_put_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/index_select.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/index_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/isfinite.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/isinf.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/isnan.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/launch_keys.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/launch_observer.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/layernorm.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/le.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/leaky_relu.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/lerp.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/linalg_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/linspace_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/log.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/log_sigmoid.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/logical_and.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/logical_not.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/logical_or.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/logical_xor.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/loss_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/lt.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/masked_fill.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/matmul.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/max_pool2d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/max_pool3d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/max_reduce.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/maximum.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/mean.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/min_reduce.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/minimum.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/mish.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/moe_align.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/moe_device_residency.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/moe_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/mse_loss.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/mul.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/nan_to_num.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/ne.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/neg.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/nllloss.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/nonzero.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/nonzero_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/norm_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/ones_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/oracles/__init__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/pad_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/pow.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/prod.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/rand_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/random_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/reciprocal.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/relu.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/remainder.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/repeat_interleave.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/repeat_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/residual_chain.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/rmsnorm.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/rope.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/rsqrt.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/scaled_softmax.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/scatter_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/screen_oracle.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/selu.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/shape_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sigmoid.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/silu.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sin.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/softmax.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/softplus.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sort_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sqrt.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/stack_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/std.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/strided_copy.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sub.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/sum.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tan.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tanh.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/threshold.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tiling.yml +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tiling_policy.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tiling_sizes.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/token_bitmask.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/topk.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/trace_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/tril.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/triu.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/unfold_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/unique_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/var.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/vector_norm.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/weight_norm.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/where.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/wrappers.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/ops/zeros_op.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/quant/__init__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/quant/quantized_tensor.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/random/__init__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/random/mt_randn.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/random/rng_pin.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/random/rng_stream.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/random/seeded_draw.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/shape/__init__.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/tensor.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/src/nbxtensor/terminal.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/tools/device_key_census.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/tools/device_key_trace.py +0 -0
- {nbxtensor-0.1.1 → nbxtensor-0.1.2}/tools/scatter_scan.py +0 -0
|
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.2] - 2026-11-11
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- `backend.capabilities.backend_kernels_read_data_ptr()`: whether a tensor's `data_ptr()` is the address a kernel
|
|
14
|
+
dereferences, stated per backend (CUDA and HIP yes; Metal no — a kernel there reads a pinned wrap's address,
|
|
15
|
+
handed by the launcher; Level Zero no — its kernels load no address from memory). What a launch over a table of
|
|
16
|
+
`data_ptr()` values stands on; a backend without a row is refused by name.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- **Apple: an address read through a pinned table is answered from a wrap that covers it.** The Metal driver kept
|
|
20
|
+
its pinned whole-allocation wraps under their base address alone, and a pool segment begins where its first block
|
|
21
|
+
does. With that first block pinned, a view inside another block of the same segment — a slot of the Triton expert
|
|
22
|
+
store's arena — resolved to the first block's short wrap and was handed an address past that buffer's end: another
|
|
23
|
+
buffer's bytes, nothing raised. Found by a test that builds the copying expert store (the one with an arena)
|
|
24
|
+
directly and runs it after nine earlier mixture-of-experts runs in one process: every row of its result was wrong.
|
|
25
|
+
The engine does not build that store on Apple — a unified device's store binds its experts in place, where they
|
|
26
|
+
lie in the container's files — and the published 0.6.6 was not seen affected through `neurobrix serve`: on the
|
|
27
|
+
two plans the mixture-of-experts model that fits a 24 GB Mac takes (resident, and streamed layer by layer), no
|
|
28
|
+
pinned address out of two million was answered past its wrap and every expert's address resolved to an
|
|
29
|
+
allocation of its own. The expert-store plan itself was not run on Apple hardware (its models are 31 GB). The
|
|
30
|
+
wraps are now kept under their extent (base and size), and `pinned_gpu_address` refuses by name an address beyond
|
|
31
|
+
the wrap it resolved. CUDA and Level Zero are not concerned: they have no such wraps.
|
|
32
|
+
|
|
10
33
|
## [0.1.1] - 2026-11-11
|
|
11
34
|
|
|
12
35
|
### Added
|
|
@@ -354,7 +377,8 @@ memory; the fix is in test).
|
|
|
354
377
|
- **`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.
|
|
355
378
|
- **`conv1d_forward_kernel`**: launched by no route (a 1-D convolution runs through `conv2d`).
|
|
356
379
|
|
|
357
|
-
[Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.
|
|
380
|
+
[Unreleased]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.2...HEAD
|
|
381
|
+
[0.1.2]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.1...v0.1.2
|
|
358
382
|
[0.1.1]: https://github.com/NeuroBrix/nbxtensor/compare/v0.1.0...v0.1.1
|
|
359
383
|
[0.1.0]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.9...v0.1.0
|
|
360
384
|
[0.0.8]: https://github.com/NeuroBrix/nbxtensor/compare/v0.0.5...v0.0.8
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: nbxtensor
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
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
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "nbxtensor"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
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" }
|
|
@@ -52,6 +52,15 @@ _BACKEND_TRAPS_ON_DEVICE_ASSERT = {"cuda": True, "hip": True, "xpu": False, "met
|
|
|
52
52
|
# backend is adding a row.
|
|
53
53
|
# xpu: not measured on a card — False (the band refuses by name) until a launch reads through a loaded address.
|
|
54
54
|
_BACKEND_LOADS_POINTERS_FROM_MEMORY = {"cuda": True, "hip": True, "xpu": False, "metal": False}
|
|
55
|
+
# Whether a tensor's `data_ptr()` is the address a KERNEL dereferences — what a launch over a table of `data_ptr()`
|
|
56
|
+
# values (the expert store's residency on the card, `ops/moe_device_residency`) stands on.
|
|
57
|
+
# cuda, hip: yes — one address space for the host's handle and the kernel (the residency's device test, V100).
|
|
58
|
+
# metal: no — `data_ptr()` is the CPU mapping; a kernel reads a pinned wrap's GPU address, handed by the
|
|
59
|
+
# launcher (`triton_ext_driver.pinned_gpu_address`), and a raw launch refuses a tensor it did not wrap.
|
|
60
|
+
# xpu: no — its kernels load no address from memory at all (the row above), so no table of them is read.
|
|
61
|
+
# A different question from the row above: Metal loads an address from memory (declared by its launcher) and still
|
|
62
|
+
# answers no here. Adding a backend is adding a row.
|
|
63
|
+
_BACKEND_KERNELS_READ_DATA_PTR = {"cuda": True, "hip": True, "xpu": False, "metal": False}
|
|
55
64
|
# Whether the backend's kernels can read and write a float64 (or complex128) element. Metal
|
|
56
65
|
# has no double: its lowering NARROWS f64 to float in silence (`triton/metal_backend.py`,
|
|
57
66
|
# `TRITON_METAL_FP64_UNAVAILABLE`), so a kernel over a float64 buffer reads eight-byte
|
|
@@ -207,3 +216,10 @@ def backend_traps_on_device_assert() -> bool:
|
|
|
207
216
|
return _backend_capability(
|
|
208
217
|
_BACKEND_TRAPS_ON_DEVICE_ASSERT, "_BACKEND_TRAPS_ON_DEVICE_ASSERT",
|
|
209
218
|
"whether it honours a device-side assert")
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
def backend_kernels_read_data_ptr() -> bool:
|
|
222
|
+
"""True where a tensor's `data_ptr()` is the address a kernel dereferences (a table of them can be launched on)."""
|
|
223
|
+
return _backend_capability(
|
|
224
|
+
_BACKEND_KERNELS_READ_DATA_PTR, "_BACKEND_KERNELS_READ_DATA_PTR",
|
|
225
|
+
"whether a kernel reads a tensor's data_ptr() as its address")
|
|
@@ -447,29 +447,41 @@ _PINNED_WRAPS: dict = {}
|
|
|
447
447
|
# (`reads_addresses`, carried by `_Trailing`). Measured 2026-09-21
|
|
448
448
|
# (granite): per-expert kept wraps also worked but Metal declined the ~480th
|
|
449
449
|
# GB-scale alias, so one wrap per allocation is the shape that scales.
|
|
450
|
-
# base -> [wrap, refcount, gpu_va].
|
|
450
|
+
# (base, size) -> [wrap, refcount, gpu_va]. Keyed by the EXTENT, never by the base alone: a pool segment and its
|
|
451
|
+
# first block begin at the same address, and under one key a view inside another block of the segment found the
|
|
452
|
+
# first block's short wrap and was handed an address past that buffer's end (the expert store's slots, 2026-11-11:
|
|
453
|
+
# wrong bytes, nothing raised).
|
|
451
454
|
_RESIDENT_WRAPS: dict = {}
|
|
452
455
|
|
|
453
456
|
|
|
454
|
-
def
|
|
457
|
+
def _pinned_extent(addr: int):
|
|
458
|
+
"""(base, size) of the allocation whose whole-allocation wrap answers for `addr` — the block registered at
|
|
459
|
+
`addr`, else the live range containing it — or None for a recorded shadow (memory that exists nowhere). The one
|
|
460
|
+
place both the pin and the address read it, so they cannot disagree."""
|
|
461
|
+
from nbxtensor.memory.allocator import DeviceAllocator
|
|
462
|
+
size = DeviceAllocator._cuda_ptr_size.get(addr)
|
|
463
|
+
if size is not None:
|
|
464
|
+
return addr, size
|
|
465
|
+
if _recorded_shadow(addr) is not None:
|
|
466
|
+
return None
|
|
467
|
+
return _containing_allocation(addr)
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
def _resident_acquire(addr: int):
|
|
455
471
|
"""Pin one wrap of the whole allocation containing `addr` for the scope's
|
|
456
|
-
lifetime (`_RESIDENT_WRAPS` holds it); returns
|
|
472
|
+
lifetime (`_RESIDENT_WRAPS` holds it); returns its key, the extent (None: a
|
|
473
|
+
census shadow allocation, recorded as one — nothing to wrap, nothing to
|
|
474
|
+
hold; an address nobody recorded still fails in `_pinned_extent`)."""
|
|
457
475
|
import numpy as np
|
|
458
|
-
from nbxtensor.memory.allocator import DeviceAllocator
|
|
459
476
|
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
# A census shadow allocation, recorded as one: memory that exists nowhere, so
|
|
465
|
-
# nothing to wrap and nothing to hold. Recognised, not skipped: an address that
|
|
466
|
-
# nobody recorded still fails below, in a shadow as in a real run.
|
|
467
|
-
return None
|
|
468
|
-
base, size = _containing_allocation(addr)
|
|
469
|
-
ent = _RESIDENT_WRAPS.get(base)
|
|
477
|
+
key = _pinned_extent(addr)
|
|
478
|
+
if key is None:
|
|
479
|
+
return None
|
|
480
|
+
ent = _RESIDENT_WRAPS.get(key)
|
|
470
481
|
if ent is not None:
|
|
471
482
|
ent[1] += 1
|
|
472
|
-
return
|
|
483
|
+
return key
|
|
484
|
+
base, size = key
|
|
473
485
|
raw = (ctypes.c_byte * size).from_address(base)
|
|
474
486
|
view = np.frombuffer(memoryview(raw), dtype=np.uint8)
|
|
475
487
|
# Inside a pool: `gpu_address()` records the buffer in triton-ext's weak table of exposed buffers, and an
|
|
@@ -481,8 +493,8 @@ def _resident_acquire(addr: int) -> int:
|
|
|
481
493
|
with objc.autorelease_pool():
|
|
482
494
|
buf = _native().wrap(view)
|
|
483
495
|
gpu_va = int(buf.gpu_address()) # also records it as exposed, weakly
|
|
484
|
-
_RESIDENT_WRAPS[
|
|
485
|
-
return
|
|
496
|
+
_RESIDENT_WRAPS[key] = [buf, 1, gpu_va]
|
|
497
|
+
return key
|
|
486
498
|
|
|
487
499
|
|
|
488
500
|
def pinned_gpu_address(addr: int) -> int:
|
|
@@ -494,23 +506,26 @@ def pinned_gpu_address(addr: int) -> int:
|
|
|
494
506
|
probe_read_through 2026-09-21). The pin's whole-allocation kept wrap
|
|
495
507
|
is therefore the one address authority: its gpu_address plus the CPU
|
|
496
508
|
offset inside the allocation, computable on the host with no launch.
|
|
509
|
+
Refuses by name an address its allocation's wrap is not held for, and one
|
|
510
|
+
that would lie beyond the wrap it resolved: past a buffer's end the read
|
|
511
|
+
is whatever Metal maps there.
|
|
497
512
|
"""
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
# for it, exactly as every other address in a shadow addresses nothing.
|
|
505
|
-
return int(addr)
|
|
506
|
-
base, size = _containing_allocation(addr)
|
|
507
|
-
ent = _RESIDENT_WRAPS.get(base)
|
|
513
|
+
key = _pinned_extent(addr)
|
|
514
|
+
if key is None:
|
|
515
|
+
# A recorded shadow has no GPU address to give; the shadow's own address stands
|
|
516
|
+
# for it, exactly as every other address in a shadow addresses nothing.
|
|
517
|
+
return int(addr)
|
|
518
|
+
ent = _RESIDENT_WRAPS.get(key)
|
|
508
519
|
if ent is None:
|
|
509
520
|
raise RuntimeError(
|
|
510
521
|
f"pinned_gpu_address(0x{addr:x}): its allocation is not under any "
|
|
511
522
|
f"pinned_addresses scope — an address handed out without a pin "
|
|
512
523
|
f"would go stale silently, which is the defect this refuses")
|
|
513
|
-
|
|
524
|
+
if not 0 <= addr - key[0] < ent[0].nbytes:
|
|
525
|
+
raise RuntimeError(
|
|
526
|
+
f"pinned_gpu_address(0x{addr:x}): {addr - key[0]} bytes from its allocation's base, beyond the wrap "
|
|
527
|
+
f"held for it ({ent[0].nbytes} bytes) — an address past a buffer's end reads another buffer's bytes")
|
|
528
|
+
return ent[2] + (addr - key[0])
|
|
514
529
|
|
|
515
530
|
|
|
516
531
|
def _recorded_shadow(addr: int):
|
|
@@ -520,15 +535,15 @@ def _recorded_shadow(addr: int):
|
|
|
520
535
|
return shadow_range(addr)
|
|
521
536
|
|
|
522
537
|
|
|
523
|
-
def _resident_release(
|
|
524
|
-
if
|
|
538
|
+
def _resident_release(key) -> None:
|
|
539
|
+
if key is None: # a recorded shadow held nothing
|
|
525
540
|
return
|
|
526
|
-
ent = _RESIDENT_WRAPS.get(
|
|
541
|
+
ent = _RESIDENT_WRAPS.get(key)
|
|
527
542
|
if ent is None:
|
|
528
543
|
return
|
|
529
544
|
ent[1] -= 1
|
|
530
545
|
if ent[1] <= 0:
|
|
531
|
-
_RESIDENT_WRAPS.pop(
|
|
546
|
+
_RESIDENT_WRAPS.pop(key, None) # the wrap dies here; the weak exposed table drops it
|
|
532
547
|
#: How many open scopes pin each address. A wrap is dropped only when the last
|
|
533
548
|
#: scope holding its address exits.
|
|
534
549
|
_PIN_COUNTS: dict = {}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|