Skip to content

标点模型(punc model)推理速度过慢 #1314

@songyinghao

Description

@songyinghao

What is your question?

使用标点模型(punc_ct-transformer_cn-en-common-vocab471067-large)时,推理速度很慢,20S左右
v2.0.4

Code

# punc_model
punc_model = AutoModel(model=punc_model_path,
                       device = "cuda",
                       ngpu = 1
                    )
sentence = punc_model.generate(input="你好,这是一个测试")[0]["text"]
print(sentence)

What have you tried?

What's your environment?

  • OS (e.g., Linux):
  • FunASR Version (e.g., 1.0.3):直接拉取最新的git代码
  • Any other relevant information:

Weixin Screenshot_20240129171203
Weixin Screenshot_20240129171243

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions