Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLCube packing: Bert benchmark [WIP] #503

Closed
wants to merge 11 commits into from

Conversation

davidjurado
Copy link
Contributor

@davidjurado davidjurado commented Aug 24, 2021

Project setup

# Create Python environment and install MLCube Docker runner
virtualenv -p python3 ./env && source ./env/bin/activate && pip install mlcube-docker

Clone Training repo and go to Bert directory

git clone https://github.com/mlcommons/training.git && cd ./training
git fetch origin pull/503/head:feature/bert_mlcube && git checkout feature/bert_mlcube
cd ./language_model/tensorflow

Run Bert MLCube on a local machine with Docker runner

# Run Bert tasks: download, extract, preprocess, generate_tfrecords and train
mlcube run --task download
mlcube run --task extract
mlcube run --task preprocess
mlcube run --task generate_tfrecords
mlcube run --task train

We are targeting pull-type installation, so MLCubes should be available on docker hub. If not, try this:

mlcube run ... -Pdocker.build_strategy=auto

Also, users can override the workspace directory by using:

mlcube run --task=download --workspace=absolute_path_to_custom_dir

We are targeting pull-type installation, so MLCube images should be available on docker hub. If not, try this:

mlcube run ... -Pdocker.build_strategy=always

@github-actions
Copy link

github-actions bot commented Aug 24, 2021

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@davidjurado
Copy link
Contributor Author

Closed this PR because the code was outdated, the new implementation can be found here: 632

@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants