Skip to content

Latest commit

 

History

History
103 lines (72 loc) · 2.7 KB

fate_test.md

File metadata and controls

103 lines (72 loc) · 2.7 KB

FATE Test Tutorial

A collection of useful tools to running FATE tests and PipeLine tasks.

quick start

  1. install

    pip install -e python/fate_test
  2. edit default fate_test_config.yaml; edit path to fate base/data base accordingly

    # edit priority config file with system default editor
    # filling some field according to comments
    fate_test config edit
  3. configure FATE-Flow Commandline server setting

    # configure FATE-Flow Commandline server setting
    flow init --port 9380 --ip 127.0.0.1
  4. run some fate_test suite

    fate_test suite -i <path contains *testsuite.yaml>
  5. run some fate_test benchmark quality

    fate_test benchmark-quality -i <path contains *benchmark.yaml>
  6. run some fate_test benchmark performance

    fate_test benchmark-quality -i <path contains *performance.yaml>
  7. useful logs or exception will be saved to logs dir with namespace shown in last step

command types

  • suite: used for running testsuites, collection of FATE jobs

    fate_test suite -i <path contains *testsuite.yaml>
  • data: used for upload, delete, and generate dataset

    • upload/delete data command:

      fate_test data [upload|delete] -i <path1 contains *testsuite.yaml | *benchmark.yaml>
    • upload example data of min_test/all_examples command:

      fate_test data upload -t min_test
      fate_test data upload -t all_examples
    • generate data command:

      fate_test data generate -i <path1 contains *testsuite.yaml | *benchmark.yaml>
  • benchmark-quality: used for comparing modeling quality between FATE and other machine learning systems

    fate_test bq -i <path contains *benchmark.yaml>
  • benchmark-performance: used for checking FATE algorithm performance; user should first generate and upload data before running performance testsuite

    fate_test data generate -i <path contains *performance.yaml> -ng 10000 -fg 10 -fh 10 -m 1.0 --upload-data
    fate_test performance -i <path contains *performance.yaml> --skip-data
  • llm-suite: used for running FATE-Llm testsuites, collection of FATE-Llm jobs and/or evaluations

    Before running llmsuite for the first time, make sure to install FATE-Llm and allow its import in FATE-Test scripts:

    fate_test config include fate-llm
    fate_test llmsuite -i <path contains *llmsuite.yaml>