{"id":18952478,"url":"https://github.com/simonwhitaker/stable-diffusion-apple-silicon","last_synced_at":"2025-10-12T11:43:30.876Z","repository":{"id":137108068,"uuid":"580413765","full_name":"simonwhitaker/stable-diffusion-apple-silicon","owner":"simonwhitaker","description":"A macOS app for running Stable Diffusion natively on Apple Silicon","archived":false,"fork":false,"pushed_at":"2023-05-14T06:39:52.000Z","size":2562,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-04T09:55:10.409Z","etag":null,"topics":["macos","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonwhitaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-20T13:58:17.000Z","updated_at":"2023-12-03T18:34:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"8233d305-d714-4878-b016-460ced537270","html_url":"https://github.com/simonwhitaker/stable-diffusion-apple-silicon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simonwhitaker/stable-diffusion-apple-silicon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwhitaker%2Fstable-diffusion-apple-silicon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwhitaker%2Fstable-diffusion-apple-silicon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwhitaker%2Fstable-diffusion-apple-silicon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwhitaker%2Fstable-diffusion-apple-silicon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonwhitaker","download_url":"https://codeload.github.com/simonwhitaker/stable-diffusion-apple-silicon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwhitaker%2Fstable-diffusion-apple-silicon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011178,"owners_count":26084900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","swift"],"created_at":"2024-11-08T13:33:37.371Z","updated_at":"2025-10-12T11:43:30.860Z","avatar_url":"https://github.com/simonwhitaker.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stable Diffusion on Apple Silicon\n\nThis repo contains a simple app for running Stable Diffusion natively on macOS.\n\n![MacOS screenshot showing the generation of an image with the caption \"a photo of a kitten on the moon\"](assets/screenshot-macos.png)\n\n# Getting started\n\nThe app expects to be able to download models at startup from http://localhost:8080/models.aar. This means you need to acquire the models, compress them using Apple Archive, then host them locally. Here's how...\n\n## Acquiring the models\n\nEither follow the instructions [here](https://github.com/apple/ml-stable-diffusion#-using-ready-made-core-ml-models-from-hugging-face-hub) to use pre-built models from Hugging Face Hub, or the instructions [here](https://github.com/apple/ml-stable-diffusion#-using-ready-made-core-ml-models-from-hugging-face-hub) to build them yourself.\n\nIf building the models yourself, make sure to use the (slightly mis-named) `--bundle-resources-for-swift-cli` option, to output models in a format suitable for consumption by Swift. (The default is to output models suitable for consumption by Python).\n\nEither way, you should end up with a folder with these contents:\n\n- TextEncoder.mlmodelc\n- Unet.mlmodelc\n- VAEDecoder.mlmodelc\n- merges.txt\n- vocab.json\n\nTo build the .aar model archive, `cd` to that directory and run:\n\n```command\nrm -f models.aar \u0026\u0026 aa archive -d . -o models.aar\n```\n\nNow serve the models on localhost:8080 by running this command in the same directory:\n\n```command\npython3 -m http.server 8080\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonwhitaker%2Fstable-diffusion-apple-silicon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonwhitaker%2Fstable-diffusion-apple-silicon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonwhitaker%2Fstable-diffusion-apple-silicon/lists"}