# Specify the weights to be downloaded while loading the model

**URL:** <https://discuss.huggingface.co/t/specify-the-weights-to-be-downloaded-while-loading-the-model/46424>\
**Category:** 🤗Transformers\
**Created:** [July 11, 2023, 1:22pm UTC](https://discuss.huggingface.co/t/specify-the-weights-to-be-downloaded-while-loading-the-model/46424 "2023-07-11T13:22:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tasheer10](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@tasheer10](https://discuss.huggingface.co/u/tasheer10)\
**Post date:** [July 11, 2023, 1:22pm UTC](https://discuss.huggingface.co/t/specify-the-weights-to-be-downloaded-while-loading-the-model/46424/1 "2023-07-11T13:22:09Z")

</div>

While loading the model, is it possible to specify to download the pytorch weights instead of the safe tensor weights?  
Eg :  
pipe = pipeline(“text-generation”, model=“HuggingFaceH4/starchat-beta”, device\_map=“auto”)

When the above line is executed, it downloads the safe tensor weights by default, is it possible to direct it to download the pytorch weights.
