Paperspace

Learn how to configure Paperspace for use with Filebase.

What is Paperspace?

Paperspace is a cloud computing platform that enables developers to create next-generation applications from within their web browser. Paperspace offers a variety of Machine Learning models and fully managed cloud GPU platforms for endless development environments. Paperspace allows you to use and store data on S3-compatible storage services such as Filebase.

Read below to learn how to use Paperspace with Filebase.

Prerequisites:

1. First, we need to configure our Filebase bucket to have a CORS policy that allows connection to Paperspace.

For more detailed information on CORS, check out our documentation here.

To do this, create a new file called cors.json with the following content:

{
    "CORSRules":
[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "GET",
            "PUT"
        ],
        "AllowedOrigins": [
            "https://console.paperspace.com"
        ],
        "ExposeHeaders": [],
        "MaxAgeSeconds": 3000
    }
]

}

2. Next, apply this CORS policy to your Filebase bucket with the command:

aws --endpoint https://s3.filebase.com s3api put-bucket-cors --bucket filebase-bucket --cors-configuration=file://cors.json

3. To confirm the CORS policy was applied correctly, use the following command:

aws --endpoint https://s3.filebase.com s3api get-bucket-cors --bucket filebase-bucket

4. Login to the Paperspace dashboard.

When prompted for the product type, select Gradient. You’ll be brought to the Gradient dashboard.

5. Select your account’s image in the top left corner, then select ‘Team Settings’:

6. From your account settings, select the ‘Storage’ tab:

7. Once you’re in the Storage tab, select ‘Add Storage Provider’ in the bottom right.

8. Select ‘S3-compatible’ as the storage type:

9. Configure the following settings to connect Paperspace to your Filebase account:

  • Name: Filebase

  • Bucket: Filebase Bucket Name

  • Access Key ID: Filebase Access Key

  • Secret Access Key: Filebase Secret Key

  • Signature Version: v4

  • Is default storage provider: Toggle to enabled.

Then click ‘Create’.

10. Filebase will now be listed as a storage provider for your Paperspace account.

11. Head back to the Paperspace dashboard. Select ‘Create a Project’:

12. Give your project a name, or use the auto-generated name.

13. Select the ‘Data’ tab.

14. Then select ‘Create a Dataset’:

15. Give your dataset a name and description, then from the drop-down menu, select your Filebase storage provider configuration.

16. Drag and drop files, or select the prompt to upload files:

17. Once you’ve selected your files, click ‘Upload’.

18. Your uploaded files will be reflected in your Filebase bucket.

Last updated