AML4CPU
Official implementation of "Adaptive Machine Learning for Resource-Constrained Environments: A Comparative Study on CPU Utilization Prediction" - DELTA 2024, ACM SIGKDD KDD 2024
Install / Use
/learn @sebasmos/AML4CPUREADME
AML4CPU: Implementation of Adaptive Machine Learning for Resource-Constrained Environments
Official PyTorch and River implementation of Adaptive Machine Learning for Resource-Constrained Environments presented at DELTA 2024, ACM SIGKDD KDD 2024, Barcelona, Spain.
- 📄 Paper: [LNCS-online] - [ACML-online]
- 📄 Pre-print: Adaptive Machine Learning for Resource-Constrained Environments
- 🤗 Dataset on HuggingFace: adaptive_cpu_utilisation_dataset
- 🤗 Models on HuggingFace: adaptive_cpu_utilisation_prediction_models
- 📊 Poster: View Poster
- 📄 Paper (Online): View Paper
- GitHub Repository: AML4CPU
Contents
- [x] Hold-out Script - Experiment 1:
run_holdout.py - [x] Pre-sequential Script - Experiment 2:
run_pre_sequential.py - [x] Zero-shot and Fine-tuning with Lag-Llama:
run_finetune.py
🇪🇺 This work has received funding from the European Union's HORIZON research and innovation programme under grant agreement No. 101070177.
Setting Up Your Environment
Let's start by setting up your environment:
-
Create a Conda Environment:
conda create -n AML4CPU python=3.10.12 -y conda activate AML4CPU -
Clone the Repository and Install Requirements:
git clone https://github.com/sebasmos/AML4CPU.git cd AML4CPU pip install -r requirements.txt -
Install PyTorch and Other Dependencies:
pip install clean-fid numba numpy torch==2.0.0+cu118 torchvision --force-reinstall --extra-index-url https://download.pytorch.org/whl/cu118
Experiments
Experiment 1: Holdout Evaluation
Run the holdout evaluation script:
python run_holdout.py --output_file 'exp1' --output_folder Exp1 --num_seeds 20

Experiment 2: Pre-sequential Evaluations
Run the pre-sequential evaluation script:
python run_pre_sequential.py --output_file 'exp2' --eval --output_folder Exp2 --num_seeds 20

Experiment 3: Zero-shot and Fine-tuning with Lag-Llama
Zero-shot Testing
Test zero-shot over different context lengths (32, 64, 128, 256) with and without RoPE:
python run_finetune.py --output_file zs --output_folder zs --model_path ./models/lag_llama_models/lag-llama.ckpt --eval_multiple_zero_shot --max_epochs 50 --num_seeds 20
Fine-tuning and Testing
Finetune and test Lag-Llama over different context lengths (32, 64, 128, 256) with and without RoPE:
python run_finetune.py --output_file exp3_REAL_parallel --output_folder Exp3 --model_path ./models/lag_llama_models/lag-llama.ckpt --max_epochs 50 --num_seeds 20 --eval_multiple

License
This project is licensed under the MIT License. See LICENSE for details.
Acknoledgements
We are grateful to our colleagues at the EU Horizon project ICOS and Ireland’s Centre for Applied AI for helping to start and shape this research effort. Our advancement has been made possible by funding from the European Union’s HORIZON research and innovation program (Grant No. 101070177).
Please cite as:
@inproceedings{ordonez2024adaptive,
title={Adaptive Machine Learning for Resource-Constrained Environments},
author={Ord{\'o}{\~n}ez, Sebasti{\'a}n A Cajas and Samanta, Jaydeep and Su{\'a}rez-Cetrulo, Andr{\'e}s L and Carbajo, Ricardo Sim{\'o}n},
booktitle={International Workshop on Discovering Drift Phenomena in Evolving Landscapes},
pages={3--19},
year={2024},
organization={Springer}
}
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
groundhog
398Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
sec-edgar-agentkit
10AI agent toolkit for accessing and analyzing SEC EDGAR filing data. Build intelligent agents with LangChain, MCP-use, Gradio, Dify, and smolagents to analyze financial statements, insider trading, and company filings.
Kiln
4.7kBuild, Evaluate, and Optimize AI Systems. Includes evals, RAG, agents, fine-tuning, synthetic data generation, dataset management, MCP, and more.
