phi-1_5 Training memory usage question #658
-
Just wondering if others are seeing the same memory usage when using the phi finetuning example yml? I would usually expect 4-5x times the number of parameters for fine tuning, however I am hitting memory issues on A4000s even when I try to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've been looking into memory usage when finetuning Phi1.5 QLoRA. Memory usage scale super-linearly with sequence length and batch size. I can finetune it with sequence length 1500 and micro-batchsize of 1 and I hit around 12.6G vram usage on an RTX 4090. A batchsize of 2 uses 22.6GB. |
Beta Was this translation helpful? Give feedback.
I've been looking into memory usage when finetuning Phi1.5 QLoRA. Memory usage scale super-linearly with sequence length and batch size. I can finetune it with sequence length 1500 and micro-batchsize of 1 and I hit around 12.6G vram usage on an RTX 4090. A batchsize of 2 uses 22.6GB.