mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-02-04 19:03:35 +00:00
Fix token length
This commit is contained in:
parent
a907fe2851
commit
fc8d85e133
@ -1810,6 +1810,7 @@ struct LLMEmbedder : public Conditioner {
|
|||||||
} else if (sd_version_is_longcat(version)) {
|
} else if (sd_version_is_longcat(version)) {
|
||||||
prompt_template_encode_start_idx = 36;
|
prompt_template_encode_start_idx = 36;
|
||||||
// prompt_template_encode_end_idx = 5;
|
// prompt_template_encode_end_idx = 5;
|
||||||
|
max_length = 512;
|
||||||
|
|
||||||
prompt = "<|im_start|>system\nAs an image captioning expert, generate a descriptive text prompt based on an image content, suitable for input to a text-to-image model.<|im_end|>\n<|im_start|>user\n";
|
prompt = "<|im_start|>system\nAs an image captioning expert, generate a descriptive text prompt based on an image content, suitable for input to a text-to-image model.<|im_end|>\n<|im_start|>user\n";
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user