Skip to content

Conversation

@SBrandeis
Copy link
Contributor

@SBrandeis SBrandeis commented Jan 16, 2025

TL;DR

  • Add task metadata to the HF id -> Provider id mappings, to forbid the usage of a chat model with the textToImage inference function for example
  • Expose the supported models mappings in index.ts

@SBrandeis SBrandeis changed the title [Inference] [Providers] Enforce task mapping [Inference] [Providers] Enforce task in mapping Jan 16, 2025
@SBrandeis SBrandeis marked this pull request as ready for review January 16, 2025 16:51
@SBrandeis SBrandeis changed the title [Inference] [Providers] Enforce task in mapping [Inference] [Providers] Enforce task in mapping + expose them Jan 16, 2025
@Pierrci
Copy link
Member

Pierrci commented Jan 16, 2025

lgtm

@SBrandeis SBrandeis merged commit f1fe42c into main Jan 17, 2025
5 checks passed
@SBrandeis SBrandeis deleted the inference/providers-task-mapping branch January 17, 2025 14:18
Comment on lines +3 to +6
export { FAL_AI_SUPPORTED_MODEL_IDS } from "./providers/fal-ai";
export { REPLICATE_SUPPORTED_MODEL_IDS } from "./providers/replicate";
export { SAMBANOVA_SUPPORTED_MODEL_IDS } from "./providers/sambanova";
export { TOGETHER_SUPPORTED_MODEL_IDS } from "./providers/together";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(for moon's consumption, i presume?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

aykutkardas pushed a commit to gokayfem/huggingface.js that referenced this pull request Jan 20, 2025
…gface#1109)

- Add task metadata to the HF id -> Provider id mappings, to forbid the
usage of a chat model with the `textToImage` inference function for
example
- Expose the supported models mappings in `index.ts`
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.

4 participants