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
empty
(self)
mlx_lm/models/cache.py:804
Method
empty
(self)
mlx_lm/models/cache.py:887
Method
empty
(self)
mlx_lm/models/cache.py:1123
Method
empty
(self)
mlx_lm/models/cache.py:1477
Method
encode_batch
(self, texts, **kwargs)
mlx_lm/tokenizer_utils.py:494
Method
expand_quant
(x)
mlx_lm/models/cache.py:259
Method
extend
(self, batch)
mlx_lm/generate.py:1062
Method
extend
In-place extend this cache with the other cache.
mlx_lm/models/cache.py:642
Method
extra_repr
(self)
mlx_lm/models/internlm3.py:64
Method
extra_repr
(self)
mlx_lm/models/internlm2.py:63
Method
extra_repr
(self)
mlx_lm/models/rope_utils.py:110
Method
extract
(self, idx)
mlx_lm/models/cache.py:673
Method
extract
(self, idx)
mlx_lm/models/cache.py:1080
Method
extract
(self, idx)
mlx_lm/models/cache.py:1417
Method
extract_cache
(self, idx: int)
mlx_lm/generate.py:1059
Method
filter
In-place filter to keep just the given indices in the cache.
mlx_lm/models/cache.py:632
Method
filter
In-place filter to keep just the given indices in the cache.
mlx_lm/models/cache.py:850
Method
finalize
(self)
mlx_lm/tokenizer_utils.py:49
Method
finalize
(self)
mlx_lm/tokenizer_utils.py:85
Method
finalize
(self)
mlx_lm/tokenizer_utils.py:150
Method
finalize
(self)
mlx_lm/tokenizer_utils.py:220
Method
finalize
(self)
mlx_lm/models/cache.py:681
Method
finalize
(self)
mlx_lm/models/cache.py:980
Method
finalize
(self)
mlx_lm/models/cache.py:1285
Method
find_think_end
(self, tokens, start=None, end=None)
mlx_lm/tokenizer_utils.py:382
Method
find_think_start
(self, tokens, start=None, end=None)
mlx_lm/tokenizer_utils.py:374
Function
frequency_penalty_processor
(tokens, logits)
mlx_lm/sample_utils.py:361
Method
from_base
( embedding: nn.Embedding, r: int = 8, dropout: float = 0.0, scale: float = 20
mlx_lm/tuner/dora.py:132
Method
from_base
( linear: nn.Linear, r: int = 8, dropout: float = 0.0, scale: float = 20.0,
mlx_lm/tuner/lora.py:13
Method
from_base
( linear: nn.Module, r: int = 8, dropout: float = 0.0, scale: float = 20.0,
mlx_lm/tuner/lora.py:103
Method
from_base
( embedding: nn.Embedding, r: int = 8, dropout: float = 0.0, scale: float = 20
mlx_lm/tuner/lora.py:200
Method
from_dict
(cls, params)
mlx_lm/models/phixtral.py:27
Method
from_dict
(cls, params)
mlx_lm/models/base.py:14
Method
from_dict
(cls, params)
mlx_lm/models/qwen3_5_moe.py:15
Method
from_state
(cls, state, meta_state)
mlx_lm/models/cache.py:170
Method
fuse
(self, dequantize: bool = False)
mlx_lm/tuner/dora.py:153
Method
fuse
(self, dequantize: bool = False)
mlx_lm/tuner/lora.py:34
Method
fuse
(self, dequantize: bool = False)
mlx_lm/tuner/lora.py:120
Method
fuse
(self, dequantize: bool = False)
mlx_lm/tuner/lora.py:219
Method
fuse
(self, dequantize: bool = False)
mlx_lm/models/afm7.py:54
Method
generate_until
Generate greedily until a stopping sequence :param requests: list[Instance] A list of Instance objects with property `args` which
mlx_lm/evaluate.py:309
Function
get_current_weather
(**kwargs)
mlx_lm/examples/openai_tool_use.py:42
Function
get_keys_for_lora
(p, m)
mlx_lm/tuner/utils.py:88
Method
get_kv
(n)
tests/test_server.py:524
Method
get_next_request
(timeout=None)
mlx_lm/server.py:707
Method
handle_chat_completions
Handle a chat completion request. Returns: mx.array: A mx.array of the tokenized prompt from the request body
mlx_lm/server.py:1579
Method
handle_text_completions
Handle a text completion request. Returns: mx.array: A mx.array of the tokenized prompt from the request body
mlx_lm/server.py:1601
Method
has_newline_token
(self)
mlx_lm/gguf.py:87
Method
has_thinking
(self)
mlx_lm/tokenizer_utils.py:391
Method
has_tool_calling
(self)
mlx_lm/tokenizer_utils.py:427
Method
head_dim
(self)
mlx_lm/models/gemma4_text.py:655
Method
init_quant
(dim)
mlx_lm/models/cache.py:252
Function
inner_fn
(params, *args, **kwargs)
mlx_lm/tuner/trainer.py:32
Method
input_dims
(self)
mlx_lm/models/afm7.py:105
Method
input_dims
(self)
mlx_lm/models/afm7.py:130
Method
input_dims
(self)
mlx_lm/models/switch_layers.py:64
Method
input_dims
(self)
mlx_lm/models/switch_layers.py:109
Method
is_mpt_layer
(key)
mlx_lm/models/glm4_moe_lite.py:382
Method
is_trimmable
(self)
tests/test_server.py:87
Method
is_trimmable
(self)
mlx_lm/models/cache.py:146
Method
is_trimmable
(self)
mlx_lm/models/cache.py:211
Method
is_trimmable
(self)
mlx_lm/models/cache.py:306
Method
is_trimmable
(self)
mlx_lm/models/cache.py:542
Method
is_trimmable
(self)
mlx_lm/models/cache.py:788
Method
is_trimmable
(self)
mlx_lm/models/cache.py:1002
Method
is_trimmable
(self)
mlx_lm/models/cache.py:1317
Method
keep
(key)
mlx_lm/models/kimi_vl.py:85
Method
keepalive_callback
(processed_tokens, total_tokens)
tests/test_server.py:482
Method
keepalive_callback
(processed, total)
mlx_lm/server.py:1410
Method
last_segment
Return the last segment of readable text since last time this property was accessed.
mlx_lm/tokenizer_utils.py:53
Method
layers
(self)
mlx_lm/models/telechat3.py:201
Method
layers
(self)
mlx_lm/models/qwen2.py:220
Method
layers
(self)
mlx_lm/models/ernie4_5.py:164
Method
layers
(self)
mlx_lm/models/gpt_oss.py:324
Method
layers
(self)
mlx_lm/models/kimi_k25.py:75
Method
layers
(self)
mlx_lm/models/phixtral.py:201
Method
layers
(self)
mlx_lm/models/cohere2.py:216
Method
layers
(self)
mlx_lm/models/qwen3_next.py:446
Method
layers
(self)
mlx_lm/models/minimax.py:377
Method
layers
(self)
mlx_lm/models/recurrent_gemma.py:434
Method
layers
(self)
mlx_lm/models/smollm3.py:66
Method
layers
(self)
mlx_lm/models/gemma4_text.py:651
Method
layers
(self)
mlx_lm/models/bailing_moe_linear.py:585
Method
layers
(self)
mlx_lm/models/lfm2_moe.py:364
Method
layers
(self)
mlx_lm/models/qwen3_moe.py:258
Method
layers
(self)
mlx_lm/models/openelm.py:219
Method
layers
(self)
mlx_lm/models/plamo.py:211
Method
layers
(self)
mlx_lm/models/granite.py:192
Method
layers
(self)
mlx_lm/models/gpt2.py:199
Method
layers
(self)
mlx_lm/models/glm4_moe.py:395
Method
layers
(self)
mlx_lm/models/mimo_v2_flash.py:367
Method
layers
(self)
mlx_lm/models/gemma.py:174
Method
layers
(self)
mlx_lm/models/lfm2-vl.py:47
Method
layers
(self)
mlx_lm/models/kimi_linear.py:480
Method
layers
(self)
mlx_lm/models/step3p5.py:393
Method
layers
(self)
mlx_lm/models/exaone_moe.py:364
Method
layers
(self)
mlx_lm/models/minicpm.py:203
Method
layers
(self)
mlx_lm/models/afm7.py:389
Method
layers
(self)
mlx_lm/models/glm4_moe_lite.py:523
Method
layers
(self)
mlx_lm/models/qwen3_5.py:301
← previous
next →
1,901–2,000 of 2,622, ranked by callers