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

Generate feature-extraction specs from TEI #654

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented May 3, 2024

Goes hand-in-hand with huggingface/huggingface_hub#2270.

Any opinion on generating specs for feature-extraction based on TEI auto-generated specs?

For now I duplicated the TGI importer script and adapted it to TEI. Specs are slightly different:

  • no parameters open field
  • added truncate / normalize at the root of the payload
  • we lose some docstring but that can be improved in TEI repo directly
  • a badly named export type FeatureExtractionInputInput = string[] | string; since in TEI input can be either string or array of strings.

@julien-c
Copy link
Member

julien-c commented May 3, 2024

what's the % of feature-extraction models on the Hub that are served with TEI? (and it's transformers only, right?)

@Wauplin
Copy link
Contributor Author

Wauplin commented May 3, 2024

I'd say 0% for serverless Inference API. But for dedicated Inference Endpoints / local TEI we don't have a good client for now.

@Wauplin Wauplin marked this pull request as draft May 3, 2024 14:27
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

Successfully merging this pull request may close these issues.

None yet

2 participants