Request classic confinement for jan-ai desktop app

  • name: jan-ai
  • description: Jan is an open source alternative to ChatGPT that runs 100% offline on your computer
  • snapcraft: The app is build with electron-builder. I don’t see any snapcraft.yaml. This is done under the hood of electron-builder.
  • upstream: GitHub - janhq/jan: Jan is an open source alternative to ChatGPT that runs 100% offline on your computer
  • upstream-relation: maintainer of the Jan
  • supported-category: tools for local, non-root user driven configuration of/switching to development workspaces/environments
  • reasoning: The application requires access to utilize GPU acceleration for LLM (Large Language Model) inference. While I have tested the app with existing interfaces like gpu-control and hardware-observe, these interfaces are not sufficient as the application fails to detect the GPU under strict confinement. When testing with classic confinement, the GPU is properly detected and the application functions as intended, providing the necessary acceleration for running large language models locally

I understand that strict confinement is generally preferred over classic.

I’ve tried the existing interfaces to make the snap to work under strict confinement.

1 Like

Hi @jan-service-account, just before delving into classic reviewing, have you tried the information from this page: https://snapcraft.io/docs/gpu-support?

1 Like

Yes, I’ve reviewed the information on that page and tried the suggested approaches, but the app still doesn’t detect my GPU under strict confinement. However, when I build the app with the classic confinement option, it detects the GPU and functions as expected.

Here’s the plugs that I put during the build process with electron-builder

image

electron-builder has a long history of creating broken snaps if the packaging task is a bit more complex, have you tried to simply package it with a proper snapcraft.yaml instead ?

GPU access is definitely fully supported through the existing interfaces and surely not a valid reason to grant classic confinement …

Here is a snap example for an AI tool that also uses electron-builder but with a proper snapcraft.yaml:

2 Likes