Archived
core: a frame pass names the row before the frame's own -- its KV slot, position and context, for a frame head that attends at the row its hidden state comes from (Fish Audio drama-3's codebook tower)
This commit is contained in:
1 parent
346efdeb2e
commit
f201c140ab
6 files changed
+34
-2
No files matched your search
@@ -137,6 +137,9 @@ ABI_FIELD(RadAudioGenBatch, voc_latents)
|
||||
ABI_FIELD(RadAudioGenBatch, voc_left)
|
||||
ABI_FIELD(RadAudioGenBatch, voc_right)
|
||||
ABI_FIELD(RadAudioGenBatch, voc_frame0)
|
||||
ABI_FIELD(RadAudioGenBatch, prev_slot)
|
||||
ABI_FIELD(RadAudioGenBatch, prev_pos)
|
||||
ABI_FIELD(RadAudioGenBatch, prev_used)
|
||||
ABI_STRUCT(RadAudioGenDecl)
|
||||
ABI_FIELD(RadAudioGenDecl, name)
|
||||
ABI_FIELD(RadAudioGenDecl, tmpl)
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
{ "RadBuildCtx", "max_audio_frames", 88, 8 },
|
||||
{ "RadBuildCtx", "max_mixed_tok", 96, 8 },
|
||||
{ "RadBuildCtx", "kv_quant", 104, 4 },
|
||||
{ "RadAudioGenBatch", "", 0, 264 },
|
||||
{ "RadAudioGenBatch", "", 0, 288 },
|
||||
{ "RadAudioGenBatch", "n_lane", 0, 8 },
|
||||
{ "RadAudioGenBatch", "lane", 8, 8 },
|
||||
{ "RadAudioGenBatch", "lane_h", 16, 8 },
|
||||
@@ -134,6 +134,9 @@
|
||||
{ "RadAudioGenBatch", "voc_left", 244, 4 },
|
||||
{ "RadAudioGenBatch", "voc_right", 248, 4 },
|
||||
{ "RadAudioGenBatch", "voc_frame0", 256, 8 },
|
||||
{ "RadAudioGenBatch", "prev_slot", 264, 8 },
|
||||
{ "RadAudioGenBatch", "prev_pos", 272, 8 },
|
||||
{ "RadAudioGenBatch", "prev_used", 280, 8 },
|
||||
{ "RadAudioGenDecl", "", 0, 232 },
|
||||
{ "RadAudioGenDecl", "name", 0, 8 },
|
||||
{ "RadAudioGenDecl", "tmpl", 8, 8 },
|
||||
|
||||
@@ -267,6 +267,10 @@ TEST(a_hybrid_model_of_one_branch_stages_its_state_groups) {
|
||||
CHECK_EQ(b->n_tok, (int64_t)1);
|
||||
CHECK_EQ(b->positions[0], 4); /* after the four prompt rows */
|
||||
CHECK_EQ(b->ctx_lens[0], 4);
|
||||
/* The row the frame is sampled from: the prompt's last, at its slot. */
|
||||
CHECK_EQ(b->agen_b->prev_pos[0], 3);
|
||||
CHECK_EQ(b->agen_b->prev_used[0], 4);
|
||||
CHECK_EQ(b->agen_b->prev_slot[0], b->kv[0].slot_mapping[0] - 1);
|
||||
CHECK_EQ(b->num_accepted[0], 1);
|
||||
int32_t st1 = 0, cv1 = 0;
|
||||
state_rows(b, &st1, &cv1);
|
||||
|
||||
Reference in new issue
Block a user