Skip to main content

tipredict

📊 Model Info

The models in this package were trained on Alibaba Cluster-Trace-v2018.
Measurements for CPU and memory average are based on the instance metrics provided in the trace dataset.


⚠️ CUDA Installation Notice

Since CUDA wheels are not always installable via standard pip install, you must install torch and torch-geometric manually.

✅ Recommended Versions

These versions are tested and compatible (others might work, but ensure compatibility):

  • torch==2.0.0+cu118
  • torch-geometric==2.6.1
  • Requires Python ≥ 3.10

📦 Manual Installation Instructions

pip install torch==2.0.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118

pip install torch-scatter -f https://data.pyg.org/whl/torch-2.0.0+cu118.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-2.0.0+cu118.html
pip install torch-cluster -f https://data.pyg.org/whl/torch-2.0.0+cu118.html
pip install torch-spline-conv -f https://data.pyg.org/whl/torch-2.0.0+cu118.html

pip install torch-geometric==2.6.1

🧠 Functions

from tipredict import preprocess_GNN, run_pretrained, preprocess_dagtransformer, normalize

📥 Inputs (Note: CSV files must include headers!)

🔹 Input 1: Workflow CSV

Shape: number_workflows × (34 task-level features × number_tasks)
(Predicted task features should be set to 0.)

Task-Level Features (Aggregated over instances):

  • count: Count of instances
  • mean_ca, var_ca, max_ca, min_ca, med_ca, skew_ca, kurt_ca: Stats for CPU average usage
  • mean_cm, var_cm, max_cm, min_cm, med_cm, skew_cm, kurt_cm: Stats for CPU max usage
  • mean_ma, var_ma, max_ma, min_ma, med_ma, skew_ma, kurt_ma: Stats for Memory average usage
  • mean_mm, var_mm, max_mm, min_mm, med_mm, skew_mm, kurt_mm: Stats for Memory max usage
  • mean_t, var_t, max_t, min_t: Stats for running time
  • maxtime: Actual runtime

🔹 Input 2: DAG CSV

Shape: number_workflows × ((2 × number_tasks + 1) × number_tasks)

Each task includes 15 features representing graph connectivity.

DAG Feature Example (for 3-task workflow):

(If a node has multiple incoming/outgoing edges, the feature value is 10 / number_of_edges)

# Task 1
1o_1 0         # no edge to 1
1o_2 5         # edge to 2
1o_3 5         # edge to 3
1i_1 0         # no incoming from 1
1i_2 0
1i_3 0

# Task 2
2o_1 0
2o_2 0
2o_3 10        # edge to 3
2i_1 10        # incoming from 1
2i_2 0
2i_3 0

# Task 3
3o_1 0
3o_2 0
3o_3 0
3i_1 5
3i_2 5
3i_3 0

⚙️ Applications

# GNN preprocessing
preprocess_GNN(num_tasks, feature_csv, dag_csv)

# DAGTransformer preprocessing
preprocess_dagtransformer(num_tasks, feature_csv, dag_csv)

# Normalize task-level features (tasks × 34)
normalize(features)

# Run pretrained models
run_pretrained(
    model="GAT",                    # or "GIN", "GraphSAGE", "GNN_ensemble", "DAGTransformer", "DT&GNN"
    num_tasks=7,
    memory=True,                   # if False, predicts CPU
    data_GNN=...,                  # output of preprocess_GNN
    data_DAGTransformer=...,       # output of preprocess_dagtransformer
    penultimateLayer=False         # if True, returns penultimate layer output
)

Metadata

Release files for tipredict 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tipredict 0.2
File Size Uploaded
tipredict-0.2.tar.gz 123.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for tipredict 0.2
File Interpreter ABI Platform
tipredict-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 307.9 MB

Release files / tipredict-0.2.tar.gz

Download URL tipredict-0.2.tar.gz
Size 123.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a9c7d94714c6d1db6bf90c513b891432102f86f6704f1dc2b89e0d08c018de11
BLAKE2b-256 checksum
How to use checksums
437f43268024eb6dcb41a2a307fe979e4221400474253a643498476dc4a34f2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.0

Release files / tipredict-0.2-py3-none-any.whl

Download URL tipredict-0.2-py3-none-any.whl
Size 184.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2687ab91a0ab0a06046b9b3281dbc1ddd239d44df47b5c768467374248c17d51
BLAKE2b-256 checksum
How to use checksums
05f6ffbbe7ab53515a73b8e1cd433022d1931722026e200b46e59cc685bb9fdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page