Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx-lm
/ functions
Functions
2,622 in github.com/ml-explore/mlx-lm
⨍
Functions
2,622
◇
Types & classes
816
↳
Endpoints
9
Method
predicate
(k)
mlx_lm/models/exaone_moe.py:369
Method
predicate
(k)
mlx_lm/models/glm4_moe_lite.py:528
Method
predicate
(path, _)
mlx_lm/models/qwen3_5.py:338
Method
predicate
(path, _)
mlx_lm/models/rwkv7.py:448
Method
predicate
(path, _)
mlx_lm/models/granitemoe.py:226
Method
predicate
(k)
mlx_lm/models/deepseek_v3.py:550
Method
predicate
(k)
mlx_lm/models/kimi_vl.py:113
Method
predicate
(k)
mlx_lm/models/deepseek_v32.py:648
Method
predicate
(path, _)
mlx_lm/models/Klear.py:251
Method
predicate
(path, _)
mlx_lm/models/granitemoehybrid.py:554
Method
predicate
(path, _)
mlx_lm/models/jamba.py:380
Method
predicate
(path, _)
mlx_lm/models/bailing_moe.py:385
Method
predicate
(path, _)
mlx_lm/models/longcat_flash.py:377
Method
predicate
(k)
mlx_lm/models/afmoe.py:393
Method
predicate
(k)
mlx_lm/models/nemotron_h.py:559
Method
prepare
(self, lengths=None, **kwargs)
mlx_lm/models/cache.py:678
Method
prepare
(self, *, left_padding=None, lengths=None, right_padding=None)
mlx_lm/models/cache.py:967
Method
prepare
(self, *, left_padding=None, lengths=None, right_padding=None)
mlx_lm/models/cache.py:1272
Function
presence_penalty_processor
(tokens, logits)
mlx_lm/sample_utils.py:332
Method
probably_mlx_lm
(repo)
mlx_lm/server.py:1657
Method
process
(self, d)
mlx_lm/tuner/datasets.py:57
Method
process
(self, d)
mlx_lm/tuner/datasets.py:107
Method
process
(self, d)
mlx_lm/tuner/datasets.py:151
Method
processor
(tokens, logits)
tests/test_generate.py:409
Method
progress
(tokens_processed, tokens_total)
mlx_lm/server.py:926
Method
progress_callback
(processed: int, total: int)
tests/test_generate.py:157
Method
prompt_cache_nbytes
(self)
mlx_lm/generate.py:1729
Method
quant_predicate
(self)
mlx_lm/models/gpt_oss.py:328
Method
quant_predicate
(self)
mlx_lm/models/qwen3_next.py:485
Method
quant_predicate
(self)
mlx_lm/models/minimax.py:388
Method
quant_predicate
(self)
mlx_lm/models/gemma4_text.py:642
Method
quant_predicate
(self)
mlx_lm/models/bailing_moe_linear.py:569
Method
quant_predicate
(self)
mlx_lm/models/lfm2_moe.py:374
Method
quant_predicate
(self)
mlx_lm/models/qwen3_moe.py:249
Method
quant_predicate
(self)
mlx_lm/models/kimi_linear.py:605
Method
quant_predicate
(self)
mlx_lm/models/step3p5.py:450
Method
quant_predicate
(self)
mlx_lm/models/qwen3_5.py:334
Method
quant_predicate
(self)
mlx_lm/models/qwen3_5.py:526
Method
quant_predicate
(self)
mlx_lm/models/rwkv7.py:447
Method
quant_predicate
(self)
mlx_lm/models/granitemoe.py:225
Method
quant_predicate
(self)
mlx_lm/models/gemma4.py:88
Method
quant_predicate
(self)
mlx_lm/models/Klear.py:250
Method
quant_predicate
(self)
mlx_lm/models/granitemoehybrid.py:553
Method
quant_predicate
(self)
mlx_lm/models/jamba.py:379
Method
quant_predicate
(self)
mlx_lm/models/bailing_moe.py:384
Method
quant_predicate
(self)
mlx_lm/models/longcat_flash_ngram.py:193
Method
quant_predicate
(self)
mlx_lm/models/longcat_flash.py:376
Method
quant_predicate
(self)
mlx_lm/models/afmoe.py:399
Method
quant_predicate
(self)
mlx_lm/models/qwen3_vl_moe.py:72
Method
rand_prompt
(n)
tests/test_generate.py:589
Function
remove_lora_layers
Remove the LoRA layers from the model. Args: model (nn.Module): The model with LoRA layers. Returns: nn.Module: The mod
mlx_lm/tuner/utils.py:141
Method
repeat_kv_layer_inplace
(layer, h)
mlx_lm/models/qwen3_5.py:409
Function
repetition_penalty_processor
(tokens, logits)
mlx_lm/sample_utils.py:300
Method
sanitize
(self, weights)
mlx_lm/models/qwen2.py:180
Method
sanitize
(self, weights)
mlx_lm/models/gpt_oss.py:243
Method
sanitize
(self, weights)
mlx_lm/models/kimi_k25.py:56
Method
sanitize
(self, weights)
mlx_lm/models/phixtral.py:185
Method
sanitize
(self, weights)
mlx_lm/models/qwen3_next.py:452
Method
sanitize
Dequantize FP8 weights and restructure MoE experts.
mlx_lm/models/minimax.py:276
Method
sanitize
(self, weights)
mlx_lm/models/recurrent_gemma.py:437
Method
sanitize
(self, weights: dict)
mlx_lm/models/smollm3.py:69
Method
sanitize
(self, weights)
mlx_lm/models/gemma4_text.py:610
Method
sanitize
(self, weights)
mlx_lm/models/bailing_moe_linear.py:531
Method
sanitize
(self, weights)
mlx_lm/models/lfm2_moe.py:331
Method
sanitize
(self, weights)
mlx_lm/models/qwen3_moe.py:232
Method
sanitize
(self, weights)
mlx_lm/models/gpt2.py:170
Method
sanitize
(self, weights)
mlx_lm/models/glm4_moe.py:317
Method
sanitize
(self, weights)
mlx_lm/models/mimo_v2_flash.py:321
Method
sanitize
(self, weights)
mlx_lm/models/lfm2-vl.py:40
Method
sanitize
(self, weights: Dict[str, mx.array])
mlx_lm/models/kimi_linear.py:492
Method
sanitize
(self, weights)
mlx_lm/models/step3p5.py:406
Method
sanitize
(self, weights)
mlx_lm/models/exaone_moe.py:329
Method
sanitize
(self, weights)
mlx_lm/models/minicpm.py:197
Method
sanitize
(self, weights)
mlx_lm/models/glm4_moe_lite.py:381
Method
sanitize
(self, weights)
mlx_lm/models/qwen3_5.py:307
Method
sanitize
(self, weights)
mlx_lm/models/qwen3_5.py:384
Method
sanitize
(self, weights)
mlx_lm/models/rwkv7.py:438
Method
sanitize
(self, weights)
mlx_lm/models/llama.py:222
Method
sanitize
(self, weights)
mlx_lm/models/granitemoe.py:206
Method
sanitize
(self, weights)
mlx_lm/models/dbrx.py:235
Method
sanitize
(self, weights)
mlx_lm/models/ernie4_5_moe.py:263
Method
sanitize
(self, weights)
mlx_lm/models/lfm2.py:298
Method
sanitize
(self, weights)
mlx_lm/models/qwen2_moe.py:221
Method
sanitize
(self, weights)
mlx_lm/models/olmo2.py:201
Method
sanitize
(self, weights)
mlx_lm/models/gemma3.py:49
Method
sanitize
(self, weights)
mlx_lm/models/deepseek_v3.py:380
Method
sanitize
(self, weights: dict)
mlx_lm/models/baichuan_m1.py:234
Method
sanitize
(self, weights)
mlx_lm/models/gemma4.py:55
Method
sanitize
(self, weights)
mlx_lm/models/kimi_vl.py:84
Method
sanitize
(self, weights)
mlx_lm/models/llama4.py:291
Method
sanitize
(self, weights)
mlx_lm/models/deepseek_v32.py:494
Method
sanitize
(self, weights)
mlx_lm/models/dots1.py:292
Method
sanitize
(self, weights)
mlx_lm/models/qwen2_vl.py:43
Method
sanitize
(self, weights)
mlx_lm/models/gemma3_text.py:237
Method
sanitize
(self, weights)
mlx_lm/models/mamba.py:217
Method
sanitize
(self, weights)
mlx_lm/models/ministral3.py:267
Method
sanitize
(self, weights)
mlx_lm/models/seed_oss.py:176
Method
sanitize
(self, weights)
mlx_lm/models/apertus.py:185
Method
sanitize
(self, weights)
mlx_lm/models/hunyuan_v1_dense.py:228
Method
sanitize
(self, weights)
mlx_lm/models/Klear.py:230
← previous
next →
2,201–2,300 of 2,622, ranked by callers