feat(anima): add prompt weighting support - #9506
Conversation
|
Any chance you have before/after screenshots? My understanding is that Anima cannot actually support prompt weighting (in the traditional sense). It does support limited prompt weighting of the form tag:weight eg: blue:1.2 but it is strictly a prompting/training concept and not actually a special function of the model. I'd be curious to see a comparison of your feature on vs off, with the prompt weighting format described on the model page: https://huggingface.co/circlestone-labs/Anima
|
Sure, here's a quick comparison. Long hair tag is amplified while the chibi tag is toned down. Without the fix the tag with weights often gets ignored entirely. You can check it out yourself. |
The Anima author explicitly confirmed that this is real inference-time prompt weighting, not merely a training/prompting convention. In ComfyUI the weights are applied by scaling the text-conditioning vectors produced by Qwen3 + the LLM adapter before they are fed into the diffusion model. Author comment: And the implementation is visible here: |




Summary
Adds prompt weighting support to Anima text conditioning.
(text),(text:weight), nested groups, and escaped literal parentheses.The implementation was written independently. ComfyUI was used only as a behavioral reference; no GPL-licensed source was copied or adapted.
Related Issues / Discussions
N/A
QA Instructions
(text:1)prompt produce identical cleaned text, T5 token IDs, and weights.Merge Plan
No special merge requirements.
Checklist