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

tokenizer for triton inference server #35

Open
geraldstanje opened this issue Jun 1, 2024 · 0 comments
Open

tokenizer for triton inference server #35

geraldstanje opened this issue Jun 1, 2024 · 0 comments

Comments

@geraldstanje
Copy link

geraldstanje commented Jun 1, 2024

hi,

Can this be used with triton inference server for huggingface setfit (https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2)?

here is what i currently do with python:

from transformers import AutoTokenizer

# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/all-MiniLM-L6-v2')

# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')

Thanks,
Gerald

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