MCPcopy Create free account
hub / github.com/ml-explore/mlx-examples / __call__

Method __call__

llava/language.py:198–205  ·  view source on GitHub ↗
(
        self,
        inputs: mx.array,
        cache=None,
        inputs_embeds=None,
    )

Source from the content-addressed store, hash-verified

196 self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
197
198 def __call__(
199 self,
200 inputs: mx.array,
201 cache=None,
202 inputs_embeds=None,
203 ):
204 out, cache = self.model(inputs, cache, inputs_embeds)
205 return self.lm_head(out), cache
206
207 @staticmethod
208 def sanitize(weights):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected