8000 GitHub - dhjoo98/Mandalore
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dhjoo98/Mandalore

Folders and 8000 files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mandalore

A two-phase platform for multiple transformers, multiple pruning methods, and multiple hardware architectures.

Basic training, inference, pruning of model is done on /model.

For now, Sanger and Wanda are implemented.
export PROJ_ROOT as current directory before any code run.
sh ./scripts/train_sanger_on_squad.sh for Sanger training. sh ./scripts/eval_sanger_on_squad.sh for for Sanger evaluation.(same for Wanda)
"python inference.py --prune_method sanger/wanda" for infernce"

if there is an issue with AttributeError: module 'distutils' has no attribute 'version', try 'conda/pip install setuptools==59.5.0'
(useful post: https://sebhastian.com/python-attributeerror-module-distutils-has-no-attribute-version/)

Known Issues:

Batching causes error for modeling_bert_Wanda

Mandalore Workflow:

Phase 1] Extraction with PyTorch Hook.
"python extraction.py --prune_method sanger/bert"
Phase 2] Running on Simulator. (requires tensors_with_layer_data.pt from Phase1)
"python simulator.py"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0