MCPcopy
hub / github.com/BlinkDL/RWKV-LM / load

Method load

RWKV-v4/src/model_run.py:295–300  ·  view source on GitHub ↗
(self, target)

Source from the content-addressed store, hash-verified

293 target.hk = copy.deepcopy(self.hk)
294
295 def load(self, target):
296 self.xx = copy.deepcopy(target.xx)
297 self.aa = copy.deepcopy(target.aa)
298 self.bb = copy.deepcopy(target.bb)
299 self.pp = copy.deepcopy(target.pp)
300 self.hk = copy.deepcopy(target.hk)
301
302 def LN(self, xx, w):
303 return F.layer_norm(xx, (self.n_embd,), weight=w.weight, bias=w.bias)

Callers 15

train.pyFile · 0.45
__init__Method · 0.45
__init__Method · 0.45
generate_init_weightFunction · 0.45
run.pyFile · 0.45
train.pyFile · 0.45
verify.pyFile · 0.45
__init__Method · 0.45
runMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
train.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected