# Resuming training with scVI

**URL:** <https://discourse.scverse.org/t/resuming-training-with-scvi/27>\
**Category:** scvi-tools\
**Tags:** scvi\
**Created:** [November 11, 2020, 9:55pm UTC](https://discourse.scverse.org/t/resuming-training-with-scvi/27 "2020-11-11T21:55:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swbiggs4](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/swbiggs4/32/13_2.png) [@swbiggs4](https://discourse.scverse.org/u/swbiggs4)\
**Post date:** [November 11, 2020, 9:55pm UTC](https://discourse.scverse.org/t/resuming-training-with-scvi/27/1 "2020-11-11T21:55:23Z")

</div>

Hi all,

First - thanks for all the effort put in to scvi-tools. Working at a biotech startup, it has helped accelerate our efforts. It’s much appreciated.

I wanted to ask about resuming training with a scVI model (or any model really). In PyTorch, one generally needs both the checkpointed model as well as the optimizer state to resume training. When loading a previously trained scVI model, does it also load the optimizer state such that you would be able to continue training?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![adamgayoso](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/adamgayoso/32/100_2.png) [@adamgayoso](https://discourse.scverse.org/u/adamgayoso)\
**Post date:** [November 12, 2020, 7:20pm UTC](https://discourse.scverse.org/t/resuming-training-with-scvi/27/2 "2020-11-12T19:20:21Z")

</div>

Sorry, just saw this – I had just answered on GitHub.

This is not possible now – it CAN be possible after we move to pytorch lightning.

I’d be interested to hear from others as well if this is a popular feature request.

---

<div class="post-metadata">

**Author:** ![swbiggs4](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/swbiggs4/32/13_2.png) [@swbiggs4](https://discourse.scverse.org/u/swbiggs4)\
**Post date:** [November 12, 2020, 7:26pm UTC](https://discourse.scverse.org/t/resuming-training-with-scvi/27/3 "2020-11-12T19:26:21Z")

</div>

Sorry for the duplicate entry, @adamgayoso . It makes sense; pytorch lighting is great.

The main reason that such a feature would be useful (for us) is to be able to resume training of scvi once we generate scRNAseq data for new cell types that we are interested in.
