Skip to content

using the training checkpoint for inference #11

@himaivan

Description

@himaivan

Hi @lucadellalib,

Thank you for the excellent work.
I have used the training recipe in speechbrain. to train my own model
I obtain multiple models in the ckpt folder:
CKPT.yaml brain.ckpt compressor.ckpt counter.ckpt dataloader-TRAIN.ckpt decompressor.ckpt optimizer.ckpt quantizer.ckpt scheduler.ckpt

How to perform the inference from this model, i.e., encode audio into tokens?
In the example, the codec model is loaded from torch.hub.load using safetensor format. How can I convert the model in the ckpt folder to the safetensor format so it can be loaded with torch.hub.load?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions