Spaces:
Sleeping
Sleeping
Commit History
-
Implement vLLM with LLM Compressor and performance optimizations
Major optimizations for faster deployment and inference: 1. vLLM Integration (Primary Engine): - Native AWQ quantization support (auto-detects AWQ weights) - Continuous batching (max_num_seqs=256) for concurrent requests - PagedAttention for efficient KV cache management - Prefix caching enabled for faster TTFT on repeated prompts - Chunked prefill for long context handling - Optimized for ZeroGPU H200 slice (gpu_memory_utilization=0.90) 2. Performance Optimizations: - torch.compile with mode='reduce-overhead' (~10-20% speedup after first call) - FlashAttention-2 enabled when available - Prefer bfloat16 over int8 for speed (bf16 ~15-23% faster than int8) - Non-blocking streaming with TextIteratorStreamer - CUDA kernel warmup on startup 3. Fallback Chain: - vLLM AWQ (primary) → vLLM FP16 → Transformers AWQ → BitsAndBytes 8-bit → FP16/FP32 - Graceful degradation ensures compatibility 4. Deployment Speed: - Model caching in VLLM_MODELS dict …a79facb -
Migrate to AWQ quantization with FlashAttention-2
- Replace BitsAndBytes 8-bit with AWQ 4-bit quantization (primary path) - Add FlashAttention-2 support for optimized attention - Enable TF32 math for Ampere+ GPUs - Add CUDA kernel warmup on startup to reduce first-token latency - Update model names to reflect AWQ optimization - Add graceful fallback chain: AWQ -> BitsAndBytes -> bf16/fp16/fp32 - Update requirements.txt with flash-attn>=2.5.0 - Update README with performance optimizations documentation06b4cf5
-
Update README and clean up old files
9592189 -
Update README: Focus on CourseGPT-Pro router checkpoints
4706b45 -
Update README with correct space URL
9af4b77 -
Initial commit: ZeroGPU LLM Inference Space
f91e906