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

Can't pass in dtype via CLI #98

Closed
sweiss-google opened this issue Oct 31, 2024 · 2 comments · Fixed by #99
Closed

Can't pass in dtype via CLI #98

sweiss-google opened this issue Oct 31, 2024 · 2 comments · Fixed by #99
Assignees

Comments

@sweiss-google
Copy link

Hi, I'm trying to pass in the pipeline_dtype on the command line:

nemo llm pretrain --factory=llama3_8b trainer.devices=2 trainer.strategy.pipeline_model_parallel_size=2 trainer.strategy.pipeline_dtype=torch.bfloat16

It doesn't work with any of the following: b16, bf16, bfloat16, torch.bfloat16

How do I pass this in?

@sweiss-google sweiss-google changed the title No matching type in union Can't pass in dtype via CLI Oct 31, 2024
@hemildesai
Copy link
Collaborator

@marcromeyn Can you take a look at this? Thanks

@marcromeyn
Copy link
Collaborator

marcromeyn commented Nov 1, 2024

Thanks for reporting this! I put in a small fix: #99. With that we you can pass in: torch.bfloat16 etc.

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 a pull request may close this issue.

3 participants