Skip to content
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

Нет параметра device у CrossEncoderWithLogreg #79

Closed
truff4ut opened this issue Dec 12, 2024 · 1 comment
Closed

Нет параметра device у CrossEncoderWithLogreg #79

truff4ut opened this issue Dec 12, 2024 · 1 comment

Comments

@truff4ut
Copy link
Collaborator

truff4ut commented Dec 12, 2024

CrossEncoderWithLogreg всегда работает на "cpu" после загрузки

self.model = CrossEncoderWithLogreg.load(crossencoder_dir)

@voorhs
Copy link
Collaborator

voorhs commented Jan 16, 2025

решили эту проблему в #93, теперь у кросс энкодера есть свой конфиг (см. https://github.com/deeppavlov/AutoIntent/blob/dev/autointent/configs/_optimization_cli.py#L127), а у конструкторов модулей есть отдельные параметры для кросс энкодера (см. https://github.com/deeppavlov/AutoIntent/blob/dev/autointent/modules/scoring/_dnnc/dnnc.py#L83)

@voorhs voorhs closed this as completed Jan 16, 2025
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

No branches or pull requests

2 participants