Add Vulkan GPU deployment support for fertigungski

This commit is contained in:
admin committed 2026-10-12 15:18:54 +02:00
1 parent 9ce4af69be
commit 63182ef32a
11 files changed
+269

No files matched your search

+14
View File
@@ -74,3 +74,17 @@ def test_environment_rejects_invalid_container_args(monkeypatch, value: str) ->
with pytest.raises(ConfigurationError, match="JSON array"):
AppSettings.from_environment()
@pytest.mark.parametrize("backend", ["cpu", "vulkan", "auto"])
def test_whisper_backend_from_environment(monkeypatch, backend):
monkeypatch.setenv("MKA_WHISPER_BACKEND", backend)
assert AppSettings.from_environment().whisper_backend == backend
def test_invalid_whisper_backend_is_rejected(tmp_path):
model = tmp_path / "model.bin"
model.write_bytes(b"model")
settings = AppSettings(data_root=tmp_path, whisper_model=model, whisper_backend="hip")
with pytest.raises(ConfigurationError, match="MKA_WHISPER_BACKEND"):
settings.validate_for_processing()