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
↓ 9 callers
Function
remap_reduce_types
mlx/backend/metal/reduce.cpp:245
↓ 9 callers
Method
rend
mlx/small_vector.h:269
↓ 9 callers
Method
resize
mlx/3rdparty/pocketfft.h:215
↓ 9 callers
Function
rms_norm
(x, weight, eps)
python/tests/test_fast.py:51
↓ 9 callers
Function
send
mlx/distributed/ops.cpp:103
↓ 9 callers
Function
set_default_device
mlx/device.cpp:20
↓ 9 callers
Function
set_unary_output_data
mlx/backend/common/unary.h:10
↓ 9 callers
Function
solve
mlx/linalg.cpp:682
↓ 9 callers
Function
sort
Returns a sorted copy of the flattened array. */
mlx/ops.cpp:2550
↓ 9 callers
Function
sum
mlx/ops.cpp:2044
↓ 8 callers
Function
PMINPLACE
mlx/3rdparty/pocketfft.h:275
↓ 8 callers
Method
__gemv_test
( self, shape_mat, shape_vec, np_dtype=np.float32, mat_first=True,
python/tests/test_blas.py:262
↓ 8 callers
Method
_maybe_schedule
To be used by derived classes to optionally put a parameter on a schedule.
python/mlx/optimizers/optimizers.py:143
↓ 8 callers
Function
buffer_size_from_message
mlx/distributed/jaccl/lib/jaccl/rdma.h:34
↓ 8 callers
Method
cbegin
mlx/small_vector.h:254
↓ 8 callers
Function
clamp
mlx/backend/cpu/simd/neon_fp16_simd.h:165
↓ 8 callers
Function
compute_reduce_shape
mlx/ops.cpp:25
↓ 8 callers
Function
dtype_to_cudnn_type
Map dtype to cudnn data type.
mlx/backend/cuda/cudnn_utils.h:54
↓ 8 callers
Function
einsum_path
mlx/einsum.cpp:829
↓ 8 callers
Function
ensure_contiguous
mlx/backend/cuda/quantized/quantized_utils.h:40
↓ 8 callers
Function
ensure_row_contiguous
mlx/backend/cpu/quantized.cpp:18
↓ 8 callers
Method
exec
mlx/3rdparty/pocketfft.h:1471
↓ 8 callers
Method
exit
python/src/stream.cpp:32
↓ 8 callers
Function
gemm
mlx/backend/metal/kernels/steel/gemm/kernels/steel_gemm_fused.h:29
↓ 8 callers
Method
get_kernel
mlx/backend/cuda/jit_module.cpp:437
↓ 8 callers
Function
ifftshift
mlx/fft.cpp:268
↓ 8 callers
Method
is_open
mlx/io/load.h:133
↓ 8 callers
Method
load
mlx/backend/metal/kernels/fft/readwrite.h:263
↓ 8 callers
Function
load_safetensors
Load array from reader in safetensor format */
mlx/io/safetensors.cpp:108
↓ 8 callers
Method
load_unsafe
mlx/backend/metal/kernels/steel/conv/loaders/loader_channel_l.h:411
↓ 8 callers
Function
log_info
mlx/distributed/ring/ring.cpp:115
↓ 8 callers
Function
measure_runtime
(fn, **kwargs)
benchmarks/python/time_utils.py:29
↓ 8 callers
Function
poll
mlx/distributed/jaccl/lib/jaccl/rdma.h:223
↓ 8 callers
Function
reciprocal
mlx/ops.cpp:2831
↓ 8 callers
Function
recv
mlx/distributed/ops.cpp:126
↓ 8 callers
Function
simd_shuffle_and_fill_up
mlx/backend/metal/kernels/utils.h:393
↓ 8 callers
Function
sinh
mlx/ops.cpp:3048
↓ 8 callers
Method
size
mlx/small_vector.h:276
↓ 8 callers
Function
slice
mlx/ops.cpp:751
↓ 8 callers
Function
sum
mlx/backend/cpu/simd/neon_fp16_simd.h:196
↓ 8 callers
Function
test_arg_reduce_against_cpu
tests/arg_reduce_tests.cpp:27
↓ 8 callers
Method
trainable_parameters
Recursively return all the non frozen :class:`mlx.core.array` members of this Module as a dict of dicts and lists.
python/mlx/nn/layers/base.py:285
↓ 8 callers
Function
tree_unflatten
python/src/trees.cpp:251
↓ 8 callers
Method
update_modules
Replace the child modules of this :class:`Module` instance with the provided ones in the dict of dicts and lists. It is the equivalen
python/mlx/nn/layers/base.py:389
↓ 8 callers
Method
val
mlx/dtype.h:57
↓ 7 callers
Method
Set
mlx/3rdparty/pocketfft.h:236
↓ 7 callers
Method
__init__
(self, axis: int = -1)
python/mlx/nn/layers/activations.py:351
↓ 7 callers
Method
apply
mlx/backend/metal/kernels/steel/attn/transforms.h:29
↓ 7 callers
Method
apply_to_modules
Apply a function to all the modules in this instance (including this instance). Args: apply_fn (Callable): The function t
python/mlx/nn/layers/base.py:412
↓ 7 callers
Function
array_from_list
python/src/convert.cpp:452
↓ 7 callers
Function
bitwise_and
mlx/ops.cpp:6225
↓ 7 callers
Function
build_kernel
mlx/backend/metal/compiled.cpp:16
↓ 7 callers
Method
cend
mlx/small_vector.h:258
↓ 7 callers
Function
cholesky
mlx/linalg.cpp:330
↓ 7 callers
Function
communication_stream
mlx/distributed/distributed.cpp:17
↓ 7 callers
Function
contiguous_copy_cpu
mlx/backend/cpu/copy.cpp:380
↓ 7 callers
Function
copy_gpu_inplace
mlx/backend/metal/copy.cpp:26
↓ 7 callers
Method
datatype
mlx/distributed/mpi/mpi.cpp:205
↓ 7 callers
Function
degrees
mlx/ops.cpp:3087
↓ 7 callers
Function
eigh
mlx/linalg.cpp:535
↓ 7 callers
Method
end
mlx/distributed/jaccl/lib/jaccl/rdma.h:137
↓ 7 callers
Function
ensure_row_contiguous
mlx/backend/metal/conv.cpp:23
↓ 7 callers
Function
fsdp_apply_gradients
Perform a distributed optimizer step by sharding gradients and optimizer states across ranks. This helper function performs the following steps:
python/mlx/nn/utils.py:186
↓ 7 callers
Function
full
mlx/ops.cpp:305
↓ 7 callers
Function
get_slice_params
python/src/indexing.cpp:55
↓ 7 callers
Function
get_temp_file
tests/export_import_tests.cpp:15
↓ 7 callers
Method
good
mlx/io/load.h:137
↓ 7 callers
Function
irfft
Compute the one-dimensional inverse of `rfft`. */
mlx/fft.h:166
↓ 7 callers
Function
is_nax_available
mlx/backend/metal/device.cpp:828
↓ 7 callers
Function
load
Load array from reader in .npy format */
mlx/io/load.cpp:229
↓ 7 callers
Method
load_unsafe
Load from device memory into threadgroup memory - without bound checking */
mlx/backend/metal/kernels/steel/attn/loader.h:74
↓ 7 callers
Method
location
mlx/backend/metal/kernels/utils.h:246
↓ 7 callers
Function
mlx_compute_scatter_args
python/src/indexing.cpp:767
↓ 7 callers
Function
mlx_compute_slice_update_args
python/src/indexing.cpp:791
↓ 7 callers
Function
multivariate_normal
mlx/random.cpp:206
↓ 7 callers
Function
radians
mlx/ops.cpp:3092
↓ 7 callers
Function
randint
()
benchmarks/python/compile_bench.py:28
↓ 7 callers
Method
read
python/src/load.cpp:148
↓ 7 callers
Method
reset
mlx/backend/cuda/cuda_utils.h:46
↓ 7 callers
Method
reset_peak_memory
mlx/backend/cuda/allocator.cpp:355
↓ 7 callers
Function
save
Save array to out stream in .npy format */
mlx/io/load.cpp:144
↓ 7 callers
Function
scalar_to_double
python/src/ops.cpp:38
↓ 7 callers
Function
scalar_to_dtype
python/src/ops.cpp:28
↓ 7 callers
Method
set_name
mlx/graph_utils.cpp:33
↓ 7 callers
Method
size
mlx/distributed/mpi/mpi.cpp:370
↓ 7 callers
Function
softmax_exp
mlx/backend/metal/kernels/softmax.h:4
↓ 7 callers
Method
start
mlx/backend/cuda/worker.cpp:14
↓ 7 callers
Function
step
r"""Applies the Step Activation Function. This function implements a binary step activation, where the output is set to 1 if the input is gre
python/mlx/nn/layers/activations.py:224
↓ 7 callers
Function
tile
mlx/ops.cpp:1328
↓ 7 callers
Function
to_group
mlx/distributed/ops.cpp:15
↓ 7 callers
Function
value_and_grad
* Returns a function which computes the value and gradient of the input * function with respect to a single input array. **/
mlx/transforms.h:87
↓ 6 callers
Method
__conv_general_test
( self, in_shape, wt_shape, stride=1, padding=0, kernel_dilati
python/tests/test_conv.py:686
↓ 6 callers
Method
__default_test
( self, op, np_args, simple_transform=lambda x: x, atol_np=1e-3,
python/tests/test_bf16.py:44
↓ 6 callers
Method
apply_epilogue
mlx/backend/metal/kernels/steel/gemm/mma.h:588
↓ 6 callers
Method
apply_epilogue_safe
mlx/backend/metal/kernels/steel/gemm/mma.h:626
↓ 6 callers
Method
apply_inplace_op
mlx/backend/metal/kernels/steel/gemm/loader.h:63
↓ 6 callers
Function
argpartition
* Returns indices that partition the flattened array * such that the smaller kth elements are first. **/
mlx/ops.cpp:2636
↓ 6 callers
Function
argsort
Returns indices that sort the flattened array. */
mlx/ops.cpp:2571
↓ 6 callers
Function
atleast_1d
mlx/ops.cpp:6094
↓ 6 callers
Function
atleast_2d
mlx/ops.cpp:6112
← previous
next →
401–500 of 4,946, ranked by callers