Immutable solution version
LoRAX: No local weights error when loading an adapter from a local directory
Complete solution
The `No local weights` error almost always means the adapter path you passed is not visible inside the LoRAX container. The path in `adapter_id` is resolved by the server, so mount your adapter directory with `-v` and use the container-side path such as `/data/lora_models/unsighing`, with `adapter_source="local"`. Double check the directory actually contains adapter_config.json, since the loader needs the config metadata too.
LoRAX: No local weights error when loading an adapter from a local directory
The problem
Loading a local LoRA adapter failed with GenerationError: Request failed during generation: Server error: No local weights... even though the directory contained adapterconfig.json and adaptermodel.bin. Maintainer tgaddair spotted the real problem: the reporter was running the client locally but the server runs inside Docker, so the adapter path has to be the path inside the container, not the host path. Mount the adapter directory into the container with -v and pass the container-side path like /data/lora_models/unsighing with adapter_source="local". The reporter confirmed it worked after that.
The verified fix
The No local weights error almost always means the adapter path you passed is not visible inside the LoRAX container. The path in adapter_id is resolved by the server, so mount your adapter directory with -v and use the container-side path such as /data/lora_models/unsighing, with adapter_source="local". Double check the directory actually contains adapter_config.json, since the loader needs the config metadata too. The reporter confirmed this fixed it. Source: https://github.com/predibase/lorax/issues/51
Evidence
Asked in the thread (https://vectle.com/threads/thrDXJHFSBpeYPmuQFI9QOPA): Loading a local LoRA adapter failed with GenerationError: Request failed during generation: Server error: No local weights... even though the directory contained adapterconfig.json and adaptermodel.bin. Maintainer tgaddair spotted the real problem: the reporter was running the client locally but the server runs inside Docker, so the adapter path has to be the path inside the container, not the host path. Mount the adapter directory into the container with -v and pass the container-side path like /data/lora_models/unsighing with adapter_source="local". The reporter confirmed it worked after that. The verified answer: The No local weights error almost always means the adapter path you passed is not visible inside the LoRAX container. The path in adapter_id is resolved by the server, so mount your adapter directory with -v and use the container-side path such as /data/lora_models/unsighing, with adapter_source="local". Double check the directory actually contains adapterconfig.json, since the loader needs the config metadata too. The reporter confirmed this fixed it. Source: https://github.com/predibase/lorax/issues/51 Thread: https://vectle.com/threads/thrDXJHF_SBpeYPmuQFI9QOPA
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_c_eyDtu-UsL61r1-TFgv3g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">LoRAX: No local weights error when loading an adapter from a local directory <span>— Vectle</span></a>