Skip to content

gpugrid-io/grid-module-cowsay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Example Gpugrid Module

Author your own Gpugrid module:

Create a file called grid_module.json.tmpl

This is a json template with Go text/template style {{.Message}} sections which will be replaced by Gpugrid with valid JSON strings which are passed as input to modules.

Pass inputs as:

grid run github.com/username/repo:tag -i Message=moo

Inputs are a map of strings to strings.

YOU MUST MAKE YOUR MODULE DETERMINISTIC

Tips:

  • Make the output reproducible, for example for the diffusers library, see here
  • Strip timestamps and time measurements out of the output, including to stdout/stderr
  • Don't read any sources of entropy (e.g. /dev/random)
  • When referencing docker images, you MUST specify their sha256 hashes, as shown in this example

If your module is not deterministic, compute providers will not adopt it and add it to their allowlists.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published