Commit b5f104c
authored
feat(gpu_prover): implement low VRAM mode (#186)
## What ❔
This PR implements low VRAM mode.
## Why ❔
Low VRAM mode will enable to run the prover on GPUs with VRAM size 24GB
instead if 32GB at the price of a performance penalty.
Depending on the workload an the GPU used the performance penalty can be
in the ballpark of 2-3x.
The low VRAM mode can be enabled by setting the environment variable
`ZKSYNC_AIRBENDER_LOW_VRAM_MODE` to `1` or `true` .
## Is this a breaking change?
- [ ] Yes
- [x] No
## Checklist
- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted.1 parent b1af1cf commit b5f104c
1 file changed
+11
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 55 | | |
69 | 56 | | |
70 | 57 | | |
| |||
73 | 60 | | |
74 | 61 | | |
75 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
76 | 70 | | |
77 | 71 | | |
78 | 72 | | |
| |||
251 | 245 | | |
252 | 246 | | |
253 | 247 | | |
254 | | - | |
255 | 248 | | |
256 | 249 | | |
257 | 250 | | |
| |||
268 | 261 | | |
269 | 262 | | |
270 | 263 | | |
271 | | - | |
272 | | - | |
| 264 | + | |
| 265 | + | |
273 | 266 | | |
274 | 267 | | |
275 | 268 | | |
| |||
0 commit comments