hone-taste 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hone_taste-0.1.0/.gitignore +54 -0
- hone_taste-0.1.0/CHANGELOG.md +105 -0
- hone_taste-0.1.0/LICENSE +202 -0
- hone_taste-0.1.0/PKG-INFO +214 -0
- hone_taste-0.1.0/README.md +159 -0
- hone_taste-0.1.0/THIRD_PARTY_NOTICES.md +63 -0
- hone_taste-0.1.0/docs/adapters.md +56 -0
- hone_taste-0.1.0/docs/cli.md +21 -0
- hone_taste-0.1.0/docs/guide.md +325 -0
- hone_taste-0.1.0/docs/records.md +55 -0
- hone_taste-0.1.0/examples/README.md +62 -0
- hone_taste-0.1.0/examples/agreement.py +71 -0
- hone_taste-0.1.0/examples/audience_panel.py +98 -0
- hone_taste-0.1.0/examples/bring_your_own_client.py +109 -0
- hone_taste-0.1.0/examples/character_consistency.py +76 -0
- hone_taste-0.1.0/examples/combine_and_normalize.py +97 -0
- hone_taste-0.1.0/examples/command_line.py +87 -0
- hone_taste-0.1.0/examples/comparative_panel.py +81 -0
- hone_taste-0.1.0/examples/custom_scorer.py +66 -0
- hone_taste-0.1.0/examples/lyrics_taste.py +84 -0
- hone_taste-0.1.0/examples/model_registry.py +52 -0
- hone_taste-0.1.0/examples/personal_profile.py +86 -0
- hone_taste-0.1.0/examples/quickstart.py +50 -0
- hone_taste-0.1.0/examples/records_and_tracing.py +96 -0
- hone_taste-0.1.0/examples/select_bridge.py +84 -0
- hone_taste-0.1.0/examples/slop_and_patterns.py +74 -0
- hone_taste-0.1.0/examples/song_checks.py +91 -0
- hone_taste-0.1.0/examples/style_match.py +94 -0
- hone_taste-0.1.0/examples/taste_models.py +94 -0
- hone_taste-0.1.0/pyproject.toml +119 -0
- hone_taste-0.1.0/src/hone_taste/__init__.py +99 -0
- hone_taste-0.1.0/src/hone_taste/_records.py +293 -0
- hone_taste-0.1.0/src/hone_taste/_tracing.py +99 -0
- hone_taste-0.1.0/src/hone_taste/adapters/__init__.py +1 -0
- hone_taste-0.1.0/src/hone_taste/adapters/openai.py +124 -0
- hone_taste-0.1.0/src/hone_taste/agreement.py +125 -0
- hone_taste-0.1.0/src/hone_taste/audience.py +261 -0
- hone_taste-0.1.0/src/hone_taste/bridge.py +147 -0
- hone_taste-0.1.0/src/hone_taste/cli.py +151 -0
- hone_taste-0.1.0/src/hone_taste/combine.py +92 -0
- hone_taste-0.1.0/src/hone_taste/data/models.toml +67 -0
- hone_taste-0.1.0/src/hone_taste/data/slop/NOTICE.md +31 -0
- hone_taste-0.1.0/src/hone_taste/data/slop/slop_list.json +1650 -0
- hone_taste-0.1.0/src/hone_taste/data/slop/slop_list_trigrams.json +432 -0
- hone_taste-0.1.0/src/hone_taste/errors.py +24 -0
- hone_taste-0.1.0/src/hone_taste/fitting.py +112 -0
- hone_taste-0.1.0/src/hone_taste/normalize.py +120 -0
- hone_taste-0.1.0/src/hone_taste/ports.py +99 -0
- hone_taste-0.1.0/src/hone_taste/profile.py +220 -0
- hone_taste-0.1.0/src/hone_taste/py.typed +0 -0
- hone_taste-0.1.0/src/hone_taste/references/text/reward_model.json +34 -0
- hone_taste-0.1.0/src/hone_taste/registry.py +67 -0
- hone_taste-0.1.0/src/hone_taste/scorers/__init__.py +0 -0
- hone_taste-0.1.0/src/hone_taste/scorers/audio_checks.py +153 -0
- hone_taste-0.1.0/src/hone_taste/scorers/audio_measure.py +275 -0
- hone_taste-0.1.0/src/hone_taste/scorers/audiobox.py +66 -0
- hone_taste-0.1.0/src/hone_taste/scorers/binoculars.py +103 -0
- hone_taste-0.1.0/src/hone_taste/scorers/character.py +154 -0
- hone_taste-0.1.0/src/hone_taste/scorers/image_preference.py +117 -0
- hone_taste-0.1.0/src/hone_taste/scorers/model.py +111 -0
- hone_taste-0.1.0/src/hone_taste/scorers/patterns.py +63 -0
- hone_taste-0.1.0/src/hone_taste/scorers/reward_model.py +89 -0
- hone_taste-0.1.0/src/hone_taste/scorers/slop.py +202 -0
- hone_taste-0.1.0/src/hone_taste/scorers/songeval.py +208 -0
- hone_taste-0.1.0/src/hone_taste/scorers/stylometry.py +207 -0
- hone_taste-0.1.0/src/hone_taste/style.py +247 -0
- hone_taste-0.1.0/src/hone_taste/testing/__init__.py +21 -0
- hone_taste-0.1.0/src/hone_taste/testing/contracts.py +89 -0
- hone_taste-0.1.0/src/hone_taste/testing/fakes.py +217 -0
- hone_taste-0.1.0/src/hone_taste/text_decisions.py +130 -0
- hone_taste-0.1.0/src/hone_taste/types.py +163 -0
- hone_taste-0.1.0/tests/conftest.py +83 -0
- hone_taste-0.1.0/tests/contract/test_openai_adapter.py +156 -0
- hone_taste-0.1.0/tests/contract/test_ports.py +27 -0
- hone_taste-0.1.0/tests/contract/test_record_sinks.py +29 -0
- hone_taste-0.1.0/tests/e2e/conftest.py +7 -0
- hone_taste-0.1.0/tests/e2e/test_ac01_slop_ai_vs_human.py +42 -0
- hone_taste-0.1.0/tests/e2e/test_ac02_slop_presets.py +31 -0
- hone_taste-0.1.0/tests/e2e/test_ac03_patterns.py +24 -0
- hone_taste-0.1.0/tests/e2e/test_ac04_audience_panel.py +57 -0
- hone_taste-0.1.0/tests/e2e/test_ac05_panel_errors.py +36 -0
- hone_taste-0.1.0/tests/e2e/test_ac06_profile_fit.py +66 -0
- hone_taste-0.1.0/tests/e2e/test_ac07_profile_questions.py +40 -0
- hone_taste-0.1.0/tests/e2e/test_ac08_profile_ask.py +37 -0
- hone_taste-0.1.0/tests/e2e/test_ac09_normalization.py +31 -0
- hone_taste-0.1.0/tests/e2e/test_ac10_combine.py +52 -0
- hone_taste-0.1.0/tests/e2e/test_ac11_for_select.py +92 -0
- hone_taste-0.1.0/tests/e2e/test_ac12_accepts_mismatch.py +15 -0
- hone_taste-0.1.0/tests/e2e/test_ac13_taste_model_wrappers.py +138 -0
- hone_taste-0.1.0/tests/e2e/test_ac14_license_gate.py +33 -0
- hone_taste-0.1.0/tests/e2e/test_ac15_agreement.py +67 -0
- hone_taste-0.1.0/tests/e2e/test_ac16_records.py +151 -0
- hone_taste-0.1.0/tests/e2e/test_ac17_import_boundaries.py +45 -0
- hone_taste-0.1.0/tests/e2e/test_ac18_audience_openai_adapter.py +69 -0
- hone_taste-0.1.0/tests/e2e/test_ac19_taste_models_values.py +37 -0
- hone_taste-0.1.0/tests/e2e/test_ac20_examples.py +128 -0
- hone_taste-0.1.0/tests/e2e/test_ac21_comparative_panels.py +55 -0
- hone_taste-0.1.0/tests/e2e/test_ac22_character_consistency.py +40 -0
- hone_taste-0.1.0/tests/e2e/test_ac23_style_match.py +44 -0
- hone_taste-0.1.0/tests/e2e/test_ac24_song_quality.py +50 -0
- hone_taste-0.1.0/tests/e2e/test_docs_examples.py +49 -0
- hone_taste-0.1.0/tests/e2e/test_docs_links.py +66 -0
- hone_taste-0.1.0/tests/fixtures/style/README.md +11 -0
- hone_taste-0.1.0/tests/fixtures/style/author-01.md +15 -0
- hone_taste-0.1.0/tests/fixtures/style/author-02.md +15 -0
- hone_taste-0.1.0/tests/fixtures/style/author-03.md +15 -0
- hone_taste-0.1.0/tests/fixtures/style/author-04.md +15 -0
- hone_taste-0.1.0/tests/fixtures/style/author-05.md +15 -0
- hone_taste-0.1.0/tests/fixtures/style/author-06.md +15 -0
- hone_taste-0.1.0/tests/fixtures/style/author-07.md +15 -0
- hone_taste-0.1.0/tests/fixtures/style/author-08.md +15 -0
- hone_taste-0.1.0/tests/fixtures/style/generic-01.md +19 -0
- hone_taste-0.1.0/tests/fixtures/style/generic-02.md +19 -0
- hone_taste-0.1.0/tests/fixtures/style/generic-03.md +19 -0
- hone_taste-0.1.0/tests/fixtures/style/ghost-01.md +5 -0
- hone_taste-0.1.0/tests/fixtures/style/ghost-02.md +5 -0
- hone_taste-0.1.0/tests/fixtures/style/ghost-03.md +5 -0
- hone_taste-0.1.0/tests/fixtures/style/real-01.md +15 -0
- hone_taste-0.1.0/tests/fixtures/style/real-02.md +15 -0
- hone_taste-0.1.0/tests/fixtures/style/real-03.md +15 -0
- hone_taste-0.1.0/tests/fixtures/text/README.md +2 -0
- hone_taste-0.1.0/tests/fixtures/text/ai_paragraph.txt +3 -0
- hone_taste-0.1.0/tests/fixtures/text/human_paragraph.txt +3 -0
- hone_taste-0.1.0/tests/gpu/test_ac18_audience_ollama.py +47 -0
- hone_taste-0.1.0/tests/gpu/test_ac19_taste_models.py +128 -0
- hone_taste-0.1.0/tests/gpu/test_character_consistency.py +45 -0
- hone_taste-0.1.0/tests/integration/test_cli.py +143 -0
- hone_taste-0.1.0/tests/integration/test_records_store.py +100 -0
- hone_taste-0.1.0/tests/smoke_quickstart.py +14 -0
- hone_taste-0.1.0/tests/unit/test_agreement.py +35 -0
- hone_taste-0.1.0/tests/unit/test_audience.py +87 -0
- hone_taste-0.1.0/tests/unit/test_audience_compare.py +178 -0
- hone_taste-0.1.0/tests/unit/test_changelog_script.py +118 -0
- hone_taste-0.1.0/tests/unit/test_character.py +101 -0
- hone_taste-0.1.0/tests/unit/test_claude_files.py +146 -0
- hone_taste-0.1.0/tests/unit/test_claude_hooks.py +214 -0
- hone_taste-0.1.0/tests/unit/test_combine.py +70 -0
- hone_taste-0.1.0/tests/unit/test_fitting.py +65 -0
- hone_taste-0.1.0/tests/unit/test_normalize.py +88 -0
- hone_taste-0.1.0/tests/unit/test_patterns.py +33 -0
- hone_taste-0.1.0/tests/unit/test_profile.py +181 -0
- hone_taste-0.1.0/tests/unit/test_records.py +92 -0
- hone_taste-0.1.0/tests/unit/test_slop.py +134 -0
- hone_taste-0.1.0/tests/unit/test_song_quality.py +165 -0
- hone_taste-0.1.0/tests/unit/test_style.py +188 -0
- hone_taste-0.1.0/tests/unit/test_taste_models.py +153 -0
- hone_taste-0.1.0/tests/unit/test_text_decisions.py +97 -0
- hone_taste-0.1.0/tests/unit/test_types.py +76 -0
- hone_taste-0.1.0/tests/unit/test_version.py +5 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# virtual environments
|
|
2
|
+
.venv/
|
|
3
|
+
venv/
|
|
4
|
+
env/
|
|
5
|
+
|
|
6
|
+
# Python caches and build artefacts
|
|
7
|
+
__pycache__/
|
|
8
|
+
*.py[cod]
|
|
9
|
+
dist/
|
|
10
|
+
build/
|
|
11
|
+
*.egg-info/
|
|
12
|
+
.eggs/
|
|
13
|
+
|
|
14
|
+
# tool caches and coverage
|
|
15
|
+
.pytest_cache/
|
|
16
|
+
.ruff_cache/
|
|
17
|
+
.mypy_cache/
|
|
18
|
+
.hypothesis/
|
|
19
|
+
.coverage
|
|
20
|
+
.coverage.*
|
|
21
|
+
coverage.xml
|
|
22
|
+
htmlcov/
|
|
23
|
+
|
|
24
|
+
# hone records and generated output
|
|
25
|
+
.hone/
|
|
26
|
+
out/
|
|
27
|
+
runs/
|
|
28
|
+
|
|
29
|
+
# generated media and model files
|
|
30
|
+
*.wav
|
|
31
|
+
*.flac
|
|
32
|
+
*.mp3
|
|
33
|
+
*.ogg
|
|
34
|
+
*.m4a
|
|
35
|
+
*.mp4
|
|
36
|
+
*.safetensors
|
|
37
|
+
*.ckpt
|
|
38
|
+
*.pt
|
|
39
|
+
*.bin
|
|
40
|
+
|
|
41
|
+
# secrets
|
|
42
|
+
.env
|
|
43
|
+
.env.*
|
|
44
|
+
|
|
45
|
+
# editors and OS files
|
|
46
|
+
.idea/
|
|
47
|
+
.vscode/
|
|
48
|
+
*.swp
|
|
49
|
+
.DS_Store
|
|
50
|
+
|
|
51
|
+
*.log
|
|
52
|
+
|
|
53
|
+
# Claude Code: machine-specific settings
|
|
54
|
+
.claude/settings.local.json
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
|
|
5
|
+
[Semantic Versioning](https://semver.org/). Why the design changed is recorded in
|
|
6
|
+
[design/changes/](design/changes/).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.0] - 2026-12-03
|
|
11
|
+
|
|
12
|
+
The design of this release: [design/changes/0001-initial-design.md](design/changes/0001-initial-design.md).
|
|
13
|
+
|
|
14
|
+
### Added (song quality)
|
|
15
|
+
- `tt.songeval(max_seconds=...)` scores a middle excerpt of long songs and, after an out-of-memory error,
|
|
16
|
+
retries on half the length (down to 30 s); `details["excerpt_s"]`. Without it nothing changes.
|
|
17
|
+
- `tt.audio_checks(...)` / `tt.audio_report(path)`: objective audio checks without a model (loudness,
|
|
18
|
+
dynamics, true peak, clipping, harshness, sibilance, mud, glitches; tempo, key and meter against a
|
|
19
|
+
request) in the `songs` extra, which now names numpy and scipy; AC-24 and `examples/song_checks.py`
|
|
20
|
+
([0005](design/changes/0005-song-quality-scorers.md), renumbered from a second 0004).
|
|
21
|
+
|
|
22
|
+
### Added (style match)
|
|
23
|
+
- `tt.fingerprint` / `tt.stylometry` (core, no model: surface features and Burrows' Delta),
|
|
24
|
+
`tt.style_judge` (an LLM judge anchored on real excerpts only), `tt.style_match` (both, weighted) and
|
|
25
|
+
`tt.calibrate_style` (real vs imitation pairs through `agreement`, weights from the correlations);
|
|
26
|
+
AC-23 and `examples/style_match.py`
|
|
27
|
+
([0004](design/changes/0004-style-match-scorer.md), renumbered from a second 0003).
|
|
28
|
+
|
|
29
|
+
### Added (character consistency)
|
|
30
|
+
- `tt.character_consistency(reference, panels=n)`: is this image the same character as the reference
|
|
31
|
+
(sheet)? DINOv2-small image embeddings (Apache-2.0, extra `images`, registry entry `dinov2_small`),
|
|
32
|
+
cosine to the closest reference panel mapped from a floor; `testing.FakeEmbedder`; AC-22 and
|
|
33
|
+
`examples/character_consistency.py`
|
|
34
|
+
([0003](design/changes/0003-character-consistency.md)).
|
|
35
|
+
|
|
36
|
+
### Added (comparative audience panels)
|
|
37
|
+
- `details["ceiling"]` on panel scores (every persona gave the top rating), `tt.spread(scores)` (did a
|
|
38
|
+
scorer tell a batch of candidates apart?), `panel.pairwise(a, b)` (each persona compares two inputs,
|
|
39
|
+
order alternating per persona; span attribute `hone.taste.panel.mode = "compare"`) and
|
|
40
|
+
`tt.for_select_pairwise(panel, field=...)`, a hone-select pairwise judge; AC-21 and
|
|
41
|
+
`examples/comparative_panel.py`
|
|
42
|
+
([0002](design/changes/0002-audience-panels-that-compare.md)).
|
|
43
|
+
|
|
44
|
+
### Changed (design docs)
|
|
45
|
+
- The design is documented for readers in `design/`: why the package exists, the current design with its
|
|
46
|
+
acceptance cases, the initial change record, the early research and the decision log
|
|
47
|
+
(`design/decisions.md`, with the licensing questions awaiting owner review). `CONTRIBUTING.md` holds
|
|
48
|
+
the contributor conventions.
|
|
49
|
+
|
|
50
|
+
### Fixed (concurrent writers)
|
|
51
|
+
- `SqliteSpanSink` sets `busy_timeout` before switching to WAL and retries the switch briefly: when several
|
|
52
|
+
processes created the same fresh store at once, the switch ignored the timeout and a writer dropped its
|
|
53
|
+
spans ("could not record spans: database is locked").
|
|
54
|
+
|
|
55
|
+
### Added (examples)
|
|
56
|
+
- `examples/`: 14 runnable, explained examples (What / How / Why docstring), one per public concept, and
|
|
57
|
+
`examples/README.md` indexing them in reading order; every example runs offline with the public fakes.
|
|
58
|
+
- AC-20 test: runs each example in a subprocess and checks its docstring, the index and public-API-only
|
|
59
|
+
imports; README and docs link the examples.
|
|
60
|
+
|
|
61
|
+
### Fixed (examples)
|
|
62
|
+
- The license-gate message quoted SongEval's license as "unclear: unclear: ..."; it now names the gate and
|
|
63
|
+
quotes the registry text once.
|
|
64
|
+
- `print(tt.agreement(...))` lines up its columns for any scorer name length.
|
|
65
|
+
|
|
66
|
+
### Changed (cross-package tracing)
|
|
67
|
+
- Spans copy `hone.lens.finding_id` from the trace context (a shared trace-context attribute), so
|
|
68
|
+
scores made under a hone-lens replay carry the finding id.
|
|
69
|
+
|
|
70
|
+
### Removed (cleanup pass)
|
|
71
|
+
- Unused `respx` dev dependency, the empty `tests/fixtures/http/`, unused pytest markers and template
|
|
72
|
+
placeholder comments in `pyproject.toml`, unused fixture parameters in two tests
|
|
73
|
+
([D-019](design/decisions.md#d-019-cleanup-after-the-first-complete-build)).
|
|
74
|
+
|
|
75
|
+
### Added
|
|
76
|
+
- `Score`, the `Scorer` protocol, input-kind checks (`accepts`), typed errors.
|
|
77
|
+
- `tt.normalize`: reference sets, linear (5th-95th percentile) and percentile modes.
|
|
78
|
+
- `tt.combine`: weighted mean / min / median with `None` renormalization.
|
|
79
|
+
- `tt.slop_score` (general, lyrics, email presets) with the upstream slop-score lists (MIT).
|
|
80
|
+
- `tt.patterns`: banned literals and regexes.
|
|
81
|
+
- `tt.audience`: persona panel over any `DecisionClient` or `TextClient`; `tt.TextDecisionClient`.
|
|
82
|
+
- Ports (`DecisionClient`, `TextClient`, `GpuLease`, `RecordSink`, `PORTS_VERSION`), `tt.testing` fakes and contract checkers.
|
|
83
|
+
- `hone_taste.adapters.openai.OpenAITextClient` (extra `openai`).
|
|
84
|
+
- `tt.profile`: personal taste profiles (picks, examples, pure-Python Bradley-Terry fit, `questions`,
|
|
85
|
+
`ask` with `ConsoleIO` / `hone_taste.testing.ScriptedIO`, `as_scorer`, `prompt_examples`).
|
|
86
|
+
- `tt.agreement`: per-scorer agreement with human picks, Kendall-style correlation, suggested weights.
|
|
87
|
+
- `tt.for_select`: use any scorer as a hone-select scorer (reads `candidate.data[field]` /
|
|
88
|
+
`candidate.files[file]`), with trace propagation and `record=False`.
|
|
89
|
+
- Records: every score writes a `hone.taste.score` span (span schema v1) to
|
|
90
|
+
`${HONE_HOME:-.hone}/taste/spans.db`; `tt.recording(sink)` with `SqliteSpanSink`, `JsonlSpanSink`,
|
|
91
|
+
`MemorySink`, `NullSink`; `tt.current_trace()`; content-capture switch and secret redaction.
|
|
92
|
+
- Taste models (lazy, `GpuLease`-wrapped, `close()`): `tt.songeval` and `tt.audiobox` (extra `songs`),
|
|
93
|
+
`tt.reward_model` (extra `text`), `tt.image_preference` (PickScore / HPSv3, extra `images`); the
|
|
94
|
+
`tt.binoculars` AI-text detector (extra `detect`); model registry with licenses (`tt.models()`) and the
|
|
95
|
+
`accept_license=True` gate; `tt.NullGpuLease`, `testing.FakeTasteModel`, `testing.FakeGpuLease`.
|
|
96
|
+
- `hone-taste` CLI (extra `cli`): `score`, `profile ask`, `agreement`, `models`.
|
|
97
|
+
- Packaged reference set for the default reward model; `scripts/make_reference_sets.py`.
|
|
98
|
+
- README (quickstart, honesty rules, license table), `docs/` (guide, records, CLI, adapters) and
|
|
99
|
+
`examples/` (lyric selection with fakes, hone-select bridge), all executed by the test suite.
|
|
100
|
+
- Real-model suite (`tests/gpu`): audience panel via Ollama `/v1`, reward model, SongEval, Audiobox,
|
|
101
|
+
Binoculars.
|
|
102
|
+
- THIRD_PARTY_NOTICES.md (slop-score lists, SongEval head).
|
|
103
|
+
|
|
104
|
+
[Unreleased]: https://github.com/honeworks/hone-taste/compare/v0.1.0...HEAD
|
|
105
|
+
[0.1.0]: https://github.com/honeworks/hone-taste/releases/tag/v0.1.0
|
hone_taste-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: hone-taste
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Stand-in scorers for human judgment: taste models, human-likeness checks, audience panels, personal taste.
|
|
5
|
+
Project-URL: Homepage, https://github.com/honeworks/hone-taste
|
|
6
|
+
Project-URL: Repository, https://github.com/honeworks/hone-taste
|
|
7
|
+
Project-URL: Issues, https://github.com/honeworks/hone-taste/issues
|
|
8
|
+
Project-URL: Documentation, https://github.com/honeworks/hone-taste/tree/main/docs
|
|
9
|
+
Project-URL: Changelog, https://github.com/honeworks/hone-taste/blob/main/CHANGELOG.md
|
|
10
|
+
Author-email: Bahman Shadmehr <info@bshadmehr.me>
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: THIRD_PARTY_NOTICES.md
|
|
14
|
+
Keywords: ai,ai-detection,audience-simulation,evaluation,generative-ai,honeworks,human-preference,llm,reward-model,scoring,taste
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Intended Audience :: Science/Research
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Analysis
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
25
|
+
Classifier: Topic :: Text Processing :: Linguistic
|
|
26
|
+
Classifier: Typing :: Typed
|
|
27
|
+
Requires-Python: >=3.11
|
|
28
|
+
Requires-Dist: pydantic>=2.7
|
|
29
|
+
Provides-Extra: cli
|
|
30
|
+
Requires-Dist: rich>=13.7; extra == 'cli'
|
|
31
|
+
Requires-Dist: typer>=0.12; extra == 'cli'
|
|
32
|
+
Provides-Extra: detect
|
|
33
|
+
Requires-Dist: torch>=2.2; extra == 'detect'
|
|
34
|
+
Requires-Dist: transformers>=4.56; extra == 'detect'
|
|
35
|
+
Provides-Extra: images
|
|
36
|
+
Requires-Dist: pillow>=10; extra == 'images'
|
|
37
|
+
Requires-Dist: torch>=2.2; extra == 'images'
|
|
38
|
+
Requires-Dist: transformers>=4.56; extra == 'images'
|
|
39
|
+
Provides-Extra: openai
|
|
40
|
+
Requires-Dist: openai>=1.40; extra == 'openai'
|
|
41
|
+
Provides-Extra: songs
|
|
42
|
+
Requires-Dist: audiobox-aesthetics>=0.0.4; extra == 'songs'
|
|
43
|
+
Requires-Dist: librosa>=0.10; extra == 'songs'
|
|
44
|
+
Requires-Dist: muq>=0.1; extra == 'songs'
|
|
45
|
+
Requires-Dist: numpy>=1.24; extra == 'songs'
|
|
46
|
+
Requires-Dist: safetensors>=0.4; extra == 'songs'
|
|
47
|
+
Requires-Dist: scipy>=1.10; extra == 'songs'
|
|
48
|
+
Requires-Dist: soundfile>=0.12; extra == 'songs'
|
|
49
|
+
Requires-Dist: torch>=2.2; extra == 'songs'
|
|
50
|
+
Requires-Dist: transformers<5,>=4.56; extra == 'songs'
|
|
51
|
+
Provides-Extra: text
|
|
52
|
+
Requires-Dist: torch>=2.2; extra == 'text'
|
|
53
|
+
Requires-Dist: transformers>=4.56; extra == 'text'
|
|
54
|
+
Description-Content-Type: text/markdown
|
|
55
|
+
|
|
56
|
+
# hone-taste
|
|
57
|
+
|
|
58
|
+
[](https://github.com/honeworks/hone-taste/actions/workflows/ci.yml)
|
|
59
|
+
|
|
60
|
+
**Stand-in scorers for human judgment: taste models, human-likeness checks, audience panels, personal taste.**
|
|
61
|
+
|
|
62
|
+
Automatic metrics tell you whether an output is *correct*; `hone-taste` estimates whether people would
|
|
63
|
+
*like* it and whether it *feels human-made*, for text, songs and images, without asking a person to rate
|
|
64
|
+
things again and again. Every scorer returns the same `Score` (0-1 `value`, `confidence`, `reason`,
|
|
65
|
+
per-aspect `details`, `error`), so scorers combine, plug into best-of-N selection, and can be checked
|
|
66
|
+
against a few of your own picks.
|
|
67
|
+
|
|
68
|
+
Part of **[honeworks](https://github.com/honeworks)**: small, standalone tools for reliable generative-AI
|
|
69
|
+
workflows. Works on its own; works better with its siblings.
|
|
70
|
+
|
|
71
|
+
> [!WARNING]
|
|
72
|
+
> **Some wrapped models have non-commercial or unclear licences.** hone-taste itself is Apache-2.0 and
|
|
73
|
+
> **ships no model weights**; each taste model downloads its weights from the upstream source on first use.
|
|
74
|
+
> Three of them need extra care, and two refuse to load unless you pass `accept_license=True`:
|
|
75
|
+
>
|
|
76
|
+
> - **SongEval** (`tt.songeval`): licence **unclear**. The upstream README says CC-BY-NC-SA-4.0
|
|
77
|
+
> (non-commercial, share-alike); the repository metadata says Apache-2.0. Requires `accept_license=True`.
|
|
78
|
+
> - **MuQ** (the audio encoder SongEval uses): weights are **CC-BY-NC-4.0, non-commercial only**.
|
|
79
|
+
> Covered by SongEval's `accept_license=True`.
|
|
80
|
+
> - **PickScore** (`tt.image_preference("pickscore")`): **no licence stated** on the model card.
|
|
81
|
+
> Requires `accept_license=True`.
|
|
82
|
+
>
|
|
83
|
+
> Passing `accept_license=True` only records that *you* have read and accepted the upstream terms for
|
|
84
|
+
> your use; it grants no rights. **You are responsible for checking each model's licence** before using
|
|
85
|
+
> it, especially commercially. Details: [Models and licenses](#models-and-licenses) and
|
|
86
|
+
> [THIRD_PARTY_NOTICES.md](https://github.com/honeworks/hone-taste/blob/main/THIRD_PARTY_NOTICES.md).
|
|
87
|
+
|
|
88
|
+
**Status:** alpha, version 0.1.0. The API can still change between minor versions.
|
|
89
|
+
|
|
90
|
+
## Install
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
pip install hone-taste # core: slop score, patterns, panels, profiles (no GPU, no torch)
|
|
94
|
+
uv add hone-taste # the same with uv
|
|
95
|
+
pip install "hone-taste[openai,cli]" # with extras (table below)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Python 3.11 or newer. The core depends only on pydantic.
|
|
99
|
+
|
|
100
|
+
| Extra | Adds | Pulls in |
|
|
101
|
+
|---|---|---|
|
|
102
|
+
| (none) | `slop_score`, `patterns`, `audience`, `profile`, `stylometry`, `style_match`, `combine`, `agreement` | pydantic |
|
|
103
|
+
| `openai` | `OpenAITextClient` for audience panels on any OpenAI-compatible server (Ollama `/v1`, vLLM ...) | openai |
|
|
104
|
+
| `cli` | the `hone-taste` command | typer, rich |
|
|
105
|
+
| `text` | `reward_model` (Skywork-Reward-V2) | torch, transformers |
|
|
106
|
+
| `detect` | `binoculars` AI-text detector | torch, transformers |
|
|
107
|
+
| `images` | `image_preference` (PickScore), `character_consistency` (DINOv2) | torch, transformers, pillow |
|
|
108
|
+
| `songs` | `songeval`, `audiobox`, `audio_checks` | torch, transformers, librosa, muq, audiobox-aesthetics, soundfile, scipy |
|
|
109
|
+
|
|
110
|
+
The torch-based extras download model weights on first use; a GPU helps but small models run on a CPU.
|
|
111
|
+
|
|
112
|
+
## Quickstart
|
|
113
|
+
```python
|
|
114
|
+
import hone_taste as tt
|
|
115
|
+
|
|
116
|
+
slop = tt.slop_score(domain="lyrics")
|
|
117
|
+
cliched = slop("It's not just a song, but a journey through the tapestry of time.")
|
|
118
|
+
fresh = slop("Dad's work boots by the door still smell like diesel and rain.")
|
|
119
|
+
print(round(cliched.value, 2), round(fresh.value, 2)) # the cliched line scores lower
|
|
120
|
+
print(cliched.details["hits"][0]) # what was found, with character spans
|
|
121
|
+
|
|
122
|
+
banned = tt.patterns(["neon", "echoes of"])
|
|
123
|
+
mine = tt.combine({"slop": 2, "banned": 1}, {"slop": slop, "banned": banned})
|
|
124
|
+
print(round(mine("Neon lights and echoes of a dream").value, 2))
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Every call is recorded as a `hone.taste.score` span in `.hone/taste/spans.db` (set `HONE_HOME` to move it,
|
|
128
|
+
or wrap calls in `with tt.recording(tt.NullSink()):` to turn recording off).
|
|
129
|
+
|
|
130
|
+
## The four families
|
|
131
|
+
|
|
132
|
+
| Family | Scorers | Needs |
|
|
133
|
+
|---|---|---|
|
|
134
|
+
| A. Taste models: small models trained on many human ratings | `tt.songeval`, `tt.audiobox`, `tt.reward_model`, `tt.image_preference`; `tt.character_consistency` (same character as a reference?); `tt.audio_checks` (objective checks, no model) | an extra; a GPU helps |
|
|
135
|
+
| B. Human-likeness | `tt.slop_score`, `tt.patterns`, `tt.binoculars` | nothing (binoculars: extra `detect`) |
|
|
136
|
+
| C. Audience panel: an LLM plays target personas | `tt.audience(personas, question, client)` | any `DecisionClient` or `TextClient` |
|
|
137
|
+
| D. Personal taste: learn one person's taste from a few picks, or an author's style from their texts | `tt.profile(name)`; `tt.stylometry`, `tt.style_match`, `tt.calibrate_style` | 5-10 picks; about ten texts |
|
|
138
|
+
|
|
139
|
+
## Documentation
|
|
140
|
+
|
|
141
|
+
| Where | What |
|
|
142
|
+
|---|---|
|
|
143
|
+
| [docs/guide.md](https://github.com/honeworks/hone-taste/blob/main/docs/guide.md) | each scorer family, with runnable snippets |
|
|
144
|
+
| [docs/records.md](https://github.com/honeworks/hone-taste/blob/main/docs/records.md) | what every call records (`hone.taste.score` spans) |
|
|
145
|
+
| [docs/cli.md](https://github.com/honeworks/hone-taste/blob/main/docs/cli.md) | the `hone-taste` command line |
|
|
146
|
+
| [docs/adapters.md](https://github.com/honeworks/hone-taste/blob/main/docs/adapters.md) | bringing your own model client or GPU lease |
|
|
147
|
+
| [examples/](https://github.com/honeworks/hone-taste/blob/main/examples/README.md) | one runnable, explained example per concept; start with `examples/quickstart.py` |
|
|
148
|
+
|
|
149
|
+
The examples and doc snippets run offline with the package's fakes (no network, GPU or downloads), and
|
|
150
|
+
the test suite executes all of them. Real use of an audience panel needs an LLM, for example a local
|
|
151
|
+
[Ollama](https://ollama.com) server with a pulled model such as `gemma3:12b` and the `openai` extra.
|
|
152
|
+
|
|
153
|
+
## Honesty rules
|
|
154
|
+
- **Whose taste?** Each taste model learned from a specific group of raters (table below). Their taste is
|
|
155
|
+
not yours; check with `tt.agreement(...)` against a few of your own picks before trusting a scorer.
|
|
156
|
+
- **Detectors are signals, never gates.** `binoculars` and `slop_score` have known false positives on
|
|
157
|
+
formal, templated and non-native writing. Use them to rank or flag, not to reject.
|
|
158
|
+
- **Personas are one LLM pretending.** A panel is a cheap guess at an audience, not an audience. Weight it
|
|
159
|
+
lower until it agrees with real picks. The panel warns when its model family matches the generator's,
|
|
160
|
+
flags a ceiling (every persona gave the top rating) and can compare two candidates instead of rating
|
|
161
|
+
one (`panel.pairwise(a, b)`), which tells candidates apart when ratings saturate.
|
|
162
|
+
- **Style judges read real text, not descriptions.** A judge given a style description rewards
|
|
163
|
+
imitations of the description (in one calibration it preferred ghostwritten imitations over the real
|
|
164
|
+
author every time). `tt.style_judge` sees only real excerpts; check it with `tt.calibrate_style` on
|
|
165
|
+
held-out real texts before trusting it.
|
|
166
|
+
- **Goodhart.** Optimizing hard against one taste model finds outputs that fool it. Combine families
|
|
167
|
+
(`tt.combine`) and re-check with real people now and then.
|
|
168
|
+
|
|
169
|
+
## Models and licenses
|
|
170
|
+
|
|
171
|
+
Checked 2026-09-27; `hone-taste models` prints the same table from `hone_taste/data/models.toml`. Licences
|
|
172
|
+
change: check the upstream model card before you rely on this table. No weights are included in the
|
|
173
|
+
package.
|
|
174
|
+
|
|
175
|
+
| Scorer | Model | Learned from | License | Gate |
|
|
176
|
+
|---|---|---|---|---|
|
|
177
|
+
| `songeval` | ASLP-lab/SongEval + MuQ encoder | 2,399 full-length songs rated on five aesthetic dimensions by 16 annotators with music backgrounds | unclear: README says CC-BY-NC-SA-4.0, repo metadata Apache-2.0; MuQ weights CC-BY-NC-4.0 (non-commercial) | `accept_license=True` |
|
|
178
|
+
| `audiobox` | facebook/audiobox-aesthetics | speech, music and sound clips rated on four axes by trained raters | CC-BY-4.0 | - |
|
|
179
|
+
| `reward_model` | Skywork/Skywork-Reward-V2-Qwen3-0.6B | Skywork-SynPref-40M preference pairs (human-verified, AI-assisted curation) | Apache-2.0 | - |
|
|
180
|
+
| `image_preference("pickscore")` | yuvalkirstain/PickScore_v1 | Pick-a-Pic: web-app users' picks between generated images for their own prompts | not stated on the model card | `accept_license=True` |
|
|
181
|
+
| `image_preference("hpsv3")` | MizzenAI/HPSv3 | HPDv3: about 1.17M human pairwise comparisons | Apache-2.0 weights, MIT code | - (needs `pip install hpsv3`, ~18 GB VRAM) |
|
|
182
|
+
| `character_consistency` | facebook/dinov2-small | no human ratings: self-supervised image features | Apache-2.0 | - |
|
|
183
|
+
| `binoculars` | Qwen/Qwen2.5-0.5B + -Instruct | no human ratings: perplexity ratio of two related models | Apache-2.0 models, BSD-3-Clause method | - |
|
|
184
|
+
|
|
185
|
+
`image_preference` has no packaged reference set yet: pass `reference=` (a JSON file with the raw scores of
|
|
186
|
+
a few good and bad images, see `hone_taste.normalize`) so raw scores can be mapped to 0-1.
|
|
187
|
+
|
|
188
|
+
## Use it with the rest of honeworks
|
|
189
|
+
- **hone-select**: `tt.for_select(scorer, field="lyrics")` or `tt.for_select(scorer, file="audio")` turns
|
|
190
|
+
any scorer into a hone-select scorer (it reads `candidate.data[field]` / `candidate.files[file]`); no
|
|
191
|
+
import of hone-select is needed. `tt.for_select_pairwise(panel, field="idea")` makes an audience panel
|
|
192
|
+
a pairwise judge.
|
|
193
|
+
- **hone-models**: its decision / text clients and GPU lease fit the `DecisionClient`, `TextClient` and
|
|
194
|
+
`GpuLease` ports directly: `tt.audience(..., client=hone_models.decision(...))`,
|
|
195
|
+
`tt.songeval(gpu=<hone-models GPU lease>)`.
|
|
196
|
+
- **hone-lens** reads the `hone.taste.score` spans; trace ids flow in through `trace=` / the context.
|
|
197
|
+
|
|
198
|
+
## Design
|
|
199
|
+
[design/](https://github.com/honeworks/hone-taste/blob/main/design/README.md) explains why hone-taste exists, how it is designed today
|
|
200
|
+
([design/current.md](https://github.com/honeworks/hone-taste/blob/main/design/current.md)) and why it changed ([design/changes/](https://github.com/honeworks/hone-taste/tree/main/design/changes/)).
|
|
201
|
+
Why SongEval and PickScore are gated rather than left out is recorded in
|
|
202
|
+
[design/decisions.md](https://github.com/honeworks/hone-taste/blob/main/design/decisions.md#d-016-taste-model-wrappers-registry-and-license-gate).
|
|
203
|
+
Contributions: [CONTRIBUTING.md](https://github.com/honeworks/hone-taste/blob/main/CONTRIBUTING.md).
|
|
204
|
+
|
|
205
|
+
## How this was built
|
|
206
|
+
hone-taste was specified by a human and built by AI coding agents (Claude) working against written
|
|
207
|
+
specifications and acceptance tests; a human reviewed the decisions they made, and commits written with
|
|
208
|
+
AI carry a `Co-Authored-By` line. Every design change, with what was found, what was decided and why, is
|
|
209
|
+
in [design/changes/](https://github.com/honeworks/hone-taste/tree/main/design/changes/); the smaller implementation choices,
|
|
210
|
+
including those still awaiting the owner's review, are in [design/decisions.md](https://github.com/honeworks/hone-taste/blob/main/design/decisions.md).
|
|
211
|
+
|
|
212
|
+
## License
|
|
213
|
+
Apache-2.0. Copyright 2026 Bahman Shadmehr. Third-party data and code notices:
|
|
214
|
+
[THIRD_PARTY_NOTICES.md](https://github.com/honeworks/hone-taste/blob/main/THIRD_PARTY_NOTICES.md).
|