Skip to content
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

Add model warmup flag into cli #197

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

vivianrwu
Copy link
Collaborator

Adds --enable_model_warmup flag per #187

args:
        - --model_id=google/gemma-7b-it
        - --override_batch_size=32
        - --enable_model_warmup=True
I1106 18:30:12.872196 138308608845376 warmup_utils.py:108] ---------Prefill engine 0 compiled for prefill length 512.---------
2024-11-06 18:30:12,872 - root - INFO - ---------Prefill engine 0 compiled for prefill length 512.---------
2024-11-06 18:30:13,011 - root - INFO - ---------Prefill engine 0 compiled for prefill length 64.---------
I1106 18:30:13.011122 138310185887296 warmup_utils.py:108] ---------Prefill engine 0 compiled for prefill length 64.---------
I1106 18:30:16.064429 138308617238080 warmup_utils.py:108] ---------Prefill engine 0 compiled for prefill length 256.---------
2024-11-06 18:30:16,064 - root - INFO - ---------Prefill engine 0 compiled for prefill length 256.---------
...
2024-11-06 18:30:32,060 - root - INFO - ---------Generate params 0 loaded.---------
curl --request POST --header "Content-type: application/json" -s localhost:8000/generate --data '{
    "prompt": "What are the top 5 programming languages",
    "max_tokens": 200
}'

{
    "response": " for for data science in 2023?\n\n1. Python\n2. R\n3. SQL\n4. Java\n5. Scala\n\n**Note:** The order is based on popularity and demand in the data science industry in 2023."
}

@qihqi qihqi merged commit fe22a9f into AI-Hypercomputer:main Nov 6, 2024
3 of 4 checks passed
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.

2 participants