New Release: Ultralytics v8.3.240

:rocket: Ultralytics v8.3.240 is out — smoother SAM2/SAM3 video, safer memory, cleaner exports & docs :brain::movie_camera::package:

Quick overview: ultralytics==8.3.240 is a stability-focused release that makes SAM2/SAM3 video segmentation more reliable (especially on :red_apple: Apple Silicon), bounds video memory growth to help prevent OOMs, and polishes ONNX export + docs for smoother day-to-day workflows.

Grab the release details naturally via the Ultralytics v8.3.240 release page. :white_check_mark:


:glowing_star: New Features / Notable Updates

:red_apple: SAM3 on Apple Silicon (MPS) now runs reliably

A key SAM3 MPS fix avoids unsafe repeat() usage on complex tensors and uses MPS-safe paths while keeping CUDA/CPU behavior intact.

:brain: SAM2/SAM3 video memory usage is now bounded (prevents VRAM creep)

Long video runs are now safer: SAM3 tracker memory is pruned periodically to avoid VRAM growth during video inference.

:movie_camera: Faster, cleaner SAM3 semantic video tracking

Tracking logic is simplified and sped up by removing unmatched objects (instead of suppressing-but-still-tracked), with improved keep-alive defaults and more consistent labeling.


:package: Export & Deployment Improvements

:white_check_mark: More complete ONNX export environments

onnxslim>=0.1.80 is now included in the export extra, reducing missing-dependency surprises when running pip install ultralytics[export].


:books: Documentation Improvements

:inbox_tray: Clearer SAM 3 weight setup

Docs now point to the gated SAM 3 Hugging Face page and include a direct sam3.pt download link.

:puzzle_piece: Docs chat widget easier to extend + Markdown structure preserved

Improved maintainability for the docs chat widget and better handling of Markdown-heavy pages (tables, code blocks, lists, admonitions).

:repeat_button: Comet naming refresh

The integration guide now consistently uses “Comet” (formerly “Comet ML”) for clearer branding.


:new_button: New Contributor

Welcome aboard! :tada:


:up_arrow: How to Update

pip install -U ultralytics

Optional (export tooling):

pip install -U "ultralytics[export]"

:test_tube: Try it & share feedback :folded_hands:

If you’re running SAM2/SAM3 on longer videos or using Apple Silicon (MPS), this release should feel noticeably more stable. Please try v8.3.240 and reply with:

  • your device (CUDA / MPS / CPU),
  • model + mode (SAM2/SAM3, video),
  • and any before/after behavior (memory growth, speed, tracking consistency).

For the full diff, here’s the naturally integrated v8.3.239…v8.3.240 changelog comparison.