Skip to content

Commit

Permalink
add microsoft/phi-3-small-8k-instruct, microsoft/phi-3-small-128k-ins…
Browse files Browse the repository at this point in the history
…truct, microsoft/phi-3-medium-4k-instruct and microsoft/phi-3-vision-128k-instruct to set of ChatNVIDIA models
  • Loading branch information
mattf committed May 21, 2024
1 parent 6c5fcd8 commit 3b187fc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
16 changes: 16 additions & 0 deletions libs/ai-endpoints/langchain_nvidia_ai_endpoints/_statics.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,22 @@ class Model(BaseModel):
"model_type": "embedding",
"model_name": "snowflake/arctic-embed-l",
},
"ai-phi-3-small-8k-instruct": {
"model_type": "chat",
"model_name": "microsoft/phi-3-small-8k-instruct",
},
"ai-phi-3-small-128k-instruct": {
"model_type": "chat",
"model_name": "microsoft/phi-3-small-128k-instruct",
},
"ai-phi-3-medium-4k-instruct": {
"model_type": "chat",
"model_name": "microsoft/phi-3-medium-4k-instruct",
},
"ai-phi-3-vision-128k-instruct": {
"model_type": "image_in",
"model_name": "microsoft/phi-3-vision-128k-instruct",
},
}
)

Expand Down
2 changes: 1 addition & 1 deletion libs/ai-endpoints/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langchain-nvidia-ai-endpoints"
version = "0.0.16"
version = "0.0.17"
description = "An integration package connecting NVIDIA AI Endpoints and LangChain"
authors = []
readme = "README.md"
Expand Down
7 changes: 7 additions & 0 deletions libs/ai-endpoints/tests/integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ def pytest_addoption(parser: pytest.Parser) -> None:
action="store",
help="Run tests for a specific rerank model",
)
parser.addoption(
"--vlm-model-id",
action="store",
help="Run tests for a specific vlm model",
)
parser.addoption(
"--all-models",
action="store_true",
Expand Down Expand Up @@ -75,6 +80,8 @@ def get_all_models() -> List[Model]:

if "image_in_model" in metafunc.fixturenames:
models = ["adept/fuyu-8b"]
if model := metafunc.config.getoption("vlm_model_id"):
models = [model]
if metafunc.config.getoption("all_models"):
models = [
model.id for model in get_all_models() if model.model_type == "image_in"
Expand Down

0 comments on commit 3b187fc

Please sign in to comment.