-
Notifications
You must be signed in to change notification settings - Fork 11
feat/train-embeddings #246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
autointent/_wrappers/embedder.py
Outdated
| similarity_fn_name=self.config.similarity_fn_name, | ||
| trust_remote_code=self.config.trust_remote_code, | ||
| ) | ||
| def train(self, utterances: list[str], labels: list[int], **kwargs) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Наверное надо отдельный модуль делать как BertScorer, возможно надо сначала довнести изменения из #231
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не, мне кажется что эта функциональность пригодится не только внутри какого-то одного модуля, а еще много где, поэтому нет ничего страшного чтобы привязать ее к нашей базовой обертке для эмбедингов
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пока трудно понять, тк он пока не используется нигде
voorhs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
на данный момент все ок! внеси правки, после этого можешь добавить автотест для твоего метода (для вдохновения смотри https://github.com/deeppavlov/AutoIntent/blob/dev/tests/modules/scoring/test_bert.py)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в целом все написал в комментах, надо это исправить
чтобы исправить большинство ошибок тайпинга (они касаются не твоего кода), подтяни dev в свою ветку, в dev произошло много изменений (возможно придется разрешить конфликты)
чтобы найти ошибки линтера в терминале введи make lint
voorhs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
круто что нет ошибок тайпинга и линтера) работаем дальше! отслеживание переобучения и early stopping все еще жду
voorhs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ура ура ура
fp16 только отключи по дефолту
|
Я сейчас добавил кучу тестов, надо отдебажить их и/или код эмбедера |
fix #256