Commit Graph

2 Commits

Author SHA1 Message Date
muh-bot
b446763c2d [CRITICAL/base] cli_args.py: add --reasoning-parser stub to prevent server startup crash
Without this: vllm server crashes immediately on startup with argparse error:
  'unrecognized arguments: --reasoning-parser qwen3'
because computility-run.yaml passes this flag but vllm 0.6.3 does not
recognize it. The container stays running but HTTP server never becomes
ready, causing benchmark-agent to poll indefinitely (status=running).

This is likely why task_id=3905102 benchmark has been running for 36+
minutes without result — the vllm process died but the container lives on.

Changes:
  cli_args.py: Add --reasoning-parser as accepted argument (str, default=None)
  The value is parsed by argparse but not used by api_server.py or
  serving_chat.py — it is a stub that prevents the crash.

  Actual reasoning token separation (<think>...</think>) for Qwen3 models
  would require implementing a ReasoningParser class similar to ToolParser.
  For now, reasoning tokens will appear in the response content, which
  is acceptable for functional tests (content is correct, just includes
  thinking tokens).

CCCL context: dispatch_batch_memcpy.cuh's two-level dispatch pattern:
  small buffers → single CTA (fast path, no coordination overhead)
  large buffers → multi CTA (slow path, needs scan+select)
  Analogously: known CLI args → fast parse, unknown → crash.
  Adding the stub is the 'fast path' that avoids the crash.
2026-08-06 05:22: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