Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx-examples
/ functions
Functions
1,187 in github.com/ml-explore/mlx-examples
⨍
Functions
1,187
◇
Types & classes
308
↳
Endpoints
13
Function
normalize
(x)
cifar/dataset.py:12
Function
normalize
(x)
cvae/dataset.py:16
Method
num_languages
(self)
whisper/mlx_whisper/torch_whisper.py:274
Method
num_languages
(self)
whisper/mlx_whisper/whisper.py:262
Function
optional_float
(string)
whisper/mlx_whisper/cli.py:19
Function
optional_int
(string)
whisper/mlx_whisper/cli.py:16
Method
pad_id
(self)
llms/mistral/mistral.py:160
Method
pad_token
(self)
flux/flux/tokenizers.py:135
Function
preprocess_audio
r""" Prepare inputs for the EnCodec model. Args: raw_audio (mx.array or List[mx.array]): The sequence or batch of sequenc
musicgen/encodec.py:704
Function
quantization_predicate
(name, m)
flux/generate_interactive.py:18
Function
quantization_predicate
(name, m)
flux/txt2image.py:28
Function
quick_gelu
A fast GELU approximation https://github.com/hendrycks/GELUs
clip/model.py:69
Method
rank
(self, tokens: List[List[List[int]]], sum_logprobs: List[List[float]])
whisper/mlx_whisper/decoding.py:174
Method
rearrange_kv_cache
Update the key-value cache according to the updated beams
whisper/mlx_whisper/decoding.py:144
Method
replace_key
(key: str)
musicgen/t5.py:388
Method
replace_key
(key: str)
t5/t5.py:388
Method
reset
Initialize any stateful variables for decoding a new sequence
whisper/mlx_whisper/decoding.py:192
Function
resnet110
(**kwargs)
cifar/resnet.py:122
Function
resnet1202
(**kwargs)
cifar/resnet.py:126
Function
resnet20
(**kwargs)
cifar/resnet.py:106
Function
resnet32
(**kwargs)
cifar/resnet.py:110
Function
resnet44
(**kwargs)
cifar/resnet.py:114
Function
resnet56
(**kwargs)
cifar/resnet.py:118
Method
sample
(logits)
llms/llama/llama.py:147
Method
sample
(logits)
llms/speculative_decoding/decoder.py:110
Method
sample_and_log_prob
( self, sample_shape: Union[int, Tuple[int, ...]], key: Optional[mx.array] = None )
normalizing_flow/distributions.py:27
Method
sampling_rate
(self)
encodec/encodec.py:620
Method
sampling_rate
(self)
musicgen/encodec.py:620
Method
sanitize
(weights)
llava/language.py:208
Method
sanitize
Remap CLIP .pth checkpoint keys to MLX model format. Handles both standard OpenCLIP naming and Wan2.1 HF naming. Extracts only visual
video/wan2.1/wan/clip.py:125
Method
sanitize
Remap PyTorch T5 keys to MLX format.
video/wan2.1/wan/t5.py:164
Method
sanitize
Remap PyTorch checkpoint keys to MLX model format.
video/wan2.1/wan/model.py:196
Function
save_model
(save_dir: Union[str, Path], weights, tokenizer, config)
lora/utils.py:87
Method
save_to_cache
(module, _, output)
whisper/mlx_whisper/torch_whisper.py:294
Method
scalar
(x)
flux/flux/flux.py:101
Method
scores
(logprobs, lengths)
whisper/mlx_whisper/decoding.py:175
Method
setUpClass
(cls)
clip/test.py:34
Method
setUpClass
(cls)
llava/test.py:32
Method
setUpClass
(cls)
llava/test.py:79
Method
setUpClass
(cls)
whisper/test.py:80
Method
set_alignment_heads
(self, dump: bytes)
whisper/mlx_whisper/torch_whisper.py:245
Method
set_timesteps
(self, num_inference_steps, shift=None)
video/wan2.1/wan/sampler.py:78
Method
sot
(self)
whisper/mlx_whisper/tokenizer.py:190
Method
sot_lm
(self)
whisper/mlx_whisper/tokenizer.py:194
Method
sot_prev
(self)
whisper/mlx_whisper/tokenizer.py:198
Method
sot_sequence_including_notimestamps
(self)
whisper/mlx_whisper/tokenizer.py:240
Function
spm_tokenizer
(metadata)
llms/gguf_llm/utils.py:5
Method
state
(self)
musicgen/musicgen.py:67
Method
step
(self, eps_pred, x_t, t, t_prev)
stable_diffusion/stable_diffusion/sampler.py:89
Method
step
(self, model_output, timestep, sample)
video/wan2.1/wan/sampler.py:310
Method
step_index
(self)
video/wan2.1/wan/sampler.py:75
Function
str2bool
(string)
whisper/mlx_whisper/cli.py:22
Method
test_clip_model
(self)
clip/test.py:112
Method
test_decode_greedy
(self)
whisper/test.py:127
Method
test_decode_lang
(self)
whisper/test.py:118
Method
test_fp16
(self)
whisper/test.py:101
Method
test_generate
(self)
llms/mistral/test.py:37
Method
test_generated_tokens
(self)
llava/test.py:139
Method
test_image_features
(self)
llava/test.py:37
Method
test_image_processor
(self)
clip/test.py:38
Method
test_load
(self)
whisper/test.py:444
Method
test_mel_spec
(self)
whisper/test.py:457
Method
test_merge_input_ids_with_image_features
(self)
llava/test.py:84
Method
test_model
(self)
llms/mistral/test.py:11
Method
test_pad
(self)
whisper/test.py:452
Method
test_quantized_4bits
(self)
whisper/test.py:109
Method
test_text_encoder
(self)
clip/test.py:61
Method
test_text_tokenizer
(self)
clip/test.py:51
Method
test_torch_mlx
(self)
whisper/test.py:86
Method
test_transcribe
(self)
whisper/test.py:188
Method
test_transcribe_alice
(self)
whisper/test.py:200
Method
test_transcribe_word_level_timestamps_confidence_scores
(self)
whisper/test.py:312
Method
test_vision_encoder
(self)
clip/test.py:79
Method
timestamp_begin
(self)
whisper/mlx_whisper/tokenizer.py:210
Function
tiny_llama
(model_path, *, dtype: str)
llms/llama/convert.py:67
Function
train_step
(model, x, y)
speechcommands/main.py:60
Function
train_step
(model, inp, tgt)
cifar/main.py:38
Method
training_loss
( self, x_0: mx.array, t5_features: mx.array, clip_features: mx.array,
flux/flux/flux.py:195
Method
translate
(self)
whisper/mlx_whisper/tokenizer.py:186
Method
update
( self, tokens: mx.array, logits: mx.array, sum_logprobs: mx.array )
whisper/mlx_whisper/decoding.py:260
Function
upload_to_hub
(path: str, name: str, hf_path: str)
lora/utils.py:36
Function
write_all
( result: dict, file: TextIO, options: Optional[dict] = None, **kwargs )
whisper/mlx_whisper/writers.py:260
Method
write_result
( self, result: dict, file: TextIO, options: Optional[dict] = None, **kwargs )
whisper/mlx_whisper/writers.py:62
Method
write_result
( self, result: dict, file: TextIO, options: Optional[dict] = None, **kwargs )
whisper/mlx_whisper/writers.py:193
Method
write_result
( self, result: dict, file: TextIO, options: Optional[dict] = None, **kwargs )
whisper/mlx_whisper/writers.py:206
Method
write_result
( self, result: dict, file: TextIO, options: Optional[dict] = None, **kwargs )
whisper/mlx_whisper/writers.py:227
Method
write_result
( self, result: dict, file: TextIO, options: Optional[dict] = None, **kwargs )
whisper/mlx_whisper/writers.py:240
← previous
1,101–1,187 of 1,187, ranked by callers