MCPcopy Create free account
hub / github.com/ZinYY/TreeLoRA / update

Method update

utils/utils.py:37–42  ·  view source on GitHub ↗
(self, num)

Source from the content-addressed store, hash-verified

35 self.mean = 0
36
37 def update(self, num):
38 self.total += num
39 self.count += 1
40 self.mean = self.total / self.count
41
42 return self.mean
43
44
45def load_hf_tokenizer(model_name_or_path, fast_tokenizer=True):

Callers 15

train_one_taskMethod · 0.45
pushMethod · 0.45
train_one_taskMethod · 0.45
predictionMethod · 0.45
train_one_taskMethod · 0.45
train_one_taskMethod · 0.45
predictionMethod · 0.45
train_one_taskMethod · 0.45
train_one_taskMethod · 0.45
train_one_taskMethod · 0.45
train_one_taskMethod · 0.45
train_one_taskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected