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
Method
all_reduce
mlx/distributed/jaccl/lib/jaccl/mesh_impl.h:33
Method
all_reduce_impl
mlx/distributed/ring/ring.cpp:659
Method
all_reduce_impl
mlx/distributed/nccl/nccl.cpp:390
Function
all_sum
mlx/distributed/distributed.cpp:21
Method
all_sum
mlx/distributed/ring/ring.cpp:477
Method
all_sum
mlx/distributed/jaccl/jaccl.cpp:78
Method
all_sum
mlx/distributed/jaccl/lib/jaccl/mesh.cpp:141
Method
all_sum
mlx/distributed/nccl/nccl.cpp:332
Function
all_sum_plain
(x)
benchmarks/python/distributed_bench.py:49
Function
all_sum_with_sine
(x)
benchmarks/python/distributed_bench.py:56
Method
allocate_buffers
mlx/distributed/jaccl/lib/jaccl/ring.cpp:91
Method
allocate_buffers
mlx/distributed/jaccl/lib/jaccl/mesh.cpp:83
Function
any
mlx/ops.cpp:2010
Method
apply
mlx/backend/metal/kernels/gemv_masked.h:33
Method
apply
mlx/backend/metal/kernels/steel/gemm/transforms.h:16
Method
apply
mlx/backend/metal/kernels/steel/gemm/transforms.h:46
Method
apply
mlx/backend/metal/kernels/steel/attn/transforms.h:16
Method
apply
mlx/backend/metal/kernels/steel/attn/transforms.h:46
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention_nax.h:26
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention_nax.h:33
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention_nax.h:40
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention_nax.h:47
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention_nax.h:54
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention_nax.h:61
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention_nax.h:68
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention.h:20
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention.h:27
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention.h:34
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention.h:41
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention.h:48
Method
apply
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention.h:55
Method
apply_epilogue
mlx/backend/metal/kernels/steel/gemm/mma.h:977
Method
apply_epilogue
mlx/backend/metal/kernels/steel/attn/mma.h:593
Method
apply_epilogue_safe
mlx/backend/metal/kernels/steel/gemm/mma.h:1020
Method
apply_epilogue_safe
mlx/backend/metal/kernels/steel/attn/mma.h:631
Method
apply_gradients
(self, gradients: dict, parameters: dict)
python/mlx/optimizers/optimizers.py:202
Method
apply_inplace_op
mlx/backend/metal/kernels/steel/attn/loader.h:63
Method
apply_inplace_op
mlx/backend/metal/kernels/steel/attn/loader.h:187
Method
apply_single
To be extended by derived classes to implement the optimizer's update. Args: gradient (mx.array): The ``parameter`` gradient.
python/mlx/optimizers/optimizers.py:111
Method
apply_single
Performs the RMSprop parameter update and stores :math:`v` in the optimizer state.
python/mlx/optimizers/optimizers.py:340
Method
apply_single
Performs the Adagrad parameter update and stores :math:`v` in the optimizer state.
python/mlx/optimizers/optimizers.py:391
Method
apply_single
Performs the AdaDelta parameter update and stores :math:`v` and :math:`u` in the optimizer state.
python/mlx/optimizers/optimizers.py:450
Method
apply_single
Performs the Adam parameter update and stores :math:`v` and :math:`m` in the optimizer state.
python/mlx/optimizers/optimizers.py:512
Method
apply_single
Performs the AdamW parameter update by modifying the parameters passed into Adam.
python/mlx/optimizers/optimizers.py:580
Method
apply_single
Performs the Adamax parameter update and stores :math:`v` and :math:`m` in the optimizer state.
python/mlx/optimizers/optimizers.py:632
Method
apply_single
Performs the Lion parameter update and stores :math:`m` in the optimizer state.
python/mlx/optimizers/optimizers.py:693
Method
apply_single
Performs the Adafactor parameter and state update.
python/mlx/optimizers/optimizers.py:804
Method
apply_single
Performs the Muon parameter update
python/mlx/optimizers/optimizers.py:917
Function
arange
mlx/backend/cpu/arange.h:13
Function
arange_set_scalars
mlx/backend/metal/primitives.cpp:21
Function
arg_reduce
mlx/backend/cpu/arg_reduce.cpp:14
Function
arg_reduce_dispatch
mlx/backend/cpu/arg_reduce.cpp:35
Function
argmax
mlx/ops.cpp:2436
Function
argpartition
mlx/backend/cpu/sort.cpp:252
Function
argsort
mlx/backend/cpu/sort.cpp:155
Method
arr
mlx/3rdparty/pocketfft.h:208
Method
array
mlx/array.cpp:13
Function
array_equal
mlx/ops.cpp:1818
Method
as_linear
Call the quantized embedding layer as a quantized linear layer. Use this for example when input embedding and output projection
python/mlx/nn/layers/quantized.py:155
Method
assert_dtype
(layer, dtype)
python/tests/test_nn.py:1878
Method
assert_not_training
(k, m)
python/tests/test_nn.py:45
Method
assert_training
(k, m)
python/tests/test_nn.py:52
Function
async_eval
mlx/transforms.cpp:316
Method
atomic_update
mlx/backend/metal/kernels/reduction/ops.h:31
Method
atomic_update
mlx/backend/metal/kernels/reduction/ops.h:46
Method
atomic_update
mlx/backend/metal/kernels/reduction/ops.h:130
Method
atomic_update
mlx/backend/metal/kernels/reduction/ops.h:152
Method
atomic_update
mlx/backend/metal/kernels/reduction/ops.h:182
Method
atomic_update
mlx/backend/metal/kernels/reduction/ops.h:239
Function
attach_event
Attach an event to a not yet evaluated array
mlx/array.h:424
Function
attention
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention.h:70
Function
attention_mask
(*args)
benchmarks/python/sdpa_vector_bench.py:85
Function
attention_nax
mlx/backend/metal/kernels/steel/attn/kernels/steel_attention_nax.h:83
Function
axpby_impl
examples/extensions/axpby/axpby.cpp:82
Function
bartlett
mlx/ops.cpp:2473
Function
batch_vjp_first
()
benchmarks/python/batch_matmul_bench.py:22
Function
batch_vjp_second
()
benchmarks/python/batch_matmul_bench.py:27
Function
begin
mlx/array.h:189
Function
below_one
mlx/random.cpp:88
Function
bench_fun
(x)
benchmarks/python/compile_bench.py:18
Function
bernoulli
mlx/random.cpp:286
Method
bfloat16_t
mlx/distributed/jaccl/lib/jaccl/types.h:158
Function
bfloat16_to_uint16
mlx/backend/metal/kernels/bf16.h:10
Function
binary
(op, x, y)
benchmarks/python/comparative/bench_torch.py:91
Function
binary_cross_entropy
Computes the binary cross entropy loss. By default, this function takes the pre-sigmoid logits, which results in a faster and more preci
python/mlx/nn/losses.py:120
Function
binary_fused_0
All compilable
tests/compile_tests.cpp:333
Function
binary_fused_2
Binary into binary
tests/compile_tests.cpp:343
Function
binary_fused_3
Binary into unary into un-compilable
tests/compile_tests.cpp:349
Function
binary_g
mlx/backend/metal/kernels/binary.h:178
Function
binary_g
mlx/backend/metal/kernels/binary_two.h:220
Function
binary_g_nd1
mlx/backend/metal/kernels/binary.h:130
Function
binary_g_nd1
mlx/backend/metal/kernels/binary_two.h:163
Function
binary_g_nd2
mlx/backend/metal/kernels/binary.h:143
Function
binary_g_nd2
mlx/backend/metal/kernels/binary_two.h:179
Function
binary_g_nd3
mlx/backend/metal/kernels/binary.h:158
Function
binary_g_nd3
mlx/backend/metal/kernels/binary_two.h:197
Function
binary_op
mlx/backend/cpu/binary.h:153
Function
binary_op
mlx/backend/cpu/binary_two.h:120
Function
binary_op_dims
mlx/backend/cpu/binary.h:77
Function
binary_op_dims
mlx/backend/cpu/binary_two.h:13
← previous
next →
2,401–2,500 of 4,946, ranked by callers