Skip to content
Merged
Show file tree
Hide file tree
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: 9 additions & 5 deletions libs/infinity_emb/infinity_emb/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,15 @@ def cli():
"--show-completion",
"--install-completion",
]:
logger.critical(
"Error: No command given. Please use infinity with the `v2` command. "
f"This is deprecated since 0.0.32. You are on {infinity_emb.__version__}"
"Usage: `infinity_emb v2 --model-id BAAI/bge-large-en-v1.5"
)
if len(sys.argv) == 1 or sys.argv[1] not in ["v1", "v2", "help", "--help"]:
logger.error(
"Error: No command given. Please use infinity with the `v2` command. "
f"This is deprecated since 0.0.32. You are on {infinity_emb.__version__}. "
"Usage: `infinity_emb v2 --model-id BAAI/bge-large-en-v1.5. "
"defaulting to `v2` since 0.0.75. Please pin your revision for future upgrades."
)
Comment on lines +392 to +398
Copy link
Contributor

Choose a reason for hiding this comment

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

syntax: The error message has a missing closing quote after BAAI/bge-large-en-v1.5


sys.argv.insert(1, "v2")
Copy link

@datavistics datavistics Jan 23, 2025

Choose a reason for hiding this comment

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

Will this take args from the env vars then?
I believe it will just like this:
https://huggingface.co/spaces/michaelfeil/infinity/blob/main/Dockerfile

Copy link
Owner Author

Choose a reason for hiding this comment

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

you can just run the docker file without the v2 command!

tp()


Expand Down
2 changes: 1 addition & 1 deletion libs/infinity_emb/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[tool.poetry]
name = "infinity_emb"
version = "0.0.74"
version = "0.0.75"
description = "Infinity is a high-throughput, low-latency REST API for serving text-embeddings, reranking models and clip."
authors = ["michaelfeil <noreply@michaelfeil.eu>"]
license = "MIT"
Expand Down
Loading