GGUFからモデルを作成する
POST
http://localhost:11434/api/create
format
がjson
に設定されている場合、出力は常に整形式の JSON オブジェクトになります。モデルに JSON で応答するように指示することも重要です。Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:11434/api/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "llama-2-7b-chat",
"files": {
"test.gguf": "sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
}
}'
Response Response Example
{"status":"parsing GGUF"}
{"status":"using existing layer sha256:432f310a77f4650a88d0fd59ecdd7cebed8d684bafea53cbff0473542964f0c3"}
{"status":"writing manifest"}
{"status":"success"}
Requestパラメータ
Request Bodyパラメータapplication/json