# Pinned for HF Spaces (ZeroGPU). Mirrors the package's runtime deps plus # Gradio. ZeroGPU images ship Python 3.10 + CUDA 12.1, so a default torch # wheel is fine here (no Blackwell sm_120 requirement). torch>=2.2 # transformers 4.55+ changed Qwen2 RoPE so position_embeddings must be passed # in from the top-level model; our srt/adapter.py drives the decoder layers # manually and doesn't supply them, which breaks generation. Pin to the # version we train with on the vast.ai box. transformers==4.53.3 safetensors>=0.4 huggingface_hub>=0.24 numpy>=1.24 gradio==4.44.1 # Gradio 4.44 calls TemplateResponse with the legacy positional signature; # Starlette >= 0.40 reordered that and crashes with # `TypeError: unhashable type: 'dict'` in the jinja2 template cache. starlette<0.40 spaces>=0.30 ; sys_platform == "linux"