nbxtensor 0.1.9__tar.gz → 0.1.11__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.9 → nbxtensor-0.1.11}/CHANGELOG.md +39 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/PKG-INFO +2 -2
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/API.md +3 -4
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/kernels_provenance.md +3 -1
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/pyproject.toml +7 -5
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/__init__.py +1 -1
- nbxtensor-0.1.11/src/nbxtensor/backend/cuda_profile.py +269 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/frozen_plan.py +3 -1
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/launcher.py +7 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/allocator.py +11 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/_configs.py +5 -5
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/autotune_certified.py +35 -9
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/autotune_harness.py +27 -1
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/gated_delta_rule.py +10 -10
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/gated_delta_rule_chunked.py +7 -7
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/launch_keys.py +15 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/moe_route.py +111 -55
- nbxtensor-0.1.11/src/nbxtensor/ops/moe_route_census.json +184 -0
- nbxtensor-0.1.11/src/nbxtensor/profile.py +129 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/_moe_route_compare.py +36 -0
- nbxtensor-0.1.11/tests/_moe_route_interpreter_run.py +73 -0
- nbxtensor-0.1.11/tests/test_a_confirmation_run_serves_a_turn_prefill_flash_only_its_certified_square_key.py +58 -0
- nbxtensor-0.1.11/tests/test_a_cuda_kernel_time_session_times_each_launch_between_two_events.py +359 -0
- nbxtensor-0.1.11/tests/test_a_profile_books_no_negative_time_and_says_what_it_could_not_attribute.py +49 -0
- nbxtensor-0.1.11/tests/test_a_turn_prefill_flash_is_served_its_square_key.py +96 -0
- nbxtensor-0.1.11/tests/test_every_kernel_computes_its_flat_offsets_in_64_bit.py +117 -0
- nbxtensor-0.1.11/tests/test_every_name_the_census_test_reads_from_the_op_module_exists.py +25 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_gated_delta_rule_op_runs_the_form_its_census_certifies.py +11 -11
- nbxtensor-0.1.11/tests/test_the_moe_route_census_names_what_its_kernel_uses.py +76 -0
- nbxtensor-0.1.11/tests/test_the_moe_route_certification_keys_are_the_kernels_own.py +68 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_moe_route_oracle_is_the_routing_written_by_hand.py +16 -0
- nbxtensor-0.1.11/tests/test_the_moe_route_over_tokens_is_its_plain_reference_on_the_interpreter.py +145 -0
- nbxtensor-0.1.11/tests/test_the_moe_route_prefill_on_a_device_is_each_token_routed_alone.py +75 -0
- nbxtensor-0.1.11/tests/test_the_public_api_names_nothing_of_neurobrix.py +87 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_routing_of_a_mixture_of_experts_is_an_op_of_the_library.py +24 -9
- nbxtensor-0.1.11/tests/test_triton_is_required_only_where_pypi_publishes_it.py +60 -0
- nbxtensor-0.1.11/tools/moe_route_certification_keys.py +57 -0
- nbxtensor-0.1.9/src/nbxtensor/profile.py +0 -95
- nbxtensor-0.1.9/tests/test_it_installs_on_a_mac.py +0 -23
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/.github/PULL_REQUEST_TEMPLATE/certificate.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/.github/workflows/cla.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/.gitignore +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/CONTRIBUTING.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/LICENSE +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/NOTICE +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/README.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/THIRD_PARTY_NOTICES.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/assets/logo.png +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/BACKENDS.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/api_undocumented.txt +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/certified-autotune-method.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/design/ALLOCATOR.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/design/COST.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/design/DESIGN.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/device_file_template.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/device_keys.txt +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/history/ENGINE_SLIM.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/history/INVENTORY.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/history/MIGRATION.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/history/engine_slim_list.tsv +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/history/migration_list.tsv +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/replay-recording-in-a-one-shot-request.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/tensor-cores-through-linear-layouts.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/docs/triton_cpu_install.md +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/__main__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/capabilities.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/cpu/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/cpu/blas.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/cpu/pool.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/cpu_backend.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/cuda_launch.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/device_facts.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/device_files.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/device_measure.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/device_names.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/amd/cdna.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/amd/cdna2.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/amd/cdna3.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/amd/cdna4.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/amd/rdna3.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/amd/rdna4.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m1.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m1_max.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m1_pro.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m1_ultra.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m2.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m2_max.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m2_pro.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m2_ultra.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m3.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m3_max.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m3_pro.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m3_ultra.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m4.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m4_max.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m4_pro.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m5.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m5_max.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m5_pro.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m5_ultra.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_m6.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/apple/apple_silicon.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/arl_h.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/arl_s.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/bmg.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/dg2.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/lnl.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/mtl.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/ptl_h.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/ptl_u.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/pvc.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/wcl.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/intel/xe_lp.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/nvidia/ampere.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/nvidia/hopper.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/devices/nvidia/volta.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/faults.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/host_memory.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/install_help.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/install_metal.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/install_steps.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/launcher_contract.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/level_zero.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/level_zero_driver.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/libnames.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/metal_backend.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/metal_device.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/metal_dispatch.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/metal_profile.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/process_memory.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/replay_graph.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/runtime.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/backend/triton_ext_driver.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/device.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/dtype/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/dtype/convert.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/dtype/dtypes.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/dtype/itemsize.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/dtype/nbx_dtype.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/dtype/operands.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/dtype/outputs.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/dtype/policy.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/dtype/policy.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/dtype/promotion.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/host.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/inspection.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/interop/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/interop/dlpack.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/interop/handoff.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/io/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/io/constants.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/io/mapped_shards.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/io/read_rate.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/io/safetensors.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/arena.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/block_upload.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/deferred_frees.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/device_memory.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/device_transfer.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/expert_slots.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/fixed_state.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/host_spill.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/kv_host_pages.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/kv_host_tier.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/kv_session.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/layout.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/memory_pool.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/metal.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/oom_advice.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/paged_kv.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/pages.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/pointer_tables.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/pool.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/shadow.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/slab.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/slot_stores.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/step_stabilizer.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/to_device_census.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/trace_replay.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/traces/sana-video-2b-720p.16g.2026-11-02.tsv +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/memory/vmm.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/_autotune_policy.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/_causal_conv1d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/_common.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/_cost.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/abs.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/adaptive_avg_pool2d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/add.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/addcdiv.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/addcmul.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/addmv_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/addr.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/all_reduce.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/amax.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/any_reduce.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/arange_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/argmax.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/argmin.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/atan2.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/attention_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/autotune_bucket.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/autotune_cache.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/autotune_refusals.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/autotune_settings.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/avg_pool2d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/axis_slices.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/baddbmm_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/batch_norm.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/binary_strided.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/bitwise_and.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/bitwise_left_shift.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/bitwise_not.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/bitwise_or.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/bitwise_right_shift.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/bucketize.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/cat_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/celu.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/certified_index.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/clamp.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/clamp_min.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/conv2d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/conv2d_m8n8k4.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/conv_depthwise2d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/conv_transpose2d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/conv_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/copy.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/copy_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/cos.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/count_nonzero.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/cross_entropy.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/cummax.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/cummin.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/cumsum.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/decode_attn_vec.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/depthwise_conv2d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/dequant_gemv.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/dft.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/dispatch.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/div.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/dot_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/dropout.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/dtype_convert.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/elementwise_launch.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/elementwise_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/elu.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/embedding.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/embedding_pool.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/eq.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/erf.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/exp.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/exp2.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/fft_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/fill_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/flash_attention.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/flash_attention_m8n8k4.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/flash_decode.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/flip_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/floor.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/full_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/fused_moe.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/fused_moe_m8n8k4.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/fused_upsample_conv.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/gated_delta_rule_census.json +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/gather_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/ge.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/gelu.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/gemv_vec.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/glu.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/grid_sampler.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/group_norm_tiled.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/groupnorm.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/gt.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/hardsigmoid.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/hardswish.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/host_decode_partial.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/im2col.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/index_add.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/index_put_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/index_select.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/index_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/isfinite.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/isinf.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/isnan.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/launch_observer.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/layernorm.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/le.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/leaky_relu.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/lerp.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/linalg_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/linspace_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/log.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/log_sigmoid.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/logical_and.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/logical_not.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/logical_or.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/logical_xor.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/loss_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/lt.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/masked_fill.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/matmul.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/matmul_m8n8k4.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/max_pool2d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/max_pool3d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/max_reduce.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/maximum.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/mean.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/min_reduce.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/minimum.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/mish.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/mma_m8n8k4.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/moe_align.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/moe_decode_vec.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/moe_device_residency.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/moe_fused.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/moe_multi_device.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/moe_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/mse_loss.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/mul.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/nan_to_num.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/ne.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/neg.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/nllloss.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/nonzero.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/nonzero_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/norm_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/ones_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/oracles/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/oracles/attention_fp64.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/oracles/conv2d_fp64.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/oracles/fp64.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/pad_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/paged_decode_attn.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/pixel_shuffle.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/pixel_unshuffle.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/pow.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/prod.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/rand_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/random_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/reciprocal.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/reduction_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/relu.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/remainder.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/repeat_interleave.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/repeat_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/residual_chain.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/rmsnorm.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/rope.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/rsqrt.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/scaled_softmax.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/scatter_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/screen_oracle.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/selu.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/shape_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/sigmoid.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/silu.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/sin.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/softmax.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/softplus.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/sort_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/spectral_wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/sqrt.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/stack_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/std.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/strided_copy.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/sub.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/sum.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/tan.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/tanh.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/threshold.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/tiles.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/tiling.yml +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/tiling_policy.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/tiling_sizes.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/token_bitmask.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/token_filters.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/topk.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/trace_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/tril.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/triu.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/unfold_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/unique_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/upsample_bilinear2d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/upsample_nearest2d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/upsample_nearest3d.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/var.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/vector_norm.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/weight_norm.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/where.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/wrappers.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/ops/zeros_op.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/quant/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/quant/quantized_tensor.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/random/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/random/mt_randn.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/random/rng_pin.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/random/rng_stream.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/random/seeded_draw.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/shape/__init__.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/tensor.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/src/nbxtensor/terminal.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/_chunked_interpreter_run.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/_delta_rule_draw.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/_moe_route_draw.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/_no_device.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/conftest.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_benchmark_spends_its_time_budget_not_more.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_cards_expert_table_keeps_the_layers_length.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_causal_convolution_carries_its_last_taps_minus_one_columns.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_certification_harness_draws_measures_and_sweeps.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_device_name_is_read_once_for_every_backend.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_device_naming_that_moves_nothing_is_counted.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_device_question_the_runtime_refuses_is_raised_by_name.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_device_speed_is_what_it_moves_over_its_time.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_dropped_tensor_is_freed_after_the_work_that_reads_it.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_dtype_the_key_carries_is_never_dropped.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_failed_driver_call_refuses_the_peer_grant.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_fixed_state_is_allocated_zero_written_reordered_copied_and_forgotten.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_fixed_state_on_a_card_keeps_its_bytes_through_every_verb.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_frozen_plan_replays_its_launches_pre_bound.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_graph_constant_is_read_without_a_tensor_library.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_kernel_file_carries_the_header_of_its_provenance_class.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_kernel_time_session_ranks_launches_and_changes_no_byte.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_key_carrying_an_integer_dtype_is_synthesised_as_that_dtype.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/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.9 → nbxtensor-0.1.11}/tests/test_a_kv_page_goes_to_the_host_and_back_bit_exact.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_layer_on_several_devices_is_the_sum_of_their_shares.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_mapped_shard_gives_back_the_pages_of_a_copied_view.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_metal_fence_frees_only_the_pages_past_it.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_metal_kernel_runs_on_nbxtensors_own_stream.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_one_element_sentinel_is_saturated_to_a_half_range.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_probe_leaves_no_context_on_a_card_nobody_selected.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_promoted_slab_crosses_once_and_its_table_is_never_cached.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_refused_allocation_names_who_holds_the_memory.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_replayed_launch_binds_by_the_extents_it_was_launched_with.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_replayed_view_output_keeps_its_values.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_run_s_end_synchronises_only_where_a_mid_run_release_would.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_sampler_s_filters_keep_what_transformers_keeps.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_sequence_decodes_past_the_card_s_pages.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_setting_not_served_says_why.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_shadow_installs_where_the_runtime_has_no_driver.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_shadow_never_reads_a_host_copy_of_a_shadow_value.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_shadow_value_read_keys_off_the_dtype_name.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_single_card_plan_replays_as_one_graph.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_slot_store_ends_its_request_and_is_released_by_the_library.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_small_tensor_never_pins_a_large_block.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_spilled_sequence_attends_as_one.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_stack_of_stored_tensors_is_built_one_source_at_a_time.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_step_stabilizer_measures_once_then_serves_one_recycled_slab.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_stored_bf16_weight_is_measured_from_its_bytes.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_sweep_refused_everywhere_says_so.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_table_pin_holder_holds_one_pin_per_set_of_wraps.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_tensor_is_compared_bit_for_bit_and_knows_its_allocation.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_token_bitmask_leaves_only_the_allowed_logits.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_triton_kernel_compiles_for_amd_and_launches_through_hip.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_tuner_imported_late_gets_its_stored_settings.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_view_of_freed_memory_is_copied_out_first.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_weight_block_uploads_on_its_copy_stream.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_weight_set_is_released_after_its_devices_drain.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_a_weight_sets_memory_is_counted_then_held_by_the_library.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_allocator_interceptor.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_an_arena_counts_what_it_holds.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_an_array_enters_at_a_dtype_the_backend_has.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_an_array_is_placed_on_the_device_it_names.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_an_array_is_taken_in_through_dlpack.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_an_attention_returns_its_rows_log_sum_exp.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_an_axis_is_read_and_written_a_slice_at_a_time.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_an_embedding_is_pooled_as_its_model_declares.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_an_expert_table_keeps_its_experts_alive.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_an_inspection_reads_every_value_once_on_the_host.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_array_api_promotion.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_blas_on_macos_14_runs_without_thread_control.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_cpu_pool.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_device_facts.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_device_files.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_device_memory.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_dtype_convert.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_dtype_outputs.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_dtype_promotion.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_gathered_kv_pages_are_the_per_layer_copies_bits.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_host.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_install_metal_fetches_only_what_it_names.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_io_bf16_split.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_io_read_rate.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_keys_are_read_in_the_queries_order_and_one_head_per_group.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_level_zero_states_an_integrated_gpu.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_nbx_dtype.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_no_environment_switch_changes_a_kernel.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_one_token_of_the_gated_delta_rule_on_a_device_is_its_oracle.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_one_token_of_the_moe_route_on_a_device_is_its_oracle.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_ops_cost.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_policy.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_readme.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_shape.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_allocator_peak_is_read_and_restarted_through_the_memory_api.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_allocator_states_its_pool_and_its_blocks.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_attention_reference_is_softmax_qk_v_in_float64.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_backend_is_the_card_on_the_machine.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_chunked_gated_delta_rule_costs_its_workspace.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_chunked_gated_delta_rule_is_its_oracle_on_the_interpreter.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_chunked_gated_delta_rule_on_a_device_is_its_oracle.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_compile_target_and_the_pool_s_counters_are_read_through_the_doors.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_compiler_key_is_prewarmed.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_delta_rule_oracle_is_the_recurrence_the_vendor_computes.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_device_door_answers_from_the_allocator.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_device_door_installs_a_shadow_and_declares_a_target.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_expert_slots_copy_with_the_measured_launch.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_expert_slots_hold_what_the_host_copied.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_expert_slots_live_in_one_allocation.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_fp16_range_scan_names_the_first_weight_outside_the_range.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_fused_moe_op_refuses_before_any_device.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_gated_delta_rule_is_an_op_of_the_library.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_gated_delta_rule_over_a_length_on_a_device_is_its_oracle.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_gated_delta_rule_runs_over_a_symbolic_length.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_hip_driver_keeps_the_launch_contract.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_host_sees_slots_a_replayed_step_moved.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_int4_moe_decode_band_matches_the_oracle.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_kv_host_tier_keeps_whole_pages_by_prefix.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_launcher_refuses_a_backend_it_has_no_driver_for.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_level_zero_backend_keeps_its_contracts.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_level_zero_driver_issues_the_recorded_ze_calls.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_malloc_trace_names_the_wrapper.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_matmul_oracle_is_windowed_by_rows_above_the_cap.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_metal_dispatch_facts_are_declared_or_refused.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_moe_route_device_comparison_goes_red_on_a_wrong_set_or_weights.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_moe_table_refuses_experts_of_two_layouts.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_oracle_reads_only_its_windows_off_the_device.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_pool_states_its_rules_for_a_device.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_shadow_device_answers_without_a_driver.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_shadow_reads_a_dtype_by_name_not_by_str.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_the_sync_counter_names_each_metal_kernel.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_third_party_notices.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_tiles_are_cut_padded_and_crossfaded.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_two_views_of_one_layout_are_the_same_memory.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tests/test_version.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tools/device_key_census.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tools/device_key_trace.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tools/kernels_provenance_audit.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tools/measure_the_chunked_gated_delta_rule.py +0 -0
- {nbxtensor-0.1.9 → nbxtensor-0.1.11}/tools/scatter_scan.py +0 -0
|
@@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.11] - 2026-11-18
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- nbxtensor installs on native Windows: triton is asked for only where PyPI publishes it,
|
|
14
|
+
`triton; sys_platform == 'linux' and (platform_machine == 'x86_64' or platform_machine == 'aarch64')` (PyPI's
|
|
15
|
+
triton files are manylinux x86_64 and aarch64 wheels alone); `triton; platform_system != 'Darwin'` had no solution
|
|
16
|
+
on win_amd64. macOS keeps its Metal Triton built from source, as before.
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- Per-kernel GPU time on CUDA: `kernel_times` puts every launch and every copy or set that reaches a device between two
|
|
20
|
+
timing events on its stream (`nbxtensor.backend.cuda_profile`), the host never waiting, so the run keeps its cadence;
|
|
21
|
+
the table adds the GPU time between kernels, the session's own host time, the most its figures overstate the kernels
|
|
22
|
+
and the wall time no interval holds. Another backend than Metal and CUDA is refused by name; the output bytes do not
|
|
23
|
+
change.
|
|
24
|
+
- `nbxtensor.ops.moe_route.moe_route` routes the token step and the prefill alike, over `[T, H]` or `[B, T, H]` in one
|
|
25
|
+
launch (one program per token row: a row routed inside a prefill is the row routed alone, byte for byte), with its op
|
|
26
|
+
census (`ops/moe_route_census.json`), its certification keys (`tools/moe_route_certification_keys.py`, from
|
|
27
|
+
`launch_keys.moe_route_launches`) and its synthesis in the certification harness.
|
|
28
|
+
- The routing reads its hidden rows at any batch stride (a view of a longer buffer), proven by a padded-stride case on
|
|
29
|
+
the interpreter; `ops/moe_route.py` and `tools/moe_route_certification_keys.py` are listed in the kernels' provenance
|
|
30
|
+
table (written here, class A).
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
- A flash launch with fewer query rows than keys whose own key the directory does not hold is served the certified
|
|
34
|
+
square key of its key length (`launch_keys.square_default_key`), at the launch site and when a warm replay cache is
|
|
35
|
+
seeded; a confirmation run refuses by name only when the square is not certified either.
|
|
36
|
+
|
|
37
|
+
## [0.1.10] - 2026-11-17
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
- The chunked gated delta rule's kernels take their program ids as 64-bit integers (`tl.program_id(..).to(tl.int64)`),
|
|
41
|
+
so the flat offsets they compute do not wrap on a long sequence.
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
- The gated delta rule's census names follow the public-name rule (a public name states nothing of the application):
|
|
45
|
+
`GATED_DELTA_RULE_CENSUS`, `GATED_DELTA_RULE_CENSUS_FORMAT` and `gated_delta_rule_census` are private
|
|
46
|
+
(`_GATED_DELTA_RULE_CENSUS`, `_GATED_DELTA_RULE_CENSUS_FORMAT`, `_gated_delta_rule_census`); the six
|
|
47
|
+
`cache_clear` call sites of the tests name the private reader.
|
|
48
|
+
|
|
10
49
|
## [0.1.9] - 2026-11-17
|
|
11
50
|
|
|
12
51
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: nbxtensor
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.11
|
|
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
|
|
@@ -16,7 +16,7 @@ Requires-Dist: numpy
|
|
|
16
16
|
Requires-Dist: nvidia-cuda-runtime-cu12; platform_system == 'Linux'
|
|
17
17
|
Requires-Dist: pyobjc-framework-metal; platform_system == 'Darwin'
|
|
18
18
|
Requires-Dist: pyyaml
|
|
19
|
-
Requires-Dist: triton;
|
|
19
|
+
Requires-Dist: triton; sys_platform == 'linux' and (platform_machine == 'x86_64' or platform_machine == 'aarch64')
|
|
20
20
|
Provides-Extra: test
|
|
21
21
|
Requires-Dist: pytest; extra == 'test'
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
@@ -1801,11 +1801,10 @@ def gated_delta_rule_wrapper(q, k, v, g, beta, state=None, *, qk_l2norm: bool, e
|
|
|
1801
1801
|
# handed back is the next call's start (a prompt in two calls, or then one token at a time, is one recurrence).
|
|
1802
1802
|
# Refuses by name: compute dtype not float32, g or state not float32, inputs not float16/bfloat16/float32, bad
|
|
1803
1803
|
# shapes, Hv % Hk != 0, L < 1. No chunk size anywhere: not an argument, not in the launch key.
|
|
1804
|
-
|
|
1805
|
-
|
|
1804
|
+
# The census beside the module (gated_delta_rule_census.json: every call of the op, by its dimensions) is read by
|
|
1805
|
+
# private names (_GATED_DELTA_RULE_CENSUS, _GATED_DELTA_RULE_CENSUS_FORMAT, _gated_delta_rule_census: format and cells
|
|
1806
|
+
# checked, a file that does not hold refused by name with RuntimeError); they are not API.
|
|
1806
1807
|
GATED_DELTA_RULE_PATHS = ("serial", "chunked")
|
|
1807
|
-
def gated_delta_rule_census() -> dict
|
|
1808
|
-
# the census read and checked (format; every cell's B, Hk, Hv, dk, dv, dtype and chunked_from_length: null or a
|
|
1809
1808
|
# length above one token); a file that does not hold is refused by name (RuntimeError)
|
|
1810
1809
|
def gated_delta_rule_path(B: int, L: int, Hk: int, Hv: int, dk: int, dv: int, dtype: NBXDtype) -> str
|
|
1811
1810
|
# "serial" for one token; otherwise the call's cell: "chunked" when its chunked_from_length is a length <= L,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Generated by `tools/kernels_provenance_audit.py`. A = ours (Copyright NeuroBrix, Apache-2.0); B = rewritten by NeuroBrix from the project named, original notice kept; C = copied unchanged (original notice alone); UNSURE = no evidence to class it, header left as it is.
|
|
4
4
|
|
|
5
|
-
Counts: A=
|
|
5
|
+
Counts: A=8 B=79 C=0 UNSURE=16; 1 file waits on card 569. No file is class C: none is byte-identical to any upstream file we could compare.
|
|
6
6
|
|
|
7
7
|
| file | upstream | licence | class | evidence |
|
|
8
8
|
|---|---|---|---|---|
|
|
@@ -76,6 +76,7 @@ Counts: A=6 B=79 C=0 UNSURE=16; 1 file waits on card 569. No file is class C: no
|
|
|
76
76
|
| `src/nbxtensor/ops/max_reduce.py` | FlagGems | Apache-2.0 | B | header declares "Extracted from FlagGems (Apache-2.0)."; listed in THIRD_PARTY_NOTICES; closest file at the upstream HEAD: FlagGems:src/flag_gems/ops/max.py (line similarity 0.57); upstream unpinned, no byte comparison to the extraction; torch-free Triton form, so modified |
|
|
77
77
|
| `src/nbxtensor/ops/min_reduce.py` | FlagGems | Apache-2.0 | B | header declares "Extracted from FlagGems (Apache-2.0)."; listed in THIRD_PARTY_NOTICES; closest file at the upstream HEAD: FlagGems:src/flag_gems/ops/min.py (line similarity 0.58); upstream unpinned, no byte comparison to the extraction; torch-free Triton form, so modified |
|
|
78
78
|
| `src/nbxtensor/ops/mma_m8n8k4.py` | none | Apache-2.0 | A | no upstream: written here (m8n8k4 family, our Gluon kernel); the upstream names in it are the algorithm's name or a reference |
|
|
79
|
+
| `src/nbxtensor/ops/moe_route.py` | none | Apache-2.0 | A | no upstream: written here |
|
|
79
80
|
| `src/nbxtensor/ops/mse_loss.py` | FlagGems | Apache-2.0 | B | header declares """"MSE Loss kernels — extracted from FlagGems."; listed in THIRD_PARTY_NOTICES; closest file at the upstream HEAD: FlagGems:src/flag_gems/ops/mse_loss.py (line similarity 0.27); upstream unpinned, no byte comparison to the extraction; torch-free Triton form, so modified |
|
|
80
81
|
| `src/nbxtensor/ops/nan_to_num.py` | FlagGems | Apache-2.0 | B | header declares """"NanToNum — pure @triton.jit kernel. Logic from FlagGems.""""; listed in THIRD_PARTY_NOTICES; closest file at the upstream HEAD: FlagGems:src/flag_gems/runtime/backend/_cambricon/ops/nan_to_num.py (line similarity 0.11); upstream unpinned, no byte comparison to the extraction; torch-free Triton form, so modified |
|
|
81
82
|
| `src/nbxtensor/ops/nllloss.py` | FlagGems | Apache-2.0 | B | header declares """"NLL Loss forward kernel — extracted from FlagGems."; listed in THIRD_PARTY_NOTICES; closest file at the upstream HEAD: FlagGems:src/flag_gems/runtime/backend/_enflame/gcu300/ops/nllloss.py (line similarity 0.32); upstream unpinned, no byte comparison to the extraction; torch-free Triton form, so modified |
|
|
@@ -108,6 +109,7 @@ Counts: A=6 B=79 C=0 UNSURE=16; 1 file waits on card 569. No file is class C: no
|
|
|
108
109
|
| `src/nbxtensor/ops/weight_norm.py` | FlagGems | Apache-2.0 | B | header declares "Ported from FlagGems weightnorm.py. Stripped FlagGems decorators."; listed in THIRD_PARTY_NOTICES; closest file at the upstream HEAD: FlagGems:src/flag_gems/runtime/backend/_enflame/gcu300/ops/weightnorm.py (line similarity 0.09); upstream unpinned, no byte comparison to the extraction; torch-free Triton form, so modified |
|
|
109
110
|
| `src/nbxtensor/ops/wrappers.py` | ? | ? | UNSURE | listed in THIRD_PARTY_NOTICES but its header does not declare a derivation (the source is named in passing, no statement of derivation); header left as it is |
|
|
110
111
|
| `tools/measure_the_chunked_gated_delta_rule.py` | none | Apache-2.0 | A | no upstream: written here; fla is only the measured reference, run in a child process, none of its code is copied |
|
|
112
|
+
| `tools/moe_route_certification_keys.py` | none | Apache-2.0 | A | no upstream: written here |
|
|
111
113
|
|
|
112
114
|
## Files that mention an upstream name and are not kernels (no header to set)
|
|
113
115
|
|
|
@@ -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.11"
|
|
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" }
|
|
@@ -17,10 +17,12 @@ maintainers = [{ name = "Hocine Benkelaya", email = "contact@neurobrix.org" }]
|
|
|
17
17
|
# On Linux the CUDA runtime library its CUDA backend opens (libcudart.so.12), which the NVIDIA driver does not ship: a clean
|
|
18
18
|
# machine with only the driver found no GPU runtime and the engine read the card as CPU-only (the stable's install test,
|
|
19
19
|
# 2026-11-05). On a machine without an NVIDIA card it is a library nothing opens.
|
|
20
|
-
# Triton
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
|
|
20
|
+
# Triton only where PyPI publishes it: its wheels are manylinux x86_64 and aarch64 alone (triton 3.9.0 and every release
|
|
21
|
+
# before it, no sdist), so a triton asked for on Windows or a Mac has no solution and the library did not install there
|
|
22
|
+
# (macOS 2026-11-06, native Windows 2026-11-18). The Metal Triton is built from source, with triton-ext's AppleGPU
|
|
23
|
+
# backend (the README's install, `install-metal`); on a Mac the Metal device is opened through pyobjc's Metal framework.
|
|
24
|
+
dependencies = ["numpy", "triton; sys_platform == 'linux' and (platform_machine == 'x86_64' or platform_machine == 'aarch64')",
|
|
25
|
+
"pyyaml", "nvidia-cuda-runtime-cu12; platform_system == 'Linux'",
|
|
24
26
|
"pyobjc-framework-Metal; platform_system == 'Darwin'"]
|
|
25
27
|
|
|
26
28
|
[project.urls]
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
"""Per-kernel GPU time on CUDA: a profiling session puts every launch, and every copy, between two timing events on
|
|
2
|
+
its own stream (the public door: `nbxtensor.profile.kernel_times`).
|
|
3
|
+
|
|
4
|
+
Why events and not a synchronised timer. A host timer around a launch needs the host to wait for the stream before
|
|
5
|
+
and after it: every figure then carries the submit call and the wait's wake-up (the size of a small kernel), and the
|
|
6
|
+
queue between host and device is gone, so the time the device spends waiting for its next launch — the figure a
|
|
7
|
+
launch-bound step is steered by — is replaced by the wait itself. An event is a marker in the stream, stamped by the
|
|
8
|
+
device when the stream reaches it: the host never waits, the launches queue as they do without the session, and the
|
|
9
|
+
interval between a launch's two events is read on the device's clock.
|
|
10
|
+
|
|
11
|
+
What the events cost and where they stop, both measured by the session and said in its table:
|
|
12
|
+
- the host records two events per launch; the host time of these calls is summed (`own_ms`), because on a step the
|
|
13
|
+
host bounds it lengthens the time between kernels by that much;
|
|
14
|
+
- on an idle device the start event is stamped when it is submitted, a little before the kernel starts, and the end
|
|
15
|
+
event no earlier than its own submission: a launch's interval overstates its kernel by at most the host time from
|
|
16
|
+
the start event to the launch's return (`overstated_ms` sums that bound), and a launch whose interval is no longer
|
|
17
|
+
than its whole submission is counted (`bounded`): its time is an upper bound.
|
|
18
|
+
|
|
19
|
+
The time between kernels is the interval from one launch's end event to the next one's start event on the same stream
|
|
20
|
+
of the same device. Events are taken from a pool per device; when it is empty the session waits for that device's last
|
|
21
|
+
events, reads its intervals and reuses them — the gap that holds this read is left out of the time between kernels.
|
|
22
|
+
A replay that would run as device graphs runs its launches directly inside a session (`frozen_plan`): a graph is one
|
|
23
|
+
launch to the device, and its kernels could not be told apart.
|
|
24
|
+
"""
|
|
25
|
+
from __future__ import annotations
|
|
26
|
+
|
|
27
|
+
import ctypes
|
|
28
|
+
import threading
|
|
29
|
+
import time
|
|
30
|
+
from typing import Dict, List, Optional
|
|
31
|
+
|
|
32
|
+
from nbxtensor.profile import KernelTimes
|
|
33
|
+
|
|
34
|
+
#: the open session, or None: the one flag a launch and a copy read (`launcher.CudaDriver.launch`, the allocator's copies)
|
|
35
|
+
SESSION: Optional["Session"] = None
|
|
36
|
+
|
|
37
|
+
#: kernel function handle -> its name, told by the driver when it loads the function (`launcher.CudaDriver.load`)
|
|
38
|
+
NAMES: Dict[int, str] = {}
|
|
39
|
+
|
|
40
|
+
#: launches a device's pool times before the session waits for the device and reads them (two events each)
|
|
41
|
+
POOL_PAIRS = 4096
|
|
42
|
+
|
|
43
|
+
#: a copy's row, by its kind (the allocator's: 1 host to device, 2 device to host, 3 device to device)
|
|
44
|
+
COPY_ROWS = {1: "copy host to device", 2: "copy device to host", 3: "copy device to device"}
|
|
45
|
+
SET_ROW = "set"
|
|
46
|
+
|
|
47
|
+
NOTE = "each launch and copy between two GPU events on its stream, the run's own cadence kept"
|
|
48
|
+
MEASURES = ("every launch and copy between two timing events on its stream; an interval overstates its kernel by at "
|
|
49
|
+
"most the host's submission of it (cadence.overstated_ms)")
|
|
50
|
+
|
|
51
|
+
#: the runtime calls a session needs, by their key in the backend's table (`backend.runtime.backend_table`)
|
|
52
|
+
_CALLS = ("event_create", "event_destroy", "event_record", "event_sync", "event_elapsed", "get_device")
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class RuntimeEvents:
|
|
56
|
+
"""The runtime's event calls, bound once with their signatures (a launch pays two records) and checked: a call
|
|
57
|
+
the runtime refuses is an error that names it."""
|
|
58
|
+
|
|
59
|
+
def __init__(self, rt, table: dict) -> None:
|
|
60
|
+
missing = [k for k in _CALLS if not table.get(k)]
|
|
61
|
+
if missing:
|
|
62
|
+
raise RuntimeError(f"ZERO FALLBACK: this backend's runtime table names no {', '.join(missing)}: "
|
|
63
|
+
f"per-kernel GPU time cannot be measured on it")
|
|
64
|
+
vp = ctypes.c_void_p
|
|
65
|
+
|
|
66
|
+
def bound(key, *argtypes):
|
|
67
|
+
return ctypes.CFUNCTYPE(ctypes.c_int, *argtypes)((table[key], rt))
|
|
68
|
+
self._create = bound("event_create", ctypes.POINTER(vp))
|
|
69
|
+
self._destroy = bound("event_destroy", vp)
|
|
70
|
+
self._record = bound("event_record", vp, vp)
|
|
71
|
+
self._wait = bound("event_sync", vp)
|
|
72
|
+
self._elapsed = bound("event_elapsed", ctypes.POINTER(ctypes.c_float), vp, vp)
|
|
73
|
+
self._device = bound("get_device", ctypes.POINTER(ctypes.c_int))
|
|
74
|
+
self._ms, self._dev = ctypes.c_float(), ctypes.c_int()
|
|
75
|
+
|
|
76
|
+
@staticmethod
|
|
77
|
+
def _refused(rc: int, what: str):
|
|
78
|
+
from nbxtensor.memory.allocator import DeviceAllocator
|
|
79
|
+
DeviceAllocator.clear_last_error() # a refused call must not poison the next one
|
|
80
|
+
return RuntimeError(f"ZERO FALLBACK: the kernel-time session's {what} was refused by the runtime (error {rc})")
|
|
81
|
+
|
|
82
|
+
def device(self) -> int:
|
|
83
|
+
rc = self._device(ctypes.byref(self._dev))
|
|
84
|
+
if rc != 0:
|
|
85
|
+
raise self._refused(rc, "read of the current device")
|
|
86
|
+
return self._dev.value
|
|
87
|
+
|
|
88
|
+
def select(self, device: int) -> None:
|
|
89
|
+
from nbxtensor.memory.allocator import DeviceAllocator
|
|
90
|
+
DeviceAllocator.set_device(device)
|
|
91
|
+
|
|
92
|
+
def create(self) -> int:
|
|
93
|
+
event = ctypes.c_void_p()
|
|
94
|
+
rc = self._create(ctypes.byref(event))
|
|
95
|
+
if rc != 0 or not event.value:
|
|
96
|
+
raise self._refused(rc, "timing event")
|
|
97
|
+
return event.value
|
|
98
|
+
|
|
99
|
+
def destroy(self, event: int) -> None:
|
|
100
|
+
self._destroy(event)
|
|
101
|
+
|
|
102
|
+
def record(self, event: int, stream: int) -> None:
|
|
103
|
+
rc = self._record(event, stream)
|
|
104
|
+
if rc != 0:
|
|
105
|
+
raise self._refused(rc, f"event record on stream {stream:#x}")
|
|
106
|
+
|
|
107
|
+
def wait(self, event: int) -> None:
|
|
108
|
+
rc = self._wait(event)
|
|
109
|
+
if rc != 0:
|
|
110
|
+
raise self._refused(rc, "wait for an event")
|
|
111
|
+
|
|
112
|
+
def elapsed_ms(self, start: int, end: int) -> float:
|
|
113
|
+
rc = self._elapsed(ctypes.byref(self._ms), start, end)
|
|
114
|
+
if rc != 0:
|
|
115
|
+
raise self._refused(rc, "read of an interval between two events")
|
|
116
|
+
return float(self._ms.value)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class Session:
|
|
120
|
+
"""One profiling session. `clock` gives the device's events (`RuntimeEvents`: device, select, create, destroy,
|
|
121
|
+
record, wait, elapsed_ms); `now` is the host's clock in nanoseconds."""
|
|
122
|
+
|
|
123
|
+
def __init__(self, clock, now=time.perf_counter_ns, pairs: int = POOL_PAIRS) -> None:
|
|
124
|
+
self.clock, self.now, self.pairs = clock, now, int(pairs)
|
|
125
|
+
self.table = KernelTimes()
|
|
126
|
+
self.table.note, self.table.measures = NOTE, MEASURES
|
|
127
|
+
self.cadence = self.table.cadence = {"between_ms": 0.0, "gaps": 0, "own_ms": 0.0, "overstated_ms": 0.0,
|
|
128
|
+
"bounded": 0, "bounded_by_kernel": {}}
|
|
129
|
+
self.made: Dict[int, List[int]] = {} # device -> every event created on it
|
|
130
|
+
self.free: Dict[int, List[int]] = {} # device -> its events not holding a launch
|
|
131
|
+
self.pending: Dict[int, list] = {} # device -> its launches not read yet, in their order
|
|
132
|
+
self.booked: Dict[int, float] = {} # device -> ms booked to its rows and its time between launches
|
|
133
|
+
self._lock = threading.Lock()
|
|
134
|
+
self.t0 = now()
|
|
135
|
+
|
|
136
|
+
def begin(self, stream) -> tuple:
|
|
137
|
+
"""The start event of a launch (or a copy) recorded on `stream`; the mark its `end` takes."""
|
|
138
|
+
entered = self.now()
|
|
139
|
+
stream = int(stream or 0)
|
|
140
|
+
device = self.clock.device()
|
|
141
|
+
free = self.free.get(device)
|
|
142
|
+
if not free:
|
|
143
|
+
free = self._events_for(device)
|
|
144
|
+
start, end = free.pop(), free.pop()
|
|
145
|
+
t0 = self.now()
|
|
146
|
+
self.clock.record(start, stream)
|
|
147
|
+
return self, device, stream, start, end, t0, self.now() - entered
|
|
148
|
+
|
|
149
|
+
def end(self, mark: tuple, name: str) -> None:
|
|
150
|
+
"""The end event of the launch `mark` opened; its row is `name`."""
|
|
151
|
+
_session, device, stream, start, end, t0, own = mark
|
|
152
|
+
t2 = self.now()
|
|
153
|
+
self.clock.record(end, stream)
|
|
154
|
+
t3 = self.now()
|
|
155
|
+
self.pending[device].append((stream, name, start, end, t2 - t0, t3 - t0, own + t3 - t2))
|
|
156
|
+
|
|
157
|
+
def _events_for(self, device: int) -> List[int]:
|
|
158
|
+
"""`device`'s free events: its pool created at its first launch, else its launches read and their events
|
|
159
|
+
reused."""
|
|
160
|
+
with self._lock:
|
|
161
|
+
if device not in self.made:
|
|
162
|
+
self.pending[device] = []
|
|
163
|
+
self.made[device] = [self.clock.create() for _ in range(2 * self.pairs)]
|
|
164
|
+
self.free[device] = list(self.made[device])
|
|
165
|
+
elif not self.free[device]:
|
|
166
|
+
self.read(device)
|
|
167
|
+
return self.free[device]
|
|
168
|
+
|
|
169
|
+
def read(self, device: int) -> None:
|
|
170
|
+
"""The current device's pending launches into the table. Every launch's two events are placed on ONE timeline
|
|
171
|
+
(their offset from the batch's first start event, on the device's clock) and the timeline is booked once:
|
|
172
|
+
the time a launch alone holds goes to its row, the time no launch holds goes to `between_ms`, and the time
|
|
173
|
+
two launches hold together (streams that overlap) goes to the one that started first, so no instant is booked
|
|
174
|
+
twice. A launch whose end the device stamped before its start is an error that names both stamps."""
|
|
175
|
+
pending = self.pending[device]
|
|
176
|
+
for event in {stream: end for stream, _n, _s, end, _l, _w, _o in pending}.values():
|
|
177
|
+
self.clock.wait(event) # the last end event of each stream: all before it are reached
|
|
178
|
+
placed = [self._place(pending[0][2], row) for row in pending]
|
|
179
|
+
self.booked[device] = self._book(sorted(placed), self.booked.get(device, 0.0))
|
|
180
|
+
for _stream, _name, start, end, _l, _w, _o in pending:
|
|
181
|
+
self.free[device] += (start, end)
|
|
182
|
+
pending.clear()
|
|
183
|
+
|
|
184
|
+
def _place(self, origin: int, row: tuple) -> tuple:
|
|
185
|
+
"""(start, end, name) of a launch as offsets in ms from `origin` on the device's clock; what its events cost
|
|
186
|
+
and the bound of its figure counted. An end before its start is an error that names both stamps."""
|
|
187
|
+
stream, name, start, end, lead_ns, window_ns, own_ns = row
|
|
188
|
+
first, last = self.clock.elapsed_ms(origin, start), self.clock.elapsed_ms(origin, end)
|
|
189
|
+
if last < first:
|
|
190
|
+
raise RuntimeError(f"ZERO FALLBACK: the device stamped the end of {name!r} (stream {stream:#x}) at "
|
|
191
|
+
f"{last!r} ms before its start at {first!r} ms (offsets from the batch's first "
|
|
192
|
+
f"event): the interval cannot be booked")
|
|
193
|
+
c = self.cadence
|
|
194
|
+
c["own_ms"] += own_ns / 1e6
|
|
195
|
+
if last - first <= window_ns / 1e6: # no longer than its own submission: an upper bound
|
|
196
|
+
c["bounded"] += 1
|
|
197
|
+
c["bounded_by_kernel"][name] = c["bounded_by_kernel"].get(name, 0) + 1
|
|
198
|
+
c["overstated_ms"] += last - first
|
|
199
|
+
else:
|
|
200
|
+
c["overstated_ms"] += lead_ns / 1e6
|
|
201
|
+
return first, last, name
|
|
202
|
+
|
|
203
|
+
def _book(self, placed: list, booked: float) -> float:
|
|
204
|
+
"""The launches in the order they started, booked on one timeline: what a launch alone holds goes to its
|
|
205
|
+
row, the time no launch holds to `between_ms`, the time two hold together to the one that started first.
|
|
206
|
+
Returns `booked` plus everything booked here."""
|
|
207
|
+
c = self.cadence
|
|
208
|
+
frontier = placed[0][0] if placed else 0.0 # the end of what the timeline has booked so far
|
|
209
|
+
for index, (first, last, name) in enumerate(placed):
|
|
210
|
+
c["gaps"] += 1 if index else 0 # a boundary between two launches, empty or not
|
|
211
|
+
idle = max(0.0, first - frontier)
|
|
212
|
+
held = max(0.0, last - max(first, frontier))
|
|
213
|
+
c["between_ms"] += idle
|
|
214
|
+
self.table.add(name, held)
|
|
215
|
+
booked += idle + held
|
|
216
|
+
frontier = max(frontier, last)
|
|
217
|
+
return booked
|
|
218
|
+
|
|
219
|
+
def close(self) -> KernelTimes:
|
|
220
|
+
"""Every device's launches read, its events destroyed; the device that was current is current again."""
|
|
221
|
+
current = self.clock.device() if self.made else None
|
|
222
|
+
for device, events in self.made.items():
|
|
223
|
+
if device != current:
|
|
224
|
+
self.clock.select(device)
|
|
225
|
+
self.read(device)
|
|
226
|
+
for event in events:
|
|
227
|
+
self.clock.destroy(event)
|
|
228
|
+
if device != current:
|
|
229
|
+
self.clock.select(current)
|
|
230
|
+
self.table.wall_s = (self.now() - self.t0) / 1e9
|
|
231
|
+
self._unattributed()
|
|
232
|
+
return self.table
|
|
233
|
+
|
|
234
|
+
def _unattributed(self) -> None:
|
|
235
|
+
"""The ONE figure derived by subtraction: the session's wall time less what its timeline booked on a device.
|
|
236
|
+
Printed as it is, however large; a device booked for more than the wall is an error that names both."""
|
|
237
|
+
wall_ms = self.table.wall_s * 1e3
|
|
238
|
+
by_device = {}
|
|
239
|
+
for device, booked in self.booked.items():
|
|
240
|
+
if booked > wall_ms + 1e-9:
|
|
241
|
+
raise RuntimeError(f"ZERO FALLBACK: device {device} booked {booked!r} ms of non-overlapping intervals "
|
|
242
|
+
f"in a session of {wall_ms!r} ms wall: the clocks disagree, nothing is attributed")
|
|
243
|
+
by_device[device] = {"booked_ms": booked, "unattributed_ms": wall_ms - booked}
|
|
244
|
+
c = self.cadence
|
|
245
|
+
c["wall_ms"] = wall_ms
|
|
246
|
+
c["by_device"] = by_device
|
|
247
|
+
c["unattributed_ms"] = wall_ms - max((d["booked_ms"] for d in by_device.values()), default=0.0)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def open_session() -> KernelTimes:
|
|
251
|
+
"""Open the process's one session on the CUDA runtime in force. Refused by name when one is open."""
|
|
252
|
+
global SESSION
|
|
253
|
+
if SESSION is not None:
|
|
254
|
+
raise RuntimeError("ZERO FALLBACK: a kernel-time session is already open in this process")
|
|
255
|
+
from nbxtensor.backend import runtime
|
|
256
|
+
SESSION = Session(RuntimeEvents(runtime.gpu_runtime(), runtime.backend_table()))
|
|
257
|
+
return SESSION.table
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
def close_session() -> KernelTimes:
|
|
261
|
+
"""Every launch of the session read into its table; the flag cleared whatever happens."""
|
|
262
|
+
global SESSION
|
|
263
|
+
session = SESSION
|
|
264
|
+
if session is None:
|
|
265
|
+
raise RuntimeError("ZERO FALLBACK: no kernel-time session is open")
|
|
266
|
+
try:
|
|
267
|
+
return session.close()
|
|
268
|
+
finally:
|
|
269
|
+
SESSION = None
|
|
@@ -16,6 +16,7 @@ import os
|
|
|
16
16
|
import traceback
|
|
17
17
|
from typing import Dict, List, Optional, Tuple
|
|
18
18
|
|
|
19
|
+
from nbxtensor.backend import cuda_profile as _profile
|
|
19
20
|
from nbxtensor.memory.allocator import DeviceAllocator
|
|
20
21
|
from nbxtensor.memory.slab import SlabAllocator, SlabInterceptor
|
|
21
22
|
from nbxtensor.tensor import NBXTensor
|
|
@@ -400,7 +401,8 @@ class FrozenPlan:
|
|
|
400
401
|
# token (Qwen3-30B-A3B on 4 V100, 2026-10-28: ~60 ms of a 184 ms token for a few ms of kernels).
|
|
401
402
|
_segmented = self.crosses_cards() or self.scan_slots is not None # a segment of a step: graphs too
|
|
402
403
|
from nbxtensor.backend.replay_graph import capable as _graph_capable
|
|
403
|
-
|
|
404
|
+
# inside a kernel-time session the actions run directly: a graph is one launch, its kernels not told apart
|
|
405
|
+
if _graph_capable() and not self.graph_disabled and _profile.SESSION is None:
|
|
404
406
|
self._replay_graph(_segmented)
|
|
405
407
|
else:
|
|
406
408
|
self._direct_actions()
|
|
@@ -25,6 +25,8 @@ import contextlib
|
|
|
25
25
|
import ctypes
|
|
26
26
|
import os
|
|
27
27
|
|
|
28
|
+
from nbxtensor.backend import cuda_profile as _profile
|
|
29
|
+
|
|
28
30
|
import numpy as np
|
|
29
31
|
import struct
|
|
30
32
|
from typing import Any, Dict, List, NamedTuple, Optional, Tuple
|
|
@@ -573,6 +575,7 @@ class CudaDriver(ModuleDriver):
|
|
|
573
575
|
function = ctypes.c_void_p()
|
|
574
576
|
self._check(self.lib.cuModuleGetFunction(ctypes.byref(function), module, name.encode()), f"cuModuleGetFunction({name})")
|
|
575
577
|
self._param_counts[int(function.value)] = _cubin_param_count(binary, name)
|
|
578
|
+
_profile.NAMES[int(function.value)] = name # the launch's row in a kernel-time session
|
|
576
579
|
if shared > 48 * 1024:
|
|
577
580
|
# A compiled kernel asking more shared memory than the device grants a block is a config this device
|
|
578
581
|
# cannot run: Triton's own CUDA launcher raises OutOfResources here, which the autotuner scores `inf`
|
|
@@ -604,7 +607,11 @@ class CudaDriver(ModuleDriver):
|
|
|
604
607
|
storage, arr = self._arg_buffers[cache_key]
|
|
605
608
|
for cell, (_kind, v) in zip(storage, params):
|
|
606
609
|
cell.value = v
|
|
610
|
+
# inside a kernel-time session the launch sits between two timing events on its stream (`cuda_profile`)
|
|
611
|
+
mark = None if _profile.SESSION is None else _profile.SESSION.begin(stream)
|
|
607
612
|
rc = self.lib.cuLaunchKernel(function, *launch_dims, shared, stream, arr, None)
|
|
613
|
+
if mark is not None:
|
|
614
|
+
mark[0].end(mark, _profile.NAMES[int(function.value)])
|
|
608
615
|
if rc != 0:
|
|
609
616
|
self._check(rc, "cuLaunchKernel")
|
|
610
617
|
|
|
@@ -3,6 +3,7 @@ own accounting (live bytes, peaks), with the malloc call-site trace (NBX_MALLOC_
|
|
|
3
3
|
unchanged."""
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
|
+
from nbxtensor.backend import cuda_profile as _profile
|
|
6
7
|
from nbxtensor.backend import faults as _faults
|
|
7
8
|
|
|
8
9
|
import bisect
|
|
@@ -1439,7 +1440,10 @@ class DeviceAllocator:
|
|
|
1439
1440
|
@staticmethod
|
|
1440
1441
|
def memset_direct(ptr: int, value: int, nbytes: int):
|
|
1441
1442
|
if nbytes > 0 and ptr:
|
|
1443
|
+
mark = None if _profile.SESSION is None else _profile.SESSION.begin(0)
|
|
1442
1444
|
_rt.device_memory().memset(ptr, value, nbytes)
|
|
1445
|
+
if mark is not None:
|
|
1446
|
+
mark[0].end(mark, _profile.SET_ROW)
|
|
1443
1447
|
|
|
1444
1448
|
@staticmethod
|
|
1445
1449
|
def memcpy(dst: int, src: int, nbytes: int, kind: int = 3):
|
|
@@ -1461,7 +1465,11 @@ class DeviceAllocator:
|
|
|
1461
1465
|
stream ordering, never by host program order.
|
|
1462
1466
|
"""
|
|
1463
1467
|
if nbytes > 0:
|
|
1468
|
+
# inside a kernel-time session a copy that reaches a device sits between two timing events (`cuda_profile`)
|
|
1469
|
+
mark = _profile.SESSION.begin(0) if _profile.SESSION is not None and kind in _profile.COPY_ROWS else None
|
|
1464
1470
|
_rc = _rt.device_memory().memcpy(dst, src, nbytes, kind)
|
|
1471
|
+
if mark is not None:
|
|
1472
|
+
mark[0].end(mark, _profile.COPY_ROWS[kind])
|
|
1465
1473
|
if _rc not in (None, 0):
|
|
1466
1474
|
raise RuntimeError(
|
|
1467
1475
|
f"cudaMemcpy failed rc={_rc} (kind={kind}, "
|
|
@@ -1802,10 +1810,13 @@ class DeviceAllocator:
|
|
|
1802
1810
|
# Fallback to synchronous memcpy if async is unsupported.
|
|
1803
1811
|
DeviceAllocator.memcpy(dst, src, nbytes, kind)
|
|
1804
1812
|
return
|
|
1813
|
+
mark = _profile.SESSION.begin(stream) if _profile.SESSION is not None and kind in _profile.COPY_ROWS else None
|
|
1805
1814
|
getattr(rt, fn_name)(
|
|
1806
1815
|
ctypes.c_void_p(dst), ctypes.c_void_p(src),
|
|
1807
1816
|
ctypes.c_size_t(nbytes), ctypes.c_int(kind),
|
|
1808
1817
|
ctypes.c_void_p(stream))
|
|
1818
|
+
if mark is not None:
|
|
1819
|
+
mark[0].end(mark, _profile.COPY_ROWS[kind])
|
|
1809
1820
|
|
|
1810
1821
|
@staticmethod
|
|
1811
1822
|
def event_synchronize(event: int):
|
|
@@ -188,11 +188,11 @@ def _announce_first_sweep(tuned):
|
|
|
188
188
|
# the Prism profile — an entry serves only the memory class it
|
|
189
189
|
# covered (register 56)
|
|
190
190
|
mcls = _cert.executing_memory_gb(args)
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
191
|
+
# its own key; then an operand widened on load keyed by its computed dtype, or the kernel's
|
|
192
|
+
# certified default (a q < Tk flash: the square key) — never a sweep for a served shape
|
|
193
|
+
applied = _cert.apply(qual, tuned, key, memory_gb=mcls) or any(
|
|
194
|
+
_cert.apply(qual, tuned, key, lookup_key=k, memory_gb=mcls)
|
|
195
|
+
for k in _cert.lookup_keys(qual, tuned, key, kwargs))
|
|
196
196
|
except Exception as exc: # the directory is an optimisation, never a failure source —
|
|
197
197
|
if _confirm: # except in a confirmation run, where it is the only source
|
|
198
198
|
raise _cert.KeyNotCertified(f"CERTIFIED-ONLY: the certified lookup failed for {qual} "
|
|
@@ -152,6 +152,10 @@ def file_for(vendor: str, profile: str, kernel_qual: str, dtype: str, root: Opti
|
|
|
152
152
|
# ---------------------------------------------------------------------------
|
|
153
153
|
# the key and its dtype
|
|
154
154
|
# ---------------------------------------------------------------------------
|
|
155
|
+
class UnreadableKey(RuntimeError):
|
|
156
|
+
"""A key carrying a string that is no dtype this library knows: the directory cannot be read at it."""
|
|
157
|
+
|
|
158
|
+
|
|
155
159
|
def key_dtypes(key: tuple) -> List[str]:
|
|
156
160
|
"""The dtype names the launcher appended to the key, in argument order.
|
|
157
161
|
|
|
@@ -166,7 +170,7 @@ def key_dtypes(key: tuple) -> List[str]:
|
|
|
166
170
|
if not isinstance(k, str):
|
|
167
171
|
continue
|
|
168
172
|
if str(k).lower() not in _DTYPES:
|
|
169
|
-
raise
|
|
173
|
+
raise UnreadableKey(
|
|
170
174
|
f"certify: key element {k!r} is a string this engine does not recognise as a "
|
|
171
175
|
f"dtype, and every string a key carries is one.\n"
|
|
172
176
|
f" Known: {', '.join(_DTYPES)}.\n"
|
|
@@ -1328,6 +1332,14 @@ def computed_key(tuner, key: tuple, kwargs: Optional[Dict[str, Any]] = None) ->
|
|
|
1328
1332
|
return tuple(head + tags) if changed else None
|
|
1329
1333
|
|
|
1330
1334
|
|
|
1335
|
+
def lookup_keys(kernel_qual: str, tuner, key: tuple, kwargs: Optional[Dict[str, Any]] = None) -> List[tuple]:
|
|
1336
|
+
"""The keys the directory is read at, in order, when it holds nothing for the launch's own: the operand widened on
|
|
1337
|
+
load (`computed_key`), then the kernel's certified default of each (`launch_keys.square_default_key`)."""
|
|
1338
|
+
from nbxtensor.ops.launch_keys import square_default_key
|
|
1339
|
+
twin = computed_key(tuner, key, kwargs)
|
|
1340
|
+
return [k for k in [twin] + [square_default_key(kernel_qual, k) for k in (key, twin) if k] if k]
|
|
1341
|
+
|
|
1342
|
+
|
|
1331
1343
|
def apply(kernel_qual: str, tuner, key: tuple, lookup_key: Optional[tuple] = None,
|
|
1332
1344
|
memory_gb: Optional[int] = None) -> bool:
|
|
1333
1345
|
"""Put the certified config in the tuner's cache for `key` — no sweep, no
|
|
@@ -1352,6 +1364,27 @@ def apply(kernel_qual: str, tuner, key: tuple, lookup_key: Optional[tuple] = Non
|
|
|
1352
1364
|
return True
|
|
1353
1365
|
|
|
1354
1366
|
|
|
1367
|
+
def _seeded_entry(qual: str, tuner, key: tuple) -> Tuple[Optional[Dict[str, Any]], Optional[tuple]]:
|
|
1368
|
+
"""The directory's entry for a seeded key, any class, and the key it was read at (None: the key's own): its own
|
|
1369
|
+
key, then a widened operand's or the kernel's certified default (`lookup_keys`). (None, None) when none serves,
|
|
1370
|
+
and — said once per key — when the directory cannot be read at the key (`UnreadableKey`: a replay cache written
|
|
1371
|
+
with a dtype name this library does not know): its local setting stays. Any other error is raised."""
|
|
1372
|
+
try:
|
|
1373
|
+
for twin in [None] + lookup_keys(qual, tuner, key):
|
|
1374
|
+
entry = lookup(qual, tuner, twin or key, any_class=True)
|
|
1375
|
+
if entry is not None:
|
|
1376
|
+
return entry, twin
|
|
1377
|
+
except UnreadableKey as exc:
|
|
1378
|
+
if (qual, key) not in _UNREADABLE_SEEDS:
|
|
1379
|
+
_UNREADABLE_SEEDS.add((qual, key))
|
|
1380
|
+
_log.warning("%s", f"[autotune] the certified directory is not read for the seeded key {key} of "
|
|
1381
|
+
f"{kernel_short(qual)}: its local setting stays ({str(exc).splitlines()[0]})")
|
|
1382
|
+
return None, None
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
_UNREADABLE_SEEDS: set = set() # (kernel, key) the seed said it could not read the directory at
|
|
1386
|
+
|
|
1387
|
+
|
|
1355
1388
|
def override_seeded(tuners=None) -> int:
|
|
1356
1389
|
"""The directory first, even on a warm machine: every key the local replay
|
|
1357
1390
|
cache seeded into a tuner that the directory certifies takes the certified
|
|
@@ -1380,14 +1413,7 @@ def override_seeded(tuners=None) -> int:
|
|
|
1380
1413
|
for key in list(cache.keys()):
|
|
1381
1414
|
if not isinstance(key, tuple):
|
|
1382
1415
|
continue
|
|
1383
|
-
twin =
|
|
1384
|
-
try:
|
|
1385
|
-
entry = lookup(qual, tuner, key, any_class=True)
|
|
1386
|
-
if entry is None:
|
|
1387
|
-
twin = computed_key(tuner, key) # a widened-on-load operand, by the profile's rule
|
|
1388
|
-
entry = lookup(qual, tuner, twin, any_class=True) if twin else None
|
|
1389
|
-
except Exception:
|
|
1390
|
-
entry = None
|
|
1416
|
+
entry, twin = _seeded_entry(qual, tuner, key)
|
|
1391
1417
|
if entry is None:
|
|
1392
1418
|
continue
|
|
1393
1419
|
local = cache.pop(key, None)
|