ollama - 💡(How to fix) Fix How to backup and restore MLX Models? [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#15484Fetched 2026-04-11 06:12:29
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
RAW_BUFFERClick to expand / collapse

I have only limited flash storage on the Mac. So i sometimes have to remove one model to test an other. To not pull over and over again (which needs hours) I back up to model data to an external drive.

In the past I used "ollama show --modelfile ..." to generate a modelfile and get the list of the blobs which need to be copied. This worked well.

This approach doesn't work for the MLX models, as the generated modelfile doesn't contain the blobs anymore. I could find out the relevant blobs from the json. But how to re-import this model the models?

I am grateful for any tips.

extent analysis

TL;DR

Manually re-import the MLX model by copying the required blobs to the correct location and using the relevant import command.

Guidance

  • Identify the required blobs for the MLX model from the JSON file and note their names and paths.
  • Copy the required blobs from the backup location to the correct directory where the model is expected to be.
  • Use the ollama command with the appropriate import option to re-import the model, if available.
  • Verify that the model is correctly imported and functional by testing it with a sample input.

Example

No code snippet is provided as the exact import command is not specified in the issue.

Notes

The approach used for non-MLX models does not work for MLX models, and the exact import command for MLX models is not provided in the issue.

Recommendation

Apply workaround: Manually copy the required blobs and use the relevant import command to re-import the model, as the standard approach does not work for MLX models.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix How to backup and restore MLX Models? [1 participants]