Repository navigation
pocket_tts: support flow_lm.z_proj when z_dim differs from transformer d_model - #1239
Conversation
|
@michsethowusu One regression: |
|
Good catch, thank you! Pushed a fix to treat |
|
@michsethowusu Adding Instead, implement nullable handling in |
|
@michsethowusu I don't have permission to push changes to your branch. I was planning to create a new PR to preserve your authorship, or would you prefer to make the changes yourself? |
|
@0xShug0 I have invited you with write/push permissions to our |
|
You can accept the invite here: https://github.com/AfriSpeech/audio.cpp/invitations |
6e7e47d to
9970f03
Compare
Summary
When running compact PocketTTS models where
flow_lm.transformer.d_modelis smaller thanflow_lm.z_dim(e.g.d_model=512withz_dim=1024for full-rank flow matching), PyTorchpocket-ttsinserts a projection layerflow_lm.z_proj(Linear(d_model, z_dim)).This PR adds support for:
flow_lm.z_dimintoflow_condition_diminPocketTTSDescriptor/PocketTTSModelConfig(defaulting toflow_dimif omitted).flow_lm.z_proj.weightand optionalflow_lm.z_proj.biasinload_backend_flow_weights.z_projectiononcondition_before passing toout_eosandflow_netinFlowLM::build().When
flow_lm.z_projis not present (e.g. in standard 110M models), behavior remains identical.