acoustic-carpenter-78188
08/02/2026, 10:51 PMflyte.prefetch.hf_model now publishes a model artifact for the prefetched model.
• The store task runs with produces_artifacts=True and wraps the stored `Dir`: artifact name = artifact_name (default: repo name), version = the HuggingFace commit id.
• Searchable metadata carries the model facts (framework/architecture/task/modality/serial_format) plus `source_repo`/`source_commit`, and sharding when vLLM sharding is used. create_model_metadata gains an extra-data merge parameter for this.
• The repo README becomes the model card, converted to styled HTML (fenced code/tables supported, YAML frontmatter stripped); HTML cards render in the UI iframe with no bucket CORS requirement. Missing README is tolerated.
• hf_token_key=None skips the secret mount for anonymous prefetch of public models.
• Runs are labeled model=<artifact_name> so prefetches are filterable by model.
• Apps: new flyte.app.ArtifactValue(name, version=...) delayed parameter (parallel to RunOutput) resolves a published artifact at deployment time and materializes its stored File/Dir (type inferred from the artifact; optional type= asserts it) — so an app can mount a prefetched model by artifact name.
Devbox-e2e-verified: tiny-random-gpt2 (no README), bert-mini, bert-small (README → HTML card, presign verified), tiny-random-bert (run label verified). ArtifactValue materialization verified live against the devbox artifact service (bert-small -> stored model Dir).
🤖 Generated with Claude Code
flyteorg/flyte-sdkacoustic-carpenter-78188
08/03/2026, 2:21 PM