# Loading model from\_pretrained with dummy parameter

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-model-from-pretrained-with-dummy-parameter%2F36742%3E%5C
**Category:** 🤗Transformers\
**Created:** [April 16, 2023, 11:33am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-model-from-pretrained-with-dummy-parameter%2F36742 "2023-04-16T11:33:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndvb](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ndvb/32/17239_2.png) [@ndvb](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fndvb)%5C
**Post date:** [April 16, 2023, 11:33am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Floading-model-from-pretrained-with-dummy-parameter%2F36742%2F1 "2023-04-16T11:33:13Z")

</div>

I am doing LlamaForCausalLM.from\_pretrained, however, for fast development turnaround, is there a way to pass additional parameter to the from\_pretrained method, to indicate that I just want to create a dummy model in memory, with same structure as the pretrained model (on disk), but just with empty or random weights, in order to increase speed for loading? I don’t care about weights being loaded from disk, just want to load it to memory as soon as possible.
