Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e17a4d3b
Unverified
Commit
e17a4d3b
authored
Jul 29, 2025
by
Cyrus Leung
Committed by
GitHub
Jul 28, 2025
Browse files
[Bugfix] Fix granite speech shape validation (#21762)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
ec261b02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vllm/model_executor/models/granite_speech.py
vllm/model_executor/models/granite_speech.py
+4
-3
No files found.
vllm/model_executor/models/granite_speech.py
View file @
e17a4d3b
...
...
@@ -64,14 +64,15 @@ class GraniteSpeechAudioInputs(TensorSchema):
Dimensions:
- b: Batch size
- nf: Number of audio features (variable length)
- fi: Number of input features from the Mel spectrogram.
- fo: Number of output features, i.e. the embedding size.
- 160: Fixed feature dimension for Mel spectrogram features
"""
input_features
:
Annotated
[
torch
.
Tensor
,
TensorShape
(
"b"
,
"
n
f"
,
160
)]
input_features
:
Annotated
[
torch
.
Tensor
,
TensorShape
(
"b"
,
"f
i
"
,
160
)]
"""Audio input features."""
input_features_mask
:
Annotated
[
torch
.
Tensor
,
TensorShape
(
"b"
,
"
n
f"
)]
input_features_mask
:
Annotated
[
torch
.
Tensor
,
TensorShape
(
"b"
,
"f
o
"
)]
"""Mask for variable length audio features."""
audio_embed_sizes
:
Annotated
[
list
[
int
],
TensorShape
(
"b"
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment