📚
Docs - Float16
homeapp
  • 🚀GETTING STARTED
    • Introduction
    • Account
      • Dashboard
      • Profile
      • Payment
      • Workspace
      • Service Quota
    • LLM as a service
      • Quick Start
        • Set the credentials
      • Supported Model
      • Limitation
      • API Reference
    • One Click Deploy
      • Quick Start
        • Instance Detail
        • Re-generate API Key
        • Terminate Instance
      • Features
        • OpenAI Compatible
        • Long context and Auto scheduler
        • Quantization
        • Context caching
      • Limitation
      • Validated model
      • Endpoint Specification
    • Serverless GPU
      • Quick Start
        • Mode
        • Task Status
        • App Features
          • Project Detail
      • Tutorials
        • Hello World
        • Install new library
        • Prepare model weight
        • S3 Copy output from remote
        • R2 Copy output from remote
        • Direct upload and download
        • Server mode
        • LLM Dynamic Batching
        • Train and Inference MNIST
        • Etc.
      • CLI References
      • ❓FAQ
    • Playground
      • FloatChat
      • FloatPrompt
      • Quantize by Float16
  • 📚Use Case
    • Q&A Bot (RAG)
    • Text-to-SQL
    • OpenAI with Rate Limit
    • OpenAI with Guardrail
    • Multiple Agents
    • Q&A Chatbots (RAG + Agents)
  • ✳️Journey
    • ✨The Beginner's LLM Development Journey
    • 📖Glossary
      • [English Version] LLM Glossary
      • [ภาษาไทย] LLM Glossary
    • 🧠How to install node
  • Prompting
    • 📚Variable
    • ⛓️Condition
    • 🔨Demonstration
    • ⌛Loop
    • 📙Formatting
    • 🐣Chat
    • 🔎Technical term (Retrieve)
  • Privacy Policy
  • Terms & Conditions
Powered by GitBook
On this page
  • Step 1 : Login
  • Step 2 : Initialize Your Project
  • Step 3 : Create Your "Hello World" Script
  • Step 4 : Create project
  • Step 5 : Start and Run
  • Explore More
  1. GETTING STARTED
  2. Serverless GPU
  3. Tutorials

Hello World

Hello World with Float16 Serverless GPU

PreviousTutorialsNextInstall new library

Last updated 1 month ago

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

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!

If you cannot create new project,

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

Hello World

Launch your first serverless GPU function and kickstart your journey.

Install new library

Enhance your toolkit by adding new libraries tailored to your project needs.

Copy output from remote

Efficiently transfer computation results from remote to your local storage.

Deploy FastAPI Helloworld

Quick start to deploy FastAPI without change the code.

Upload and Download via CLI and Website

Direct upload and download file(s) to server.

More examples

Open source from community and Float16 team.

learn more