Skip to content

Conversation

@jbilcke-hf
Copy link
Contributor

@jbilcke-hf jbilcke-hf commented Mar 18, 2025

This is a fix for #335

In order for the content of /finetrainers/trainer/sft_trainer/ to be copied during pip install, I believe it is necessary to put a __init__.py inside the directory

Copy link
Contributor

@a-r-r-o-w a-r-r-o-w left a comment

Choose a reason for hiding this comment

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

Thanks @jbilcke-hf! Was able to reproduce and didn't know this happens 🤯

@a-r-r-o-w a-r-r-o-w merged commit 54c29c6 into huggingface:main Mar 18, 2025
1 check passed
@jbilcke-hf
Copy link
Contributor Author

@a-r-r-o-w me neither! Python is full of surprises 😄

@jbilcke-hf jbilcke-hf deleted the fix_missing_sft_trainer_files branch March 18, 2025 01:24
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