Repository navigation
How do you think output TPS depends on language of prompt? #267
Replies: 2 comments
|
I tried to set up custom dataset for specific language with 1 prompt for load generation. It seems that metrics are about same, although even little better than in English. P.S. To set up test, I used following parameter: |
|
I haven't run a Ukrainian/French comparison myself, but your follow-up has an important distinction: matching token counts is a different experiment from matching the same amount of text or meaning. With 4096 input / 512 output tokens, you've largely normalized the sequence lengths, so similar throughput is a plausible result; it doesn't establish that the languages have the same cost per paragraph or the same answer quality. The model's tokenizer can split equivalent text into different numbers of tokens (tokenization reference). I'd separate two measurements:
Also, your test repeats one prompt. If prefix caching is enabled, repetitions can reuse the prompt KV cache. That helps prefill/TTFT, not the decode computation itself (vLLM explanation). Use multiple distinct prompts and report cold-cache and warm-cache runs separately; keep warmup and run order consistent. I wouldn't attribute a small TPS difference from that single-prompt run to training-language proportions without these controls. |
Uh oh!
There was an error while loading. Please reload this page.
Models are mostly trained in English. Will it affect performance if prompts are written, for example, in Ukrainian or French?
I don't have a suitable dataset to check it yet. Therefore, it is interesting to know if you have conducted similar experiments?
All reactions