# Restart an existing MCMC chain at the same point it was paused

**URL:** <https://discourse.julialang.org/t/restart-an-existing-mcmc-chain-at-the-same-point-it-was-paused/131901>\
**Category:** Probabilistic Programming\
**Tags:** question\
**Created:** [August 27, 2025, 11:59pm UTC](https://discourse.julialang.org/t/restart-an-existing-mcmc-chain-at-the-same-point-it-was-paused/131901 "2025-08-27T23:59:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghadgeabhi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ghadgeabhi/32/215920_2.png) [@ghadgeabhi](https://discourse.julialang.org/u/ghadgeabhi)\
**Post date:** [August 27, 2025, 11:59pm UTC](https://discourse.julialang.org/t/restart-an-existing-mcmc-chain-at-the-same-point-it-was-paused/131901/1 "2025-08-27T23:59:03Z")

</div>

In my workflow, I want to be able look at the metrics of a MCMC chain, so I want run it for a certain amount of iteration. I want to then be able to continue the same chain for more iterations.

How could this be done with Turing.jl

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [August 28, 2025, 11:38am UTC](https://discourse.julialang.org/t/restart-an-existing-mcmc-chain-at-the-same-point-it-was-paused/131901/2 "2025-08-28T11:38:03Z")

</div>

DynamicHMC.jl has a stepwise implementation, though it is not exposed in the API officially. See [`mcmc_next_step`](https://github.com/tpapp/DynamicHMC.jl/blob/cb65d096f7a9ad1c4c3f0f56a8d7a177537c85c4/src/mcmc.jl#L355), and the docstring of `DynamicHMC.mcmc_steps`.

---

<div class="post-metadata">

**Author:** ![ghadgeabhi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ghadgeabhi/32/215920_2.png) [@ghadgeabhi](https://discourse.julialang.org/u/ghadgeabhi)\
**Post date:** [August 29, 2025, 5:44am UTC](https://discourse.julialang.org/t/restart-an-existing-mcmc-chain-at-the-same-point-it-was-paused/131901/3 "2025-08-29T05:44:12Z")

</div>

Thank you for the reply.

I have gotten it to work with this approach

```julia-auto

small_chain = sample(model,.NUTS(0.65), short_iter; save_state=true, progress = false);
        
last_state = short_chain.info.samplerstate;

long_chain = sample(model, NUTS(N), long_iter; resume_from=last_state , progress = false)

```
