Skip to content

Conversation

@kunalagrawal2
Copy link

@kunalagrawal2 kunalagrawal2 commented Apr 2, 2025

This PR adds support for Hugging Face models in the Ember framework, enabling access to a wide range of models (including open source LLMs) through both the Hugging Face Inference API and local model loading.

Key Features

  • HuggingFace Provider Implementation: Full provider implementation with proper error handling, retries, and parameter validation

  • Dual Inference Options: Support for both remote inference via the HF Inference API and local model inference

  • Added example using Mistral 7B Instruct v0.2

  • (Testing) Added unit tests for the HuggingFace provider implementation

Notes

  • Requires HUGGINGFACE_API_KEY environment variable for remote inference

  • Model from Hugging Face needs to have HF Inference

  • huggingface_discovery is currently hardcoded to a couple of models. TODO: We need to make a design decision whether it makes sense to implement discovery either per author or not at all due to the sheer size of models available.

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.

1 participant