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
↓ 2 callers
Method
operator()
mlx/export.cpp:879
↓ 2 callers
Method
output_shapes
mlx/compile.cpp:199
↓ 2 callers
Function
pad_and_swizzle_scales
mlx/backend/cuda/quantized/qqmm_utils.h:30
↓ 2 callers
Function
parse_address
* Parse a sockaddr from an ip and port provided as strings. */
mlx/distributed/jaccl/lib/jaccl/tcp.cpp:16
↓ 2 callers
Function
parse_size
mlx/distributed/jaccl/lib/examples/allreduce_bench.cpp:58
↓ 2 callers
Function
permutation
mlx/random.cpp:477
↓ 2 callers
Function
predicate
(x)
benchmarks/python/comparative/compare.py:60
↓ 2 callers
Function
prepare_args
Do necessary transposes and copies to prepare the inputs and outputs for building the cuDNN conv op. It is safe to be called multiple times in one eva
mlx/backend/cuda/conv.cpp:185
↓ 2 callers
Function
prepare_reshape
mlx/backend/common/common.cpp:147
↓ 2 callers
Function
prepare_sdpa_sinks
mlx/backend/cuda/scaled_dot_product_attention.cpp:28
↓ 2 callers
Method
print
mlx/utils.cpp:37
↓ 2 callers
Function
py_value_and_grad
python/src/transforms.cpp:69
↓ 2 callers
Function
qmm
mlx/backend/metal/quantized.cpp:680
↓ 2 callers
Function
qqmm
mlx/ops.cpp:4619
↓ 2 callers
Function
quantize_input
mlx/backend/cuda/quantized/qqmm.cpp:17
↓ 2 callers
Function
radix4
mlx/backend/metal/kernels/fft/radix.h:56
↓ 2 callers
Method
recycle_to_cache
mlx/backend/common/buffer_cache.h:48
↓ 2 callers
Function
register_args
Register inputs and outputs before actually running conv op. Can only be called once per eval_gpu.
mlx/backend/cuda/conv.cpp:229
↓ 2 callers
Function
reshape_in_eval
mlx/backend/gpu/copy.cpp:57
↓ 2 callers
Method
restart
mlx/3rdparty/pocketfft.h:759
↓ 2 callers
Method
reuse_from_cache
mlx/backend/common/buffer_cache.h:30
↓ 2 callers
Function
reverse_bytes
mlx/export.cpp:100
↓ 2 callers
Function
rms_norm
(x, w, eps)
benchmarks/python/rms_norm_bench.py:8
↓ 2 callers
Function
rope
(x)
benchmarks/python/comparative/bench_mlx.py:286
↓ 2 callers
Method
run
(self)
python/mlx/extension.py:72
↓ 2 callers
Method
run
Main kernel function */
mlx/backend/metal/kernels/steel/gemm/gemm.h:140
↓ 2 callers
Method
run
Main kernel function */
mlx/backend/metal/kernels/steel/attn/attn.h:141
↓ 2 callers
Method
run
mlx/backend/cuda/quantized/cublas_qqmm.cpp:141
↓ 2 callers
Method
run
mlx/backend/cuda/gemms/cublas_gemm.cpp:140
↓ 2 callers
Method
save_weights
Save the model's weights to a file. The saving method is determined by the file extension: - ``.npz`` will use :func:`mx.savez`
python/mlx/nn/layers/base.py:209
↓ 2 callers
Method
scalar
Create a cuDNN tensor for scalar.
mlx/backend/cuda/cudnn_utils.h:147
↓ 2 callers
Function
scatter
mlx/backend/cpu/indexing.cpp:402
↓ 2 callers
Function
scatter_axis
mlx/ops.cpp:3498
↓ 2 callers
Function
scatter_min
mlx/ops.h:1271
↓ 2 callers
Function
scatter_unsort
(x, inv_order, shape=None)
benchmarks/python/gather_qmm_bench.py:21
↓ 2 callers
Function
seconds
examples/cpp/timer.h:12
↓ 2 callers
Method
seek
mlx/backend/common/utils.h:152
↓ 2 callers
Method
send
mlx/distributed/ring/ring.cpp:533
↓ 2 callers
Method
set_buffer
mlx/backend/metal/device.cpp:289
↓ 2 callers
Function
set_copy_output_data
mlx/backend/common/copy.h:25
↓ 2 callers
Function
set_default_stream
mlx/stream.cpp:52
↓ 2 callers
Function
set_status
mlx/array.h:414
↓ 2 callers
Function
set_ternary_op_output_data
mlx/backend/common/ternary.h:44
↓ 2 callers
Function
shared_buffer_reshape
mlx/backend/common/common.cpp:184
↓ 2 callers
Method
simd_exclusive_scan
mlx/backend/metal/kernels/scan.h:115
↓ 2 callers
Function
slice_update_prod
mlx/ops.cpp:977
↓ 2 callers
Function
softplus
r"""Applies the Softplus function. Applies :math:`\log(1 + \exp(x))` element wise.
python/mlx/nn/layers/activations.py:93
↓ 2 callers
Function
splitmix64
mlx/compile.cpp:549
↓ 2 callers
Function
std
mlx/ops.h:668
↓ 2 callers
Method
store_result
Store results from simdgroup_matrix results into device memory */
mlx/backend/metal/kernels/steel/attn/mma.h:560
↓ 2 callers
Function
str_split
Split string into array.
mlx/backend/cpu/jit_compiler.cpp:18
↓ 2 callers
Function
stream_from_thread_local_stream
mlx/stream.cpp:84
↓ 2 callers
Function
structure_sentinel
python/src/trees.cpp:264
↓ 2 callers
Function
subgraph_to_key
mlx/backend/cuda/device.cpp:361
↓ 2 callers
Function
sum_gradients
(group)
python/mlx/nn/layers/distributed.py:15
↓ 2 callers
Method
sum_scatter
mlx/distributed/mpi/mpi.cpp:475
↓ 2 callers
Function
supports_sdpa_cudnn
mlx/backend/cuda/scaled_dot_product_attention.cpp:315
↓ 2 callers
Method
tensor_4d
Create a 4D cuDNN tensor from 1D array, with |axis| being contiguous dim.
mlx/backend/cuda/cudnn_utils.h:133
↓ 2 callers
Function
thread_swap
mlx/backend/metal/kernels/sort.h:16
↓ 2 callers
Function
threadgroup_size_from_row_size
mlx/backend/metal/reduce.cpp:214
↓ 2 callers
Function
tile_matmad
mlx/backend/metal/kernels/steel/attn/mma.h:435
↓ 2 callers
Function
timeit
(fn, a)
benchmarks/python/synchronize_bench.py:8
↓ 2 callers
Function
to_array_with_accessor
python/src/utils.cpp:87
↓ 2 callers
Method
to_json
(self)
python/mlx/_distributed_utils/common.py:26
↓ 2 callers
Method
to_scatter_gather_entry
mlx/distributed/jaccl/lib/jaccl/rdma.h:118
↓ 2 callers
Function
tree_map_with_path
Applies ``fn`` to the path and leaves of the Python tree ``tree`` and returns a new collection with the results. This function is the same :f
python/mlx/utils.py:62
↓ 2 callers
Function
tri
mlx/ops.h:125
↓ 2 callers
Function
tri
mlx/ops.cpp:370
↓ 2 callers
Function
tri_inv
mlx/linalg.cpp:323
↓ 2 callers
Function
triu
mlx/ops.cpp:384
↓ 2 callers
Function
try_load_bundle
mlx/backend/metal/device.cpp:83
↓ 2 callers
Function
ulp_bf16_at
(x)
examples/python/qqmm.py:14
↓ 2 callers
Function
unary_complex_to_float
mlx/backend/cpu/unary.h:228
↓ 2 callers
Function
unary_real_fp
mlx/backend/cpu/unary.h:112
↓ 2 callers
Method
unfreeze
Unfreeze the Module's parameters or some of them. This function is idempotent ie unfreezing a model that is not frozen is a noop.
python/mlx/nn/layers/base.py:519
↓ 2 callers
Function
unified_free
mlx/backend/cuda/allocator.cpp:83
↓ 2 callers
Function
unpack_32_4
mlx/io/gguf_quants.cpp:11
↓ 2 callers
Function
unslice_kv
Get original kv from slices, i.e. undo keys[..., :offset, :]
mlx/backend/cuda/scaled_dot_product_attention.cpp:111
↓ 2 callers
Function
upproject
(x, w)
benchmarks/python/sdpa_vector_bench.py:16
↓ 2 callers
Function
usage
mlx/distributed/jaccl/lib/examples/allreduce_bench.cpp:45
↓ 2 callers
Function
use_cudnn_for_decoding
mlx/backend/cuda/scaled_dot_product_attention.cpp:72
↓ 2 callers
Method
valid_parameter_filter
(module, key, value)
python/mlx/nn/layers/base.py:235
↓ 2 callers
Function
validate_argnums_argnames
python/src/transforms.cpp:40
↓ 2 callers
Function
validate_lu
mlx/linalg.cpp:569
↓ 2 callers
Function
validate_quantized_input
mlx/ops.cpp:75
↓ 2 callers
Function
validate_solve
mlx/linalg.cpp:635
↓ 2 callers
Function
vmap_replace
mlx/transforms.cpp:768
↓ 2 callers
Function
vmap_trace
mlx/transforms.cpp:708
↓ 2 callers
Method
wait
mlx/3rdparty/pocketfft.h:560
↓ 2 callers
Function
wait_for_one
mlx/scheduler.h:100
↓ 2 callers
Function
write
mlx/backend/metal/kernels/fft/readwrite.h:123
↓ 2 callers
Function
write_header
mlx/export.cpp:523
↓ 1 callers
Function
CommandEncoder
mlx/backend/metal/device.h:29
↓ 1 callers
Function
FunctionExporter
mlx/export_impl.h:22
↓ 1 callers
Function
MPINPLACE
mlx/3rdparty/pocketfft.h:277
↓ 1 callers
Function
Scheduler
Not copyable or moveable
mlx/scheduler.h:73
↓ 1 callers
Method
__delattr__
(self, name)
python/mlx/nn/layers/base.py:117
↓ 1 callers
Method
__init__
( self, dims: int, traditional: bool = False, base: float = 10000, sca
python/mlx/nn/layers/positional_encoding.py:30
↓ 1 callers
Method
__init__
(self, in_channels, hidden_channels=16)
benchmarks/python/conv3d_train_bench_cpu.py:15
↓ 1 callers
Method
__init__
(self, in_channels, hidden_channels=32)
benchmarks/python/conv2d_train_bench_cpu.py:15
← previous
next →
1,101–1,200 of 4,946, ranked by callers