Closed notbadzhu closed 6 months ago
This is strange, since marker should work with about 3GB of VRAM. It may be due to the type of card. What you could try is decreasing the batch sizes for various settings:
LAYOUT_BATCH_SIZE
ORDERER_BATCH_SIZE
NOUGAT_BATCH_SIZE
Reducing these will reduce VRAM usage.
You could also try changing the casts to torch.bfloat16
to torch.float16
. Basically search torch.bfloat16 and replace with torch.float16. I don't know if earlier cards support bfloat16 (maybe they just use float32 if the card doesn't support bfloat16?).