> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload Model Parameters to Cloud Job

[localhost link]: http://localhost:3000/docs/5/fusion/reference/config-ref/jobs/upload-model-parameters

[mintlify link]: https://doc.lucidworks.com/docs/5/fusion/reference/config-ref/jobs/upload-model-parameters.md

[old doc.lw link]: https://doc.lucidworks.com/fusion/5.9/3xcen9.md

The Upload Model Parameters to Cloud job allows you to take a trained model and store its training to a blob in cloud storage, such as Google Cloud Storage (GCS), Amazon S3 (S3), or Azure Blob Storage.

See **Creating the Upload Model Parameters to Cloud Job** for more information on creating the job and deploying a model with it.

> [accordion] Creating the Upload Model Parameters to Cloud Job
>
> The Upload Model Parameters to Cloud job lets you store a trained model’s training to a blob in cloud storage.
>
> This document describes the steps to create the Upload Model Parameters to Cloud job and deploy a model with it.
>
> See [Upload Model Parameters to Cloud](https://doc.lucidworks.com/docs/5/fusion/reference/config-ref/jobs/upload-model-parameters.md) to learn more about the Upload Model Parameters to Cloud job.
>
> > [card] Key questions to get you started
> >
> > Powered by Lucidworks Agent Studio
>
> ## Deploy a model​
>
> First, deploy a **Smart Answers Supervised Model**.
>
> ## Create the job
>
> 1. In the **Collections > Jobs** menu, click **Add +** and select **Upload Model Parameters to Cloud** to create a new instance of that job.
>
> 2. Set the job ID to `upload-cloud`(or something appropriate for your model) and find the name of the deployed model in the **Model Name** text box.
>
> 3. Enter the **Cloud Path** to direct to the location you would like to store the parameters blob in.
>
>    You will also need to provide the Kubernetes secret that provides the access details for the cloud storage path.
>    ​
>
> 4. Run the job, then check the cloud storage location to verify that the parameter file has been saved.
>
>    The exported file will also have the version number (based on epoch time) of the model appended to it.
>
> > [!WARNING]
> >
> > Take note of the full cloud path; you will need it to deploy the job later.
>
> ![Creating the Job](https://mintcdn.com/lucidworks/L5PMnIeZ03zhv8Ti/assets/images/5.4/upload-model-parameters-create-job.png?fit=max\&auto=format\&n=L5PMnIeZ03zhv8Ti\&q=85\&s=d9d0fa4836cd23ba0a103d053683fe3e)
>
> ### GCS
>
> 1. Obtain the Google Cloud Storage credentials JSON file for accessing the storage bucket you intend to use for transferring models.
> 2. Add the credentials JSON file as a secret with the following command:
>    ​
>
> ```
> kubectl create secret generic model-cloud-secret --from-file=credentials.json -n [NAMESPACE]
> ```
>
> ### S3
>
> 1. Create a JSON file with the following keys:
>
> \[!NOTE] `”region”` is optional and will be set to `us-east-1` if a value is not entered
> ​
>
> ```
> {
>    "key": [KEY],
>    "secret": [SECRET],
>    "region": [REGION]
> }
> ```
>
> 2. Upload the JSON file as a secret in the cluster:
>    ​
>
> ```
> kubectl create secret generic model-cloud-secret --from-file=model.json -n [NAMESPACE]
> ```
>
> The secret can now be referenced as `model-cloud-secret` in the job configuration.
>
> ### Azure Blob Storage
>
> 1. Create a JSON file with the layout below:
>    ​
>
> ```
> {
>    "key": [KEY],
>    "secret": [SECRET]
> }
> ```
>
> 2. Create the `model-cloud-secret` secret in the Kubernetes cluster:
>
> ```
> kubectl create secret generic model-cloud-secret --from-file=model.json -n [NAMESPACE]
> ```
>
> ## Deploy a new model with the Upload Model Parameters job
>
> The new model can run in either the same Fusion cluster or a different cluster.
>
> If you are planning on transferring a model to a different cluster, note that you will need to set up the Kubernetes secrets in that cluster as well, though the access for deploying can be limited to read-only.
>
> 1. Create a new **Create Seldon Core Model Deployment** job and toggle **Advanced**.
> 2. Enter the full cloud path, including the version number, in the *Cloud Path* box.
> 3. Enter the Kubernetes secret that will be used to access the path in the *Kubernetes Secret Name for Cloud Storage Access* box.
>    ​
> 4. For this example, you will be using the job to deploy a trained Smart Answers model, so use the `fusion-question-answering-seldon:5.4.0` model image from the `lucidworks` repository in the *Image Name* box.
>
> ![Deploying the model](https://mintcdn.com/lucidworks/L5PMnIeZ03zhv8Ti/assets/images/5.4/upload-model-parameters-deploy-model.png?fit=max\&auto=format\&n=L5PMnIeZ03zhv8Ti\&q=85\&s=ef89362c40bc20e99b1473fb122d2993)
>
> 5. Run the job. Confirm that the model deploys into the cluster and is running.

> [!TIP]
>
> With the release of Fusion 5.4, the [**Create Seldon Core Model Deployment**](https://doc.lucidworks.com/docs/5/fusion/reference/config-ref/jobs/create-seldon-core-model-deployment.md) job has been updated in conjunction so that it can pull down the saved model blobs and use them in deploying a new instance of the model, allowing for easier transference and versioning of trained models for rollback and testing.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.