MCPcopy Create free account
hub / github.com/THUDM/LongWriter / forward

Method forward

train/patch/modeling_chatglm.py:130–133  ·  view source on GitHub ↗
(self, max_seq_len, offset=0)

Source from the content-addressed store, hash-verified

128 return cache
129
130 def forward(self, max_seq_len, offset=0):
131 return self.forward_impl(
132 max_seq_len, self.dim, dtype=self.inv_freq.dtype, device=self.inv_freq.device
133 )
134
135
136@torch.jit.script

Callers

nothing calls this directly

Calls 1

forward_implMethod · 0.95

Tested by

no test coverage detected