LLMLingua icon indicating copy to clipboard operation
LLMLingua copied to clipboard

[Question]: Support for Aleph Alpha Luminous Models via API

Open ulan-yisaev opened this issue 1 year ago • 3 comments

Describe the issue

I propose integrating Aleph Alpha's Luminous models through their API into LLMLingua to address performance concerns with local model execution. Aleph Alpha supports returning logprobs for both prompts and generated text:

https://docs.aleph-alpha.com/api/complete/

**echo**
boolean
Default value: false
Echo the prompt in the completion. This may be especially helpful when log_probs is set to return logprobs for the prompt.

**log_probs**
integer
NULLABLE
Number of top log probabilities for each token generated. Log probabilities can be used in downstream tasks or to assess the model's certainty when producing tokens. No log probabilities are returned if set to None. Log probabilities of generated tokens are returned if set to 0. Log probabilities of generated tokens and top n log probabilities are returned if set to n.

This integration could significantly speed up executions compared to running default models locally, aligning with similar interests shown in issue #70

ulan-yisaev avatar Mar 25 '24 19:03 ulan-yisaev

Hi @ulan-yisaev, thank you for your support and information.

We will soon support the use of the Azure API for LLMLingua. Afterwards, we can extend the corresponding endpoint to other platforms. Thank you once again for your information.

iofu728 avatar Mar 26 '24 01:03 iofu728

Hi @iofu728, thank you for your response and the update on supporting Azure API for LLMLingua. To prepare for extending LLMLingua to other platforms, could you please share - if exists - any examples or templates for implementing web-based LLM APIs with LLMLingua? This information would be incredibly helpful as I'm eager to start integrating Aleph Alpha's API in a similar manner for my project.

ulan-yisaev avatar Mar 26 '24 06:03 ulan-yisaev

any update on this?

bardusco avatar Jul 15 '24 17:07 bardusco