Hugging Face, End to End · Chapter 04

A Space is someone else's computer

1:22 · Narrated with a synthetic voice. Captions are available in the player.

Read the transcript

A Space packages an application behind a web page. CPU Basic has2vCPUs and16GB RAM with no hourly compute fee, while creating or duplicating that compute setup currently has account requirements. Use local Gradio when hosted access is unavailable, or choose a Static browser application. Check eligibility, model memory and latency before selecting hardware. Plan paid hardware with its idle and stopping policy. CPU Basic uses a fixed inactivity policy; custom sleep times are available for upgraded hardware. Set hardware and timeout together through the supported API, or configure and verify the timeout immediately after upgrade before the workload. Pause or downgrade when finished. Keep each visitor’s state separate from shared model objects and test two independent browser sessions.

Sources and further reading (1)