mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-20 01:09:57 +00:00
still bugged
This commit is contained in:
parent
8a3ccfcba5
commit
d8746a851f
2 changed files with 7 additions and 16 deletions
|
|
@ -177,13 +177,13 @@ audio{width:100%;margin-top:6px;}
|
|||
<div><label>Key</label><input id="keyscale"></div>
|
||||
<div><label>Time Sig</label><input id="timesignature"></div>
|
||||
<div><label>Language</label><input id="vocal_language"></div>
|
||||
<div><label>Seed</label><input id="seed" type="number"></div>
|
||||
</div>
|
||||
|
||||
<div class="advanced-toggle" onclick="toggleAdvanced()">⚙ Advanced Settings</div>
|
||||
|
||||
<div id="advanced" class="hidden">
|
||||
<div class="compact-row" style="margin-top:10px">
|
||||
<div><label>Seed</label><input id="seed" type="number"></div>
|
||||
<div><label>Temp</label><input id="lm_temperature" type="number" step="0.01"></div>
|
||||
<div><label>CFG</label><input id="lm_cfg_scale" type="number" step="0.1"></div>
|
||||
<div><label>Top P</label><input id="lm_top_p" type="number" step="0.01"></div>
|
||||
|
|
|
|||
|
|
@ -1527,23 +1527,14 @@ std::string acestep_prepare_request(const music_generation_inputs inputs)
|
|||
|
||||
// Preprocessor: simple mode generates lyrics + metas from caption
|
||||
if (is_simple) {
|
||||
fprintf(stderr, "[Simple] Inspiration, Language: %s\n",ace.vocal_language.c_str());
|
||||
|
||||
fprintf(stderr, "[Simple] Inspiration\n");
|
||||
|
||||
const char * sys =
|
||||
"# Instruction\n"
|
||||
"Expand the user's input into a more detailed and specific musical description:\n";
|
||||
bool forcelang = (ace.vocal_language != "unknown" && !ace.vocal_language.empty());
|
||||
std::string langstr = forcelang?("language: "+ace.vocal_language+"\n"):"";
|
||||
std::string cap = "";
|
||||
std::string instru = "instrumental: false\n";
|
||||
if(ace.caption!="")
|
||||
{
|
||||
cap = "Music Caption: " + ace.caption;
|
||||
}
|
||||
std::string user_msg = cap + "\n\n"+instru+langstr;
|
||||
|
||||
printf("\n[Prompt: %s]\n",user_msg.c_str());
|
||||
"Expand the user's input into a more detailed"
|
||||
" and specific musical description:\n";
|
||||
std::string user_msg = ace.caption + "\n\ninstrumental: "
|
||||
+ std::string(req.instrumental ? "true" : "false");
|
||||
prompt = build_custom_prompt(acestep_bpe, sys, user_msg.c_str());
|
||||
|
||||
// FSM: reset then optionally force language (shared for both paths)
|
||||
|
|
@ -1556,7 +1547,7 @@ std::string acestep_prepare_request(const music_generation_inputs inputs)
|
|||
prompt.size(), batch_size, seed, seed + batch_size - 1);
|
||||
|
||||
auto phase1_texts = generate_phase1_batch(
|
||||
&acestep_llm, &acestep_bpe, prompt, 2048, temperature, 0.95f, 0,
|
||||
&acestep_llm, &acestep_bpe, prompt, 2048, temperature, 0.95f, 40,
|
||||
seed, batch_size, use_fsm ? &fsm : nullptr, true);
|
||||
|
||||
parse_phase1_into_aces(phase1_texts, ace, aces, seed, "Simple", true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue