Skip to content

Remove default --model-id argument #679

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions router/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
#[derive(Parser, Redact)]
#[clap(author, version, about, long_about = None)]
struct Args {
/// The name of the model to load.
/// Can be a MODEL_ID as listed on <https://hf.co/models> like
/// `BAAI/bge-large-en-v1.5`.
/// Or it can be a local directory containing the necessary files
/// as saved by `save_pretrained(...)` methods of transformers
#[clap(default_value = "BAAI/bge-large-en-v1.5", long, env)]
/// The Hugging Face model ID, can be any model listed on <https://huggingface.co/models> with
/// the `text-embeddings-inference` tag (meaning it's compatible with Text Embeddings
/// Inference)
///
/// Alternatively, the specified ID can also be a path to a local directory containing the
/// necessary model files saved by the `save_pretrained(...)` methods of either Transformers or
/// Sentence Transformers.
#[clap(long, env)]
#[redact(partial)]
model_id: String,

Expand Down
Loading