KernelFrog commited on
Commit
44acdac
·
0 Parent(s):

WAVE: crowd pack, default weights and model card

Browse files
Files changed (4) hide show
  1. .gitattributes +35 -0
  2. CrowdPack.bin +3 -0
  3. README.md +66 -0
  4. weights.json +29 -0
.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
CrowdPack.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b65359b1fca904eb9655576a0328690d0ba7a8c939d47b911aaa681a6e69e228
3
+ size 682434188
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: agpl-3.0
3
+ tags:
4
+ - music
5
+ - recommendation
6
+ - radio
7
+ - item2vec
8
+ - listenbrainz
9
+ ---
10
+
11
+ # WAVE: Weighted Audio Vibe Engine
12
+
13
+ The crowd model and default weights behind the radio and recommendations of Knob, a self-hosted music server. A
14
+ server maps its own library onto the crowd pack and offline, on CPU, learns which songs and artists people play
15
+ together. It never sends a listener's library or history anywhere.
16
+
17
+ | File | What it is |
18
+ |---|---|
19
+ | `CrowdPack.bin` | Artist and recording vectors learnt from public listening (format version 2, 682 MB) |
20
+ | `weights.json` | The engine's default weights: how much each signal counts when a station picks the next song |
21
+
22
+ ## Crowd pack
23
+
24
+ Vectors trained with skip-gram with negative sampling (item2vec) over listening sessions from the full
25
+ ListenBrainz listens dump 2723 (15 October 2026, CC0): 2.9 billion listens in 136 million sessions (a session ends
26
+ after 30 minutes without a listen).
27
+
28
+ | | |
29
+ |---|---|
30
+ | Artists | 3,716,239, 64 dimensions |
31
+ | Recordings | 8,000,000 (the most-heard; at least 5 sessions each), 32 dimensions |
32
+ | Context | 3 songs either side within a session, 5 negative samples |
33
+ | Rank | Each recording's place among its artist's recordings by sessions heard (1 = most heard) |
34
+ | SHA-256 | `b65359b1fca904eb9655576a0328690d0ba7a8c939d47b911aaa681a6e69e228` |
35
+
36
+ No listener data is in the pack. Artists and recordings are identified only by 64-bit keys hashed from their
37
+ normalised names, so a server looks up its own songs by artist and title. No MusicBrainz ids are needed.
38
+
39
+ **Format** (little-endian): `"SNCP"`, int32 version, then the artist table (int32 count, int32 dimensions, rows of
40
+ uint64 key, float32 scale, int8 values) and the recording table (int32 count, int32 dimensions, rows of uint64 key,
41
+ int32 artist row, uint16 rank, float32 scale, int8 values). Rows are fixed-size and sorted by key, so a server
42
+ binary-searches the file for its few thousand songs instead of loading it. Values are unit vectors quantised to signed
43
+ bytes with one scale per row.
44
+
45
+ **Install:** put `CrowdPack.bin` in the server's cache (enrichment) folder and restart. The recommendation studio
46
+ shows how many songs and artists it mapped.
47
+
48
+ ## Weights
49
+
50
+ A station scores each candidate song with a weighted sum of signals: genre and era of the seed, the household's own
51
+ co-listening, what the crowd plays next (`CrowdNext`), artists the crowd hears together (`CrowdArtist`), sound
52
+ similarity, likes, skips and spacing. These weights were trained on one household's cleaned listening history, with
53
+ the crowd pack mapped onto its library. Against the earlier hand-set defaults:
54
+
55
+ | | Before | After |
56
+ |---|---|---|
57
+ | Next plays predicted in the library (hit rate) | 39.5% | 44.0% |
58
+ | First listens predicted | 0% | 6-11% |
59
+
60
+ The station's character (genre, era, sound, seed artist, spacing, skips, dislikes, hearts) is never trained. Genre
61
+ flow and the sound of the join between songs (`GenreFlow`, `SoundFit`) did not predict next plays, so they are at 0.
62
+ Each Knob household trains its own weights from its history, starting from these.
63
+
64
+ ## Licence
65
+
66
+ The listening data is ListenBrainz's, under CC0. The vectors and weights are released under AGPL-3.0.
weights.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "engine": "Knob recommendations",
3
+ "about": "The weighted sum a station scores each candidate song with. Knob's defaults; a household's own training starts from these and is held close to them.",
4
+ "weights": {
5
+ "Genre": 0.967,
6
+ "SeedArtist": 0.6,
7
+ "RelatedArtist": 2.084,
8
+ "Era": 0.189,
9
+ "ArtistTaste": 0,
10
+ "PlayedNext": 2.647,
11
+ "SessionNeighbours": 2.835,
12
+ "FavouriteSound": 0.4,
13
+ "ExternalArtist": 1,
14
+ "Popularity": 0.129,
15
+ "Sound": 1,
16
+ "Feedback": 1.5,
17
+ "Liked": 0,
18
+ "Disliked": 2,
19
+ "Familiar": 1.378,
20
+ "Satiation": -1,
21
+ "Separation": -1,
22
+ "CrowdNext": 1.348,
23
+ "CrowdArtist": 1.847,
24
+ "GenreFlow": 0,
25
+ "SoundFit": 0,
26
+ "CrowdUnknown": 0,
27
+ "Saved": 2
28
+ }
29
+ }