Skip to content

About

No description, website, or topics provided.

Resources

Stars

25 stars

Watchers

0 watching

Forks

Repository files navigation

Last Updated: 2026-05-09 (Version 2.8)

1. Environment

  • ISA (Instruction Set Architecture): AMD64 (x86_64)
  • OS: Windows 10
  • Python Version: 3.8.X ~ 3.13.X supported

2. Hugging Face Authentication (for LLM tasks)

If you're using Hugging Face models (especially gated models like Llama), you need to authenticate:

  1. Get Hugging Face Token:

  2. Login via CLI:

    python -m huggingface_hub.commands.huggingface_cli login

    Enter your token when prompted.

  3. Access Gated Models:

Note: Without authentication, you'll see hf_token:None error when loading gated models.

3. Project Description

  1. Implement AI_BMT_Interface to operate with the intended AI Processing Unit (e.g., CPU, GPU, NPU).
  2. Various task example codes are provided. Use these example codes as a reference to implement the interface for the AI Processing Unit.

4. Submitter Development Guide

Required Interface

submitter must subclass bmt.AI_BMT_Interface and implement the following methods:

class SubmitterImplementation(bmt.AI_BMT_Interface):

    # Load and initialize your model here
    def initialize(self, model_path: str) -> None:

    # return the implemented interface task type. 
    def getInterfaceType(self) -> InterfaceType:

    # Power measurement selection (default: do not measure)
    def getPowerDeviceType(self) -> PowerDeviceType:

    #  Vision tasks: preprocessing & inference
    #  - preprocessVisionData: convert raw image file into model input format
    #  - inferVision: run inference on preprocessed data and return vision model outputs
    #  - dataTransferVision : transfer vision model outputs to BMT result format
    def preprocessVisionData(self, image_path: str) -> VariantType:
    def inferVision(self, data: List[VariantType]) -> model_outputs:
    def dataTransferVision(self, model_outputs) -> List[BMTVisionResult]:

    # LLM tasks: preprocessing & inference
    # - preprocessLLMData: convert raw input into model input format
    # - inferLLM: run inference on preprocessed data and return LLM model outputs
    # - dataTransferLLM : transfer LLM model outputs to BMT result format
    def preprocessLLMData(self, llmData: LLMPreprocessedInput) -> VariantType:
    def inferLLM(self, data: List[VariantType]) -> model_outputs:
    def dataTransferLLM(self, model_outputs) -> List[BMTLLMResult]:  
        
	# LLM MMLU tasks: first token generation for TTFT measurement
    # - inferFirstToken: generate only the first token (AI-BMT will measure the time internally)
    # - Returns None (we only measure TTFT, don't care about the actual first token output)
    # - Only used for MMLU tasks that require TTFT measurement
    def inferFirstToken(self, preprocessed_data) -> None:

Optional Interface

submitter can optionally provide hardware/system metadata using:

class SubmitterImplementation(bmt.AI_BMT_Interface):
    def getOptionalData(self) -> Optional_Data:
        data = Optional_Data()
        data.cpu_type = "Intel i7-9750HF"
        data.accelerator_type = "DeepX M1 (NPU)"
        data.submitter = "DeepX"
        data.cpu_core_count = "16"
        data.cpu_ram_capacity = "32GB"
        data.cooling = "Air"
        data.cooling_option = "Active"
        data.cpu_accelerator_interconnect_interface = "PCIe Gen5 x16"
        data.benchmark_model = "ResNet-50"
        data.operating_system = "Windows 10"
        return data

🔗 Additional Support: Remote GUI Guide

Notice: This application is designed to operate within a GUI environment. If you are utilizing a remote server, setting up X11 Forwarding is necessary to access the interface properly.

For step-by-step instructions, please refer to the link : How to Use AIBMT GUI via SSH (Guide)

About

No description, website, or topics provided.

Resources

Stars

25 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages