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
↓ 3 callers
Function
get_reduction_plan
mlx/backend/common/reduce.cpp:29
↓ 3 callers
Function
get_ternary_op_type
mlx/backend/common/ternary.h:19
↓ 3 callers
Function
get_valid_axis
mlx/random.cpp:371
↓ 3 callers
Function
hadamard_matrices
mlx/backend/common/hadamard.h:81
↓ 3 callers
Function
hadamard_transform
mlx/ops.cpp:500
↓ 3 callers
Function
has_native_bf16_support
Check at runtime if the CPU supports native bfloat16 (FEAT_BF16). This allows us to compile once for all Macs but still enable the feature if it is s
mlx/distributed/jaccl/lib/jaccl/types.h:130
↓ 3 callers
Function
in_dynamic_tracing
Return true if we are in a dynamic (shapeless) trace used for compiling or * exporting graphs with dynamic shapes. */
mlx/transforms_impl.h:75
↓ 3 callers
Function
init
mlx/distributed/jaccl/lib/jaccl/jaccl.cpp:191
↓ 3 callers
Function
init
()
examples/export/train_mlp.py:34
↓ 3 callers
Function
is_broadcast
mlx/compile.cpp:65
↓ 3 callers
Function
is_static_cast
mlx/backend/common/compiled.h:12
↓ 3 callers
Function
isfinite
mlx/ops.cpp:1853
↓ 3 callers
Function
l2_norm
mlx/linalg.cpp:43
↓ 3 callers
Method
leaf_modules
Return the submodules that do not contain other modules.
python/mlx/nn/layers/base.py:296
↓ 3 callers
Method
load
mlx/backend/metal/kernels/steel/attn/nax.h:666
↓ 3 callers
Method
load_rows
mlx/backend/metal/kernels/steel/attn/nax.h:726
↓ 3 callers
Function
load_safe
mlx/backend/metal/kernels/steel/gemm/loader.h:25
↓ 3 callers
Method
load_unsafe
mlx/backend/metal/kernels/fp_quantized_nax.h:130
↓ 3 callers
Method
load_unsafe
mlx/backend/metal/kernels/quantized_nax.h:631
↓ 3 callers
Function
log1p
https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html#1202
mlx/backend/metal/kernels/utils.h:312
↓ 3 callers
Function
matmul
(x, y)
benchmarks/python/comparative/bench_mlx.py:56
↓ 3 callers
Function
merge_one
Helper like below but only merges the two provided arrays. If the src has siblings then these won't be merged to the dst.
mlx/compile.cpp:231
↓ 3 callers
Function
mlx_atomic_load_explicit
mlx/backend/metal/kernels/atomic.h:39
↓ 3 callers
Function
mlx_atomic_store_explicit
mlx/backend/metal/kernels/atomic.h:45
↓ 3 callers
Function
mlx_expand_ellipsis
python/src/indexing.cpp:210
↓ 3 callers
Function
mlx_scatter_args_array
python/src/indexing.cpp:510
↓ 3 callers
Function
mlx_segmented_mm_loop
MLX loop-of-matmuls baseline.
benchmarks/python/segmented_mm_bench.py:43
↓ 3 callers
Function
nbytes
The number of bytes in the array. */
mlx/array.h:105
↓ 3 callers
Function
nd_loop
Helper for the ndimensional strided loop
mlx/backend/cpu/reduce.cpp:115
↓ 3 callers
Method
next
mlx/backend/metal/kernels/fp_quantized_nax.h:176
↓ 3 callers
Method
next
mlx/backend/metal/kernels/quantized_nax.h:674
↓ 3 callers
Function
next_fast_n
mlx/backend/metal/fft.cpp:85
↓ 3 callers
Function
normalize_slice
mlx/ops.cpp:645
↓ 3 callers
Function
notify_new_task
mlx/scheduler.h:80
↓ 3 callers
Function
notify_task_completion
mlx/scheduler.h:88
↓ 3 callers
Function
offset_neg_idx
mlx/backend/metal/kernels/indexing/indexing.h:17
↓ 3 callers
Function
ones_like
mlx/ops.cpp:342
↓ 3 callers
Function
pad_gpu
mlx/backend/gpu/slicing.cpp:18
↓ 3 callers
Method
prepare
mlx/backend/cuda/cudnn_utils.cpp:93
↓ 3 callers
Function
prime_factors
mlx/backend/metal/fft.cpp:35
↓ 3 callers
Function
print_graph
mlx/graph_utils.h:24
↓ 3 callers
Function
qmv
mlx/backend/metal/quantized.cpp:235
↓ 3 callers
Function
quantize
Quantize the sub-modules of a module according to a predicate. By default all layers that define a ``to_quantized()`` method will be quantize
python/mlx/nn/layers/quantized.py:22
↓ 3 callers
Function
quantized_matmul
mlx/ops.cpp:4477
↓ 3 callers
Method
queue_pair_init
mlx/distributed/jaccl/lib/jaccl/rdma.cpp:204
↓ 3 callers
Method
queue_pair_rtr
mlx/distributed/jaccl/lib/jaccl/rdma.cpp:222
↓ 3 callers
Method
queue_pair_rts
mlx/distributed/jaccl/lib/jaccl/rdma.cpp:252
↓ 3 callers
Method
rank
mlx/distributed/jaccl/lib/jaccl/ring.h:29
↓ 3 callers
Function
real
mlx/backend/cpu/simd/base_simd.h:150
↓ 3 callers
Method
recv
mlx/distributed/ring/ring.cpp:554
↓ 3 callers
Function
relative_to_current_binary
mlx/backend/cuda/delayload.cpp:14
↓ 3 callers
Method
reset
python/src/random.cpp:28
↓ 3 callers
Function
round
mlx/ops.cpp:3177
↓ 3 callers
Function
run_bench
(system_size, fft_sizes, backend="mlx", dim=1)
benchmarks/python/fft_bench.py:21
↓ 3 callers
Function
scaled_dot_product_attention
Computes: O = softmax(Q @ K.T) @ V **/
mlx/fast.cpp:613
↓ 3 callers
Function
scan_gpu_inplace
mlx/backend/metal/scan.cpp:15
↓ 3 callers
Function
scatter
(dst, x, idx)
benchmarks/python/scatter_bench.py:11
↓ 3 callers
Function
scatter_prod
mlx/ops.h:1240
↓ 3 callers
Method
set_bias
mlx/backend/cuda/cublas_utils.cpp:218
↓ 3 callers
Function
set_float_word
mlx/backend/metal/kernels/cexpf.h:44
↓ 3 callers
Function
set_printoptions
mlx/utils.cpp:116
↓ 3 callers
Method
setup
(self, verbose=False, auto_setup=False)
python/mlx/_distributed_utils/config.py:162
↓ 3 callers
Function
shape
* Get the size of the corresponding dimension. * * This function supports negative indexing and provides * bounds checking. */
mlx/array.h:124
↓ 3 callers
Method
size
mlx/distributed/nccl/nccl.cpp:328
↓ 3 callers
Function
slice
mlx/backend/common/slicing.cpp:38
↓ 3 callers
Function
squeeze_impl
mlx/ops.cpp:529
↓ 3 callers
Function
steel_matmul
mlx/backend/metal/matmul.h:105
↓ 3 callers
Method
step
(w)
python/tests/test_compile.py:666
↓ 3 callers
Method
store_result_safe
mlx/backend/metal/kernels/steel/attn/mma.h:573
↓ 3 callers
Function
strided_reduce
mlx/backend/cpu/reduce.cpp:72
↓ 3 callers
Function
string_to_quantization_mode
mlx/primitives.cpp:3433
↓ 3 callers
Function
svd
mlx/linalg.cpp:250
↓ 3 callers
Function
swapaxes_in_eval
mlx/backend/gpu/copy.cpp:84
↓ 3 callers
Method
tell
mlx/io/load.h:141
↓ 3 callers
Method
tensor_nchw
mlx/backend/cuda/cudnn_utils.h:126
↓ 3 callers
Function
threefry2x32_hash
mlx/backend/cpu/threefry.cpp:7
↓ 3 callers
Function
time_fn
(fn, *args, **kwargs)
benchmarks/python/distributed_bench.py:13
↓ 3 callers
Function
tree_fill
Fill a pytree (recursive dict or list of dict or list) in place with the given arrays Non dict or list nodes are ignored
python/src/trees.cpp:212
↓ 3 callers
Function
tree_reduce
Applies a reduction to the leaves of a Python tree. This function reduces Python trees into an accumulated result by applying the provided fu
python/mlx/utils.py:244
↓ 3 callers
Function
tree_visit_update
python/src/trees.cpp:173
↓ 3 callers
Function
tril
mlx/ops.cpp:376
↓ 3 callers
Function
unified_malloc
mlx/backend/cuda/allocator.cpp:73
↓ 3 callers
Function
upsample_nearest
(x: mx.array, scale_factor: Tuple)
python/mlx/nn/layers/upsample.py:92
↓ 3 callers
Method
valid
Check if the event is valid
mlx/event.h:30
↓ 3 callers
Function
validate_and_extract_inputs
python/src/export.cpp:23
↓ 3 callers
Function
validate_mode_with_type
mlx/ops.cpp:4397
↓ 3 callers
Function
var
mlx/ops.h:643
↓ 3 callers
Function
wrap_export_function
python/src/export.cpp:115
↓ 3 callers
Method
write
mlx/backend/metal/kernels/fft/readwrite.h:283
↓ 2 callers
Function
Device
mlx/backend/metal/device.h:138
↓ 2 callers
Method
RoPE
mlx/fast_primitives.h:160
↓ 2 callers
Function
Stream
mlx/stream.h:15
↓ 2 callers
Function
UnaryPrimitive
mlx/primitives.h:149
↓ 2 callers
Method
__init__
( self, in_channels: int, out_channels: int, kernel_size: int, stride:
python/mlx/nn/layers/convolution_transpose.py:34
↓ 2 callers
Method
__init__
( self, input_dims: int, output_dims: int, group_size: int = None, bit
python/mlx/nn/layers/quantized.py:338
↓ 2 callers
Method
__init__
(self, input_dims: int, output_dims: int, bias: bool = True)
python/mlx/nn/layers/linear.py:48
↓ 2 callers
Method
__init__
( self, input_size: int, hidden_size: int, bias: bool = True, nonlinea
python/mlx/nn/layers/recurrent.py:39
↓ 2 callers
Method
__init__
(self, p: float = 0.5)
python/mlx/nn/layers/dropout.py:18
↓ 2 callers
Method
__init__
( self, in_channels: int, out_channels: int, kernel_size: int, stride:
python/mlx/nn/layers/convolution.py:34
↓ 2 callers
Method
__test_ops
( self, ref_op, # Function that outputs array_like mlx_op, # Function that outputs a
python/tests/test_bf16.py:27
← previous
next →
801–900 of 4,946, ranked by callers