Skip to content

Commit 3b09d33

Browse files
committed
refactor: migrate legacy resource markers to predicates
Replace deprecated pytest markers with typed predicate functions from test/predicates.py across all test files and example files: - requires_gpu → require_gpu(min_vram_gb=N) with per-model VRAM estimates - requires_heavy_ram → removed (conflated VRAM with RAM; no replacement needed) - requires_gpu_isolation → removed (GPU isolation is now automatic) - requires_api_key → require_api_key("VAR1", "VAR2", ...) with explicit env vars Also removes spurious requires_gpu from ollama-backed tests (test_genslot, test_think_budget_forcing, test_component_typing) and adds missing integration marker to test_hook_call_sites. VRAM estimates computed from model parameter counts using bf16 formula (params_B × 2 × 1.2, rounded up to next even GB): - granite-3.3-8b: 20 GB, Mistral-7B: 18 GB, granite-4.0-micro (3B): 8 GB - Qwen3-0.6B: 4 GB (conservative for vLLM KV cache headroom) - granite-4.0-h-micro (3B): 8 GB, alora training (3B): 12 GB
1 parent 98504bf commit 3b09d33

43 files changed

Lines changed: 64 additions & 71 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/examples/aLora/101_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pytest: huggingface, requires_heavy_ram, e2e
1+
# pytest: huggingface, e2e
22

33
import time
44

docs/examples/aLora/102_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pytest: skip, huggingface, requires_heavy_ram, e2e
1+
# pytest: skip, huggingface, e2e
22
# SKIP REASON: Requires user input; tests same functionality as 101_example.py.
33

44
from stembolts_intrinsic import (

docs/examples/aLora/example_readme_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pytest: skip, huggingface, requires_heavy_ram, e2e
1+
# pytest: skip, huggingface, e2e
22
# SKIP REASON: documentation only.
33

44
from cli.alora.readme_generator import generate_readme, make_readme_jinja_dict

docs/examples/aLora/make_training_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pytest: skip, huggingface, requires_heavy_ram, e2e
1+
# pytest: skip, huggingface, e2e
22
# SKIP REASON: documentation only.import argparse
33
import argparse
44
import json

docs/examples/aLora/stembolts_intrinsic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# type: ignore
2-
# pytest: skip, huggingface, requires_heavy_ram, e2e
2+
# pytest: skip, huggingface, e2e
33
# SKIP REASON: needs to update.
44

55
import mellea.stdlib.functional as mfuncs

docs/examples/image_text_models/vision_openai_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pytest: ollama, e2e, requires_heavy_ram
1+
# pytest: ollama, e2e
22

33
"""Examples using vision models with OpenAI backend."""
44

docs/examples/intrinsics/answerability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pytest: huggingface, requires_heavy_ram, e2e
1+
# pytest: huggingface, e2e
22

33
"""Example usage of the answerability intrinsic for RAG applications.
44

docs/examples/intrinsics/citations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pytest: huggingface, requires_heavy_ram, e2e
1+
# pytest: huggingface, e2e
22

33
"""Example usage of the citations intrinsic for RAG applications.
44

docs/examples/intrinsics/context_attribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pytest: huggingface, requires_heavy_ram, e2e
1+
# pytest: huggingface, e2e
22

33
"""Example usage of the context attribution intrinsic.
44

docs/examples/intrinsics/context_relevance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pytest: huggingface, requires_heavy_ram, e2e
1+
# pytest: huggingface, e2e
22

33
"""Example usage of the context relevance intrinsic for RAG applications.
44

0 commit comments

Comments
 (0)