GPTQModel: 概要
ModelCloud/GPTQModel は 2024-06-17 に GitHub で作成されたリポジトリです。2026-10-09 時点のスター数は 1,270 です。
以下の箇条書きは、README の文を訳さずに原文のまま抜き出したものです(当サイトによる要約・評価ではありません)。
- 原文(README): GPT-QModel ⚡ An extensible platform for LLM quantization, validation, and deployment.
- 原文(README): GPTQ, AWQ, ParoQuant, GGUF, FP8, EXL3, QQQ, and more—across NVIDIA CUDA, AMD ROCm, Huawei Ascend, Intel XPU, and CPU, with Transformers, vLLM, and SGLang.
🎯 成熟度の目安(README の記載)
README に開発段階(alpha・beta・experimental など)の記載は見つかりませんでした。作成日とスター数は冒頭の記載のとおりです。
主な機能と構成(README の原文)
- 原文(README): GPT-QModel provides a consistent API for calibration, quantization, quality evaluation, model conversion, and accelerated inference.
- 原文(README): Its method, format, backend, and kernel layers are modular: method-specific controls remain available where needed, while implementations share the same model lifecycle.
- 原文(README): Every quantization method shares a common lifecycle—calibrate, quantize, validate, save, load, and serve—while retaining method-specific controls where they matter.
- 原文(README): GGUF, FP8, EXL3, ParoQuant, and VPTQ are currently native GPT-QModel quantization/runtime paths.
- 原文(README): SGLang loading is limited to METHOD.GPTQ with FORMAT.GPTQ, FORMAT.GPTQ_V2, or FORMAT.MARLIN, and METHOD.AWQ with FORMAT.GEMM or FORMAT.MARLIN.
インストール(README からの転記)
以下は README のインストール手順のコードブロックを、そのまま転記したものです。当サイトでは動作を確認していません。最新の手順は README を確認してください。
# You can install optional modules like autoround, ipex, vllm, sglang, bitblas.
# Example: pip install -v gptqmodel[vllm,sglang,bitblas]
pip install -v gptqmodel
uv pip install -v gptqmodel
# clone repo
git clone https://github.com/ModelCloud/GPTQModel.git && cd GPTQModel
# python3-dev is required for some source installs
apt install python3-dev
# pip: install from source
# You can install optional modules like vllm, sglang, bitblas.
# Example: pip install -v .[vllm,sglang,bitblas]
pip install -v .
from gptqmodel import GPTQModel
model = GPTQModel.load("ModelCloud/Llama-3.2-1B-Instruct-gptqmodel-4bit-vortex-v2.5")
result = model.generate("Uncovering deep insights begins with")[0] # tokens
print(model.tokenizer.decode(result)) # string output
from gptqmodel import GPTQModel
model = GPTQModel.load("ModelCloud/Qwen2.5-0.5B-Instruct-gptqmodel-w4a16")
print(model.generate(prompt="The capital of France is", max_tokens=16))
ライセンス
- ライセンス: Apache License 2.0(SPDX: Apache-2.0)
- 確認先: LICENSE ファイル
この節はライセンスの名称と確認先を示すもので、法的な助言ではありません。利用の可否は、LICENSE ファイルの本文と利用する状況に照らして確認してください。
