Files
wehub-resource-sync 59a0a3844c
PR Test AMD / cancel-on-close (push) Has been skipped
PR Test NVIDIA ARM / scan (push) Has been skipped
PR Test NVIDIA / cancel-on-close (push) Has been skipped
PR Test AMD / scan (push) Has been skipped
PR Test NVIDIA ARM / cancel-on-close (push) Has been skipped
PR Test NVIDIA / scan (push) Has been skipped
Release Docker Images / build (cu129-torch-2.11.0) (push) Has been skipped
Release Docker Images / build (cu130-torch-2.11.0) (push) Has been skipped
Release PyPI / publish (push) Has been skipped
Scheduler Python Test / test (push) Successful in 27m19s
Docs / build (push) Successful in 28m8s
Scheduler C++ Test / test (push) Successful in 28m19s
Scheduler C++ Test / test-flat (push) Successful in 28m18s
Docs / deploy (push) Has been cancelled
PR Test AMD / finish (push) Has been cancelled
PR Test NVIDIA / finish (push) Has been cancelled
PR Test NVIDIA ARM / finish (push) Has been cancelled
PR Test NVIDIA ARM / ${{ matrix.name }} (${{ matrix.runner }}) (push) Has been cancelled
PR Test AMD / ${{ matrix.name }} (${{ matrix.runner }}) (push) Has been cancelled
PR Test NVIDIA / ${{ matrix.name }} (${{ matrix.runner }}) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:32:31 +08:00

2.0 KiB

General Agent Guidelines

If a AGENTS.local.md file exists alongside this file, read and respect it-- it contains developer-specific overrides that supplement this shared guidance.

Development environment

  • Before any work, check local Python venv and activate if one exists.
  • Don't install pip packages outside the local Python venv if one exists.

Code changes

  • Add tests and update docs for the changed code.
  • Before creating commits, run pre-commit run --all-files to format.
  • Do not substitute a narrower lint command for the repository hook before committing. Always run the exact pre-commit run --all-files command and commit any formatter changes it makes.
  • When creating commits, perform sign off on behalf of the author.

Dependency boundaries

  • tokenspeed runtime dependencies should stay vendor-neutral.
  • Runtime code should use tokenspeed-kernel as its only kernel package boundary.
  • Third-party kernel libraries belong under tokenspeed-kernel; avoid direct runtime dependencies or imports that bypass it.
  • If a dependency repeatedly breaks during version upgrades or slows project progress, consider removing it entirely or at least making it optional.

tokenspeed-kernel

Inside the root tokenspeed-kernel/ directory:

  • All direct tokenspeed-triton imports should happen in _triton.py and then re-import to other places.
  • All direct third-party code should be placed in thirdparty/ and imported into ops/ then registered via register_kernel.
  • Prefer CuteDSL for NVIDIA GPU kernels and Triton Gluon for AMD GPU kernels. Use Triton for portable solutions across vendors. Vendor libraries should stay optional, and other solutions may be used as temporary transitions, but new work should consolidate toward these backend choices.
  • Files under ops/ should follow <family>/<solution> structure, like gemm/trtllm.py or attention/triton/.
  • When defining new public APIs, explain arguments and returns in docstring.