Batchalign 2 - Unable to run Whisper Engine / Forced Alignment

42 views
Skip to first unread message

Richard Ghiuzan

unread,
Sep 13, 2024, 10:20:56 AM9/13/24
to chibolts
Dear All, 
I have been using the library version of Batchalign 2 to produce transcripts, and while I've been able to do so, I've been getting a recurrent error whenever trying to run a forced alignment on an existing transcript using the following line of coding:
 
chat = ba.CHATFile(path = "inputfile.cha")
doc = chat.doc
nlp = ba.BatchalignPipeline.new("fa", lang="eng", num_speakers=2)
doc = nlp(chat)
final = ba.CHATFile(doc=doc)
final.write("final.cha")

I get a very lengthy error output, which I can share if needed, but this seems to be the main error:
RuntimeError Traceback (most recent call last) Cell In[38], line 4 2 chat = ba.CHATFile(path = "inputfile.cha") 3 doc = chat.doc ----> 4 nlp = ba.BatchalignPipeline.new("fa", lang="eng", num_speakers=2) 5 doc = nlp(chat) 6 final = ba.CHATFile(doc=doc)

[...]

2572 raise ValueError( 2573 "You cannot cast a GPTQ model in a new `dtype`. Make sure to load the model using `from_pretrained` using the desired" 2574 " `dtype` by passing the correct `torch_dtype` argument."

Would anyone have encountered a similar error and know how to solve it? 
Thank you in advance for the time and availability. 
Kind Regards, 
Richard

Brian Macwhinney

unread,
Sep 13, 2024, 10:33:31 AM9/13/24
to ChiBolts, Houjun Liu
Richard,
Please send this or any other Batchalign2 error issues as a bug report to the GitHub issues page at https://github.com/TalkBank/batchalign2/issues

Many thanks,

— Brian MacWhinney
Teresa Heinz Professor of Cognitive Psychology,
Language Technologies and Modern Languages, CMU
> --
> You received this message because you are subscribed to the Google Groups "chibolts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chibolts+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/chibolts/d0c8ac03-c420-4cc1-a8e8-0d9ce66542ddn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages