Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,6 +20,8 @@ It has two goals :
|
|
| 20 |
This is achieved by making Spaces efficiently hold and release GPUs as needed
|
| 21 |
(as opposed to a classical GPU Space that holds exactly one GPU at any point in time)
|
| 22 |
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# Compatibility
|
| 25 |
|
|
@@ -29,6 +31,11 @@ That said, ZeroGPU Spaces are not as broadly compatible as classical GPU Spaces
|
|
| 29 |
|
| 30 |
Also, for now, ZeroGPU Spaces only works with the **Gradio SDK**
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
# Usage
|
| 33 |
|
| 34 |
In order to make your Space work with ZeroGPU you need to **decorate** the Python functions that actually require a GPU with `@spaces.GPU`<br>
|
|
@@ -56,6 +63,8 @@ gr.Interface(
|
|
| 56 |
1. We first `import spaces` (importing it first might prevent some issues but is not mandatory)
|
| 57 |
2. Then we decorate the `generate` function by adding a `@spaces.GPU` line before its definition
|
| 58 |
|
|
|
|
|
|
|
| 59 |
# Early access
|
| 60 |
|
| 61 |
Feel free to join this organization if you want to try ZeroGPU as a Space author. ✋ We should accept you shortly after checking your HF profile
|
|
|
|
| 20 |
This is achieved by making Spaces efficiently hold and release GPUs as needed
|
| 21 |
(as opposed to a classical GPU Space that holds exactly one GPU at any point in time)
|
| 22 |
|
| 23 |
+
ZeroGPU uses _Nvidia A10G_ GPU devices under the hood
|
| 24 |
+
|
| 25 |
|
| 26 |
# Compatibility
|
| 27 |
|
|
|
|
| 31 |
|
| 32 |
Also, for now, ZeroGPU Spaces only works with the **Gradio SDK**
|
| 33 |
|
| 34 |
+
Supported versions:
|
| 35 |
+
- Gradio: 4+
|
| 36 |
+
- PyTorch: [`2.0.0`, `2.0.1`]
|
| 37 |
+
- Pyton: `3.10.11`
|
| 38 |
+
|
| 39 |
# Usage
|
| 40 |
|
| 41 |
In order to make your Space work with ZeroGPU you need to **decorate** the Python functions that actually require a GPU with `@spaces.GPU`<br>
|
|
|
|
| 63 |
1. We first `import spaces` (importing it first might prevent some issues but is not mandatory)
|
| 64 |
2. Then we decorate the `generate` function by adding a `@spaces.GPU` line before its definition
|
| 65 |
|
| 66 |
+
Note that `@spaces.GPU` is effect-free and can be safely used on non-ZeroGPU environments
|
| 67 |
+
|
| 68 |
# Early access
|
| 69 |
|
| 70 |
Feel free to join this organization if you want to try ZeroGPU as a Space author. ✋ We should accept you shortly after checking your HF profile
|