Skip to content

Releases: sutt/innocuous

Release v0.2.3

15 Sep 23:12

Choose a tag to compare

v0.2.3

Minor update for handling consistency, small functionality, documentation, and adding integration tests.

  • Integration tests take 30+ seconds per test, so they are marked with slow marker, run with pytest -m slow.
  • Integration tests get a fixture to run garbage collection manually to cleanup memory between tests.

One main logic update: decode can now fill-in missing punctuation marks, which is helpful for the mnemonics use-case.

Interesting design pattern: manually implemented a new test in f57aea1 as an XFAIL, then (manually) coded the fix in 5b23579 which made the xfail-test pass.

Task File Contents (truncated) Accepted SHA Diffs Test Diffs Notes
extra-args-test.md Add 1-2 tests for llm_extra_args feature. Test that args pass through encode/decode to constructors without real inference. Example usage: llm_extra_args={"n_ctx": 1024}. Mock instantiation/loading. 9abdb61 +0/-0 +29/-0 Simple task, not best execution.
cli-numlogprobs.md Create optional CLI argument --num-logprobs with default value of 100. fe8dbf6 +8/-4 +0/-0 Simple.
integration-test.md Add integration test: msg0 -> encode -> decode -> msg1, assert msg0==msg1. Use pytest marker for slow tests. Mock env variable or config for model_path. 6203b4a +0/-0 +44/-0 Tricky tests implemented with best practices.
type-main-funcs.md Add type hints for args and return types to decoder.main_decoder and encoder.main_encode in stego_llm.core. Include expanded docstrings. b00dd60 +48/-14 +0/-0 Simple but the verbose docstrings are useful to handle with ai.
version-cmd.md Enable CLI and Python import to display package version from pyproject.toml. 80791f9 +10/-2 +0/-0 Easy, but esoteric.