MCPcopy Create free account
hub / github.com/microsoft/BitNet / phase

Method phase

gpu/stats.py:50–57  ·  view source on GitHub ↗

Start a new phase, and terminate the current one, if one is ongoing.

(self, name: str, tokens: int = 0)

Source from the content-addressed store, hash-verified

48 self.phases.append(stats)
49
50 def phase(self, name: str, tokens: int = 0):
51 """
52 Start a new phase, and terminate the current one,
53 if one is ongoing.
54 """
55 now = time.time()
56 self.end_phase(tokens, now)
57 self.current = (name, tokens, now)

Callers 1

generate_allMethod · 0.95

Calls 1

end_phaseMethod · 0.95

Tested by

no test coverage detected