[go: nahoru, domu]

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

Support max_seq_length parameter with model pooling #746

Closed
davidmezzetti opened this issue Jul 4, 2024 · 0 comments
Closed

Support max_seq_length parameter with model pooling #746

davidmezzetti opened this issue Jul 4, 2024 · 0 comments
Assignees
Milestone

Comments

@davidmezzetti
Copy link
Member

txtai has an internal mechanism to run mean and cls pooling. This adds support for sentence-transformers models without having to install the library. This component was added to limit the number of package dependencies.

One difference noted between sentence-transformers and txtai is that txtai doesn't read the max_seq_length parameter. A change should be added to optionally read this parameter. The default behavior will continue to use the tokenizer/model max length unless this parameter is specified.

@davidmezzetti davidmezzetti added this to the v7.3.0 milestone Jul 4, 2024
@davidmezzetti davidmezzetti self-assigned this Jul 4, 2024
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

1 participant