Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
261c9ba
add changes for 3.13 support
wirthual Jun 23, 2025
4be6b00
add 4.6 for ctranslate2
wirthual Jun 23, 2025
cad5345
fix scikit learn version with support for 3.13 in pyproject.toml
wirthual Jun 23, 2025
de0541b
add lock fule
wirthual Jun 23, 2025
b5e170a
fix linting
wirthual Jun 23, 2025
44adb24
remove configue dependency since prob not used
wirthual Jun 23, 2025
db4a5c0
update torch versio
wirthual Jun 23, 2025
29eb608
update poetry
wirthual Jun 23, 2025
921ad56
fix onnxruntime for 3.13 if optimum is installed
wirthual Jun 24, 2025
ded19a8
add lock
wirthual Jun 24, 2025
7858414
skip lock files for spell check, since they are auto generated
wirthual Jun 24, 2025
6332d5f
regenerate lock
wirthual Jun 24, 2025
3b16aa7
use relevance_score
wirthual Jun 24, 2025
d57e62f
use relevance_score
wirthual Jun 24, 2025
9e2b7e6
use relevance_score
wirthual Jun 24, 2025
b812aff
use relevance_score
wirthual Jun 24, 2025
e1d58dd
make poetry verbose
wirthual Jun 25, 2025
c410abc
change vvv
wirthual Jun 25, 2025
e4096c3
merge back master
wirthual Aug 26, 2025
2361437
lock with newer version
wirthual Aug 26, 2025
0292514
update poetry version
wirthual Aug 26, 2025
c21e207
remove explicit primary source
wirthual Aug 26, 2025
ba8b043
update command
wirthual Aug 26, 2025
bd18372
Merge branch 'main' into 313-support
michaelfeil Aug 28, 2025
cb4ba70
regenerate lock
wirthual Aug 28, 2025
2a64e15
Merge branch '313-support' of github.com:michaelfeil/infinity into 31…
wirthual Aug 28, 2025
f55ac5e
Merge remote-tracking branch 'origin/main' into 313-support
wirthual Aug 28, 2025
d9e6929
update needed deps
wirthual Aug 29, 2025
e308fee
expand marker
wirthual Aug 29, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ concurrency:
cancel-in-progress: true

env:
POETRY_VERSION: "1.8.4"
POETRY_VERSION: "2.1.3"
WORKDIR: "libs/infinity_emb"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [main]

env:
POETRY_VERSION: "1.8.4"
POETRY_VERSION: "2.1.3"

jobs:
generate-client:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
default: "--extras all --with test,lint,codespell"

env:
POETRY_VERSION: "1.8.4"
POETRY_VERSION: "2.1.3"
WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }}

# This env var allows us to get inline annotations when ruff has complaints.
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
poetry lock --check
poetry check --lock

- name: Install dependencies
# Also installs dev/lint/test/typing dependencies, to ensure we have
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types: [published]

env:
POETRY_VERSION: "1.8.4"
POETRY_VERSION: "2.1.3"

jobs:
publish-to-pypi:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types: [published]

env:
POETRY_VERSION: "1.8.4"
POETRY_VERSION: "2.1.3"
WORKDIR: "libs/infinity_emb"

jobs:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ on:
description: 'Extra poetry commands to run'
required: false
type: string
default: "--extras all --with test"
default: "--extras all --with test -vvv"


env:
POETRY_VERSION: "1.8.4"
POETRY_VERSION: "2.1.3"


jobs:
Expand All @@ -31,7 +31,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest] # macos-latest
python-version:
- "3.12"
- "3.13"
coverage_tests: ["unit_test", "end_to_end"]

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -105,6 +105,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
coverage_tests: ["unit_test", "end_to_end"]

runs-on: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions libs/embed_package/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ poetry_check:
poetry check

spell_check:
poetry run codespell --toml pyproject.toml
poetry run codespell --toml pyproject.toml --skip="*.lock"

spell_fix:
poetry run codespell --toml pyproject.toml -w
poetry run codespell --toml pyproject.toml -w --skip="*.lock"

benchmark_embed: tests/data/benchmark/benchmark_embed.json
ab -n 10 -c 10 -l -s 480 \
Expand Down
6 changes: 3 additions & 3 deletions libs/embed_package/embed/_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Collection, Literal, Union

from infinity_emb import EngineArgs, SyncEngineArray # type: ignore
from infinity_emb.infinity_server import AutoPadding
from infinity_emb.cli import AutoPadding

__all__ = ["BatchedInference"]

Expand Down Expand Up @@ -157,8 +157,8 @@ def rerank(
>>> rerank_result = ei.rerank(model_id="mixedbread-ai/mxbai-rerank-xsmall-v1", query="Where is Paris?", docs=docs)
>>> type(rerank_result)
<class 'concurrent.futures._base.Future'>
>>> [round(score, 3) for score in rerank_result.result()[0]]
[0.288, 0.742, 0.022]
>>> [round(score.relevance_score, 3) for score in sorted(rerank_result.result()[0], key=lambda score: score.index, reverse=False)]
[np.float64(0.288), np.float64(0.742), np.float64(0.022)]
>>> ei.stop()
"""
return self._engine_array.rerank(model=model_id, query=query, docs=docs)
4,263 changes: 2,431 additions & 1,832 deletions libs/embed_package/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions libs/embed_package/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ priority = "explicit"

[tool.poetry.dependencies]
python = ">=3.9,<4"
# infinity_emb = {path = "../infinity_emb", extras = ["optimum","vision","torch","audio"]}
infinity_emb = {version = "0.0.58", extras = ["optimum","vision","torch","audio"]}
infinity_emb = {path = "../infinity_emb", extras = ["optimum","vision","torch","audio"]}
#infinity_emb = {version = "0.0.58", extras = ["optimum","vision","torch","audio"]}
[tool.poetry.group.test.dependencies]
pytest = "^8.0.0"
coverage = {extras = ["toml"], version = "^7.6.3"}
Expand Down
4 changes: 2 additions & 2 deletions libs/infinity_emb/Dockerfile.amd_auto
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ WORKDIR /app

FROM base AS builder
# Set the working directory for the app
# Define the version of Poetry to install (default is 1.8.4)
# Define the version of Poetry to install (default is 2.1.3)
# Define the directory to install Poetry to (default is /opt/poetry)
ARG POETRY_VERSION=1.8.4
ARG POETRY_VERSION=2.1.3
ARG POETRY_HOME=/opt/poetry
# Create a Python virtual environment for Poetry and install it
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=$POETRY_HOME POETRY_VERSION=$POETRY_VERSION $PYTHON -
Expand Down
4 changes: 2 additions & 2 deletions libs/infinity_emb/Dockerfile.cpu_auto
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ WORKDIR /app

FROM base AS builder
# Set the working directory for the app
# Define the version of Poetry to install (default is 1.8.4)
# Define the version of Poetry to install (default is 2.1.3)
# Define the directory to install Poetry to (default is /opt/poetry)
ARG POETRY_VERSION=1.8.4
ARG POETRY_VERSION=2.1.3
ARG POETRY_HOME=/opt/poetry
# Create a Python virtual environment for Poetry and install it
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=$POETRY_HOME POETRY_VERSION=$POETRY_VERSION $PYTHON -
Expand Down
4 changes: 2 additions & 2 deletions libs/infinity_emb/Dockerfile.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ WORKDIR /app

FROM base AS builder
# Set the working directory for the app
# Define the version of Poetry to install (default is 1.8.4)
# Define the version of Poetry to install (default is 2.1.3)
# Define the directory to install Poetry to (default is /opt/poetry)
ARG POETRY_VERSION=1.8.4
ARG POETRY_VERSION=2.1.3
ARG POETRY_HOME=/opt/poetry
# Create a Python virtual environment for Poetry and install it
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=$POETRY_HOME POETRY_VERSION=$POETRY_VERSION $PYTHON -
Expand Down
4 changes: 2 additions & 2 deletions libs/infinity_emb/Dockerfile.nvidia_auto
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ WORKDIR /app

FROM base AS builder
# Set the working directory for the app
# Define the version of Poetry to install (default is 1.8.4)
# Define the version of Poetry to install (default is 2.1.3)
# Define the directory to install Poetry to (default is /opt/poetry)
ARG POETRY_VERSION=1.8.4
ARG POETRY_VERSION=2.1.3
ARG POETRY_HOME=/opt/poetry
# Create a Python virtual environment for Poetry and install it
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=$POETRY_HOME POETRY_VERSION=$POETRY_VERSION $PYTHON -
Expand Down
4 changes: 2 additions & 2 deletions libs/infinity_emb/Dockerfile.trt_onnx_auto
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ WORKDIR /app

FROM base AS builder
# Set the working directory for the app
# Define the version of Poetry to install (default is 1.8.4)
# Define the version of Poetry to install (default is 2.1.3)
# Define the directory to install Poetry to (default is /opt/poetry)
ARG POETRY_VERSION=1.8.4
ARG POETRY_VERSION=2.1.3
ARG POETRY_HOME=/opt/poetry
# Create a Python virtual environment for Poetry and install it
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=$POETRY_HOME POETRY_VERSION=$POETRY_VERSION $PYTHON -
Expand Down
Loading
Loading