Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/support new backend #138

Merged
merged 3 commits into from
Jul 9, 2024
Merged

Conversation

L-jasmine
Copy link
Collaborator

We plan to use llama-api-server and llama-rag-server as the underlying wasm for a local web server. Therefore, I refactored the Backend code by defining a Trait to support multiple Backend implementations.

Currently, the api-server.wasm cannot be stopped, so the logic in use is still the original setup.

L-jasmine added 3 commits July 8, 2024 11:47
…entation

Signed-off-by: csh <458761603@qq.com>
Signed-off-by: csh <458761603@qq.com>
Signed-off-by: csh <458761603@qq.com>
@L-jasmine L-jasmine requested a review from jmbejar July 8, 2024 14:42
options: LoadModelOptions,
tx: Sender<anyhow::Result<LoadModelResponse>>,
) -> Self;
fn chat(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@L-jasmine Do we expect or plan to have a functionality in Moxin where it would be possible to chat with the model that is loaded behind a local web server? I'm kind of surprised we're adding code for this feature, since it is not what I thought when the local sever commands of the protocol were added.

In any case, I'm not against having this implemented, but I would double check if we really want to support such feature (which could not make sense, because the ability of spawning a local server seems to be more oriented to allow users to experiment with code snippets rather than interacting with the model using the Moxin UI.

Posting here the user interface of LMStudio for the local HTTP servers, just as a reference.

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Michael has just explained the plans in our weekly sync, so I better understand the motivations of these changes. No need to respond again here :)

Copy link
Collaborator

@jmbejar jmbejar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@L-jasmine @juntao Left a comment/question about the overall direction of this type of improvements, but the PR LGTM 🚢

@jmbejar jmbejar merged commit 1297cdb into moxin-org:main Jul 9, 2024
@L-jasmine L-jasmine deleted the feat/support_new_backend branch August 15, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants