docs: add resource group cost attribution#2565
Merged
Merged
Conversation
Document that resource group IDs can be passed as namespace for Jobs and as X-HF-Bill-To for Inference Providers to attribute costs to a specific resource group. Add a Cost attribution section to the resource groups guide covering all four compute services. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4cd1feaaaf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Pierrci
reviewed
Jun 16, 2026
SBrandeis
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/hub/jobs-pricing.md: new "Bill to a resource group" subsection — explains how to pass a resource group ID asnamespacewhen creating a jobdocs/inference-providers/pricing.md: note thatX-HF-Bill-Toalso accepts a resource group ID (in addition to an org name)docs/hub/security-resource-groups.md: new "Cost attribution" section covering all four compute services (Spaces, Jobs, Inference Providers, Inference Endpoints)Ref: https://github.com/huggingface-internal/moon-landing/pull/18244 (merged) and https://github.com/huggingface-internal/moon-landing/pull/18333
Test plan
🤖 Generated with Claude Code
Note
Low Risk
Documentation-only updates with no runtime or security code changes.
Overview
Documents how Enterprise customers can attribute compute spend to Resource Groups, with cross-links between Hub Jobs, Inference Providers, and the Resource Groups guide.
Jobs (
jobs-pricing.md): new Bill to a resource group section—membership requirement, using the group ID asnamespace(CLI andhuggingface_hub.run_job).Resource Groups (
security-resource-groups.md): new Cost attribution section for Spaces (automatic), Jobs (namespace), Inference Providers (X-HF-Bill-To/bill_to), and Inference Endpoints (automatic from repo; catalog endpoints excluded).Inference Providers (
pricing.md): extends org billing to allowX-HF-Bill-To: <resource-group-id>when the token user is in that group.Reviewed by Cursor Bugbot for commit 8d098aa. Bugbot is set up for automated code reviews on this repo. Configure here.