A newer version of the Gradio SDK is available:
6.0.0
π How to Enable GPU on Your Hugging Face Space
Your Space is currently running in MOCK MODE because GPU is not enabled.
β οΈ Current Issue
User provided device_type of 'cuda', but CUDA is not available
This means your Space is running on CPU, but FIBO requires GPU.
β Solution: Enable GPU
Step 1: Go to Space Settings
- Open your Space: https://huggingface.co/spaces/ThomasChauv/FIBO-virtual-photo-studio
- Click βοΈ Settings (top right)
Step 2: Change Hardware
- Scroll to Hardware section
- Current: CPU basic (free)
- Click Change hardware
Step 3: Select GPU
Choose one of:
| Hardware | VRAM | Speed | Cost |
|---|---|---|---|
| GPU basic (T4) | 16GB | Good | Free for Community |
| GPU small (A10G) | 24GB | Better | Paid |
| GPU medium (A100) | 40GB | Best | Paid |
Recommended: Start with GPU basic (T4) - it's free and sufficient for FIBO!
Step 4: Save & Restart
- Click Save
- Space will restart (~2 minutes)
- Watch logs for:
β FIBO on GPU: Tesla T4
π What to Expect
With CPU (Current - Not Working):
β οΈ User provided device_type of 'cuda', but CUDA is not available
β Failed to load FIBO
β
Generation complete! (Mock mode - placeholder images)
With GPU (After Fix - Working):
π Loading FIBO pipelines...
π¦ Loading FIBO-VLM (prompt-to-JSON)...
β
VLM loaded
π¦ Loading FIBO-8B (image generation)...
β
FIBO on GPU: Tesla T4
π FIBO Ready!
[Generate button clicked]
π Prompt: studio product shot...
π Generating structured JSON prompt...
β
JSON prompt: 1247 chars
π¨ Generating 4 image(s) (28 steps, 1024x1024)...
β
Done in 15.3s
[Real images displayed!]
π― Quick Checklist
Before GPU:
- Space shows "Mock mode" message
- Placeholder beige images
- Logs show "CUDA is not available"
After GPU:
- No "Mock mode" message
- Real generated images
- Logs show "FIBO on GPU: Tesla T4"
- Generation takes 10-20 seconds
π‘ Tips
- First generation: Takes ~3-5 minutes (model download)
- Subsequent: Takes ~10-20 seconds (fast!)
- Free tier: T4 GPU is free with Hugging Face Community account
- Persistent storage: Enable for faster restarts (optional)
π Still Having Issues?
If you enabled GPU but still see mock mode:
- Check logs for specific error (ujson, boltons, etc.)
- Wait 3-5 minutes for models to download on first run
- Restart Space if it's stuck
- Check disk space (~20GB needed for models)
π Resources
TL;DR: Go to Settings β Hardware β Select "GPU basic (T4)" β Save β Wait 2 min β FIBO will work! π