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
↓ 6 callers
Function
atleast_3d
mlx/ops.cpp:6134
↓ 6 callers
Function
average_gradients
Average the gradients across the distributed processes in the passed group. This helper enables concatenating several gradients of small arrays t
python/mlx/nn/utils.py:99
↓ 6 callers
Function
broadcast
mlx/backend/common/broadcasting.cpp:7
↓ 6 callers
Function
ceildiv
mlx/backend/metal/utils.h:80
↓ 6 callers
Function
ceildiv
mlx/distributed/ring/ring.cpp:124
↓ 6 callers
Function
check_float
mlx/linalg.cpp:21
↓ 6 callers
Function
collapse_batches
mlx/backend/common/matmul.h:12
↓ 6 callers
Method
commit
mlx/backend/metal/device.cpp:450
↓ 6 callers
Function
comparison_op_cpu
mlx/backend/cpu/binary.h:360
↓ 6 callers
Function
copy_gpu_inplace
mlx/backend/gpu/copy.cpp:15
↓ 6 callers
Function
create_matrix_layout
mlx/backend/cuda/cublas_utils.cpp:12
↓ 6 callers
Function
device_count
mlx/backend/cuda/device_info.cpp:211
↓ 6 callers
Function
dtype_to_cublas_type
mlx/backend/cuda/cublas_utils.h:22
↓ 6 callers
Method
elems
mlx/backend/metal/kernels/steel/attn/mma.h:286
↓ 6 callers
Method
end_encoding
mlx/backend/metal/device.cpp:376
↓ 6 callers
Function
ensure_row_contiguous
mlx/backend/metal/matmul.cpp:43
↓ 6 callers
Function
fft_op
mlx/backend/metal/fft.cpp:508
↓ 6 callers
Method
filter_and_map
Recursively filter the contents of the module using ``filter_fn``, namely only select keys and values where ``filter_fn`` returns true.
python/mlx/nn/layers/base.py:245
↓ 6 callers
Function
from_fp8
mlx/ops.cpp:5232
↓ 6 callers
Function
full_like
mlx/ops.h:79
↓ 6 callers
Function
get_active_memory
mlx/backend/cuda/allocator.cpp:421
↓ 6 callers
Function
get_bytes_per_pack
mlx/backend/metal/kernels/fp_quantized.h:26
↓ 6 callers
Function
get_kernel_reduce_ndim
mlx/backend/metal/reduce.cpp:204
↓ 6 callers
Function
get_pack_factor
mlx/backend/common/quantized.h:5
↓ 6 callers
Function
inv
mlx/linalg.cpp:319
↓ 6 callers
Function
isclose
mlx/ops.cpp:1935
↓ 6 callers
Function
load_library_from_path
mlx/backend/metal/device.cpp:72
↓ 6 callers
Method
load_safe
mlx/backend/metal/kernels/fp_quantized_nax.h:146
↓ 6 callers
Method
load_safe
mlx/backend/metal/kernels/quantized_nax.h:644
↓ 6 callers
Function
log2
mlx/ops.cpp:3107
↓ 6 callers
Function
log_warning
(*args, **kwargs)
python/mlx/_distributed_utils/common.py:128
↓ 6 callers
Function
logcumsumexp
mlx/ops.cpp:3994
↓ 6 callers
Method
multiply
python/src/array.cpp:51
↓ 6 callers
Method
name
mlx/distributed/primitives.h:48
↓ 6 callers
Function
normalize_axis_index
mlx/utils.cpp:169
↓ 6 callers
Function
outer
mlx/ops.cpp:5448
↓ 6 callers
Function
pinv
mlx/linalg.cpp:356
↓ 6 callers
Function
pre_out
mlx/backend/metal/kernels/fft/readwrite.h:86
↓ 6 callers
Function
radix6
mlx/backend/metal/kernels/fft/radix.h:96
↓ 6 callers
Function
scatter
Scatter updates to given indices */
mlx/ops.cpp:3570
↓ 6 callers
Function
schedule
(step)
python/mlx/optimizers/schedulers.py:28
↓ 6 callers
Method
seek
python/src/load.cpp:142
↓ 6 callers
Method
set_memory_limit
mlx/backend/cuda/allocator.cpp:364
↓ 6 callers
Function
sort
mlx/backend/cpu/sort.cpp:124
↓ 6 callers
Method
store_slice
mlx/backend/metal/kernels/steel/gemm/nax.h:796
↓ 6 callers
Function
strided_reduce_general_dispatch
mlx/backend/metal/reduce.cpp:919
↓ 6 callers
Method
subtract
python/src/array.cpp:47
↓ 6 callers
Function
tensordot
mlx/ops.cpp:5363
↓ 6 callers
Function
term_size
mlx/einsum.cpp:117
↓ 6 callers
Function
timeit
(fn, its=100, args=[])
benchmarks/python/einsum_bench.py:9
↓ 6 callers
Method
to_quantized
Return a quantized approximation of this layer. If ``quantize_input`` is ``False``, returns a :obj:`QuantizedLinear` (weights are qua
python/mlx/nn/layers/linear.py:73
↓ 6 callers
Function
trace
mlx/ops.cpp:6013
↓ 6 callers
Method
train
Set the model in or out of training mode. Training mode only applies to certain layers. For example :obj:`Dropout` applies a random m
python/mlx/nn/layers/base.py:572
↓ 6 callers
Function
transpose
mlx/ops.cpp:1556
↓ 6 callers
Function
unary_op_gpu
mlx/backend/metal/unary.cpp:98
↓ 6 callers
Function
uniform
mlx/random.cpp:95
↓ 6 callers
Method
update
mlx/backend/cuda/fence.cpp:26
↓ 6 callers
Function
vector_key
mlx/backend/cuda/cudnn_utils.h:83
↓ 6 callers
Method
write
python/src/load.cpp:378
↓ 5 callers
Function
Allocator
mlx/allocator.h:45
↓ 5 callers
Method
__gemm_test
( self, shape_a, shape_b, np_dtype=np.float32, f_np_a=lambda x: x,
python/tests/test_blas.py:17
↓ 5 callers
Method
__init__
( self, dims: int = 512, num_heads: int = 8, num_encoder_layers: int = 6,
python/mlx/nn/layers/transformer.py:314
↓ 5 callers
Method
_run_ffts
(self, shape, atol=1e-4, rtol=1e-4)
python/tests/test_fft.py:132
↓ 5 callers
Function
_shard
Returns a new parameter tree with the weights sharded according to the sharding_predicate. The sharding predicate should return the sharding
python/mlx/nn/layers/distributed.py:40
↓ 5 callers
Function
addmm
Compute D = beta * C + alpha * (A @ B) */
mlx/ops.cpp:5466
↓ 5 callers
Function
all_sum
mlx/distributed/ops.cpp:25
↓ 5 callers
Method
all_sum
mlx/distributed/jaccl/lib/jaccl/ring.cpp:128
↓ 5 callers
Function
binary_int_op_cpu
mlx/backend/cpu/binary.h:466
↓ 5 callers
Function
bitwise_impl
mlx/ops.cpp:6199
↓ 5 callers
Function
block_masked_mm
Compute matrix product with tile-level masking */
mlx/ops.cpp:5608
↓ 5 callers
Function
check_contiguity
mlx/backend/common/utils.h:197
↓ 5 callers
Function
clip
mlx/ops.cpp:1180
↓ 5 callers
Function
contiguous
mlx/ops.cpp:6416
↓ 5 callers
Method
cuda_device
mlx/backend/cuda/device.h:173
↓ 5 callers
Method
detach
mlx/array.cpp:116
↓ 5 callers
Function
dispatch_dtype
mlx/distributed/nccl/nccl.cpp:91
↓ 5 callers
Function
get_alignment
Return pointer alignment of |x|'s data.
mlx/backend/cuda/cudnn_utils.h:36
↓ 5 callers
Function
get_streams
mlx/stream.cpp:60
↓ 5 callers
Function
identity
mlx/ops.h:120
↓ 5 callers
Function
inner
mlx/ops.cpp:5453
↓ 5 callers
Function
is_donatable
mlx/backend/common/utils.h:218
↓ 5 callers
Function
linspace
mlx/ops.cpp:232
↓ 5 callers
Function
log10
mlx/ops.cpp:3117
↓ 5 callers
Function
lu
mlx/linalg.cpp:602
↓ 5 callers
Function
mlx_func
python/src/mlx_func.h:19
↓ 5 callers
Method
name
mlx/compile.cpp:187
↓ 5 callers
Function
nd_array_to_mlx
python/src/convert.cpp:36
↓ 5 callers
Function
next
Iteration helper */
mlx/backend/metal/kernels/steel/gemm/loader.h:131
↓ 5 callers
Function
ones
mlx/ops.cpp:338
↓ 5 callers
Function
perform_fft
mlx/backend/metal/kernels/fft.h:158
↓ 5 callers
Function
post_in
mlx/backend/metal/kernels/fft/readwrite.h:35
↓ 5 callers
Function
quantization_params_from_mode
mlx/ops.cpp:4368
↓ 5 callers
Method
recv
mlx/distributed/jaccl/lib/jaccl/tcp.cpp:150
↓ 5 callers
Method
release_cached_buffers
mlx/backend/common/buffer_cache.h:58
↓ 5 callers
Function
reshape
mlx/backend/cpu/primitives.cpp:21
↓ 5 callers
Method
resize
mlx/backend/cuda/lru_cache.h:52
↓ 5 callers
Function
rint
mlx/backend/cpu/simd/base_simd.h:65
↓ 5 callers
Function
rope
mlx/fast.cpp:367
↓ 5 callers
Function
safe_to_int32
python/src/indexing.cpp:32
↓ 5 callers
Function
scatter_max
mlx/ops.h:1256
← previous
next →
501–600 of 4,946, ranked by callers