Skip to content

server: add option to disable KV offload #6468

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

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Conversation

jxy
Copy link
Contributor

@jxy jxy commented Apr 4, 2024

Simply match the arguments in common.cpp.

Copy link
Contributor

github-actions bot commented Apr 4, 2024

📈 llama.cpp server for bench-server-baseline on Standard_NC4as_T4_v3: 473 iterations 🚀

  • Concurrent users: 8, duration: 10m
  • HTTP request : avg=9921.01ms p(90)=27263.55ms fails=0, finish reason: stop=473 truncated=0
  • Prompt processing (pp): avg=244.11tk/s p(90)=732.6tk/s total=188.53tk/s
  • Token generation (tg): avg=100.66tk/s p(90)=276.16tk/s total=129.69tk/s
  • ggml-org/models/phi-2/ggml-model-q4_0.gguf parallel=8 ctx-size=16384 ngl=33 batch-size=2048 ubatch-size=256 pp=1024 pp+tg=2048 branch=server-nkvo commit=ecef370e75896d758bc7850267c11d465c981bed
Time series

prompt_tokens_seconds

More
---
config:
    xyChart:
        titleFontSize: 12
        width: 900
        height: 600
    themeVariables:
        xyChart:
            titleColor: "#000000"
---
xychart-beta
    title "llama.cpp bench-server-baseline on Standard_NC4as_T4_v3
 duration=10m 473 iterations"
    y-axis "llamacpp:prompt_tokens_seconds"
    x-axis "llamacpp:prompt_tokens_seconds" 1712201272 --> 1712201898
    line [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 236.53, 236.53, 236.53, 236.53, 236.53, 522.43, 522.43, 522.43, 522.43, 522.43, 541.17, 541.17, 541.17, 541.17, 541.17, 568.63, 568.63, 568.63, 568.63, 568.63, 602.23, 602.23, 602.23, 602.23, 602.23, 617.03, 617.03, 617.03, 617.03, 617.03, 616.74, 616.74, 616.74, 616.74, 616.74, 632.35, 632.35, 632.35, 632.35, 632.35, 645.17, 645.17, 645.17, 645.17, 645.17, 646.36, 646.36, 646.36, 646.36, 646.36, 653.45, 653.45, 653.45, 653.45, 653.45, 654.03, 654.03, 654.03, 654.03, 654.03, 667.74, 667.74, 667.74, 667.74, 667.74, 673.31, 673.31, 673.31, 673.31, 673.31, 691.76, 691.76, 691.76, 691.76, 691.76, 699.18, 699.18, 699.18, 699.18, 699.18, 677.39, 677.39, 677.39, 677.39, 677.39, 684.01, 684.01, 684.01, 684.01, 684.01, 686.23, 686.23, 686.23, 686.23, 686.23, 685.53, 685.53, 685.53, 685.53, 685.53, 697.22, 697.22, 697.22, 697.22, 697.22, 698.63, 698.63, 698.63, 698.63, 698.63, 697.93, 697.93, 697.93, 697.93, 697.93, 697.03, 697.03, 697.03, 697.03, 697.03, 700.69, 700.69, 700.69, 700.69, 700.69, 701.67, 701.67, 701.67, 701.67, 701.67, 709.67, 709.67, 709.67, 709.67, 709.67, 714.43, 714.43, 714.43, 714.43, 714.43, 713.21, 713.21, 713.21, 713.21, 713.21, 714.33, 714.33, 714.33, 714.33, 714.33, 721.73, 721.73, 721.73, 721.73, 721.73, 720.34, 720.34, 720.34, 720.34, 720.34, 719.17, 719.17, 719.17, 719.17, 719.17, 719.33, 719.33, 719.33, 719.33, 719.33, 723.1, 723.1, 723.1, 723.1, 723.1, 723.11, 723.11, 723.11, 723.11, 723.11, 722.16, 722.16, 722.16, 722.16, 722.16, 724.39, 724.39, 724.39, 724.39, 724.39, 733.6, 733.6, 733.6, 733.6, 733.6, 736.66, 736.66, 736.66, 736.66, 736.66, 729.23, 729.23, 729.23, 729.23, 729.23, 730.18, 730.18, 730.18, 730.18, 730.18, 728.25, 728.25, 728.25, 728.25, 728.25, 728.3, 728.3, 728.3, 728.3, 728.3, 729.46, 729.46, 729.46, 729.46, 729.46, 724.34, 724.34, 724.34, 724.34, 724.34, 732.57, 732.57, 732.57, 732.57, 732.57, 731.72, 731.72, 731.72, 731.72, 731.72, 726.69, 726.69, 726.69, 726.69, 726.69, 724.99, 724.99, 724.99, 724.99, 724.99, 721.57, 721.57, 721.57, 721.57, 721.57, 720.39, 720.39, 720.39, 720.39, 720.39, 721.42, 721.42, 721.42, 721.42, 721.42, 723.88, 723.88, 723.88, 723.88, 723.88, 723.55, 723.55, 723.55, 723.55, 723.55, 726.95, 726.95, 726.95, 726.95, 726.95, 726.77, 726.77, 726.77, 726.77, 726.77, 728.34, 728.34, 728.34, 728.34, 728.34, 730.2, 730.2, 730.2, 730.2, 730.2, 729.5, 729.5, 729.5, 729.5, 729.5, 729.05, 729.05, 729.05, 729.05]
                    
Loading
predicted_tokens_seconds
More
---
config:
    xyChart:
        titleFontSize: 12
        width: 900
        height: 600
    themeVariables:
        xyChart:
            titleColor: "#000000"
---
xychart-beta
    title "llama.cpp bench-server-baseline on Standard_NC4as_T4_v3
 duration=10m 473 iterations"
    y-axis "llamacpp:predicted_tokens_seconds"
    x-axis "llamacpp:predicted_tokens_seconds" 1712201272 --> 1712201898
    line [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 31.59, 31.59, 31.59, 31.59, 31.59, 25.18, 25.18, 25.18, 25.18, 25.18, 16.88, 16.88, 16.88, 16.88, 16.88, 17.61, 17.61, 17.61, 17.61, 17.61, 18.03, 18.03, 18.03, 18.03, 18.03, 18.03, 18.03, 18.03, 18.03, 18.03, 18.6, 18.6, 18.6, 18.6, 18.6, 19.11, 19.11, 19.11, 19.11, 19.11, 19.44, 19.44, 19.44, 19.44, 19.44, 19.52, 19.52, 19.52, 19.52, 19.52, 19.68, 19.68, 19.68, 19.68, 19.68, 19.6, 19.6, 19.6, 19.6, 19.6, 19.51, 19.51, 19.51, 19.51, 19.51, 19.41, 19.41, 19.41, 19.41, 19.41, 19.24, 19.24, 19.24, 19.24, 19.24, 18.91, 18.91, 18.91, 18.91, 18.91, 18.76, 18.76, 18.76, 18.76, 18.76, 18.05, 18.05, 18.05, 18.05, 18.05, 17.87, 17.87, 17.87, 17.87, 17.87, 18.01, 18.01, 18.01, 18.01, 18.01, 18.2, 18.2, 18.2, 18.2, 18.2, 18.09, 18.09, 18.09, 18.09, 18.09, 18.0, 18.0, 18.0, 18.0, 18.0, 17.98, 17.98, 17.98, 17.98, 17.98, 17.91, 17.91, 17.91, 17.91, 17.91, 17.92, 17.92, 17.92, 17.92, 17.92, 18.04, 18.04, 18.04, 18.04, 18.04, 17.96, 17.96, 17.96, 17.96, 17.96, 18.07, 18.07, 18.07, 18.07, 18.07, 18.14, 18.14, 18.14, 18.14, 18.14, 18.22, 18.22, 18.22, 18.22, 18.22, 18.21, 18.21, 18.21, 18.21, 18.21, 18.09, 18.09, 18.09, 18.09, 18.09, 18.14, 18.14, 18.14, 18.14, 18.14, 18.27, 18.27, 18.27, 18.27, 18.27, 18.34, 18.34, 18.34, 18.34, 18.34, 18.45, 18.45, 18.45, 18.45, 18.45, 18.55, 18.55, 18.55, 18.55, 18.55, 18.57, 18.57, 18.57, 18.57, 18.57, 18.52, 18.52, 18.52, 18.52, 18.52, 18.51, 18.51, 18.51, 18.51, 18.51, 18.42, 18.42, 18.42, 18.42, 18.42, 18.37, 18.37, 18.37, 18.37, 18.37, 18.39, 18.39, 18.39, 18.39, 18.39, 18.45, 18.45, 18.45, 18.45, 18.45, 18.49, 18.49, 18.49, 18.49, 18.49, 18.45, 18.45, 18.45, 18.45, 18.45, 18.39, 18.39, 18.39, 18.39, 18.39, 18.34, 18.34, 18.34, 18.34, 18.34, 18.12, 18.12, 18.12, 18.12, 18.12, 17.86, 17.86, 17.86, 17.86, 17.86, 17.73, 17.73, 17.73, 17.73, 17.73, 17.57, 17.57, 17.57, 17.57, 17.57, 17.55, 17.55, 17.55, 17.55, 17.55, 17.59, 17.59, 17.59, 17.59, 17.59, 17.63, 17.63, 17.63, 17.63, 17.63, 17.68, 17.68, 17.68, 17.68, 17.68, 17.7, 17.7, 17.7, 17.7, 17.7, 17.72, 17.72, 17.72, 17.72, 17.72, 17.69, 17.69, 17.69, 17.69, 17.69, 17.65, 17.65, 17.65, 17.65]
                    
Loading

Details

kv_cache_usage_ratio

More
---
config:
    xyChart:
        titleFontSize: 12
        width: 900
        height: 600
    themeVariables:
        xyChart:
            titleColor: "#000000"
---
xychart-beta
    title "llama.cpp bench-server-baseline on Standard_NC4as_T4_v3
 duration=10m 473 iterations"
    y-axis "llamacpp:kv_cache_usage_ratio"
    x-axis "llamacpp:kv_cache_usage_ratio" 1712201272 --> 1712201898
    line [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.06, 0.06, 0.06, 0.06, 0.06, 0.28, 0.28, 0.28, 0.28, 0.28, 0.19, 0.19, 0.19, 0.19, 0.19, 0.22, 0.22, 0.22, 0.22, 0.22, 0.23, 0.23, 0.23, 0.23, 0.23, 0.16, 0.16, 0.16, 0.16, 0.16, 0.15, 0.15, 0.15, 0.15, 0.15, 0.18, 0.18, 0.18, 0.18, 0.18, 0.15, 0.15, 0.15, 0.15, 0.15, 0.24, 0.24, 0.24, 0.24, 0.24, 0.21, 0.21, 0.21, 0.21, 0.21, 0.18, 0.18, 0.18, 0.18, 0.18, 0.22, 0.22, 0.22, 0.22, 0.22, 0.21, 0.21, 0.21, 0.21, 0.21, 0.18, 0.18, 0.18, 0.18, 0.18, 0.23, 0.23, 0.23, 0.23, 0.23, 0.27, 0.27, 0.27, 0.27, 0.27, 0.2, 0.2, 0.2, 0.2, 0.2, 0.13, 0.13, 0.13, 0.13, 0.13, 0.15, 0.15, 0.15, 0.15, 0.15, 0.24, 0.24, 0.24, 0.24, 0.24, 0.23, 0.23, 0.23, 0.23, 0.23, 0.25, 0.25, 0.25, 0.25, 0.25, 0.31, 0.31, 0.31, 0.31, 0.31, 0.17, 0.17, 0.17, 0.17, 0.17, 0.12, 0.12, 0.12, 0.12, 0.12, 0.21, 0.21, 0.21, 0.21, 0.21, 0.11, 0.11, 0.11, 0.11, 0.11, 0.13, 0.13, 0.13, 0.13, 0.13, 0.15, 0.15, 0.15, 0.15, 0.15, 0.31, 0.31, 0.31, 0.31, 0.31, 0.26, 0.26, 0.26, 0.26, 0.26, 0.14, 0.14, 0.14, 0.14, 0.14, 0.12, 0.12, 0.12, 0.12, 0.12, 0.1, 0.1, 0.1, 0.1, 0.1, 0.12, 0.12, 0.12, 0.12, 0.12, 0.15, 0.15, 0.15, 0.15, 0.15, 0.14, 0.14, 0.14, 0.14, 0.14, 0.19, 0.19, 0.19, 0.19, 0.19, 0.18, 0.18, 0.18, 0.18, 0.18, 0.22, 0.22, 0.22, 0.22, 0.22, 0.21, 0.21, 0.21, 0.21, 0.21, 0.13, 0.13, 0.13, 0.13, 0.13, 0.2, 0.2, 0.2, 0.2, 0.2, 0.13, 0.13, 0.13, 0.13, 0.13, 0.11, 0.11, 0.11, 0.11, 0.11, 0.27, 0.27, 0.27, 0.27, 0.27, 0.46, 0.46, 0.46, 0.46, 0.46, 0.55, 0.55, 0.55, 0.55, 0.55, 0.47, 0.47, 0.47, 0.47, 0.47, 0.35, 0.35, 0.35, 0.35, 0.35, 0.29, 0.29, 0.29, 0.29, 0.29, 0.11, 0.11, 0.11, 0.11, 0.11, 0.15, 0.15, 0.15, 0.15, 0.15, 0.14, 0.14, 0.14, 0.14, 0.14, 0.09, 0.09, 0.09, 0.09, 0.09, 0.12, 0.12, 0.12, 0.12, 0.12, 0.18, 0.18, 0.18, 0.18, 0.18, 0.3, 0.3, 0.3, 0.3, 0.3, 0.28, 0.28, 0.28, 0.28, 0.28, 0.32, 0.32, 0.32, 0.32]
                    
Loading
requests_processing
More
---
config:
    xyChart:
        titleFontSize: 12
        width: 900
        height: 600
    themeVariables:
        xyChart:
            titleColor: "#000000"
---
xychart-beta
    title "llama.cpp bench-server-baseline on Standard_NC4as_T4_v3
 duration=10m 473 iterations"
    y-axis "llamacpp:requests_processing"
    x-axis "llamacpp:requests_processing" 1712201272 --> 1712201898
    line [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 8.0, 8.0, 8.0, 8.0, 8.0, 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 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 8.0, 7.0, 7.0, 7.0, 7.0, 7.0, 2.0, 2.0, 2.0, 2.0]
                    
Loading

Copy link
Member

@slaren slaren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw --memory-f32 has been removed and should be removed from the help in server_print_usage.

@ggerganov ggerganov merged commit 1a43c72 into ggml-org:master Apr 4, 2024
@jxy jxy deleted the server-nkvo branch April 10, 2024 02:46
tybalex pushed a commit to rubra-ai/tools.cpp that referenced this pull request Apr 17, 2024
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.

3 participants