Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytorch backend: Model is run in no_grad mode even with INFERENCE_MODE=false #7974

Open
hakanardo opened this issue Jan 28, 2025 · 0 comments

Comments

@hakanardo
Copy link

When INFERENCE_MODE is set to false, the model still runs in no_grad mode. Is that intentional? This prevents the serving of models that requires gradients at inference time, such as differential rendering for example. Can we instead use the default mode when INFERENCE_MODE=false (as is implemented the pull-request: triton-inference-server/pytorch_backend#146) or would it be preferable to add additional parameters to enable the default mode?

Thanx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant