# How to import text\_encoder\_lora\_state\_dict

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-import-text-encoder-lora-state-dict%2F68055%3E%5C
**Category:** 🧨 Diffusers\
**Created:** [January 5, 2024, 10:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-import-text-encoder-lora-state-dict%2F68055 "2024-01-05T10:42:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moteloumka](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@moteloumka](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmoteloumka)%5C
**Post date:** [January 5, 2024, 10:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-import-text-encoder-lora-state-dict%2F68055%2F1 "2024-01-05T10:42:49Z")

</div>

Hi, I’m trying to run some code that uses diffusers version 0.24.0.dev0 and in particular one import is causing a problem: importing text\_encoder\_lora\_state\_dict from diffusers.models.lora. From what i was able to see, this function has changed places multiple times and is going to be depreciated, yet is fundamental to be able to run the code correctly and is absent in this location in version 0.23.0,0.24.0 and 0.25.0. Could anyone recommend how can I install the version 0.24.0.dev0 perhaps or any other way to import and use text\_encoder\_lora\_state\_dict from diffusers.models.lora or diffusers.loaders.lora as it has been used previously.
