You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| use_uv | boolean | false | Use UV for faster Python package installation |
39
+
40
+
### UV Package Manager
41
+
42
+
UV is a fast Python package installer written in Rust that can significantly speed up deployment times. When enabled, UV will be used instead of pip for installing Python dependencies.
43
+
44
+
<Info>
45
+
UV typically installs packages 10-100x faster than pip, especially beneficial for:
46
+
47
+
- Large dependency trees
48
+
- Multiple packages
49
+
- Clean builds without cache
50
+
51
+
</Info>
52
+
53
+
**Example with UV enabled:**
54
+
55
+
```toml
56
+
[cerebrium.build]
57
+
use_uv = true
58
+
```
59
+
60
+
### Monitoring UV Usage
61
+
62
+
Check your build logs for these indicators:
63
+
64
+
-**UV_PIP_INSTALL_STARTED** - UV is successfully being used
65
+
-**PIP_INSTALL_STARTED** - Standard pip installation (when `use_uv=false`)
66
+
67
+
<Warning>
68
+
While UV is compatible with most packages, some edge cases may cause build
69
+
failures, such as legacy packages with non-standard metadata.
70
+
</Warning>
71
+
34
72
## Runtime Configuration
35
73
36
74
The `[cerebrium.runtime.custom]` section configures custom web servers and runtime behavior.
| use_uv | boolean | false | Use UV for faster Python package installation |
154
-
155
-
### UV Package Manager
156
-
157
-
UV is a fast Python package installer written in Rust that can significantly speed up deployment times. When enabled, UV will be used instead of pip for installing Python dependencies.
158
-
159
-
<Info>
160
-
UV typically installs packages 10-100x faster than pip, especially beneficial for:
161
-
162
-
- Large dependency trees
163
-
- Multiple packages
164
-
- Clean builds without cache
165
-
166
-
</Info>
167
-
168
-
**Example with UV enabled:**
169
-
170
-
```toml
171
-
[cerebrium.build]
172
-
use_uv = true
173
-
```
174
-
175
-
### Monitoring UV Usage
176
-
177
-
Check your build logs for these indicators:
178
-
179
-
-**UV_PIP_INSTALL_STARTED** - UV is successfully being used
180
-
-**PIP_INSTALL_STARTED** - Standard pip installation (when `use_uv=false`)
181
-
182
-
<Warning>
183
-
While UV is compatible with most packages, some edge cases may cause build
184
-
failures, such as legacy packages with non-standard metadata.
0 commit comments