Skip to content

Commit 1c2d7df

Browse files
DaoTwentyclaude
andcommitted
release: bump version to 0.3.1 and update CHANGELOG.md
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 982e80c commit 1c2d7df

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ section above `[Unreleased]` before tagging.
1111

1212
## [Unreleased]
1313

14+
## [0.3.1] - 2026-07-06
15+
16+
### Added
17+
- **Token Diagnostics:** Opt-in `TokenLogger` for `SamplingSession` — per-token JSONL logs capturing token id/type/value, the grammar-masked T=1 distribution (log-prob, entropy, top-5 alternatives), grammar-collapse events, per-step summaries (context size, token budget, velocity mode) and per-bar summaries of the decoded result. No behavior change when no logger is attached. Also warns when the context window is nearly full and late tracks would be silently truncated.
18+
- **Replay Scoring:** `SamplingSession.score_from_tokens()` — teacher-forced log-probability of a previously generated token sequence under the session's context, applying the same grammar legality masks used at sampling time. Enables cross-conditional scoring (score a generation made under conditioning A against conditioning B) without re-sampling. Sequences longer than the model's positional window are scored with a sliding window; generation paths are untouched.
19+
1420
## [0.3.0] - 2026-07-06
1521

1622
### Added

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "midigpt"
7-
version = "0.3.0"
7+
version = "0.3.1"
88
description = "GPT-2 transformer for symbolic music generation"
99
readme = "README.md"
1010
license = { text = "MIT" }

src/python/midigpt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
except (ValueError, AttributeError):
1616
pass
1717

18-
__version__ = "0.3.0"
18+
__version__ = "0.3.1"
1919
__all__ = [
2020
"Bar",
2121
"Note",

0 commit comments

Comments
 (0)