Skip to main content

No project description provided

Project description

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
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tipredict-0.2.tar.gz (123.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tipredict-0.2-py3-none-any.whl (184.8 MB view details)

Uploaded Python 3

File details

Details for the file tipredict-0.2.tar.gz.

File metadata

  • Download URL: tipredict-0.2.tar.gz
  • Upload date:
  • Size: 123.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for tipredict-0.2.tar.gz
Algorithm Hash digest
SHA256 a9c7d94714c6d1db6bf90c513b891432102f86f6704f1dc2b89e0d08c018de11
MD5 392824d0d3c9c88dad6d475e972036f7
BLAKE2b-256 437f43268024eb6dcb41a2a307fe979e4221400474253a643498476dc4a34f2d

See more details on using hashes here.

File details

Details for the file tipredict-0.2-py3-none-any.whl.

File metadata

  • Download URL: tipredict-0.2-py3-none-any.whl
  • Upload date:
  • Size: 184.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for tipredict-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2687ab91a0ab0a06046b9b3281dbc1ddd239d44df47b5c768467374248c17d51
MD5 bd1c2e8d029fbcd6c8512d48252eb875
BLAKE2b-256 05f6ffbbe7ab53515a73b8e1cd433022d1931722026e200b46e59cc685bb9fdb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page