0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Mac mini での ローカルLLM で使ったモデルの一部を削除する(MLX LM、MLX-VLM で使ったもの)

Posted at

はじめに

ローカルLLM で使っている Mac mini のディスク容量が以下の状態になったため、空き容量を増やすために今回の記事に書いている対処を行いました。

image.png

実施したこと

ローカルLLM のモデルの保存先を探す

上記のディスク容量不足の原因になりそうなもので、思い当たるものに MLX LM、MLX-VLM を使ったローカルLLM があると思われました。それで、そのローカルLLM で使ったモデルの置き場を探し、そのフォルダのサイズを確認してみることにしました。

保存先のパス

調べてみたところ、モデルの保存先のパスは以下となるようです。

~/.cache/huggingface/hub

このフォルダのサイズを確認してみると、以下のとおり 266GB超と、ディスク全体の容量の半分以上になっていました。

image.png

保存されていたモデル

具体的にこのフォルダ内を確認すると、以下の状態でした。

image.png

ダウンロード済みだったモデル(折りたたんだ中に書いています)
  • models--mlx-community--DeepHermes-3-Llama-3-8B-Preview-4Bit
  • models--mlx-community--DeepSeek-R1-Distill-Qwen-14B-6bit
  • models--mlx-community--gemma-3-12b-it-8bit
  • models--mlx-community--gemma-3-27b-it-qat-3bit
  • models--mlx-community--Llama-3-ELYZA-JP-8B-8bit
  • models--mlx-community--Llama-3.2-11B-Vision-Instruct-4bit
  • models--mlx-community--llm-jp-3-13b-instruct-8bit
  • models--mlx-community--Mistral-Small-24B-Instruct-2501-4bit
  • models--mlx-community--nanoLLaVA-1.5-8bit
  • models--mlx-community--phi-4-4bit
  • models--mlx-community--phi-4-8bit
  • models--mlx-community--phi-4-bf16
  • models--mlx-community--Phi-4-reasoning-plus-8bit
  • models--mlx-community--plamo-2-1b
  • models--mlx-community--Qwen2-VL-2B-Instruct-4bit
  • models--mlx-community--Qwen2.5-VL-3B-Instruct-bf16
  • models--mlx-community--Qwen2.5-VL-7B-Instruct-8bit
  • models--mlx-community--Qwen3-14B-8bit
  • models--mlx-community--QwQ-32B-3bit
  • models--mlx-community--Sky-T1-32B-Preview-4bit
  • models--mlx-community--Swallow-13b-instruct-v0.1-8bit
  • models--mlx-community--whisper-large-v3-mlx
  • models--mlx-community--whisper-large-v3-turbo

一部のモデルを残して削除する

上記のモデルの中の一部を残して、他を削除しました。

削除後のフォルダ・ディスク内のサイズは以下となりました。

モデルが置かれているフォルダ

image.png

ディスク

image.png

これで、とりあえずディスクの空きを確保できました。

その他

ローカルLLM をいろいろ試した時、その一部は流れなどを記事にも書いていました。

記事の一部

以下は、その記事の一部です。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?