Skip to content

include hyphen in LoRA tag model name matching & improve performance#898

Merged
zanllp merged 3 commits into
mainfrom
feat/tag-validation-and-cleanup
Jan 21, 2026
Merged

include hyphen in LoRA tag model name matching & improve performance#898
zanllp merged 3 commits into
mainfrom
feat/tag-validation-and-cleanup

Conversation

@zanllp

@zanllp zanllp commented Jan 21, 2026

Copy link
Copy Markdown
Owner

No description provided.

- Add tag name validation in Tag.get_or_create method
- Chinese names: max 16 characters
- Other languages: max 8 words
- Return error tags with uppercase English names when validation fails
- Ensure error tags are created through get_or_create to maintain database consistency
- Clean up database: removed 487,938 non-custom tags, keeping only 12 custom tags
Important performance optimization for handling large tag datasets:

- When total tags > 8192, limit 'pos' type tags to top 4096 by count
- Return all non-pos tags without limitation
- Significantly reduces memory usage and load time for large databases
- Maintains functionality while improving performance with massive tag counts
@zanllp zanllp merged commit 323b248 into main Jan 21, 2026
@zanllp zanllp deleted the feat/tag-validation-and-cleanup branch June 6, 2026 03:55
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.

1 participant