Skip to content

Commit c0446dd

Browse files
authored
Update User Guide (#2388)
1 parent 5faee24 commit c0446dd

File tree

100 files changed

+3149
-4612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+3149
-4612
lines changed

docs-guides/_sources/source/flexible-inputs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ If the source PyTorch model is exported by [`torch.export.export`](https://pytor
168168

169169
## Reshape Frequency Optimization Hint
170170

171-
Setting the Reshape Frequency Optimization Hint to `Frequent` can allow flexible shaped models to run on the Neural Engine. This option can be set when loading your model:
171+
Setting the Reshape Frequency Optimization Hint to `Infrequent` can allow flexible shaped models to run on the Neural Engine, with iOS 17.4 or later.
172+
This option can be set when loading your model:
172173

173174
```python
174175
model = ct.model.MLModel(
175-
'path/to/the/saved/model.mlmodel',
176-
optimization_hints={ 'reshapeFrequency': ct.ReshapeFrequency.Frequent }
176+
'path/to/the/saved/model.mlpackage',
177+
optimization_hints={ 'reshapeFrequency': ct.ReshapeFrequency.Infrequent }
177178
)
178-
p```
179-
179+
```
180180

181181
## Enable Unbounded Ranges
182182

docs-guides/_sources/source/opt-stable-diffusion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,4 @@ The `sparse_palettized_model` generated above can be converted to produce a join
179179
| 50% Sparsity, 4-bit (group_size=16) | 933 MB | <img height="250px" src="images/sdxl-0.5sparse-4bit-gs16.png" width="250px"/> |
180180

181181
To summarize, we were able to use post training palettization to compress SDXL UNet model from `4.8GB` to `1.2GB` in size. We were able to regain accuracy lost from 4-bit palettization by using per grouped channel LUT.
182-
With joint compression, we are able to further bring down the model size to `1GB`, while still generating decent accuracy images with 40% sparsity.
182+
With joint compression, we are able to further bring down the model size to `1GB`, while still generating decent accuracy images with 40% sparsity.

docs-guides/_static/scripts/bootstrap.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-guides/_static/scripts/fontawesome.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*!
2+
* Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com
3+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4+
* Copyright 2024 Fonticons, Inc.
5+
*/

docs-guides/_static/scripts/fontawesome.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-guides/_static/scripts/pydata-sphinx-theme.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-guides/_static/scripts/pydata-sphinx-theme.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-guides/_static/styles/pydata-sphinx-theme.css

Lines changed: 31 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-guides/_static/styles/pydata-sphinx-theme.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)