Skip to content

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

 
 
 

Contributors