[docs] Start ues CLAUDE rules.

This commit is contained in:
Zijie Tian
2025-12-15 00:20:54 +08:00
parent a37f07943c
commit 5949537faf
3 changed files with 46 additions and 38 deletions

20
.claude/rules/testing.md Normal file
View File

@@ -0,0 +1,20 @@
# Testing
## Chunked Attention Test
```bash
CUDA_VISIBLE_DEVICES=4,5 python tests/test_chunked_attention.py 6 2048 64 2
# Args: num_gpu_blocks input_len output_len num_prefetch_blocks
```
## CPU Offload Testing
```bash
# Basic test with limited GPU blocks to trigger offload
CUDA_VISIBLE_DEVICES=4,5 python tests/test_chunked_attention.py 6 2048 64 2
# Verify consistency (run multiple times, output should be identical)
for i in 1 2 3; do
CUDA_VISIBLE_DEVICES=4,5 python tests/test_chunked_attention.py 6 2048 32 2 2>&1 | tail -3
done
```