Skip to content

fix: omni size filtering, .completed sentinel backfill, disk space pre-check (#2201 #1341 #1999 #1003)#2463

Open
bong-water-water-bong wants to merge 1 commit into
lemonade-sdk:mainfrom
bong-water-water-bong:fix/model-manager-trio
Open

fix: omni size filtering, .completed sentinel backfill, disk space pre-check (#2201 #1341 #1999 #1003)#2463
bong-water-water-bong wants to merge 1 commit into
lemonade-sdk:mainfrom
bong-water-water-bong:fix/model-manager-trio

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Contributor

Three fixes in model_manager.cpp:

1. Fix #2201 — Size filter omni collections
Collections (LMX-Omni-52B-Halo, etc.) had an unconditional continue in the filtering loop that skipped ALL checks including size-vs-RAM. Now collections skip only the recipe-support check but still get size-filtered. Models like LMX-Omni-52B-Halo (44 GB) will be hidden on systems with insufficient RAM.

2. Fix #1341/#1999 — .completed sentinel with backfill
Added a .completed sentinel check to is_checkpoint_path_complete() as the authoritative download-complete marker. Includes automatic backfill: if a directory has content, no manifest, and no partial files but lacks .completed, the sentinel is written and the directory is accepted. This prevents both:

  • False positives (sentinel without actual GGUF files)
  • False negatives (upgrade re-downloads every model because old downloads lack the sentinel)

3. Fix #1003 — Disk space pre-check before HF download
Added a proactive fs::space() check before starting the HuggingFace download, mirroring the one already in download_from_manifest(). Catches disk-full conditions before any data is written, preventing system-level crashes on low-disk systems.

…e-check

Three fixes in model_manager.cpp:

1. lemonade-sdk#2201 — apply size-vs-RAM filter to omni collections instead of
   unconditionally passing them through (was skipping all filtering)

2. lemonade-sdk#1341/lemonade-sdk#1999 — add .completed sentinel to is_checkpoint_path_complete()
   with automatic backfill for pre-existing downloads. Prevents both false
   positives (sentinel without GGUF) and false negatives (no sentinel on
   old downloads causing re-download loops after upgrade)

3. lemonade-sdk#1003 — add proactive disk-space check before download_from_manifest()
   in the HuggingFace download path, mirroring the one already inside
   download_from_manifest()
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions github-actions Bot added bug Something isn't working cpp labels Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cpp

Projects

None yet

1 participant