Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ml-explore/mlx-swift
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.23.1
Choose a base ref
...
head repository: ml-explore/mlx-swift
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.25.1
Choose a head ref
  • 14 commits
  • 108 files changed
  • 7 contributors

Commits on Mar 31, 2025

  1. Configuration menu
    Copy the full SHA
    974e722 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2025

  1. nit in doc (#213)

    awni authored Apr 3, 2025
    Configuration menu
    Copy the full SHA
    306012b View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2025

  1. Configuration menu
    Copy the full SHA
    98b48a7 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2025

  1. fix smoothL1Loss (#209)

    * fix smoothL1Loss
    
    * Update Source/MLXNN/Losses.swift
    
    Co-authored-by: Awni Hannun <awni.hannun@gmail.com>
    jiyzhang and awni authored Apr 10, 2025
    Configuration menu
    Copy the full SHA
    e18c758 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2f41704 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2025

  1. Return correct value in memory limit getter functions (#223)

    * memory limit fix
    * make DeviceInfo publicly accessible
    louen authored Apr 14, 2025
    Configuration menu
    Copy the full SHA
    43157db View commit details
    Browse the repository at this point in the history
  2. update for using swift 5.10 (#221)

    - per change in #93
    davidkoski authored Apr 14, 2025
    Configuration menu
    Copy the full SHA
    2cd2eaf View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2025

  1. consistent treatment of HasDType (Float.self) vs dtype (.float32) (#222)

    * consistent treatment of HasDType (Float.self) vs dtype (.float32)
    
    - fixes #199
    - there were inconsistent methods for creating MLXArrays with various patterns using Float.self vs .float32
    - add an FInfo struct also in support of dtype
    - encountered when porting VLMs
    
    Co-authored-by: Awni Hannun <awni@apple.com>
    davidkoski and awni authored Apr 18, 2025
    Configuration menu
    Copy the full SHA
    07fdf84 View commit details
    Browse the repository at this point in the history
  2. various Random improvements (#219)

    * various Random improvements
    
    - allow a Key or a RandomState to be used with Random functions
    - users can create RandomState
    - users can do withRandomState to scope the use of a RandomState -- useful with multiple threads
    davidkoski authored Apr 18, 2025
    Configuration menu
    Copy the full SHA
    df5d5c7 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2025

  1. CompiledFunction is not thread safe (#226)

    - fixes #225
    - although CompiledFunction was marked as unchecked(Sendable) it really wasn't
    - guard the state with a lock
    davidkoski authored Apr 28, 2025
    Configuration menu
    Copy the full SHA
    1f1f922 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2025

  1. Configuration menu
    Copy the full SHA
    abe1092 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2025

  1. update to mlx v0.25.1 (#217)

    - adopt mlx v0.25.1 and mlx-c v0.2.0
    
    - add saveToData and load from data (safetensors) -- fix #214
    - fixes #211 (moves metalKernel API back to what it was)
    
    - add withError and withErrorHandler error handling
    - add function import/export: https://ml-explore.github.io/mlx/build/html/usage/export.html
     
    - use an evalLock for eval, asyncEval and Stream creation
    davidkoski authored May 1, 2025
    Configuration menu
    Copy the full SHA
    feb81e6 View commit details
    Browse the repository at this point in the history
  2. data.withContiguousStorageIfAvailable does not work as expected in ol…

    …der compiler (#231)
    
    - switch to data.withUnsafeBytes
    davidkoski authored May 1, 2025
    Configuration menu
    Copy the full SHA
    bef30f0 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2025

  1. Add quantize function that can return different parameters per layer (#…

    …229)
    
    * Add quantize function that can return different parameters per layer
    Co-authored-by: Awni Hannun <awni@apple.com>
    davidkoski and awni authored May 2, 2025
    Configuration menu
    Copy the full SHA
    5976316 View commit details
    Browse the repository at this point in the history
Loading