Skip to content

A playground for modal: a serverless GPU service

License

Notifications You must be signed in to change notification settings

wattai/pg-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 Play gound for modal: a serverless GPU service

  1. Install python package

    pip install -e .
  2. Setup modal

    Run this command, and it will show you a URL to authentication.

    python -m modal setup

    Follow the instruction, then you will see an response like below.

    Token verified successfully!
  3. Run your first modal app

    modal run scripts/001-calc-square.py

    Once you run the command above, you will see the output like below.

    ✓ Initialized. View run at https://modal.com/apps/...
    ✓ Created objects.
    ├── 🔨 Created mount /home/wattai/dev/pg-modal/scripts/001-calc-square.py
    └── 🔨 Created function square.
    This code is running on a remote worker!
    the square is 1764
    Stopping app - local entrypoint completed.
    ✓ App completed. View run at https://modal.com/apps/...

    Now that, you can see the result of the square is 1764.
    🎉 Happy hacking!!

About

A playground for modal: a serverless GPU service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published