Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] porting Medusa #1213

Closed
wants to merge 7 commits into from
Closed

[WIP] porting Medusa #1213

wants to merge 7 commits into from

Conversation

zhyncs
Copy link
Collaborator

@zhyncs zhyncs commented Feb 28, 2024

Motivation

As titled, porting FasterDecoding/Medusa

Modification

finished

1、Medusa weights conversion
2、Medusa weights loading
3、Porting FasterDecoding/Medusa Heads code with LMDeploy components and utilities
4、TP support: Distribute the weights equally based on hidden_size

We've used https://github.com/zhyncs/medusa-whl-centos7/releases/tag/2024.02.27, https://huggingface.co/FasterDecoding/medusa-vicuna-13b-v1.3, https://huggingface.co/lmsys/vicuna-13b-v1.3 to verify the correctness of porting code (fp16 and bf16).

under debugging

1、Porting generate_candidates and evaluate_posterior
2、Integrating with LlamaBatch

todo

1、add docs
2、add tests
3、benchmark

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
  3. If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

@zhyncs zhyncs mentioned this pull request Feb 29, 2024
5 tasks
@zhyncs
Copy link
Collaborator Author

zhyncs commented Mar 1, 2024

After creating a new commit, the updates I made are not showing up in this PR. I believe the changes were submitted correctly. It appears to be a bug on GitHub, so I will close this PR and open a new one.

@zhyncs
Copy link
Collaborator Author

zhyncs commented Mar 1, 2024

refer to #1231 just close this

@zhyncs zhyncs closed this Mar 1, 2024
@zhyncs
Copy link
Collaborator Author

zhyncs commented Mar 1, 2024

https://www.githubstatus.com/

CleanShot 2024-03-01 at 23 29 01@2x

It is indeed a problem with GitHub.

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.

1 participant