Skip to content

Commit

Permalink
Merge pull request #98 from wilhelm-lab/ll_unispec
Browse files Browse the repository at this point in the history
Add unispec to Koina
  • Loading branch information
LLautenbacher authored Jul 31, 2024
2 parents 3a863ae + 00f4c37 commit b537c2e
Show file tree
Hide file tree
Showing 19 changed files with 8,755 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added clients/python/test/UniSpec/arr-usprocess-mz.npy
Binary file not shown.
Binary file not shown.
Binary file not shown.
23 changes: 23 additions & 0 deletions clients/python/test/UniSpec/test_unispec23.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from test.server_config import SERVER_GRPC, SERVER_HTTP
from pathlib import Path
from test.lib import (
lib_test_available_grpc,
lib_test_available_http,
lib_test_inference,
)


# To ensure MODEL_NAME == test_<filename>.py
MODEL_NAME = Path(__file__).stem.replace("test_", "")


def test_available_http():
lib_test_available_http(MODEL_NAME, SERVER_HTTP)


def test_available_grpc():
lib_test_available_grpc(MODEL_NAME, SERVER_GRPC)


def test_inference():
lib_test_inference(MODEL_NAME, SERVER_GRPC)
23 changes: 23 additions & 0 deletions clients/python/test/UniSpec/test_usprocess.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from test.server_config import SERVER_GRPC, SERVER_HTTP
from pathlib import Path
from test.lib import (
lib_test_available_grpc,
lib_test_available_http,
lib_test_inference,
)


# To ensure MODEL_NAME == test_<filename>.py
MODEL_NAME = Path(__file__).stem.replace("test_", "")


def test_available_http():
lib_test_available_http(MODEL_NAME, SERVER_HTTP)


def test_available_grpc():
lib_test_available_grpc(MODEL_NAME, SERVER_GRPC)


def test_inference():
lib_test_inference(MODEL_NAME, SERVER_GRPC)
2 changes: 2 additions & 0 deletions models/UniSpec/unispec23/1/.zenodo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://zenodo.org/records/10391561/files/model.zip?download=1
md5:c8b1fcc14e43bb5ebbb91421fda8227a
17 changes: 17 additions & 0 deletions models/UniSpec/unispec23/config.pbtxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "unispec23"
backend: "pytorch"
max_batch_size: 1000
input [
{
name: 'input_tensor',
data_type: TYPE_FP32,
dims: [38, 40]
}
]
output [
{
name: 'intensities',
data_type: TYPE_FP32,
dims: [ 7918 ]
}
]
Loading

0 comments on commit b537c2e

Please sign in to comment.