Skip to content

Fix DataParallel dtype access in smolvlm#42446

Open
Abdennacer-Badaoui wants to merge 1 commit intohuggingface:mainfrom
Abdennacer-Badaoui:fix/smolvlm_tests
Open

Fix DataParallel dtype access in smolvlm#42446
Abdennacer-Badaoui wants to merge 1 commit intohuggingface:mainfrom
Abdennacer-Badaoui:fix/smolvlm_tests

Conversation

@Abdennacer-Badaoui
Copy link
Copy Markdown
Member

Handle StopIteration when accessing self.dtype in DataParallel mode by
falling back to input tensor dtype or torch.float32.

Fixes test_multi_gpu_data_parallel_forward.

@github-actions
Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: smolvlm

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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.

2 participants