pytorch/torch/compiler
Oguz Ulgen 3cf0e2d8ec Add inductor standalone_compile API (#150670)
This PR adds standalone_compile API that does precompilation via caching to support vLLM use case in the short term while we work on the longer term precompilation solution.

```
standalone_compile(gm, example_inputs, options) -> CompiledArtifact
CompiledArtifact.save(path, format: binary|unpacked = binary)
CompiledArtifact.load(path, format: binary|unpacked = binary)
```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/150670
Approved by: https://github.com/jamesjwu, https://github.com/zou3519
2025-04-15 23:38:15 +00:00
..
__init__.py [dynamo] add reason field to torch.compiler.disable (#150341) 2025-04-02 04:26:48 +00:00
_cache.py Add inductor standalone_compile API (#150670) 2025-04-15 23:38:15 +00:00
config.py Support whitelist of dynamic sources (#147979) 2025-02-28 15:43:14 +00:00