MCPcopy Create free account
hub / github.com/FusionBrainLab/SONAR-LLM / Projector

Class Projector

train_sonarllm.py:150–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148# 3) Projector and SonarLossWrapper
149# ------------------------------------------------------------------------
150class Projector(nn.Module):
151 def __init__(self, in_dim, out_dim):
152 super().__init__()
153 self.linear = nn.Linear(in_dim, out_dim)
154 def forward(self, x):
155 return self.linear(x)
156
157class SonarLossWrapper(nn.Module):
158 def __init__(self, llama_model, forward_proj, reverse_proj, sonar_decoder):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected