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
test_loglikelihood_rolling_processes_all_inputs
Test that loglikelihood_rolling processes all inputs correctly when batching.
tests/test_evaluate.py:24
Method
test_lora_embedding
(self)
tests/test_finetune.py:112
Method
test_lru
(self)
tests/test_server.py:571
Method
test_lru_bytes
(self)
tests/test_server.py:665
Method
test_make_logits_processors
(self)
tests/test_sample_utils.py:150
Method
test_make_mask_with_cache
(self)
tests/test_prompt_cache.py:400
Method
test_make_shards
(self)
tests/test_utils.py:44
Method
test_make_state_machine_empty_tool_call_end
(self)
tests/test_server.py:283
Method
test_malformed_config
(self)
tests/test_finetune.py:365
Method
test_mamba
(self)
tests/test_models.py:1168
Method
test_many_batches
(self)
tests/test_generate.py:216
Method
test_mask_with_window
(self)
tests/test_models.py:164
Method
test_merge_with_empty_caches
(self)
tests/test_prompt_cache.py:642
Method
test_minicpm
(self)
tests/test_models.py:1147
Method
test_minimax_m2
(self)
tests/test_tool_parsing.py:316
Method
test_mixtral
(self)
tests/test_models.py:507
Method
test_multi_token_match_preserves_order
(self)
tests/test_server.py:140
Method
test_nemotron
(self)
tests/test_models.py:1680
Method
test_no_system_prompt_in_messages
( self, mock_print, mock_input, mock_stream_generate, mock_make_prompt
tests/test_chat.py:119
Method
test_non_zero_warmup
(self)
tests/test_finetune.py:354
Method
test_olmo
(self)
tests/test_models.py:529
Method
test_olmo2
(self)
tests/test_models.py:1832
Method
test_openelm
(self)
tests/test_models.py:1236
Method
test_parsers
(self)
tests/test_tool_parsing.py:19
Method
test_phi2
(self)
tests/test_models.py:462
Method
test_phi3
(self)
tests/test_models.py:471
Method
test_phi3small
(self)
tests/test_models.py:1699
Method
test_phimoe
(self)
tests/test_models.py:1719
Method
test_plamo
(self)
tests/test_models.py:895
Method
test_plamo2
(self)
tests/test_models.py:912
Method
test_presence_penalty
(self)
tests/test_sample_utils.py:119
Method
test_print_trainable_parameters
(self)
tests/test_tuner_utils.py:59
Method
test_prompt_cache_with_draft_model
(self)
tests/test_server.py:424
Method
test_quantize
(self)
tests/test_utils.py:62
Method
test_quantized_print_trainable_parameters
(self)
tests/test_tuner_utils.py:22
Method
test_quantized_sdpa
(self)
tests/test_models.py:306
Method
test_qwen
(self)
tests/test_models.py:884
Method
test_qwen2
(self)
tests/test_models.py:866
Method
test_qwen2_moe
(self)
tests/test_models.py:845
Method
test_qwen3
(self)
tests/test_models.py:577
Method
test_qwen3_5_family_convert_then_load_norm_not_shift_twice
(self)
tests/test_models.py:599
Method
test_qwen3_coder_single_quoted_params
(self)
tests/test_tool_parsing.py:157
Method
test_qwen3_moe
(self)
tests/test_models.py:549
Method
test_recurrent_gemma
(self)
tests/test_models.py:1744
Method
test_remove_prompt_batch_updates_currently_processing
(self)
tests/test_generate.py:727
Method
test_rope
(self)
tests/test_models.py:225
Method
test_rotating_cache_mask
(self)
tests/test_prompt_cache.py:439
Method
test_rotating_cache_updates
(self)
tests/test_prompt_cache.py:628
Method
test_rotating_kv_cache
(self)
tests/test_models.py:42
Method
test_rotating_kv_cache_chat_mode
(self)
tests/test_models.py:100
Method
test_save_load
(self)
tests/test_prompt_cache.py:43
Method
test_save_load_arrays_cache
(self)
tests/test_prompt_cache.py:170
Method
test_save_load_batch_caches
(self)
tests/test_prompt_cache.py:605
Method
test_save_load_cache_list
(self)
tests/test_prompt_cache.py:135
Method
test_save_load_mixed_cache
(self)
tests/test_prompt_cache.py:101
Method
test_save_load_quantized_cache
(self)
tests/test_prompt_cache.py:317
Method
test_save_load_rotating_cache
(self)
tests/test_prompt_cache.py:64
Method
test_setup_arg_parser_all_args
(self)
tests/test_chat.py:21
Method
test_setup_arg_parser_system_prompt
(self)
tests/test_chat.py:10
Method
test_shard
(self)
tests/model_parallel_tests.py:13
Method
test_single_schedule
(self)
tests/test_finetune.py:343
Method
test_single_tool_call_passes_body_with_open_and_close_crossings
(self)
tests/test_server.py:100
Method
test_smollm3
(self)
tests/test_models.py:1925
Method
test_special_tokens
(self)
tests/test_tokenizers.py:75
Method
test_ssm
(self)
tests/test_models.py:3004
Method
test_ssm_masked
(self)
tests/test_models.py:3035
Method
test_ssm_right_pad
(self)
tests/test_models.py:3070
Method
test_stablelm
(self)
tests/test_models.py:929
Method
test_starcoder2
(self)
tests/test_models.py:969
Method
test_step3p5
(self)
tests/test_models.py:985
Method
test_step3p5_make_cache_uses_fallback_sliding_pattern
(self)
tests/test_models.py:1076
Method
test_step3p5_make_cache_uses_rotating_for_sliding_layers
(self)
tests/test_models.py:1023
Method
test_stream_generate_input_embeddings
(self)
tests/test_generate.py:119
Method
test_stream_generate_input_embeddings_prefill
(self)
tests/test_generate.py:143
Method
test_stream_generate_max_tokens
(self)
tests/test_generate.py:49
Method
test_stream_generate_speculative
(self)
tests/test_generate.py:86
Method
test_streaming_with_draft_model
(self)
tests/test_server.py:393
Method
test_su_scaled_rope_no_mutation
(self)
tests/test_models.py:282
Method
test_system_prompt_in_messages
( self, mock_print, mock_input, mock_stream_generate, mock_make_prompt
tests/test_chat.py:64
Method
test_text
(self)
tests/test_datsets.py:38
Method
test_thinking
(self)
tests/test_tokenizers.py:97
Method
test_tokenizers
(self)
tests/test_tokenizers.py:54
Method
test_tool_calling
(self)
tests/test_tokenizers.py:86
Method
test_trim_cache
(self)
tests/test_prompt_cache.py:205
Method
test_trim_cache_with_generate
(self)
tests/test_prompt_cache.py:265
Method
test_window_mask_with_full_kv_cache
(self)
tests/test_prompt_cache.py:761
Method
test_yarn_rope_no_mutation
(self)
tests/test_models.py:294
Method
think_end
(self)
mlx_lm/tokenizer_utils.py:411
Method
think_end_id
(self)
mlx_lm/tokenizer_utils.py:415
Method
think_end_tokens
(self)
mlx_lm/tokenizer_utils.py:423
Method
think_start
(self)
mlx_lm/tokenizer_utils.py:395
Method
think_start_id
(self)
mlx_lm/tokenizer_utils.py:399
Method
think_start_tokens
(self)
mlx_lm/tokenizer_utils.py:407
Method
to_lora
(self, r: int = 8, dropout: float = 0.0, scale: float = 20.0)
mlx_lm/models/afm7.py:117
Method
to_quantized
(self, group_size: int = 64, bits: int = 4)
mlx_lm/models/cache.py:551
Method
to_quantized
(self, group_size: int = 64, bits: int = 4)
mlx_lm/models/cache.py:1327
Method
to_quantized
( self, group_size: int, bits: int, mode: str = "affine", )
mlx_lm/models/mla.py:25
Method
to_remove
(k)
mlx_lm/models/llama4.py:292
Method
tokenizer_name
(self)
mlx_lm/evaluate.py:149
Method
tokens
(self)
mlx_lm/models/cache.py:1519
← previous
next →
2,501–2,600 of 2,622, ranked by callers