craft-ai-engine-candle

This crate contains a port of the SAM 3 model code of Hugging Face Transformers
(https://github.com/huggingface/transformers, src/transformers/models/sam3 and sam3_tracker),
Copyright The HuggingFace Team and Meta Platforms, Inc., licensed under the Apache License,
Version 2.0 (see ../../LICENSE-APACHE).

The port was written by the LightCraft contributors (2026) as the `lightcraft-segment` crate
(https://github.com/storytold/lightcraft, crates/segment) and modified there: translated from
Python/PyTorch to Rust on candle and restructured. It was copied into this crate from LightCraft's
main branch on 17/10/2026 and modified again: placed behind the craft-ai-engine runner contract,
the download and worker-process modules left out, web-build conditions removed, files reformatted.
Each ported file carries its own note. Because of the port, this crate is licensed under the
Apache License 2.0 only, not under the MIT option of the rest of this repository.

The SAM 3 weights are not part of this repository and are never distributed with it. A person
downloads Meta's facebook/sam3 checkpoint only when they choose to, under Meta's SAM License
(https://github.com/facebookresearch/sam3/blob/main/LICENSE), a separate, non-OSI licence.
