MCPcopy Create free account

hub / github.com/ml-explore/mlx / functions

Functions4,946 in github.com/ml-explore/mlx

↓ 2 callersMethodoperator()
mlx/export.cpp:879
↓ 2 callersMethodoutput_shapes
mlx/compile.cpp:199
↓ 2 callersFunctionpad_and_swizzle_scales
mlx/backend/cuda/quantized/qqmm_utils.h:30
↓ 2 callersFunctionparse_address
* Parse a sockaddr from an ip and port provided as strings. */
mlx/distributed/jaccl/lib/jaccl/tcp.cpp:16
↓ 2 callersFunctionparse_size
mlx/distributed/jaccl/lib/examples/allreduce_bench.cpp:58
↓ 2 callersFunctionpermutation
mlx/random.cpp:477
↓ 2 callersFunctionpredicate
(x)
benchmarks/python/comparative/compare.py:60
↓ 2 callersFunctionprepare_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 callersFunctionprepare_reshape
mlx/backend/common/common.cpp:147
↓ 2 callersFunctionprepare_sdpa_sinks
mlx/backend/cuda/scaled_dot_product_attention.cpp:28
↓ 2 callersMethodprint
mlx/utils.cpp:37
↓ 2 callersFunctionpy_value_and_grad
python/src/transforms.cpp:69
↓ 2 callersFunctionqmm
mlx/backend/metal/quantized.cpp:680
↓ 2 callersFunctionqqmm
mlx/ops.cpp:4619
↓ 2 callersFunctionquantize_input
mlx/backend/cuda/quantized/qqmm.cpp:17
↓ 2 callersFunctionradix4
mlx/backend/metal/kernels/fft/radix.h:56
↓ 2 callersMethodrecycle_to_cache
mlx/backend/common/buffer_cache.h:48
↓ 2 callersFunctionregister_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 callersFunctionreshape_in_eval
mlx/backend/gpu/copy.cpp:57
↓ 2 callersMethodrestart
mlx/3rdparty/pocketfft.h:759
↓ 2 callersMethodreuse_from_cache
mlx/backend/common/buffer_cache.h:30
↓ 2 callersFunctionreverse_bytes
mlx/export.cpp:100
↓ 2 callersFunctionrms_norm
(x, w, eps)
benchmarks/python/rms_norm_bench.py:8
↓ 2 callersFunctionrope
(x)
benchmarks/python/comparative/bench_mlx.py:286
↓ 2 callersMethodrun
(self)
python/mlx/extension.py:72
↓ 2 callersMethodrun
Main kernel function */
mlx/backend/metal/kernels/steel/gemm/gemm.h:140
↓ 2 callersMethodrun
Main kernel function */
mlx/backend/metal/kernels/steel/attn/attn.h:141
↓ 2 callersMethodrun
mlx/backend/cuda/quantized/cublas_qqmm.cpp:141
↓ 2 callersMethodrun
mlx/backend/cuda/gemms/cublas_gemm.cpp:140
↓ 2 callersMethodsave_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 callersMethodscalar
Create a cuDNN tensor for scalar.
mlx/backend/cuda/cudnn_utils.h:147
↓ 2 callersFunctionscatter
mlx/backend/cpu/indexing.cpp:402
↓ 2 callersFunctionscatter_axis
mlx/ops.cpp:3498
↓ 2 callersFunctionscatter_min
mlx/ops.h:1271
↓ 2 callersFunctionscatter_unsort
(x, inv_order, shape=None)
benchmarks/python/gather_qmm_bench.py:21
↓ 2 callersFunctionseconds
examples/cpp/timer.h:12
↓ 2 callersMethodseek
mlx/backend/common/utils.h:152
↓ 2 callersMethodsend
mlx/distributed/ring/ring.cpp:533
↓ 2 callersMethodset_buffer
mlx/backend/metal/device.cpp:289
↓ 2 callersFunctionset_copy_output_data
mlx/backend/common/copy.h:25
↓ 2 callersFunctionset_default_stream
mlx/stream.cpp:52
↓ 2 callersFunctionset_status
mlx/array.h:414
↓ 2 callersFunctionset_ternary_op_output_data
mlx/backend/common/ternary.h:44
↓ 2 callersFunctionshared_buffer_reshape
mlx/backend/common/common.cpp:184
↓ 2 callersMethodsimd_exclusive_scan
mlx/backend/metal/kernels/scan.h:115
↓ 2 callersFunctionslice_update_prod
mlx/ops.cpp:977
↓ 2 callersFunctionsoftplus
r"""Applies the Softplus function. Applies :math:`\log(1 + \exp(x))` element wise.
python/mlx/nn/layers/activations.py:93
↓ 2 callersFunctionsplitmix64
mlx/compile.cpp:549
↓ 2 callersFunctionstd
mlx/ops.h:668
↓ 2 callersMethodstore_result
Store results from simdgroup_matrix results into device memory */
mlx/backend/metal/kernels/steel/attn/mma.h:560
↓ 2 callersFunctionstr_split
Split string into array.
mlx/backend/cpu/jit_compiler.cpp:18
↓ 2 callersFunctionstream_from_thread_local_stream
mlx/stream.cpp:84
↓ 2 callersFunctionstructure_sentinel
python/src/trees.cpp:264
↓ 2 callersFunctionsubgraph_to_key
mlx/backend/cuda/device.cpp:361
↓ 2 callersFunctionsum_gradients
(group)
python/mlx/nn/layers/distributed.py:15
↓ 2 callersMethodsum_scatter
mlx/distributed/mpi/mpi.cpp:475
↓ 2 callersFunctionsupports_sdpa_cudnn
mlx/backend/cuda/scaled_dot_product_attention.cpp:315
↓ 2 callersMethodtensor_4d
Create a 4D cuDNN tensor from 1D array, with |axis| being contiguous dim.
mlx/backend/cuda/cudnn_utils.h:133
↓ 2 callersFunctionthread_swap
mlx/backend/metal/kernels/sort.h:16
↓ 2 callersFunctionthreadgroup_size_from_row_size
mlx/backend/metal/reduce.cpp:214
↓ 2 callersFunctiontile_matmad
mlx/backend/metal/kernels/steel/attn/mma.h:435
↓ 2 callersFunctiontimeit
(fn, a)
benchmarks/python/synchronize_bench.py:8
↓ 2 callersFunctionto_array_with_accessor
python/src/utils.cpp:87
↓ 2 callersMethodto_json
(self)
python/mlx/_distributed_utils/common.py:26
↓ 2 callersMethodto_scatter_gather_entry
mlx/distributed/jaccl/lib/jaccl/rdma.h:118
↓ 2 callersFunctiontree_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 callersFunctiontri
mlx/ops.h:125
↓ 2 callersFunctiontri
mlx/ops.cpp:370
↓ 2 callersFunctiontri_inv
mlx/linalg.cpp:323
↓ 2 callersFunctiontriu
mlx/ops.cpp:384
↓ 2 callersFunctiontry_load_bundle
mlx/backend/metal/device.cpp:83
↓ 2 callersFunctionulp_bf16_at
(x)
examples/python/qqmm.py:14
↓ 2 callersFunctionunary_complex_to_float
mlx/backend/cpu/unary.h:228
↓ 2 callersFunctionunary_real_fp
mlx/backend/cpu/unary.h:112
↓ 2 callersMethodunfreeze
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 callersFunctionunified_free
mlx/backend/cuda/allocator.cpp:83
↓ 2 callersFunctionunpack_32_4
mlx/io/gguf_quants.cpp:11
↓ 2 callersFunctionunslice_kv
Get original kv from slices, i.e. undo keys[..., :offset, :]
mlx/backend/cuda/scaled_dot_product_attention.cpp:111
↓ 2 callersFunctionupproject
(x, w)
benchmarks/python/sdpa_vector_bench.py:16
↓ 2 callersFunctionusage
mlx/distributed/jaccl/lib/examples/allreduce_bench.cpp:45
↓ 2 callersFunctionuse_cudnn_for_decoding
mlx/backend/cuda/scaled_dot_product_attention.cpp:72
↓ 2 callersMethodvalid_parameter_filter
(module, key, value)
python/mlx/nn/layers/base.py:235
↓ 2 callersFunctionvalidate_argnums_argnames
python/src/transforms.cpp:40
↓ 2 callersFunctionvalidate_lu
mlx/linalg.cpp:569
↓ 2 callersFunctionvalidate_quantized_input
mlx/ops.cpp:75
↓ 2 callersFunctionvalidate_solve
mlx/linalg.cpp:635
↓ 2 callersFunctionvmap_replace
mlx/transforms.cpp:768
↓ 2 callersFunctionvmap_trace
mlx/transforms.cpp:708
↓ 2 callersMethodwait
mlx/3rdparty/pocketfft.h:560
↓ 2 callersFunctionwait_for_one
mlx/scheduler.h:100
↓ 2 callersFunctionwrite
mlx/backend/metal/kernels/fft/readwrite.h:123
↓ 2 callersFunctionwrite_header
mlx/export.cpp:523
↓ 1 callersFunctionCommandEncoder
mlx/backend/metal/device.h:29
↓ 1 callersFunctionFunctionExporter
mlx/export_impl.h:22
↓ 1 callersFunctionMPINPLACE
mlx/3rdparty/pocketfft.h:277
↓ 1 callersFunctionScheduler
Not copyable or moveable
mlx/scheduler.h:73
↓ 1 callersMethod__delattr__
(self, name)
python/mlx/nn/layers/base.py:117
↓ 1 callersMethod__init__
( self, dims: int, traditional: bool = False, base: float = 10000, sca
python/mlx/nn/layers/positional_encoding.py:30
↓ 1 callersMethod__init__
(self, in_channels, hidden_channels=16)
benchmarks/python/conv3d_train_bench_cpu.py:15
↓ 1 callersMethod__init__
(self, in_channels, hidden_channels=32)
benchmarks/python/conv2d_train_bench_cpu.py:15
← previousnext →1,101–1,200 of 4,946, ranked by callers