CoolFace
Datasetpublic

ICICLE-AI/ResourceEstimation_HLOGenCNN

HLO Feature Dataset for Deep Learning Resource Estimation Dataset Summary The HLO Feature Dataset is a collection of compiler-level graph features (HLO graphs) extracted from deep learning training workloads. Alongside detailed metadata (model configs, GPU stats), this dataset enables machine learning approaches for: ⏱️ Training Time Prediction πŸ“‰ Resource Consumption Estimation ⚑ HPC and GPU Scheduling Optimization 🧩 Graph-based Neural Architecture Analysis… See the full description on the dataset page: https://huggingface.co/datasets/ICICLE-AI/ResourceEstimation_HLOGenCNN.

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes89downloads
Dataset Card

HLO Feature Dataset for Deep Learning Resource Estimation

![Dataset](https://huggingface.co/datasets/your-username/hlo-feature-dataset)

Dataset Summary

The HLO Feature Dataset is a collection of compiler-level graph features (HLO graphs) extracted from deep learning training workloads. Alongside detailed metadata (model configs, GPU stats), this dataset enables machine learning approaches for:

  • —⏱️ Training Time Prediction
  • β€”πŸ“‰ Resource Consumption Estimation
  • β€”βš‘ HPC and GPU Scheduling Optimization
  • β€”πŸ§© Graph-based Neural Architecture Analysis

This dataset is ideal for experimenting with regression models (e.g., XGBoost) and Graph Neural Networks (GNNs) using compiler features.


Supported Tasks

  • β€”βš™οΈ Runtime & Resource Prediction: Predict training time (fit_time) based on HLO features.
  • β€”πŸ“Š ML for Systems Optimization: Use tabular + graph data for AI workload management.
  • β€”πŸ”— Graph Representation Learning: Apply GNNs on HLO graphs (node_feat, edge_index).

Dataset Structure

Each entry includes:

  • β€”Metadata: From dataset-new.csv (model, optimizer, GPU specs, timing metrics, etc.)
  • β€”HLO Graph Features: .npz files containing:
  • β€”node_opcode, node_feat, edge_index, node_config_ids, node_splits

Usage Example

This example demonstrates how to load metadata, preprocess features, and train an XGBoost model to predict training time (fit_time), as shown in the Colab notebook.

python
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
from xgboost import XGBRegressor

# Load metadata CSV
df = pd.read_csv('dataset-new.csv')

# Example feature selection (drop non-numeric/categorical handling needed)
X = df[['batch', 'epochs', 'learn_rate', 'gpu_core_count', 'gpu_memory_size']]
y = df['fit_time']

# Train-test split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

# Initialize XGBoost Regressor
xgb_model = XGBRegressor(n_estimators=100, learning_rate=0.1, max_depth=6, random_state=42)
xgb_model.fit(X_train, y_train)

# Evaluate
preds = xgb_model.predict(X_test)
rmse = mean_squared_error(y_test, preds, squared=False)
print(f"RMSE: {rmse}")

Example Notebooks

πŸš€ Baseline: XGBoost for Resource Estimation

A sample baseline implementation using XGBoost is provided to demonstrate how to predict resource metrics such as fit_time using the dataset's metadata.

πŸ“₯ Download the notebook from the repository:

Baseline_XGBoost_Resource_Estimation.ipynb

This notebook covers:

  • β€”Loading and preprocessing metadata from dataset-new.csv
  • β€”Training an XGBoost regressor to predict training time
  • β€”Evaluating model performance (e.g., RMSE)
⚑ Note: Make sure to adjust paths if cloning the dataset locally or integrating with Hugging Face datasets API.

Loading HLO Graph Features

For graph-based ML tasks, load the .npz files:

python
npz_file = df.iloc[0]['npz_path']
graph_data = np.load(npz_file)

node_features = graph_data['node_feat']
edges = graph_data['edge_index']

print("Node Feature Shape:", node_features.shape)
print("Edge Index Shape:", edges.shape)

<!-- ## Citation If you use this dataset, please cite:

@misc{hlofeatures2025,
  title={HLO Feature Dataset for AI Resource Estimation},
  author={Your Name},
  year={2025},
  url={https://huggingface.co/datasets/your-username/hlo-feature-dataset}
} -->

License

Specify your license here (e.g., MIT, Apache-2.0).


Contributions

Open to contributions! Feel free to suggest improvements or share your models trained on this dataset.