Skip to content

[BUG] Internal error when fine-tuning Gemma #1363

Closed

Description

@awni

E.g.:

mlx_lm.lora --model mlx-community/codegemma-7b-it-8bit --train --adapter-path adapters_codegemma_7B --data training_data --iters 500

Can result in:

libc++abi: terminating due to uncaught exception of type std::runtime_error: [METAL] Command buffer execution failed: Internal Error (0000000e:Internal Error)
zsh: abort      mlx_lm.lora --model mlx-community/codegemma-7b-it-8bit --train --adapter-path

The splikt matmul on the output which has a very large inner dimension (256k) appears to be the culprit. @jagrit06 is looking into this.

Activity

  1. cbowdon commented on Oct 28, 2025

    @cbowdon

    Hi, I'm experiencing the same issue. Is there a workaround?

  2. zcbenz commented on Mar 16, 2026

    @zcbenz
    Member

    I'm merging this to #1231.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions