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

Method get_layers

python/TIDE/adapters/base.py:14–16  ·  view source on GitHub ↗

Return the list of transformer decoder layers.

(self, model: nn.Module)

Source from the content-addressed store, hash-verified

12
13 @abstractmethod
14 def get_layers(self, model: nn.Module) -> list[nn.Module]:
15 """Return the list of transformer decoder layers."""
16 ...
17
18 @abstractmethod
19 def get_hidden_state(self, layer_output) -> torch.Tensor:

Callers 2

__init__Method · 0.45
collect_hidden_statesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected