Spaces:
Runtime error
Runtime error
submission-fix
#1039
by alozowski HF Staff - opened
No description provided.
Dockerfile
- Updated backend base image to
ghcr.io/astral-sh/uv:python3.12-bookworm-slim - Replaced
poetrywithuvfor dependency installation usinguv sync - Adjusted the startup command to use
uv runwithuvicorn
backend/app/services/models.py
- Refactored model validation logic, added revision handling for models
- Optimized check for existing submissions by validating model and revision together
- Extracted architectures field from model configuration and formatted it as a string
- Updated model size validation to include revision-specific checks
backend/app/utils/model_validation.py
- Improved model size calculation– integrated safetensors metadata parsing for accurate size validation
- Added revision support for fetching metadata.
- Enhanced error handling for metadata retrieval and model validation
alozowski changed pull request status to open
alozowski changed pull request status to merged