Hello World

Hello World with Float16 Serverless GPU

This tutorial will guide you through running your first "Hello World" program on Float16's serverless GPU platform. Follow these steps after installing the Float16 CLI.

Step 1 : Login

First, authenticate with the Float16 CLI using your provided token

float16 login --token <YOUR_TOKEN>

Step 2 : Initialize Your Project

Create a new project directory and navigate into it

mkdir firstProject
cd firstProject

Initialize the project with required configuration files

float16 init

This command creates a float16.conf file and an empty requirements.txt for managing dependencies.

Step 3 : Create Your "Hello World" Script

Create a new Python file named "helloWorld.py" with a simple print statement:

echo 'print("Hello World! Welcome to Float16 Serverless GPU")' > helloworld.py

Step 4 : Create project

Create a new project

float16 project create

If you cannot create new project, learn more

Step 5 : Start and Run

Start the remote container

float16 project start

Once successfully started, run your Python file on the remote instance

float16 run helloWorld.py

Wait for the execution to complete. Upon success, you'll see the following output

Hello World! Welcome to Float16 Serverless GPU

Congratulations! You've successfully run your first program on Float16's serverless GPU platform.

Explore More

Ready to dive deeper? Check out these resources to expand your knowledge and capabilities with Float16

Happy coding with Float16 Serverless GPU!

Last updated