Spaces:
Paused
Paused
Commit History
-
Fix gemma4 runtime error: switch to Transformers backend + Darwin-4B-David
Root cause: requirements.txt pinned transformers>=4.45.0 from PyPI, which has no gemma4 architecture. vLLM additionally lacks a Gemma4 model registration, so even a newer transformers would not have fixed the vLLM codepath. Result: all 3 engine-init tiers crashed with Value error, The checkpoint you are trying to load has model type gemma4 but Transformers does not recognize this architecture. Changes: - requirements.txt: drop vllm / aither-kvcache / optimum-quanto, install transformers @ git+https://github.com/huggingface/transformers.git (gemma4 is only present in the dev tree, unreleased). - app.py: remove vLLM LLMEngine / SamplingParams / TokensPrompt / TriAttention path. Load Gemma4ForConditionalGeneration directly with dtype=bfloat16, device_map=auto. Stream via TextIteratorStreamer in a background thread. Adapt MTILogitsProcessor to the Transformers LogitsProcessor API (batched entropy mask). Switch MODEL_ID to FINAL-Bench/Darwin-4B-David and point the tokeni…c8a5e69
-
Update Dockerfile
Verified signature3d93c37 -
Update Dockerfile
Verified signature3de5517 -
Update Dockerfile
Verified signature7255ef6 -
Create Dockerfile
Verified signature616049d