diff --git a/Cargo.lock b/Cargo.lock index 584b4134..090e2e80 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3762,7 +3762,7 @@ dependencies = [ [[package]] name = "text-generation-benchmark" -version = "2.0.5-dev0" +version = "2.1.1-dev0" dependencies = [ "average", "clap", @@ -3783,7 +3783,7 @@ dependencies = [ [[package]] name = "text-generation-client" -version = "2.0.5-dev0" +version = "2.1.1-dev0" dependencies = [ "async-trait", "base64 0.22.1", @@ -3801,7 +3801,7 @@ dependencies = [ [[package]] name = "text-generation-launcher" -version = "2.0.5-dev0" +version = "2.1.1-dev0" dependencies = [ "clap", "ctrlc", @@ -3820,7 +3820,7 @@ dependencies = [ [[package]] name = "text-generation-router" -version = "2.0.5-dev0" +version = "2.1.1-dev0" dependencies = [ "async-stream", "axum 0.7.5", @@ -3832,6 +3832,7 @@ dependencies = [ "hf-hub", "image", "init-tracing-opentelemetry", + "itertools 0.10.5", "jsonschema", "metrics 0.21.1", "metrics-exporter-prometheus", @@ -3854,8 +3855,6 @@ dependencies = [ "tokio-stream", "tower-http", "tracing", - "tracing-core", - "tracing-log 0.2.0", "tracing-opentelemetry 0.21.0", "tracing-subscriber", "utoipa", diff --git a/docs/source/supported_models.md b/docs/source/supported_models.md index 3468e988..1eeed39f 100644 --- a/docs/source/supported_models.md +++ b/docs/source/supported_models.md @@ -10,6 +10,7 @@ Text Generation Inference enables serving optimized models on specific hardware - [Llama](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct) - [Phi 3](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) - [Gemma](https://huggingface.co/google/gemma-7b) +- [Gemma2](https://huggingface.co/google/gemma2-9b) - [Cohere](https://huggingface.co/CohereForAI/c4ai-command-r-plus) - [Dbrx](https://huggingface.co/databricks/dbrx-instruct) - [Mamba](https://huggingface.co/state-spaces/mamba-2.8b-slimpj) diff --git a/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_next_load.json b/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_next_load.json index 4bc90896..7f1875e0 100644 --- a/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_next_load.json +++ b/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_next_load.json @@ -37,7 +37,7 @@ }, { "id": 32001, - "logprob": -19.484375, + "logprob": -19.46875, "text": "" }, { @@ -57,7 +57,7 @@ }, { "id": 32001, - "logprob": -20.234375, + "logprob": -20.21875, "text": "" }, { @@ -65,11 +65,1785 @@ "logprob": -16.421875, "text": "" }, + { + "id": 32001, + "logprob": -19.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -23.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.28125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -21.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -22.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -23.609375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.5, + "text": "" + }, + { + "id": 32001, + "logprob": -19.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.234375, + "text": "" + }, + { + "id": 32001, + "logprob": -23.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -21.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.78125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.65625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -14.8828125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -23.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -23.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -23.0, + "text": "" + }, + { + "id": 32001, + "logprob": -19.75, + "text": "" + }, + { + "id": 32001, + "logprob": -17.078125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.65625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.9921875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.15625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.15625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32000, + "logprob": -3.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -22.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.65625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.953125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.515625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.78125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.2734375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.5625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.859375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.546875, + "text": "" + }, + { + "id": 32001, + "logprob": -14.1953125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.0, + "text": "" + }, + { + "id": 32001, + "logprob": -20.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -15.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -14.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.21875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32000, + "logprob": -3.2988281, + "text": "" + }, + { + "id": 32001, + "logprob": -25.75, + "text": "" + }, + { + "id": 32001, + "logprob": -18.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.65625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.7421875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.25, + "text": "" + }, + { + "id": 32001, + "logprob": -16.5625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.65625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -15.9453125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.078125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.953125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.4453125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.21875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.9375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.234375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.25, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.5625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.0, + "text": "" + }, + { + "id": 32000, + "logprob": -2.7207031, + "text": "" + }, + { + "id": 32001, + "logprob": -23.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -22.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.5, + "text": "" + }, + { + "id": 32001, + "logprob": -16.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.390625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.0625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.5, + "text": "" + }, + { + "id": 32001, + "logprob": -21.5, + "text": "" + }, + { + "id": 32001, + "logprob": -19.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.609375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.9375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.0, + "text": "" + }, + { + "id": 32001, + "logprob": -17.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.25, + "text": "" + }, { "id": 32001, "logprob": -19.828125, "text": "" }, + { + "id": 32001, + "logprob": -15.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.6640625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.578125, + "text": "" + }, + { + "id": 32000, + "logprob": -3.0917969, + "text": "" + }, + { + "id": 32001, + "logprob": -25.375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.75, + "text": "" + }, + { + "id": 32001, + "logprob": -18.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.1328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.5, + "text": "" + }, + { + "id": 32001, + "logprob": -21.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -22.515625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.0, + "text": "" + }, + { + "id": 32001, + "logprob": -16.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.9375, + "text": "" + }, + { + "id": 32001, + "logprob": -22.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.75, + "text": "" + }, + { + "id": 32001, + "logprob": -16.390625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -22.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.484375, + "text": "" + }, + { + "id": 32001, + "logprob": -15.3984375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.75, + "text": "" + }, + { + "id": 32001, + "logprob": -14.6484375, + "text": "" + }, + { + "id": 32001, + "logprob": -21.609375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.234375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.5, + "text": "" + }, + { + "id": 32001, + "logprob": -20.0, + "text": "" + }, + { + "id": 32001, + "logprob": -18.78125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -13.6171875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.5, + "text": "" + }, + { + "id": 32001, + "logprob": -21.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.390625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.9609375, + "text": "" + }, + { + "id": 32000, + "logprob": -2.0332031, + "text": "" + }, + { + "id": 12018, + "logprob": -12.078125, + "text": "Write" + }, + { + "id": 528, + "logprob": -10.09375, + "text": "me" + }, + { + "id": 264, + "logprob": -0.103393555, + "text": "a" + }, + { + "id": 2485, + "logprob": -4.5742188, + "text": "short" + }, + { + "id": 2838, + "logprob": -0.23815918, + "text": "story" + }, + { + "id": 32002, + "logprob": -10.9765625, + "text": "" + }, + { + "id": 259, + "logprob": -20.34375, + "text": " " + }, + { + "id": 13, + "logprob": -8.53125, + "text": "\n" + }, + { + "id": 7226, + "logprob": -10.4765625, + "text": "Ass" + }, + { + "id": 11143, + "logprob": -13.6015625, + "text": "istant" + }, + { + "id": 28747, + "logprob": -0.008514404, + "text": ":" + } + ], + "seed": null, + "tokens": [ + { + "id": 330, + "logprob": -0.09289551, + "special": false, + "text": " A" + }, + { + "id": 13088, + "logprob": -0.6743164, + "special": false, + "text": " chicken" + }, + { + "id": 349, + "logprob": -0.31396484, + "special": false, + "text": " is" + }, + { + "id": 6398, + "logprob": -0.051727295, + "special": false, + "text": " sitting" + }, + { + "id": 356, + "logprob": -0.34448242, + "special": false, + "text": " on" + }, + { + "id": 264, + "logprob": -0.1194458, + "special": false, + "text": " a" + }, + { + "id": 17972, + "logprob": -0.03237915, + "special": false, + "text": " pile" + }, + { + "id": 302, + "logprob": -0.00018751621, + "special": false, + "text": " of" + }, + { + "id": 2445, + "logprob": -0.07043457, + "special": false, + "text": " money" + }, + { + "id": 28723, + "logprob": -0.00422287, + "special": false, + "text": "." + } + ], + "top_tokens": null + }, + "generated_text": " A chicken is sitting on a pile of money." + }, + { + "details": { + "best_of_sequences": null, + "finish_reason": "length", + "generated_tokens": 10, + "prefill": [ + { + "id": 1, + "logprob": null, + "text": "" + }, + { + "id": 1247, + "logprob": -5.2382812, + "text": "User" + }, + { + "id": 28747, + "logprob": -6.9492188, + "text": ":" + }, + { + "id": 32000, + "logprob": -16.234375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.21875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.84375, + "text": "" + }, { "id": 32001, "logprob": -23.25, @@ -102,7 +1876,7 @@ }, { "id": 32001, - "logprob": -21.015625, + "logprob": -21.03125, "text": "" }, { @@ -112,12 +1886,12 @@ }, { "id": 32001, - "logprob": -16.015625, + "logprob": -16.03125, "text": "" }, { "id": 32001, - "logprob": -19.0625, + "logprob": -19.046875, "text": "" }, { @@ -127,12 +1901,7 @@ }, { "id": 32001, - "logprob": -23.625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.40625, + "logprob": -23.609375, "text": "" }, { @@ -142,7 +1911,12 @@ }, { "id": 32001, - "logprob": -20.84375, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.875, "text": "" }, { @@ -152,12 +1926,12 @@ }, { "id": 32001, - "logprob": -19.984375, + "logprob": -19.96875, "text": "" }, { "id": 32001, - "logprob": -18.21875, + "logprob": -18.234375, "text": "" }, { @@ -167,7 +1941,7 @@ }, { "id": 32001, - "logprob": -21.203125, + "logprob": -21.1875, "text": "" }, { @@ -182,7 +1956,7 @@ }, { "id": 32001, - "logprob": -18.984375, + "logprob": -19.03125, "text": "" }, { @@ -197,17 +1971,17 @@ }, { "id": 32001, - "logprob": -18.0, + "logprob": -17.96875, "text": "" }, { "id": 32001, - "logprob": -18.828125, + "logprob": -18.859375, "text": "" }, { "id": 32001, - "logprob": -17.9375, + "logprob": -17.921875, "text": "" }, { @@ -217,12 +1991,12 @@ }, { "id": 32001, - "logprob": -18.640625, + "logprob": -18.65625, "text": "" }, { "id": 32001, - "logprob": -20.125, + "logprob": -20.140625, "text": "" }, { @@ -247,7 +2021,7 @@ }, { "id": 32001, - "logprob": -17.4375, + "logprob": -17.421875, "text": "" }, { @@ -257,7 +2031,7 @@ }, { "id": 32001, - "logprob": -23.015625, + "logprob": -23.0, "text": "" }, { @@ -282,7 +2056,7 @@ }, { "id": 32001, - "logprob": -18.40625, + "logprob": -18.421875, "text": "" }, { @@ -292,17 +2066,17 @@ }, { "id": 32001, - "logprob": -18.34375, + "logprob": -18.328125, "text": "" }, { "id": 32001, - "logprob": -17.140625, + "logprob": -17.125, "text": "" }, { "id": 32001, - "logprob": -18.671875, + "logprob": -18.65625, "text": "" }, { @@ -317,7 +2091,7 @@ }, { "id": 32001, - "logprob": -18.1875, + "logprob": -18.15625, "text": "" }, { @@ -337,12 +2111,7 @@ }, { "id": 32001, - "logprob": -18.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.9375, + "logprob": -18.703125, "text": "" }, { @@ -351,883 +2120,38 @@ "text": "" }, { - "id": 32001, - "logprob": -19.125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.25, - "text": "" - }, - { - "id": 32001, - "logprob": -17.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -15.828125, - "text": "" - }, - { - "id": 32001, - "logprob": -16.375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.03125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.5, - "text": "" - }, - { - "id": 32001, - "logprob": -15.4140625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.109375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.7265625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.5625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -14.2421875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.0, - "text": "" - }, - { - "id": 32001, - "logprob": -18.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.578125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8671875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -14.8515625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.203125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.5, - "text": "" - }, - { - "id": 32001, - "logprob": -18.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -16.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.109375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.25, - "text": "" - }, - { - "id": 32001, - "logprob": -20.25, - "text": "" - }, - { - "id": 32001, - "logprob": -20.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.5, - "text": "" - }, - { - "id": 32001, - "logprob": -20.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.9453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.03125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.703125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.34375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.203125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.6875, - "text": "" - }, - { - "id": 32001, - "logprob": -22.625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.5625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.75, - "text": "" - }, - { - "id": 32001, - "logprob": -21.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.828125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.75, - "text": "" - }, - { - "id": 32001, - "logprob": -18.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -15.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.859375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.375, - "text": "" + "id": 32000, + "logprob": -3.015625, + "text": "" }, { "id": 32001, - "logprob": -20.140625, + "logprob": -22.109375, "text": "" }, { "id": 32001, - "logprob": -21.140625, + "logprob": -18.96875, "text": "" }, { "id": 32001, - "logprob": -21.6875, + "logprob": -20.125, "text": "" }, { "id": 32001, - "logprob": -21.453125, + "logprob": -17.125, "text": "" }, { "id": 32001, - "logprob": -19.171875, + "logprob": -17.8125, "text": "" }, { "id": 32001, - "logprob": -17.78125, + "logprob": -19.3125, "text": "" }, { @@ -1237,157 +2161,27 @@ }, { "id": 32001, - "logprob": -17.078125, + "logprob": -16.3125, "text": "" }, { "id": 32001, - "logprob": -17.109375, + "logprob": -19.375, "text": "" }, { "id": 32001, - "logprob": -19.171875, + "logprob": -20.046875, "text": "" }, { "id": 32001, - "logprob": -20.453125, + "logprob": -20.828125, "text": "" }, { "id": 32001, - "logprob": -21.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.75, - "text": "" - }, - { - "id": 32001, - "logprob": -18.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.859375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8828125, - "text": "" - }, - { - "id": 32001, - "logprob": -15.1171875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.0, - "text": "" - }, - { - "id": 32001, - "logprob": -20.75, + "logprob": -15.8046875, "text": "" }, { @@ -1397,7 +2191,12 @@ }, { "id": 32001, - "logprob": -19.46875, + "logprob": -19.953125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.875, "text": "" }, { @@ -1407,22 +2206,297 @@ }, { "id": 32001, - "logprob": -22.421875, + "logprob": -20.515625, "text": "" }, { "id": 32001, - "logprob": -20.9375, + "logprob": -19.171875, "text": "" }, { "id": 32001, - "logprob": -19.671875, + "logprob": -19.296875, "text": "" }, { "id": 32001, - "logprob": -20.890625, + "logprob": -16.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.2734375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.859375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.15625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.546875, + "text": "" + }, + { + "id": 32001, + "logprob": -14.1953125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.0, + "text": "" + }, + { + "id": 32001, + "logprob": -20.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -15.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -14.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.21875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32000, + "logprob": -3.2988281, + "text": "" + }, + { + "id": 32001, + "logprob": -25.75, + "text": "" + }, + { + "id": 32001, + "logprob": -18.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.65625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.203125, "text": "" }, { @@ -1432,12 +2506,732 @@ }, { "id": 32001, - "logprob": -17.5, + "logprob": -15.75, "text": "" }, { "id": 32001, - "logprob": -17.90625, + "logprob": -16.375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.25, + "text": "" + }, + { + "id": 32001, + "logprob": -16.5625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -15.953125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.078125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.953125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.4453125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.21875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.9375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.234375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.25, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.5625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.0, + "text": "" + }, + { + "id": 32000, + "logprob": -2.7207031, + "text": "" + }, + { + "id": 32001, + "logprob": -23.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -22.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.484375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.390625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.078125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.28125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.5, + "text": "" + }, + { + "id": 32001, + "logprob": -21.5, + "text": "" + }, + { + "id": 32001, + "logprob": -19.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.609375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.9375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.0, + "text": "" + }, + { + "id": 32001, + "logprob": -17.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.6640625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.578125, + "text": "" + }, + { + "id": 32000, + "logprob": -3.0917969, + "text": "" + }, + { + "id": 32001, + "logprob": -25.375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.1328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.5, + "text": "" + }, + { + "id": 32001, + "logprob": -21.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -22.515625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.0, + "text": "" + }, + { + "id": 32001, + "logprob": -16.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, "text": "" }, { @@ -1452,37 +3246,37 @@ }, { "id": 32001, - "logprob": -16.40625, + "logprob": -16.375, "text": "" }, { "id": 32001, - "logprob": -18.453125, + "logprob": -18.4375, "text": "" }, { "id": 32001, - "logprob": -20.234375, + "logprob": -20.265625, "text": "" }, { "id": 32001, - "logprob": -22.28125, + "logprob": -22.296875, "text": "" }, { "id": 32001, - "logprob": -18.515625, + "logprob": -18.484375, "text": "" }, { "id": 32001, - "logprob": -15.4296875, + "logprob": -15.390625, "text": "" }, { "id": 32001, - "logprob": -19.765625, + "logprob": -19.75, "text": "" }, { @@ -1492,32 +3286,32 @@ }, { "id": 32001, - "logprob": -21.46875, + "logprob": -21.609375, "text": "" }, { "id": 32001, - "logprob": -18.875, + "logprob": -18.828125, "text": "" }, { "id": 32001, - "logprob": -20.859375, + "logprob": -20.828125, "text": "" }, { "id": 32001, - "logprob": -17.078125, + "logprob": -17.015625, "text": "" }, { "id": 32001, - "logprob": -16.4375, + "logprob": -16.40625, "text": "" }, { "id": 32001, - "logprob": -21.015625, + "logprob": -21.046875, "text": "" }, { @@ -1532,22 +3326,22 @@ }, { "id": 32001, - "logprob": -21.484375, + "logprob": -21.515625, "text": "" }, { "id": 32001, - "logprob": -20.015625, + "logprob": -20.0, "text": "" }, { "id": 32001, - "logprob": -18.84375, + "logprob": -18.78125, "text": "" }, { "id": 32001, - "logprob": -16.40625, + "logprob": -16.375, "text": "" }, { @@ -1557,57 +3351,57 @@ }, { "id": 32001, - "logprob": -16.65625, + "logprob": -16.703125, "text": "" }, { "id": 32001, - "logprob": -13.6328125, + "logprob": -13.625, "text": "" }, { "id": 32001, - "logprob": -15.4140625, + "logprob": -15.375, "text": "" }, { "id": 32001, - "logprob": -17.546875, + "logprob": -17.515625, "text": "" }, { "id": 32001, - "logprob": -21.859375, + "logprob": -21.921875, "text": "" }, { "id": 32001, - "logprob": -15.65625, + "logprob": -15.640625, "text": "" }, { "id": 32001, - "logprob": -16.484375, + "logprob": -16.46875, "text": "" }, { "id": 32001, - "logprob": -16.359375, + "logprob": -16.421875, "text": "" }, { "id": 32001, - "logprob": -19.9375, + "logprob": -19.890625, "text": "" }, { "id": 32001, - "logprob": -17.875, + "logprob": -17.890625, "text": "" }, { "id": 32001, - "logprob": -17.453125, + "logprob": -17.40625, "text": "" }, { @@ -1617,72 +3411,72 @@ }, { "id": 32001, - "logprob": -19.171875, + "logprob": -19.1875, "text": "" }, { "id": 32001, - "logprob": -15.9921875, + "logprob": -15.9609375, "text": "" }, { "id": 32000, - "logprob": -2.0429688, + "logprob": -2.0332031, "text": "" }, { "id": 12018, - "logprob": -12.03125, + "logprob": -12.078125, "text": "Write" }, { "id": 528, - "logprob": -10.25, + "logprob": -10.109375, "text": "me" }, { "id": 264, - "logprob": -0.10437012, + "logprob": -0.103515625, "text": "a" }, { "id": 2485, - "logprob": -4.5742188, + "logprob": -4.5664062, "text": "short" }, { "id": 2838, - "logprob": -0.2277832, + "logprob": -0.23864746, "text": "story" }, { "id": 32002, - "logprob": -10.84375, + "logprob": -10.9609375, "text": "" }, { "id": 259, - "logprob": -20.1875, + "logprob": -20.34375, "text": " " }, { "id": 13, - "logprob": -8.7578125, + "logprob": -8.5546875, "text": "\n" }, { "id": 7226, - "logprob": -10.421875, + "logprob": -10.484375, "text": "Ass" }, { "id": 11143, - "logprob": -13.640625, + "logprob": -13.6015625, "text": "istant" }, { "id": 28747, - "logprob": -0.005619049, + "logprob": -0.008308411, "text": ":" } ], @@ -1690,61 +3484,61 @@ "tokens": [ { "id": 330, - "logprob": -0.12939453, + "logprob": -0.09448242, "special": false, "text": " A" }, { "id": 13088, - "logprob": -0.6660156, + "logprob": -0.6743164, "special": false, "text": " chicken" }, { "id": 349, - "logprob": -0.29638672, + "logprob": -0.31201172, "special": false, "text": " is" }, { "id": 6398, - "logprob": -0.05960083, + "logprob": -0.051635742, "special": false, "text": " sitting" }, { "id": 356, - "logprob": -0.26953125, + "logprob": -0.34033203, "special": false, "text": " on" }, { "id": 264, - "logprob": -0.1427002, + "logprob": -0.1194458, "special": false, "text": " a" }, { "id": 17972, - "logprob": -0.040649414, + "logprob": -0.032562256, "special": false, "text": " pile" }, { "id": 302, - "logprob": -0.0002708435, + "logprob": -0.00018763542, "special": false, "text": " of" }, { "id": 2445, - "logprob": -0.09429932, + "logprob": -0.07122803, "special": false, "text": " money" }, { "id": 28723, - "logprob": -0.006931305, + "logprob": -0.0041007996, "special": false, "text": "." } @@ -1766,12 +3560,12 @@ }, { "id": 1247, - "logprob": -5.234375, + "logprob": -5.2382812, "text": "User" }, { "id": 28747, - "logprob": -6.9648438, + "logprob": -6.9492188, "text": ":" }, { @@ -1781,12 +3575,12 @@ }, { "id": 32001, - "logprob": -18.96875, + "logprob": -18.984375, "text": "" }, { "id": 32001, - "logprob": -18.1875, + "logprob": -18.171875, "text": "" }, { @@ -1811,7 +3605,7 @@ }, { "id": 32001, - "logprob": -20.234375, + "logprob": -20.21875, "text": "" }, { @@ -1821,7 +3615,7 @@ }, { "id": 32001, - "logprob": -19.828125, + "logprob": -19.84375, "text": "" }, { @@ -1856,22 +3650,22 @@ }, { "id": 32001, - "logprob": -21.015625, + "logprob": -21.03125, "text": "" }, { "id": 32001, - "logprob": -20.4375, + "logprob": -20.421875, "text": "" }, { "id": 32001, - "logprob": -16.015625, + "logprob": -16.03125, "text": "" }, { "id": 32001, - "logprob": -19.0625, + "logprob": -19.046875, "text": "" }, { @@ -1886,7 +3680,7 @@ }, { "id": 32001, - "logprob": -20.40625, + "logprob": -20.421875, "text": "" }, { @@ -1896,7 +3690,7 @@ }, { "id": 32001, - "logprob": -20.84375, + "logprob": -20.875, "text": "" }, { @@ -1906,12 +3700,12 @@ }, { "id": 32001, - "logprob": -19.984375, + "logprob": -19.96875, "text": "" }, { "id": 32001, - "logprob": -18.21875, + "logprob": -18.234375, "text": "" }, { @@ -1921,7 +3715,7 @@ }, { "id": 32001, - "logprob": -21.203125, + "logprob": -21.1875, "text": "" }, { @@ -1936,7 +3730,7 @@ }, { "id": 32001, - "logprob": -18.984375, + "logprob": -19.03125, "text": "" }, { @@ -1951,17 +3745,17 @@ }, { "id": 32001, - "logprob": -18.0, + "logprob": -17.96875, "text": "" }, { "id": 32001, - "logprob": -18.828125, + "logprob": -18.859375, "text": "" }, { "id": 32001, - "logprob": -17.9375, + "logprob": -17.921875, "text": "" }, { @@ -1971,12 +3765,12 @@ }, { "id": 32001, - "logprob": -18.640625, + "logprob": -18.65625, "text": "" }, { "id": 32001, - "logprob": -20.125, + "logprob": -20.140625, "text": "" }, { @@ -1996,12 +3790,12 @@ }, { "id": 32001, - "logprob": -23.203125, + "logprob": -23.21875, "text": "" }, { "id": 32001, - "logprob": -17.4375, + "logprob": -17.421875, "text": "" }, { @@ -2011,7 +3805,7 @@ }, { "id": 32001, - "logprob": -23.015625, + "logprob": -23.0, "text": "" }, { @@ -2036,7 +3830,7 @@ }, { "id": 32001, - "logprob": -18.40625, + "logprob": -18.421875, "text": "" }, { @@ -2046,7 +3840,7 @@ }, { "id": 32001, - "logprob": -18.34375, + "logprob": -18.328125, "text": "" }, { @@ -2056,7 +3850,7 @@ }, { "id": 32001, - "logprob": -18.671875, + "logprob": -18.65625, "text": "" }, { @@ -2071,7 +3865,7 @@ }, { "id": 32001, - "logprob": -18.1875, + "logprob": -18.15625, "text": "" }, { @@ -2081,7 +3875,7 @@ }, { "id": 32001, - "logprob": -20.140625, + "logprob": -20.15625, "text": "" }, { @@ -2089,1643 +3883,29 @@ "logprob": -18.96875, "text": "" }, - { - "id": 32001, - "logprob": -18.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.25, - "text": "" - }, - { - "id": 32001, - "logprob": -17.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -15.828125, - "text": "" - }, - { - "id": 32001, - "logprob": -16.375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.03125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.5, - "text": "" - }, - { - "id": 32001, - "logprob": -15.4140625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.109375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.7265625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.5625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -14.2421875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.0, - "text": "" - }, - { - "id": 32001, - "logprob": -18.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.578125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8671875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -14.8515625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.203125, - "text": "" - }, { "id": 32001, "logprob": -18.703125, "text": "" }, - { - "id": 32001, - "logprob": -19.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.5, - "text": "" - }, - { - "id": 32001, - "logprob": -18.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -16.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.109375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.25, - "text": "" - }, - { - "id": 32001, - "logprob": -20.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.5, - "text": "" - }, - { - "id": 32001, - "logprob": -20.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.9453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.03125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.703125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.34375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.203125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.6875, - "text": "" - }, - { - "id": 32001, - "logprob": -22.625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.5625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.75, - "text": "" - }, - { - "id": 32001, - "logprob": -21.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.828125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.75, - "text": "" - }, - { - "id": 32001, - "logprob": -18.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -15.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.140625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.140625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.703125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.109375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.75, - "text": "" - }, - { - "id": 32001, - "logprob": -18.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.859375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -15.875, - "text": "" - }, - { - "id": 32001, - "logprob": -15.1171875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.0, - "text": "" - }, - { - "id": 32001, - "logprob": -20.75, - "text": "" - }, - { - "id": 32001, - "logprob": -16.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -22.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.5, - "text": "" - }, - { - "id": 32001, - "logprob": -17.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -22.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.75, - "text": "" - }, - { - "id": 32001, - "logprob": -16.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -22.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -15.4296875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -14.6484375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.859375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -16.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -13.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -15.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.875, - "text": "" - }, - { - "id": 32001, - "logprob": -15.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -15.9921875, - "text": "" - }, - { - "id": 32000, - "logprob": -2.0429688, - "text": "" - }, - { - "id": 12018, - "logprob": -12.03125, - "text": "Write" - }, - { - "id": 528, - "logprob": -10.2578125, - "text": "me" - }, - { - "id": 264, - "logprob": -0.10418701, - "text": "a" - }, - { - "id": 2485, - "logprob": -4.5664062, - "text": "short" - }, - { - "id": 2838, - "logprob": -0.22741699, - "text": "story" - }, - { - "id": 32002, - "logprob": -10.8515625, - "text": "" - }, - { - "id": 259, - "logprob": -20.203125, - "text": " " - }, - { - "id": 13, - "logprob": -8.7421875, - "text": "\n" - }, - { - "id": 7226, - "logprob": -10.4140625, - "text": "Ass" - }, - { - "id": 11143, - "logprob": -13.6328125, - "text": "istant" - }, - { - "id": 28747, - "logprob": -0.005580902, - "text": ":" - } - ], - "seed": null, - "tokens": [ - { - "id": 330, - "logprob": -0.1295166, - "special": false, - "text": " A" - }, - { - "id": 13088, - "logprob": -0.6669922, - "special": false, - "text": " chicken" - }, - { - "id": 349, - "logprob": -0.29711914, - "special": false, - "text": " is" - }, - { - "id": 6398, - "logprob": -0.059936523, - "special": false, - "text": " sitting" - }, - { - "id": 356, - "logprob": -0.27124023, - "special": false, - "text": " on" - }, - { - "id": 264, - "logprob": -0.140625, - "special": false, - "text": " a" - }, - { - "id": 17972, - "logprob": -0.04058838, - "special": false, - "text": " pile" - }, - { - "id": 302, - "logprob": -0.00027012825, - "special": false, - "text": " of" - }, - { - "id": 2445, - "logprob": -0.09503174, - "special": false, - "text": " money" - }, - { - "id": 28723, - "logprob": -0.006942749, - "special": false, - "text": "." - } - ], - "top_tokens": null - }, - "generated_text": " A chicken is sitting on a pile of money." - }, - { - "details": { - "best_of_sequences": null, - "finish_reason": "length", - "generated_tokens": 10, - "prefill": [ - { - "id": 1, - "logprob": null, - "text": "" - }, - { - "id": 1247, - "logprob": -5.2460938, - "text": "User" - }, - { - "id": 28747, - "logprob": -6.9570312, - "text": ":" - }, - { - "id": 32000, - "logprob": -16.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.578125, - "text": "" - }, - { - "id": 32001, - "logprob": -16.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -23.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -15.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.34375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -22.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -23.625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.5, - "text": "" - }, - { - "id": 32001, - "logprob": -19.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -23.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.53125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.328125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.0, - "text": "" - }, - { - "id": 32001, - "logprob": -18.84375, - "text": "" - }, { "id": 32001, "logprob": -17.921875, "text": "" }, + { + "id": 32000, + "logprob": -3.015625, + "text": "" + }, { "id": 32001, - "logprob": -19.1875, + "logprob": -22.109375, "text": "" }, { "id": 32001, - "logprob": -18.640625, + "logprob": -18.96875, "text": "" }, { @@ -3733,76 +3913,6 @@ "logprob": -20.125, "text": "" }, - { - "id": 32001, - "logprob": -19.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -14.8828125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -23.203125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -23.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -23.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.75, - "text": "" - }, - { - "id": 32001, - "logprob": -17.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.578125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.34375, - "text": "" - }, { "id": 32001, "logprob": -17.125, @@ -3810,932 +3920,12 @@ }, { "id": 32001, - "logprob": -18.671875, + "logprob": -17.8125, "text": "" }, { "id": 32001, - "logprob": -18.875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.0, - "text": "" - }, - { - "id": 32001, - "logprob": -18.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.140625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.25, - "text": "" - }, - { - "id": 32001, - "logprob": -17.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8359375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.03125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.5, - "text": "" - }, - { - "id": 32001, - "logprob": -15.4140625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.109375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.7265625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.5625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -14.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.0, - "text": "" - }, - { - "id": 32001, - "logprob": -18.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.578125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8671875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -14.8515625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.203125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.0, - "text": "" - }, - { - "id": 32001, - "logprob": -17.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.5, - "text": "" - }, - { - "id": 32001, - "logprob": -18.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -16.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.109375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.25, - "text": "" - }, - { - "id": 32001, - "logprob": -20.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.34375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.9453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.03125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.703125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.34375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.6875, - "text": "" - }, - { - "id": 32001, - "logprob": -22.625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.5625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.859375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.828125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.75, - "text": "" - }, - { - "id": 32001, - "logprob": -18.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -15.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.859375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.140625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.140625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.703125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.765625, + "logprob": -19.3125, "text": "" }, { @@ -4743,1385 +3933,11 @@ "logprob": -19.65625, "text": "" }, - { - "id": 32001, - "logprob": -17.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.109375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.75, - "text": "" - }, - { - "id": 32001, - "logprob": -18.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.859375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -15.875, - "text": "" - }, - { - "id": 32001, - "logprob": -15.1171875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.0, - "text": "" - }, - { - "id": 32001, - "logprob": -20.75, - "text": "" - }, - { - "id": 32001, - "logprob": -16.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -22.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.5, - "text": "" - }, - { - "id": 32001, - "logprob": -17.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -22.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.75, - "text": "" - }, - { - "id": 32001, - "logprob": -16.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -22.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.53125, - "text": "" - }, - { - "id": 32001, - "logprob": -15.4296875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -14.6484375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.859375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -16.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.0, - "text": "" - }, - { - "id": 32001, - "logprob": -21.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.140625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.890625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -13.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -15.4140625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.859375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -15.9921875, - "text": "" - }, - { - "id": 32000, - "logprob": -2.0429688, - "text": "" - }, - { - "id": 12018, - "logprob": -12.0390625, - "text": "Write" - }, - { - "id": 528, - "logprob": -10.25, - "text": "me" - }, - { - "id": 264, - "logprob": -0.10443115, - "text": "a" - }, - { - "id": 2485, - "logprob": -4.5742188, - "text": "short" - }, - { - "id": 2838, - "logprob": -0.22729492, - "text": "story" - }, - { - "id": 32002, - "logprob": -10.84375, - "text": "" - }, - { - "id": 259, - "logprob": -20.1875, - "text": " " - }, - { - "id": 13, - "logprob": -8.7578125, - "text": "\n" - }, - { - "id": 7226, - "logprob": -10.4140625, - "text": "Ass" - }, - { - "id": 11143, - "logprob": -13.6328125, - "text": "istant" - }, - { - "id": 28747, - "logprob": -0.0056533813, - "text": ":" - } - ], - "seed": null, - "tokens": [ - { - "id": 330, - "logprob": -0.12963867, - "special": false, - "text": " A" - }, - { - "id": 13088, - "logprob": -0.6660156, - "special": false, - "text": " chicken" - }, - { - "id": 349, - "logprob": -0.29516602, - "special": false, - "text": " is" - }, - { - "id": 6398, - "logprob": -0.060028076, - "special": false, - "text": " sitting" - }, - { - "id": 356, - "logprob": -0.27075195, - "special": false, - "text": " on" - }, - { - "id": 264, - "logprob": -0.1427002, - "special": false, - "text": " a" - }, - { - "id": 17972, - "logprob": -0.04067993, - "special": false, - "text": " pile" - }, - { - "id": 302, - "logprob": -0.000269413, - "special": false, - "text": " of" - }, - { - "id": 2445, - "logprob": -0.09387207, - "special": false, - "text": " money" - }, - { - "id": 28723, - "logprob": -0.0069236755, - "special": false, - "text": "." - } - ], - "top_tokens": null - }, - "generated_text": " A chicken is sitting on a pile of money." - }, - { - "details": { - "best_of_sequences": null, - "finish_reason": "length", - "generated_tokens": 10, - "prefill": [ - { - "id": 1, - "logprob": null, - "text": "" - }, - { - "id": 1247, - "logprob": -5.2421875, - "text": "User" - }, - { - "id": 28747, - "logprob": -6.9570312, - "text": ":" - }, - { - "id": 32000, - "logprob": -16.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.578125, - "text": "" - }, - { - "id": 32001, - "logprob": -16.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.25, - "text": "" - }, - { - "id": 32001, - "logprob": -16.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -23.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -15.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.34375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -22.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -23.625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.5, - "text": "" - }, - { - "id": 32001, - "logprob": -19.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -23.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.203125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.53125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.328125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.0, - "text": "" - }, - { - "id": 32001, - "logprob": -18.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -14.8828125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -23.203125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -23.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -23.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.75, - "text": "" - }, - { - "id": 32001, - "logprob": -17.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.578125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.34375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.140625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.0, - "text": "" - }, - { - "id": 32001, - "logprob": -18.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.25, - "text": "" - }, - { - "id": 32001, - "logprob": -17.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.921875, - "text": "" - }, { "id": 32001, "logprob": -16.3125, "text": "" }, - { - "id": 32001, - "logprob": -19.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.953125, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8359375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.03125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.96875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.5, - "text": "" - }, - { - "id": 32001, - "logprob": -15.4140625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.109375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.7265625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.5625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -14.2421875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.671875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.578125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.25, - "text": "" - }, - { - "id": 32001, - "logprob": -17.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8671875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.640625, - "text": "" - }, - { - "id": 32001, - "logprob": -14.8515625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.25, - "text": "" - }, - { - "id": 32001, - "logprob": -19.203125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.71875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.5, - "text": "" - }, - { - "id": 32001, - "logprob": -18.296875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -16.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.515625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.25, - "text": "" - }, - { - "id": 32001, - "logprob": -20.25, - "text": "" - }, - { - "id": 32001, - "logprob": -20.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.609375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.90625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.5, - "text": "" - }, - { - "id": 32001, - "logprob": -20.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.546875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.484375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.265625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -15.9453125, - "text": "" - }, - { - "id": 32001, - "logprob": -21.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.515625, - "text": "" - }, { "id": 32001, "logprob": -19.375, @@ -6129,152 +3945,27 @@ }, { "id": 32001, - "logprob": -17.796875, + "logprob": -20.046875, "text": "" }, { "id": 32001, - "logprob": -16.03125, + "logprob": -20.828125, "text": "" }, { "id": 32001, - "logprob": -18.671875, + "logprob": -15.8046875, "text": "" }, { "id": 32001, - "logprob": -20.15625, + "logprob": -16.25, "text": "" }, { "id": 32001, - "logprob": -20.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.84375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.78125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.234375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.9375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.703125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.15625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.203125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.6875, - "text": "" - }, - { - "id": 32001, - "logprob": -22.625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -18.46875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.546875, + "logprob": -19.953125, "text": "" }, { @@ -6284,37 +3975,42 @@ }, { "id": 32001, - "logprob": -16.453125, + "logprob": -21.59375, "text": "" }, { "id": 32001, - "logprob": -21.09375, + "logprob": -20.515625, "text": "" }, { "id": 32001, - "logprob": -19.5625, + "logprob": -19.171875, "text": "" }, { "id": 32001, - "logprob": -19.15625, + "logprob": -19.296875, "text": "" }, { "id": 32001, - "logprob": -16.171875, + "logprob": -16.71875, "text": "" }, { "id": 32001, - "logprob": -17.671875, + "logprob": -20.46875, "text": "" }, { "id": 32001, - "logprob": -18.859375, + "logprob": -21.125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.40625, "text": "" }, { @@ -6324,37 +4020,77 @@ }, { "id": 32001, - "logprob": -21.8125, + "logprob": -17.765625, "text": "" }, { "id": 32001, - "logprob": -19.96875, + "logprob": -20.328125, "text": "" }, { "id": 32001, - "logprob": -19.046875, + "logprob": -15.2734375, "text": "" }, { "id": 32001, - "logprob": -19.78125, + "logprob": -18.84375, "text": "" }, { "id": 32001, - "logprob": -19.421875, + "logprob": -17.875, "text": "" }, { "id": 32001, - "logprob": -21.21875, + "logprob": -15.578125, "text": "" }, { "id": 32001, - "logprob": -21.515625, + "logprob": -18.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.859375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.15625, "text": "" }, { @@ -6364,37 +4100,12 @@ }, { "id": 32001, - "logprob": -20.734375, + "logprob": -19.546875, "text": "" }, { "id": 32001, - "logprob": -19.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -19.828125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.359375, - "text": "" - }, - { - "id": 32001, - "logprob": -17.75, + "logprob": -14.1953125, "text": "" }, { @@ -6404,182 +4115,42 @@ }, { "id": 32001, - "logprob": -18.765625, + "logprob": -18.1875, "text": "" }, { "id": 32001, - "logprob": -20.453125, + "logprob": -17.421875, "text": "" }, { "id": 32001, - "logprob": -19.890625, + "logprob": -20.421875, "text": "" }, { "id": 32001, - "logprob": -16.015625, + "logprob": -20.0, "text": "" }, { "id": 32001, - "logprob": -18.90625, + "logprob": -20.359375, "text": "" }, { "id": 32001, - "logprob": -15.953125, + "logprob": -18.03125, "text": "" }, { "id": 32001, - "logprob": -21.46875, + "logprob": -17.203125, "text": "" }, { "id": 32001, - "logprob": -19.984375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.875, - "text": "" - }, - { - "id": 32001, - "logprob": -18.859375, - "text": "" - }, - { - "id": 32001, - "logprob": -16.046875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.140625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.140625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.6875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.453125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.1875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.765625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.65625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -17.109375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.171875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.4375, - "text": "" - }, - { - "id": 32001, - "logprob": -21.0625, - "text": "" - }, - { - "id": 32001, - "logprob": -16.734375, - "text": "" - }, - { - "id": 32001, - "logprob": -19.21875, - "text": "" - }, - { - "id": 32001, - "logprob": -16.421875, - "text": "" - }, - { - "id": 32001, - "logprob": -20.015625, - "text": "" - }, - { - "id": 32001, - "logprob": -17.796875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.3125, - "text": "" - }, - { - "id": 32001, - "logprob": -20.390625, - "text": "" - }, - { - "id": 32001, - "logprob": -19.28125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.59375, - "text": "" - }, - { - "id": 32001, - "logprob": -18.8125, - "text": "" - }, - { - "id": 32001, - "logprob": -19.09375, - "text": "" - }, - { - "id": 32001, - "logprob": -20.890625, + "logprob": -16.84375, "text": "" }, { @@ -6589,72 +4160,32 @@ }, { "id": 32001, - "logprob": -18.75, + "logprob": -15.71875, "text": "" }, { "id": 32001, - "logprob": -18.90625, + "logprob": -18.203125, "text": "" }, { "id": 32001, - "logprob": -21.375, + "logprob": -18.4375, "text": "" }, { "id": 32001, - "logprob": -16.640625, + "logprob": -18.46875, "text": "" }, { "id": 32001, - "logprob": -20.859375, + "logprob": -17.3125, "text": "" }, { "id": 32001, - "logprob": -21.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -15.875, - "text": "" - }, - { - "id": 32001, - "logprob": -15.1171875, - "text": "" - }, - { - "id": 32001, - "logprob": -17.078125, - "text": "" - }, - { - "id": 32001, - "logprob": -18.921875, - "text": "" - }, - { - "id": 32001, - "logprob": -21.40625, - "text": "" - }, - { - "id": 32001, - "logprob": -21.0, - "text": "" - }, - { - "id": 32001, - "logprob": -20.75, - "text": "" - }, - { - "id": 32001, - "logprob": -16.25, + "logprob": -16.265625, "text": "" }, { @@ -6664,37 +4195,47 @@ }, { "id": 32001, - "logprob": -21.59375, + "logprob": -14.734375, "text": "" }, { "id": 32001, - "logprob": -22.421875, + "logprob": -20.6875, "text": "" }, { "id": 32001, - "logprob": -20.9375, + "logprob": -20.21875, "text": "" }, { "id": 32001, - "logprob": -19.671875, + "logprob": -18.359375, "text": "" }, { "id": 32001, - "logprob": -20.890625, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32000, + "logprob": -3.2988281, + "text": "" + }, + { + "id": 32001, + "logprob": -25.75, "text": "" }, { "id": 32001, - "logprob": -16.921875, + "logprob": -18.421875, "text": "" }, { "id": 32001, - "logprob": -17.5, + "logprob": -19.265625, "text": "" }, { @@ -6704,42 +4245,77 @@ }, { "id": 32001, - "logprob": -22.1875, + "logprob": -17.203125, "text": "" }, { "id": 32001, - "logprob": -18.734375, + "logprob": -20.140625, "text": "" }, { "id": 32001, - "logprob": -16.40625, + "logprob": -17.96875, "text": "" }, { "id": 32001, - "logprob": -18.453125, + "logprob": -16.453125, "text": "" }, { "id": 32001, - "logprob": -20.234375, + "logprob": -19.65625, "text": "" }, { "id": 32001, - "logprob": -22.28125, + "logprob": -18.203125, "text": "" }, { "id": 32001, - "logprob": -18.515625, + "logprob": -16.921875, "text": "" }, { "id": 32001, - "logprob": -15.4296875, + "logprob": -15.75, + "text": "" + }, + { + "id": 32001, + "logprob": -16.375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.25, + "text": "" + }, + { + "id": 32001, + "logprob": -16.5625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, "text": "" }, { @@ -6749,27 +4325,187 @@ }, { "id": 32001, - "logprob": -14.6484375, + "logprob": -19.890625, "text": "" }, { "id": 32001, - "logprob": -21.46875, + "logprob": -20.421875, "text": "" }, { "id": 32001, - "logprob": -18.875, + "logprob": -19.34375, "text": "" }, { "id": 32001, - "logprob": -20.859375, + "logprob": -20.140625, "text": "" }, { "id": 32001, - "logprob": -17.078125, + "logprob": -19.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -15.953125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.078125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.953125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.4453125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.21875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.9375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.234375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.25, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.703125, "text": "" }, { @@ -6777,11 +4513,581 @@ "logprob": -16.4375, "text": "" }, + { + "id": 32001, + "logprob": -19.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.5625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.0, + "text": "" + }, + { + "id": 32000, + "logprob": -2.7207031, + "text": "" + }, + { + "id": 32001, + "logprob": -23.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -22.203125, + "text": "" + }, { "id": 32001, "logprob": -21.015625, "text": "" }, + { + "id": 32001, + "logprob": -18.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.484375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.390625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.078125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.28125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.5, + "text": "" + }, + { + "id": 32001, + "logprob": -21.5, + "text": "" + }, + { + "id": 32001, + "logprob": -19.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.609375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.9375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.0, + "text": "" + }, + { + "id": 32001, + "logprob": -17.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.6640625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.578125, + "text": "" + }, + { + "id": 32000, + "logprob": -3.0917969, + "text": "" + }, + { + "id": 32001, + "logprob": -25.375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.1328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.5, + "text": "" + }, + { + "id": 32001, + "logprob": -21.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -22.515625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.0, + "text": "" + }, + { + "id": 32001, + "logprob": -16.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -22.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.75, + "text": "" + }, + { + "id": 32001, + "logprob": -16.375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -22.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.484375, + "text": "" + }, + { + "id": 32001, + "logprob": -15.390625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.75, + "text": "" + }, + { + "id": 32001, + "logprob": -14.6484375, + "text": "" + }, + { + "id": 32001, + "logprob": -21.609375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.046875, + "text": "" + }, { "id": 32001, "logprob": -21.234375, @@ -6794,22 +5100,22 @@ }, { "id": 32001, - "logprob": -21.484375, + "logprob": -21.515625, "text": "" }, { "id": 32001, - "logprob": -20.015625, + "logprob": -20.0, "text": "" }, { "id": 32001, - "logprob": -18.84375, + "logprob": -18.78125, "text": "" }, { "id": 32001, - "logprob": -16.421875, + "logprob": -16.375, "text": "" }, { @@ -6819,57 +5125,57 @@ }, { "id": 32001, - "logprob": -16.65625, + "logprob": -16.703125, "text": "" }, { "id": 32001, - "logprob": -13.640625, + "logprob": -13.625, "text": "" }, { "id": 32001, - "logprob": -15.4140625, + "logprob": -15.375, "text": "" }, { "id": 32001, - "logprob": -17.546875, + "logprob": -17.515625, "text": "" }, { "id": 32001, - "logprob": -21.859375, + "logprob": -21.921875, "text": "" }, { "id": 32001, - "logprob": -15.65625, + "logprob": -15.640625, "text": "" }, { "id": 32001, - "logprob": -16.484375, + "logprob": -16.46875, "text": "" }, { "id": 32001, - "logprob": -16.359375, + "logprob": -16.421875, "text": "" }, { "id": 32001, - "logprob": -19.9375, + "logprob": -19.890625, "text": "" }, { "id": 32001, - "logprob": -17.875, + "logprob": -17.890625, "text": "" }, { "id": 32001, - "logprob": -17.453125, + "logprob": -17.40625, "text": "" }, { @@ -6879,72 +5185,72 @@ }, { "id": 32001, - "logprob": -19.171875, + "logprob": -19.1875, "text": "" }, { "id": 32001, - "logprob": -15.9921875, + "logprob": -15.9609375, "text": "" }, { "id": 32000, - "logprob": -2.0429688, + "logprob": -2.0332031, "text": "" }, { "id": 12018, - "logprob": -12.03125, + "logprob": -12.078125, "text": "Write" }, { "id": 528, - "logprob": -10.25, + "logprob": -10.109375, "text": "me" }, { "id": 264, - "logprob": -0.10437012, + "logprob": -0.103515625, "text": "a" }, { "id": 2485, - "logprob": -4.578125, + "logprob": -4.5664062, "text": "short" }, { "id": 2838, - "logprob": -0.22924805, + "logprob": -0.23864746, "text": "story" }, { "id": 32002, - "logprob": -10.84375, + "logprob": -10.9609375, "text": "" }, { "id": 259, - "logprob": -20.171875, + "logprob": -20.34375, "text": " " }, { "id": 13, - "logprob": -8.765625, + "logprob": -8.5546875, "text": "\n" }, { "id": 7226, - "logprob": -10.4140625, + "logprob": -10.484375, "text": "Ass" }, { "id": 11143, - "logprob": -13.640625, + "logprob": -13.6015625, "text": "istant" }, { "id": 28747, - "logprob": -0.005744934, + "logprob": -0.008308411, "text": ":" } ], @@ -6952,61 +5258,1835 @@ "tokens": [ { "id": 330, - "logprob": -0.12976074, + "logprob": -0.09448242, "special": false, "text": " A" }, { "id": 13088, - "logprob": -0.66308594, + "logprob": -0.6743164, "special": false, "text": " chicken" }, { "id": 349, - "logprob": -0.29541016, + "logprob": -0.31201172, "special": false, "text": " is" }, { "id": 6398, - "logprob": -0.05996704, + "logprob": -0.051635742, "special": false, "text": " sitting" }, { "id": 356, - "logprob": -0.27075195, + "logprob": -0.34033203, "special": false, "text": " on" }, { "id": 264, - "logprob": -0.14160156, + "logprob": -0.1194458, "special": false, "text": " a" }, { "id": 17972, - "logprob": -0.040863037, + "logprob": -0.032562256, "special": false, "text": " pile" }, { "id": 302, - "logprob": -0.00027036667, + "logprob": -0.00018787384, "special": false, "text": " of" }, { "id": 2445, - "logprob": -0.093322754, + "logprob": -0.07122803, "special": false, "text": " money" }, { "id": 28723, - "logprob": -0.006931305, + "logprob": -0.0041007996, + "special": false, + "text": "." + } + ], + "top_tokens": null + }, + "generated_text": " A chicken is sitting on a pile of money." + }, + { + "details": { + "best_of_sequences": null, + "finish_reason": "length", + "generated_tokens": 10, + "prefill": [ + { + "id": 1, + "logprob": null, + "text": "" + }, + { + "id": 1247, + "logprob": -5.2382812, + "text": "User" + }, + { + "id": 28747, + "logprob": -6.9492188, + "text": ":" + }, + { + "id": 32000, + "logprob": -16.234375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.21875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -23.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.28125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -21.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -22.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -23.609375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.5, + "text": "" + }, + { + "id": 32001, + "logprob": -19.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.234375, + "text": "" + }, + { + "id": 32001, + "logprob": -23.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -21.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.78125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.859375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.65625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -14.8828125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -23.21875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -23.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -23.0, + "text": "" + }, + { + "id": 32001, + "logprob": -19.75, + "text": "" + }, + { + "id": 32001, + "logprob": -17.078125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.65625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.0, + "text": "" + }, + { + "id": 32001, + "logprob": -18.15625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.15625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32000, + "logprob": -3.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -22.109375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.65625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.8046875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.953125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.515625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.2734375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.859375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.15625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.546875, + "text": "" + }, + { + "id": 32001, + "logprob": -14.1953125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.0, + "text": "" + }, + { + "id": 32001, + "logprob": -20.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.84375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -15.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -14.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.21875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32000, + "logprob": -3.2988281, + "text": "" + }, + { + "id": 32001, + "logprob": -25.75, + "text": "" + }, + { + "id": 32001, + "logprob": -18.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.65625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.75, + "text": "" + }, + { + "id": 32001, + "logprob": -16.375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.25, + "text": "" + }, + { + "id": 32001, + "logprob": -16.5625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -15.953125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.078125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.953125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.4453125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.21875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.9375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.234375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.25, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.359375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.5625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.0, + "text": "" + }, + { + "id": 32000, + "logprob": -2.7207031, + "text": "" + }, + { + "id": 32001, + "logprob": -23.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -22.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.578125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.484375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.390625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.078125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.28125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.5, + "text": "" + }, + { + "id": 32001, + "logprob": -21.5, + "text": "" + }, + { + "id": 32001, + "logprob": -19.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.203125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.03125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.328125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.609375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.9375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.0, + "text": "" + }, + { + "id": 32001, + "logprob": -17.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.765625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.6640625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.3125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -19.671875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.96875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.8125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.09375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -18.875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.34375, + "text": "" + }, + { + "id": 32001, + "logprob": -19.171875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.578125, + "text": "" + }, + { + "id": 32000, + "logprob": -3.0917969, + "text": "" + }, + { + "id": 32001, + "logprob": -25.375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -20.6875, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.71875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.453125, + "text": "" + }, + { + "id": 32001, + "logprob": -15.796875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.1328125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.125, + "text": "" + }, + { + "id": 32001, + "logprob": -18.90625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.734375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.25, + "text": "" + }, + { + "id": 32001, + "logprob": -19.5, + "text": "" + }, + { + "id": 32001, + "logprob": -21.59375, + "text": "" + }, + { + "id": 32001, + "logprob": -22.515625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -21.0, + "text": "" + }, + { + "id": 32001, + "logprob": -16.984375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.53125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -22.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.75, + "text": "" + }, + { + "id": 32001, + "logprob": -16.375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.4375, + "text": "" + }, + { + "id": 32001, + "logprob": -20.265625, + "text": "" + }, + { + "id": 32001, + "logprob": -22.296875, + "text": "" + }, + { + "id": 32001, + "logprob": -18.484375, + "text": "" + }, + { + "id": 32001, + "logprob": -15.390625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.75, + "text": "" + }, + { + "id": 32001, + "logprob": -14.6484375, + "text": "" + }, + { + "id": 32001, + "logprob": -21.609375, + "text": "" + }, + { + "id": 32001, + "logprob": -18.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -20.828125, + "text": "" + }, + { + "id": 32001, + "logprob": -17.015625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.046875, + "text": "" + }, + { + "id": 32001, + "logprob": -21.234375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.140625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.515625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.0, + "text": "" + }, + { + "id": 32001, + "logprob": -18.78125, + "text": "" + }, + { + "id": 32001, + "logprob": -16.375, + "text": "" + }, + { + "id": 32001, + "logprob": -16.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.703125, + "text": "" + }, + { + "id": 32001, + "logprob": -13.625, + "text": "" + }, + { + "id": 32001, + "logprob": -15.375, + "text": "" + }, + { + "id": 32001, + "logprob": -17.515625, + "text": "" + }, + { + "id": 32001, + "logprob": -21.921875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.640625, + "text": "" + }, + { + "id": 32001, + "logprob": -16.46875, + "text": "" + }, + { + "id": 32001, + "logprob": -16.421875, + "text": "" + }, + { + "id": 32001, + "logprob": -19.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.890625, + "text": "" + }, + { + "id": 32001, + "logprob": -17.40625, + "text": "" + }, + { + "id": 32001, + "logprob": -20.390625, + "text": "" + }, + { + "id": 32001, + "logprob": -19.1875, + "text": "" + }, + { + "id": 32001, + "logprob": -15.9609375, + "text": "" + }, + { + "id": 32000, + "logprob": -2.0332031, + "text": "" + }, + { + "id": 12018, + "logprob": -12.078125, + "text": "Write" + }, + { + "id": 528, + "logprob": -10.109375, + "text": "me" + }, + { + "id": 264, + "logprob": -0.103515625, + "text": "a" + }, + { + "id": 2485, + "logprob": -4.5664062, + "text": "short" + }, + { + "id": 2838, + "logprob": -0.23864746, + "text": "story" + }, + { + "id": 32002, + "logprob": -10.9609375, + "text": "" + }, + { + "id": 259, + "logprob": -20.34375, + "text": " " + }, + { + "id": 13, + "logprob": -8.5546875, + "text": "\n" + }, + { + "id": 7226, + "logprob": -10.484375, + "text": "Ass" + }, + { + "id": 11143, + "logprob": -13.6015625, + "text": "istant" + }, + { + "id": 28747, + "logprob": -0.008308411, + "text": ":" + } + ], + "seed": null, + "tokens": [ + { + "id": 330, + "logprob": -0.09448242, + "special": false, + "text": " A" + }, + { + "id": 13088, + "logprob": -0.6743164, + "special": false, + "text": " chicken" + }, + { + "id": 349, + "logprob": -0.31201172, + "special": false, + "text": " is" + }, + { + "id": 6398, + "logprob": -0.051635742, + "special": false, + "text": " sitting" + }, + { + "id": 356, + "logprob": -0.34033203, + "special": false, + "text": " on" + }, + { + "id": 264, + "logprob": -0.1194458, + "special": false, + "text": " a" + }, + { + "id": 17972, + "logprob": -0.032562256, + "special": false, + "text": " pile" + }, + { + "id": 302, + "logprob": -0.00018763542, + "special": false, + "text": " of" + }, + { + "id": 2445, + "logprob": -0.07122803, + "special": false, + "text": " money" + }, + { + "id": 28723, + "logprob": -0.0041007996, "special": false, "text": "." } diff --git a/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_next_simple.json b/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_next_simple.json index a3b18d0a..da2ac897 100644 --- a/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_next_simple.json +++ b/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_next_simple.json @@ -8,61 +8,61 @@ "tokens": [ { "id": 330, - "logprob": -0.13000488, + "logprob": -0.08660889, "special": false, "text": " A" }, { "id": 13088, - "logprob": -0.6713867, + "logprob": -0.7089844, "special": false, "text": " chicken" }, { "id": 349, - "logprob": -0.2980957, + "logprob": -0.32885742, "special": false, "text": " is" }, { "id": 6398, - "logprob": -0.060638428, + "logprob": -0.05126953, "special": false, "text": " sitting" }, { "id": 356, - "logprob": -0.27319336, + "logprob": -0.35229492, "special": false, "text": " on" }, { "id": 264, - "logprob": -0.140625, + "logprob": -0.12561035, "special": false, "text": " a" }, { "id": 17972, - "logprob": -0.040405273, + "logprob": -0.038085938, "special": false, "text": " pile" }, { "id": 302, - "logprob": -0.0002708435, + "logprob": -0.00018656254, "special": false, "text": " of" }, { "id": 2445, - "logprob": -0.095336914, + "logprob": -0.07293701, "special": false, "text": " money" }, { "id": 28723, - "logprob": -0.0068359375, + "logprob": -0.004852295, "special": false, "text": "." } diff --git a/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_two_images.json b/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_two_images.json index 86c95b29..bf2dc5a1 100644 --- a/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_two_images.json +++ b/integration-tests/models/__snapshots__/test_idefics2/test_flash_idefics2_two_images.json @@ -8,115 +8,115 @@ "tokens": [ { "id": 415, - "logprob": -0.04421997, + "logprob": -0.039886475, "special": false, "text": " The" }, { "id": 12072, - "logprob": -0.13500977, + "logprob": -0.1430664, "special": false, "text": " cow" }, { "id": 349, - "logprob": -0.06750488, + "logprob": -0.056488037, "special": false, "text": " is" }, { "id": 6328, - "logprob": -0.6352539, + "logprob": -0.6855469, "special": false, "text": " standing" }, { "id": 356, - "logprob": -0.16186523, + "logprob": -0.1685791, "special": false, "text": " on" }, { "id": 272, - "logprob": -0.5078125, + "logprob": -0.50097656, "special": false, "text": " the" }, { "id": 10305, - "logprob": -0.017913818, + "logprob": -0.017303467, "special": false, "text": " beach" }, { "id": 304, - "logprob": -1.5205078, + "logprob": -1.3564453, "special": false, "text": " and" }, { "id": 272, - "logprob": -0.029174805, + "logprob": -0.017868042, "special": false, "text": " the" }, { "id": 13088, - "logprob": -0.003479004, + "logprob": -0.0027103424, "special": false, "text": " chicken" }, { "id": 349, - "logprob": -0.0035095215, + "logprob": -0.003156662, "special": false, "text": " is" }, { "id": 6398, - "logprob": -0.3088379, + "logprob": -0.37304688, "special": false, "text": " sitting" }, { "id": 356, - "logprob": -0.027755737, + "logprob": -0.034576416, "special": false, "text": " on" }, { "id": 264, - "logprob": -0.31884766, + "logprob": -0.29418945, "special": false, "text": " a" }, { "id": 17972, - "logprob": -0.047943115, + "logprob": -0.042877197, "special": false, "text": " pile" }, { "id": 302, - "logprob": -0.0002925396, + "logprob": -0.00028443336, "special": false, "text": " of" }, { "id": 2445, - "logprob": -0.02935791, + "logprob": -0.023223877, "special": false, "text": " money" }, { "id": 28723, - "logprob": -0.031219482, + "logprob": -0.018157959, "special": false, "text": "." }, { "id": 32002, - "logprob": -0.00034475327, + "logprob": -0.00018393993, "special": true, "text": "" }, diff --git a/router/Cargo.toml b/router/Cargo.toml index 853f46b1..5855ac86 100644 --- a/router/Cargo.toml +++ b/router/Cargo.toml @@ -22,6 +22,7 @@ text-generation-client = { path = "client" } clap = { version = "4.4.5", features = ["derive", "env"] } futures = "0.3.28" hf-hub = { workspace = true } +itertools = "0.10" jsonschema = { version = "0.17.1", features = ["draft202012"] } metrics = "0.21.1" metrics-exporter-prometheus = { version = "0.15.1", features = [] } diff --git a/router/src/config.rs b/router/src/config.rs index 29fefd5b..7737165e 100644 --- a/router/src/config.rs +++ b/router/src/config.rs @@ -71,10 +71,12 @@ fn get_unpadded_features( let current_aspect_ratio: f64 = current_width as f64 / current_height as f64; let (current_height, current_width) = if aspect_ratio > current_aspect_ratio { let new_height = (height * current_width) / width; - (new_height, current_width) + let padding = (current_height - new_height) / 2; + (current_height - (2 * padding), current_width) } else { let new_width = (width * current_height) / height; - (current_height, new_width) + let padding = (current_width - new_width) / 2; + (current_height, current_width - (2 * padding)) }; let unpadded_features = current_height * current_width; @@ -88,7 +90,9 @@ impl LlavaNext { let patch_size = self.vision_config.patch_size; assert!(image_size % patch_size == 0); let npatches = image_size / patch_size; - let (num_patch_height, num_patch_width) = + // Dimensions are intentionally swapped to be bug-compatible with + // upstream: https://github.com/LLaVA-VL/LLaVA-NeXT/issues/59 + let (num_patch_width, num_patch_height) = get_anyres_image_grid_shape(height, width, &self.image_grid_pinpoints, image_size); let (unpadded_features, newline_features) = @@ -112,7 +116,7 @@ pub struct Idefics2 {} impl Idefics2 { pub fn get_number_of_features(&self, _height: usize, _width: usize) -> usize { - 320 + 64 } } @@ -158,6 +162,7 @@ pub enum Config { Baichuan, Paligemma(Paligemma), Gemma, + Gemma2, Cohere, Drbx, Falcon, diff --git a/router/src/lib.rs b/router/src/lib.rs index 126726c6..a5b97af3 100644 --- a/router/src/lib.rs +++ b/router/src/lib.rs @@ -61,6 +61,9 @@ pub struct HubTokenizerConfig { pub bos_token: Option, #[serde(deserialize_with = "token_serde::deserialize")] pub eos_token: Option, + pub tokenizer_class: Option, + pub add_bos_token: Option, + pub add_eos_token: Option, } impl HubTokenizerConfig { @@ -70,6 +73,25 @@ impl HubTokenizerConfig { } } +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(tag = "processor_class")] +pub enum HubPreprocessorConfig { + Idefics2Processor(Idefics2Preprocessor), +} + +impl HubPreprocessorConfig { + pub fn from_file>(filename: P) -> Option { + let content = std::fs::read_to_string(filename).ok()?; + serde_json::from_str(&content).ok() + } +} + +#[derive(Clone, Debug, Serialize, Deserialize)] +pub struct Idefics2Preprocessor { + #[serde(default)] + do_image_splitting: bool, +} + #[derive(Debug, Clone, Deserialize, Default)] pub struct HubProcessorConfig { pub chat_template: Option, diff --git a/router/src/main.rs b/router/src/main.rs index a7caec2e..1e8093d8 100644 --- a/router/src/main.rs +++ b/router/src/main.rs @@ -13,9 +13,11 @@ use std::io::BufReader; use std::net::{IpAddr, Ipv4Addr, SocketAddr}; use std::path::{Path, PathBuf}; use text_generation_router::config::Config; -use text_generation_router::{server, HubModelInfo, HubProcessorConfig, HubTokenizerConfig}; +use text_generation_router::{ + server, HubModelInfo, HubPreprocessorConfig, HubProcessorConfig, HubTokenizerConfig, +}; use thiserror::Error; -use tokenizers::Tokenizer; +use tokenizers::{processors::template::TemplateProcessing, Tokenizer}; use tower_http::cors::AllowOrigin; use tracing_subscriber::layer::SubscriberExt; use tracing_subscriber::util::SubscriberInitExt; @@ -214,6 +216,7 @@ async fn main() -> Result<(), RouterError> { tokenizer_filename, config_filename, tokenizer_config_filename, + preprocessor_config_filename, processor_config_filename, model_info, ) = match api { @@ -221,6 +224,7 @@ async fn main() -> Result<(), RouterError> { Some(local_path.join("tokenizer.json")), Some(local_path.join("config.json")), Some(local_path.join("tokenizer_config.json")), + Some(local_path.join("preprocessor_config.json")), Some(local_path.join("processor_config.json")), None, ), @@ -237,6 +241,7 @@ async fn main() -> Result<(), RouterError> { }; let config_filename = api_repo.get("config.json").await.ok(); let tokenizer_config_filename = api_repo.get("tokenizer_config.json").await.ok(); + let preprocessor_config_filename = api_repo.get("preprocessor_config.json").await.ok(); let processor_config_filename = api_repo.get("processor_config.json").await.ok(); let model_info = if let Some(model_info) = get_model_info(&api_repo).await { @@ -249,6 +254,7 @@ async fn main() -> Result<(), RouterError> { tokenizer_filename, config_filename, tokenizer_config_filename, + preprocessor_config_filename, processor_config_filename, model_info, ) @@ -263,13 +269,12 @@ async fn main() -> Result<(), RouterError> { repo.get("tokenizer.json"), repo.get("config.json"), repo.get("tokenizer_config.json"), + repo.get("preprocessor_config.json"), repo.get("processor_config.json"), None, ) } }; - let tokenizer: Option = - tokenizer_filename.and_then(|filename| Tokenizer::from_file(filename).ok()); let config: Option = config_filename.and_then(|filename| { std::fs::read_to_string(filename) .ok() @@ -300,6 +305,23 @@ async fn main() -> Result<(), RouterError> { HubTokenizerConfig::default() }); + let tokenizer: Option = tokenizer_filename.and_then(|filename| { + let mut tokenizer = Tokenizer::from_file(filename).ok(); + if let Some(tokenizer) = &mut tokenizer { + if let Some(class) = &tokenizer_config.tokenizer_class { + if (class == "LlamaTokenizer" || class == "LlamaTokenizerFast") && tokenizer.get_post_processor().is_none() { + if let Ok(post_processor) = create_post_processor(tokenizer, &tokenizer_config) { + tracing::info!("Overriding LlamaTokenizer with TemplateProcessing to follow python override defined in https://github.com/huggingface/transformers/blob/4aa17d00690b7f82c95bb2949ea57e22c35b4336/src/transformers/models/llama/tokenization_llama_fast.py#L203-L205"); + tokenizer.with_post_processor(post_processor); + } + } + } + } + tokenizer + }); + + let preprocessor_config = + preprocessor_config_filename.and_then(HubPreprocessorConfig::from_file); let processor_config = processor_config_filename .and_then(HubProcessorConfig::from_file) .unwrap_or_default(); @@ -361,6 +383,7 @@ async fn main() -> Result<(), RouterError> { ngrok_authtoken, ngrok_edge, tokenizer_config, + preprocessor_config, processor_config, messages_api_enabled, disable_grammar_support, @@ -504,6 +527,77 @@ pub async fn get_tokenizer_config(api_repo: &ApiRepo) -> Option Result { + let add_bos_token = tokenizer_config.add_bos_token.unwrap_or(true); + let add_eos_token = tokenizer_config.add_eos_token.unwrap_or(false); + + let bos_token = tokenizer_config.bos_token.as_ref(); + let eos_token = tokenizer_config.eos_token.as_ref(); + + if add_bos_token && bos_token.is_none() { + panic!("add_bos_token = true but bos_token is None"); + } + + if add_eos_token && eos_token.is_none() { + panic!("add_eos_token = true but eos_token is None"); + } + + let mut single = Vec::new(); + let mut pair = Vec::new(); + let mut special_tokens = Vec::new(); + + if add_bos_token { + if let Some(bos) = bos_token { + let bos_token_id = tokenizer + .token_to_id(bos) + .expect("Should have found the bos token id"); + special_tokens.push((bos.clone(), bos_token_id)); + single.push(format!("{}:0", bos)); + pair.push(format!("{}:0", bos)); + } + } + + single.push("$A:0".to_string()); + pair.push("$A:0".to_string()); + + if add_eos_token { + if let Some(eos) = eos_token { + let eos_token_id = tokenizer + .token_to_id(eos) + .expect("Should have found the eos token id"); + special_tokens.push((eos.clone(), eos_token_id)); + single.push(format!("{}:0", eos)); + pair.push(format!("{}:0", eos)); + } + } + + if add_bos_token { + if let Some(bos) = bos_token { + single.push(format!("{}:1", bos)); + } + } + + pair.push("$B:1".to_string()); + + if add_eos_token { + if let Some(eos) = eos_token { + pair.push(format!("{}:1", eos)); + } + } + + let post_processor = TemplateProcessing::builder() + .try_single(single)? + .try_pair(pair)? + .special_tokens(special_tokens) + .build()?; + + Ok(post_processor) +} + #[derive(Debug, Error)] enum RouterError { #[error("Argument validation error: {0}")] @@ -513,3 +607,36 @@ enum RouterError { #[error("Tokio runtime failed to start: {0}")] Tokio(#[from] std::io::Error), } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_create_post_processor() { + let tokenizer_config = HubTokenizerConfig { + add_bos_token: None, + add_eos_token: None, + bos_token: Some("".to_string()), + eos_token: Some("".to_string()), + chat_template: None, + tokenizer_class: None, + completion_template: None, + }; + + let tokenizer = + Tokenizer::from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0", None).unwrap(); + let post_processor = create_post_processor(&tokenizer, &tokenizer_config).unwrap(); + + let expected = TemplateProcessing::builder() + .try_single(":0 $A:0 :1") + .unwrap() + .try_pair(":0 $A:0 $B:1") + .unwrap() + .special_tokens(vec![("".to_string(), 1)]) + .build() + .unwrap(); + + assert_eq!(post_processor, expected); + } +} diff --git a/router/src/server.rs b/router/src/server.rs index 7f15bfdd..0cb08d4e 100644 --- a/router/src/server.rs +++ b/router/src/server.rs @@ -12,9 +12,9 @@ use crate::kserve::{ use crate::validation::ValidationError; use crate::{ BestOfSequence, Details, ErrorResponse, FinishReason, GenerateParameters, GenerateRequest, - GenerateResponse, GrammarType, HubModelInfo, HubProcessorConfig, HubTokenizerConfig, Info, - Message, PrefillToken, SimpleToken, StreamDetails, StreamResponse, Token, TokenizeResponse, - Usage, Validation, + GenerateResponse, GrammarType, HubModelInfo, HubPreprocessorConfig, HubProcessorConfig, + HubTokenizerConfig, Info, Message, PrefillToken, SimpleToken, StreamDetails, StreamResponse, + Token, TokenizeResponse, Usage, Validation, }; use crate::{ ChatCompletion, ChatCompletionChoice, ChatCompletionChunk, ChatCompletionComplete, @@ -1423,6 +1423,7 @@ pub async fn run( _ngrok_authtoken: Option, _ngrok_edge: Option, tokenizer_config: HubTokenizerConfig, + preprocessor_config: Option, processor_config: HubProcessorConfig, messages_api_enabled: bool, grammar_support: bool, @@ -1636,6 +1637,7 @@ pub async fn run( validation_workers, tokenizer, config, + preprocessor_config, max_best_of, max_stop_sequences, max_top_n_tokens, diff --git a/router/src/validation.rs b/router/src/validation.rs index e2bf5a5d..12cf2ab3 100644 --- a/router/src/validation.rs +++ b/router/src/validation.rs @@ -1,13 +1,16 @@ /// Payload validation logic use crate::config::Config; use crate::validation::ValidationError::{BestOfSampling, BestOfSeed, EmptyInput}; -use crate::{GenerateParameters, GenerateRequest, GrammarType}; +use crate::{ + GenerateParameters, GenerateRequest, GrammarType, HubPreprocessorConfig, Idefics2Preprocessor, +}; use base64::{engine::general_purpose::STANDARD, Engine}; use image::{io::Reader as ImageReader, ImageFormat}; use jsonschema::{Draft, JSONSchema}; use rand::{thread_rng, Rng}; use serde_json::Value; use std::io::Cursor; +use std::iter; use text_generation_client::{Chunk, Image, InputChunk}; use thiserror::Error; use tokenizers::tokenizer::Tokenizer; @@ -36,6 +39,7 @@ impl Validation { workers: usize, tokenizer: Option, config: Option, + preprocessor_config: Option, max_best_of: usize, max_stop_sequences: usize, max_top_n_tokens: u32, @@ -53,12 +57,18 @@ impl Validation { for _ in 0..workers { let tokenizer_clone = tokenizer.clone(); let config_clone = config.clone(); + let preprocessor_config_clone = preprocessor_config.clone(); let (tokenizer_sender, tokenizer_receiver) = mpsc::unbounded_channel(); senders.push(tokenizer_sender); // Spawn worker tokio::task::spawn_blocking(move || { - tokenizer_worker(tokenizer_clone, config_clone, tokenizer_receiver) + tokenizer_worker( + tokenizer_clone, + config_clone, + preprocessor_config_clone, + tokenizer_receiver, + ) }); } @@ -422,13 +432,20 @@ async fn round_robin_task( fn tokenizer_worker( tokenizer: Tokenizer, config: Option, + preprocessor_config: Option, mut receiver: mpsc::UnboundedReceiver, ) { // Loop over requests while let Some(((inputs, truncate), response_tx, parent_span)) = receiver.blocking_recv() { parent_span.in_scope(|| { response_tx - .send(prepare_input(inputs, truncate, &tokenizer, &config)) + .send(prepare_input( + inputs, + truncate, + &tokenizer, + config.as_ref(), + preprocessor_config.as_ref(), + )) .unwrap_or(()) }) } @@ -508,16 +525,67 @@ fn fetch_image(input: &str) -> Result<(Vec, String, usize, usize), Validatio } } +fn image_tokens( + config: &Config, + preprocessor_config: Option<&HubPreprocessorConfig>, + height: usize, + width: usize, +) -> String { + use Config::*; + use HubPreprocessorConfig::*; + match config { + Idefics => "".to_string(), + Idefics2(config) => { + const FAKE: &str = ""; + const IMAGE: &str = ""; + + let slots = config.get_number_of_features(height, width); + + let mut image_string = String::with_capacity(2 * FAKE.len() + slots * IMAGE.len()); + image_string.push_str(FAKE); + image_string.extend(iter::repeat(IMAGE).take(slots)); + image_string.push_str(FAKE); + + if matches!( + preprocessor_config, + Some(Idefics2Processor(Idefics2Preprocessor { + do_image_splitting: true, + .. + })) + ) { + image_string = image_string.repeat(5); + }; + + image_string + } + Paligemma(config) => "".repeat(config.get_number_of_features(height, width)), + LlavaNext(config) => "".repeat(config.get_number_of_features(height, width)), + _ => unimplemented!("Images tokens are not supported for this model configuration"), + } +} + +fn image_tokens_fixup(config: &Config, text: String) -> String { + match config { + Config::Idefics2(_) => { + const FAKE: &str = ""; + text.replace(&format!("{FAKE}{FAKE}"), FAKE) + } + _ => text, + } +} + /// Get input length and optionally truncate it fn prepare_input( inputs: String, _truncate: Option, tokenizer: &Tokenizer, - config: &Option, + config: Option<&Config>, + preprocessor_config: Option<&HubPreprocessorConfig>, ) -> Result<(tokenizers::Encoding, Vec), ValidationError> { + use Config::*; static RE: Lazy = Lazy::new(|| Regex::new(r"!\[\]\([^\)]*\)").unwrap()); let (tokenizer_query, input_chunks) = match config { - Some(Config::LlavaNext(config)) => { + Some(config @ (Idefics | Idefics2(_) | Paligemma(_) | LlavaNext(_))) => { let mut input_chunks = Vec::new(); let mut tokenizer_query = String::with_capacity(inputs.len()); let mut start = 0; @@ -529,88 +597,17 @@ fn prepare_input( tokenizer_query.push_str(&inputs[start..chunk_start]); } let (data, mimetype, height, width) = fetch_image(&inputs[chunk_start..chunk_end])?; - let slots = config.get_number_of_features(height, width); input_chunks.push(Chunk::Image(Image { data, mimetype }).into()); - tokenizer_query.push_str(&"".repeat(slots)); + tokenizer_query.push_str(&image_tokens(config, preprocessor_config, height, width)); start = chunk_end; } if start != inputs.len() { input_chunks.push(Chunk::Text(inputs[start..].to_string()).into()); tokenizer_query.push_str(&inputs[start..]); } - (tokenizer_query, input_chunks) - } - Some(Config::Paligemma(config)) => { - let mut input_chunks = Vec::new(); - let mut tokenizer_query = String::with_capacity(inputs.len()); - let mut start = 0; - for chunk in RE.find_iter(&inputs) { - let chunk_start = chunk.start(); - let chunk_end = chunk.end(); - if chunk_start != start { - input_chunks.push(Chunk::Text(inputs[start..chunk_start].to_string()).into()); - tokenizer_query.push_str(&inputs[start..chunk_start]); - } - let (data, mimetype, height, width) = fetch_image(&inputs[chunk_start..chunk_end])?; - let slots = config.get_number_of_features(height, width); - input_chunks.push(Chunk::Image(Image { data, mimetype }).into()); - tokenizer_query.push_str(&"".repeat(slots)); - start = chunk_end; - } - if start != inputs.len() { - input_chunks.push(Chunk::Text(inputs[start..].to_string()).into()); - tokenizer_query.push_str(&inputs[start..]); - } - (tokenizer_query, input_chunks) - } - Some(Config::Idefics2(config)) => { - let mut input_chunks = Vec::new(); - let mut tokenizer_query = String::with_capacity(inputs.len()); - let mut start = 0; - for chunk in RE.find_iter(&inputs) { - let chunk_start = chunk.start(); - let chunk_end = chunk.end(); - if chunk_start != start { - input_chunks.push(Chunk::Text(inputs[start..chunk_start].to_string()).into()); - tokenizer_query.push_str(&inputs[start..chunk_start]); - } - let (data, mimetype, height, width) = fetch_image(&inputs[chunk_start..chunk_end])?; - let slots = config.get_number_of_features(height, width); - tokenizer_query.push_str(""); - tokenizer_query.push_str(&"".repeat(slots)); - tokenizer_query.push_str(""); - input_chunks.push(Chunk::Image(Image { data, mimetype }).into()); - start = chunk_end; - } - if start != inputs.len() { - input_chunks.push(Chunk::Text(inputs[start..].to_string()).into()); - tokenizer_query.push_str(&inputs[start..]); - } - (tokenizer_query, input_chunks) - } - Some(Config::Idefics) => { - let mut input_chunks = Vec::new(); - let mut tokenizer_query = String::with_capacity(inputs.len()); - let mut start = 0; - for chunk in RE.find_iter(&inputs) { - let chunk_start = chunk.start(); - let chunk_end = chunk.end(); - if chunk_start != start { - input_chunks.push(Chunk::Text(inputs[start..chunk_start].to_string()).into()); - tokenizer_query.push_str(&inputs[start..chunk_start]); - } - let (data, mimetype, _height, _width) = - fetch_image(&inputs[chunk_start..chunk_end])?; - let slots = 1; - tokenizer_query.push_str(&"".repeat(slots)); - input_chunks.push(Chunk::Image(Image { data, mimetype }).into()); - start = chunk_end; - } - if start != inputs.len() { - input_chunks.push(Chunk::Text(inputs[start..].to_string()).into()); - tokenizer_query.push_str(&inputs[start..]); - } + tokenizer_query = image_tokens_fixup(config, tokenizer_query); + (tokenizer_query, input_chunks) } _ => (inputs.clone(), vec![Chunk::Text(inputs).into()]), @@ -750,7 +747,7 @@ pub enum ValidationError { #[cfg(test)] mod tests { use super::*; - use crate::config::{PaliTextConfig, Paligemma}; + use crate::config::{Idefics2, PaliTextConfig, Paligemma}; use crate::default_parameters; use crate::tests::get_tokenizer; @@ -769,6 +766,7 @@ mod tests { workers, tokenizer, config, + None, max_best_of, max_stop_sequence, max_top_n_tokens, @@ -803,6 +801,7 @@ mod tests { workers, tokenizer, config, + None, max_best_of, max_stop_sequence, max_top_n_tokens, @@ -836,6 +835,7 @@ mod tests { workers, tokenizer, config, + None, max_best_of, max_stop_sequence, max_top_n_tokens, @@ -874,6 +874,7 @@ mod tests { workers, tokenizer, config, + None, max_best_of, max_stop_sequence, max_top_n_tokens, @@ -941,6 +942,7 @@ mod tests { workers, tokenizer, config, + None, max_best_of, max_stop_sequences, max_top_n_tokens, @@ -1026,6 +1028,7 @@ mod tests { workers, tokenizer, Some(config), + None, max_best_of, max_stop_sequence, max_top_n_tokens, @@ -1058,4 +1061,83 @@ mod tests { "Failed to process images", ); } + + #[tokio::test] + async fn test_idefics2_correct_n_fake_tokens() { + let pixel_data = STANDARD.decode(PIXEL_GIF).unwrap(); + + let tokenizer = Some(get_tokenizer().await); + + let max_best_of = 2; + let max_stop_sequence = 3; + let max_top_n_tokens = 4; + let max_input_length = 5; + let max_total_tokens = 6; + let disable_grammar_support = true; + let workers = 1; + let config = Config::Idefics2(Idefics2 {}); + let validation = Validation::new( + workers, + tokenizer, + Some(config), + Some(HubPreprocessorConfig::Idefics2Processor( + Idefics2Preprocessor { + do_image_splitting: true, + }, + )), + max_best_of, + max_stop_sequence, + max_top_n_tokens, + max_input_length, + max_total_tokens, + disable_grammar_support, + ); + + let (encoding, chunks) = match validation + .tokenize( + format!( + "test![](data:image/gif;base64,{})![](data:image/gif;base64,{})", + PIXEL_GIF, PIXEL_GIF + ), + None, + ) + .await + { + Ok(Some((encoding, chunks))) => (encoding, chunks), + _ => panic!("Unexpected tokenization failure"), + }; + + assert!( + chunks + == vec![ + Chunk::Text("test".to_string()).into(), + Chunk::Image(Image { + data: pixel_data.clone(), + mimetype: "image/gif".to_string() + }) + .into(), + Chunk::Image(Image { + data: pixel_data.clone(), + mimetype: "image/gif".to_string() + }) + .into() + ], + "Failed to process images", + ); + + // Verify the number of fake tokens: + // + // - Two images surrounded/separated by a fake token = 3. + // - Both are split in 5 subimages, separated by a fake token: 2 * 4 + // + // Fake tokens get split up by the testing tokenizer, but we don't care. + assert_eq!( + encoding + .get_tokens() + .iter() + .filter(|t| *t == "fake") + .count(), + 11 + ); + } } diff --git a/server/text_generation_server/models/__init__.py b/server/text_generation_server/models/__init__.py index 648fcee9..f2f0f457 100644 --- a/server/text_generation_server/models/__init__.py +++ b/server/text_generation_server/models/__init__.py @@ -68,6 +68,9 @@ try: from text_generation_server.models.flash_gemma import ( FlashGemma, ) + from text_generation_server.models.flash_gemma2 import ( + FlashGemma2, + ) from text_generation_server.models.pali_gemma import ( PaliGemma, ) @@ -102,6 +105,7 @@ if FLASH_ATTENTION: __all__.append(FlashQwen2) __all__.append(FlashStarcoder2) __all__.append(FlashGemma) + __all__.append(FlashGemma2) __all__.append(FlashCohere) MAMBA_AVAILABLE = True @@ -143,6 +147,11 @@ class ModelType(enum.Enum): "name": "Gemma", "url": "https://huggingface.co/google/gemma-7b", } + GEMMA2 = { + "type": "gemma2", + "name": "Gemma2", + "url": "https://huggingface.co/google/gemma2-9b", + } COHERE = { "type": "cohere", "name": "Cohere", @@ -630,6 +639,27 @@ def get_model( dtype=dtype, trust_remote_code=trust_remote_code, ) + elif model_type == GEMMA2: + if FLASH_ATTENTION: + return FlashGemma2( + model_id, + revision, + quantize=quantize, + speculator=speculator, + dtype=dtype, + trust_remote_code=trust_remote_code, + ) + elif sharded: + raise NotImplementedError(FLASH_ATT_ERROR_MESSAGE.format("Sharded Gemma2")) + else: + return CausalLM( + model_id, + revision, + quantize=quantize, + speculator=speculator, + dtype=dtype, + trust_remote_code=trust_remote_code, + ) if model_type == COHERE: if FLASH_ATTENTION: diff --git a/server/text_generation_server/models/custom_modeling/flash_gemma2_modeling.py b/server/text_generation_server/models/custom_modeling/flash_gemma2_modeling.py new file mode 100644 index 00000000..a71de61f --- /dev/null +++ b/server/text_generation_server/models/custom_modeling/flash_gemma2_modeling.py @@ -0,0 +1,500 @@ +# coding=utf-8 +# Copyright 2022 EleutherAI and the HuggingFace Inc. team. All rights reserved. +# +# This code is based on EleutherAI's GPT-NeoX library and the GPT-NeoX +# and OPT implementations in this library. It has been modified from its +# original forms to accommodate minor architectural differences compared +# to GPT-NeoX and OPT used by the Meta AI team that trained the model. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import torch +import torch.distributed + +from torch import nn +from transformers.activations import ACT2FN +from transformers.configuration_utils import PretrainedConfig +from typing import Optional, List, Tuple + +from text_generation_server.layers.attention import ( + paged_attention, + attention, + reshape_and_cache, +) +from text_generation_server.layers import ( + TensorParallelRowLinear, + TensorParallelColumnLinear, + TensorParallelEmbedding, + SpeculativeHead, + get_linear, +) +from text_generation_server.layers.rotary import PositionRotaryEmbedding +from text_generation_server.layers.layernorm import ( + FastRMSNorm, +) + + +class Gemma2Config(PretrainedConfig): + def __init__( + self, + vocab_size=256128, + hidden_size=3072, + intermediate_size=24576, + num_hidden_layers=28, + num_attention_heads=16, + num_key_value_heads=16, + head_dim=256, + hidden_act="gelu_pytorch_tanh", + max_position_embeddings=8192, + initializer_range=0.02, + rms_norm_eps=1e-6, + use_cache=True, + pad_token_id=None, + bos_token_id=1, + eos_token_id=2, + tie_word_embeddings=True, + rope_theta=10000.0, + rope_scaling=None, + attention_bias=False, + attention_dropout=0.0, + **kwargs, + ): + self.vocab_size = vocab_size + self.max_position_embeddings = max_position_embeddings + self.hidden_size = hidden_size + self.head_dim = head_dim + self.intermediate_size = intermediate_size + self.num_hidden_layers = num_hidden_layers + self.num_attention_heads = num_attention_heads + + # for backward compatibility + if num_key_value_heads is None: + num_key_value_heads = num_attention_heads + + self.num_key_value_heads = num_key_value_heads + self.hidden_act = hidden_act + self.initializer_range = initializer_range + self.rms_norm_eps = rms_norm_eps + self.use_cache = use_cache + self.rope_theta = rope_theta + self.rope_scaling = rope_scaling + self.attention_bias = attention_bias + self.attention_dropout = attention_dropout + + super().__init__( + pad_token_id=pad_token_id, + bos_token_id=bos_token_id, + eos_token_id=eos_token_id, + tie_word_embeddings=tie_word_embeddings, + **kwargs, + ) + + +class Gemma2FastRMSNorm(FastRMSNorm): + @classmethod + def load(cls, prefix, weights, eps=1e-6): + dtype = weights.dtype + weights.dtype = torch.float32 + weight = weights.get_tensor(f"{prefix}.weight") + 1 + weights.dtype = dtype + new = cls(weight, eps) + new.dtype = dtype + return new + + # perform the multiplication in full precision and downcast after + def forward(self, hidden_states, residual=None): + if residual is not None: + hidden_states += residual + residual = hidden_states + hidden_states = hidden_states.to(torch.float32) + variance = hidden_states.pow(2).mean(-1, keepdim=True) + hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon) + hidden_states = hidden_states * self.weight + return hidden_states.to(self.dtype), residual + + +def load_attention(config, prefix, weights): + if config.num_attention_heads != config.num_key_value_heads: + return _load_gqa(config, prefix, weights) + else: + return TensorParallelColumnLinear.load_multi( + config, + prefixes=[f"{prefix}.q_proj", f"{prefix}.k_proj", f"{prefix}.v_proj"], + dim=0, + weights=weights, + bias=False, + ) + + +def _load_gqa(config, prefix: str, weights): + assert config.num_attention_heads % weights.process_group.size() == 0 + + weight = weights.get_multi_weights_col( + prefixes=[f"{prefix}.q_proj", f"{prefix}.k_proj", f"{prefix}.v_proj"], + quantize=config.quantize, + dim=0, + ) + + if config.quantize not in ["gptq", "awq", "marlin"]: + weight = weight.to(dtype=weights.dtype).to(device=weights.device) + + head_size = config.head_dim + num_heads = config.num_attention_heads // weights.process_group.size() + num_key_value_heads = config.num_key_value_heads // weights.process_group.size() + assert list(weight.shape) == [ + (num_heads + 2 * num_key_value_heads) * head_size, + config.hidden_size, + ], f"{list(weight.shape)} != {[(num_heads + 2 * config.num_key_value_heads) * head_size, config.hidden_size]}" + + return TensorParallelColumnLinear( + get_linear(weight, bias=None, quantize=config.quantize) + ) + + +class FlashGemma2Attention(torch.nn.Module): + def __init__(self, prefix: str, config, weights, causal: bool, is_sliding: bool): + super().__init__() + self.num_heads = config.num_attention_heads + self.head_size = config.head_dim + self.causal = causal + if is_sliding: + self.window_size = config.sliding_window + else: + self.window_size = -1 + + self.rotary_emb = PositionRotaryEmbedding.static( + config=config, + dim=self.head_size, + base=config.rope_theta, + device=weights.device, + ) + + # self.softmax_scale = self.head_size**-0.5 + self.softmax_scale = config.query_pre_attn_scalar**-0.5 + + if self.num_heads % weights.process_group.size() != 0: + raise ValueError( + f"`num_heads` must be divisible by `num_shards` (got `num_heads`: {self.num_heads} " + f"and `num_shards`: {weights.process_group.size()}" + ) + self.num_heads = self.num_heads // weights.process_group.size() + self.num_key_value_heads = ( + config.num_key_value_heads // weights.process_group.size() + ) + + self.query_key_value = load_attention(config, prefix, weights) + + self.o_proj = TensorParallelRowLinear.load( + config, + prefix=f"{prefix}.o_proj", + weights=weights, + bias=False, + ) + self.num_groups = self.num_heads // self.num_key_value_heads + self.kv_head_mapping = torch.arange( + 0, self.num_key_value_heads, dtype=torch.int32, device=weights.device + ).repeat_interleave(self.num_groups) + + def forward( + self, + hidden_states, + cos, + sin, + cu_seqlen_prefill, + kv_cache, + block_tables, + slots, + input_lengths, + max_s, + ): + qkv = self.query_key_value(hidden_states) + query, kv = qkv.split( + [ + self.head_size * self.num_heads, + 2 * self.head_size * self.num_key_value_heads, + ], + dim=1, + ) + query = query.view(-1, self.num_heads, self.head_size) + kv = kv.view(-1, 2, self.num_key_value_heads, self.head_size) + + self.rotary_emb(query, torch.select(kv, dim=1, index=0), cos, sin) + + reshape_and_cache(kv[:, 0], kv[:, 1], kv_cache[0], kv_cache[1], slots) + + # output tensor + attn_output = torch.empty_like(query) + + # Prefill + if cu_seqlen_prefill is not None: + # flash attention + attention( + query, + torch.select(kv, dim=1, index=0), + torch.select(kv, dim=1, index=1), + attn_output, + cu_seqlen_prefill, + max_s, + self.softmax_scale, + causal=self.causal, + window_size_left=self.window_size, + ) + # Decode + else: + paged_attention( + attn_output, + query, + kv_cache[0], + kv_cache[1], + self.kv_head_mapping, + self.softmax_scale, + block_tables, + input_lengths, + max_s, + ) + + return self.o_proj(attn_output.view(-1, self.num_heads * self.head_size)) + + +class Gemma2MLP(nn.Module): + def __init__(self, prefix, config, weights): + super().__init__() + act = config.hidden_act + self.act = ( + ACT2FN[act] + if "gelu" not in act + else lambda x: torch.nn.functional.gelu( + x, + approximate=( + "tanh" if act in ["gelu_fast", "gelu_pytorch_tanh"] else "none" + ), + ) + ) + # Fuse gate and up proj + self.gate_up_proj = TensorParallelColumnLinear.load_multi( + config, + prefixes=[f"{prefix}.gate_proj", f"{prefix}.up_proj"], + weights=weights, + dim=0, + bias=False, + ) + self.down_proj = TensorParallelRowLinear.load( + config, + prefix=f"{prefix}.down_proj", + weights=weights, + bias=False, + ) + self.intermediate_size = ( + config.intermediate_size // weights.process_group.size() + ) + + def forward(self, hidden_states): + gate_up_states = self.gate_up_proj(hidden_states) + gate_up_states = gate_up_states.view(-1, 2, self.intermediate_size) + return self.down_proj(self.act(gate_up_states[:, 0]) * gate_up_states[:, 1]) + + +class FlashGemma2Layer(nn.Module): + def __init__(self, prefix, config, weights, causal: bool, is_sliding: bool): + super().__init__() + self.self_attn = FlashGemma2Attention( + prefix=f"{prefix}.self_attn", + config=config, + weights=weights, + causal=causal, + is_sliding=is_sliding, + ) + self.mlp = Gemma2MLP(prefix=f"{prefix}.mlp", config=config, weights=weights) + + self.input_layernorm = Gemma2FastRMSNorm.load( + prefix=f"{prefix}.input_layernorm", weights=weights, eps=config.rms_norm_eps + ) + self.post_attention_layernorm = Gemma2FastRMSNorm.load( + prefix=f"{prefix}.post_attention_layernorm", + weights=weights, + eps=config.rms_norm_eps, + ) + self.pre_feedforward_layernorm = Gemma2FastRMSNorm.load( + prefix=f"{prefix}.pre_feedforward_layernorm", + weights=weights, + eps=config.rms_norm_eps, + ) + self.post_feedforward_layernorm = Gemma2FastRMSNorm.load( + prefix=f"{prefix}.post_feedforward_layernorm", + weights=weights, + eps=config.rms_norm_eps, + ) + + def forward( + self, + hidden_states, + residual, + cos, + sin, + cu_seqlen_prefill, + kv_cache, + block_tables, + slots, + input_lengths, + max_s, + ): + normed_hidden_states, res = self.input_layernorm(hidden_states, residual) + + # Self Attention + attn_output = self.self_attn( + normed_hidden_states, + cos, + sin, + cu_seqlen_prefill, + kv_cache, + block_tables, + slots, + input_lengths, + max_s, + ) + + # faster post attention rms norm + normed_attn_res_output, _ = self.post_attention_layernorm(attn_output) + normed_attn_res_output = normed_attn_res_output + res + res = normed_attn_res_output + + pre_normed, _ = self.pre_feedforward_layernorm(normed_attn_res_output) + mlp_output = self.mlp(pre_normed) + post_hidden_states, _ = self.post_feedforward_layernorm(mlp_output) + + return post_hidden_states, normed_attn_res_output + + +class FlashGemma2Model(torch.nn.Module): + def __init__(self, prefix, config, weights, causal: bool): + super().__init__() + + process_group = weights.process_group + self.tp_rank = process_group.rank() + self.tp_world_size = process_group.size() + self.layers = nn.ModuleList( + [ + FlashGemma2Layer( + prefix=f"{prefix}.layers.{layer_id}", + config=config, + weights=weights, + causal=causal, + is_sliding=layer_id % 2 == 0, + ) + for layer_id in range(config.num_hidden_layers) + ] + ) + self.norm = Gemma2FastRMSNorm.load( + prefix=f"{prefix}.norm", weights=weights, eps=config.rms_norm_eps + ) + + self.head_size = self.layers[0].self_attn.head_size + self.num_heads = self.layers[0].self_attn.num_heads + self.num_key_value_heads = self.layers[0].self_attn.num_key_value_heads + + def forward( + self, + inputs_embeds: torch.Tensor, + position_ids: torch.Tensor, + cu_seqlen_prefill: Optional[torch.Tensor], + kv_cache: List[Tuple[torch.Tensor, torch.Tensor]], + block_tables: torch.Tensor, + slots: torch.Tensor, + input_lengths: torch.Tensor, + max_s: int, + ) -> torch.Tensor: + hidden_states = inputs_embeds + + # Get rotary cos and sin for this forward + # Avoid to index in each layer + cos, sin = self.layers[0].self_attn.rotary_emb.get_cos_sin( + position_ids, max_s, hidden_states.dtype + ) + + residual = None + for i, layer in enumerate(self.layers): + hidden_states, residual = layer( + hidden_states, + residual, + cos, + sin, + cu_seqlen_prefill, + kv_cache[i], + block_tables, + slots, + input_lengths, + max_s, + ) + + hidden_states, _ = self.norm(hidden_states, residual) + + return hidden_states + + +class FlashGemma2ForCausalLM(torch.nn.Module): + def __init__(self, prefix, config, weights, causal: bool): + super().__init__() + + embed_norm = config.hidden_size**0.5 + if not prefix: + prefix = "model" + else: + prefix = f"{prefix}.model" + + self.embed_tokens = TensorParallelEmbedding( + prefix=f"{prefix}.embed_tokens", weights=weights + ) + self.embed_tokens.weight *= embed_norm + + self.model = FlashGemma2Model( + prefix=prefix, config=config, weights=weights, causal=causal + ) + self.lm_head = SpeculativeHead.load( + prefix=( + f"{prefix}.embed_tokens" + if config.tie_word_embeddings + else f"{prefix}.lm_head" + ), + config=config, + weights=weights, + ) + + def forward( + self, + input_ids: torch.Tensor, + position_ids: torch.Tensor, + cu_seqlen_prefill: Optional[torch.Tensor], + kv_cache: List[Tuple[torch.Tensor, torch.Tensor]], + block_tables: torch.Tensor, + slots: torch.Tensor, + input_lengths: torch.Tensor, + max_s: int, + prefill_cache_indices: Optional[torch.Tensor], + lm_head_indices: Optional[torch.Tensor] = None, + adapter_data: Optional[torch.Tensor] = None, + ) -> Tuple[torch.Tensor, Optional[torch.Tensor]]: + input_embeds = self.embed_tokens(input_ids) + hidden_states = self.model( + input_embeds, + position_ids, + cu_seqlen_prefill, + kv_cache, + block_tables, + slots, + input_lengths, + max_s, + ) + if lm_head_indices is not None: + hidden_states = hidden_states[lm_head_indices] + logits, speculative_logits = self.lm_head(hidden_states) + return logits, speculative_logits diff --git a/server/text_generation_server/models/custom_modeling/flash_gemma_modeling.py b/server/text_generation_server/models/custom_modeling/flash_gemma_modeling.py index a4fd4740..82891823 100644 --- a/server/text_generation_server/models/custom_modeling/flash_gemma_modeling.py +++ b/server/text_generation_server/models/custom_modeling/flash_gemma_modeling.py @@ -375,8 +375,6 @@ class FlashGemmaModel(torch.nn.Module): prefix=f"{prefix}.norm", weights=weights, eps=config.rms_norm_eps ) - self.gradient_checkpointing = False - self.head_size = self.layers[0].self_attn.head_size self.num_heads = self.layers[0].self_attn.num_heads self.num_key_value_heads = self.layers[0].self_attn.num_key_value_heads diff --git a/server/text_generation_server/models/custom_modeling/llava_next.py b/server/text_generation_server/models/custom_modeling/llava_next.py index 9a670140..6d38442c 100644 --- a/server/text_generation_server/models/custom_modeling/llava_next.py +++ b/server/text_generation_server/models/custom_modeling/llava_next.py @@ -39,7 +39,7 @@ def get_anyres_image_grid_shape(image_size, grid_pinpoints, patch_size): Args: image_size (`tuple`): - The size of the input image in the format (width, height). + The size of the input image in the format (height, width). grid_pinpoints (`List`): A list containing possible resolutions. Each item in the list should be a tuple or list of the form `(height, width)`. @@ -47,7 +47,7 @@ def get_anyres_image_grid_shape(image_size, grid_pinpoints, patch_size): The size of each image patch. Returns: - tuple: The shape of the image patch grid in the format (width, height). + tuple: The shape of the image patch grid in the format (height, width). """ if not isinstance(grid_pinpoints, list): raise ValueError("grid_pinpoints should be a list of tuples or lists") @@ -230,7 +230,10 @@ class LlavaNextForConditionalGeneration(nn.Module): raise ValueError( "The number of patches is not consistent with the image size." ) - num_patch_height, num_patch_width = get_anyres_image_grid_shape( + + # Dimensions are intentionally swapped to be bug-compatible with + # upstream: https://github.com/LLaVA-VL/LLaVA-NeXT/issues/59 + num_patch_width, num_patch_height = get_anyres_image_grid_shape( image_sizes[image_idx], self.config.image_grid_pinpoints, self.config.vision_config.image_size, diff --git a/server/text_generation_server/models/flash_causal_lm.py b/server/text_generation_server/models/flash_causal_lm.py index f7678762..a0a78b33 100644 --- a/server/text_generation_server/models/flash_causal_lm.py +++ b/server/text_generation_server/models/flash_causal_lm.py @@ -28,8 +28,12 @@ from text_generation_server.models.types import ( GeneratedText, ) from text_generation_server.pb import generate_pb2 -from text_generation_server.models.globals import MEM_POOL, CUDA_GRAPHS -import text_generation_server.models.globals as tgi_globals +from text_generation_server.models.globals import ( + MEM_POOL, + CUDA_GRAPHS, + get_adapter_to_index, + MODEL_ID, +) from text_generation_server.utils import StoppingCriteria, HeterogeneousNextTokenChooser from text_generation_server.utils.dist import MEMORY_FRACTION from text_generation_server.utils.segments import SegmentConcatBuilder, find_segments @@ -233,7 +237,8 @@ class FlashCausalLMBatch(Batch): stopping_criterias.append(stopping_criteria) top_n_tokens.append(r.top_n_tokens) - adapter_index = tgi_globals.ADAPTER_TO_INDEX.get(r.adapter_id, 0) + ADAPTER_TO_INDEX = get_adapter_to_index() + adapter_index = ADAPTER_TO_INDEX.get(r.adapter_id, 0) adapter_indices_list.append(torch.full((input_length,), adapter_index)) adapter_set.add(adapter_index) @@ -499,9 +504,8 @@ class FlashCausalLMBatch(Batch): top_n_tokens.append(self.top_n_tokens[idx]) - adapter_index = tgi_globals.ADAPTER_TO_INDEX.get( - self.requests[idx].adapter_id, 0 - ) + ADAPTER_TO_INDEX = get_adapter_to_index() + adapter_index = ADAPTER_TO_INDEX.get(self.requests[idx].adapter_id, 0) adapter_set.add(adapter_index) remaining_tokens = ( @@ -1017,7 +1021,7 @@ class FlashCausalLM(Model): tunableop_filepath = os.path.join( HUGGINGFACE_HUB_CACHE, - f"tunableop_{tgi_globals.MODEL_ID.replace('/', '-')}_tp{self.world_size}_rank{self.rank}.csv", + f"tunableop_{MODEL_ID.replace('/', '-')}_tp{self.world_size}_rank{self.rank}.csv", ) logger.info( diff --git a/server/text_generation_server/models/flash_gemma2.py b/server/text_generation_server/models/flash_gemma2.py new file mode 100644 index 00000000..9608113b --- /dev/null +++ b/server/text_generation_server/models/flash_gemma2.py @@ -0,0 +1,75 @@ +import torch +import torch.distributed + +from opentelemetry import trace +from typing import Optional +from transformers import PretrainedConfig, AutoTokenizer + +from text_generation_server.models import FlashCausalLM +from text_generation_server.models.custom_modeling.flash_gemma2_modeling import ( + FlashGemma2ForCausalLM, +) +from text_generation_server.utils import ( + initialize_torch_distributed, + weight_files, + Weights, +) + +tracer = trace.get_tracer(__name__) + + +class FlashGemma2(FlashCausalLM): + def __init__( + self, + model_id: str, + revision: Optional[str] = None, + quantize: Optional[str] = None, + speculator: Optional[str] = None, + dtype: Optional[torch.dtype] = None, + trust_remote_code: bool = False, + ): + self.process_group, rank, world_size = initialize_torch_distributed() + if torch.cuda.is_available(): + device = torch.device(f"cuda:{rank}") + dtype = torch.bfloat16 if dtype is None else dtype + else: + raise NotImplementedError("FlashGemma2 is only available on GPU") + + tokenizer = AutoTokenizer.from_pretrained( + model_id, + revision=revision, + padding_side="left", + truncation_side="left", + trust_remote_code=trust_remote_code, + ) + + config = PretrainedConfig.from_pretrained( + model_id, revision=revision, trust_remote_code=trust_remote_code + ) + config.quantize = quantize + config.speculator = speculator + + torch.distributed.barrier(group=self.process_group) + + filenames = weight_files(model_id, revision=revision, extension=".safetensors") + weights = Weights(filenames, device, dtype, process_group=self.process_group) + if config.quantize in ["gptq", "awq", "marlin"]: + weights._set_gptq_params(model_id, revision) + + # TODO hardcoded + prefix = "" + model = FlashGemma2ForCausalLM(prefix, config, weights, causal=True) + + torch.distributed.barrier(group=self.process_group) + super(FlashGemma2, self).__init__( + model_id=model_id, + model=model, + tokenizer=tokenizer, + num_layers=len(model.model.layers), + num_kv_heads=model.model.num_key_value_heads, + head_size=model.model.head_size, + dtype=dtype, + device=device, + rank=rank, + world_size=world_size, + ) diff --git a/server/text_generation_server/models/globals.py b/server/text_generation_server/models/globals.py index cc2f172a..bde86e6e 100644 --- a/server/text_generation_server/models/globals.py +++ b/server/text_generation_server/models/globals.py @@ -44,3 +44,8 @@ ADAPTER_TO_INDEX: Dict[str, int] = None def set_adapter_to_index(adapter_to_index: Dict[str, int]): global ADAPTER_TO_INDEX ADAPTER_TO_INDEX = adapter_to_index + + +def get_adapter_to_index(): + global ADAPTER_TO_INDEX + return ADAPTER_TO_INDEX diff --git a/server/text_generation_server/models/pali_gemma.py b/server/text_generation_server/models/pali_gemma.py index e883ce02..a167e467 100644 --- a/server/text_generation_server/models/pali_gemma.py +++ b/server/text_generation_server/models/pali_gemma.py @@ -39,7 +39,9 @@ class PaliGemmaBatch(VlmCausalLMBatch): # TODO do_convert_RGB should be on by default ? image = image.convert("RGB") image_input = processor.image_processor(image, return_tensors="pt") - full_text += image_text_replacement(image_input, config, image_id) + full_text += image_text_replacement( + processor, image_input, config, image_id + ) image_inputs.append(image_input) else: raise RuntimeError(f"Invalid chunk type {chunk_type}") diff --git a/server/text_generation_server/models/vlm_causal_lm.py b/server/text_generation_server/models/vlm_causal_lm.py index 218d1167..1cdf37ea 100644 --- a/server/text_generation_server/models/vlm_causal_lm.py +++ b/server/text_generation_server/models/vlm_causal_lm.py @@ -1,3 +1,4 @@ +from itertools import repeat import torch from PIL import Image from io import BytesIO @@ -15,6 +16,9 @@ from text_generation_server.models.flash_mistral import ( tracer = trace.get_tracer(__name__) +IDEFICS2_FAKE_TOKEN = "" +IDEFICS2_IMAGE_TOKEN = "" + def get_anyres_image_grid_shape(image_size, grid_pinpoints, patch_size): """ @@ -22,7 +26,7 @@ def get_anyres_image_grid_shape(image_size, grid_pinpoints, patch_size): Args: image_size (`tuple`): - The size of the input image in the format (width, height). + The size of the input image in the format (height, width). grid_pinpoints (`List`): A list containing possible resolutions. Each item in the list should be a tuple or list of the form `(height, width)`. @@ -39,15 +43,13 @@ def get_anyres_image_grid_shape(image_size, grid_pinpoints, patch_size): return height // patch_size, width // patch_size -def image_text_replacement(image_input, config, image_id) -> str: +def image_text_replacement(processor, image_input, config, image_id: int) -> str: if config.model_type == "idefics2": - # TODO technically depends on image splitting which is not implemented. - num_features = 320 - return ( - "" - + "" * num_features - + "" - ) + image_seq_len = 64 + image_str = f"{IDEFICS2_FAKE_TOKEN}{IDEFICS2_IMAGE_TOKEN * image_seq_len}{IDEFICS2_FAKE_TOKEN}" + if processor.image_processor.do_image_splitting: + image_str *= 5 + return image_str elif config.model_type == "llava_next": height, width = image_input["image_sizes"][image_id] num_features = get_number_of_features(height, width, config) @@ -64,20 +66,35 @@ def image_text_replacement(image_input, config, image_id) -> str: raise RuntimeError(f"Unknown config {config.model_type} for multimodal") +def image_text_replacement_fixup(config, text: str) -> str: + if config.model_type == "idefics2": + return text.replace( + f"{IDEFICS2_FAKE_TOKEN}{IDEFICS2_FAKE_TOKEN}", IDEFICS2_FAKE_TOKEN + ) + return text + + def get_unpadded_features( - height: int, width: int, npatches: int, num_patch_height: int, num_patch_width: int + original_height: int, + original_width: int, + npatches: int, + num_patch_height: int, + num_patch_width: int, ) -> Tuple[int, int]: current_height = npatches * num_patch_height current_width = npatches * num_patch_width - aspect_ratio: float = width / height + aspect_ratio: float = original_width / original_height current_aspect_ratio: float = current_width / current_height + if aspect_ratio > current_aspect_ratio: - new_height = (height * current_width) // width - current_height = new_height + new_height = (original_height * current_width) // original_width + padding = (current_height - new_height) // 2 + current_height = current_height - (2 * padding) else: - new_width = (width * current_height) // height - current_width = new_width + new_width = (original_width * current_height) // original_height + padding = (current_width - new_width) // 2 + current_width = current_width - (2 * padding) unpadded_features = current_height * current_width newline_features = current_height @@ -96,7 +113,9 @@ def get_number_of_features(height: int, width: int, config) -> int: npatches = image_size // patch_size - num_patch_height, num_patch_width = get_anyres_image_grid_shape( + # Dimensions are intentionally swapped to be bug-compatible with + # upstream: https://github.com/LLaVA-VL/LLaVA-NeXT/issues/59 + num_patch_width, num_patch_height = get_anyres_image_grid_shape( [height, width], image_grid_pinpoints, image_size, @@ -168,9 +187,13 @@ class VlmCausalLMBatch(FlashCausalLMBatch): if chunk_type == "text": full_text += chunk.text elif chunk_type == "image": - full_text += image_text_replacement(image_inputs, config, image_id) + full_text += image_text_replacement( + processor, image_inputs, config, image_id + ) image_id += 1 + full_text = image_text_replacement_fixup(config, full_text) + batch_inputs.append(full_text) max_truncation = max(max_truncation, r.truncate)