Skip to content

Conversation

@tazlin
Copy link
Member

@tazlin tazlin commented Dec 22, 2025

Some open(...) calls did not specify UTF8 encoding, causing problems with emjois/extended characters in certain model references.

- Added _strip_quantization_suffix and _build_model_with_size_index to enable accurate aggregation of stats across quantization variants while preserving model size.
- Updated IndexedHordeModelStats to build and use these indexes, ensuring that canonical names with org prefixes and quantization variants are correctly matched.
- Added tests to verify correct aggregation and breakdown of stats for models with org prefixes and quantization variants.

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

lint: fix
- Added checks to skip legacy database conversion and model reference conversion for categories managed elsewhere (lora, ti).
- Updated meta_consts to include these categories and expanded baseline resolution lookup for new image generation baselines.
- Updated all file open operations to explicitly set encoding="utf-8" for reading and writing files across scripts, source, and tests.
- This ensures consistent behavior across environments and prevents encoding-related issues when handling non-ASCII data.
@tazlin tazlin added the release:patch Version _._.x label Dec 22, 2025
@tazlin tazlin merged commit 3468817 into releases Dec 22, 2025
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:patch Version _._.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants