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
ead7bde1
Unverified
Commit
ead7bde1
authored
Mar 04, 2026
by
Cyrus Leung
Committed by
GitHub
Mar 04, 2026
Browse files
[Bugfix] Make `kaldi_native_fbank` optional (#35996)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
6aa6ad89
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
requirements/common.txt
requirements/common.txt
+0
-1
requirements/test.in
requirements/test.in
+1
-0
requirements/test.txt
requirements/test.txt
+2
-0
vllm/transformers_utils/processors/fireredasr2_processor.py
vllm/transformers_utils/processors/fireredasr2_processor.py
+8
-1
No files found.
requirements/common.txt
View file @
ead7bde1
...
@@ -57,4 +57,3 @@ opentelemetry-sdk >= 1.27.0
...
@@ -57,4 +57,3 @@ opentelemetry-sdk >= 1.27.0
opentelemetry-api >= 1.27.0
opentelemetry-api >= 1.27.0
opentelemetry-exporter-otlp >= 1.27.0
opentelemetry-exporter-otlp >= 1.27.0
opentelemetry-semantic-conventions-ai >= 0.4.1
opentelemetry-semantic-conventions-ai >= 0.4.1
kaldi-native-fbank >= 1.18.7
requirements/test.in
View file @
ead7bde1
...
@@ -67,6 +67,7 @@ segmentation-models-pytorch > 0.4.0 # Required for Prithvi tests
...
@@ -67,6 +67,7 @@ segmentation-models-pytorch > 0.4.0 # Required for Prithvi tests
gpt-oss >= 0.0.7; python_version > '3.11'
gpt-oss >= 0.0.7; python_version > '3.11'
perceptron # required for isaac test
perceptron # required for isaac test
kaldi-native-fbank >= 1.18.7 # required for fireredasr2 test
# Newer versions of datasets require torchcoded, that makes the tests fail in CI because of a missing library.
# Newer versions of datasets require torchcoded, that makes the tests fail in CI because of a missing library.
# Older versions are in conflict with teerratorch requirements.
# Older versions are in conflict with teerratorch requirements.
...
...
requirements/test.txt
View file @
ead7bde1
...
@@ -417,6 +417,8 @@ jsonschema-specifications==2024.10.1
...
@@ -417,6 +417,8 @@ jsonschema-specifications==2024.10.1
# via jsonschema
# via jsonschema
junit-xml==1.9
junit-xml==1.9
# via schemathesis
# via schemathesis
kaldi-native-fbank==1.22.3
# via -r requirements/test.in
kaleido==0.2.1
kaleido==0.2.1
# via genai-perf
# via genai-perf
kiwisolver==1.4.7
kiwisolver==1.4.7
...
...
vllm/transformers_utils/processors/fireredasr2_processor.py
View file @
ead7bde1
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
from
typing
import
TYPE_CHECKING
import
kaldi_native_fbank
as
knf
import
numpy
as
np
import
numpy
as
np
import
torch
import
torch
import
torch.nn.functional
as
F
import
torch.nn.functional
as
F
...
@@ -16,6 +16,13 @@ from transformers.processing_utils import ProcessorMixin
...
@@ -16,6 +16,13 @@ from transformers.processing_utils import ProcessorMixin
from
transformers.utils
import
TensorType
from
transformers.utils
import
TensorType
from
vllm.logger
import
init_logger
from
vllm.logger
import
init_logger
from
vllm.utils.import_utils
import
LazyLoader
if
TYPE_CHECKING
:
import
kaldi_native_fbank
as
knf
else
:
knf
=
LazyLoader
(
"knf"
,
globals
(),
"kaldi_native_fbank"
)
logger
=
init_logger
(
__name__
)
logger
=
init_logger
(
__name__
)
...
...
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