Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx
/ functions
Functions
4,946 in github.com/ml-explore/mlx
⨍
Functions
4,946
◇
Types & classes
770
↳
Endpoints
5
↓ 12 callers
Function
check_transpose
mlx/backend/metal/matmul.cpp:25
↓ 12 callers
Method
fft
mlx/3rdparty/pocketfft.h:2369
↓ 12 callers
Function
fft_impl
mlx/fft.cpp:31
↓ 12 callers
Function
fill_gpu
mlx/backend/metal/copy.cpp:182
↓ 12 callers
Function
floor
mlx/ops.cpp:2968
↓ 12 callers
Function
get_temp_file
tests/load_tests.cpp:14
↓ 12 callers
Function
is_power_of_2
mlx/utils.h:133
↓ 12 callers
Function
isneginf
mlx/ops.cpp:1867
↓ 12 callers
Function
isposinf
mlx/ops.cpp:1860
↓ 12 callers
Function
not_equal
mlx/ops.cpp:1766
↓ 12 callers
Function
parse_norm
python/src/fft.cpp:22
↓ 12 callers
Method
resize
mlx/threadpool.h:82
↓ 12 callers
Function
roll
mlx/ops.cpp:6317
↓ 12 callers
Method
set_value
mlx/event.h:38
↓ 12 callers
Function
slice_update_add
mlx/ops.cpp:950
↓ 12 callers
Method
store
mlx/backend/metal/kernels/steel/gemm/nax.h:681
↓ 11 callers
Function
ceil
mlx/ops.cpp:2976
↓ 11 callers
Function
conjugate
mlx/ops.cpp:6190
↓ 11 callers
Function
copy_gpu
mlx/backend/gpu/copy.cpp:11
↓ 11 callers
Function
copy_gpu
mlx/backend/metal/copy.cpp:13
↓ 11 callers
Function
cumprod
mlx/ops.cpp:3904
↓ 11 callers
Method
encode
mlx/backend/metal/reduce.cpp:58
↓ 11 callers
Function
export_function
mlx/export.cpp:918
↓ 11 callers
Method
gather_qmm
(x, w, s, b, lhs, rhs, trans, sort)
python/tests/test_quantized.py:1069
↓ 11 callers
Function
get_reduce_kernel
mlx/backend/metal/jit_kernels.cpp:452
↓ 11 callers
Function
get_var
mlx/utils.cpp:289
↓ 11 callers
Function
get_work_per_thread
mlx/backend/metal/utils.h:72
↓ 11 callers
Method
iinfo
mlx/utils.cpp:340
↓ 11 callers
Function
import_function
mlx/export.cpp:1034
↓ 11 callers
Method
load_weights
Update the model's weights from a ``.npz``, a ``.safetensors`` file, or a list. Args: file_or_weights (str or list(tuple
python/mlx/nn/layers/base.py:123
↓ 11 callers
Function
logical_not
mlx/ops.cpp:2795
↓ 11 callers
Function
prepare_sdpa_input
mlx/backend/cuda/scaled_dot_product_attention.cpp:15
↓ 11 callers
Method
prod
(x)
python/tests/test_autograd.py:970
↓ 11 callers
Function
randint
mlx/random.h:157
↓ 11 callers
Method
read
mlx/io/load.cpp:347
↓ 11 callers
Function
right_shift
mlx/ops.cpp:6257
↓ 11 callers
Function
round
mlx/ops.h:1046
↓ 11 callers
Function
sigmoid
mlx/ops.cpp:3147
↓ 11 callers
Method
update
Replace the parameters of this Module with the provided ones in the dict of dicts and lists. Commonly used by the optimizer to change
python/mlx/nn/layers/base.py:304
↓ 11 callers
Function
view
mlx/ops.cpp:6289
↓ 10 callers
Method
__init__
( self, learning_rate: Union[float, Callable[[mx.array], mx.array]], momentum: float =
python/mlx/optimizers/optimizers.py:248
↓ 10 callers
Function
append_kv_array
mlx/io/gguf.cpp:261
↓ 10 callers
Method
apply
mlx/backend/metal/kernels/steel/gemm/mma.h:426
↓ 10 callers
Function
argmax
mlx/ops.h:765
↓ 10 callers
Function
argmin
mlx/ops.h:755
↓ 10 callers
Function
binary_op_cpu
mlx/backend/cpu/binary.h:295
↓ 10 callers
Function
diag
mlx/ops.cpp:5990
↓ 10 callers
Function
enable_tf32
mlx/utils.h:171
↓ 10 callers
Function
ensure_row_contiguous_matrix
mlx/backend/metal/quantized.cpp:64
↓ 10 callers
Function
fftshift
mlx/fft.cpp:243
↓ 10 callers
Function
gemm_loop_finalize
mlx/backend/metal/kernels/quantized_utils.h:78
↓ 10 callers
Function
gen_fun
(fun)
benchmarks/python/compile_bench.py:17
↓ 10 callers
Function
init
mlx/backend/cuda/eval.cpp:15
↓ 10 callers
Method
label
mlx/io/load.h:169
↓ 10 callers
Function
laplace
mlx/random.h:248
↓ 10 callers
Function
left_shift
mlx/ops.cpp:6246
↓ 10 callers
Method
load_safe
mlx/backend/metal/kernels/quantized.h:641
↓ 10 callers
Method
load_safe
mlx/backend/metal/kernels/fp_quantized.h:218
↓ 10 callers
Method
load_unsafe
mlx/backend/metal/kernels/quantized.h:628
↓ 10 callers
Method
load_unsafe
mlx/backend/metal/kernels/fp_quantized.h:206
↓ 10 callers
Method
logsumexp
(x, axes=None)
python/tests/test_ops.py:734
↓ 10 callers
Method
make_current
mlx/backend/cuda/device.cpp:59
↓ 10 callers
Function
min
mlx/ops.cpp:2359
↓ 10 callers
Method
next
python/src/random.cpp:36
↓ 10 callers
Method
next
Iteration helper */
mlx/backend/metal/kernels/steel/conv/loaders/loader_channel_l.h:438
↓ 10 callers
Method
register_to_protection_domain
mlx/distributed/jaccl/lib/jaccl/rdma.cpp:92
↓ 10 callers
Method
save
mlx/export.cpp:461
↓ 10 callers
Function
set_binary_op_output_data
mlx/backend/common/binary.h:37
↓ 10 callers
Function
set_compile_mode
mlx/compile.cpp:1252
↓ 10 callers
Function
shard_linear
Create a new linear layer that has its parameters sharded and also performs distributed communication either in the forward or backward pass.
python/mlx/nn/layers/distributed.py:158
↓ 10 callers
Function
svd
mlx/linalg.h:68
↓ 10 callers
Function
tile_matmad_nax
mlx/backend/metal/kernels/steel/gemm/nax.h:825
↓ 10 callers
Function
tree_unflatten_from_structure
python/src/trees.cpp:299
↓ 10 callers
Function
truncated_normal
mlx/random.cpp:324
↓ 10 callers
Function
use_cuda_graphs
mlx/backend/cuda/device.cpp:17
↓ 9 callers
Function
DEPRECATE
python/src/metal.cpp:20
↓ 9 callers
Method
__init__
(self, pooling_function, kernel_size, stride, padding, padding_value)
python/mlx/nn/layers/pooling.py:85
↓ 9 callers
Function
_value_or_list
(x, n, msg)
python/mlx/nn/layers/pooling.py:11
↓ 9 callers
Method
add_kernel_node_raw
mlx/backend/cuda/device.cpp:243
↓ 9 callers
Function
add_strides_and_shapes
mlx/backend/metal/quantized.cpp:128
↓ 9 callers
Method
all_gather
mlx/distributed/mpi/mpi.cpp:434
↓ 9 callers
Method
args
mlx/backend/cuda/jit_module.h:29
↓ 9 callers
Function
as_strided
mlx/ops.cpp:270
↓ 9 callers
Function
binary_op_gpu
mlx/backend/metal/binary.cpp:165
↓ 9 callers
Function
check_cpu_stream
mlx/linalg.cpp:13
↓ 9 callers
Method
compute_capability_major
mlx/backend/cuda/device.h:176
↓ 9 callers
Function
cosh
mlx/ops.cpp:3054
↓ 9 callers
Function
dispatch_all_types
mlx/distributed/jaccl/lib/jaccl/types.h:216
↓ 9 callers
Function
expm1
mlx/ops.cpp:2994
↓ 9 callers
Function
fill_vector
python/src/convert.cpp:262
↓ 9 callers
Function
floor_divide
mlx/ops.cpp:2899
↓ 9 callers
Method
freeze
Freeze the Module's parameters or some of them. Freezing a parameter means not computing gradients for it. This function is idempoten
python/mlx/nn/layers/base.py:464
↓ 9 callers
Function
get_binary_op_type
mlx/backend/common/binary.h:19
↓ 9 callers
Function
get_cache_memory
mlx/backend/cuda/allocator.cpp:436
↓ 9 callers
Method
hadamard_transform
(x)
python/tests/test_ops.py:3043
↓ 9 callers
Function
is_str_or_path
python/src/load.cpp:26
↓ 9 callers
Function
load_gguf
mlx/io/gguf.cpp:241
↓ 9 callers
Method
load_safe
mlx/backend/metal/kernels/steel/attn/nax.h:743
↓ 9 callers
Function
masked_scatter
mlx/ops.cpp:3709
↓ 9 callers
Function
mlx_primitives_sdpa
(q, k, v, scale, mask=None)
python/tests/test_fast_sdpa.py:99
← previous
next →
301–400 of 4,946, ranked by callers