Hello team,
Can you please enable components for the redactor snap. Uploads currently fail with:
Issues while processing snap:
- Snap is not allowed to use components
About the snap: redactor is a local, AI-backed tool that redacts sensitive information from text and log files. It runs a GLiNER2 model locally with PyTorch.
Why we need components: The base snap ships the CPU build of PyTorch. We want to offer GPU acceleration as an optional component, so users without a supported GPU don’t download it:
| Component | Contents | Size |
|---|---|---|
torch-xpu |
PyTorch XPU build plus the Intel GPU compute runtime | ~1.8 GB |
On a supported Intel GPU, redaction runs about 3-5× faster than on the CPU. The configure hook detects a supported GPU by reading PCI vendor and device IDs (through the opengl plug) and installs the component with snapctl install +torch-xpu. We plan to add components for other GPU vendors later.
Details
- Snap name:
redactor - Source: https://github.com/canonical/redactor (snapcraft.yaml:
snapcraft.yaml, branchadd-gpu-support)
Thank you!