Skip to content

Add Llama.cpp benchmark experiment? #189

@zlwu92

Description

@zlwu92

Hi,

I am a beginner in LLM and am new to learn structure generation with Xgrammer.
I find that you have provided the benchmark results for Llama.cpp in the blog post and paper.
However, I do not find the benchmark experiment in the open source Xgrammer repo: examples/benchmark/bench_grammar_compile_mask_gen.py (I think it should be written here?)
If so, would you please add the test code snapshot for benchmarking Llama.cpp and show how to integrate it with Xgrammer?
Thanks.

Another question is when I run the python bench_grammar_compile_mask_gen.py --backend lmformatenforcer , I got the following error

Image with the same dataset in the file downloaded from huggingface. Image Image

What might be the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions