# Prepare model weight

This tutorial will guide you through copying files from S3 or R2 to remote storage.

{% hint style="info" %}

* An active Float16 project
* AWS S3 storage credentials or Cloudflare R2
  {% endhint %}

## 1. Using Copy from S3 object compatibility

### Step 1 : Check Storage before copy

```
float16 storage ls
```

### Step 2 : Copy from S3 or R2

Use the following command to copy file from R2 to your remote storage.

{% code overflow="wrap" %}

```
float16 storage copy-to-remote \
    --path /workspace \
    --s3-uri https://40557a5d82224556015a5cxxx.r2.cloudflarestorage.com/BUCKET-A/weight-dir \ # This will download ALL files under "weight-dir" into "workspace"
    --s3-access-key 02e87e05dc0f3c27239d6d13bd6xxxxx \
    --s3-secret-key 2f44f34783f759613b24071afeac55b06286b5e401c9exxxxx \
    --s3_endpoint https://40557a5d82224556015a5cxxx.r2.cloudflarestorage.com
```

{% endcode %}

Replace the placeholders with your actual AWS S3 or R2 credentials:

* `<PATH>` : Your remote storage path
* `<YOUR_S3_URI_DESTINATION>`: Your R2 bucket original path or directory
* `<YOUR_S3_ACCESS_KEY>`: Your R2 access key
* `<YOUR_S3_SECRET_KEY>`: Your R2 secret key
* `<YOUR_S3_ENDPOINT>`: Your R2 endpoint #Optional if you using S3 don't paste this flag.

After running the command, check your specified S3 destination path. You should find the `output.txt` file successfully copied.

### Step 3 : Check Remote Storage

Check the files in your remote storage

```
float16 storage ls
```

***

{% hint style="success" %}
Congratulations! You've learned how to copy output files from Float16's remote storage to your AWS S3 storage.
{% endhint %}

## Explore More&#x20;

Learn how to use Float16 CLI for various use cases in our tutorials.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Hello World</strong></td><td>Launch your first serverless GPU function and kickstart your journey.</td><td><a href="hello-world">hello-world</a></td></tr><tr><td><strong>Install new library</strong></td><td>Enhance your toolkit by adding new libraries tailored to your project needs.</td><td><a href="install-new-library">install-new-library</a></td></tr><tr><td><strong>Copy output from remote</strong></td><td>Efficiently transfer computation results from remote to your local storage.</td><td><a href="s3-copy-output-from-remote">s3-copy-output-from-remote</a></td></tr><tr><td><strong>Deploy FastAPI Helloworld</strong></td><td>Quick start to deploy FastAPI without change the code.</td><td><a href="server-mode">server-mode</a></td></tr><tr><td><strong>Upload and Download via CLI and Website</strong></td><td>Direct upload and download file(s) to server.</td><td><a href="direct-upload-and-download">direct-upload-and-download</a></td></tr><tr><td><strong>More examples</strong></td><td>Open source from community and Float16 team.</td><td><a href="etc.">etc.</a></td></tr></tbody></table>

Happy coding with Float16 Serverless GPU!
