Add Importing existing models page

Pascal Linxweiler committed 2026-10-05 23:01:59 +02:00
1 parent 92f8a2edd8
commit 71b77adb36
2 files changed
+40

No files matched your search

+39
@@ -0,0 +1,39 @@
# Importing existing models
Kaname can take over model folders that are already in your models folder, for example ones you
downloaded with `hf download --local-dir` or copied over from another machine.
## What Kaname finds
The worker scans the models folder at startup, every 2 minutes, and when you click **Rescan** in
the library. It lists every folder at the second level, `<org>/<name>`, that contains files and
doesn't belong to a model in the library yet:
```
models/
├── unsloth/Qwen3-8B-GGUF/ ← found as "unsloth/Qwen3-8B-GGUF"
│ └── Qwen3-8B-Q4_K_M.gguf
└── my-stuff/qwen-q4/ ← found as "my-stuff/qwen-q4"
└── qwen3-8b-q4_k_m.gguf
```
Files directly in the models folder, deeper layouts and the Hugging Face cache layout
(`models--org--name/snapshots/…`) aren't recognized. Move such files into an `<org>/<name>` folder
first. The scan only reads; it never changes anything on disk.
## Importing
1. In the library, under **Found in the models folder**, click **Import** next to the folder.
2. Add model opens with the folder name as the repo ID. If `hf` wrote the folder, Kaname also uses
the commit hf recorded; otherwise it looks up `main`. Change the repo ID or revision if the
folder name isn't the Hub repo (e.g. `my-stuff/qwen-q4` → `unsloth/Qwen3-8B-GGUF`). The model
keeps using the existing folder either way.
3. Files that are already in the folder are preselected and marked **on disk** (or **size
differs**). Select more files if you want them downloaded too.
4. Click **Import & verify**.
The import is a normal download job (purpose "import") into the existing folder. `hf download`
(huggingface_hub 2.1.1) checks every file it didn't download itself by hash: matching files are
kept, different or missing ones are downloaded. For large files the hashing takes a while, during
which the progress bar already shows the files as present. Files in the folder that aren't part of
the repo are left alone.
+1
@@ -1,4 +1,5 @@
- [[Home]]
- [[Configuration]]
- [[Importing existing models]]
- [[Storing models on a NAS]]
- [README / Install](https://git.linxweiler.xyz/pascallinxweiler/Kaname)