Skip to content

[Feature Request] Android GPU Acceleration Support (Vulkan/MLC-LLM) #371

Open

Description

@Fangwangye

Describe the bug

Feature Request
Description
Currently, LLM Unity only supports CPU inference on Android (LLMLib.cs line 671-674 only adds "android" architecture regardless of GPU settings). This results in very slow inference speeds (2-3 tokens/sec) on mobile devices.
I would like to request Android GPU acceleration support using Vulkan backend.
Current Behavior
numGPULayers setting is visible in Inspector but has no effect on Android PossibleArchitectures() in LLMLib.cs only returns CPU architecture for Android:
csharp
else if (Application.platform == RuntimePlatform.Android)
{
architectures.Add("android"); // Only CPU, no GPU option
}

Steps to reproduce

No response

LLMUnity version

v3.0.0

Operating System

None

Activity

  1. added
    enhancementNew feature or request
    and removed
    bugSomething isn't working
    on Mar 2, 2026
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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions