diff --git a/Makefile b/Makefile index 0237048e6..21e6ab71b 100644 --- a/Makefile +++ b/Makefile @@ -606,15 +606,15 @@ endif # tools quantize_gguf: examples/quantize/quantize.cpp ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) -quantize_gptj: ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o otherarch/tools/gptj_quantize.cpp otherarch/tools/common-ggml.cpp +quantize_gptj: ggml_v3.o ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o otherarch/tools/gptj_quantize.cpp otherarch/tools/common-ggml.cpp $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) -quantize_gpt2: ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o otherarch/tools/gpt2_quantize.cpp otherarch/tools/common-ggml.cpp +quantize_gpt2: ggml_v3.o ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o otherarch/tools/gpt2_quantize.cpp otherarch/tools/common-ggml.cpp $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) -quantize_neox: ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o otherarch/tools/neox_quantize.cpp otherarch/tools/common-ggml.cpp +quantize_neox: ggml_v3.o ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o otherarch/tools/neox_quantize.cpp otherarch/tools/common-ggml.cpp $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) -quantize_mpt: ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o otherarch/tools/mpt_quantize.cpp otherarch/tools/common-ggml.cpp +quantize_mpt: ggml_v3.o ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o otherarch/tools/mpt_quantize.cpp otherarch/tools/common-ggml.cpp $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) -quantize_clip: ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o examples/llava/clip.cpp examples/llava/clip.h examples/llava/quantclip.cpp +quantize_clip: ggml_v3.o ggml.o llama.o ggml-quants.o ggml-alloc.o ggml-backend.o unicode.o examples/llava/clip.cpp examples/llava/clip.h examples/llava/quantclip.cpp $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) #window simple clinfo diff --git a/kcpp_docs.embd b/kcpp_docs.embd index 603f2f636..7a021ae6a 100644 --- a/kcpp_docs.embd +++ b/kcpp_docs.embd @@ -151,6 +151,11 @@ "exclusiveMinimum": 0, "type": "number" }, + "dynatemp_exponent": { + "default": 1, + "description": "Exponent used in dynatemp.", + "type": "number" + }, "mirostat": { "description": "KoboldCpp ONLY. Sets the mirostat mode, 0=disabled, 1=mirostat_v1, 2=mirostat_v2", "minimum": 0, @@ -1004,6 +1009,98 @@ ] } }, + "/sdapi/v1/img2img": { + "post": { + "description": "Transforms an existing image into a new image, guided by a text prompt, and returns a base64 encoded png.", + "requestBody": { + "content": { + "application/json": { + "example": { + "prompt": "picture of a kobold, high quality HD render", + "negative_prompt": "ugly, deformed, censored", + "cfg_scale": 5, + "steps": 20, + "width": 512, + "height": 512, + "seed": -1, + "sampler_name": "Euler a", + "denoising_strength": 0.6, + "init_images":["base64_image_data"], + }, + "schema": { + "properties": { + "prompt": { + "type": "string" + }, + "negative_prompt": { + "type": "string" + }, + "cfg_scale": { + "type": "number" + }, + "steps": { + "type": "number" + }, + "width": { + "type": "number" + }, + "height": { + "type": "number" + }, + "seed": { + "type": "number" + }, + "sampler_name": { + "type": "string" + }, + "denoising_strength": { + "type": "number" + }, + "init_images": { + "type": "array" + }, + }, + "type": "object" + } + } + }, + "required": false + }, + "responses": { + "200": { + "content": { + "application/json": { + "example": + { + "images":["base64_image_data"],"parameters":{},"info":"" + }, + "schema": { + "properties": { + "images": { + "type": "string", + "description": "A base64 string containing the encoded PNG of the generated image." + }, + "parameters": { + "type": "object", + "description": "Not used. Will be empty." + }, + "info": { + "type": "string", + "description": "Not used. Will be empty." + } + } + } + } + }, + "description": "Successful request" + } + }, + "summary": "Transforms an existing image into a new image", + "tags": [ + "sdapi/v1" + ] + } + }, "/sdapi/v1/interrogate": { "post": { "description": "Generates a short text caption describing an image.", @@ -1112,7 +1209,6 @@ }; -