MCPcopy Create free account

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

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

↓ 6 callersFunctionatleast_3d
mlx/ops.cpp:6134
↓ 6 callersFunctionaverage_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 callersFunctionbroadcast
mlx/backend/common/broadcasting.cpp:7
↓ 6 callersFunctionceildiv
mlx/backend/metal/utils.h:80
↓ 6 callersFunctionceildiv
mlx/distributed/ring/ring.cpp:124
↓ 6 callersFunctioncheck_float
mlx/linalg.cpp:21
↓ 6 callersFunctioncollapse_batches
mlx/backend/common/matmul.h:12
↓ 6 callersMethodcommit
mlx/backend/metal/device.cpp:450
↓ 6 callersFunctioncomparison_op_cpu
mlx/backend/cpu/binary.h:360
↓ 6 callersFunctioncopy_gpu_inplace
mlx/backend/gpu/copy.cpp:15
↓ 6 callersFunctioncreate_matrix_layout
mlx/backend/cuda/cublas_utils.cpp:12
↓ 6 callersFunctiondevice_count
mlx/backend/cuda/device_info.cpp:211
↓ 6 callersFunctiondtype_to_cublas_type
mlx/backend/cuda/cublas_utils.h:22
↓ 6 callersMethodelems
mlx/backend/metal/kernels/steel/attn/mma.h:286
↓ 6 callersMethodend_encoding
mlx/backend/metal/device.cpp:376
↓ 6 callersFunctionensure_row_contiguous
mlx/backend/metal/matmul.cpp:43
↓ 6 callersFunctionfft_op
mlx/backend/metal/fft.cpp:508
↓ 6 callersMethodfilter_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 callersFunctionfrom_fp8
mlx/ops.cpp:5232
↓ 6 callersFunctionfull_like
mlx/ops.h:79
↓ 6 callersFunctionget_active_memory
mlx/backend/cuda/allocator.cpp:421
↓ 6 callersFunctionget_bytes_per_pack
mlx/backend/metal/kernels/fp_quantized.h:26
↓ 6 callersFunctionget_kernel_reduce_ndim
mlx/backend/metal/reduce.cpp:204
↓ 6 callersFunctionget_pack_factor
mlx/backend/common/quantized.h:5
↓ 6 callersFunctioninv
mlx/linalg.cpp:319
↓ 6 callersFunctionisclose
mlx/ops.cpp:1935
↓ 6 callersFunctionload_library_from_path
mlx/backend/metal/device.cpp:72
↓ 6 callersMethodload_safe
mlx/backend/metal/kernels/fp_quantized_nax.h:146
↓ 6 callersMethodload_safe
mlx/backend/metal/kernels/quantized_nax.h:644
↓ 6 callersFunctionlog2
mlx/ops.cpp:3107
↓ 6 callersFunctionlog_warning
(*args, **kwargs)
python/mlx/_distributed_utils/common.py:128
↓ 6 callersFunctionlogcumsumexp
mlx/ops.cpp:3994
↓ 6 callersMethodmultiply
python/src/array.cpp:51
↓ 6 callersMethodname
mlx/distributed/primitives.h:48
↓ 6 callersFunctionnormalize_axis_index
mlx/utils.cpp:169
↓ 6 callersFunctionouter
mlx/ops.cpp:5448
↓ 6 callersFunctionpinv
mlx/linalg.cpp:356
↓ 6 callersFunctionpre_out
mlx/backend/metal/kernels/fft/readwrite.h:86
↓ 6 callersFunctionradix6
mlx/backend/metal/kernels/fft/radix.h:96
↓ 6 callersFunctionscatter
Scatter updates to given indices */
mlx/ops.cpp:3570
↓ 6 callersFunctionschedule
(step)
python/mlx/optimizers/schedulers.py:28
↓ 6 callersMethodseek
python/src/load.cpp:142
↓ 6 callersMethodset_memory_limit
mlx/backend/cuda/allocator.cpp:364
↓ 6 callersFunctionsort
mlx/backend/cpu/sort.cpp:124
↓ 6 callersMethodstore_slice
mlx/backend/metal/kernels/steel/gemm/nax.h:796
↓ 6 callersFunctionstrided_reduce_general_dispatch
mlx/backend/metal/reduce.cpp:919
↓ 6 callersMethodsubtract
python/src/array.cpp:47
↓ 6 callersFunctiontensordot
mlx/ops.cpp:5363
↓ 6 callersFunctionterm_size
mlx/einsum.cpp:117
↓ 6 callersFunctiontimeit
(fn, its=100, args=[])
benchmarks/python/einsum_bench.py:9
↓ 6 callersMethodto_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 callersFunctiontrace
mlx/ops.cpp:6013
↓ 6 callersMethodtrain
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 callersFunctiontranspose
mlx/ops.cpp:1556
↓ 6 callersFunctionunary_op_gpu
mlx/backend/metal/unary.cpp:98
↓ 6 callersFunctionuniform
mlx/random.cpp:95
↓ 6 callersMethodupdate
mlx/backend/cuda/fence.cpp:26
↓ 6 callersFunctionvector_key
mlx/backend/cuda/cudnn_utils.h:83
↓ 6 callersMethodwrite
python/src/load.cpp:378
↓ 5 callersFunctionAllocator
mlx/allocator.h:45
↓ 5 callersMethod__gemm_test
( self, shape_a, shape_b, np_dtype=np.float32, f_np_a=lambda x: x,
python/tests/test_blas.py:17
↓ 5 callersMethod__init__
( self, dims: int = 512, num_heads: int = 8, num_encoder_layers: int = 6,
python/mlx/nn/layers/transformer.py:314
↓ 5 callersMethod_run_ffts
(self, shape, atol=1e-4, rtol=1e-4)
python/tests/test_fft.py:132
↓ 5 callersFunction_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 callersFunctionaddmm
Compute D = beta * C + alpha * (A @ B) */
mlx/ops.cpp:5466
↓ 5 callersFunctionall_sum
mlx/distributed/ops.cpp:25
↓ 5 callersMethodall_sum
mlx/distributed/jaccl/lib/jaccl/ring.cpp:128
↓ 5 callersFunctionbinary_int_op_cpu
mlx/backend/cpu/binary.h:466
↓ 5 callersFunctionbitwise_impl
mlx/ops.cpp:6199
↓ 5 callersFunctionblock_masked_mm
Compute matrix product with tile-level masking */
mlx/ops.cpp:5608
↓ 5 callersFunctioncheck_contiguity
mlx/backend/common/utils.h:197
↓ 5 callersFunctionclip
mlx/ops.cpp:1180
↓ 5 callersFunctioncontiguous
mlx/ops.cpp:6416
↓ 5 callersMethodcuda_device
mlx/backend/cuda/device.h:173
↓ 5 callersMethoddetach
mlx/array.cpp:116
↓ 5 callersFunctiondispatch_dtype
mlx/distributed/nccl/nccl.cpp:91
↓ 5 callersFunctionget_alignment
Return pointer alignment of |x|'s data.
mlx/backend/cuda/cudnn_utils.h:36
↓ 5 callersFunctionget_streams
mlx/stream.cpp:60
↓ 5 callersFunctionidentity
mlx/ops.h:120
↓ 5 callersFunctioninner
mlx/ops.cpp:5453
↓ 5 callersFunctionis_donatable
mlx/backend/common/utils.h:218
↓ 5 callersFunctionlinspace
mlx/ops.cpp:232
↓ 5 callersFunctionlog10
mlx/ops.cpp:3117
↓ 5 callersFunctionlu
mlx/linalg.cpp:602
↓ 5 callersFunctionmlx_func
python/src/mlx_func.h:19
↓ 5 callersMethodname
mlx/compile.cpp:187
↓ 5 callersFunctionnd_array_to_mlx
python/src/convert.cpp:36
↓ 5 callersFunctionnext
Iteration helper */
mlx/backend/metal/kernels/steel/gemm/loader.h:131
↓ 5 callersFunctionones
mlx/ops.cpp:338
↓ 5 callersFunctionperform_fft
mlx/backend/metal/kernels/fft.h:158
↓ 5 callersFunctionpost_in
mlx/backend/metal/kernels/fft/readwrite.h:35
↓ 5 callersFunctionquantization_params_from_mode
mlx/ops.cpp:4368
↓ 5 callersMethodrecv
mlx/distributed/jaccl/lib/jaccl/tcp.cpp:150
↓ 5 callersMethodrelease_cached_buffers
mlx/backend/common/buffer_cache.h:58
↓ 5 callersFunctionreshape
mlx/backend/cpu/primitives.cpp:21
↓ 5 callersMethodresize
mlx/backend/cuda/lru_cache.h:52
↓ 5 callersFunctionrint
mlx/backend/cpu/simd/base_simd.h:65
↓ 5 callersFunctionrope
mlx/fast.cpp:367
↓ 5 callersFunctionsafe_to_int32
python/src/indexing.cpp:32
↓ 5 callersFunctionscatter_max
mlx/ops.h:1256
← previousnext →501–600 of 4,946, ranked by callers