Skip to content

[Engine] Add HIP support for Inkling 2 vision inference #362

Backlog

Description

@Joedmin

Summary

Add HIP/ROCm support for Inkling 2 vision inference. The image encoder and vision pipeline must run on AMD GPUs instead of requiring NVIDIA/CUDA, while preserving text-only fallback behavior.

Problem

Inkling 2 Mini and the current image encoder do not work together on AMD hardware:

  • --vision yes is currently unavailable or ignored for Inkling 2 Mini.
  • The image encoder is implemented as a CUDA program.
  • On AMD cards, images are disabled and the engine returns text-only answers.

Proposed behavior

  • Detect AMD/HIP devices through the existing device/backend detection.
  • Provide a vision-capable Inkling 2 engine or runtime on HIP.
  • Enable --vision yes only for engines that support vision.
  • Run the image encoder and image preprocessing through the HIP/ROCm stack.
  • Clearly report a configuration error when a text-only engine such as Inkling 2 Mini is used with --vision yes.

Acceptance criteria

  • inkling2 --vision yes works on a supported AMD GPU with a vision-capable model.
  • HIP is detected and used instead of silently falling back to text-only processing.
  • NVIDIA/CUDA behavior remains unchanged.
  • Text-only models do not advertise unsupported vision support.
  • The supported AMD GPUs, ROCm/HIP requirements, model requirements, and examples are documented.
  • Add or update tests for engine capability detection and vision image encoding on HIP.

Usage example

inkling2 --engine <vision-capable-engine> --device hip --vision yes

Environment

  • AMD GPU
  • HIP/ROCm runtime
  • Vision-capable Inkling 2 engine/model

PolyStrata version

  • Unknown — please set the installed version (run strata --version)

Activity

  1. added
    needs-format
    on Nov 26, 2026
  2. github-actions commented on Nov 26, 2026

    @github-actions

    Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

    • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
    • Add the PolyStrata version (Settings > About, or strata --version).

    Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

    Details: CONTRIBUTING.md

  3. changed the title [-]Add HIP support for Inkling 2 vision inference[/-] [+][Engine] Add HIP support for Inkling 2 vision inference[/+] on Nov 26, 2026
  4. Joedmin commented on Nov 26, 2026

    @Joedmin
    Author

    format should be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-format

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions