Skip to content

ic-lab-duth/online-fp-add

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online-fp-add

In this work we implement in C++ multi-term adders that interleave the maximum exponent calculation and fraction accumulation, for floating point addition that is used in dot-product units. We evaluate the area and power by performing reduction that occur in matrix multiplications from the inference of the BERT model using input from the GLUE dataset. More specifically, we run the pytorch model from huggingface and extracted inter layer results for the different tests included in GLUE dataset to use as inputs in main.cc.

The core framework of this project is the Fast-Float4HLS library, publicly available on github.

Repository Hierarchy

This repository is organized as follows:

.
├── src
│   ├── file_io.h
│   ├── main_incl.h
│   ├── main.cc
│   ├── max_lzc.h
│   ├── multi_term_adders.h
│   └── norm_and_round.h
│
├── utils
│   ├── pack.py
│   └── run.py
│
├── .gitignore
├── LICENSE
├── README.md
└── setup.sh
  • ./src/ This directory contains the C++ implementation of multi-term adders.
  • ./utils/ This directory contains Python utility scripts.
  • ./setup.sh A bash script to fetch all required dependencies.

Pending Features

  • Add synthesis scripts.
  • Python scripts for automatically loading and extracting BERT input on GLUE.
  • Modify normalization and round logic to return a FP32 float.
  • Integrade multi-term online adders onto dot-product units.

Reference

TODO

Contributors

Currently active: Kosmas Alexandridis and Giorgos Dimitrakopoulos

License

Online-fp-add is licensed with the MIT License. You are completely free to re-distribute your work derived from Online-fp-add

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published