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

Enable Llama 3.1 405B in FP8 (#124) #1745

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaygala223
Copy link
Contributor

@jaygala223 jaygala223 commented Feb 5, 2025

  • add changes for fix

  • add keep_moduleon_host, modify quant json

  • remove buffer check

  • add llama 405 checks

  • remove hardcoded path, reuse module on host check

  • fix: undefined variable

  • remove unused import


What does this PR do?

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

* add changes for fix

* add keepmoduleonhosst, modfy quant json

* remove buffer check

* add llama 405 checks

* remove hardcoded path, reuse module on host check

* fix: undefined variable

* remove unused import

---------

Co-authored-by: Your Name <[email protected]>
@jaygala223 jaygala223 requested a review from regisss as a code owner February 5, 2025 15:35
@libinta libinta added run-test Run CI for PRs from external contributors and removed run-test Run CI for PRs from external contributors labels Feb 5, 2025
@jiminha jiminha added the run-test Run CI for PRs from external contributors label Feb 7, 2025
@@ -429,8 +429,13 @@ def setup_distributed_model(args, model_dtype, model_kwargs, logger):

logger.info("DeepSpeed is enabled.")
deepspeed.init_distributed(dist_backend="hccl")
config = AutoConfig.from_pretrained(args.model_name_or_path, torch_dtype=model_dtype, **model_kwargs)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We cannot remove torch_dtype=model_dtype here and then use config.torch_dtype afterwards. Because we won't be able to specify anymore if we want to run the model in fp32 or in bf16.
Why do you need to do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-test Run CI for PRs from external contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants