deepspeedai / deepspeedai/DeepSpeed
Deep Speed Optimizer index out of range during Training
@GuanhuaWang is already working on this.
Since Sep 4, 2024.
- Dominant language
- Python
- Stars
- 43.1k
- Forks
- 5k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 112
Description
Hi I am trying to fine tune my llama model using DeepSpeed, accelerate and SFTTrainer along with QLORA. I have already pretrained my LLama model.
During the pretraining, I used DeepSpeed and Peft as well with no problem.
However now I am loading my base model and the PEFT adapter and try to fine tune my model I get this error:
self.dtype = self.optimizer.param_groups[0]['params'][0].dtype
IndexError: list index out of range.
I loaded the my adaptor into my base model as follows:
adapter_path = "path" # Update with your adapter path
model = PeftModel.from_pretrained(model, adapter_path)
I have 2 A100 GPUs and I am using quantized llama models.
The DeepSpeed configuration is the same between pretrained and fine tune model, and I am not passing any optimizer to the config, they are all default.
I searched in the internet and could not find any related info on this error.
Does anyone what this error is referring to and how to fix it?
Contributor guide
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.
Assessment
This issue has not been assessed yet.