# Fail predict using Falcon-7B-Instruct

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffail-predict-using-falcon-7b-instruct%2F41727%3E%5C
**Category:** 🤗Transformers\
**Created:** [June 1, 2023, 4:53am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffail-predict-using-falcon-7b-instruct%2F41727 "2023-06-01T04:53:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmilano](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/gmilano/32/16482_2.png) [@gmilano](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fgmilano)%5C
**Post date:** [June 1, 2023, 4:53am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffail-predict-using-falcon-7b-instruct%2F41727%2F1 "2023-06-01T04:53:56Z")

</div>

I deployed tiiuae/falcon-7b-instruct in AWS SageMaker , when I will use a prediction it fails with the following error

(ModelError) when calling the InvokeEndpoint operation: Received client error (400) from primary with message "{  
“code”: 400,  
“type”: “InternalServerException”,  
“message”: “Loading /.sagemaker/mms/models/tiiuae\_\_falcon-7b-instruct requires you to execute the configuration file in that repo on your local machine. Make sure you have read the code there to avoid malicious use, then set the option `trust_remote_code\u003dTrue` to remove this error.”  
}

I deployed directly from the hub, should I use another deployment option ?

My deployment code:

```auto
## Hub Model configuration. https://huggingface.co/models

hub = {

'HF_MODEL_ID':'tiiuae/falcon-7b-instruct',

'HF_TASK':'text-generation'

}

# create Hugging Face Model Class

huggingface_model = HuggingFaceModel(

transformers_version='4.26.0',

pytorch_version='1.13.1',

py_version='py39',

env=hub,

role=role,

)

# deploy model to SageMaker Inference

predictor = huggingface_model.deploy(

initial_instance_count=1, # number of instances

instance_type='ml.m5.xlarge' # ec2 instance type

)

```
