Skip to content

Conversation

@wbruna
Copy link

@wbruna wbruna commented Sep 22, 2025

This is part of #1732 , applying the changes to sdtype_adapter.cpp that don't depend on the new code, but should help with this and future updates.

The main purpose is removal of the generation parameters that Koboldcpp leave at their default values. The new revisions introduce several additional parameters, and there isn't much point in keeping them all mirrored inside the SDParams struct.

I also moved the debug prints closer to the sd.cpp calls, to help tracking what is actually sent to the library, and adapted the generation metadata to work with the sd.cpp parameter struct, to help including whichever value we're setting by default.

Use a stringstream to avoid the explicit conversions to
string. Also, generate from the sd.cpp struct, to reduce
dependencies on the global context fields.
Most image generation parameters are not customizable through
the API, and their values simply repeat the default set by
sd.cpp. So, remove them from the SDParams struct, and place
the needed constant values directly on the code.

Also, print debug information directly from the sd.cpp
parameters. And to help with type mismatches and general
readability, replace the fromatting with stringstreams.
Copy link
Owner

@LostRuins LostRuins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@LostRuins LostRuins merged commit 01c1acc into LostRuins:concedo_experimental Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants