yuekai's picture
Upload folder using huggingface_hub
cf2fb0e verified
# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: "whisper_bls"
backend: "python"
max_batch_size: 64
model_transaction_policy {
decoupled: False
}
parameters [
{
key: "n_mels",
value: {string_value:"128"} # 128 dim for large-v3, 80 dim for large-v2
},
{
key: "engine_dir"
value: {string_value: "/home/scratch.yuekaiz_wwfo_1/asr/open_asr_leaderboard/tensorrtllm/whisper_large-v3-turbo/encoder"}
},
{
key: "zero_pad"
value: {string_value: "false"}
}
]
input [
{
name: "TEXT_PREFIX"
data_type: TYPE_STRING
dims: [1]
},
{
name: "WAV"
data_type: TYPE_FP32
dims: [-1]
},
{
name: "WAV_LENS"
data_type: TYPE_INT32
dims: [1]
optional: True
}
]
output [
{
name: "TRANSCRIPTS"
data_type: TYPE_STRING
dims: [1]
}
]
dynamic_batching {
}
instance_group [
{
count: 8
kind: KIND_CPU
}
]