text-generation-inference/integration-tests/models/__snapshots__/test_tools_llama
Daniël de Kok 289aa48554
Move JSON grammar -> regex grammar conversion to the router (#2772)
* Move JSON grammar -> regex grammar conversion to the router

This change moves the JSON grammar -> regex grammar conversion to the
router by adding a dependency on the `outlines-core` Rust crate. In
contrast to the Python implementation, the conversions are not LRU-cached
since they seem to be fast enough:

simple schema           time:   [5.8293 µs 5.8307 µs 5.8320 µs]
                        change: [-13.166% -12.884% -12.641%] (p = 0.00 < 0.05)
                        Performance has improved.

complex schema          time:   [14.875 µs 14.881 µs 14.887 µs]
                        change: [-2.1637% -1.9914% -1.7852%] (p = 0.00 < 0.05)
                        Performance has improved.

Using the schemas from:
https://github.com/dottxt-ai/outlines-core/blob/main/benchmarks/bench_json_schema.py
2024-11-25 18:47:34 +01:00
..
test_flash_llama_grammar_tools_auto.json Move JSON grammar -> regex grammar conversion to the router (#2772) 2024-11-25 18:47:34 +01:00
test_flash_llama_grammar_tools_choice.json v2.0.1 2024-04-18 17:20:36 +02:00
test_flash_llama_grammar_tools_insufficient_information_stream.json chore: prepare 2.4.1 release (#2773) 2024-11-22 17:26:15 +00:00
test_flash_llama_grammar_tools_insufficient_information.json chore: prepare 2.4.1 release (#2773) 2024-11-22 17:26:15 +00:00
test_flash_llama_grammar_tools_sea_creatures_stream_function_object.json Move JSON grammar -> regex grammar conversion to the router (#2772) 2024-11-25 18:47:34 +01:00
test_flash_llama_grammar_tools_sea_creatures_stream_none.json PR 2634 CI - Fix the tool_choice format for named choice by adapting OpenAIs scheme (#2645) 2024-11-19 13:31:59 -05:00
test_flash_llama_grammar_tools_sea_creatures_stream_required.json Move JSON grammar -> regex grammar conversion to the router (#2772) 2024-11-25 18:47:34 +01:00
test_flash_llama_grammar_tools_sea_creatures_stream.json chore: prepare 2.4.1 release (#2773) 2024-11-22 17:26:15 +00:00
test_flash_llama_grammar_tools_stream.json Move JSON grammar -> regex grammar conversion to the router (#2772) 2024-11-25 18:47:34 +01:00
test_flash_llama_grammar_tools.json Move JSON grammar -> regex grammar conversion to the router (#2772) 2024-11-25 18:47:34 +01:00