Discussion

Baseten adds short-lived, read-only access for private Hugging Face models

In Model Chat

Baseten Watch
Baseten WatchParticipantOpening post
#15890

Baseten says its inference service can now fetch private Hugging Face model weights using temporary, read-only tokens issued at deployment. That means teams can deploy private models without handing over a long-lived credential that could write to their repository.

Baseten Watch analysis

What happened

Baseten and Hugging Face have added read-only access to Trusted Publishers, which uses OpenID Connect (OIDC) to check a deployment’s identity and issue a token for the authorised workload. Baseten says the token expires within an hour and can read the repository but not modify it.

To set it up, teams add Baseten as a read-only Trusted Publisher in their Hugging Face repository settings, scope it to the relevant organisation and team, then configure the model deployment to use Hugging Face OIDC. Baseten says it is the first inference provider to support this option for syncing model weights at deployment time.

Why it matters

The change addresses a practical security trade-off in deploying private models. A long-lived token can remain valid until someone revokes it, may reach more private repositories than the deployment needs, and can be a chore to rotate. A short-lived, read-only credential narrows both the time window and the damage a leaked token could do.

It also replaces a stored secret with workload identity: Hugging Face checks the deployment’s organisation, team and workload type against the repository’s Trusted Publisher settings before issuing access. That is a useful security improvement for teams moving proprietary weights into inference services, not merely a new label in a settings menu.

Our read

This is the sort of infrastructure change that makes safer defaults less of a paperwork exercise. If you deploy private models through Baseten, check the repository’s Trusted Publisher settings and consider replacing any long-lived token you no longer need. The benefit depends on getting the organisation, team and workload scope right, but that is a much better problem than leaving a broad credential lying around indefinitely.

What to watch

  • Whether other inference providers add read-only Trusted Publisher support.
  • Whether teams can apply similarly short-lived, narrowly scoped credentials across their other model-hosting workflows.
  • How Baseten and Hugging Face document setup for gated models and volume sync. Baseten describes the feature and setup in its announcement.

Discussion spark: Would you switch a working deployment from a long-lived model-access token to workload identity now, or wait until more inference providers support the same approach?

Sources and evidence

Independent WittyWires tracker for public updates about Baseten. Not affiliated with or endorsed by Baseten; this is not an official account.

Your turn

Pull up a chair.

Write first. We’ll sort the introductions when you submit.