llm-engine icon indicating copy to clipboard operation
llm-engine copied to clipboard

Control frequency - completion

Open Stealthwriter opened this issue 2 years ago • 3 comments

Hi,

Is there a way to change the frequency_penality or logit bias when sending a completion request?

Stealthwriter avatar Sep 14 '23 11:09 Stealthwriter

Hi @Stealthwriter , thanks for reaching out. Yes, you can basically route any API changes through to the underlying inference framework(s) we use, assuming they support the fields you need. For instance, we currently support https://github.com/scaleapi/open-tgi (forked from text-generation-inference v0.9.4) and vLLM. Would you like to try making the change yourself?

yixu34 avatar Sep 18 '23 18:09 yixu34

How does llm engine differs from TGI and VLLM?

Stealthwriter avatar Sep 18 '23 18:09 Stealthwriter

You can think of LLM Engine as adding 1) a set of higher-level abstractions (e.g. APIs are expressed in terms of Completions and Fine-tunes) and 2) autoscaling via k8s. TGI and vLLM are great but you have to bring your own scaling.

yixu34 avatar Sep 18 '23 21:09 yixu34