microsoft / microsoft/LLMLingua

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

Open
#118 3 comments 0 reactions 1 assignee View on GitHub

@SiyunZhao is already working on this.

Since Mar 26, 2024.

question
Dominant language
Python
Stars
6.7k
Forks
428
Avg merge
2d 4h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.