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
↓ 1 callers
Function
scatter_add_axis
mlx/ops.cpp:3560
↓ 1 callers
Function
scatter_axis
mlx/backend/metal/kernels/indexing/scatter_axis.h:12
↓ 1 callers
Function
sdpa
(q, k, v, mask=None, w=None)
benchmarks/python/sdpa_vector_bench.py:45
↓ 1 callers
Function
sdpa_backward_cudnn
mlx/backend/cuda/scaled_dot_product_attention.cpp:451
↓ 1 callers
Function
sdpa_cudnn
mlx/backend/cuda/scaled_dot_product_attention.cpp:352
↓ 1 callers
Function
sdpa_full_self_attention_metal
mlx/backend/metal/scaled_dot_product_attention.cpp:166
↓ 1 callers
Function
sdpa_full_self_attention_nax
mlx/backend/metal/scaled_dot_product_attention.cpp:18
↓ 1 callers
Function
sdpa_vector
mlx/backend/metal/scaled_dot_product_attention.cpp:329
↓ 1 callers
Function
sdpa_vector
mlx/backend/metal/kernels/sdpa_vector.h:16
↓ 1 callers
Function
sdpa_vector_2pass
mlx/backend/metal/scaled_dot_product_attention.cpp:418
↓ 1 callers
Function
segmented_mm
mlx/ops.cpp:5889
↓ 1 callers
Function
segmented_mm
mlx/backend/metal/matmul.cpp:2439
↓ 1 callers
Function
select_op
mlx/backend/cpu/select.cpp:14
↓ 1 callers
Method
send
mlx/distributed/distributed.cpp:79
↓ 1 callers
Function
sendAll
mlx/distributed/nccl/nccl.cpp:103
↓ 1 callers
Function
serialize_variant
mlx/export.cpp:186
↓ 1 callers
Method
set_cache_limit
mlx/backend/metal/allocator.cpp:70
↓ 1 callers
Function
set_input_array
mlx/backend/cpu/encoder.h:23
↓ 1 callers
Method
set_memory_limit
mlx/backend/no_gpu/allocator.cpp:43
↓ 1 callers
Method
set_memory_limit
mlx/backend/metal/allocator.cpp:76
↓ 1 callers
Function
set_mx_value_from_gguf
mlx/io/gguf.cpp:90
↓ 1 callers
Function
set_wired_limit
Not supported in CUDA.
mlx/backend/cuda/allocator.cpp:447
↓ 1 callers
Function
setup
(app)
docs/src/conf.py:71
↓ 1 callers
Function
shard_inplace
Shard a module in-place by updating its parameter dictionary with the sharded parameter dictionary. The ``sharding`` argument can be any call
python/mlx/nn/layers/distributed.py:118
↓ 1 callers
Function
shared_buffer_slice
mlx/backend/common/slicing.cpp:20
↓ 1 callers
Method
shutdown
mlx/3rdparty/pocketfft.h:753
↓ 1 callers
Function
sigmoid
r"""Applies the sigmoid function. .. math:: \text{Sigmoid}(x) = \sigma(x) = \frac{1}{1 + \exp(-x)}
python/mlx/nn/layers/activations.py:20
↓ 1 callers
Method
signal
mlx/backend/metal/event.cpp:42
↓ 1 callers
Method
signal
mlx/backend/cuda/worker.cpp:35
↓ 1 callers
Method
simd_scan
mlx/backend/metal/kernels/scan.h:107
↓ 1 callers
Function
simd_shuffle
mlx/backend/metal/kernels/utils.h:419
↓ 1 callers
Function
simple_fun
tests/compile_tests.cpp:13
↓ 1 callers
Function
single_block_sort
mlx/backend/metal/sort.cpp:15
↓ 1 callers
Method
size
mlx/backend/cuda/lru_cache.h:42
↓ 1 callers
Method
size
mlx/distributed/jaccl/lib/jaccl/rdma.h:110
↓ 1 callers
Function
slice_update_max
mlx/ops.cpp:1004
↓ 1 callers
Function
slice_update_min
mlx/ops.cpp:1031
↓ 1 callers
Function
softmax
r"""Applies the Softmax function. Applies :math:`\frac{e^{x_i}}{\sum_j e^{x_j}}` element wise.
python/mlx/nn/layers/activations.py:84
↓ 1 callers
Function
softmax
mlx/backend/cpu/softmax.cpp:19
↓ 1 callers
Function
softshrink
r"""Applies the Softshrink activation function. .. math:: \text{softshrink}(x) = \begin{cases} x - \lambda & \text{if } x > \lamb
python/mlx/nn/layers/activations.py:111
↓ 1 callers
Function
split
mlx/random.cpp:75
↓ 1 callers
Function
split_one
Any parent in the divider will continue to refer to `x` but any parent not in the divider will refer to a copy of the operation.
mlx/compile.cpp:269
↓ 1 callers
Function
start_capture
mlx/backend/metal/metal.cpp:14
↓ 1 callers
Method
state
The module's state dictionary The module's state dictionary contains any attribute set on the module including parameters in :meth:`M
python/mlx/nn/layers/base.py:72
↓ 1 callers
Function
steel_matmul_axpby
mlx/backend/metal/matmul.cpp:842
↓ 1 callers
Function
steel_matmul_regular
mlx/backend/metal/matmul.h:36
↓ 1 callers
Function
step
(*inputs)
examples/export/train_mlp.py:55
↓ 1 callers
Function
step
(params, image)
benchmarks/python/conv3d_train_bench_cpu.py:53
↓ 1 callers
Function
step
(params, image)
benchmarks/python/conv2d_train_bench_cpu.py:53
↓ 1 callers
Method
step
(x)
python/tests/test_optimizers.py:347
↓ 1 callers
Method
stop
mlx/backend/cuda/worker.cpp:23
↓ 1 callers
Function
stop_capture
mlx/backend/metal/metal.cpp:43
↓ 1 callers
Method
store
mlx/backend/metal/kernels/steel/attn/nax.h:681
↓ 1 callers
Method
store_rows
mlx/backend/metal/kernels/steel/attn/nax.h:761
↓ 1 callers
Function
strided_reduce_2pass
mlx/backend/metal/reduce.cpp:808
↓ 1 callers
Function
strided_reduce_longcolumn
mlx/backend/metal/reduce.cpp:632
↓ 1 callers
Function
strided_reduce_looped
mlx/backend/metal/reduce.cpp:743
↓ 1 callers
Function
strided_reduce_small
mlx/backend/metal/reduce.cpp:566
↓ 1 callers
Function
strided_scan
mlx/backend/cpu/scan.cpp:82
↓ 1 callers
Method
submit
mlx/3rdparty/pocketfft.h:728
↓ 1 callers
Function
sum_scatter
mlx/distributed/ops.cpp:160
↓ 1 callers
Method
sum_scatter
mlx/distributed/distributed.cpp:97
↓ 1 callers
Function
synchronize
mlx/backend/metal/eval.cpp:86
↓ 1 callers
Function
synchronize
mlx/backend/cuda/eval.cpp:78
↓ 1 callers
Method
synchronize
mlx/backend/metal/device.cpp:457
↓ 1 callers
Function
tanh
Applies the hyperbolic tangent function. Simply ``mx.tanh(x)``.
python/mlx/nn/layers/activations.py:330
↓ 1 callers
Function
tb_connectivity_to_dot
(hosts, tb_hosts, uuid_reverse_index)
python/mlx/_distributed_utils/config.py:277
↓ 1 callers
Function
template_arguments_hash
mlx/backend/cuda/custom_kernel.cpp:28
↓ 1 callers
Method
terminate
(self)
python/mlx/_distributed_utils/launch.py:84
↓ 1 callers
Function
ternary_op_gpu
mlx/backend/metal/ternary.cpp:135
↓ 1 callers
Function
ternary_op_gpu_inplace
mlx/backend/metal/ternary.cpp:11
↓ 1 callers
Function
test_qqmm
()
examples/python/qqmm.py:22
↓ 1 callers
Function
test_qqmm_vjp
()
examples/python/qqmm.py:80
↓ 1 callers
Function
thread_id
mlx/3rdparty/pocketfft.h:521
↓ 1 callers
Function
time_add
()
benchmarks/python/single_ops.py:9
↓ 1 callers
Function
time_add
()
benchmarks/numpy/single_ops.py:7
↓ 1 callers
Function
time_add_op
benchmarks/cpp/compare_devices.cpp:9
↓ 1 callers
Function
time_all_sum
()
benchmarks/python/distributed_bench.py:37
↓ 1 callers
Function
time_attention
()
benchmarks/python/einsum_bench.py:55
↓ 1 callers
Function
time_batch_matmul
()
benchmarks/python/batch_matmul_bench.py:13
↓ 1 callers
Function
time_big_einsum_path
()
benchmarks/python/einsum_bench.py:33
↓ 1 callers
Function
time_binary_ops
benchmarks/cpp/single_ops.cpp:74
↓ 1 callers
Function
time_comparisons
benchmarks/cpp/single_ops.cpp:125
↓ 1 callers
Function
time_creation_ops
benchmarks/cpp/single_ops.cpp:8
↓ 1 callers
Function
time_divmod
benchmarks/cpp/single_ops.cpp:260
↓ 1 callers
Function
time_exp
()
benchmarks/python/single_ops.py:80
↓ 1 callers
Function
time_exp
()
benchmarks/numpy/single_ops.py:19
↓ 1 callers
Function
time_fft
()
benchmarks/python/fft_bench.py:62
↓ 1 callers
Function
time_gather_mm
()
benchmarks/python/gather_mm_bench.py:37
↓ 1 callers
Function
time_gather_qmm
()
benchmarks/python/gather_qmm_bench.py:43
↓ 1 callers
Function
time_gather_scatter
benchmarks/cpp/single_ops.cpp:213
↓ 1 callers
Function
time_irregular_astype_1D
benchmarks/cpp/irregular_strides.cpp:161
↓ 1 callers
Function
time_irregular_astype_2D
benchmarks/cpp/irregular_strides.cpp:170
↓ 1 callers
Function
time_irregular_binary_ops_1D
benchmarks/cpp/irregular_strides.cpp:12
↓ 1 callers
Function
time_irregular_binary_ops_2D
benchmarks/cpp/irregular_strides.cpp:24
↓ 1 callers
Function
time_irregular_binary_ops_3D
benchmarks/cpp/irregular_strides.cpp:45
↓ 1 callers
Function
time_irregular_binary_ops_4D
benchmarks/cpp/irregular_strides.cpp:76
↓ 1 callers
Function
time_irregular_reshape
benchmarks/cpp/irregular_strides.cpp:116
↓ 1 callers
Function
time_layer_norm
(N, dt)
benchmarks/python/layer_norm_bench.py:23
↓ 1 callers
Function
time_little_einsum_path
()
benchmarks/python/einsum_bench.py:19
← previous
next →
1,701–1,800 of 4,946, ranked by callers