Whisper-Large-v3 Sequence Limit Error

Heads-up: While testing Whisper-Large-v3, I got an error β€” sequence length 804 exceeds the max limit of 448.

@mkhristi32

Thank you for bringing this to our attention. We are currently investigating the issue related to the sequence length exceeding the maximum limit while testing Whisper-Large-v3.

Our team is actively working on it, and we will keep you informed of any updates or resolutions as soon as possible.

Please feel free to reach out if you have any further questions in the meantime.

Best regards,
Durgesh

1 Like

@mkhristi32
We have replicated the scenario on our end using the same parameters, and the transcription process is working as expected. Below is a sample of the code we used, along with the output for your reference.

If possible, could you kindly share the specific audio file you are using? This will help us test with the exact same input and assist you more effectively.

from dotenv import load_dotenv
import os
import requests

load_dotenv()
API_KEY = os.getenv("sambanova Api Key")

def transcribe_audio(audio_file_path, api_key, language="english"):
  headers = {"Authorization": f"Bearer {api_key}"}

  files = {"file": open(audio_file_path, "rb")}

  data = {
      "model": "Whisper-Large-v3",
      "language": language,
      "response_format": "json",
  }

  response = requests.post(
      "https://api.sambanova.ai/v1/audio/transcriptions",
      headers=headers,
      files=files,
      data=data,
  )

  return response.json()

transcription  = transcribe_audio("audio file path",API_KEY)
print(transcription)type or paste code here

output:
{'text': "If you're hearing this, then either everything went according to plan. Or it didn't, and I'm not around to clean it up. I made the drop. The package, wrapped in tomorrow's weather report, is in locker 18B, combo 4-9-1-2. That's the only place it's safe now. Red Falcon should be there at 0300. I never saw their face. Never will. That's the way it's supposed to be. I planted the beacon.eacon, disguised as lipstick. Elegant little thing. Sinks to a ghost server. Auto-wipes the second the locker opens. But. Something's off. I spotted someone near the silo, the same guy from Istanbul. The janitor. I thought we'd lost him years ago. Guess not. Mark always said we wouldn't get a second chance.nce and leo he paid for his ringtone with his life that's why i've gone analog no phones no trace no names just code shadows and silence if i don't check back in 48 hours burn this burn everything we all have ghosts some of us justjust send messages to them."}

Regards,
Durgesh

3 Likes

Hej Durgesh
Thanks a lot β€” it’s working now on my end too. Appreciate your quick help! :folded_hands:

Best regards,
Martin