Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9522252
Add Huggingface deployer for ZenML
claude Nov 2, 2025
1be2a1b
Fix logical issues in Huggingface deployer
claude Nov 2, 2025
ab7bd79
Simplify Huggingface deployer implementation
claude Nov 2, 2025
fd8bf5d
Fix critical bugs in Huggingface deployer
claude Nov 2, 2025
ba9b41b
Standardize Hugging Face deployer with existing integration
claude Nov 2, 2025
546eb96
Change deployer flavor name to 'huggingface'
claude Nov 2, 2025
1bf6465
Fix linting and docstring errors
claude Nov 2, 2025
73b157a
Add Hugging Face deployer documentation
claude Nov 2, 2025
00915d7
Implement two-mode deployment and add entrypoint to Dockerfile
claude Nov 3, 2025
919ca6c
Refactor to use ZenML's internal Dockerfile generation
claude Nov 3, 2025
5b2ed08
Fix linting and docstring errors
claude Nov 3, 2025
c06146b
CRITICAL SECURITY FIX: Use HF Space Secrets/Variables API
claude Nov 3, 2025
3d3d317
Add reference to HF Spaces GPU documentation
claude Nov 3, 2025
9f92376
Address code review feedback for HuggingFace deployer
claude Nov 3, 2025
f08d8cc
Remove redundant secret_name parameter from HuggingFace deployer
claude Nov 3, 2025
5a3595b
Add comprehensive Field descriptions to HuggingFace deployer config
claude Nov 3, 2025
125ce99
Change HuggingFace Space default visibility to private for security
claude Nov 3, 2025
1d84d2e
Update src/zenml/integrations/huggingface/deployers/huggingface_deplo…
htahir1 Nov 3, 2025
270f8e2
Address PR review feedback
claude Nov 3, 2025
d895d03
Address comprehensive PR review feedback from @stefannica
claude Nov 3, 2025
986cbf4
Fix Space stage mapping to use only ZenML standard deployment states
claude Nov 3, 2025
ff9599c
Add missing DeploymentDeprovisionError import
claude Nov 3, 2025
295f7b6
Fix deployment URL to use actual Space domain instead of HF page
claude Nov 3, 2025
9fdadcc
Merge branch 'develop' into claude/huggingface-deployer-011CUj51UperM…
htahir1 Nov 3, 2025
f58c1fd
Update docs/book/component-guide/deployers/huggingface.md
htahir1 Nov 3, 2025
2fc937e
Check domain stage before returning RUNNING status
claude Nov 3, 2025
f43c6c1
Fix HfHubHTTPError import for mypy compatibility
claude Nov 3, 2025
da58e37
Refactor settings to follow deployer pattern
claude Nov 3, 2025
cf57df0
Add debug logging for deployment state detection
claude Nov 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/zenml/integrations/huggingface/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from zenml.stack import Flavor

HUGGINGFACE_MODEL_DEPLOYER_FLAVOR = "huggingface"
HUGGINGFACE_DEPLOYER_FLAVOR = "huggingface"
HUGGINGFACE_SERVICE_ARTIFACT = "hf_deployment_service"


Expand Down Expand Up @@ -65,15 +66,16 @@ def get_requirements(cls, target_os: Optional[str] = None, python_version: Optio

@classmethod
def flavors(cls) -> List[Type[Flavor]]:
"""Declare the stack component flavors for the Huggingface integration.
"""Declare the stack component flavors for the Hugging Face integration.

Returns:
List of stack component flavors for this integration.
"""
from zenml.integrations.huggingface.flavors import (
HuggingFaceDeployerFlavor,
HuggingFaceModelDeployerFlavor,
)

return [HuggingFaceModelDeployerFlavor]
return [HuggingFaceDeployerFlavor, HuggingFaceModelDeployerFlavor]


24 changes: 24 additions & 0 deletions src/zenml/integrations/huggingface/deployers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (c) ZenML GmbH 2025. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing
# permissions and limitations under the License.
"""Hugging Face deployers."""

from zenml.integrations.huggingface.deployers.huggingface_deployer import (
HuggingFaceDeployer,
HuggingFaceDeployerSettings,
)

__all__ = [
"HuggingFaceDeployer",
"HuggingFaceDeployerSettings",
]
Loading
Loading