Zum Inhalt springen

Mlx Updates & Release Notes

Einträge
32
Quellen
1
Zuletzt aktualisiert

Folge Mlx, um die Release Notes in deinen Feed zu holen.

Mlx von ml-explore

MLX 0.28.0

MLX 0.28.0 führt eine erste Version von fusionsierter SDPA und Convolutions auf CUDA ein und beschleunigt Normalisierung, Softmax und kompilierte Kernel.

Highlights

  • First version of fused sdpa vector for CUDA
  • Convolutions in CUDA
  • Speed improvements in CUDA normalization layers, softmax, compiled kernels, overheads and more

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Mlx von ml-explore

MLX 0.27.1

MLX 0.27.1 veröffentlicht die erste PyPI-Version des CUDA-Backends, das gut mit mlx-lm für LLM-Inferenz und LoRA-Feintuning funktioniert, und enthält mehrere Leistungs- und Stabilitätsverbesserungen.

Highlights

  • Initial PyPi release of the CUDA back-end.
  • CUDA back-end works for well with mlx-lm:
    • Reasonably fast for LLM inference
    • Supports single-machine training and LoRA fine-tuning

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Mlx von ml-explore

MLX 0.26.0: 5-Bit-Quantisierung und CUDA-Fortschritte

MLX v0.26.0 führt 5-Bit-Quantisierung ein, verbessert den CUDA-Backend erheblich und bringt zahlreiche neue Funktionen wie komplexe Operationen und Leistungsoptimierungen.

Highlights

  • 5 bit quantization
  • Significant progress on CUDA back-end by @zcbenz

Core

Features

  • 5bit quants
  • Allow per-target Metal debug flags
  • Add complex eigh
  • reduce vjp for mx.all and mx.any
  • real and imag properties
  • Non-symmetric mx.linalg.eig and mx.linalg.eigh
  • convolution vmap
  • Add more complex unary ops (sqrt, square, ...)
  • Complex scan
  • Add mx.broadcast_shapes
  • Added output_padding parameters in conv_transpose
  • Add random normal distribution for complex numbers
  • Add mx.fft.fftshift and mx.fft.ifftshift` helpers
  • Enable vjp for quantized scale and bias

Performance

  • Optimizing Complex Matrix Multiplication using Karatsuba’s Algorithm
  • Much faster 1D conv

Cuda

  • Generalize gpu backend
  • Use fallbacks in fast primitives when eval_gpu is not implemented
  • Add memory cache to CUDA backend
  • Do not check event.is_signaled() in eval_impl
  • Build for compute capability 70 instead of 75 in CUDA backend
  • CUDA backend: backbone

Bug Fixes

  • Fix out-of-bounds default value in logsumexp/softmax
  • include mlx::core::version() symbols in the mlx static library
  • Fix Nearest upsample
  • Fix large arg reduce
  • fix conv grad
  • Fix some complex vjps
  • Fix typo in row_reduce_small
  • Fix put_along_axis for empty arrays
  • Close a couple edge case bugs: hadamard and addmm on empty inputs
  • Fix fft for integer overflow with large batches …

Originalquelle(öffnet in neuem Tab)Problem melden

Mlx von ml-explore

MLX 0.25.0: Speichereffizienz und Leistungssteigerungen

MLX v0.25.0 optimiert das Training durch benutzerdefiniertes logsumexp, führt tiefenseparable Faltungen und Batch-Gather-MM für schnellere Prompt-Verarbeitung ein.

Highlights

  • Custom logsumexp for reduced memory in training (benchmark)
  • Depthwise separable convolutions
  • Batched Gather MM and Gather QMM for ~2x faster prompt processing for MoEs

Core

Performance

  • Fused vector attention supports 256 dim
  • Tune quantized matrix vector dispatch for small batches of vectors

Features

  • Move memory API in the top level mlx.core and enable for CPU only allocator
  • Enable using MPI from all platforms and allow only OpenMPI
  • Add a ring all gather for the ring distributed backend
  • Enable gemm for complex numbers
  • Fused attention supports literal "causal" mask
  • Log for complex numbers
  • Distributed all_min and all_max both for MPI and the ring backend
  • Add logcumsumexp
  • Add additive mask for fused vector attention
  • Improve the usage of the residency set

NN

  • Add sharded layers for model/tensor parallelism

Bugfixes

  • Fix possible allocator deadlock when using multiple streams
  • Ring backend supports 32 bit platforms and FreeBSD
  • Fix FFT bugs
  • Fix attention mask type for fused attention kernel
  • Fix fused attention numerical instability with masking
  • Add a fallback for float16 gemm …

Originalquelle(öffnet in neuem Tab)Problem melden

Mlx von ml-explore

MLX 0.24.0: Schnellere Aufmerksamkeit und CPU-Neugestaltung

MLX v0.24.0 bietet deutlich schnellere fused Attention mit kausaler Maskierung, eine Neugestaltung des CPU-Backends für schnellere Synchronisation und neue Funktionen.

Highlights

  • Much faster fused attention with support for causal masking
    • Benchmarks
    • Improvements in prompt processing speed and memory use, benchmarks
    • Much faster small batch fused attention for e.g. speculative decoding, benchmarks
  • Major redesign of CPU back-end for faster CPU-GPU synchronization

Core

Performance

  • Support fused masking in scaled_dot_product_attention
  • Support transposed head/seq for fused vector scaled_dot_product_attention
  • SDPA support for small batch (over sequence) queries
  • Enabling fused attention for head dim 128
  • Redesign CPU back-end for faster cpu/gpu synch

Features

  • Allow debugging in distributed mode
  • Support mx.fast.rms_norm without scale
  • Adds nuclear norm support in mx.linalg.norm
  • Add XOR on arrays
  • Added mlx::core::version()
  • Allow non-square lu in mx.linalg.lu
  • Double for lapack ops (eigh, svd, etc)
  • Add a prepare tb ring script
  • Ring docs
  • Affine quant always in fp32

Optimizers

  • Add a multi optimizer optimizers.MultiOptimizer

Bug Fixes

  • Do not define MLX_VERSION globally
  • Reduce binary size post fast synch
  • Fix vmap for flatten
  • Fix copy for large arrays with JIT
  • Fix grad with inplace updates
  • Use same accumulation precision in gemv as gemm
  • Fix slice data size …

Originalquelle(öffnet in neuem Tab)Problem melden