From 71b77adb368cbb38756f9457536e7362579f6d77 Mon Sep 17 00:00:00 2001 From: Pascal Linxweiler Date: Mon, 5 Oct 2026 23:01:59 +0200 Subject: [PATCH] Add Importing existing models page --- Importing-existing-models.md | 39 ++++++++++++++++++++++++++++++++++++ _Sidebar.md | 1 + 2 files changed, 40 insertions(+) create mode 100644 Importing-existing-models.md diff --git a/Importing-existing-models.md b/Importing-existing-models.md new file mode 100644 index 0000000..e0e7963 --- /dev/null +++ b/Importing-existing-models.md @@ -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, `/`, 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 `/` 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. diff --git a/_Sidebar.md b/_Sidebar.md index 7197105..ca46b35 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -1,4 +1,5 @@ - [[Home]] - [[Configuration]] +- [[Importing existing models]] - [[Storing models on a NAS]] - [README / Install](https://git.linxweiler.xyz/pascallinxweiler/Kaname)