Using trained model with Skorch #1066
-
Community, is there a way to configure skorch wrapper for PyTorch trained model (no need to use fit method) to add only compatibility with sklearn ecosystem? |
Beta Was this translation helpful? Give feedback.
Answered by
BenjaminBossan
Sep 25, 2024
Replies: 1 comment 1 reply
-
Yes, that's absolutely possible. For instance, check this notebook. It defines a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
btvd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that's absolutely possible. For instance, check this notebook. It defines a
BertModule
that wraps a Hugging Face transformers model. The wrapped model can be used with skorch as usual, whether it be for fine-tuning or just for inference.