Lightning-AI / Lightning-AI/lit-llama
Can not finetune, OOM on v100 with batchsize 6
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 517
- PR merge metrics
- No merged PRs in 30d
Description
I changed batch size to this:
# batch_size = 128
batch_size = 6
micro_batch_size = 2
gradient_accumulation_steps = batch_size // micro_batch_size
max_iters = 50000 * 3 // micro_batch_size
still get OOM, on v100 32GB , why?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing fine-tuning with the shown batch_size, micro_batch_size, and gradient_accumulation_steps on a 32GB V100, while capturing the full OOM traceback and relevant model configuration. Determine which setting or operation exceeds memory, then verify that the issue is resolved with a tested configuration or a documented explanation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100