Commit Graph

705 Commits

Author SHA1 Message Date
Concedo 9042af9a2e increase prompt length limit 2026-06-06 09:55:39 +08:00
Concedo 9755b05556 g4ua audio fix 2026-06-05 10:59:24 +08:00
Wagner Bruna 1f14c98d36 sd: fix gemma3 vocab and merge filenames and add functions for gemma2 (#2249)
* sd: simplify vocab and merges loading

* sd: fix gemma3 vocab and merge filenames and add functions for gemma2
2026-06-04 10:31:06 +08:00
Concedo 598b594aa2 Revert "disable temporal tiling"
This reverts commit 241ece07c3.
2026-06-02 19:45:15 +08:00
Concedo 241ece07c3 disable temporal tiling 2026-06-01 18:34:27 +08:00
Concedo c3246cd392 allow SD to limit max VRAM usage 2026-06-01 16:06:27 +08:00
Concedo 14b7da5e44 allow reversing the reference image 2026-05-31 23:08:58 +08:00
Wagner Bruna 2f100fe3d1 sd: sync to master-660-d2797b8 (#2241)
* sd: sync to master-659-d3b2cb0

* sd: sync to master-660-d2797b8
2026-05-31 14:04:25 +08:00
Concedo 3361ef801c video vae tiling fix 2026-05-30 22:59:15 +08:00
Concedo d4b513c19d mmap fix from https://github.com/leejet/stable-diffusion.cpp/pull/1575 2026-05-30 16:12:34 +08:00
Concedo 5dc1a89001 support final frame 2026-05-30 09:27:51 +08:00
Concedo 48a6d161a5 add fps controls 2026-05-29 23:18:14 +08:00
Concedo 272c1ee232 increase frame limit to 120 and allow loading tae ltx 2026-05-29 18:50:01 +08:00
Concedo 8ddb4fedb1 add audio support 2026-05-29 13:49:30 +08:00
Concedo 9149e6a96e fix for ltx 2026-05-29 10:49:04 +08:00
Concedo 13663730a9 ltx wip 2026-05-28 22:45:24 +08:00
Concedo 2c6184054d add audio support to avi 2026-05-28 20:46:14 +08:00
Concedo b6f56b4431 default to 192kbps for mp3 2026-05-28 14:55:59 +08:00
Wagner Bruna 6c1b944129 sd:sync to master-656-0e4ee04 (#2237) 2026-05-28 14:53:22 +08:00
Wagner Bruna 541034d72d sd: sync to master-652-92dc726 (#2234)
* sd: sync to master-650-1ceb5bd

* sd: add LongCat-Image support

* sd: sync to master-652-92dc726

* sd: add Lens support

* sd: split gpt-oss vocab and merge files
2026-05-28 01:21:57 +08:00
askmyteapot f9c02610b3 Multi-thread MP3 - Ace-Step (#2233)
* Experimental Multi-thread MP3

I used Deepseek V4 Flash to come up with a method of making the MP3 conversion with Ace-step multi-threaded.

I built and tested. Resulting MP3 doesnt have any glitches and generates almost instantly (compared to dozens of seconds previously)

* Implement WBRUNA suggestion

Updated as suggested

* further tidyup

Both issues fixed:

fprintf removed from encode_chunk (line 651) — it now just returns "" silently on failure. Error reporting moved to call sites:
Single-threaded (line 689-692): checks mp3_data.empty() and logs once
Multi-threaded (line 722-742): uses std::atomic<int> init_failures{0}, each thread does fetch_add(1) on failure, then after join a single fprintf reports the count. No interleaved output.
No leftover encode call outside threads — all chunks are encoded inside threads (lines 724-732). No results[0] = encode_chunk(...) exists between splitting and joining.

* Overlap by 1 frame

Overlapping by 1 frame from the previous chunk and discarding appears to have resolved the audible boundary glitch.

* Improve multi-threading logic in audio encoding

Refactor thread count calculation and chunk partitioning logic for audio encoding.

---------

Co-authored-by: LostRuins Concedo <39025047+LostRuins@users.noreply.github.com>
2026-05-26 21:36:22 +08:00
Concedo 2937fdd823 make send as reference image default for img2img, but with smart fallback for older models. 2026-05-24 18:34:24 +08:00
Concedo d774184e9d hacky patch for hidream on kobold to fix tensor type issues 2026-05-24 16:37:49 +08:00
Concedo 298da8a4c2 Merge remote-tracking branch 'wbruna/kcpp_sd_update_202605_5' into concedo_experimental 2026-05-24 15:38:37 +08:00
Concedo 3aea5a795e Revert "fixed incorrect cfg scale returned"
This reverts commit cae0375157.
2026-05-23 21:37:47 +08:00
Wagner Bruna 3ec404b2cb sd: sync to master-646-0baf721 2026-05-23 09:05:36 -03:00
Wagner Bruna 8427efb4c6 sd: sync to master-642-3a8788c 2026-05-23 09:05:36 -03:00
Wagner Bruna a0413bdf55 sd: sync to master-637-ef92a00 2026-05-23 09:05:36 -03:00
Wagner Bruna 6c2093e422 sd: sync to master-633-5b0267e 2026-05-23 09:05:36 -03:00
Wagner Bruna c28c50e441 sd: sync to master-621-baf7eda 2026-05-23 09:05:35 -03:00
Wagner Bruna 9450834335 sd: adjust VAE tile size according to sdtiledvae (#2208) 2026-05-23 17:50:44 +08:00
Concedo cae0375157 fixed incorrect cfg scale returned 2026-05-23 17:30:07 +08:00
Concedo 3520b915f9 try revert vae chunk size change 2026-05-23 09:46:11 +08:00
Wagner Bruna f85a747dc0 sd: add backend support for max_vram (#2221) 2026-05-21 11:51:00 +08:00
Wagner Bruna 592d12d0a3 sd: support for CLIP and VAE on different devices (#2184)
* sd: generalize internal interfaces to place generation on CPU

* sd: backend support for multi-device selection

* sd: frontend support for multi-device selection

* add deprecated flags to avoid breaking old cli args

---------

Co-authored-by: Concedo <39025047+LostRuins@users.noreply.github.com>
2026-05-19 21:51:23 +08:00
Concedo 712ee6be64 try fix recent segfault on SIGINT https://github.com/LostRuins/koboldcpp/issues/2215 2026-05-18 22:37:14 +08:00
Wagner Bruna 90326f8585 sd: sync to master-612-d7ecbe1 (#2213) 2026-05-18 21:19:12 +08:00
Wagner Bruna 1ae9a79ecc sd: sync to master-607-fd1a279 (#2212) 2026-05-17 11:37:16 +08:00
Wagner Bruna f273fd35b9 sd: sync to master-601-eeac950 (#2206)
* sd: sync to master-601-eeac950

* sd: add mmap support
2026-05-16 11:23:10 +08:00
Concedo 79666e5764 revert sdcpp build steps to use makefile and cmake without external txt files 2026-05-16 00:53:56 +08:00
Wagner Bruna bfe9548fd5 sd: sync to master-596-90e87bc (#2204)
* sd: reuse source lists between make and cmake

* sd: sync to master-596-90e87bc

* Update source file path for sdtype_adapter.cpp

---------

Co-authored-by: LostRuins Concedo <39025047+LostRuins@users.noreply.github.com>
2026-05-14 23:14:33 +08:00
Wagner Bruna 243b03586b sd: build each source file separately (#2188)
* sd: build source files separately

* sd: decouple stable-diffusion.cpp and sdtype_adapter.cpp

* sd: remove include util.h from sdtype_adapter.cpp

* sd: update source file lists and review dependencies
2026-05-07 22:50:10 +08:00
Concedo 4a8a51a3a7 updated sdui, increase ace step music vae chunk size 2026-05-04 15:30:45 +08:00
Concedo 950676fdb7 split utils.cpp into 2 files to support sd.cpp 2026-05-04 15:04:12 +08:00
Wagner Bruna 276c651a12 sd: sync to master-593-3d6064b (#2175)
* sd: sync to master-593-3d6064b

* sd: use the same sdtype_adapter object for all builds

Since master-592-b8079e2, no sd.cpp source depends on the ggml
backend build anymore.

* sd: fix main_gpu selection

* sd: report backend devices to the Python layer
2026-05-04 14:05:34 +08:00
Wagner Bruna 25fab4113e refactor: handle GGML_VK_VISIBLE_DEVICES at the Python level (#2179)
All C++ handling code currently:
- build a comma-separated list from the info_vulkan array
- if GGML_VK_VISIBLE_DEVICES isn't set
  - set GGML_VK_VISIBLE_DEVICES to the list

Once set, GGML_VK_VISIBLE_DEVICES affects the whole process. So this
can be done in the same way at the Python level, before all loading
functions.

Caveat: load_model had the default `inputs.vulkan_info = "0"`,
so the default GPU would be "0" only when loading a text model.
2026-05-02 23:10:29 +08:00
Wagner Bruna e2bdd6d7aa sd: sync to master-591-331cfa5 (#2155)
* sd: sync to master-585-44cca3d

* sd: sync to master-587-b8bdffc

* sd: sync to master-591-331cfa5
2026-05-01 16:33:28 +08:00
Concedo eca9f4c1df use original precision for q3tts 2026-04-30 17:28:11 +08:00
Concedo 2741d7e7bd switch back from ulaw to wav16 2026-04-30 17:27:55 +08:00
Wagner Bruna c04832bb2b sd: add eta support (#2164) 2026-04-25 19:04:13 +08:00