---
title: "Discussion on \"Optimise stable diffusion model on Rasberry Pi\" | Hashnode"
description: "Discussion on \"Optimise stable diffusion model on Rasberry Pi\". OnnxStream makes use of XNNPACK to optimise Stable Diffusion generates AI image. I tried running it on my Rasberry Pi 4B and then wrote this guide."
url: "https://hashnode.com/posts/optimise-stable-diffusion-model-on-rasberry-pi/6585b8ff3b23261e9fb4cdd1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Optimise stable diffusion model on Rasberry Pi](https://huanganni.hashnode.dev/optimise-stable-diffusion-model-on-rasberry-pi?utm_source=hashnode&utm_medium=feed)

OnnxStream makes use of XNNPACK to optimise Stable Diffusion generates AI image. I tried running it on my Rasberry Pi 4B and then wrote this guide.

Dec 22, 2023 · 5 min read · huanganni.hashnode.dev  
Read the article

-   [#attention-slicing](https://hashnode.com/tag/attention-slicing)
-   [#stable-diffusion](https://hashnode.com/tag/stable-diffusion)
-   [#raspberry-pi](https://hashnode.com/tag/raspberry-pi)
-   [#generative-ai](https://hashnode.com/tag/generative-ai)
-   [#step-by-step-guide](https://hashnode.com/tag/step-by-step-guide)
-   [#ai-art-generator](https://hashnode.com/tag/ai-art-generator)
-   [#quantization](https://hashnode.com/tag/quantization)
-   [#edgecomputing](https://hashnode.com/tag/edgecomputing)

## Written by

[Anni Huang](https://hashnode.com/@HuangAnni)

@HuangAnni · Singapore

  
[View profile](https://hashnode.com/@HuangAnni)

LLM Training Operation Specialist @ ByteDance | Ex-Master of IT in Business (AI track) at SMU

I’m Anni Huang, an AI researcher-in-training currently at ByteDance, specializing in LLM training operations with a coding focus. I bridge the gap between engineering execution and model performance, ensuring the quality, reliability, and timely delivery of large-scale training projects.

## Responses

Markdown supported · ⌘↵ to post

[Anni Huang](https://hashnode.com/@HuangAnni)

[Dec 23, 2023](https://hashnode.com/posts/optimise-stable-diffusion-model-on-rasberry-pi/6585b8ff3b23261e9fb4cdd1/comment/65863769c510011bdfd868d1)

Running as root for jupyterlab is not recommended. Use --allow-root to bypass. Can create a user to run Jupyter Lab. [stackoverflow.com/questions/57201678/how-do-i-run…](https://stackoverflow.com/questions/57201678/how-do-i-run-my-jupyter-notebook-as-a-service-from-a-virtual-environment)
