MCPcopy Create free account
hub / github.com/Tele-AI/Telechat / custom_forward

Method custom_forward

models/7B/modeling_telechat.py:701–703  ·  view source on GitHub ↗
(*inputs)

Source from the content-addressed store, hash-verified

699
700 def create_custom_forward(module):
701 def custom_forward(*inputs):
702 # None for past_key_value
703 return module(*inputs, use_cache=use_cache, output_attentions=output_attentions)
704
705 return custom_forward
706

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected