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.25.6
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.29.1
Choose a head ref
  • 12 commits
  • 131 files changed
  • 6 contributors

Commits on Jul 24, 2025

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

Commits on Aug 4, 2025

  1. Add contiguous (#260)

    kemchenj authored Aug 4, 2025
    Configuration menu
    Copy the full SHA
    57fd00c View commit details
    Browse the repository at this point in the history
  2. Minor fixes docs (#261)

    * Fix formatting inconsistencies in documentation
    
    Signed-off-by: Charlie Le <charlie_le@apple.com>
    CharlieTLe authored Aug 4, 2025
    Configuration menu
    Copy the full SHA
    b2796b8 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2025

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

Commits on Sep 4, 2025

  1. fix more typos (#265)

    davidkoski authored Sep 4, 2025
    Configuration menu
    Copy the full SHA
    8a25603 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2025

  1. Make Module.update() throw instead of crash for incompatible parame…

    …ters (#266)
    
    * replace fatal errors with throwing errors
    louen authored Sep 5, 2025
    Configuration menu
    Copy the full SHA
    b89259d View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2025

  1. Make MLXError provide a description (#268)

    * MLXError provides error message
    louen authored Sep 10, 2025
    Configuration menu
    Copy the full SHA
    6f58497 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2025

  1. Update links to MLX packages in documentation (#277)

    * Remove self-link to MLX in MLX docs
    * Remove links to self and deprecated frameworks in MLXNN docs
    * Remove links to self and deprecated frameworks in MLXOptimizers docs
    * Update MAINTENANCE.md
    mattt authored Sep 29, 2025
    Configuration menu
    Copy the full SHA
    f1f9280 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2025

  1. swift-format 602 (#278)

    * swift-format 602
    davidkoski authored Oct 6, 2025
    Configuration menu
    Copy the full SHA
    e532e87 View commit details
    Browse the repository at this point in the history
  2. ensure that the ErrorHandler is installed (#282)

    - this will force all fatal errors to go through the swift code rather than the mlx-c code
    - and produce a fatalError which will stop in the debugger
    davidkoski authored Oct 6, 2025
    Configuration menu
    Copy the full SHA
    cefbc08 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2025

  1. document memory buffers (#280)

    * document memory buffers
    
    - see also ml-explore/mlx-swift-examples#17
    davidkoski authored Oct 13, 2025
    Configuration menu
    Copy the full SHA
    875f462 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2025

  1. adopt mlx 0.29.1 and related mlx-c (#273)

    - ml-explore/mlx@v0.25.1...v0.29.1
    
    **NOTE**
    
    This change contains some breaking API changes in the area of quantization.  Specifically:
    
    - the `quantized` / `dequantized` methods now take a `mode` parameter (not breaking)
    - the `biases` result from `quantized` is now optional, e.g. `(wq: MLXArray, scales: MLXArray, biases: MLXArray?)`
    
    We are keeping the same semver here to match with python mlx.  Although the change is breaking, it will likely be limited to implementations of quantized layers, e.g. `QuantizedLinear`, or other code that uses quantization directly.  `mlx-swift-examples` will have a synchronized release to reflect this change.
    
    If you need to make a similar change, consider the changes from `QuantizedLinear`:
    
    The properties changed from this:
    
    ```swift
        public let scales: MLXArray
        public let biases: MLXArray
    ```
    
    to:
    
    ```swift
        public let mode: QuantizationMode
        public let scales: MLXArray
        public let biases: MLXArray?
    ```
    
    A `mode` with parameter with a default value was added where needed: `mode: QuantizationMode = .affine` and the mode parameter was used in calls to the quantization APIs:
    
    ```swift
            var x = quantizedMatmul(
                x,
                weight,
                scales: scales,
                biases: biases,
                transpose: true,
                groupSize: groupSize,
                bits: bits,
                mode: mode
            )
    ```
    
    and the `Quantizable` protocol was updated to have a `mode` parameter (protocol methods can't have default values):
    
    ```swift
        /// Return the module as a quantized representation
        func toQuantized(groupSize: Int, bits: Int, mode: QuantizationMode) -> Module
    ```
    davidkoski authored Oct 16, 2025
    Configuration menu
    Copy the full SHA
    072b684 View commit details
    Browse the repository at this point in the history
Loading