Flyte agent for Perian Job Platform (perian.io)
Project description
Flytekit Perian Job Platform Plugin
Flyte Agent plugin for executing Flyte tasks on Perian Job Platform (perian.io).
Perian Job Platform is still in closed beta. Contact support@perian.io if you are interested in trying it out.
To install the plugin, run the following command:
pip install flytekitplugins-perian-job
Getting Started
This plugin allows executing PythonFunctionTask
on Perian.
An ImageSpec need to be built with the perian agent plugin installed.
Parameters
The following parameters can be used to set the requirements for the Perian task. If any of the requirements are skipped, it is replaced with the cheapest option. At least one requirement value should be set.
cores
: Number of CPU coresmemory
: Amount of memory in GBaccelerators
: Number of acceleratorsaccelerator_type
: Type of accelerator (e.g. 'A100'). For a full list of supported accelerators, use the perian CLI list-accelerators command.country_code
: Country code to run the job in (e.g. 'DE')
Credentials
The following secrets are required to be defined for the agent server:
- Perian credentials:
perian_organization
perian_token
- For accessing the Flyte storage bucket, you need to add either AWS or GCP credentials. These credentials are never logged by Perian and are only stored until then are used, then immediately deleted.
- AWS credentials:
aws_access_key_id
aws_secret_access_key
- GCP credentials:
google_application_credentials
. This should be the full json credentials.
- AWS credentials:
- (Optional) Custom docker registry for pulling the Flyte image:
docker_registry_url
docker_registry_username
docker_registry_password
Example
example.py
workflow example:
from flytekit import ImageSpec, task, workflow
from flytekitplugins.perian_job import PerianConfig
image_spec = ImageSpec(
name="flyte-test",
registry="my-registry",
python_version="3.11",
apt_packages=["wget", "curl", "git"],
packages=[
"flytekitplugins-perian-job",
],
)
@task(container_image=image_spec,
task_config=PerianConfig(
accelerators=1,
accelerator_type="A100",
))
def perian_hello(name: str) -> str:
return f"hello {name}!"
@workflow
def my_wf(name: str = "world") -> str:
return perian_hello(name=name)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flytekitplugins_perian_job-1.14.0b3.tar.gz
.
File metadata
- Download URL: flytekitplugins_perian_job-1.14.0b3.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f4c1d8139469a9c40fc46c17129d852a7be0b6e098b0b7b0d5c3f24f6d33726 |
|
MD5 | 76af08740e38a8d7038eedc17b1b61da |
|
BLAKE2b-256 | 3bfe6c0e1dffa260778f7e7a7fd0d5951175f550bc34ab69a98d2c686ad67850 |
File details
Details for the file flytekitplugins_perian_job-1.14.0b3-py3-none-any.whl
.
File metadata
- Download URL: flytekitplugins_perian_job-1.14.0b3-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b12410d895c5807650f13bb815ce805a38e89fc99affb4d610e232172c8facf4 |
|
MD5 | 734c148aee830b580f25509d8a3dc793 |
|
BLAKE2b-256 | 2cf3a0ac72e362a4101c857ab26d0f626b1a0d8139bbecccde177d42f988754f |