MCPcopy Create free account

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

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

Method__post_init__
(self)
mlx_lm/models/mamba.py:30
Method__post_init__
(self)
mlx_lm/models/ministral3.py:34
Method__post_init__
(self)
mlx_lm/models/hunyuan_v1_dense.py:31
Method__post_init__
(self)
mlx_lm/models/mixtral.py:30
Method__post_init__
(self)
mlx_lm/models/gpt_bigcode.py:29
Method__post_init__
(self)
mlx_lm/models/phi.py:26
Method__post_init__
(self)
mlx_lm/models/mistral3.py:19
Method__post_init__
(self)
mlx_lm/models/hunyuan.py:37
Method__post_init__
(self)
mlx_lm/models/gpt_neox.py:29
Method__post_init__
(self)
mlx_lm/models/nemotron-nas.py:27
Method__post_init__
(self)
mlx_lm/models/nemotron-nas.py:53
Method__post_init__
(self)
mlx_lm/models/nemotron-nas.py:118
Method__post_init__
(self)
mlx_lm/models/jamba.py:47
Method__post_init__
(self)
mlx_lm/models/mamba2.py:37
Method__post_init__
(self)
mlx_lm/models/internlm3.py:31
Method__post_init__
(self)
mlx_lm/models/internlm2.py:30
Method__post_init__
(self)
mlx_lm/models/olmo.py:34
Method__post_init__
(self)
mlx_lm/models/qwen.py:26
Method__post_init__
(self)
mlx_lm/models/olmoe.py:36
Method__post_init__
(self)
mlx_lm/models/pixtral.py:19
Method__post_init__
(self)
mlx_lm/models/nemotron.py:34
Method__post_init__
(self)
mlx_lm/models/phi3.py:32
Method__post_init__
(self)
mlx_lm/models/nemotron_h.py:63
Method__repr__
(self)
mlx_lm/gguf.py:94
Method__setitem__
(self, idx, value)
mlx_lm/models/cache.py:618
Function_capture
(m)
mlx_lm/tool_parsers/gemma4.py:31
Method_extra_repr
(self)
mlx_lm/models/minimax.py:68
Method_generate
(self)
mlx_lm/server.py:688
Function_get_classes
Retrieve the model and model args classes based on the configuration. Args: config (dict): The model configuration. Returns:
mlx_lm/utils.py:175
Method_inner
()
mlx_lm/server.py:1035
Function_inner_sharded_rms_norm
(x, w, eps)
mlx_lm/models/minimax.py:52
Function_left_pad_prompts
(prompts, max_length=None)
mlx_lm/generate.py:802
Function_make_cache
Convert a list of regular caches into their corresponding batch-aware caches.
mlx_lm/generate.py:838
Function_maybe_qq
(m)
mlx_lm/utils.py:394
Function_parse_size
(x)
mlx_lm/utils.py:60
Method_r
(text, state, match=None)
tests/test_server.py:97
Method_repeat
(p)
mlx_lm/models/qwen3_5.py:415
Methodadd_token
(self, token)
mlx_lm/tokenizer_utils.py:81
Methodadd_token
(self, token)
mlx_lm/tokenizer_utils.py:144
Methodadd_token
(self, token)
mlx_lm/tokenizer_utils.py:206
Methodapply_block_linear
(h, w, b)
mlx_lm/models/recurrent_gemma.py:136
Functionapply_chat_template
(self, chat_history, add_generation_prompt=True)
mlx_lm/evaluate.py:59
Functionapply_chat_template
( messages, continue_final_message=False, add_generation_prompt=False, **kwargs )
mlx_lm/chat_templates/deepseek_v32.py:333
Functionapply_clip
(path, module)
mlx_lm/quant/awq.py:384
Methodas_linear
(self, x)
mlx_lm/tuner/lora.py:282
Functionbatch_bench
()
mlx_lm/benchmark.py:128
Methodbatch_decode
(self, *args, **kwargs)
mlx_lm/tokenizer_utils.py:500
Methodbatch_size
(self)
mlx_lm/models/cache.py:607
Functioncallback
(processed, total_tokens)
mlx_lm/cache_prompt.py:118
Functioncapture
(module)
mlx_lm/quant/awq.py:426
Methodcast_predicate
(self)
mlx_lm/models/kimi_k25.py:79
Methodcast_predicate
(self)
mlx_lm/models/minimax.py:381
Methodcast_predicate
(self)
mlx_lm/models/bailing_moe_linear.py:578
Methodcast_predicate
(self)
mlx_lm/models/lfm2_moe.py:383
Methodcast_predicate
(self)
mlx_lm/models/glm4_moe.py:399
Methodcast_predicate
(self)
mlx_lm/models/mimo_v2_flash.py:371
Methodcast_predicate
(self)
mlx_lm/models/kimi_linear.py:594
Methodcast_predicate
(self)
mlx_lm/models/step3p5.py:443
Methodcast_predicate
(self)
mlx_lm/models/exaone_moe.py:368
Methodcast_predicate
(self)
mlx_lm/models/glm4_moe_lite.py:527
Methodcast_predicate
(self)
mlx_lm/models/qwen3_5.py:346
Methodcast_predicate
(self)
mlx_lm/models/qwen3_5.py:530
Methodcast_predicate
(self)
mlx_lm/models/deepseek_v3.py:549
Methodcast_predicate
(self)
mlx_lm/models/kimi_vl.py:112
Methodcast_predicate
(self)
mlx_lm/models/deepseek_v32.py:647
Methodcast_predicate
(self)
mlx_lm/models/Klear.py:259
Methodcast_predicate
(self)
mlx_lm/models/bailing_moe.py:393
Methodcast_predicate
(self)
mlx_lm/models/longcat_flash_ngram.py:197
Methodcast_predicate
(self)
mlx_lm/models/longcat_flash.py:385
Methodcast_predicate
(self)
mlx_lm/models/afmoe.py:392
Methodcast_predicate
(self)
mlx_lm/models/nemotron_h.py:558
Methodcat
(a, b)
mlx_lm/models/cache.py:650
Methodcheck
(tokens)
tests/test_tokenizers.py:19
Methodcheck_config
(params, expected_trainable_parameters=None)
tests/test_finetune.py:46
Methodcheck_config
(params, expected_params=None)
tests/test_finetune.py:189
Functioncheckpointed_fn
(model, *args, **kwargs)
mlx_lm/tuner/trainer.py:31
Functionclass_predicate
(p, m)
mlx_lm/utils.py:349
Methodcli_args
(self)
mlx_lm/server.py:1055
Functioncommon_prefix_len
Calculates the length of the common prefix of two lists. Args: list1: The first list of strings. list2: The second list of s
mlx_lm/utils.py:953
Functioncompute_sensitivity
(gradient, low_q_weight, original_weight)
mlx_lm/quant/dynamic_quant.py:88
Methodconv_sharding
(key_dim)
mlx_lm/models/qwen3_5.py:406
Methodcustom_get_classes
(config)
tests/test_utils.py:116
Functiondecode_dsml_to_arguments
( tool_name: str, tool_args: Dict[str, Tuple[str, str]] )
mlx_lm/chat_templates/deepseek_v32.py:113
Functiondefault_loss
(model, batch, lengths)
mlx_lm/tuner/trainer.py:86
Methoddefault_scale
(factor)
mlx_lm/models/rope_utils.py:52
Methoddequant
(weight, scale_inv)
mlx_lm/models/minimax.py:279
Methoddequant
(weight, scale_inv)
mlx_lm/models/mimo_v2_flash.py:322
Methoddequant
(weight, scale_inv)
mlx_lm/models/deepseek_v3.py:381
Methoddequant
(weight, scale_inv)
mlx_lm/models/deepseek_v32.py:505
Methoddequantize_weight
(quantized_linear)
tests/test_finetune.py:291
Methoddetokenizer
Get a stateful streaming detokenizer.
mlx_lm/tokenizer_utils.py:451
Methoddo_GET
Respond to a GET request from a client.
mlx_lm/server.py:1620
Methoddo_OPTIONS
(self)
mlx_lm/server.py:1097
Methoddo_POST
Respond to a POST request from a client.
mlx_lm/server.py:1101
Methodempty
( cls, model: nn.Module, fallback_sampler: Callable[[mx.array], mx.array], pre
mlx_lm/generate.py:1209
Methodempty
Return if the cache is empty or not.
mlx_lm/models/cache.py:163
Methodempty
(self)
mlx_lm/models/cache.py:222
Methodempty
(self)
mlx_lm/models/cache.py:317
Methodempty
(self)
mlx_lm/models/cache.py:584
Methodempty
(self)
mlx_lm/models/cache.py:723
← previousnext →1,801–1,900 of 2,622, ranked by callers