# \#diffusionkit

**URL:** https://discuss.pytorch.kr/tag/diffusionkit/3300.md

[최신](https://discuss.pytorch.kr/latest.md) · [카테고리](https://discuss.pytorch.kr/categories.md) · [태그](https://discuss.pytorch.kr/tags.md)

---

## [DiffusionKit: Apple Silicon에 최적화한 Diffusion 모델 (feat. MLX)](https://discuss.pytorch.kr/t/diffusionkit-apple-silicon-diffusion-feat-mlx/4645)

<div class="topic-metadata">

**Author:** [@9bow](https://discuss.pytorch.kr/u/9bow)\
**댓글:** 0\
**마지막 업데이트:** [6월 15, 2024, 1:41오후 UTC](https://discuss.pytorch.kr/t/diffusionkit-apple-silicon-diffusion-feat-mlx/4645 "2024-06-15T13:41:06Z")

</div>

DiffusionKit: Apple Silicon에 최적화한 Diffusion 모델 (feat. MLX) DiffusionKit 소개 DiffusionKit은 Apple Silicon에서 Diffusion 모델을 실행할 수 있는 Python 및 Swift 패키지입니다. Python 패키지인 diffusionkit은 PyTorch 모델을 Core ML 형식으로 변환하고, MLX를 통해 이미지 생성을 지원합니다. Swift 패키지인 DiffusionKit은 Core ML과 MLX를 활용한 온디바이스 추론을 가능하게 합니다. 이를 통해 Apple 기기에서 더 작은 메모리 사용으로 고성능 이미지 생성이 가능합니다. DiffusionKit은 Apple Silicon의 강력한 성능을 활용하기 위해 최적화된 도구입니다. 기존에는 PyTorch 모델을 Apple 기기에서 실행하려면 변환 과정이 복잡했고, 성능 저하가 발생하기 쉬웠습니다. DiffusionKit은 이러한 문제를 해결하며, Core ML과 MLX를 통해 더 빠르고 효율적인 모델 추론을 제공합니다. 특히, Apple의 Core ML Stable Diffusion 프로젝트와 통합되어 있어 최신 Stable Diffusion 모델을 쉽게 사용할 수 있습니다. 주요 기능 PyTorch 모델 변환: PyTorch 모델을 Core ML 형식으로 변환하여 Apple Silicon에서 실행할 수 있습니다. MLX 통합: MLX를 통해 Python 환경에서 효율적으로 이미지 생성을 수행할 수 있습니다. Swift 패키지: Swift를 통해 온디바이스에서 직접 Diffusion 모델을 추론할 수 있습니다. Hugging Face Hub 지원: Stable Diffusion 3와 같은 최신 모델을 쉽게 사용할 수 있도록 지원합니다. 사용 방법 Python 환경 설정 conda create -n diffusionkit python=3.11 -y conda activate diffusionkit cd…
