MCPcopy Create free account
hub / github.com/RightNow-AI/TIDE / get_lm_head

Method get_lm_head

python/TIDE/adapters/base.py:29–31  ·  view source on GitHub ↗

Return the language model head (linear projection to vocab).

(self, model: nn.Module)

Source from the content-addressed store, hash-verified

27
28 @abstractmethod
29 def get_lm_head(self, model: nn.Module) -> nn.Module:
30 """Return the language model head (linear projection to vocab)."""
31 ...
32
33 @abstractmethod
34 def get_router_input_dim(self, model: nn.Module) -> int:

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected