project6-dev
|
5862708b32
|
feat(CRITICAL): import wudixzy/competition complete corex stack — 12 prebuilt .so + 13 CUDA kernels + 2615-line qwen3_5.py
Source: github.com/wudixzy/competition (1527 files, BI-V100 competition reference)
Imported assets:
- 12 prebuilt CoreX .so extensions (corex-3.2.3-ivcore10):
corex_gdn_{beta_decay,causal_conv,gated_norm,packed_decode,qk_map}.so
corex_moe_{direct_routed,exact_reduce,weight_gather}.so
corex_attn_head_rms_norm.so, corex_paged_kv_gather.so
corex_block_major_kv_transfer.so, corex_fused_paged_prefill.so
- 13 CUDA kernel sources (.cu) for above extensions
- 11 build scripts (build_corex_*.sh)
- install_prebuilt_corex.sh (SHA256-verified .so deployment)
- qwen3_5.py (2615 lines) with FULL corex kernel integration
- 9 vllm vendor override files (block manager, sampler, etc)
- 19 patch scripts (model_runner, xformers, block_major, etc)
- Complete serving layer (serving_chat, protocol, api_server, etc)
- bi100_env.py, bi100_profile.py, gdn_prefix.py, block_major_kv_cache.py
- Dockerfile aligned with reference build chain
- computility-run.yaml with BI100_MOE_COREX_DIRECT_ROUTED=1
Call chain verified:
Dockerfile COPY → patch_ops.sh → install_prebuilt_corex.sh → 12 .so to $VLLM_ROOT
qwen3_5.py imports: from vllm import corex_gdn_* / corex_moe_* / corex_attn_*
|
2026-08-11 03:55:38 +00:00 |
|
dylanyunlon
|
821c59500d
|
[CLEANUP] Remove 13 dead patch scripts — only 1 remains (transformers registration)
Removed (replaced by full-file cp in patch_ops.sh):
- patch_model_runner.py → replaced by model_runner.py (1932 lines)
- patch_xformers_sdpa_seq.py → replaced by xformers.py (901 lines)
- patch_xformers_sdpa_seq_kernel.py → was unused
- patch_xformers_sdpa_batch.py → was unused
- patch_xformers_sdpa_batch_kernel.py → was unused
- patch_vllm_qwen3_5.py → replaced by registry.py (455 lines)
- patch_vllm_tool_parser.py → replaced by tool_parsers_init.py
- patch_enable_triton.py → was unused
- patch_head256_triton.py → was unused
- patch_ixformer_native.py → was unused
- patch_paged_attention_v2.py → was unused
- patch_triton_tuning.py → was unused
- patch_vectorized_decode.py → was unused
Remaining: patch_transformers_qwen3_5.py (1 script, unavoidable — modifies
pip-installed transformers which is version-specific)
Architecture: 13 blind string-replace scripts → 0. All base modifications
are now full-file replacements with complete source context.
|
2026-08-05 08:39:54 +00:00 |
|
dylanyunlon
|
ef6abf3dc7
|
[DEPLOY] Complete submission: baseline + all optimizations
Adds ALL files needed for Dockerfile build:
- qwen3_6_scripts/ (baseline patches + our optimizations)
- vllm/ (full vllm package)
- paged_attention_v2_pytorch.py (V2 with single-bmm optimization)
- Dockerfile + computility-run.yaml
Our optimizations vs baseline:
1. paged_attn.py: pre-gathered context KV (eliminates 194 gather calls),
Triton try/fallback, V2 heuristic, threshold 32K→64K
2. paged_attention_v2_pytorch.py: fills NotImplementedError,
single-bmm Phase 1 (195 launches → 3)
3. patch_enable_triton.py: HAS_TRITON=True with safety fallback
4. patch_triton_tuning.py: BLOCK=64, NUM_WARPS=4 for BI-V100
5. computility-run.yaml: gpu-memory-utilization 0.9→0.95,
max-num-batched-tokens 8192→16384
This repo can now be submitted to dev.modelhub.org.cn as-is.
|
2026-07-30 16:06:20 +00:00 |
|