R2 Copy output from remote
get your output to R2
In the Float16 project, each project has its own remote storage that automatically stores Python files and output files generated during run or deploy commands. This tutorial will guide you through copying output files from remote storage to your personal Cloudflare R2 storage.
An active Float16 project
Cloudflare R2 storage credentials
Step 1 : Prepare Your Script
Create a Python script (e.g., test_output.py
) that generates an output file
Step 2 : Run your script
First, start your project and then run the script
you will got successfully response from CLI.
Step 3 : Check Remote Storage
Check the files in your remote storage
Step 4 : Copy Output to R2
Use the following command to copy your output to Cloudflare R2
Replace the placeholders with your actual Cloudflare R2 credentials:
<YOUR_S3_URI_DESTINATION>
: Your R2 bucket destination path<YOUR_S3_ACCESS_KEY>
: Your R2 access key<YOUR_S3_SECRET_KEY>
: Your R2 secret key<YOUR_S3_ENDPOINT>
: Your R2 endpoint
After running the command, check your specified R2 destination path. You should find the output.txt
file successfully copied.
Congratulations! You've learned how to copy output files from Float16's remote storage to your Cloudflare R2 storage.
Explore More
Learn how to use Float16 CLI for various use cases in our tutorials.
Happy coding with Float16 Serverless GPU!
Last updated