nbxtensor 0.1.14__tar.gz → 0.1.16__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.16/.coderabbit.yaml +40 -0
- nbxtensor-0.1.16/.github/workflows/commit-hygiene.yml +34 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/CHANGELOG.md +9 -0
- nbxtensor-0.1.16/CITATION.cff +21 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/PKG-INFO +1 -1
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/pyproject.toml +1 -1
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/release/v0.1.14.sha256 +1 -1
- nbxtensor-0.1.16/release/v0.1.15.sha256 +2 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/__init__.py +1 -1
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/launcher.py +1 -1
- nbxtensor-0.1.16/src/nbxtensor/backend/process_memory.py +184 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/triton_floor.py +19 -2
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/allocator.py +10 -6
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/kv_host_pages.py +41 -26
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/_configs.py +29 -10
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_issue6_windows_ada_and_triton_floor.py +55 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_read_at_caps_preadv_below_int_max.py +1 -1
- nbxtensor-0.1.16/tests/test_wddm_context_memory_measured_without_per_process_nvml.py +151 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/check_wheel_hygiene.py +2 -1
- nbxtensor-0.1.14/src/nbxtensor/backend/process_memory.py +0 -73
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/.github/workflows/cla.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/.github/workflows/publish.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/.gitignore +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/CONTRIBUTING.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/LICENSE +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/NOTICE +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/README.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/THIRD_PARTY_NOTICES.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/assets/logo.png +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/API.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/BACKENDS.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/api_undocumented.txt +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/certified-autotune-method.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/design/ALLOCATOR.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/design/COST.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/design/DESIGN.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/device_file_template.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/device_keys.txt +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/history/ENGINE_SLIM.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/history/INVENTORY.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/history/MIGRATION.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/history/engine_slim_list.tsv +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/history/migration_list.tsv +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/kernels_provenance.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/replay-recording-in-a-one-shot-request.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/tensor-cores-through-linear-layouts.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/docs/triton_cpu_install.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/release/v0.1.13.sha256 +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/__main__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/c_compiler.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/capabilities.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/compile_bound.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/cpu/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/cpu/blas.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/cpu/pool.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/cpu_backend.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/cuda_launch.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/cuda_profile.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/device_facts.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/device_files.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/device_measure.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/device_names.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/mtl.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/wcl.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/intel/xe_lp.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/nvidia/ada.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/nvidia/blackwell.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/nvidia/blackwell_consumer.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/nvidia/maxwell.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/nvidia/pascal.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/nvidia/turing.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/faults.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/frozen_plan.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/host_measure.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/host_memory.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/install_help.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/install_metal.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/install_steps.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/launcher_contract.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/level_zero.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/level_zero_driver.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/libnames.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/metal_backend.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/metal_device.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/metal_dispatch.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/metal_profile.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/replay_graph.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/runtime.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/backend/triton_ext_driver.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/device.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/dtype/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/dtype/convert.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/dtype/dtypes.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/dtype/itemsize.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/dtype/operands.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/dtype/outputs.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/dtype/policy.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/dtype/policy.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/dtype/promotion.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/host.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/inspection.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/interop/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/interop/dlpack.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/interop/handoff.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/io/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/io/constants.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/io/mapped_shards.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/io/read_rate.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/io/reader.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/io/safetensors.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/arena.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/block_upload.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/chunk_rule.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/chunk_rule.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/deferred_frees.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/device_memory.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/device_transfer.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/expert_slots.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/fixed_state.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/guarded.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/host_spill.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/kv_host_tier.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/kv_session.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/layout.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/memory_pool.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/metal.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/oom_advice.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/paged_kv.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/pages.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/pinned_pool.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/pointer_tables.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/pool.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/shadow.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/slab.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/slot_stores.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/step_stabilizer.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/streams.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/tied.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/to_device_census.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/trace_replay.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/memory/vmm.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/_autotune_policy.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/_causal_conv1d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/_common.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/_cost.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/_launch_seam.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/abs.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/add.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/addcdiv.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/addcmul.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/addmv_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/addr.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/all_reduce.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/amax.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/any_reduce.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/arange_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/argmax.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/argmin.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/atan2.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/attention_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/autotune_bucket.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/autotune_cache.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/autotune_certified.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/autotune_harness.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/autotune_refusals.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/autotune_settings.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/avg_pool2d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/axis_slices.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/baddbmm_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/batch_norm.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/binary_strided.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/bitwise_and.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/bitwise_not.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/bitwise_or.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/bucketize.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/cat_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/celu.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/certified_index.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/clamp.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/clamp_min.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/conv2d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/conv_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/copy.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/copy_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/cos.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/count_nonzero.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/cross_entropy.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/cummax.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/cummin.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/cumsum.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/dequant_gemv.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/dft.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/dispatch.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/div.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/dot_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/dropout.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/dtype_convert.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/elementwise_launch.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/elu.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/embedding.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/embedding_pool.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/eq.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/erf.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/ew_canary.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/ew_proof.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/ew_proof_child.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/ew_synthetic.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/ew_tile.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/exp.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/exp2.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/fft_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/fill_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/fixed_order.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/flash_attention.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/flash_decode.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/flip_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/floor.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/full_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/fused_moe.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/gated_delta_rule.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/gated_delta_rule_census.json +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/gated_delta_rule_chunked.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/gather_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/ge.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/gelu.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/gemv_vec.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/glu.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/grid_sampler.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/groupnorm.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/gt.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/hardsigmoid.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/hardswish.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/host_decode_partial.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/im2col.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/index_add.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/index_put_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/index_select.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/index_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/isfinite.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/isinf.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/isnan.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/launch_keys.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/launch_observer.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/layernorm.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/le.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/leaky_relu.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/lerp.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/linalg_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/linspace_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/log.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/log_sigmoid.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/logical_and.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/logical_not.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/logical_or.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/logical_xor.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/loss_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/lt.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/masked_fill.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/matmul.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/matrix_units.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/max_pool2d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/max_pool3d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/max_reduce.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/maximum.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/mean.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/min_reduce.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/minimum.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/mish.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/moe_align.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/moe_device_residency.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/moe_fused.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/moe_multi_device.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/moe_route.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/moe_route_census.json +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/moe_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/mse_loss.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/mul.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/nan_to_num.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/ne.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/neg.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/nllloss.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/nonzero.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/nonzero_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/norm_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/ones_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/operand.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/oracles/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/oracles/attention_fp64.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/oracles/fp64.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/pad_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/pow.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/prod.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/rand_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/random_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/reciprocal.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/relu.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/remainder.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/repeat_interleave.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/repeat_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/residual_chain.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/rmsnorm.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/rope.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/rsqrt.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/scaled_softmax.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/scatter_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/screen_oracle.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/selu.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/shape_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/sigmoid.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/silu.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/sin.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/softmax.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/softplus.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/sort_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/sqrt.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/stack_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/std.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/strided_copy.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/sub.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/sum.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/tan.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/tanh.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/threshold.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/tiles.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/tiling.yml +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/tiling_policy.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/tiling_sizes.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/token_bitmask.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/token_filters.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/topk.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/trace_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/tril.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/triu.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/unfold_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/unique_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/var.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/vector_norm.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/weight_norm.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/where.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/wrappers.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/ops/zeros_op.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/profile.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/quant/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/quant/quantized_tensor.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/random/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/random/mt_randn.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/random/rng_pin.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/random/rng_stream.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/random/seeded_draw.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/shape/__init__.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/tensor.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/src/nbxtensor/terminal.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/_chunked_interpreter_run.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/_delta_rule_draw.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/_device_dicts_on_main_50597afcc7a3.json +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/_ew_overrun_kernel.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/_moe_route_compare.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/_moe_route_draw.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/_moe_route_interpreter_run.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/_no_device.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/_record_device_dicts_on_main.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/conftest.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_benchmark_spends_its_time_budget_not_more.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_card_a_neighbour_holds_gets_a_chunk_never_a_refusal.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_cards_expert_table_keeps_the_layers_length.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_causal_convolution_carries_its_last_taps_minus_one_columns.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_certificate_never_holds_a_dead_compile_worker.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_certificate_of_another_bits_epoch_is_refused_by_name_and_its_keys_autotune.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_certification_harness_draws_measures_and_sweeps.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_class_moves_to_the_nearest_passing_tile_on_its_ladder_never_by_a_timing.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_compile_bound_tells_a_timeout_from_a_dead_worker.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_compile_that_did_not_end_is_kept_by_stamp_and_named.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_confirmation_run_serves_a_turn_prefill_flash_only_its_certified_square_key.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_cuda_kernel_time_session_times_each_launch_between_two_events.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_device_name_is_read_once_for_every_backend.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_device_naming_that_moves_nothing_is_counted.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_device_question_the_runtime_refuses_is_raised_by_name.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_device_speed_is_what_it_moves_over_its_time.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_dropped_tensor_is_freed_after_the_work_that_reads_it.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_dtype_the_key_carries_is_never_dropped.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_failed_driver_call_refuses_the_peer_grant.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_fixed_state_is_allocated_zero_written_reordered_copied_and_forgotten.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_fixed_state_on_a_card_keeps_its_bytes_through_every_verb.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_frozen_plan_replays_its_launches_pre_bound.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_graph_constant_is_read_without_a_tensor_library.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_horizontal_matmul_band_computes_what_its_own_matmul_computes.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_host_error_in_the_proof_worker_is_never_a_fault.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_host_tensor_crossing_to_a_moe_device_is_always_moved.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_kernel_file_carries_the_header_of_its_provenance_class.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_kernel_time_session_ranks_launches_and_changes_no_byte.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_key_carrying_an_integer_dtype_is_synthesised_as_that_dtype.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_key_the_card_has_not_certified_is_refused_by_name_never_swept_for_the_moe_route.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_kv_page_goes_to_the_host_and_back_bit_exact.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_launch_at_a_proven_tile_settles_without_a_move.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_layer_on_several_devices_is_the_sum_of_their_shares.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_layout_file_names_one_real_launch_and_its_verdict_line.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_mapped_shard_gives_back_the_pages_of_a_copied_view.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_matmul_family_call_runs_the_unit_the_rule_gives_it_never_the_one_a_timing_chose.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_metal_event_times_the_kernels_recorded_before_it.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_metal_fence_frees_only_the_pages_past_it.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_metal_kernel_runs_on_nbxtensors_own_stream.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_missing_c_compiler_is_refused_by_name_before_the_first_build.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_one_element_sentinel_is_saturated_to_a_half_range.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_one_row_conv_key_is_drawn_where_the_fma_kernel_forms_it.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_pinned_host_buffer_is_released_after_the_work_in_flight.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_planner_reads_the_matrix_unit_and_the_cost_operand_by_public_names.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_pool_block_freed_with_the_pool_switched_off_goes_back_to_its_pool.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_probe_leaves_no_context_on_a_card_nobody_selected.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_profile_books_no_negative_time_and_says_what_it_could_not_attribute.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_promoted_slab_crosses_once_and_its_table_is_never_cached.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_refused_allocation_names_who_holds_the_memory.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_replay_artifact_of_another_bits_epoch_is_never_seeded.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_replay_child_sees_its_one_card.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_replayed_launch_binds_by_the_extents_it_was_launched_with.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_replayed_view_output_keeps_its_values.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_run_s_end_synchronises_only_where_a_mid_run_release_would.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_runtime_autotune_on_metal_ranks_on_times_that_follow_the_work.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_runtime_reset_drops_the_fault_words_of_the_old_runtime.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_sampler_s_filters_keep_what_transformers_keeps.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_sequence_decodes_past_the_card_s_pages.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_setting_not_served_says_why.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_shadow_installs_where_the_runtime_has_no_driver.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_shadow_never_reads_a_host_copy_of_a_shadow_value.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_shadow_value_read_keys_off_the_dtype_name.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_single_card_plan_replays_as_one_graph.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_slot_store_ends_its_request_and_is_released_by_the_library.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_small_tensor_never_pins_a_large_block.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_spilled_sequence_attends_as_one.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_stack_of_stored_tensors_is_built_one_source_at_a_time.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_step_stabilizer_measures_once_then_serves_one_recycled_slab.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_stored_bf16_weight_is_measured_from_its_bytes.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_sweep_candidate_compiles_under_a_bound.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_sweep_refused_everywhere_says_so.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_synthetic_launch_carries_each_integer_at_the_variants_own_width.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_table_pin_holder_holds_one_pin_per_set_of_wraps.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_tensor_alive_at_exit_frees_nothing_while_the_interpreter_finalizes.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_tensor_is_compared_bit_for_bit_and_knows_its_allocation.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_tensor_zeroes_in_place_for_triton_s_reset_to_zero.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_tied_weight_is_the_source_s_tensor_across_unload_and_reload.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_token_bitmask_leaves_only_the_allowed_logits.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_triton_below_the_declared_floor_is_refused_by_name_at_the_first_launch.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_triton_kernel_compiles_for_amd_and_launches_through_hip.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_tuner_imported_late_gets_its_stored_settings.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_tuning_keyword_the_installed_triton_lacks_is_refused_by_name.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_turn_prefill_flash_is_served_its_square_key.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_view_of_freed_memory_is_copied_out_first.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_weight_block_uploads_on_its_copy_stream.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_weight_set_is_released_after_its_devices_drain.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_a_weight_sets_memory_is_counted_then_held_by_the_library.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_allocator_interceptor.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_arena_counts_what_it_holds.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_array_enters_at_a_dtype_the_backend_has.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_array_is_placed_on_the_device_it_names.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_array_is_taken_in_through_dlpack.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_attention_returns_its_rows_log_sum_exp.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_axis_is_read_and_written_a_slice_at_a_time.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_element_wise_proof_is_a_function_of_the_variant_alone.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_element_wise_tile_is_proven_on_the_variant_it_reaches.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_embedding_is_pooled_as_its_model_declares.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_empty_product_forms_no_key_and_launches_nothing.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_expert_table_keeps_its_experts_alive.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_an_inspection_reads_every_value_once_on_the_host.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_any_op_module_imported_first_launches_through_the_nbxtensor_launcher.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_array_api_promotion.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_blas_on_macos_14_runs_without_thread_control.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_conv2d_offers_only_candidates_whose_accumulator_fits_the_device_pool.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_cpu_pool.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_device_facts.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_device_files.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_device_memory.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_dtype_convert.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_dtype_outputs.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_dtype_promotion.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_every_candidate_of_a_matmul_family_op_gives_the_same_bits.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_every_class_that_runs_today_resolves_the_dict_it_resolved_on_main.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_every_class_tile_launch_hands_its_grid_as_a_function_of_the_tile.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_every_kernel_computes_its_flat_offsets_in_64_bit.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_every_launch_candidate_of_conv2d_gives_the_same_bits.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_every_launch_candidate_of_matmul_addmm_and_baddbmm_gives_the_same_bits.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_every_launch_candidate_of_the_row_norms_gemv_and_paged_decode_gives_the_same_bits.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_every_launch_of_the_fused_softmax_gives_the_same_bits.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_every_name_the_census_test_reads_from_the_op_module_exists.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_every_nvidia_capability_the_compiler_targets_reads_its_documented_shared_memory.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_ew_proof_child_refuses_occupied_card_before_spawn.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_gather_reads_through_an_index_smaller_than_its_input.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_gathered_kv_pages_are_the_per_layer_copies_bits.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_host.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_host_bytes_reads_a_tensor_past_two_gib.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_index_put_value_broadcasting.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_index_select_noncontiguous_index.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_install_metal_fetches_only_what_it_names.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_io_bf16_split.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_io_read_rate.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_keys_are_read_in_the_queries_order_and_one_head_per_group.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_level_zero_states_an_integrated_gpu.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_nbx_dtype.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_no_environment_switch_changes_a_kernel.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_no_python_boolean_produces_a_value_in_a_kernel.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_one_token_of_the_gated_delta_rule_on_a_device_is_its_oracle.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_one_token_of_the_moe_route_on_a_device_is_its_oracle.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_ops_cost.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_p3_decode_speed_optimizations.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_pinned_host_allocator.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_policy.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_readme.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_shape.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_allocator_peak_is_read_and_restarted_through_the_memory_api.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_allocator_reads_the_chunk_rule_before_a_measure.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_allocator_states_its_pool_and_its_blocks.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_apple_gpu_limits_are_asked_of_the_device_or_refused_by_name.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_application_gives_the_library_its_kernel_module_prefix_and_its_replay_cache_directory.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_attention_reference_is_softmax_qk_v_in_float64.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_backend_is_the_card_on_the_machine.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_chunk_is_given_by_a_rule_per_memory_class.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_chunk_sweep_stops_where_the_measure_decides.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_chunked_gated_delta_rule_costs_its_workspace.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_chunked_gated_delta_rule_is_its_oracle_on_the_interpreter.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_chunked_gated_delta_rule_on_a_device_is_its_oracle.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_compile_target_and_the_pool_s_counters_are_read_through_the_doors.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_compiler_key_is_prewarmed.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_dead_causal_mask_elimination_computes_what_the_mask_computes.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_declared_triton_floor_is_the_one_the_launch_path_needs.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_delta_rule_oracle_is_the_recurrence_the_vendor_computes.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_device_door_answers_from_the_allocator.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_device_door_installs_a_shadow_and_declares_a_target.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_expert_slots_copy_with_the_measured_launch.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_expert_slots_hold_what_the_host_copied.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_expert_slots_live_in_one_allocation.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_fp16_range_scan_names_the_first_weight_outside_the_range.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_fused_moe_op_refuses_before_any_device.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_fused_rope_computes_what_its_chain_computes.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_fused_swiglu_computes_what_its_chain_computes.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_gated_delta_rule_is_an_op_of_the_library.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_gated_delta_rule_op_runs_the_form_its_census_certifies.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_gated_delta_rule_over_a_length_on_a_device_is_its_oracle.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_gated_delta_rule_runs_over_a_symbolic_length.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_hip_driver_keeps_the_launch_contract.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_host_sees_slots_a_replayed_step_moved.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_host_speeds_are_measured_by_the_library.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_int4_moe_decode_band_matches_the_oracle.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_kv_host_tier_keeps_whole_pages_by_prefix.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_launcher_refuses_a_backend_it_has_no_driver_for.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_level_zero_backend_keeps_its_contracts.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_level_zero_driver_issues_the_recorded_ze_calls.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_malloc_trace_names_the_wrapper.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_matmul_oracle_is_windowed_by_rows_above_the_cap.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_metal_dispatch_facts_are_declared_or_refused.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_moe_route_census_names_what_its_kernel_uses.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_moe_route_certification_keys_are_the_kernels_own.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_moe_route_device_comparison_goes_red_on_a_wrong_set_or_weights.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_moe_route_oracle_is_the_routing_written_by_hand.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_moe_route_over_tokens_is_its_plain_reference_on_the_interpreter.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_moe_route_prefill_on_a_device_is_each_token_routed_alone.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_moe_table_refuses_experts_of_two_layouts.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_oracle_reads_only_its_windows_off_the_device.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_pool_states_its_rules_for_a_device.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_proof_worker_runs_on_the_freest_card_of_the_launch_s_stamp.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_proof_worker_runs_only_on_the_run_s_declared_cards_read_by_nvml.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_public_api_names_nothing_of_neurobrix.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_replay_presses_the_card_it_was_recorded_on.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_routing_of_a_mixture_of_experts_is_an_op_of_the_library.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_scatter_family_walks_an_index_smaller_than_its_operands.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_scatter_family_writes_along_any_dim.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_shadow_device_answers_without_a_driver.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_shadow_reads_a_dtype_by_name_not_by_str.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_sync_counter_names_each_metal_kernel.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_vertical_epilogue_computes_what_its_chain_computes.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_the_weight_reader_measures_itself_on_the_load.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_third_party_notices.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_tiles_are_cut_padded_and_crossfaded.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_triton_is_required_only_where_pypi_publishes_it.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_two_views_of_one_layout_are_the_same_memory.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tests/test_version.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/bind_tied_uaf_old_head.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/device_key_census.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/device_key_trace.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/ew_wide_scalars.md +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/kernels_provenance_audit.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/layouts/flex_t5_position_bias_add.json +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/measure_the_chunked_gated_delta_rule.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/moe_route_certification_keys.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/prove_an_element_wise_variant.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/release_files_check.py +0 -0
- {nbxtensor-0.1.14 → nbxtensor-0.1.16}/tools/scatter_scan.py +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# CodeRabbit — second reader on pull requests.
|
|
2
|
+
#
|
|
3
|
+
# It reads diffs; it runs nothing. Every finding is a hypothesis checked
|
|
4
|
+
# against the code before acting.
|
|
5
|
+
|
|
6
|
+
language: en-GB
|
|
7
|
+
|
|
8
|
+
reviews:
|
|
9
|
+
profile: assertive
|
|
10
|
+
request_changes_workflow: false
|
|
11
|
+
high_level_summary: true
|
|
12
|
+
review_status: false
|
|
13
|
+
poem: false
|
|
14
|
+
|
|
15
|
+
auto_review:
|
|
16
|
+
enabled: true
|
|
17
|
+
drafts: false
|
|
18
|
+
|
|
19
|
+
path_filters:
|
|
20
|
+
- "!**/*.lock"
|
|
21
|
+
- "!dist/**"
|
|
22
|
+
- "!build/**"
|
|
23
|
+
- "!reports/**"
|
|
24
|
+
|
|
25
|
+
path_instructions:
|
|
26
|
+
- path: "src/nbxtensor/**/*.py"
|
|
27
|
+
instructions: >-
|
|
28
|
+
nbxtensor is a standalone tensor and memory library with no PyTorch
|
|
29
|
+
dependency. Flag any import of torch, any silent fallback or bare except
|
|
30
|
+
that swallows a device or allocation failure, any dtype mapping that
|
|
31
|
+
omits bfloat16, and any vendor or backend name leaking into shared
|
|
32
|
+
backend-agnostic modules.
|
|
33
|
+
- path: "tests/**"
|
|
34
|
+
instructions: >-
|
|
35
|
+
Flag assertions that hold even if the code under test does nothing,
|
|
36
|
+
silently skipped tests without a stated reason, and tests that assert
|
|
37
|
+
environment properties rather than library decisions.
|
|
38
|
+
|
|
39
|
+
chat:
|
|
40
|
+
auto_reply: true
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Commit Message Hygiene
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
check-commits:
|
|
17
|
+
name: Reject vendor and assistant names in commit messages
|
|
18
|
+
runs-on: ubuntu-24.04
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
- name: Scan commit messages
|
|
24
|
+
run: |
|
|
25
|
+
if [ "${{ github.event_name }}" = "pull_request" ]; then
|
|
26
|
+
RANGE="${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}"
|
|
27
|
+
else
|
|
28
|
+
RANGE="HEAD~1..HEAD"
|
|
29
|
+
fi
|
|
30
|
+
if git log "$RANGE" --format="%H %B" | grep -iE "[c]laude|[a]nthropic"; then
|
|
31
|
+
echo "::error::Commit message contains a disallowed vendor or assistant name."
|
|
32
|
+
exit 1
|
|
33
|
+
fi
|
|
34
|
+
echo "Commit message hygiene gate passed."
|
|
@@ -19,6 +19,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
19
19
|
|
|
20
20
|
## [Unreleased]
|
|
21
21
|
|
|
22
|
+
## [0.1.16] - 2026-12-02
|
|
23
|
+
### Fixed
|
|
24
|
+
- **Windows WDDM runtime context measurement (`backend/process_memory.py`)**: added `device_memory_info()` and `measure_runtime_context()` so per-process NVML remains primary on Linux/TCC while Windows WDDM (where NVML reports per-process `usedGpuMemory` as `NVML_VALUE_NOT_AVAILABLE`) falls back to the measured device-level NVML used-memory delta around CUDA context creation (clamping non-positive deltas caused by concurrent desktop frees to `0`, and still returning `None` when device-level NVML is absent).
|
|
25
|
+
- **PyTorch (`--compiled`) path without Triton installed (`ops/_configs.py`, `memory/allocator.py`, `memory/kv_host_pages.py`)**: removed eager top-level `triton` imports from `ops/_configs.py` (making `next_power_of_2` pure Python and lazily importing `triton` in config builders), guarded `kv_host_pages.py` so `HostPages` imports without `triton` while preserving module-level Triton kernel and launcher-seam behavior when `triton` is installed, and avoided importing `ops.wrappers` in `DeviceAllocator` when no hardware profile has been stashed.
|
|
26
|
+
|
|
27
|
+
## [0.1.15] - 2026-12-02
|
|
28
|
+
### Fixed
|
|
29
|
+
- **Windows `triton-windows` floor & `PTXASError` import guidance (`backend/triton_floor.py`, `ops/_configs.py`)**: explicitly name `triton-windows>=3.5.0` (read from the single-source floor declaration) on `win32` both when the installed Triton is below the floor and when importing `triton` / `PTXASError` fails.
|
|
30
|
+
|
|
22
31
|
### Added
|
|
23
32
|
- Public names for what a planner reads: `nbxtensor.ops.matrix_units.matrix_unit` (moved from `ops._configs`, the one
|
|
24
33
|
decision point every library reader now goes through) and `nbxtensor.ops.operand.Spec` (moved from `ops._cost`,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use this software, please cite it using the metadata from this file."
|
|
3
|
+
type: software
|
|
4
|
+
title: "nbxtensor"
|
|
5
|
+
abstract: "Torch-free tensor library for AI inference featuring Triton kernels, planned memory management, and hardware-certified tuning across NVIDIA and Apple Silicon GPUs."
|
|
6
|
+
version: "0.1.16"
|
|
7
|
+
date-released: "2026-12-02"
|
|
8
|
+
license: Apache-2.0
|
|
9
|
+
repository-code: "https://github.com/NeuroBrix/nbxtensor"
|
|
10
|
+
url: "https://github.com/NeuroBrix/nbxtensor"
|
|
11
|
+
authors:
|
|
12
|
+
- family-names: Benkelaya
|
|
13
|
+
given-names: Hocine
|
|
14
|
+
orcid: "https://orcid.org/0009-0001-1740-4488"
|
|
15
|
+
keywords:
|
|
16
|
+
- tensor-library
|
|
17
|
+
- triton
|
|
18
|
+
- gpu-kernels
|
|
19
|
+
- inference
|
|
20
|
+
- torch-free
|
|
21
|
+
- deep-learning
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: nbxtensor
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.16
|
|
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.16"
|
|
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" }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
fbf9300b9153007d820df60d7322defb9d542fc1f6a1ec2cc9a70e347733eb37 nbxtensor-0.1.14-py3-none-any.whl
|
|
2
|
-
|
|
2
|
+
18c1a3c3a1f9cf5fd54734d4866a3f55b0ad38f44134a5f5a860c1d9cf405595 nbxtensor-0.1.14.tar.gz
|
|
@@ -2444,7 +2444,7 @@ def install(force: Optional[bool] = None) -> bool:
|
|
|
2444
2444
|
return False
|
|
2445
2445
|
try:
|
|
2446
2446
|
from triton.runtime.jit import JITFunction
|
|
2447
|
-
except
|
|
2447
|
+
except Exception:
|
|
2448
2448
|
# A compiled-only install (no Triton wheel: a Mac without it, a CPU
|
|
2449
2449
|
# box) has no kernel launcher to route; the package import that
|
|
2450
2450
|
# installs the seam must not be the import that ends the engine.
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"""What THIS process holds on a device, as the driver attributes it to our context — never the card's free/total, which
|
|
2
|
+
counts every other process (the desktop, a browser, another model) as ours (the maintainer 2026-11-02 09:50: a profile
|
|
3
|
+
fact a neighbour can falsify is not a fact; runtime_growth.json for Allegro-TI2V read 7 430 MB with another run on the
|
|
4
|
+
card, 654 MB alone).
|
|
5
|
+
|
|
6
|
+
CUDA: NVML's per-process accounting (`nvmlDeviceGetComputeRunningProcesses_v3`, `usedGpuMemory` of our pid), the device
|
|
7
|
+
found by its PCI bus id (`cudaDeviceGetPCIBusId` of the process's ordinal — NVML numbers the physical cards, the runtime
|
|
8
|
+
the visible ones). A backend without such an accounting (HIP, Metal) or a driver that does not report it answers None.
|
|
9
|
+
|
|
10
|
+
For the one-time hardware-profile context measurement (`measure_runtime_context`), per-process NVML is primary whenever
|
|
11
|
+
it reports a real figure (Linux, Windows TCC). On Windows WDDM, where NVML reports per-process `usedGpuMemory` as
|
|
12
|
+
`NVML_VALUE_NOT_AVAILABLE` (`None`), `measure_runtime_context` measures the device-level NVML used-memory delta
|
|
13
|
+
(`nvmlDeviceGetMemoryInfo`) around CUDA context initialization (`DeviceAllocator.mem_get_info`) inside a fresh child
|
|
14
|
+
Python process that has not yet opened a CUDA context on that device, retrying up to 3 attempts if transient desktop
|
|
15
|
+
activity produces a non-positive delta. A non-positive delta is never clamped to 0: if all attempts yield `delta <= 0`
|
|
16
|
+
or device-level NVML is unavailable, `measure_runtime_context` returns `None` so the caller refuses by name.
|
|
17
|
+
|
|
18
|
+
ctypes on the driver's management library; no torch, no vendor package.
|
|
19
|
+
"""
|
|
20
|
+
from __future__ import annotations
|
|
21
|
+
|
|
22
|
+
import ctypes
|
|
23
|
+
import json
|
|
24
|
+
import os
|
|
25
|
+
import subprocess
|
|
26
|
+
import sys
|
|
27
|
+
from typing import Optional, Tuple
|
|
28
|
+
|
|
29
|
+
_NVML = None
|
|
30
|
+
|
|
31
|
+
_WDDM_CHILD_PROBE = (
|
|
32
|
+
"import json, sys; "
|
|
33
|
+
"from nbxtensor.backend.process_memory import device_memory_info; "
|
|
34
|
+
"from nbxtensor.memory.allocator import DeviceAllocator; "
|
|
35
|
+
"d = int(sys.argv[1]); "
|
|
36
|
+
"before = device_memory_info(d); "
|
|
37
|
+
"_, total = DeviceAllocator.mem_get_info(d); "
|
|
38
|
+
"after = device_memory_info(d); "
|
|
39
|
+
"out = None if (before is None or after is None or total is None or int(total) <= 0) "
|
|
40
|
+
"else [int(total), int(after[2]) - int(before[2])]; "
|
|
41
|
+
"print('NBX_WDDM_CTX ' + json.dumps(out))"
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class _ProcInfo(ctypes.Structure):
|
|
46
|
+
_fields_ = [("pid", ctypes.c_uint), ("usedGpuMemory", ctypes.c_ulonglong),
|
|
47
|
+
("gpuInstanceId", ctypes.c_uint), ("computeInstanceId", ctypes.c_uint)]
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class _MemInfo(ctypes.Structure):
|
|
51
|
+
_fields_ = [("total", ctypes.c_ulonglong), ("free", ctypes.c_ulonglong), ("used", ctypes.c_ulonglong)]
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def _nvml(libs):
|
|
55
|
+
global _NVML
|
|
56
|
+
if _NVML is None:
|
|
57
|
+
_NVML = False
|
|
58
|
+
for name in libs or ():
|
|
59
|
+
try:
|
|
60
|
+
lib = ctypes.CDLL(name)
|
|
61
|
+
except OSError:
|
|
62
|
+
continue
|
|
63
|
+
if lib.nvmlInit_v2() == 0:
|
|
64
|
+
_NVML = lib
|
|
65
|
+
break
|
|
66
|
+
return _NVML or None
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def _nvml_handle(device: int):
|
|
70
|
+
"""Return `(nvml_lib, nvml_device_handle)` for the visible `device` via its PCI bus id (which does not open a
|
|
71
|
+
CUDA context), or `(None, None)` when NVML or the runtime's PCI bus query is unavailable."""
|
|
72
|
+
from nbxtensor.backend import runtime as _rt
|
|
73
|
+
table = _rt.backend_table()
|
|
74
|
+
lib = _nvml(table.get("management_libs"))
|
|
75
|
+
bus_fn = table.get("pci_bus_id")
|
|
76
|
+
if lib is None or not bus_fn:
|
|
77
|
+
return None, None
|
|
78
|
+
bus = ctypes.create_string_buffer(64)
|
|
79
|
+
if getattr(_rt.gpu_runtime(), bus_fn)(bus, 64, int(device)) != 0:
|
|
80
|
+
return None, None
|
|
81
|
+
handle = ctypes.c_void_p()
|
|
82
|
+
if lib.nvmlDeviceGetHandleByPciBusId_v2(bus, ctypes.byref(handle)) != 0:
|
|
83
|
+
return None, None
|
|
84
|
+
return lib, handle
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def device_memory_info(device: int) -> Optional[Tuple[int, int, int]]:
|
|
88
|
+
"""Device-level `(total, free, used)` bytes from NVML (`nvmlDeviceGetMemoryInfo`) for the visible `device` without
|
|
89
|
+
opening a CUDA context, or None when NVML is unavailable or refuses."""
|
|
90
|
+
lib, handle = _nvml_handle(device)
|
|
91
|
+
if lib is None or handle is None:
|
|
92
|
+
return None
|
|
93
|
+
info = _MemInfo()
|
|
94
|
+
if lib.nvmlDeviceGetMemoryInfo(handle, ctypes.byref(info)) != 0:
|
|
95
|
+
return None
|
|
96
|
+
return int(info.total), int(info.free), int(info.used)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def process_device_bytes(device: int) -> Optional[int]:
|
|
100
|
+
"""The bytes the driver attributes to this process on the visible `device`, or None when the backend or the driver
|
|
101
|
+
gives no per-process accounting."""
|
|
102
|
+
lib, handle = _nvml_handle(device)
|
|
103
|
+
if lib is None or handle is None:
|
|
104
|
+
return None
|
|
105
|
+
count = ctypes.c_uint(0)
|
|
106
|
+
rc = lib.nvmlDeviceGetComputeRunningProcesses_v3(handle, ctypes.byref(count), None)
|
|
107
|
+
if rc not in (0, 7): # 7: NVML_ERROR_INSUFFICIENT_SIZE, the count is set
|
|
108
|
+
return None
|
|
109
|
+
n = count.value + 8 # room for processes starting meanwhile
|
|
110
|
+
infos = (_ProcInfo * n)()
|
|
111
|
+
count = ctypes.c_uint(n)
|
|
112
|
+
if lib.nvmlDeviceGetComputeRunningProcesses_v3(handle, ctypes.byref(count), infos) != 0:
|
|
113
|
+
return None
|
|
114
|
+
me = os.getpid()
|
|
115
|
+
for i in range(count.value):
|
|
116
|
+
if infos[i].pid == me:
|
|
117
|
+
used = int(infos[i].usedGpuMemory)
|
|
118
|
+
# NVML_VALUE_NOT_AVAILABLE (all bits set): the driver does not report it (a container without the pid
|
|
119
|
+
# namespace, a WDDM device) — no reading, never a guess
|
|
120
|
+
return None if used >= (1 << 64) - 1 else used
|
|
121
|
+
return 0 # no context of ours on that device yet
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def _measure_wddm_delta_in_child(device: int) -> Optional[Tuple[int, int]]:
|
|
125
|
+
"""Measure `(runtime_total_bytes, device_used_delta_bytes)` for `device` in a fresh Python child process that has
|
|
126
|
+
not yet opened a CUDA context on that device, or return `None` if the child or NVML query fails."""
|
|
127
|
+
try:
|
|
128
|
+
proc = subprocess.run(
|
|
129
|
+
[sys.executable, "-c", _WDDM_CHILD_PROBE, str(int(device))],
|
|
130
|
+
capture_output=True,
|
|
131
|
+
text=True,
|
|
132
|
+
timeout=60,
|
|
133
|
+
)
|
|
134
|
+
except Exception:
|
|
135
|
+
return None
|
|
136
|
+
if proc.returncode != 0:
|
|
137
|
+
return None
|
|
138
|
+
for line in reversed(proc.stdout.splitlines()):
|
|
139
|
+
if line.startswith("NBX_WDDM_CTX "):
|
|
140
|
+
try:
|
|
141
|
+
payload = json.loads(line[len("NBX_WDDM_CTX "):])
|
|
142
|
+
except Exception:
|
|
143
|
+
return None
|
|
144
|
+
if not isinstance(payload, list) or len(payload) != 2:
|
|
145
|
+
return None
|
|
146
|
+
total_b, delta_b = int(payload[0]), int(payload[1])
|
|
147
|
+
if total_b <= 0:
|
|
148
|
+
return None
|
|
149
|
+
return (total_b, delta_b)
|
|
150
|
+
return None
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def measure_runtime_context(device: int, *, _wddm_attempts: int = 3) -> Optional[Tuple[int, int]]:
|
|
154
|
+
"""Measure `(runtime_total_bytes, runtime_context_bytes)` for the visible `device`.
|
|
155
|
+
|
|
156
|
+
Primary (Linux / Windows TCC): exact per-process NVML `usedGpuMemory` after `DeviceAllocator.mem_get_info(device)`
|
|
157
|
+
opens the runtime's context and reports its addressable total.
|
|
158
|
+
Fallback (Windows WDDM, where per-process NVML returns `None` / `NVML_VALUE_NOT_AVAILABLE`): device-level NVML
|
|
159
|
+
`used` delta (`after - before`) measured in a fresh child Python process with no pre-existing CUDA context on
|
|
160
|
+
`device`, retried up to `_wddm_attempts` times if transient desktop activity yields `delta <= 0`.
|
|
161
|
+
Never clamps `delta <= 0` to 0: returns `None` if all attempts yield `delta <= 0` or NVML is unavailable.
|
|
162
|
+
"""
|
|
163
|
+
from nbxtensor.memory.allocator import DeviceAllocator
|
|
164
|
+
|
|
165
|
+
_, total = DeviceAllocator.mem_get_info(device)
|
|
166
|
+
if total is None or int(total) <= 0:
|
|
167
|
+
return None
|
|
168
|
+
total_b = int(total)
|
|
169
|
+
|
|
170
|
+
own = process_device_bytes(device)
|
|
171
|
+
if own is not None:
|
|
172
|
+
return (total_b, int(own)) if own > 0 else None
|
|
173
|
+
|
|
174
|
+
if device_memory_info(device) is None:
|
|
175
|
+
return None
|
|
176
|
+
|
|
177
|
+
for _ in range(max(1, int(_wddm_attempts))):
|
|
178
|
+
measured = _measure_wddm_delta_in_child(device)
|
|
179
|
+
if measured is None:
|
|
180
|
+
continue
|
|
181
|
+
child_total_b, delta_b = measured
|
|
182
|
+
if delta_b > 0:
|
|
183
|
+
return (child_total_b, delta_b)
|
|
184
|
+
return None
|
|
@@ -18,6 +18,7 @@ precedes, as PEP 440 orders them."""
|
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
20
20
|
import re
|
|
21
|
+
import sys
|
|
21
22
|
from pathlib import Path
|
|
22
23
|
from typing import Optional, Tuple
|
|
23
24
|
|
|
@@ -95,8 +96,7 @@ def ensure(installed: Optional[str] = None) -> None:
|
|
|
95
96
|
raise TritonBelowFloor(
|
|
96
97
|
f"nbxtensor needs Triton {want} or later (declared in {where}); Triton {installed} is installed. The floor is "
|
|
97
98
|
f"the first Triton that has the names the launch path calls (JITFunction._pack_args among them): refused "
|
|
98
|
-
f"here, by name, instead of an AttributeError at the first launch.
|
|
99
|
-
f"source-built Triton from a {want} or later checkout).")
|
|
99
|
+
f"here, by name, instead of an AttributeError at the first launch. {install_hint(want)}.")
|
|
100
100
|
if not explicit:
|
|
101
101
|
_OK[0] = True
|
|
102
102
|
|
|
@@ -104,3 +104,20 @@ def ensure(installed: Optional[str] = None) -> None:
|
|
|
104
104
|
def reset() -> None:
|
|
105
105
|
"""Forget the answer. For tests."""
|
|
106
106
|
_OK[0] = False
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def declared_floor_str() -> Optional[str]:
|
|
110
|
+
"""The declared minimum Triton version string from pyproject/metadata, or None."""
|
|
111
|
+
floor, _where = _declaration()
|
|
112
|
+
return ".".join(str(x) for x in floor) if floor is not None else None
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def install_hint(want: Optional[str] = None) -> str:
|
|
116
|
+
"""Platform-specific install guidance naming triton-windows>=<floor> on Windows."""
|
|
117
|
+
v = want or declared_floor_str() or ""
|
|
118
|
+
if sys.platform == "win32":
|
|
119
|
+
pkg = f"triton-windows>={v}" if v else "triton-windows"
|
|
120
|
+
return f"On Windows, install {pkg} (pip install \"{pkg}\")"
|
|
121
|
+
if v:
|
|
122
|
+
return f"Install Triton {v} or later (on a Mac, rebuild the source-built Triton from a {v} or later checkout)"
|
|
123
|
+
return "Install a supported Triton release"
|
|
@@ -576,10 +576,10 @@ class DeviceAllocator:
|
|
|
576
576
|
# layer up (kernels/wrappers.py); the import is function-scoped —
|
|
577
577
|
# no import cycle at load — and the profile global is Prism's.
|
|
578
578
|
try:
|
|
579
|
-
|
|
580
|
-
prof = get_hardware_profile()
|
|
579
|
+
prof = DeviceAllocator._stashed_hardware_profile()
|
|
581
580
|
if prof is None or not getattr(prof, "devices", None):
|
|
582
581
|
return 0
|
|
582
|
+
from nbxtensor.ops.wrappers import _arch_memory_param
|
|
583
583
|
frac = float(_arch_memory_param("alloc_pool_parked_cap_fraction", 0.0))
|
|
584
584
|
except Exception:
|
|
585
585
|
return 0
|
|
@@ -709,6 +709,12 @@ class DeviceAllocator:
|
|
|
709
709
|
#: range; False: the device keeps driver segments (no VMM, or the profile measured none: vmm_chunk_bytes 0)
|
|
710
710
|
_VMM: Dict[int, Any] = {}
|
|
711
711
|
|
|
712
|
+
@staticmethod
|
|
713
|
+
def _stashed_hardware_profile():
|
|
714
|
+
"""Return the PrismProfile stashed in `nbxtensor.ops.wrappers`, or None without importing `wrappers` (and triton)."""
|
|
715
|
+
w = sys.modules.get("nbxtensor.ops.wrappers")
|
|
716
|
+
return w.get_hardware_profile() if w is not None else None
|
|
717
|
+
|
|
712
718
|
@staticmethod
|
|
713
719
|
def _vmm_chunk_fact(dev: int) -> int:
|
|
714
720
|
"""The expandable pool's chunk on `dev`: the RULE for the card's memory class (`memory.chunk_rule`, its
|
|
@@ -717,8 +723,7 @@ class DeviceAllocator:
|
|
|
717
723
|
installed (a tool, a test): 0. A class with no rule whose profile states no measurement: refused by name —
|
|
718
724
|
never a chunk the code chose."""
|
|
719
725
|
from nbxtensor.memory import chunk_rule
|
|
720
|
-
|
|
721
|
-
prof = get_hardware_profile()
|
|
726
|
+
prof = DeviceAllocator._stashed_hardware_profile()
|
|
722
727
|
if prof is None or not getattr(prof, "devices", None):
|
|
723
728
|
return 0
|
|
724
729
|
spec = next((d for d in prof.devices if getattr(d, "index", None) == dev), None)
|
|
@@ -782,9 +787,8 @@ class DeviceAllocator:
|
|
|
782
787
|
def _range_reserve(dev: int, v) -> None:
|
|
783
788
|
"""Reserve one more address range for `dev`'s large class: the card's memory as the hardware profile declares
|
|
784
789
|
it (rule 1), whole chunks; registered as device memory for the pointer checks (`holds`)."""
|
|
785
|
-
from nbxtensor.ops.wrappers import get_hardware_profile
|
|
786
790
|
given = getattr(v, "range_bytes", None) # a replay names its card's size (use_expandable)
|
|
787
|
-
prof =
|
|
791
|
+
prof = DeviceAllocator._stashed_hardware_profile() if given is None else None
|
|
788
792
|
spec = next((d for d in (getattr(prof, "devices", None) or []) if getattr(d, "index", None) == dev), None)
|
|
789
793
|
mb = (int(given) >> 20) if given is not None else int(getattr(spec, "memory_mb", 0) or 0)
|
|
790
794
|
if mb <= 0:
|
|
@@ -152,39 +152,52 @@ def restore(k_pools: Sequence, v_pools: Sequence, host: HostPages, host_pages: S
|
|
|
152
152
|
# 2026-11-09, campaigns 2026_11_09_release_063/kv_host_timing). Which path a machine takes is the engine's choice from its
|
|
153
153
|
# profile (discrete or unified memory); both are bit-exact.
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
import triton.language as tl
|
|
155
|
+
_NBX_BITS = {1: "int8", 2: "int16", 4: "int32"}
|
|
157
156
|
|
|
158
157
|
from nbxtensor.backend.launcher import install as _install_launcher
|
|
159
158
|
|
|
160
159
|
# every kernel[grid] of this module goes through the library's launcher (ops/wrappers.py does the same at import): left
|
|
161
160
|
# to Triton's default driver, the first launch of a fresh process met Triton's own Metal driver, which refuses an
|
|
162
|
-
# NBXTensor argument ('Arg 0: expected an MPS tensor', the reference Apple Silicon host 2026-11-09 21:20), and on CUDA upstream's torch-importing one
|
|
161
|
+
# NBXTensor argument ('Arg 0: expected an MPS tensor', the reference Apple Silicon host 2026-11-09 21:20), and on CUDA upstream's torch-importing one.
|
|
162
|
+
# Kept at module top level; returns False cleanly when Triton is absent or broken.
|
|
163
163
|
_install_launcher()
|
|
164
164
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
tl.
|
|
186
|
-
|
|
187
|
-
tl.
|
|
165
|
+
try:
|
|
166
|
+
import triton
|
|
167
|
+
import triton.language as tl
|
|
168
|
+
except Exception:
|
|
169
|
+
# PyTorch (--compiled) installs without triton (or with a broken/partial triton-windows install)
|
|
170
|
+
# still import `HostPages` from this module; the gathered Triton kernel below is only used by
|
|
171
|
+
# the Triton engine's paged KV cache.
|
|
172
|
+
triton = None
|
|
173
|
+
tl = None
|
|
174
|
+
|
|
175
|
+
if triton is not None:
|
|
176
|
+
|
|
177
|
+
_BITS = {1: tl.int8, 2: tl.int16, 4: tl.int32} # the element's bits, copied as an integer of its size
|
|
178
|
+
|
|
179
|
+
@triton.jit
|
|
180
|
+
def _kv_page_rows_kernel(table_ptr, pages_ptr, stage_ptr, page_elems, row_len, stage_page_elems, layer_elems, base,
|
|
181
|
+
TO_STAGE: tl.constexpr, ELEM: tl.constexpr, BLOCK: tl.constexpr):
|
|
182
|
+
"""One program per (page rank, layer slot, row): the row's `row_len` elements of pool[page] (the layer's pool read
|
|
183
|
+
through its address in `table`) copied, bits unchanged, to or from the staging buffer laid out as host pages
|
|
184
|
+
[page rank][layer slot][K, V] (`base`: the K or V offset inside a layer slot)."""
|
|
185
|
+
r = tl.program_id(0).to(tl.int64)
|
|
186
|
+
s = tl.program_id(1).to(tl.int64)
|
|
187
|
+
row = tl.program_id(2).to(tl.int64)
|
|
188
|
+
page = tl.load(pages_ptr + r).to(tl.int64)
|
|
189
|
+
pool = tl.cast(tl.load(table_ptr + s), tl.pointer_type(ELEM), bitcast=True)
|
|
190
|
+
offs = tl.arange(0, BLOCK)
|
|
191
|
+
m = offs < row_len
|
|
192
|
+
pool_at = pool + page * page_elems + row * row_len + offs
|
|
193
|
+
stage_at = stage_ptr + r * stage_page_elems + s * layer_elems + base + row * row_len + offs
|
|
194
|
+
if TO_STAGE:
|
|
195
|
+
tl.store(stage_at, tl.load(pool_at, mask=m), mask=m)
|
|
196
|
+
else:
|
|
197
|
+
tl.store(pool_at, tl.load(stage_at, mask=m), mask=m)
|
|
198
|
+
else:
|
|
199
|
+
_BITS = {}
|
|
200
|
+
_kv_page_rows_kernel = None
|
|
188
201
|
|
|
189
202
|
|
|
190
203
|
def _layer_runs(k_pools):
|
|
@@ -236,6 +249,8 @@ def _address_table(pools):
|
|
|
236
249
|
|
|
237
250
|
|
|
238
251
|
def _gathered(k_pools, v_pools, host: HostPages, pages, host_pages, to_host: bool, fence=None, owner=None) -> None:
|
|
252
|
+
if triton is None or _kv_page_rows_kernel is None:
|
|
253
|
+
raise ModuleNotFoundError("No module named 'triton'", name="triton")
|
|
239
254
|
from nbxtensor.backend.runtime import set_device as launch_on # Triton's driver on the tensor's device
|
|
240
255
|
from nbxtensor.dtype.nbx_dtype import NBXDtype
|
|
241
256
|
from nbxtensor.tensor import NBXTensor as _T
|
|
@@ -5,14 +5,20 @@ V100 (sm_70) lacks cp.async — Triton's software pipelining with num_stages > 2
|
|
|
5
5
|
emits async copy instructions that cause CUDA_ERROR_MISALIGNED_ADDRESS on Volta.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
8
10
|
import inspect
|
|
9
11
|
from typing import Dict, List, Optional
|
|
10
12
|
|
|
11
13
|
from pathlib import Path
|
|
12
14
|
|
|
13
|
-
import triton
|
|
14
|
-
from triton import next_power_of_2
|
|
15
15
|
import logging
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def next_power_of_2(n: int) -> int:
|
|
19
|
+
"""Smallest power of 2 >= n (matches triton.next_power_of_2 without eagerly importing triton)."""
|
|
20
|
+
n = int(n)
|
|
21
|
+
return 1 if n <= 1 else 1 << (n - 1).bit_length()
|
|
16
22
|
_log = logging.getLogger(__name__)
|
|
17
23
|
|
|
18
24
|
|
|
@@ -236,9 +242,14 @@ def every_candidate_refused(tuned, key, exc: BaseException):
|
|
|
236
242
|
V100: each tile over the 96 KB of shared memory once compiled, 2026-10-30)."""
|
|
237
243
|
from nbxtensor.ops.autotune_refusals import all_refused, _is_backend_refusal
|
|
238
244
|
from nbxtensor.backend import triton_floor
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
245
|
+
try:
|
|
246
|
+
triton_floor.ensure()
|
|
247
|
+
from triton.runtime.errors import OutOfResources, PTXASError
|
|
248
|
+
from triton.compiler.errors import CompileTimeAssertionFailure
|
|
249
|
+
except ImportError as imp_exc:
|
|
250
|
+
raise ImportError(
|
|
251
|
+
f"Failed to import Triton runtime error classes ({imp_exc}). {triton_floor.install_hint()}."
|
|
252
|
+
) from imp_exc
|
|
242
253
|
# the classes Triton's own bench scores infinite (autotuner._bench), and the Metal seam's refusals
|
|
243
254
|
refusal = isinstance(exc, (OutOfResources, CompileTimeAssertionFailure, PTXASError)) or _is_backend_refusal(exc)
|
|
244
255
|
name = getattr(getattr(tuned, "base_fn", None), "__name__", None) or getattr(tuned, "__name__", "?")
|
|
@@ -764,6 +775,7 @@ def configs_within_smem_budget(configs, budget: Optional[int],
|
|
|
764
775
|
|
|
765
776
|
def element_wise_configs() -> List[triton.Config]:
|
|
766
777
|
"""Autotune configs for element-wise (1D) kernels."""
|
|
778
|
+
import triton
|
|
767
779
|
return [
|
|
768
780
|
triton.Config({'BLOCK_SIZE': 64}, num_warps=2),
|
|
769
781
|
triton.Config({'BLOCK_SIZE': 128}, num_warps=2),
|
|
@@ -775,6 +787,7 @@ def element_wise_configs() -> List[triton.Config]:
|
|
|
775
787
|
|
|
776
788
|
def warps_configs() -> List[triton.Config]:
|
|
777
789
|
"""Autotune configs sweeping warp counts (for row-wise kernels)."""
|
|
790
|
+
import triton
|
|
778
791
|
return [triton.Config({}, num_warps=2**i) for i in range(6)]
|
|
779
792
|
|
|
780
793
|
|
|
@@ -801,6 +814,7 @@ def row_program_configs() -> List[triton.Config]:
|
|
|
801
814
|
it was certified is among them (`batch_block_heuristic`: 1 row for a row of 64 or more, up to 128 rows for a short
|
|
802
815
|
one; 4 warps) — a certified winner equal to it changes no bit. Rows per program partition independent rows and
|
|
803
816
|
change no bit; the warps split a row's reduction and can."""
|
|
817
|
+
import triton
|
|
804
818
|
return [triton.Config({'BLOCK_SIZE_BATCH': rows}, num_warps=warps)
|
|
805
819
|
for rows in (1, 2, 4, 8, 16, 32, 64, 128) for warps in (1, 2, 4, 8)]
|
|
806
820
|
|
|
@@ -833,7 +847,7 @@ def prune_row_programs(configs, named_args, **kwargs):
|
|
|
833
847
|
if regs is None:
|
|
834
848
|
raise RuntimeError("ZERO FALLBACK: the hardware profile declares no memory.max_registers_per_block — the row "
|
|
835
849
|
"programs' tile has no bound")
|
|
836
|
-
feat =
|
|
850
|
+
feat = next_power_of_2(int(named_args['feat_dim']))
|
|
837
851
|
rows = int(named_args['batch_dim'])
|
|
838
852
|
cap = min(reduce_tile_max(), int(regs))
|
|
839
853
|
keep = [c for c in configs
|
|
@@ -849,6 +863,7 @@ def gemv_vec_configs() -> List[triton.Config]:
|
|
|
849
863
|
ran before it was certified are among them (8 x 256, 4 warps, 1 stage; Apple's 8 x 128). Every config reduces all
|
|
850
864
|
of K inside one program in a fixed chunk order — no split-K, no atomics: the chunk width moves the summation
|
|
851
865
|
order and so can move bits, rows per program cannot."""
|
|
866
|
+
import triton
|
|
852
867
|
return [triton.Config({'BLOCK_N': bn, 'BLOCK_K': bk}, num_warps=w, num_stages=st)
|
|
853
868
|
for bn in (4, 8, 16, 32) for bk in (128, 256, 512, 1024) for w in (2, 4, 8) for st in (1, 2)]
|
|
854
869
|
|
|
@@ -860,8 +875,8 @@ def prune_gemv_vec(configs, named_args, **kwargs):
|
|
|
860
875
|
than K's next power of two nor more rows than N's but the smallest candidate."""
|
|
861
876
|
from nbxtensor.backend.capabilities import reduce_tile_max, reduced_extent_max
|
|
862
877
|
cap = reduce_tile_max()
|
|
863
|
-
k =
|
|
864
|
-
n =
|
|
878
|
+
k = next_power_of_2(int(named_args['K']))
|
|
879
|
+
n = next_power_of_2(int(named_args['N']))
|
|
865
880
|
bk_min = min(c.kwargs['BLOCK_K'] for c in configs)
|
|
866
881
|
bn_min = min(c.kwargs['BLOCK_N'] for c in configs)
|
|
867
882
|
keep = [c for c in configs
|
|
@@ -879,6 +894,7 @@ def addmv_configs() -> List[triton.Config]:
|
|
|
879
894
|
"""The candidates the certifier proves for `addmv_kernel` (the decode projection WITH a bias, `addmm` at M <= 4):
|
|
880
895
|
output rows x reduction tile x warps. The kernel keeps a BLOCK_N x BLOCK_M fp32 accumulator and reduces it after
|
|
881
896
|
the loop. The tiles it ran before (64 x 256, 4 warps; Apple's 8 x 128 at 32 warps) are among them."""
|
|
897
|
+
import triton
|
|
882
898
|
return [triton.Config({'BLOCK_N': bn, 'BLOCK_M': bm}, num_warps=w)
|
|
883
899
|
for bn in (8, 16, 32, 64) for bm in (128, 256, 512) for w in (4, 8, 32)]
|
|
884
900
|
|
|
@@ -890,8 +906,8 @@ def prune_addmv(configs, named_args, **kwargs):
|
|
|
890
906
|
Metal, measured 2026-09-07: 64 x 256 against a 128-thread group refused)."""
|
|
891
907
|
from nbxtensor.backend.capabilities import reduce_tile_max, reduced_extent_max
|
|
892
908
|
cap = reduce_tile_max()
|
|
893
|
-
m =
|
|
894
|
-
n =
|
|
909
|
+
m = next_power_of_2(int(named_args['M']))
|
|
910
|
+
n = next_power_of_2(int(named_args['N']))
|
|
895
911
|
bm_min = min(c.kwargs['BLOCK_M'] for c in configs)
|
|
896
912
|
bn_min = min(c.kwargs['BLOCK_N'] for c in configs)
|
|
897
913
|
keep = [c for c in configs
|
|
@@ -909,6 +925,7 @@ def row_reduce_configs() -> List[triton.Config]:
|
|
|
909
925
|
"""The candidates the certifier proves for a looped row reduction (sum, mean, amax — chantier 1): rows per program x
|
|
910
926
|
the feature tile the row is walked by x warps. What such a kernel ran before it was certified is among them
|
|
911
927
|
(`batch_block_heuristic` rows, `reduction_feat_tile` tile, 4 warps)."""
|
|
928
|
+
import triton
|
|
912
929
|
return [triton.Config({'BLOCK_SIZE_BATCH': rows, 'BLOCK_SIZE_FEAT': tile}, num_warps=warps)
|
|
913
930
|
for rows in (1, 2, 4, 8, 16, 32, 64, 128) for tile in (64, 256, 1024, 4096) for warps in (2, 4, 8)]
|
|
914
931
|
|
|
@@ -947,6 +964,7 @@ def batch_block_heuristic(args: Dict) -> int:
|
|
|
947
964
|
|
|
948
965
|
def reduction_configs() -> List[triton.Config]:
|
|
949
966
|
"""Autotune configs for row-wise reduction kernels (BLOCK_M x BLOCK_N)."""
|
|
967
|
+
import triton
|
|
950
968
|
return [
|
|
951
969
|
triton.Config({'BLOCK_M': 8, 'BLOCK_N': 1024}, num_warps=8),
|
|
952
970
|
triton.Config({'BLOCK_M': 8, 'BLOCK_N': 2048}, num_warps=8),
|
|
@@ -962,6 +980,7 @@ def matmul_configs() -> List[triton.Config]:
|
|
|
962
980
|
|
|
963
981
|
num_stages clamped to 2 on V100 via _safe_num_stages().
|
|
964
982
|
"""
|
|
983
|
+
import triton
|
|
965
984
|
return [
|
|
966
985
|
triton.Config({'BLOCK_M': 128, 'BLOCK_N': 256, 'BLOCK_K': 64, 'GROUP_M': 8},
|
|
967
986
|
num_stages=_safe_num_stages(3), num_warps=8),
|