Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ build_model
Function
build_model
examples/task_inference.py:12–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
11
12
def
build_model():
13
model =
"huge_model"
14
sleep(5)
15
return
model
16
17
18
def
inference(model, data, inference_task_name):
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…