You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: evict Ollama models between test modules to prevent memory starvation (#804)
* fix: evict Ollama models between test modules to prevent memory starvation (#798)
Add per-module Ollama model eviction to test/conftest.py. When pytest
crosses a file boundary between Ollama-marked tests, all loaded models
are discovered via /api/ps and evicted with keep_alive=0. This prevents
heavyweight models from accumulating in memory across the test suite.
Covers both test/ and docs/examples/ without requiring --group-by-backend.
* fix: revert unrelated examples README changes
Restore docs/examples/README.md to match main — the original
command and heading were correct.
* fix: add missing ollama markers to test files
test_streaming_sync_functions.py and test_computed_model_output_thunk.py
call start_session() (Ollama backend) but lacked pytest.mark.ollama,
so the per-module eviction hook never fired for them. The inert
`# pytest: ollama` comment is only parsed for docs/examples/.
* fix: evict Ollama models after example tests (#798)
Examples run as isolated subprocesses. Ollama's default keep_alive keeps
models resident after exit, starving later examples of memory. Add
teardown hook to evict after every ollama-marked example.
0 commit comments