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

Class Encoder

clip/model.py:190–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188
189
190class Encoder(nn.Module):
191 def __init__(self, config: CLIPTextConfig):
192 self.layers = [EncoderLayer(config) for _ in range(config.num_hidden_layers)]
193
194
195class ClipTextModel(nn.Module):

Callers 2

__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected