Commit Graph
10 Commits
Author SHA1 Message Date
FranckyB dfc640b2af feat: Add support for native text encoders in Prompt Manager
- Introduced a new setting for preferred native models, allowing users to select from available .safetensors text encoders.
- Implemented API endpoint to fetch native model options dynamically.
- Updated the PromptGenerator class to handle native text encoders, including validation and prompt conversion logic.
- Enhanced user interface elements to accommodate new settings and options for native models.
- Refactored existing code to improve clarity and maintainability, including renaming variables and functions for better context.
2026-11-25 00:40:16 -05:00
FranckyB 603fbaaeee feat: enhance prompt management with preferred model settings and draft handling in the editor 2026-10-07 22:18:24 -04:00
FranckyB 0cf69cad19 feat: Add preference to hide downloadable built-in models in Prompt Manager 2026-09-13 23:33:25 -04:00
Francois Beaudry a486506317 Merge pull request #44 from sophosympatheia/feat/gpu-device-selection
feat: Add GPU device selection for llama.cpp server (multi-GPU support)
2026-08-04 02:04:04 -04:00
sophosympatheia 4459c270c2 Fix mmproj discovery to recurse into subfolders and match same-folder files
get_mmproj_path()'s heuristic search used os.listdir(models_dir), so mmproj
files placed in a model's own subfolder were never found. It also required
>= 4 shared non-quant keywords between model and mmproj filenames, which
fails for generically-named files like 'mmproj-BF16.gguf' that carry no
identifying keywords at all.

Add a same-folder fallback: if the model's directory contains exactly one
mmproj file, use it without requiring any naming convention. Keep the
keyword heuristic as a fallback for mmproj files that live elsewhere, and
make that search recurse into subfolders too.
2026-08-03 21:21:43 -07:00
sophosympatheia fd707a2a05 Fix local model discovery to recurse into subfolders
get_local_models() used a non-recursive glob.glob(models_dir/*.gguf), so
.gguf files placed in subfolders of a configured models directory (e.g.
~/models/Gemma-4-31B-it/gemma-4-31B-it-qat-UD-Q4_K_XL.gguf) were never
listed as available models.

Walk the directory tree with os.walk instead and return each match as a
path relative to its models_dir. This matches the relative-path
convention ComfyUI's own folder_paths.recursive_search uses, so
is_model_local() and get_model_path() (which already join models_dir
with the returned name) work unchanged for subfolder entries.
2026-08-03 21:15:08 -07:00
sophosympatheia 5411a0bf88 feat: Add GPU device selection for llama.cpp server (multi-GPU support)
Add optional gpu_device input to Prompt Generator Options node, allowing users
to specify which GPU loads the LLM weights via llama.cpp's --main-gpu flag.

Use case: with two GPUs, load your diffusion model on cuda:0 and the LLM
on cuda:1 by setting gpu_device to "1".

Changes:
- py/model_manager.py: Add llama_gpu_device preference (global default)
- nodes/prompt_generator_options.py: Add gpu_device optional input string field
- nodes/prompt_generator.py: Pass --main-gpu flag when gpu_device is specified,
  track device in restart condition so server reloads when GPU selection changes
2026-08-03 10:24:47 -07:00
THE_BEAST\me 98c7d94290 refactor: Consolidate model preference handling by renaming and unifying preferred model settings 2026-05-17 03:48:22 -04:00
THE_BEAST\me f9b7c601f9 prompt extractor:
enhance video thumbnail extraction and error handling for unsupported formats

Prompt Generator:
Improve llama-server startup handling and fix docstring
- Increase server startup timeout from 30s to 120s for large models
- Detect early server crashes and show stderr output to user
- Fix _get_model_keywords docstring to reflect version preservation (qwen3.5)
2026-04-05 05:10:32 -04:00
THE_BEAST\me 4cdb3a0d68 ### version 1.21.0
- **Removed miscellaneous tools** — Switch Any, Save Video H26x, Apply LoRA Stack, Better Image Loader, and Animated Latent Preview have been moved to a dedicated repository: [ComfyUI-FBnodes](https://github.com/FranckyB/ComfyUI-FBnodes)
- **Project restructure** — Organized node files into `nodes/` and utility modules into `py/` for cleaner codebase
2026-03-31 23:16:02 -04:00