Hi Airflow community, I would like to discuss the next steps for the Hugging Face provider <https://github.com/apache/airflow/tree/main/providers/huggingface> in Airflow and get feedback on the proposed scope of work.
The current issues describe a related set of capabilities: - #77830 <https://github.com/apache/airflow/issues/77830> adds operators for managing Hugging Face Inference Endpoint lifecycle. - #77831 <https://github.com/apache/airflow/issues/77831> adds a deferrable operator for running Hugging Face Jobs. - #77833 <https://github.com/apache/airflow/issues/77833> adds a Common AI connection for Hugging Face Inference Endpoints and depends on the endpoint methods in #77830. - #77834 <https://github.com/apache/airflow/issues/77834> adds examples combining the existing Hugging Face dataset operators and Common AI. - #77835 <https://github.com/apache/airflow/issues/77835> proposes a larger data generation, fine-tuning, evaluation and promote the open source model endpoint workflow on the preceding four issues. - #77905 <https://github.com/apache/airflow/issues/77905> proposes a HuggingFaceBucketOperator to transfer local task files to and from Hugging Face Buckets. In addition, I would like to explore introducing support for loading model weights using Hugging Face Transformers <https://huggingface.co/docs/transformers/index> and/or Diffusers <https://huggingface.co/docs/diffusers/index>rather than endpoints. My initial thought is to keep this fairly scoped, focusing on inference workloads with a single GPU rather than introducing the additional complexity of multi-GPU execution or training orchestration at this stage. The Trainer API <https://huggingface.co/docs/transformers/main/en/main_classes/trainer> and broader training support could be deferred for now. I would love feedback on the following points: - Whether the proposed issue boundaries make sense, especially the relationship between Buckets and the Jobs workflow. - Whether model inference support using Transformers <https://huggingface.co/docs/transformers/main/en/pipeline_tutorial#pipeline> and/or Diffusers <https://huggingface.co/docs/diffusers/using-diffusers/loading> would be useful within the provider, along with an initial scope for the provider. - Whether the initial model inference scope should remain limited to single-GPU execution, deferring multi-GPU execution. Please share feedback on the scope or any parts that should be adjusted before implementation proceeds. Warm Regards, Parag Ekbote
