streaming.sh 488 B

123456789101112131415161718192021222324
  1. method=$1
  2. if [[ ${method} == 'h2o' ]]; then
  3. python -u run_streaming.py \
  4. --input-path data \
  5. --model-name lmsys/vicuna-13b-v1.5 \
  6. --enable_h2o_generation \
  7. --num_heavy_hitter_tokens 2048 \
  8. --num_window_length 4096 \
  9. --enable_position_rolling
  10. elif [[ ${method} == 'full' ]]; then
  11. python -u run_streaming.py \
  12. --input-path data \
  13. --model-name lmsys/vicuna-13b-v1.5
  14. else
  15. echo 'unknown argment for method'
  16. fi