# 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 adapter_config.json and adapter_model.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