# Hello World

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

```bash
float16 login --token <YOUR_TOKEN>
```

## Step 2 : Initialize Your Project

Create a new project directory and navigate into it

```bash
mkdir firstProject
cd firstProject
```

Initialize the project with required configuration files

```bash
float16 init
```

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

## Step 3 : Create Your "Hello World" Script

<https://github.com/float16-cloud/examples/tree/main/official/run/helloworld>

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

{% code overflow="wrap" %}

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

{% endcode %}

## Step 4 : Create project

Create a new project

```
float16 project create
```

{% hint style="info" %}
If you cannot create new project, [learn more](/getting-started/serverless-gpu/faq.md#why-cant-i-create-a-new-project)
{% endhint %}

## Step 5 : Start and Run

Start the remote container

```bash
float16 project start
```

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

```bash
float16 run helloWorld.py
```

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

```bash
Hello World! Welcome to Float16 Serverless GPU
```

{% hint style="success" %}
Congratulations! You've successfully run your first program on Float16's serverless GPU platform.
{% endhint %}

## Explore More&#x20;

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

<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="/pages/YApNAqisqIbe17eFghB7">/pages/YApNAqisqIbe17eFghB7</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="/pages/yyygZPyF40EbYlvQ9c8d">/pages/yyygZPyF40EbYlvQ9c8d</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="/pages/BPAsR6EAOJexajZPitzW">/pages/BPAsR6EAOJexajZPitzW</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="/pages/IapDkZzfM7mN9ePptZcb">/pages/IapDkZzfM7mN9ePptZcb</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="/pages/neh6VHbUO1k5sjbJcIiZ">/pages/neh6VHbUO1k5sjbJcIiZ</a></td></tr><tr><td><strong>More examples</strong></td><td>Open source from community and Float16 team.</td><td><a href="/pages/WofUCY294VqyFMOY62JX">/pages/WofUCY294VqyFMOY62JX</a></td></tr></tbody></table>

Happy coding with Float16 Serverless GPU!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.float16.cloud/getting-started/serverless-gpu/tutorials/hello-world.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
