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
PyTorch 2.x supports several compiler backends and you pick which one you want by passing in an optional file `model_config.yaml` during your model packaging
19
+
PyTorch 2.x supports several compiler backends and you pick which one you want by passing in an optional file `model_config.yaml` during your model packaging. The default backend with the below minimum config is `inductor`
20
20
21
21
```yaml
22
-
pt2: "inductor"
22
+
pt2:
23
+
compile:
24
+
enable: True
23
25
```
24
26
25
-
You can also pass a dictionary with compile options if you need more control over torch.compile:
27
+
You can also pass various compile options if you need more control over torch.compile:
26
28
27
29
```yaml
28
-
pt2 : {backend: inductor, mode: reduce-overhead}
30
+
pt2:
31
+
compile:
32
+
enable: True
33
+
backend: inductor
34
+
mode: reduce-overhead
29
35
```
30
36
31
37
An example of using `torch.compile` can be found [here](./torch_compile/README.md)
0 commit comments