Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AttributeError: 'Gemma3Config' object has no attribute 'num_hidden_layers' #317

@aidyai

Description

@aidyai

I have tried all the possible combination of various Transformer models across diferrent version but I still end up with this issue.
Have you guys tried running this inference code on huggingface?

pip install transformers peft librosa
import transformers
import numpy as np
import librosa

pipe = transformers.pipeline(model='fixie-ai/ultravox-v0_6-gemma-3-27b', trust_remote_code=True)

path = "" # TODO: pass the audio here
audio, sr = librosa.load(path, sr=16000)

turns = [
{
"role": "system",
"content": "You are a friendly and helpful character. You love to answer questions for people."
},
]
pipe({'audio': audio, 'turns': turns, 'sampling_rate': sr}, max_new_tokens=30)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions