Skip to content

initial version of cost metrics in cli#12

Open
Yash-gsx wants to merge 3 commits into
masterfrom
cost-metrics
Open

initial version of cost metrics in cli#12
Yash-gsx wants to merge 3 commits into
masterfrom
cost-metrics

Conversation

@Yash-gsx

Copy link
Copy Markdown

No description provided.

@Yash-gsx
Yash-gsx requested a review from rsingh-alt July 21, 2026 08:43
Comment thread ai-studio-cli/internal/power/sampler.go Outdated
}

// queryTotalWatts returns the summed power.draw across all visible GPUs at one
// instant (total node GPU power, busy + idle).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we are calculating power for the whole node, even if the gpu is idle. but in cost.go we are using CapEx for only the GPUs in use.

Comment thread ai-studio-cli/internal/power/sampler.go Outdated
}

func (s *Sampler) sampleOnce() {
w, ok := queryTotalWatts()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Power for all GPUs is being calculated.It should be calculated for the GPUs being used.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the rental tiers for other gpus too

Label string `json:"label"`
}

type MarketRate struct {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hyperscaler_sku, neocloud_blended_hourly_usd, gpu_model, and electricity_source can be removed from here as they are not being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants