Skip to content

Conversation

@radicazz
Copy link

@radicazz radicazz commented Jan 16, 2026

Summary

  • Fix tokenizer model_type assignment and embedding cast_bias_weight call signature.
  • Improve GGUF file path resolution and error messages.
  • Add dropdown helpers for newer ComfyUI frontend expectations.

Testing

  • Not run (no project test suite detected).

Notes

Cherry-picked from the AirPods fork; resolved a small conflict to preserve upstream metadata handling in UnetLoaderGGUF.

- fix tokenizer model_type assignment (was comparison)
- fix cast_bias_weight call signature in embedding forward
- add resolve_full_path helper to centralize path lookup
- add resolve_clip_path with smart fallback logic
- fix mutable default argument in update_folder_names_and_paths
- add FileNotFoundError with descriptive messages
- apply pep8 formatting for consistency
Add _dropdown() and _ensure_dropdown() helper functions to provide
consistent dropdown configuration format expected by ComfyUI frontend
in newer builds.

Update all GGUF loader classes (UnetLoaderGGUF, UnetLoaderGGUFAdvanced,
CLIPLoaderGGUF, DualCLIPLoaderGGUF, TripleCLIPLoaderGGUF,
QuadrupleCLIPLoaderGGUF) to use the new helpers, ensuring proper
frontend dropdown formatting with default value support.
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