LocateAnything 3B
Author: SangbumChoi
Pull request: yes

<!-- ci-dashboard-badge:start -->
[![CI](https://transformers-ci.lor-e.huggingface.cool/badge/pr?pr=46300)](https://transformers-ci.lor-e.huggingface.cool/d/pytest-observability-by-pr/pytest-observability-branch?var-pr=46300)
<!-- ci-dashboard-badge:end -->

# What does this PR do?

Adds native Transformers support for NVIDIA LocateAnything 3B, including configuration, image processor, processor, PyTorch modeling code, AutoClass registration, documentation, and focused tests.

This is currently draft/WIP because the required maintainer or issue coordination has not been linked yet, and several source files still carry restrictive NVIDIA license headers that need a clean licensing path before review.

## Coordination and duplicate-work status

- Coordination/approval issue or forum link: missing. This must be added before requesting review.
- Duplicate PR search run: `gh pr list --repo huggingface/transformers --state open --search "LocateAnything OR Locate Anything OR nvidia/LocateAnything" --limit 20`. The only direct LocateAnything PR found was this PR (#46300).
- Issue search run: `gh issue list --repo huggingface/transformers --state open --search "LocateAnything OR Locate Anything OR nvidia/LocateAnything" --limit 20`. No matching open issue was found.

## Tests and checks run

- `make style`
- `make typing`
- `PYTHONPATH=src python utils/check_repo.py`
- `make check-repo`
- `PYTHONPATH=src pytest tests/models/locateanything/test_modeling_locateanything.py tests/models/locateanything/test_image_processing_locateanything.py -q`
- `PYTHONPATH=src python - <<'PY'
from transformers import AutoProcessor
processor = AutoProcessor.from_pretrained("nvidia/LocateAnything-3B", trust_remote_code=False)
print(type(processor).__name__)
print(type(processor.image_processor).__name__)
PY`

## AI assistance disclosure

AI assistance was used to draft and iterate on this patch. The human submitter is responsible for reviewing every changed line and validating the change end-to-end before moving this PR out of draft.

## Before submitting

- [ ] This is not a pure code-agent PR.
- [ ] I have read the contributor guidelines.
- [ ] This was discussed/approved via a GitHub issue or forum thread, linked above.
- [x] Documentation was added/updated.
- [x] Tests were added/updated.

Comments:
View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=46300&sha=308b17

<!-- ci-dashboard-recap:start -->

---

### CI recap

**Dashboard:** [View test results in Grafana](https://transformers-ci.lor-e.huggingface.cool/d/pytest-observability-by-pr/pytest-observability-branch?var-pr=46300)
**Latest run:** [29335147295:2](https://github.com/huggingface/transformers/actions/runs/29337329813)
**Result:** `failure` | **Jobs:** 15 | **Tests:** 171,207 | **Failures:** 1 | **Duration:** 13h 39m

<!-- ci-dashboard-recap:end -->

**[For maintainers]** Suggested jobs to run (before merge)

run-slow: auto, locateanything

@molbap @merveenoyan soft ping if you have time to review

Thank you for your contribution 🤗!

## CI Security Gate — automatic approval blocked

This PR was **not** automatically approved for CI because the security gate failed.

**Possible reasons:**
- The PR touches 50 or more files — only PRs with fewer than 50 changed files are automatically approved
- A changed file is outside the allowed directories (`src/`, `tests/`, `docs/`, `utils/`), has a disallowed extension (only `.py`, `.txt`, `.md` permitted outside `tests/` and `docs/`), or is not `.md`/`.yml` inside `docs/`
- A new high-severity security issue was detected in the changed Python files (Bandit check)

See the [workflow run](https://github.com/huggingface/transformers/actions/runs/29546490140) for the exact violations.

A maintainer can review and manually approve CI if a finding is a false positive.

@SangbumChoi it will be good to have a colab gist with inference