Repository navigation
model-maker 0.3.4
model-maker 0.3.4: a memory fix for 12 GB cards. Nothing that is made changes: the same pictures, pixel for pixel, and the same objects by content.
What changes for you:
- With a 12 GB card, building the painter takes 2.7 GiB less of the computer's memory. On a card under
15 GB the view painter's blocks wait in the computer's memory and come onto the card one at a time. PyTorch 2.10,
which model-maker runs since 0.3.3, rounds every tensor it page-locks up to a power of two, so the 6.3 GiB of
blocks held 8.2 GiB. Each block now waits in one page-locked buffer of exactly its size, given back when the
painter is closed. - With a 16 GB card nothing changes: the new path is not taken there (by code and test); its painter keeps the
whole model on the card. - The code that starts and stops programs and reads the computer's memory also has Windows and macOS paths now, to
prepare those systems; nothing changes on Linux. - No new libraries: 0.3.3's environment is used as it is.
- The memory advice stays as it is (32 GB with a 12 GB card, 24 GB or more with a 16 GB card): it was not measured
again with this change.
How we know:
- On the 12 GB card, the paint stage of six objects with 0.3.3's painter and then with the new one, each in its own
process, nothing else beside them, bars written down before the run: the computer's free memory just after the
painter is built 26.54 GiB against 30.05 GiB (bar: at least 1.7 GiB more), its fall while
the painter is built 16.25 GiB against 13.59 GiB (bar: at least 1.7 GiB less); the card's memory
at its peak 10,069 MiB against 10,065 MiB (bar: at most 50 MiB more); paint time
2,878 s against 2,775 s (−3.6 %; bar: within +5 %). - The same output: the painted files of the six are identical (58 of 58; pictures
compared by pixels, as each run signs its own), and
6 of the 12 GB card's fixed reference objects, made again from start to finish, are identical by content to
0.3.3's stored ones (286 files). - Where the CUDA runtime refuses to page-lock a buffer, the painter falls back to 0.3.3's way for that block.
Details: docs/results.md, "0.3.4". Picture (docs/images/0.3.4/): the computer's memory taken during the paint
stage, 0.3.3's painter against the new one.