Skip to content
Discussion options

You must be logged in to vote

Hi @Harshs-09, great question, and I’ve seen this issue trip up many users when switching from HuggingFace-hosted models to local pipelines with pyannote.

Let me walk you through it..

Why you’re seeing pipeline.instantiate(parameters)

When you load a config.yaml via:

pipeline = Pipeline.from_pretrained("models/config.yaml")
you’re only parsing the config template, not the full pipeline object yet. That’s why pipeline(audio_file) throws:

RuntimeError: A pipeline must be instantiated with pipeline.instantiate(parameters)``

This happens because config.yaml doesn't contain the pre-frozen parameters — you still need to explicitly instantiate the pipeline.

Fix: Use .instantiate({}) after loading

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Harshs-09
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants