Skip to content

Commit

Permalink
Merge pull request #438 from michaelfeil/wirthual/add-clip-benchmark
Browse files Browse the repository at this point in the history
add benchmark for clip model
  • Loading branch information
wirthual authored Oct 23, 2024
2 parents 87131a4 + 3553456 commit 02480ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libs/infinity_emb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ benchmark_embed: tests/data/benchmark/benchmark_embed.json
http://127.0.0.1:7997/embeddings
# sudo apt-get apache2-utils

benchmark_embed_vision: tests/data/benchmark/benchmark_embed_image.json
ab -n 10000 -c 10 -l -s 480 \
-T 'application/json' \
-p $< \
http://127.0.0.1:7997/embeddings
# sudo apt-get apache2-utils

# Generate CLI v2 documentation
cli_v2_docs:
./../../docs/assets/create_cli_v2_docs.sh
Expand Down Expand Up @@ -94,4 +101,4 @@ help:
@echo 'test_watch - run unit tests in watch mode'
@echo 'integration_tests - run integration tests'
@echo 'docker_tests - run unit tests in docker'
@echo '-- DOCUMENTATION tasks are from the top-level Makefile --'
@echo '-- DOCUMENTATION tasks are from the top-level Makefile --'
3 changes: 3 additions & 0 deletions libs/infinity_emb/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ markers = [
[tool.ruff]
line-length = 100

[tool.codespell]
skip = "./tests/data/benchmark"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

Large diffs are not rendered by default.

0 comments on commit 02480ab

Please sign in to comment.