.GGUF

GGUF ファイル

GGML Universal Format File
質問する
クイック回答

.gguf ファイルは GGML Universal Format ファイルであり、llama.cpp や関連ツールが大規模言語モデルを単一のファイルとして保存するために使用するバイナリコンテナです。モデルの重み、トークナイザー、およびすべてのメタデータをまとめて保持し、通常は一般的なハードウェアでモデルが動作するように量子化されています。LM Studio、Ollama、Jan、GPT4All などのローカル推論アプリで .gguf モデルを開くか実行するか、llama.cpp で直接ロードしてください。

開発元: Georgi Gerganov and the ggml/llama.cpp community カテゴリ: データファイル オープンスタンダード MIME: application/octet-stream
対応OS Windows macOS Linux Web
関連: .PKPASS · .DAT · .JSON · .RIS

このページの内容

19k+ 個の拡張子を索引済み
最終確認日:Sep 4, 2026

ファイルの種類がわかりませんか?

ファイルを識別ツールにドロップしてください。最初の数バイトを読み取って形式を特定します。

ファイルを識別する

GGUF ファイル形式とは?

.gguf ファイルは GGML Universal Format ファイルであり、llama.cpp が大規模言語モデルを保存するために使用するバイナリコンテナです。Georgi Gerganov 氏と ggml コミュニティによって、旧式の GGML、GGMF、GGJT フォーマットの後継として 2023年8月に導入されました。単一の .gguf ファイルにモデルの重み、トークナイザー、およびすべてのハイパーパラメータが型付きのキー・バリュー形式のメタデータとして保持されているため、モデルをロードして実行するために個別の設定ファイルは必要ありません。

このフォーマットは、自己完結型で拡張性があり、メモリマップ(memory-mappable)が可能なように構築されています。メタデータは固定リストではなく名前空間付きのキー・バリューペアとして保存されるため、古いリーダーを壊すことなく新しいフィールドを追加できます。重みは通常、2ビットから8ビットまで量子化されており、Q4_K_M などの K-quants も含まれます。これにより、かなりの規模のモデルをコンシューマー向けの CPU や GPU で実行できるようになります。すべてのファイルは 4バイトのマジック文字列 GGUF で始まり、その後にバージョン番号が続きます。現在のバージョンは 3 です。

セキュリティと安全性

リスク: LOW

GGUF is a data container for model weights and metadata, not an executable, so opening one does not run code by itself. The main practical risks are large file sizes and downloading models from untrusted sources; a malformed file could in theory exploit a bug in the loader, so use up-to-date inference tools and reputable model repositories.

形式の詳細

概要
正式名称GGML Universal Format File別名 GGML Universal File, GGUF model
開発元Georgi Gerganov and the ggml/llama.cpp community登場時期 August 2023
MIME タイプapplication/octet-stream
タイプBinary
標準規格オープン・ロイヤリティフリー
この拡張子は以下でも使用されています…
  • Genome Graphical User Format - Rarely, .gguf has been used ad hoc by hobby projects for GUI layout data, unrelated to the machine-learning format described here.
マジックバイト ・ ファイルシグネチャ
オフセット
00010203
16進数
47475546
ASCII
GGUF
First 4 bytes are the ASCII string GGUF (0x47 0x47 0x55 0x46), followed by a 4-byte version, 8-byte tensor count and 8-byte metadata count.

GGUF ファイルを開くプログラム

Windows6 apps
LM Studio フリーミアム Browse, download and chat with .gguf models through a desktop GUI, with per-model quantization choices.
Ollama オープンソース Load a local .gguf file via a Modelfile and serve it for chat or API use with one command.
llama.cpp オープンソース Run inference directly on a .gguf model with llama-cli or llama-server, the reference implementation of the format.
Jan オープンソース Import a .gguf file and run it fully offline in a ChatGPT-style desktop app.
GPT4All オープンソース Add a downloaded .gguf model to the local model folder and chat with it offline.
koboldcpp オープンソース Load a .gguf model for text generation and roleplay with a self-contained executable.
macOS4 apps
LM Studio フリーミアム Download and run .gguf models with Apple Silicon acceleration through a desktop GUI.
Ollama オープンソース Serve a local .gguf model via a Modelfile using Metal acceleration on Apple hardware.
llama.cpp オープンソース Run .gguf models with llama-cli, built with Metal support for Apple Silicon.
Jan オープンソース Import and run .gguf models offline in a native desktop client.
Linux4 apps
llama.cpp オープンソース Build from source and run .gguf models with CUDA, ROCm or CPU backends via llama-cli and llama-server.
Ollama オープンソース Register a local .gguf file with a Modelfile and serve it over the Ollama API.
LM Studio フリーミアム Run .gguf models with a desktop GUI and GPU offload on supported hardware.
text-generation-webui オープンソース Load .gguf models through the llama.cpp loader in a browser-based interface.
Web1 app
Hugging Face GGUF viewer 無料 Inspect a .gguf file's metadata, tensor list and quantization in the browser without downloading it.

技術的詳細

詳細仕様
EncodingBinary
Byte orderLittle-endian by default; big-endian supported since version 3
ContainerSingle-file container holding header, metadata key-value block, tensor info block and raw tensor data
CompressionNone as a container; weights are stored using GGUF quantization schemes (Q2 through Q8, K-quants such as Q4_K_M, IQ variants, plus F16/BF16/F32)
Typical sizeRoughly 0.5 GB to over 100 GB depending on parameter count and quantization level
StructureHeader (magic, version, tensor count, metadata count) then namespaced key-value metadata, then per-tensor info (name, dimensions, type, offset), then aligned raw tensor data. Default alignment is 32 bytes and must be a multiple of 8.
IntegrityNo built-in checksum; the metadata block is self-describing and validated at load time
PlatformsWindows, macOS, Linux
NotesA GGUF file is self-contained: it bundles the model weights, tokenizer and all hyperparameters as typed metadata, so no separate config files are needed. Metadata keys use lower_snake_case with period-separated namespaces and keys can be up to 65,535 bytes. Over 40 quantization types are supported. Large models can be sharded across multiple .gguf files with llama-gguf-split.
リリース日August 2023
最新バージョンVersion 3
オープンスタンダードはい · ロイヤリティフリー
仕様書github.com

GGUF の変換

コミュニティ Q&A

ユーザーからの質問
質問する
GGUF ファイルを扱うユーザーからヘルプを得られます。OSやソフトウェアのバージョンなど、具体的に記載してください。
アカウント不要 ・ 通常1日以内に回答されます

まだ質問はありません。GGUF ファイルについて最初の質問をしてみましょう。

よくある質問

GGUF ファイルを開くにはどうすればよいですか?
LM Studio、Ollama、Jan、GPT4All などのローカル LLM ランナーを使用するか、llama.cpp で直接ロードしてください。これらのツールは .gguf ファイルを読み取り、モデルとチャットできるようにします。ファイルをダブルクリックしても、それだけでは何も実行されません。
どのプログラムが GGUF ファイルを作成しますか?
これらは llama.cpp の変換スクリプト、主に Hugging Face モデルを .gguf に変換する convert_hf_to_gguf.py によって生成されます。その後、オプションで llama-quantize を使用して Q4_K_M などのより小さな量子化サイズに縮小されます。
GGUF ファイル名にある Q4_K_M とはどういう意味ですか?
これは量子化のタイプです。Q4 はおよそ 4ビットの重みを意味し、K はブロックベースの K-quant 手法を指し、M は中サイズ(Medium)/品質のバリエーションです。数値が低いほどファイルサイズは小さくなり品質も低下します。F16 や F32 は非量子化です。
GGUF ファイルを元のモデルに戻すことはできますか?
部分的に可能です。コミュニティスクリプトを使用して .safetensors や PyTorch の重みにデ量子化できますが、ほとんどの GGUF ファイルは量子化されているため、変換は不可逆であり、元の正確な重みは復元されません。
なぜ GGUF ファイルはこんなに大きいのですか?
.gguf はすべてのモデルの重みを 1つのファイルに保持します。ファイルサイズはパラメータ数と量子化レベルに比例するため、高精度の大型モデルは簡単に数十ギガバイトを超えることがあります。
GGUF ファイルをダウンロードしても安全ですか?
フォーマット自体には実行コードが含まれていないため、pickle ベースのフォーマットよりも安全です。それでも、モデルは信頼できるソースからのみダウンロードし、ローダーのバグに備えて推論ソフトウェアを最新の状態に保ってください。

参考文献

1GGUF - Wikipediaen.wikipedia.org
2Official GGUF specification (ggml docs)github.com

さらに探索

データベース全体から

今週のトップ拡張子

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.RPMSGRestricted Permission Message
5.PARTPartial Download File
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

関連する拡張子

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

無料ファイルツール

ブラウザで動作するファイル識別および画像変換ツール。すべてお使いのデバイス上で実行されます。

ツールボックスを開く

ファイル拡張子を A-Z で閲覧