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
3 changes: 1 addition & 2 deletions docs/examples/aLora/101_example.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# pytest: skip, huggingface, requires_heavy_ram, llm
# SKIP REASON: Example broken since intrinsics refactor - see issue #385
# pytest: huggingface, requires_heavy_ram, llm

import time

Expand Down
3 changes: 3 additions & 0 deletions docs/examples/aLora/102_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# pytest: skip, huggingface, requires_heavy_ram, llm
# SKIP REASON: Requires user input; tests same functionality as 101_example.py.

from stembolts_intrinsic import (
async_stembolt_failure_analysis,
stembolt_failure_analysis,
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ hf = [
"peft>=0.18.1", # Native aLoRA support added in PEFT 0.18.0
"transformers>=4.53.2,<5",
"trl==0.19.1",
"xgrammar", # Necessary for granite_common intrinsics.
]

vllm = [
Expand Down Expand Up @@ -117,6 +118,8 @@ dev = [
"python-semantic-release~=7.32",
"nbmake>=1.5.5",
"langchain-core>=1.2.7", # Necessary for mypy and some tool tests
"sentencepiece==0.2.1", # Necessary for test_huggingface_tools test because of Mistral model
"jsonschema",
]

notebook = [
Expand All @@ -131,6 +134,13 @@ docs = [
"sphinx_mdinclude",
]

# Necessary for granite retriever.
granite_common_retriever = [
"sentence-transformers",
"pyarrow",
"elasticsearch>=8.0.0,<9.0.0"
]

[tool.ruff]
target-version = "py310"
respect-gitignore = true
Expand Down
21 changes: 14 additions & 7 deletions test/backends/test_openai_vllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,24 @@ def vllm_process():

yield process

except Exception as e:
pytest.skip(
f"vLLM process not available: {e}. May need to install with: pip install mellea[vllm]",
allow_module_level=True,
)

# --- Teardown (always runs) ---
finally:
try:
os.killpg(process.pid, signal.SIGTERM) # kill the session group
process.wait(timeout=30)
except Exception:
if process is not None:
try:
os.killpg(process.pid, signal.SIGKILL)
os.killpg(process.pid, signal.SIGTERM) # kill the session group
process.wait(timeout=30)
except Exception:
pass
process.wait()
try:
os.killpg(process.pid, signal.SIGKILL)
except Exception:
pass
process.wait()


@pytest.fixture(scope="module")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"content": "Purple bumble fish are yellow. Green bumble fish are also yellow."
}
],
"temperature": 0.0,
"extra_body": {
"documents": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
}
}
]
}
}
297 changes: 285 additions & 12 deletions uv.lock

Large diffs are not rendered by default.