Spaces:
Paused
Paused
Commit History
-
Pin PyTorch <2.11.0 to fix CUDA driver incompatibility on HF Spaces
gary-boon +1: Claude Opus 4.6 (1M context)PyTorch 2.11.0 (released 2026-03-23) requires a newer CUDA driver than HuggingFace Spaces GPU infrastructure provides (driver 12090). This caused CUDA init to fail, forcing Devstral to load on CPU and be filtered from the model selector. PyTorch 2.10.x (the version deployed successfully on 2026-02-25) works with the current HF Spaces driver. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>8b9ad4b
-
Integrate mistral-common for correct Devstral tokenization
gary-boon +1: Claude Opus 4.5Root cause: Devstral's Tekken tokenizer is incompatible with HuggingFace's standard tokenization. When [INST]/[/INST] are formatted as text and tokenized with HF, the model receives corrupted tokens -> garbage output. Solution: - Add mistral-common>=1.5.0 dependency - Create MistralTokenizerWrapper using MistralTokenizer.from_hf_hub() - Use encode_chat_completion() for correct Tekken token encoding - Relax numpy/pydantic version constraints for compatibility The mistral-common library produces correct token sequences by encoding chat messages directly to token IDs, bypassing text-based formatting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>ed06dcb -
Remove mistral_common to fix dependency conflict
gary-boon +1: Claude Opus 4.5- Remove mistral_common from requirements (conflicts with numpy/pydantic) - Simplify prompt_formatter to use manual Mistral format - Format: [INST] {system}\n\n{user} [/INST] (no <s>, tokenizer adds BOS) - Keep recommended_temperature=0.15 for Devstral 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>3d9d9ee -
Use mistral_common for proper Devstral prompt formatting
gary-boon +1: Claude Opus 4.5- Add mistral_common>=1.5.0 dependency - Update prompt_formatter to use MistralTokenizer for Devstral - Add recommended_temperature to model configs (0.15 for Devstral) - Remove hardcoded <s> from manual format (tokenizer adds BOS) The mistral_common library provides the correct chat template encoding that Devstral expects, which should fix the garbage token output. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>3e80769
-
fix: Update torch to 2.3+ for transformers compatibility
gary-boon +1: Claude Opus 4.5transformers 4.44+ requires torch.utils._pytree.register_pytree_node which was added in torch 2.3.0. Old torch 2.1.0 only had the underscore-prefixed _register_pytree_node. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1b73605 -
fix: Update transformers for Devstral support
gary-boon +1: Claude Opus 4.5Devstral-Small requires transformers>=4.44 for proper Mistral architecture support. Old version (4.36.2) caused shape mismatch errors during model loading. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>b788304
-
Fix zarr/numcodecs version compatibility
gary-boon +1: ClaudePin zarr to 2.14.2 and numcodecs to 0.11.0 to resolve import error 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>9e9dc34 -
Add zarr to requirements.txt for storage module
gary-boon +1: Claude🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>f54e3f9
-
Fix pyarrow compatibility issue with datasets library
gary-boon +1: Claude- Update datasets to 2.16.1 and pyarrow to 14.0.2 for compatibility - Add graceful error handling when dataset can't load - Return 503 error instead of crashing when dataset unavailable - Maintain research integrity - no mock data fallback 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>1680fda
-
Add SWE-bench integration and improve backend routing
gary-boon +1: Claude- Integrate SWE-bench dataset with 300 real-world GitHub issues - Add comprehensive SWE-bench evaluator UI with task selection and solution generation - Implement dynamic backend routing for CPU/GPU based on user settings - Move protected pages to (protected) folder structure for authentication - Add syntax highlighting for code displays using react-syntax-highlighter - Create confidence visualization components for transparency metrics - Fix navigation duplication issues and improve layout consistency - Add backend indicator showing which backend (Local/CPU/GPU) is being used - Implement special routing for SWE-bench to always use local backend - Add debugging and logging for backend selection - Improve error handling and user feedback 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>4444ae2
-
Fix: Downgrade transformers to 4.36.2 for PyTorch 2.1.0 compatibility
gary-boon- transformers 4.53.1 requires PyTorch 2.6+ (weights_only parameter) - Using transformers 4.36.2 which is compatible with PyTorch 2.1.0 - Still fixes the original ReDoS vulnerabilities (CVE-2025-3933, CVE-2025-5197) - Resolves HuggingFace Space startup error97df962
-
Rollback: Revert FastAPI to 0.104.1
gary-boon- FastAPI 0.109.1 caused HuggingFace Space to error (503) - WebSocket connections failing - Rolling back to stable version while investigating compatibility2b0064a -
Security Phase 1: Update FastAPI from 0.104.1 to 0.109.1
gary-boon- Fixes SNYK-PYTHON-FASTAPI-6228055 (ReDoS vulnerability) - Also updates starlette to 0.35.1 (fixes resource allocation issue) - anyio already at safe version 4.10.0 (fixes race condition) - Tested locally: All endpoints working correctly - This fixes 3 HIGH severity vulnerabilities52916a2 -
Security: Update transformers from 4.35.0 to 4.53.1
gary-boon- Fixes CVE-2025-3933 (ReDoS vulnerability) - Fixes CVE-2025-5197 (ReDoS vulnerability) - Fixes SNYK-PYTHON-TRANSFORMERS-10247398 - Fixes SNYK-PYTHON-TRANSFORMERS-11501199 - All security vulnerabilities in transformers library resolved - Tested locally and working correctlya4a41eb
-
Deploy Visualisable.ai backend with API protection
gary-boonc6c8587