-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
141 additions
and
83 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
use clap::Parser; | ||
use rllm::util::parse_with_settings; | ||
|
||
/// Serve LLMs with AICI over HTTP with llama.cpp backend. | ||
#[derive(Parser, Debug)] | ||
#[command(version, about, long_about = None)] | ||
pub struct CppArgs { | ||
#[clap(flatten)] | ||
pub args: rllm::server::RllmCliArgs, | ||
|
||
/// Name of .gguf file inside of the model folder/repo. | ||
#[arg(long, help_heading = "Model")] | ||
pub gguf: Option<String>, | ||
} | ||
|
||
#[actix_web::main] | ||
async fn main() -> () { | ||
rllm::server::server_main().await; | ||
let mut args = parse_with_settings::<CppArgs>(); | ||
args.args.gguf = args.gguf; | ||
rllm::server::server_main(args.args).await; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
use clap::Parser; | ||
use rllm::util::parse_with_settings; | ||
|
||
/// Serve LLMs with AICI over HTTP with tch (torch) backend. | ||
#[derive(Parser, Debug)] | ||
#[command(version, about, long_about = None)] | ||
pub struct DriverArgs { | ||
#[clap(flatten)] | ||
pub args: rllm::server::RllmCliArgs, | ||
} | ||
|
||
#[actix_web::main] | ||
async fn main() -> () { | ||
rllm::server::server_main().await; | ||
let args = parse_with_settings::<DriverArgs>(); | ||
rllm::server::server_main(args.args).await; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters