MCPcopy Create free account

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

Functions2,622 in github.com/ml-explore/mlx-lm

Methodsanitize
(self, weights)
mlx_lm/models/falcon_h1.py:459
Methodsanitize
(self, weights)
mlx_lm/models/granitemoehybrid.py:504
Methodsanitize
(self, weights)
mlx_lm/models/mixtral.py:205
Methodsanitize
(self, weights)
mlx_lm/models/mistral3.py:48
Methodsanitize
(self, weights)
mlx_lm/models/qwen3_vl.py:43
Methodsanitize
(self, weights)
mlx_lm/models/lille-130m.py:154
Methodsanitize
(self, weights)
mlx_lm/models/hunyuan.py:294
Methodsanitize
(self, weights)
mlx_lm/models/phi3small.py:306
Methodsanitize
(self, weights)
mlx_lm/models/gpt_neox.py:193
Methodsanitize
(self, weights)
mlx_lm/models/nemotron-nas.py:385
Methodsanitize
(self, weights)
mlx_lm/models/qwen3_5_moe.py:23
Methodsanitize
(self, weights)
mlx_lm/models/youtu_llm.py:232
Methodsanitize
(self, weights)
mlx_lm/models/deepseek.py:244
Methodsanitize
(self, weights)
mlx_lm/models/mimo.py:181
Methodsanitize
(self, weights)
mlx_lm/models/qwen3.py:185
Methodsanitize
(self, weights)
mlx_lm/models/jamba.py:347
Methodsanitize
(self, weights)
mlx_lm/models/bailing_moe.py:346
Methodsanitize
(self, weights)
mlx_lm/models/mamba2.py:260
Methodsanitize
(self, weights)
mlx_lm/models/gemma3n.py:602
Methodsanitize
(self, weights)
mlx_lm/models/bitnet.py:197
Methodsanitize
(self, weights)
mlx_lm/models/longcat_flash_ngram.py:200
Methodsanitize
(self, weights)
mlx_lm/models/longcat_flash.py:391
Methodsanitize
(self, weights)
mlx_lm/models/internlm3.py:232
Methodsanitize
(self, weights: dict[Any, Any])
mlx_lm/models/plamo2.py:453
Methodsanitize
(self, weights)
mlx_lm/models/phimoe.py:188
Methodsanitize
(self, weights)
mlx_lm/models/afmoe.py:354
Methodsanitize
(self, weights)
mlx_lm/models/deepseek_v2.py:430
Methodsanitize
(self, weights)
mlx_lm/models/internlm2.py:232
Methodsanitize
(self, weights)
mlx_lm/models/olmoe.py:197
Methodsanitize
(self, weights)
mlx_lm/models/pixtral.py:43
Methodsanitize
(self, weights)
mlx_lm/models/qwen3_vl_moe.py:39
Methodsanitize
(self, weights)
mlx_lm/models/nemotron_h.py:538
MethodsetUp
(self)
tests/test_evaluate.py:12
MethodsetUp
(self)
tests/test_tuner_utils.py:15
MethodsetUpClass
(cls)
tests/test_datsets.py:19
MethodsetUpClass
(cls)
tests/test_generate.py:26
MethodsetUpClass
(cls)
tests/test_server.py:162
MethodsetUpClass
(cls)
tests/test_server.py:326
MethodsetUpClass
(cls)
tests/test_utils.py:20
MethodsetUpClass
(cls)
tests/test_gguf.py:14
MethodsetUpClass
(cls)
tests/test_prompt_cache.py:34
Functionset_dtype
(k, v)
mlx_lm/convert.py:138
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/gpt_oss.py:282
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/kimi_k25.py:67
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/minimax.py:329
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/glm4_moe.py:339
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/step3p5.py:458
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/exaone_moe.py:385
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/glm4_moe_lite.py:451
Methodshard
(self, group=None)
mlx_lm/models/qwen3_5.py:400
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/llama.py:231
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/deepseek_v3.py:480
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/iquestloopcoder.py:240
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/deepseek_v32.py:584
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/ministral3.py:290
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/qwen3.py:190
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/longcat_flash_ngram.py:213
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/longcat_flash.py:454
Methodshard
(self, group: Optional[mx.distributed.Group] = None)
mlx_lm/models/deepseek_v2.py:443
Methodshard_heads
(w)
mlx_lm/models/glm4_moe_lite.py:470
Methodshard_heads
(w)
mlx_lm/models/deepseek_v3.py:499
Methodshard_heads
(w)
mlx_lm/models/deepseek_v32.py:601
Methodshard_heads
(w)
mlx_lm/models/longcat_flash.py:475
Functionsingle_bench
()
mlx_lm/benchmark.py:117
Methodsize
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
Methodsize
(self)
mlx_lm/models/cache.py:517
Methodsize
(self)
mlx_lm/models/cache.py:884
Methodsize
(self)
mlx_lm/models/cache.py:1120
Methodsize
(self)
mlx_lm/models/cache.py:1474
Methodstate
(self)
mlx_lm/models/cache.py:129
Methodstate
(self)
mlx_lm/models/cache.py:203
Methodstate
(self)
mlx_lm/models/cache.py:286
Methodstate
(self)
mlx_lm/models/cache.py:361
Methodstate
(self)
mlx_lm/models/cache.py:521
Methodstate
(self)
mlx_lm/models/cache.py:625
Methodstate
(self)
mlx_lm/models/cache.py:774
Methodstate
(self)
mlx_lm/models/cache.py:830
Methodstate
(self)
mlx_lm/models/cache.py:990
Methodstate
(self)
mlx_lm/models/cache.py:1295
Methodstate
(self)
mlx_lm/models/cache.py:1515
Functionstr2bool
(string)
mlx_lm/generate.py:59
Functionswiglu
(gate, x)
mlx_lm/models/activations.py:10
MethodtearDown
(self)
tests/test_tuner_utils.py:19
MethodtearDownClass
(cls)
tests/test_datsets.py:28
MethodtearDownClass
(cls)
tests/test_server.py:177
MethodtearDownClass
(cls)
tests/test_server.py:341
MethodtearDownClass
(cls)
tests/test_utils.py:27
MethodtearDownClass
(cls)
tests/test_gguf.py:22
MethodtearDownClass
(cls)
tests/test_prompt_cache.py:40
Methodtest_all_models
(self)
tests/test_models.py:1969
Methodtest_apply_min_p
(self)
tests/test_sample_utils.py:49
Methodtest_apply_top_k
(self)
tests/test_sample_utils.py:71
Methodtest_apply_top_p
(self)
tests/test_sample_utils.py:9
Methodtest_apply_xtc
(self)
tests/test_sample_utils.py:97
Methodtest_arrays_cache_extend_with_empty
(self)
tests/test_prompt_cache.py:720
Methodtest_back_to_back_tool_calls_emit_state_crossings
(self)
tests/test_server.py:118
Methodtest_batch_continued_generation
(self)
tests/test_generate.py:508
Methodtest_batch_continued_generation_gated_delta
(self)
tests/test_generate.py:674
Methodtest_batch_continued_generation_ssm
(self)
tests/test_generate.py:646
Methodtest_batch_generate_function_with_logits_processors
Test that batch_generate function with logits_processors produces correct results.
tests/test_generate.py:424
← previousnext →2,301–2,400 of 2,622, ranked by callers