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
sanitize
(self, weights)
mlx_lm/models/falcon_h1.py:459
Method
sanitize
(self, weights)
mlx_lm/models/granitemoehybrid.py:504
Method
sanitize
(self, weights)
mlx_lm/models/mixtral.py:205
Method
sanitize
(self, weights)
mlx_lm/models/mistral3.py:48
Method
sanitize
(self, weights)
mlx_lm/models/qwen3_vl.py:43
Method
sanitize
(self, weights)
mlx_lm/models/lille-130m.py:154
Method
sanitize
(self, weights)
mlx_lm/models/hunyuan.py:294
Method
sanitize
(self, weights)
mlx_lm/models/phi3small.py:306
Method
sanitize
(self, weights)
mlx_lm/models/gpt_neox.py:193
Method
sanitize
(self, weights)
mlx_lm/models/nemotron-nas.py:385
Method
sanitize
(self, weights)
mlx_lm/models/qwen3_5_moe.py:23
Method
sanitize
(self, weights)
mlx_lm/models/youtu_llm.py:232
Method
sanitize
(self, weights)
mlx_lm/models/deepseek.py:244
Method
sanitize
(self, weights)
mlx_lm/models/mimo.py:181
Method
sanitize
(self, weights)
mlx_lm/models/qwen3.py:185
Method
sanitize
(self, weights)
mlx_lm/models/jamba.py:347
Method
sanitize
(self, weights)
mlx_lm/models/bailing_moe.py:346
Method
sanitize
(self, weights)
mlx_lm/models/mamba2.py:260
Method
sanitize
(self, weights)
mlx_lm/models/gemma3n.py:602
Method
sanitize
(self, weights)
mlx_lm/models/bitnet.py:197
Method
sanitize
(self, weights)
mlx_lm/models/longcat_flash_ngram.py:200
Method
sanitize
(self, weights)
mlx_lm/models/longcat_flash.py:391
Method
sanitize
(self, weights)
mlx_lm/models/internlm3.py:232
Method
sanitize
(self, weights: dict[Any, Any])
mlx_lm/models/plamo2.py:453
Method
sanitize
(self, weights)
mlx_lm/models/phimoe.py:188
Method
sanitize
(self, weights)
mlx_lm/models/afmoe.py:354
Method
sanitize
(self, weights)
mlx_lm/models/deepseek_v2.py:430
Method
sanitize
(self, weights)
mlx_lm/models/internlm2.py:232
Method
sanitize
(self, weights)
mlx_lm/models/olmoe.py:197
Method
sanitize
(self, weights)
mlx_lm/models/pixtral.py:43
Method
sanitize
(self, weights)
mlx_lm/models/qwen3_vl_moe.py:39
Method
sanitize
(self, weights)
mlx_lm/models/nemotron_h.py:538
Method
setUp
(self)
tests/test_evaluate.py:12
Method
setUp
(self)
tests/test_tuner_utils.py:15
Method
setUpClass
(cls)
tests/test_datsets.py:19
Method
setUpClass
(cls)
tests/test_generate.py:26
Method
setUpClass
(cls)
tests/test_server.py:162
Method
setUpClass
(cls)
tests/test_server.py:326
Method
setUpClass
(cls)
tests/test_utils.py:20
Method
setUpClass
(cls)
tests/test_gguf.py:14
Method
setUpClass
(cls)
tests/test_prompt_cache.py:34
Function
set_dtype
(k, v)
mlx_lm/convert.py:138
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/gpt_oss.py:282
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/kimi_k25.py:67
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/minimax.py:329
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/glm4_moe.py:339
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/step3p5.py:458
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/exaone_moe.py:385
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/glm4_moe_lite.py:451
Method
shard
(self, group=None)
mlx_lm/models/qwen3_5.py:400
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/llama.py:231
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/deepseek_v3.py:480
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/iquestloopcoder.py:240
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/deepseek_v32.py:584
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/ministral3.py:290
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/qwen3.py:190
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/longcat_flash_ngram.py:213
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/longcat_flash.py:454
Method
shard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/deepseek_v2.py:443
Method
shard_heads
(w)
mlx_lm/models/glm4_moe_lite.py:470
Method
shard_heads
(w)
mlx_lm/models/deepseek_v3.py:499
Method
shard_heads
(w)
mlx_lm/models/deepseek_v32.py:601
Method
shard_heads
(w)
mlx_lm/models/longcat_flash.py:475
Function
single_bench
()
mlx_lm/benchmark.py:117
Method
size
Return the size (i.e. sequence length) of the cache. Not every cache is required to implement this, in which case the size w
mlx_lm/models/cache.py:149
Method
size
(self)
mlx_lm/models/cache.py:517
Method
size
(self)
mlx_lm/models/cache.py:884
Method
size
(self)
mlx_lm/models/cache.py:1120
Method
size
(self)
mlx_lm/models/cache.py:1474
Method
state
(self)
mlx_lm/models/cache.py:129
Method
state
(self)
mlx_lm/models/cache.py:203
Method
state
(self)
mlx_lm/models/cache.py:286
Method
state
(self)
mlx_lm/models/cache.py:361
Method
state
(self)
mlx_lm/models/cache.py:521
Method
state
(self)
mlx_lm/models/cache.py:625
Method
state
(self)
mlx_lm/models/cache.py:774
Method
state
(self)
mlx_lm/models/cache.py:830
Method
state
(self)
mlx_lm/models/cache.py:990
Method
state
(self)
mlx_lm/models/cache.py:1295
Method
state
(self)
mlx_lm/models/cache.py:1515
Function
str2bool
(string)
mlx_lm/generate.py:59
Function
swiglu
(gate, x)
mlx_lm/models/activations.py:10
Method
tearDown
(self)
tests/test_tuner_utils.py:19
Method
tearDownClass
(cls)
tests/test_datsets.py:28
Method
tearDownClass
(cls)
tests/test_server.py:177
Method
tearDownClass
(cls)
tests/test_server.py:341
Method
tearDownClass
(cls)
tests/test_utils.py:27
Method
tearDownClass
(cls)
tests/test_gguf.py:22
Method
tearDownClass
(cls)
tests/test_prompt_cache.py:40
Method
test_all_models
(self)
tests/test_models.py:1969
Method
test_apply_min_p
(self)
tests/test_sample_utils.py:49
Method
test_apply_top_k
(self)
tests/test_sample_utils.py:71
Method
test_apply_top_p
(self)
tests/test_sample_utils.py:9
Method
test_apply_xtc
(self)
tests/test_sample_utils.py:97
Method
test_arrays_cache_extend_with_empty
(self)
tests/test_prompt_cache.py:720
Method
test_back_to_back_tool_calls_emit_state_crossings
(self)
tests/test_server.py:118
Method
test_batch_continued_generation
(self)
tests/test_generate.py:508
Method
test_batch_continued_generation_gated_delta
(self)
tests/test_generate.py:674
Method
test_batch_continued_generation_ssm
(self)
tests/test_generate.py:646
Method
test_batch_generate_function_with_logits_processors
Test that batch_generate function with logits_processors produces correct results.
tests/test_generate.py:424
← previous
next →
2,301–2,400 of 2,622, ranked by callers