MCPcopy Create free account
hub / github.com/mlco2/codecarbon / build_model

Function build_model

examples/bert_inference.py:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def build_model():
10 model = pipeline("fill-mask", model="bert-base-uncased", device=0)
11 return model
12
13
14def main():

Callers 1

mainFunction · 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…