#The total token limit at 131

1 messages · Page 1 of 1 (latest)

feral wagon
#

I use vLLM and set max model length to 8000 a2048 but out is just 131 (total out + in ), although i have set max tokens to 2048. I try with 2 models and result is the same.

oblique plumeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

heavy hemlock
#

Hi, you need to use the right input for max output token

#
{
  "input": {
    "messages": [
      {
        "role": "system",
        "content": "Your are an ai assistant."
      },
      {
        "role": "user",
        "content": "Explain llm models"
      }
    ],
"sampling_params": {
    "max_tokens": 3000,
    "temperature": 0.7,
    "top_p": 0.95,
    "n": 1,
    "stream": false,
    "stop": [],
    "presence_penalty": 0,
    "frequency_penalty": 0,
    "logit_bias": {},
    "best_of": 1
}
  }
}
#

Something like this, feel free to modify it

#

It should be the max tokens inside the sampling params

wanton torrent
#

does runpod do json schema validation

#

why did that invalid JSON not cause an error

heavy hemlock
#

Which?

#

Oh for vllm's unknown input right?

#

Hmm yea interesting does runpod checks them

wanton torrent
#

it should return 4xx error

#

(if they do validation stuff)

heavy hemlock
#

I see yeah should be that way

wanton torrent
#

5xx: uh oh i messed up

#

3xx: go somewhere else

heavy hemlock
#

Actually, i checked i don't see any validate() calls in vllm worker

wanton torrent
#

that's unfortunate