This project is a web-based LLM (Large Language Model) chat tool developed using Rust, the Dioxus framework, and the Candle framework. It supports multiple open-source LLM models and features dynamic model loading architecture. Each LLM operates as an independent process and communicates via ipc_channel
Rust
101
47 commits
updated Aug 3, 2024
Moonweb: LLM Chat Tool
Welcome to Moonweb, a web chat tool developed with Rust, Dioxus, and Candle frameworks that supports a variety of open-source Large Language Models (LLMs). This project aims to provide a dynamic and flexible platform for integrating and testing different LLMs.
Features
The model services that have been implemented are as follows:
Quick Start
Install Rust: Ensure that Rust is installed on your system. Visit the Rust official website for installation instructions.
Install Dioxus: dioxus is a react and vue like web framework. Visit the document of dioxus.
Clone the Repository: Clone the Moonweb project to your local machine using Git.
git clone https://github.com/ Lyn-liyuan/moonweb.git
Build the Project: Navigate to the project directory and build the project using Cargo.
cd moonweb
cargo build
If you want to use the load command to start model services in the models directory, you need to compile these services first. Navigate to the directories containing the Cargo.toml files and execute cargo build --release to compile these services. After the compilation is complete, set the program in the server.config file to the executable file of the compiled model service.
Before compiling the pyworker model service, you need to specify the Python interpreter used by the Python code via the environment variable PYO3_PYTHON. You can activate the Python environment with conda activate my_env and set the environment variable using export PYO3_PYTHON=$(which python).
cargo run –-release -- --server master
dx build --release
Architecture Overview
Model Integration
To integrate a new LLM model, follow these steps:
Update Records
Contributing
We welcome contributions in any form, including but not limited to:
License
This project is licensed under the "MIT License".
Contact
47 commits
Rust
62.9%
CSS
26.1%
JavaScript
5.6%
Python
4.7%
This project is a web-based LLM (Large Language Model) chat tool developed using Rust, the Dioxus framework, and the Candle framework. It supports multiple open-source LLM models and features dynamic model loading architecture. Each LLM operates as an independent process and communicates via ipc_channel
Rust
101
47 commits
updated Aug 3, 2024
Moonweb: LLM Chat Tool
Welcome to Moonweb, a web chat tool developed with Rust, Dioxus, and Candle frameworks that supports a variety of open-source Large Language Models (LLMs). This project aims to provide a dynamic and flexible platform for integrating and testing different LLMs.
Features
The model services that have been implemented are as follows:
Quick Start
Install Rust: Ensure that Rust is installed on your system. Visit the Rust official website for installation instructions.
Install Dioxus: dioxus is a react and vue like web framework. Visit the document of dioxus.
Clone the Repository: Clone the Moonweb project to your local machine using Git.
git clone https://github.com/ Lyn-liyuan/moonweb.git
Build the Project: Navigate to the project directory and build the project using Cargo.
cd moonweb
cargo build
If you want to use the load command to start model services in the models directory, you need to compile these services first. Navigate to the directories containing the Cargo.toml files and execute cargo build --release to compile these services. After the compilation is complete, set the program in the server.config file to the executable file of the compiled model service.
Before compiling the pyworker model service, you need to specify the Python interpreter used by the Python code via the environment variable PYO3_PYTHON. You can activate the Python environment with conda activate my_env and set the environment variable using export PYO3_PYTHON=$(which python).
cargo run –-release -- --server master
dx build --release
Architecture Overview
Model Integration
To integrate a new LLM model, follow these steps:
Update Records
Contributing
We welcome contributions in any form, including but not limited to:
License
This project is licensed under the "MIT License".
Contact
47 commits
Rust
62.9%
CSS
26.1%
JavaScript
5.6%
Python
4.7%