Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, ieee.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: aimilefth
  • License: gpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 144 KB
Statistics
  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

TF2AIF: TensorFlow to AI Framework Conversion and Deployment Tool

Overview

TF2AIF is a comprehensive tool designed to facilitate the conversion and deployment of AI models across various hardware platforms. It encompasses both conversion of models to different formats and orchestration of inference servers. This repository provides all the necessary scripts, configuration files, and Dockerfiles to streamline these processes.

Installation

TF2AIF is fully containerized, simplifying the installation process. It has been tested on Ubuntu 18.04 and Ubuntu 20.04 systems. However, it should work on any Linux OS with support for Docker and Docker Buildx. To get started, follow these steps:

  1. Install Docker:

  2. Enable Docker Buildx:

    • Docker Buildx is required for building multi-platform images. Enable Docker Buildx by following the instructions below:
    • We recommend using the manual download instructions to set up Buildx as the default builder.
  3. Set Up a Multi-platform Builder:

    • Create a Docker Buildx builder that supports both linux/amd64 and linux/arm64 architectures and set it as the default builder. The script below automates this process:

    ```bash #!/bin/bash

    # Check if Docker Buildx is installed if ! docker buildx version > /dev/null 2>&1; then echo "Docker Buildx is not installed. Please install Docker Buildx first." exit 1 fi

    # Remove existing builder instance if it exists docker buildx rm multiplat_builder 2>/dev/null || true

    # Create a new builder instance with required architectures docker buildx create --name multiplat_builder --driver docker-container --use --platform linux/amd64,linux/arm64

    # Inspect the builder instance docker buildx inspect --bootstrap

    # Enable the builder as default docker buildx use multiplat_builder ```

  4. Verify Docker and Buildx Installation:

    • Run the following commands to verify that Docker and Buildx are correctly installed and configured:

    bash docker --version docker buildx version docker buildx ls

Directory Structure

src

The src directory is the core of the TF2AIF project, providing all necessary components for converting and deploying AI models across various hardware platforms.

Subdirectories: - Base_container_images/: Dockerfiles and build scripts to create base Docker images for different AI-framework/platform combinations. - Composer/: Scripts and configurations to deploy and run AI models on various hardware platforms. - Converter/: Source code and scripts for the conversion of models to different formats. - TF2AIF_runs/: Scripts to orchestrate the TF2AIF flow for different AI-framework/platform combinations.

For detailed information, see the src/README.md.

CLASSIFICATION_THR

This directory demonstrates the full capabilities of the TF2AIF tool for TensorFlow models. It includes data, code, and configuration files to run the TF2AIF flow and generate ResNet50 inference servers for various AI-framework/platform pairs. This directory can also serve as a template for using custom TensorFlow models with the TF2AIF tool.

Key Files: - TF2AIF_args.yaml: Configuration file specifying the flow parameters. - Converter/: Contains models, datasets, configurations, and dataloaders for the conversion process. - Composer/: Contains platform-specific configurations and additional libraries for composing the containers.

For detailed information, see the CLASSIFICATION_THR/README.md.

Usage

Running the TF2AIF Flow

It is recommended to use the TF2AIF flow by executing the TF2AIF_runs/TF2AIF_run_all.sh script located in the src directory. This script orchestrates the conversion and composition processes for the specified AI-framework/platform pairs.

Example Usage

To run the TF2AIF flow for the CLASSIFICATIONTHR example, navigate to the `src/TF2AIFruns` directory and execute the following command:

bash bash TF2AIF_run_all.sh -p ../../CLASSIFICATION_THR -m parallel

Citation

This work has been published in the 2024 EUCNC & 6G Summit conference.\ The published version can be accessed on IEEE Xplore.\ A preprint of the paper is also available on arXiv.

If you want to cite this work, please use the following:

bibtex @INPROCEEDINGS{10597008, author={Leftheriotis, Aimilios and Tzenetopoulos, Achilleas and Lentaris, George and Soudris, Dimitrios and Theodoridis, Georgios}, booktitle={2024 Joint European Conference on Networks and Communications & 6G Summit (EuCNC/6G Summit)}, title={TF2AIF: Facilitating development and deployment of accelerated AI models on the cloud-edge continuum}, year={2024}, volume={}, number={}, pages={931-936}, keywords={6G mobile communication;Biological system modeling;Ecosystems;Containers;Encoding;Resource management;Artificial intelligence}, doi={10.1109/EuCNC/6GSummit60053.2024.10597008} }

Conclusion

TF2AIF is a powerful tool designed to simplify the conversion and deployment of AI models across various hardware platforms. By following the detailed instructions and utilizing the provided scripts and configuration files, users can efficiently manage the entire workflow from model conversion to deployment.

For more detailed information, refer to the README.md files in the respective directories.

Additional Resources

src/Basecontainerimages/README.md\ src/Composer/README.md\ src/Converter/README.md\ src/TF2AIF_runs/README.md\ CLASSIFICATION_THR/README.md

Owner

  • Login: aimilefth
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Leftheriotis
    given-names: Aimilios
  - family-names: Tzenetopoulos
    given-names: Achilleas
  - family-names: Lentaris
    given-names: George
  - family-names: Soudris
    given-names: Dimitrios
  - family-names: Theodoridis
    given-names: Georgios
title: "TF2AIF: Facilitating development and deployment of accelerated AI models on the cloud-edge continuum"
version: "1.0"
doi: 10.1109/EuCNC/6GSummit60053.2024.10597008
date-released: 2024-06-19
url: https://ieeexplore.ieee.org/document/10597008
repository-code: https://github.com/aimilefth/TF2AIF

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1