# Extracting warmup samples in turing.jl

**URL:** https://discourse.julialang.org/t/extracting-warmup-samples-in-turing-jl/125262
**Category:** New to Julia
**Tags:** question, turing, mcmc, abstractmcmc
**Created:** [January 27, 2025, 1:16pm UTC](https://discourse.julialang.org/t/extracting-warmup-samples-in-turing-jl/125262 "2025-01-27T13:16:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sahil\_Khan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sahil_khan/32/47573_2.png) [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)
#### Post date: [January 27, 2025, 1:16pm UTC](https://discourse.julialang.org/t/extracting-warmup-samples-in-turing-jl/125262/1 "2025-01-27T13:16:47Z")

</div>

Hello,

Im running inference for my model in` turing.jl`. Im using `NUTS()` sampler where I give some `warmup`. I was wondering that if I can extract these warmup samples ? rather than getting chain plot with just samples after warmup.

Thank you

---

<div class="post-metadata">

### Author: ![eteppo](https://avatars.discourse-cdn.com/v4/letter/e/90db22/32.png) [@eteppo](https://discourse.julialang.org/u/eteppo)
#### Post date: [February 11, 2025, 1:08pm UTC](https://discourse.julialang.org/t/extracting-warmup-samples-in-turing-jl/125262/2 "2025-02-11T13:08:50Z")

</div>

Hey! Sorry I don’t have a direct answer but I noticed that this tutorial ([Bayesian Poisson Regression – Turing.jl](https://turinglang.org/docs/tutorials/bayesian-poisson-regression/#sampling-from-the-posterior)) goes into the topic. I think using `discard_adapt = false` within the sample method and then `chains[1:N, :, :]` to get the N adaptation iterations might get you there.
