Skip to content

Latest commit

 

History

History

sharktank_models

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Sharktank Model Tests

This test suite includes small scale versions of Large Language Models (LLMs) and other Generative AI (GenAI) programs exported using the sharktank package built as part of the shark-ai project.

Quickstart

  1. Download files through git lfs as needed:

    git lfs install
    git lfs pull --include="*"
    
     git lfs ls-files
     # 37f90b4754 * sharktank_models/llama3.1/assets/toy_llama.irpa
     # 7172acdf43 * sharktank_models/llama3.1/assets/toy_llama.mlir
     # e997647ecc * sharktank_models/llama3.1/assets/toy_llama_tp2.irpa
     # b7b2f5a206 * sharktank_models/llama3.1/assets/toy_llama_tp2.mlir
     # 917845c887 * sharktank_models/llama3.1/assets/toy_llama_tp2.rank0.irpa
     # 9ab51093c4 * sharktank_models/llama3.1/assets/toy_llama_tp2.rank1.irpa
  2. Set up your virtual environment and install requirements:

    cd sharktank_models
    
    python -m venv .venv
    source .venv/bin/activate
    python -m pip install -r requirements.txt
  3. Run pytest using typical flags:

    pytest \
      -rA \
      -m "target_cpu" \
      --timeout=300 \
      --durations=0 \
      --log-cli-level=info

    See https://docs.pytest.org/en/stable/how-to/usage.html for other options.

Advanced pytest usage