# How to determine which model textual inversion is using

**URL:** <https://discuss.huggingface.co/t/how-to-determine-which-model-textual-inversion-is-using/26883>\
**Category:** 🧨 Diffusers\
**Created:** [November 28, 2022, 6:49pm UTC](https://discuss.huggingface.co/t/how-to-determine-which-model-textual-inversion-is-using/26883 "2022-11-28T18:49:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skomra](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/skomra/32/12770_2.png) [@skomra](https://discuss.huggingface.co/u/skomra)\
**Post date:** [November 28, 2022, 6:49pm UTC](https://discuss.huggingface.co/t/how-to-determine-which-model-textual-inversion-is-using/26883/1 "2022-11-28T18:49:52Z")

</div>

I’m using the example code in textual inversion to generate images:

```auto
from diffusers import StableDiffusionPipeline

model_id = "path-to-your-trained-model"
pipe = StableDiffusionPipeline.from_pretrained(model_id,torch_dtype=torch.float16).to("cuda")

prompt = "A <cat-toy> backpack"

image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]

image.save("cat-backpack.png")

```

How do I display /determine which model (1.4/1.5/etc) that StableDiffusionPipeline is using. When I add the model here it is just the generated model.

Thanks for your time!

---

<div class="post-metadata">

**Author:** ![skomra](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/skomra/32/12770_2.png) [@skomra](https://discuss.huggingface.co/u/skomra)\
**Post date:** [December 6, 2022, 1:41pm UTC](https://discuss.huggingface.co/t/how-to-determine-which-model-textual-inversion-is-using/26883/2 "2022-12-06T13:41:54Z")

</div>

Is there a better place to ask this question?
