# Where do I add the line"trust\_remode\_code=True

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhere-do-i-add-the-line-trust-remode-code-true%2F44113%3E%5C
**Category:** Beginners\
**Created:** [June 21, 2023, 10:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhere-do-i-add-the-line-trust-remode-code-true%2F44113 "2023-06-21T22:08:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Psok](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@Psok](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPsok)%5C
**Post date:** [June 21, 2023, 10:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhere-do-i-add-the-line-trust-remode-code-true%2F44113%2F1 "2023-06-21T22:08:20Z")

</div>

There are similar question on this forum, but apparently the level of those posters is above mine. I am a true beginner. (unless you want to talk firefighting which I’m retired from now!)  
Does this append to a already created python file, or batch file? Do I create another file to put these parameters in?  
I ask for your patience in giving me a step-by-step guide to do this.  
I apologize for my ignorance in this.  
My system is a Ryzen 5800x, 3070 8 gb, and 32 gb ram,windows 11 pro, 2 tb ssd. Which I realize is very low in this concept.  
I’ve asked youtubers and received no answers.

Thank you in advance for considereing a response!

---

<div class="post-metadata">

**Author:** ![Psok](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@Psok](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPsok)%5C
**Post date:** [June 22, 2023, 11:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhere-do-i-add-the-line-trust-remode-code-true%2F44113%2F2 "2023-06-22T23:08:40Z")

</div>

Anyone at all? I know you guys are thinking…What’s this guy even here for?

---

<div class="post-metadata">

**Author:** ![rvienne](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@rvienne](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Frvienne)%5C
**Post date:** [June 23, 2023, 8:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhere-do-i-add-the-line-trust-remode-code-true%2F44113%2F3 "2023-06-23T08:01:05Z")

</div>

Hello @Psok,

You should use this as an argument to the class method `.from_pretrained` when called on the class `AutoModel...`  
As an example:  
`model = AutoModel.from_pretrained("model_name_in_hub", trust_remote_code=True)`

---

<div class="post-metadata">

**Author:** ![Psok](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@Psok](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPsok)%5C
**Post date:** [June 23, 2023, 6:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhere-do-i-add-the-line-trust-remode-code-true%2F44113%2F4 "2023-06-23T18:21:25Z")

</div>

It’s a pleasure to meet you!

Can you please tell me which file to put that in? I have rudimentary knowledge of programming at best.  
I can do “Hello World!” And write a simple ren’py novel, but that’s the extent of it.  
Thank you so much for answering!

---

<div class="post-metadata">

**Author:** ![amarimuthu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/amarimuthu/32/28883_2.png) [@amarimuthu](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Famarimuthu)%5C
**Post date:** [July 9, 2024, 3:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhere-do-i-add-the-line-trust-remode-code-true%2F44113%2F5 "2024-07-09T15:20:48Z")

</div>

> [@rvienne](#):
>
> trust\_remote\_code

Hi Are you sure of this please?  
There is no parameter named ‘trust\_remote\_code’ for the method ‘from\_pretrained’
