Code Monkey home page Code Monkey logo

amlt's Introduction

A repo for amlt yaml file

Created by v-ziyangma on 2022.3.3.

Usage

# available resources
amlt target info <service> #<service> = amlk8s|aml|sing

# run a job
amlt run data2vec/data2vec.yaml data2vec_train_960h_devclean

Set up the multi-node multi-gpu cluster

data2vec

  1. download the code including the bash script.

    git clone -b v-ziyangma https://github.com/ddlBoJack/fairseq.git
    cd fairseq
  2. edit submit_script/ITP_bash_scripts/data2vec/data2vec_audio_train.sh.

    exp:              include the model name and the exp name.
    config:           Pay attention that we use the yaml file in config/data2vec to specify the parameters.
    data:             the data path and the file name.
    compute resource: original data2vec use 16*48GB-GPU, with the max_tokens=3800000. we need to simulate it with update_freq.
    ckpt:             where to save the checkpoints and load the checkpoints.
    log:              where to save the output logs and the tensorboard logs.
    
  3. go back to edit the amlt yaml file to submit the job.

    code:
      local_dir: where you git clone the upper code.
    jobs:
    - name: data2vec_960h_devclean
      sku: 2xG8
      command:
        - bash submit_script/ITP_bash_scripts/data2vec/data2vec_audio_train.sh
    

Pay Attention

  1. The file submit_script/ITP_bash_scripts/data2vec/data2vec_audio_conda.sh setup a conda environment for the user before running the job.
  2. We use the yaml file in config/data2vec to specify the parameters. Instead, the command line parameters are not like "--max-tokens 3800000". It is like "dataset.max_tokens=3800000". Writing the low-change-frequency parameters in the yaml file is recommended.
  3. we do NOT need to specify the sku_count and the aml_mpirun in the 9.2.x version of amlt.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.