Install
uv add lucem # Core GPU ops, OME-Zarr I/O, @lucem.opuv add "lucem[web]" # + Browser WASM workstation (`lucem web`)uv add "lucem[app]" # + Native desktop workstation (`lucem app`)uv add "lucem[hist,stardist]" # + Histology + StarDist model pluginuv add "lucem[ml]" # + StarDist + SAM + InstanSeg pluginsgit clone https://github.com/neuro-kitchen/lucemcd lucemcargo build --release -p lucem-cli # `lucem` CLI & GPU servercargo build --release -p lucem-app # native desktop workstation[dependencies]lucem = "0.0.6"lucem-io = "0.0.6"lucem-pipeline = "0.0.6"Check your GPU
Section titled “Check your GPU”lucem runs on CUDA (NVIDIA), Vulkan / Metal / DX12 through wgpu (any recent GPU), or CPU. It picks the first usable GPU automatically:
lucem doctorimport lucem
lucem.runtime.available() # ['cuda', 'wgpu', 'cpu']: compiled in, GPUs firstlucem.runtime.current() # what calls use without runtime=let target = lucem_core::ComputeTarget::from_env()?;let client = target.client()?;To override the runtime, set LUCEM_RUNTIME=cuda|wgpu|cpu or pick it in Settings → Compute.
Model plugins
Section titled “Model plugins”Models run as separate programs (lucem-ml-*), so their runtimes and licences stay out of core lucem:
uv add "lucem[stardist]" # StarDist H&E and fluorescenceuv add "lucem[instanseg]" # InstanSeg brightfield and fluorescenceuv add "lucem[sam]" # Segment Anything 2uv run lucem pluginscargo build --release -p lucem-ml-stardistcargo build --release -p lucem-ml-instansegcargo build --release -p lucem-ml-samThen install weights from Settings → Models (works in both the desktop app and lucem serve --web). See Models.