MCPcopy Create free account

hub / github.com/ml-explore/mlx-examples / functions

Functions1,187 in github.com/ml-explore/mlx-examples

Method__init__
( self, vocab_size: int, num_layers: int, dims: int, num_heads: int,
transformer_lm/main.py:15
Method__init__
( self, num_layers: int, input_dim: int, hidden_dim: int, output_dim: int )
mnist/main.py:18
Method__init__
( self, input_dims: int, output_dims: int, lora_rank: int = 8, bias: b
lora/models.py:97
Method__init__
(self, args: ModelArgs)
lora/models.py:132
Method__init__
(self, args: ModelArgs)
lora/models.py:204
Method__init__
(self, args: ModelArgs)
lora/models.py:230
Method__init__
(self, args: ModelArgs)
lora/models.py:264
Method__init__
(self, path: Path, key: str = "text")
lora/lora.py:136
Method__init__
(self, dataset, save_dir="/tmp")
lora/data/wikisql.py:22
Method__init__
(self, shift_and_log_scale: mx.array)
normalizing_flow/bijectors.py:18
Method__init__
Coupling layer with masking and conditioner.
normalizing_flow/bijectors.py:35
Method__init__
(self, mu: mx.array, sigma: mx.array)
normalizing_flow/distributions.py:10
Method__init__
(self, n_transforms: int, d_params: int, d_hidden: int, n_layers: int)
normalizing_flow/flows.py:27
Method__init__
(self, bpe_ranks, vocab)
clip/tokenizer.py:14
Method__init__
( self, crop_size: int = 224, do_center_crop: bool = True, do_normalize: bool
clip/image_processor.py:18
Method__init__
( self, dims: int, num_heads: int, query_input_dims: Optional[int] = None,
clip/model.py:84
Method__init__
(self, config: CLIPTextConfig)
clip/model.py:154
Method__init__
(self, config: CLIPTextConfig)
clip/model.py:175
Method__init__
(self, config: CLIPTextConfig)
clip/model.py:191
Method__init__
(self, config: CLIPTextConfig)
clip/model.py:198
Method__init__
(self, config: CLIPVisionConfig)
clip/model.py:220
Method__init__
(self, config: CLIPVisionConfig)
clip/model.py:264
Method__init__
(self, config: CLIPConfig)
clip/model.py:296
Method__init__
(self, dim, hidden_dim, dropout=0.0)
speechcommands/kwt.py:9
Method__init__
(self, dim, heads, dropout=0.0)
speechcommands/kwt.py:20
Method__init__
(self, dim, heads, mlp_dim, dropout=0.0)
speechcommands/kwt.py:40
Method__init__
(self, dim, depth, heads, mlp_dim, dropout=0.0)
speechcommands/kwt.py:54
Method__init__
( self, dims: int, num_heads: int, mlp_dims: Optional[int] = None, lay
bert/model.py:16
Method__init__
( self, num_layers: int, dims: int, num_heads: int, mlp_dims: Optional[int] = None )
bert/model.py:45
Method__init__
(self, config)
bert/model.py:62
Method__init__
(self, config: LlaVAConfig)
llava/llava.py:40
Method__init__
(self, config: TextConfig)
llava/language.py:49
Method__init__
(self, config: TextConfig)
llava/language.py:123
Method__init__
(self, config: TextConfig)
llava/language.py:149
Method__init__
(self, config: TextConfig)
llava/language.py:188
Method__init__
( self, dims: int, num_heads: int, query_input_dims: Optional[int] = None,
llava/vision.py:38
Method__init__
(self, config: VisionConfig)
llava/vision.py:105
Method__init__
(self, config: VisionConfig)
llava/vision.py:125
Method__init__
(self, config: VisionConfig)
llava/vision.py:131
Method__init__
(self, config: VisionConfig)
llava/vision.py:166
Method__init__
(self, config: VisionConfig)
llava/vision.py:193
Method__init__
(self, dims)
cifar/resnet.py:22
Method__init__
(self, block, num_blocks, num_classes=10)
cifar/resnet.py:73
Method__init__
(self, args: ModelArgs)
llms/mixtral/mixtral.py:30
Method__init__
(self, args: ModelArgs)
llms/mixtral/mixtral.py:80
Method__init__
(self, args: ModelArgs)
llms/mixtral/mixtral.py:92
Method__init__
(self, args: ModelArgs)
llms/mixtral/mixtral.py:121
Method__init__
(self, model_path: str)
llms/mixtral/mixtral.py:179
Method__init__
(self, args: ModelArgs)
llms/gguf_llm/models.py:52
Method__init__
(self, args: ModelArgs)
llms/gguf_llm/models.py:124
Method__init__
(self, args: ModelArgs)
llms/gguf_llm/models.py:150
Method__init__
(self, args: ModelArgs)
llms/gguf_llm/models.py:194
Method__init__
(self, metadata)
llms/gguf_llm/models.py:226
Method__init__
(self, args: ModelArgs)
llms/llama/llama.py:32
Method__init__
(self, args: ModelArgs)
llms/llama/llama.py:91
Method__init__
(self, args: ModelArgs)
llms/llama/llama.py:103
Method__init__
(self, args: ModelArgs)
llms/mistral/mistral.py:30
Method__init__
(self, args: ModelArgs)
llms/mistral/mistral.py:80
Method__init__
(self, args: ModelArgs)
llms/mistral/mistral.py:92
Method__init__
(self, model_path: str)
llms/mistral/mistral.py:149
Method__init__
(self, model_name: str)
llms/speculative_decoding/decoder.py:9
Method__init__
( self, model: Model, draft_model: Model, tokenizer: str, num_draft: i
llms/speculative_decoding/decoder.py:41
Method__init__
(self, config: T5Config, bidirectional: bool)
llms/speculative_decoding/model.py:61
Method__init__
(self, config: T5Config)
llms/speculative_decoding/model.py:92
Method__init__
(self, config: T5Config)
llms/speculative_decoding/model.py:136
Method__init__
(self, config: T5Config)
llms/speculative_decoding/model.py:167
Method__init__
(self, config: T5Config)
llms/speculative_decoding/model.py:185
Method__init__
(self, config: T5Config)
llms/speculative_decoding/model.py:201
Method__init__
(self, config: T5Config)
llms/speculative_decoding/model.py:241
Method__init__
(self, config: T5Config)
llms/speculative_decoding/model.py:274
Method__init__
(self, model: "Whisper")
whisper/mlx_whisper/decoding.py:133
Method__init__
(self, length_penalty: Optional[float])
whisper/mlx_whisper/decoding.py:171
Method__init__
(self, temperature: float, eot: int)
whisper/mlx_whisper/decoding.py:256
Method__init__
(self, tokenizer: Tokenizer, sample_begin: int, n_vocab: int)
whisper/mlx_whisper/decoding.py:303
Method__init__
(self, suppress_tokens: Sequence[int], n_vocab: int)
whisper/mlx_whisper/decoding.py:316
Method__init__
( self, tokenizer: Tokenizer, sample_begin: int, max_initial_timestamp_index:
whisper/mlx_whisper/decoding.py:326
Method__init__
(self, model: "Whisper", options: DecodingOptions)
whisper/mlx_whisper/decoding.py:404
Method__init__
(self, output_dir: str)
whisper/mlx_whisper/writers.py:40
Method__init__
(self, n_state: int, n_head: int)
whisper/mlx_whisper/torch_whisper.py:61
Method__init__
(self, n_state: int, n_head: int, cross_attention: bool = False)
whisper/mlx_whisper/torch_whisper.py:110
Method__init__
( self, n_mels: int, n_ctx: int, n_state: int, n_head: int, n_layer: int )
whisper/mlx_whisper/torch_whisper.py:142
Method__init__
( self, n_vocab: int, n_ctx: int, n_state: int, n_head: int, n_layer: int )
whisper/mlx_whisper/torch_whisper.py:175
Method__init__
(self, n_state: int, n_head: int)
whisper/mlx_whisper/whisper.py:41
Method__init__
(self, n_state: int, n_head: int, cross_attention: bool = False)
whisper/mlx_whisper/whisper.py:91
Method__init__
( self, n_mels: int, n_ctx: int, n_state: int, n_head: int, n_
whisper/mlx_whisper/whisper.py:122
Method__init__
( self, n_vocab: int, n_ctx: int, n_state: int, n_head: int, n
whisper/mlx_whisper/whisper.py:153
Method__init__
( self, config, in_channels: int, out_channels: int, kernel_size: int,
encodec/encodec.py:100
Method__init__
( self, config, in_channels: int, out_channels: int, kernel_size: int,
encodec/encodec.py:183
Method__init__
(self, config, dimension)
encodec/encodec.py:219
Method__init__
(self, config, dim: int, dilations: List[int])
encodec/encodec.py:235
Method__init__
(self, config)
encodec/encodec.py:268
Method__init__
(self, config)
encodec/encodec.py:319
Method__init__
(self, config)
encodec/encodec.py:373
Method__init__
(self, config)
encodec/encodec.py:404
Method__init__
(self, config)
encodec/encodec.py:418
Method__init__
(self, config)
encodec/encodec.py:474
Method__init__
(self, in_channels: int, time_embed_dim: int)
stable_diffusion/stable_diffusion/unet.py:21
Method__init__
( self, model_dims: int, num_heads: int, hidden_dims: Optional[int] = None,
stable_diffusion/stable_diffusion/unet.py:36
Method__init__
( self, in_channels: int, model_dims: int, encoder_dims: int, num_head
stable_diffusion/stable_diffusion/unet.py:87
Method__init__
( self, in_channels: int, out_channels: Optional[int] = None, groups: int = 32
stable_diffusion/stable_diffusion/unet.py:128
← previousnext →801–900 of 1,187, ranked by callers