Skip to content

Testing for parity between cli and server #1459

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zphoenixrises
Copy link
Member

To test cli script:

python3 -m shortfin_apps.llm.cli --device hip --tokenizer_json=/data/Mistral-Nemo-Instruct-2407-FP8/tokenizer.json  --model_config=../artifacts/quark_mistral_config.json  --vmfb=../artifacts/quark_mistral_nemo.vmfb  --prompt "one two three four five"  --parameters /data/Mistral-Nemo-Instruct-2407-FP8/quark_mistral_nemo.irpa  --benchmark  --benchmark_tasks=64  --decode_steps=64 --token_selection_strategy=multi_greedy --num_beams=8 --device_ids 0 --workers_offline=16

To test server

 python -m shortfin_apps.llm.server   --tokenizer_json /data/Mistral-Nemo-Instruct-2407-FP8/tokenizer.json   --model_config ../artifacts/quark_mistral_config.json   --vmfb ../artifacts/quark_mistral_nemo.vmfb   --device=hip   --device_ids 0   --parameters /data/Mistral-Nemo-Instruct-2407-FP8/quark_mistral_nemo.irpa   --token_selection_strategy multi_greedy   --num_beams 8   --port 8081

Then run benchmark script with the following:

      OUTPUT="${MODEL}_gpu${NUM_GPUS}_bo${BON}_${OUTPUT_TOKENS}_out_${INPUT_TOKENS}_in.json"
      python3 profiles.py profile --samples 64 \
        --output $OUTPUT \
        --output_tokens $OUTPUT_TOKENS \
        --input_tokens $INPUT_TOKENS \
        --best_of_n $BON \
        --batches "8" \
        --server_ports "8081"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant