Skip to content

raikonenfnu/ModelCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generating E2e Model to IREE

Initial/First Time Setups

VirtualEnv Setup

pip install virtualenv
virtualenv -p /usr/bin/python3.9 ModelCompilerEnv
source ModelCompilerEnv/bin/activate

Installing Miscallaneous Deps

pip install tensorflow
pip install gin-config

Installing IREE-Python

python -m pip install \
  iree-compiler-snapshot \
  iree-runtime-snapshot \
  iree-tools-tf-snapshot \
  iree-tools-tflite-snapshot \
  iree-tools-xla-snapshot \
  --find-links https://github.com/google/iree/releases

Getting ModelCompiler

git clone https://github.com/raikonenfnu/ModelCompiler
cd ModelCompiler
git submodule update --init --recursive 

Generating IREE Model

cd ModelCompiler
export PYTHONPATH=$PYTHONPATH:$PWD/third_party/tf_models
cd nlp_gen
python bert_small_gen.py # should generate it to /tmp/model.mlir

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages