Skip to content

Conversation

@ajjimeno
Copy link
Contributor

Using the from_pretrained function to move the model to device, trying to avoid the meta device bug.

 self.model = TableTransformerForObjectDetection.from_pretrained(
                model, device_map=self.device
            )

@ajjimeno ajjimeno requested review from badGarnet and qued and removed request for badGarnet May 15, 2025 15:28
@ajjimeno ajjimeno requested a review from badGarnet May 15, 2025 21:02
Copy link
Contributor

@qued qued left a comment

Choose a reason for hiding this comment

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

LGTM!

@ajjimeno ajjimeno merged commit dac7793 into main May 15, 2025
11 checks passed
@ajjimeno ajjimeno deleted the feat/table-transformer-device-map branch May 15, 2025 21:31
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