You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,6 @@ This repository comprises
13
13
14
14
## Installation
15
15
16
-
<details>
17
-
18
16
The following installation steps are required for:
19
17
- MLX inference
20
18
- PyTorch to Core ML model conversion
@@ -31,33 +29,37 @@ pip install -e .
31
29
### Hugging Face Hub Credentials
32
30
33
31
[Stable Diffusion 3](https://huggingface.co/stabilityai/stable-diffusion-3-medium) requires users to accept the terms before downloading the checkpoint. Once you accept the terms, sign in with your Hugging Face hub READ token as below:
32
+
> [!IMPORTANT]
33
+
> If using a fine-grained token, it is also necessary to [edit permissions](https://huggingface.co/settings/tokens) to allow `Read access to contents of all public gated repos you can access`
34
34
35
35
```bash
36
36
huggingface-cli login --token YOUR_HF_HUB_TOKEN
37
37
```
38
38
39
-
</details>
40
-
41
39
## <aname="converting-models-to-coreml"></a> Converting Models from PyTorch to Core ML
42
40
43
41
<details>
44
42
<summary> Click to expand </summary>
45
43
46
44
**Step 1:** Follow the installation steps from the previous section
47
-
**Step 2:** Prepare the denoise model (MMDiT) Core ML model files (`.mlpackage`)
45
+
46
+
**Step 2:** Verify you've accepted the [StabilityAI license terms](https://huggingface.co/stabilityai/stable-diffusion-3-medium) and have allowed gated access on your [HuggingFace token](https://huggingface.co/settings/tokens)
47
+
48
+
**Step 3:** Prepare the denoise model (MMDiT) Core ML model files (`.mlpackage`)
0 commit comments