Skip to content

[Bug fix] Add rope_theta for llama config - #4480

Merged
mrwyattii merged 9 commits into
deepspeedai:masterfrom
cupertank:fix-rope-theta
Oct 19, 2023
Merged

mrwyattii merged 9 commits into
deepspeedai:masterfrom
cupertank:fix-rope-theta

Conversation

@cupertank

Copy link
Copy Markdown
Contributor

Fixed bug with CodeLlama. Bug description is here #4442. Now DeepSpeed uses rope_theta from transformers.

@cupertank

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="JetBrains"

@cupertank

Copy link
Copy Markdown
Contributor Author

@mrwyattii Take a look at this, please.

@mrwyattii mrwyattii self-assigned this Oct 9, 2023
@cupertank

Copy link
Copy Markdown
Contributor Author

@mrwyattii, Please, run CI. Do I need to do anything else?

@mrwyattii

Copy link
Copy Markdown
Contributor

Thanks @cupertank LGTM

@lekurile lekurile left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

@mrwyattii

Copy link
Copy Markdown
Contributor

@cupertank it looks like several of the inference related unit tests are failing. I can help debug next week.

@cupertank

Copy link
Copy Markdown
Contributor Author

@mrwyattii I think I found a bug, run CI, please.

@cupertank

Copy link
Copy Markdown
Contributor Author

@mrwyattii I hope it's last fix, run CI, please

@cupertank

cupertank commented Oct 18, 2023

Copy link
Copy Markdown
Contributor Author

@mrwyattii I see everything is good now, so maybe we merge it?

@mrwyattii
mrwyattii added this pull request to the merge queue Oct 19, 2023
@mrwyattii

Copy link
Copy Markdown
Contributor

@mrwyattii I see everything is good now, so maybe we merge it?

Added to the merge queue. Thank you @cupertank!

Merged via the queue into deepspeedai:master with commit beed962 Oct 19, 2023
@ryusaeba

Copy link
Copy Markdown

Do you plan to have a patch release for this?

baodii pushed a commit to baodii/DeepSpeed that referenced this pull request Nov 7, 2023
* Add rope_theta for llama config

* Add rope_theta to bias_add_transform_0213

* Fix CI problems

* Add rope_theta to linear layer

---------

Co-authored-by: Michael Wyatt <michaelwyatt@microsoft.com>
Co-authored-by: Lev Kurilenko <113481193+lekurile@users.noreply.github.com>
mrwyattii added a commit that referenced this pull request Nov 8, 2023
This PR updates `diffusers_attention` to properly pass the `rope_theta`
arg to the `linear_func` calls. This was added in GH-4480 and needed to
be updated for the diffusers attention module as well.

Co-authored-by: Michael Wyatt <michaelwyatt@microsoft.com>
@cupertank
cupertank deleted the fix-rope-theta branch November 9, 2023 13:20
mauryaavinash95 pushed a commit to mauryaavinash95/DeepSpeed that referenced this pull request Feb 17, 2024
* Add rope_theta for llama config

* Add rope_theta to bias_add_transform_0213

* Fix CI problems

* Add rope_theta to linear layer

---------

Co-authored-by: Michael Wyatt <michaelwyatt@microsoft.com>
Co-authored-by: Lev Kurilenko <113481193+lekurile@users.noreply.github.com>
mauryaavinash95 pushed a commit to mauryaavinash95/DeepSpeed that referenced this pull request Feb 17, 2024
This PR updates `diffusers_attention` to properly pass the `rope_theta`
arg to the `linear_func` calls. This was added in deepspeedaiGH-4480 and needed to
be updated for the diffusers attention module as well.

Co-authored-by: Michael Wyatt <michaelwyatt@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants