Trang này được dịch bằng máy. Đọc bản gốc tiếng Anh.

Recipe

trustyai-huggingface-detector

TrustyAI's Hugging Face detector for local development via Docker Compose. Synthesized-mode Workload: the compose provider translates it into one service running the image in infra.image, preceded by a weights-pull step. The pull step is an init container, so it becomes a run-to-completion service the detector waits on before it starts; it runs the same image and the Hugging Face command-line tool the image carries, and fetches the model named in values.model at values.model_revision into a named volume the detector reads through the MODEL_DIR variable. The compiler never fetches weights. The volume outlives the containers, so a restart re-runs the pull step against weights already in place, and how the tool reconciles that is its own behaviour. When the optional model_pull_token slot is attached its value arrives on the inject pipe and is rendered as the HF_TOKEN environment variable on the pull step alone, which is therefore also the key the attached credential must publish under; unattached, no such variable is emitted and weights are pulled anonymously. The detector's one healthcheck asks its health route with the curl the image carries, which answers only once the model is loaded. The service entry publishes no port on the host: callers sit on the same compose network, and a service that authenticates no caller is kept off the host's interfaces. provides.host is the compose service name, and the published contract is key for key the one the Kubernetes realization publishes; provides.metrics_endpoint is where the service serves its own metrics, in the Prometheus format at /metrics on its port.

Nguồn gốc

Chính thứcĐược ký bởi một danh tính ký mà danh mục này công nhận là nhà phát hành chính thức.
Digest nội dung
sha256:b4e8ff812d9a224ef35021d8f0ec528631810fb82b1519abf13748182ee748d9
Đã xuất bản
2026-11-10T10:21:09Z
Danh tính ký
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

Chữ ký

  • Chính thứcapplication/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:36e1f7d31d55a2fdc9dba019fc595069aa07e2da08d9597876f2d271c1e813a4

Tham chiếu ở phiên bản này

oci://hub.aggrega.ai/recipe/compose/trustyai-huggingface-detector:1.0.0
Đích
—
Triển khai
core/security/trustyai-huggingface-detector:1.0.0

Cung cấp

Các mẫu con trỏ xác định mà công thức này nối cho bên tiêu thụ.

TênMẫu
host{{ .context.instance_id }}
port{{ .infra.port }}
endpointhttp://{{ .context.instance_id }}:{{ .infra.port }}
model{{ .values.model }}
protocolhttp
metrics_endpointhttp://{{ .context.instance_id }}:{{ .infra.port }}/metrics

Workload

Workload · form: stateless · containers: main

Giá trị cục bộ

Chưa khai báo giá trị cục bộ nào.

Ánh xạ values

Chưa khai báo ánh xạ values nào.

Quan hệ

Các cạnh có kiểu đi tới và đi từ các thực thể đã xuất bản khác. Một tham chiếu không có đích đã xuất bản được hiển thị là một cạnh bị đứt thay vì một liên kết.

Sử dụng

  • triển khaitriển khaihợp đồng tương thích

    core/security/trustyai-huggingface-detector:1.0.0

    Tất cả đầu ra bắt buộc đều được đáp ứng và mọi đầu ra được cung cấp đều được nêu tên trong hợp đồng.

Được sử dụng bởi

Không có gì trong danh mục phụ thuộc vào thực thể này.

Tài liệu tham khảo khái niệm Recipe →

Danh mục Aggrega — chỉ mục mở gồm các thành phần, tính năng, công thức và các plugin kết xuất chúng.

Được xây dựng bằng hệ thống thiết kế dùng chung của Aggrega.

Quyền riêng tư