Skip to content

Kernelize refactor#46520

Open
michaelbenayoun wants to merge 3 commits into
huggingface:mainfrom
michaelbenayoun:kernelize_refactor
Open

Kernelize refactor#46520
michaelbenayoun wants to merge 3 commits into
huggingface:mainfrom
michaelbenayoun:kernelize_refactor

Conversation

@michaelbenayoun

Copy link
Copy Markdown
Member

What does this PR do?

Small refactor of things related to kernels inside a kernelize function.

@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.

@ArthurZucker ArthurZucker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ty

Comment thread src/transformers/modeling_utils.py Outdated
Comment on lines 4636 to 4668
kernelize(self, mode=mode)
self._use_kernels = True

finally:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

we can put everryyyy think inside !

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

@github-actions

Copy link
Copy Markdown
Contributor

CI Dashboard: View test results in Grafana

@github-actions

Copy link
Copy Markdown
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=46520&sha=ebd98f

@stevhliu

Copy link
Copy Markdown
Member

it would also be nice to update the docs here where kernelize is used to toggle training/inference modes :)

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