Spaces:
Sleeping
Sleeping
Commit History
-
Security fix: Don't use Space owner's HF_TOKEN for public requests
George Yang +1: Claude Sonnet 4.5**Critical Security Issue:** The previous implementation auto-detected HF_TOKEN environment variable, which meant ALL public users would use the Space owner's token for model fetching. This is a serious security vulnerability. **Problem:** - Space owner's token would be used by all public users - Users could access gated models without proper authorization - Space owner's API quota would be consumed by strangers - Potential for token abuse **Solution:** - Remove automatic HF_TOKEN environment variable detection - Only use explicitly provided token from user input - Users must provide their own token for gated models - Clearer error messages guiding users to get their own token **Behavior:** - Public models: Work without any token - Gated models: Require user's personal token - Space's HF_TOKEN: Never used for model fetching This ensures proper security and accountability - each user uses their own token for accessing gated models. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthrop…648ebda -
Fix: Improve HF Spaces integration with automatic auth
George Yang +1: Claude Sonnet 4.5**Problem:** - HuggingFace Spaces environment couldn't access gated models - No automatic token detection when running on HF Spaces - Insufficient logging made debugging difficult **Solution:** - Auto-detect HF_TOKEN environment variable (available in HF Spaces) - Add comprehensive logging for debugging API calls - Improve User-Agent header with GitHub repo URL - Better error messages for authentication failures **Changes:** - Check HF_TOKEN env var if no token provided - Add INFO/WARNING/ERROR logging throughout client - Update User-Agent to include GitHub URL - Log request URLs and response statuses This allows the app to work seamlessly on HF Spaces where HF_TOKEN is automatically provided by the platform. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>c654876 -
Feat: Sync all features from main repository
George Yang +1: Claude Sonnet 4.5Major feature updates and bug fixes: **New Features:** - Add HuggingFace Hub integration for fetching model metadata - Add SGLang inference engine support - Share preset models across all tabs (training, inference, multi-node) - Add batch size optimizer API endpoint - Add inference, multi-node, and exporter features to web UI - Add framework config export (Accelerate, Lightning, Axolotl) **Bug Fixes:** - Fix critical calculation bugs and improve defensive programming - Fix black formatting in formulas.py - Handle null values in inference results display - Restore two-column layout for tabbed interface - Resolve CI failures in web/app.py **Improvements:** - Update dates to 2026 across codebase - Improve error handling and validation - Update web UI styling and accessibility Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>e9c64c8 -
Fix: Apply black formatting to formulas.py
George Yang +1: Claude Sonnet 4.5Fix CI failure by applying black code formatting to src/gpu_mem_calculator/core/formulas.py. The black formatter reformatted a multiplication expression from multiple lines to a single line for consistency with the project's code style (100 character line length). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>9085c78
-
SEO: Optimize Space README for discoverability and traffic
George Yang- Add comprehensive tags (llm, gpu, deep-learning, pytorch, etc.) - Set pinned: true for better visibility - Add detailed feature descriptions and use cases - Include model comparison table - Add multiple CTAs to GitHub repo - Add technical details and authoritative references - Improve formatting with emojis and badges - Add 'Made with ❤️ by the AI community' footerdd750c0 -
Fix: Add missing pyproject.toml for pip install
George Yang60d4d37 -
Fix: Add Hugging Face Spaces user requirements
George Yang- Add user creation with UID 1000 (required by HF Spaces) - Set proper HOME and PATH environment variables - Copy files with correct ownership (--chown=user) - Run application as non-root user Follows Hugging Face Docker Spaces best practices: https://huggingface.co/docs/hub/spaces-sdks-docker24f75b0 -
Initial deployment: Add GPU Memory Calculator with Docker
George Yang- Add FastAPI web application - Add all calculator modules (training, inference, multi-node) - Configure Docker for Python 3.12 - Add requirements.txt with web dependencies - Add Space README with metadata36ed1cd -
initial commit
Verified signature8e7e10d