Skip to content

Studio: opt-in recursive scanning for custom model folders - #6989

Merged
danielhanchen merged 17 commits into
unslothai:mainfrom
aditya-786:feat/studio-recursive-scan-folders
Oct 5, 2026
Merged

danielhanchen merged 17 commits into
unslothai:mainfrom
aditya-786:feat/studio-recursive-scan-folders

Conversation

@aditya-786

@aditya-786 aditya-786 commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #6371 (option 1). A registered model folder only listed models sitting directly inside it, so a library organised as a nested tree (vendor/family/model, several levels deep) never showed up. Adding a location now has an Also scan sub-folders checkbox. Folders added without it scan exactly as before; whole-disk indexing (option 2) is out of scope.

How it works

  • scan_folders gains a recursive INTEGER NOT NULL DEFAULT 0 column, added in place on existing databases. add_scan_folder_with_status(path, recursive=None): None keeps the stored flag (so export re-registration never resets it), True/False sets it, and a flag change invalidates the auto-switch index like an insert does.
  • One walker, nested_scan_roots, lists the sub-folders of a recursive folder to scan like the folder itself. It never enters a folder the scan already lists as a model (immediate weights or a diffusers pipeline), an HF cache repo (models--*), hidden folders, ollama_links/node_modules/Ollama blobs, symlinks or Windows junctions (reparse tag checked, so Python 3.11 is covered and OneDrive folders stay walkable). Caps: depth 8, 500 folders, 20000 entries.
  • All three consumers use it, so they list the same rows: the Hub inventory (/api/hub/local), the model picker inventory (/api/models/local) and the OpenAI auto-switch resolver. Nested rows are deduplicated against the folder's own scan (an LM Studio publisher/repo layout is not listed twice), keep the per-folder 200-model cap, and nested HF caches are listed too.
  • In-flight inventory scans are keyed on the flag, so toggling it never reuses a scan of the other mode.
  • API: recursive on AddScanFolderRequest / ScanFolderInfo for both /api/hub/scan-folders and /api/models/scan-folders. UI: checkbox in the add-location dialog, and an "Includes sub-folders" note on recursive rows.

Tests

studio/backend/tests/test_recursive_scan_folders.py: walker pruning, skips, depth cap; nested models found only with the flag and the flat result a subset; LM Studio layout not relisted; nested HF cache found; config-only folders do not hide a model below them and are not listed as picker rows; storage round trip, keep-on-omit, flip, and migration of a table without the column.

End to end over HTTP on a tree with models at depth 1, 3 and 6: main lists only the top-level GGUF on /api/hub/local, /api/models/local and in the resolver; this branch lists all three with the flag, and exactly main's single row without it.

Screenshots

Before (merge base 617b0d4be) vs after (73b99fd65), each a fresh Studio install, adding the same library with models at depth 1, 3 and 6.

The add-location dialog gains the checkbox, and a recursive location says so:

On-device locations dialog, before and after

On Device filtered to the library: before lists only the top-level GGUF, after also lists the two nested models:

On Device list, before and after

aditya-786 and others added 2 commits July 9, 2026 00:13
Registered scan folders only surface models that sit directly inside them,
so models organized in nested trees (vendor/family/model) never show up in
the Hub. This adds an opt-in per-folder recursive flag: an 'Also scan
sub-folders' checkbox when registering a location, a bounded walker
(depth cap, visited-entry cap, symlinks never followed, model directories
never descended into) feeding the existing scanners, and a safe additive
column on the shared scan_folders table. Folders without the flag keep
byte-identical behavior.
@gemini-code-assist

This comment has been minimized.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 66007e86ba

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread studio/backend/routes/models.py Outdated

try:
folder = add_scan_folder(body.path)
folder = add_scan_folder(body.path, body.recursive)

This comment was marked as outdated.

This comment was marked as outdated.

Comment thread studio/backend/routes/models.py Outdated
if folder.get("recursive"):
from hub.services.models.local_inventory import iter_recursive_scan_dirs

seen = {(m.path, m.model_format, m.format_variant) for m in custom_models}

This comment was marked as outdated.

This comment was marked as outdated.

Comment on lines +566 to +567
if child.is_symlink() or _has_immediate_model_signal(child):
continue

This comment was marked as outdated.

This comment was marked as outdated.

Comment on lines +601 to +605
for m in _filtered(
_scan_models_dir(
subdir,
limit = _MAX_MODELS_PER_CUSTOM_FOLDER - len(generic),
entry_limit = _MAX_CUSTOM_FOLDER_ENTRIES,

This comment was marked as outdated.

This comment was marked as outdated.

Comment thread studio/backend/routes/models.py Outdated
Comment on lines +839 to +842
for m in _scan_models_dir(
subdir,
limit = _MAX_MODELS_PER_FOLDER - len(custom_models),
):

This comment was marked as outdated.

This comment was marked as outdated.

aditya-786 and others added 2 commits July 9, 2026 11:03
…ntainment, resolver parity

The legacy AddScanFolderRequest/ScanFolderInfo now carry the recursive
field so the /api/models endpoint works, and the legacy loop reads
format_variant via getattr since its LocalModelInfo lacks that field.
The walker prunes on immediate weights instead of any model signal so a
config-only intermediate directory is still descended into. Recursive
results are containment-checked with path_is_same_or_child so a nested
symlink cannot pull in models from outside the registered folder, and
the OpenAI auto-switch resolver mirrors the recursive scan so a model
advertised in the catalog also resolves.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a09874606d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread studio/backend/routes/models.py Outdated

try:
folder = add_scan_folder(body.path)
folder = add_scan_folder(body.path, body.recursive)

This comment was marked as outdated.

This comment was marked as outdated.

continue
child = current / name
try:
if child.is_symlink() or _has_immediate_model_weight(child):

This comment was marked as outdated.

This comment was marked as outdated.

method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ path }),
body: JSON.stringify({ path, recursive }),

This comment was marked as outdated.

This comment was marked as outdated.

Symlinks are never followed; depth and visited-entry caps bound the walk."""
base_depth = len(folder_path.parts)
visited = 0
for dirpath, dirnames, _filenames in os.walk(folder_path, topdown = True, followlinks = False):

This comment was marked as outdated.

This comment was marked as outdated.

)
):
key = (m.path, m.model_format, m.format_variant)
if key in seen or not path_is_same_or_child(Path(m.path), folder_path):

This comment was marked as outdated.

This comment was marked as outdated.

aditya-786 and others added 2 commits July 9, 2026 13:37
…caps and containment

The recursive flag is now Optional end to end, so a bare legacy add call
no longer flips an existing folder back to non-recursive; only an
explicit value updates the row. The walker prunes exactly what the
parent scan classifies as a model (config plus weights, or a main GGUF
file), so weight-only intermediate directories are still descended
into, and regular files now count toward the visited-entry cap so flat
folders with many files stay bounded. Containment checks also resolve a
model directory's immediate weight files, rejecting rows whose weights
are symlinked outside the registered folder, and the legacy
add_scan_folder now rejects filesystem roots like the hub path does.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4ae26a77e5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +199 to +203
for subdir in iter_recursive_scan_dirs(fp):
found += [
m
for m in _scan_models_dir(subdir, limit = 200)
if scan_result_within_folder(m.path, fp)

This comment was marked as outdated.

This comment was marked as outdated.

Comment thread studio/backend/routes/models.py Outdated
Comment on lines +844 to +847
for m in _scan_models_dir(
subdir,
limit = _MAX_MODELS_PER_FOLDER - len(custom_models),
):

This comment was marked as outdated.

This comment was marked as outdated.

Comment on lines +136 to +138
for index, entry in enumerate(candidate.iterdir(), start = 1):
if index > _MODEL_SIGNAL_PROBE_LIMIT:
break

This comment was marked as outdated.

This comment was marked as outdated.

…date all weights

The OpenAI auto-switch resolver now caps a recursive folder's contribution
at 200 rows like the catalog scan, instead of adding up to 200 per
sub-directory. The legacy recursive loop drops rows for directories that
only carry a config file and no loadable weights, matching the Hub
inventory path. Containment now checks every immediate weight file rather
than only the first probe window, so a symlinked weight late in a large
model directory can no longer escape the registered folder.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 98dae68ed8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +141 to +142
if entry.is_file() and _is_immediate_model_weight_file(entry):
if not path_is_same_or_child(entry, folder_path):

This comment was marked as outdated.

This comment was marked as outdated.

Comment thread studio/backend/routes/models.py Outdated
Comment on lines +853 to +856
for m in _scan_models_dir(
subdir,
limit = _MAX_MODELS_PER_FOLDER - len(custom_models),
):

This comment was marked as outdated.

This comment was marked as outdated.

Comment on lines +206 to +207
found.append(m)
recursive_budget -= 1

This comment was marked as outdated.

This comment was marked as outdated.

Comment thread studio/backend/routes/models.py Outdated
Comment on lines +299 to +301
if path.is_file():
return True
return any(path.glob("*.gguf")) or _has_non_gguf_weights(path)

This comment was marked as outdated.

This comment was marked as outdated.

continue
child = current / name
try:
if child.is_symlink() or _is_scan_leaf_dir(child, entry_limit = entry_limit):

This comment was marked as outdated.

aditya-786 and others added 2 commits July 12, 2026 13:25
…scan paths

Round of consistency fixes so the Hub inventory, legacy /api/models, and
OpenAI auto-switch resolver paths behave identically:

- containment now rejects any immediate entry that is a symlink resolving
  outside the registered folder, covering companion GGUFs (mmproj/MTP) and
  config/tokenizer files, not just main weights
- the resolver skips .studio_links/ollama_links rows like the other paths,
  so an Ollama link shim can no longer become an auto-switch load target
- loadable-weights and link filters, and a per-directory entry cap on the
  flat custom-folder scans, are applied on all three paths
- the model-leaf probe and the resolver budget use the shared entry limit
  so a late GGUF is not missed and duplicates do not exhaust the budget

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5793b0f8e6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Symlinks are never followed; depth and visited-entry caps bound the walk."""
base_depth = len(folder_path.parts)
visited = 0
for dirpath, dirnames, _filenames in os.walk(folder_path, topdown = True, followlinks = False):

This comment was marked as outdated.

This comment was marked as outdated.

continue
child = current / name
try:
if child.is_symlink() or _is_scan_leaf_dir(child, entry_limit = entry_limit):

This comment was marked as outdated.

This comment was marked as outdated.

Comment thread studio/backend/routes/models.py Outdated
Comment on lines +383 to +385
visited += 1
if entry_limit is not None and visited > entry_limit:
break

This comment was marked as outdated.

This comment was marked as outdated.

- iter_recursive_scan_dirs walks with os.scandir and stops reading a
  directory once the entry cap is reached, instead of os.walk which builds
  the full file listing per directory before the cap can apply.
- _is_scan_leaf_dir probes the same window the parent scan uses to emit a
  model directory, so a directory the parent would not emit is never pruned
  from the walk (a wider probe could drop the model from every scan).
- routes _scan_models_dir handles directories and standalone .gguf files in
  a single pass, so a top-level .gguf is counted against the entry limit once
  rather than twice and is no longer dropped when the folder fills the cap.

Adds a test for descending through file-heavy directories.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e4e6493b1a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +677 to +680
_scan_models_dir(
subdir,
limit = _MAX_MODELS_PER_CUSTOM_FOLDER - len(generic),
entry_limit = _MAX_CUSTOM_FOLDER_ENTRIES,

This comment was marked as outdated.


# The main GGUF sorts after 200 entries; with the probe raised to the entry
# limit the dir is still classified as a model leaf and pruned from descent.
assert model not in yielded

This comment was marked as outdated.

)
if recursive:
seen = {(m.path, m.model_format, m.format_variant) for m in generic}
for subdir in iter_recursive_scan_dirs(folder_path):

This comment was marked as outdated.

Main rewrote every file this branch touched; take main's tree and
reimplement recursive scanning on top of it in the next commit.
A registered folder can now also list models in its sub-folders (unslothai#6371).
One bounded walker (depth 8, 500 folders, 20000 entries; no symlinks,
junctions, hidden folders or HF cache repos; never enters a folder
already listed as a model) feeds the Hub inventory, the /api/models
inventory and the auto-switch resolver, so all three list the same rows.
Folders registered without the flag scan exactly as before.
@danielhanchen
danielhanchen self-requested a review as a code owner October 5, 2026 10:01
…picker

A folder with a config.json but no weights is not a model the scan lists,
so the walk now enters it and finds the model below. The legacy scanner
lists such folders as rows; nested rows now need weights or a diffusers
pipeline, so other apps' configs in a big tree stay out of the picker.
A nested HF cache could add more rows than the folder's remaining 200-row
allowance on /api/models/local and the auto-switch index.
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 5, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 5, 2026
danielhanchen added a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 5, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member

Review record for #6989, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#440.

Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found.

Round 1: reviewed mirror 3abd26b9d (no equivalent commit found on this PR)

chatgpt-codex-connector[bot] on studio/backend/hub/services/models/local_inventory.py (on the mirror)

@@ -913,12 +987,46 @@ async def _collect_models_from_default_sources(
     return local_models
 
 
+def _scan_row_key(row: LocalModelInfo) -> tuple[str, str, Optional[str]]:
+    return (row.path, row.model_format, row.format_variant)
+
+
+def _scan_nested_roots(
+    nested_roots: tuple[Path, ...],
+    *,
+    seen: set[tuple[str, str, Optional[str]]],
+    active_hub_cache: Optional[Path],
+) -> List[LocalModelInfo]:
+    """Rows under a recursive folder's nested roots, minus any the folder's own scan already listed."""
+    found: List[LocalModelInfo] = []
+    for root in nested_roots:
+        if len(found) >= _MAX_MODELS_PER_CUSTOM_FOLDER:
+            break
+        rows = _scan_models_dir(
+            root,
+            limit = _MAX_MODELS_PER_CUSTOM_FOLDER - len(found),
+            entry_limit = _MAX_CUSTOM_FOLDER_ENTRIES,
+        ) + _scan_hf_cache(

P1 Badge Prevent nested scans from following excluded symlinks

When a recursive root contains an ordinary subfolder whose immediate child is a directory symlink or Windows junction, nested_scan_roots() excludes that link but returns its parent here; _scan_models_dir(root) then uses following Path.is_dir() calls and indexes the linked model anyway. For links below the registered folder's first level, this newly bypasses both the walk's no-link guarantee and the account-boundary check by exposing models outside the registered workspace; filter excluded children in the per-root scan or verify every emitted path remains physically under the scan root.

Useful? React with 👍 / 👎.

Rejected on the mirror

Reply from danielhanchen:

Not a new exposure: main already lists a symlinked model folder directly inside a registered folder as its own alias row (#10644), and the walk skips links only so traversal cannot loop or escape. A link one level deeper gets the same treatment main gives at depth 1.

chatgpt-codex-connector[bot] on studio/backend/hub/services/models/local_inventory.py (on the mirror)

@@ -913,12 +987,46 @@ async def _collect_models_from_default_sources(
     return local_models
 
 
+def _scan_row_key(row: LocalModelInfo) -> tuple[str, str, Optional[str]]:
+    return (row.path, row.model_format, row.format_variant)
+
+
+def _scan_nested_roots(
+    nested_roots: tuple[Path, ...],
+    *,
+    seen: set[tuple[str, str, Optional[str]]],
+    active_hub_cache: Optional[Path],
+) -> List[LocalModelInfo]:
+    """Rows under a recursive folder's nested roots, minus any the folder's own scan already listed."""
+    found: List[LocalModelInfo] = []
+    for root in nested_roots:
+        if len(found) >= _MAX_MODELS_PER_CUSTOM_FOLDER:
+            break
+        rows = _scan_models_dir(
+            root,
+            limit = _MAX_MODELS_PER_CUSTOM_FOLDER - len(found),
+            entry_limit = _MAX_CUSTOM_FOLDER_ENTRIES,
+        ) + _scan_hf_cache(

P2 Badge Scan nested roots for Ollama stores

For a recursive registration containing an Ollama store below it, such as <root>/team/ollama/{manifests,blobs}, this helper runs only the generic-model and HF-cache scanners. The only scan_ollama_dir call remains against folder_path itself, so the nested store produces no rows in the Hub inventory, model picker, or auto-switch resolver despite the recursive option; invoke the Ollama scanner for eligible nested roots while preserving the per-folder limit.

Useful? React with 👍 / 👎.

Rejected on the mirror

Reply from danielhanchen:

Out of scope for #6371, which asks for nested GGUF and safetensors libraries. Ollama stores are already found at their own locations, and the legacy Ollama scan writes link files, so running it across a walked tree is not a safe drive-by.

chatgpt-codex-connector[bot] on studio/backend/hub/services/models/local_inventory.py (on the mirror)

@@ -159,6 +159,74 @@ def _is_model_directory_for_scan(path: Path, *, entry_limit: int | None) -> bool
     return has_config and _has_immediate_model_weight(path)
 
 
+_MAX_NESTED_SCAN_DEPTH = 8
+_MAX_NESTED_SCAN_DIRS = 500
+_MAX_NESTED_SCAN_ENTRIES = 20000
+# blobs: an Ollama store's content-addressed files, never a model folder.
+_NESTED_SCAN_SKIP_NAMES = frozenset({"ollama_links", "node_modules", "__pycache__", "blobs"})
+
+
+def _is_plain_dir_entry(entry: os.DirEntry) -> bool:
+    if not entry.is_dir(follow_symlinks = False):
+        return False
+    # A Windows junction is a directory to is_dir(follow_symlinks=False) before 3.12; other reparse
+    # points (OneDrive placeholders) are real folders and stay walkable.
+    tag = getattr(entry.stat(follow_symlinks = False), "st_reparse_tag", 0)
+    return tag != _IO_REPARSE_TAG_MOUNT_POINT
+
+
+def is_loadable_model_dir(path: Path) -> bool:
+    """A folder the scan lists as a loadable model. A config with no weights beside it is not one: its model may sit a level down."""
+    return _is_diffusers_pipeline_dir(path) or _has_immediate_model_weight(path)
+
+
+def nested_scan_roots(folder_path: Path) -> list[Path]:
+    """Sub-directories of a recursive scan folder to scan like the folder itself (#6371).
+
+    Never descends into a directory the parent's scan already lists as a model, an HF cache repo, a hidden
+    directory, a symlink or a Windows junction, so each model is reached once and the walk stays inside
+    *folder_path*. Depth, directory and entry caps bound it on huge trees."""
+    # Same test _scan_models_dir uses to list the folder as one model; loose GGUFs beside sub-folders are not.
+    if _is_model_directory_for_scan(folder_path, entry_limit = _MAX_CUSTOM_FOLDER_ENTRIES):
+        return []
+    roots: list[Path] = []
+    visited = 0
+    stack: list[tuple[Path, int]] = [(folder_path, 0)]
+    while stack and len(roots) < _MAX_NESTED_SCAN_DIRS:
+        current, depth = stack.pop()
+        if depth >= _MAX_NESTED_SCAN_DEPTH:
+            continue
+        children: list[Path] = []
+        try:
+            with os.scandir(current) as entries:
+                for entry in entries:
+                    visited += 1
+                    if visited > _MAX_NESTED_SCAN_ENTRIES:
+                        break
+                    name = entry.name
+                    if (
+                        name.startswith((".", "models--", "datasets--", "spaces--"))
+                        or name in _NESTED_SCAN_SKIP_NAMES
+                    ):
+                        continue
+                    try:
+                        if not _is_plain_dir_entry(entry):
+                            continue
+                    except OSError:
+                        continue
+                    child = Path(entry.path)
+                    if not is_loadable_model_dir(child):
+                        children.append(child)

P2 Badge Continue below mixed model and library directories

When a nested directory contains an immediate weight file as well as deeper model folders, is_loadable_model_dir(child) prevents that directory from being added to both roots and the traversal stack. Its parent scan lists the immediate model, but no scanner reaches the deeper folders, so enabling recursive scanning still silently omits them. This differs from the registered root, which explicitly remains traversable when it has loose weights beside subfolders; mixed layouts can occur at any depth.

Useful? React with 👍 / 👎.

Rejected on the mirror

Reply from shimmyshimmer:

Deliberate: a folder with loose weights is listed as one model, and an unsloth GGUF repo keeps its quant variants in sub-folders (UD-Q4_K_XL/ and similar). Descending would list each quant folder as a separate bogus model, so a model nested under a mixed folder is the lesser miss.

Round 2: reviewed mirror 7fb134d25 (no equivalent commit found on this PR)

chatgpt-codex-connector[bot] (on the mirror)

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 7fb134d25a

No triage reaction was recorded on the mirror

Verdict

The round converged at mirror 7fb134d25 (no equivalent commit found on this PR).

This is the review as it stood at that commit. Anything pushed to this PR afterwards was not part of it.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 5, 2026
@danielhanchen
danielhanchen merged commit 201c28f into unslothai:main Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Please add 2 options to enable Unsloth Studio to (1) scan all sub-directories, or even (2) scan the entier hard disks for LLMs and index them

3 participants