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 truncating when the input size exceeds model limit #36

Open
pengjiang80 opened this issue Feb 12, 2025 · 0 comments
Open

Support truncating when the input size exceeds model limit #36

pengjiang80 opened this issue Feb 12, 2025 · 0 comments
Assignees

Comments

@pengjiang80
Copy link

Some Application frameworks can't handle special characters very well and may not follow the chunk size strictly. In some cases, the size of embedding or reranking may exceed the setting and cause error based on model configuration. As it's a bug at the application level and may or may not be fixed, we can't guarantee that using a model with a bigger context size and setting a bigger ubatch size can 100% resolve the problem. Some users are willing to bear some accuracy loss and embed the document without error. We can add a parameter to handle this as both ollama and some other platforms support this. It's a setting not recommended, but users can turn it on at their own risk.

Refer to gpustack/gpustack#950

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