Dear All, <div>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:</div><div><span style="font-size: 13px; border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; word-break: break-all;"><span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 116, 39);"> </span></span></div><div><span style="font-size: 13px; border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; word-break: break-all;"><span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 116, 39);"><span style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;">chat = ba.CHATFile(path = "inputfile.cha")</span><br style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;" /><span style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;">doc = chat.doc</span><br style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;" /><span style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;">nlp = ba.BatchalignPipeline.new("fa", lang="eng", num_speakers=2)</span><br style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;" /><span style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;">doc = nlp(chat)</span><br style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;" /><span style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;">final = ba.CHATFile(doc=doc)</span><br style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;" /><span style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;">final.write("final.cha")</span><br /></span></span></div><div><span style="font-size: 13px; border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; word-break: break-all;"><span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 116, 39);"><span style="color: rgba(0, 0, 0, 0.87); font-size: 14px; font-weight: 400;"><br /></span></span></span></div><div>I get a very lengthy error output, which I can share if needed, but this seems to be the main error:</div><div><span style="font-size: 13px; border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; word-break: break-all;"><span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 116, 39);"><span style="border: none; margin: 0px; padding: 0px; overflow: auto; word-break: break-all; overflow-wrap: break-word; white-space-collapse: preserve; font-weight: 400;"><span style="color: rgb(231, 92, 88);">RuntimeError</span> Traceback (most recent call last)
Cell <span style="color: rgb(0, 162, 80);">In[38], line 4</span>
<span style="font-weight: bold;"> 2</span> chat <span style="color: rgb(98, 98, 98);">=</span> ba<span style="color: rgb(98, 98, 98);">.</span>CHATFile(path <span style="color: rgb(98, 98, 98);">=</span> <span style="color: rgb(175, 0, 0);">"inputfile</span><span style="color: rgb(175, 0, 0);">.cha</span><span style="color: rgb(175, 0, 0);">"</span>)
<span style="font-weight: bold;"> 3</span> doc <span style="color: rgb(98, 98, 98);">=</span> chat<span style="color: rgb(98, 98, 98);">.</span>doc
<span style="color: rgb(0, 162, 80);">----> 4</span> nlp <span style="color: rgb(98, 98, 98);">=</span> ba<span style="color: rgb(98, 98, 98);">.</span>BatchalignPipeline<span style="color: rgb(98, 98, 98);">.</span>new(<span style="color: rgb(175, 0, 0);">"</span><span style="color: rgb(175, 0, 0);">fa</span><span style="color: rgb(175, 0, 0);">"</span>, lang<span style="color: rgb(98, 98, 98);">=</span><span style="color: rgb(175, 0, 0);">"</span><span style="color: rgb(175, 0, 0);">eng</span><span style="color: rgb(175, 0, 0);">"</span>, num_speakers<span style="color: rgb(98, 98, 98);">=</span><span style="color: rgb(98, 98, 98);">2</span>)
<span style="font-weight: bold;"> 5</span> doc <span style="color: rgb(98, 98, 98);">=</span> nlp(chat)
<span style="font-weight: bold;"> 6</span> final <span style="color: rgb(98, 98, 98);">=</span> ba<span style="color: rgb(98, 98, 98);">.</span>CHATFile(doc<span style="color: rgb(98, 98, 98);">=</span>doc)</span><br /></span></span></div><div><span style="font-size: 13px; border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; word-break: break-all;"><span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 116, 39);"><span style="border: none; margin: 0px; padding: 0px; overflow: auto; word-break: break-all; overflow-wrap: break-word; white-space-collapse: preserve; font-weight: 400;"><br /></span></span></span></div><div><span style="font-size: 13px; border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; word-break: break-all;"><span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="border: none; margin: 0px; padding: 0px; overflow: auto; word-break: break-all; overflow-wrap: break-word; white-space-collapse: preserve; font-weight: 400;"><font color="#000000">[...]</font></span></span></span></div><div><span style="font-size: 13px; border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; word-break: break-all;"><span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 116, 39);"><span style="border: none; margin: 0px; padding: 0px; overflow: auto; word-break: break-all; overflow-wrap: break-word; white-space-collapse: preserve; font-weight: 400;"><br /></span></span></span></div><div><span style="font-size: 13px; border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; word-break: break-all;"><span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 116, 39);">2572</span> <span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 135, 0);">raise</span> <span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(215, 95, 95);">ValueError</span>(
<span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 116, 39);"> 2573</span> <span style="border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(175, 0, 0);">"</span><span style="border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(175, 0, 0);">You cannot cast a GPTQ model in a new `dtype`. Make sure to load the model using `from_pretrained` using the desired</span><span style="border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(175, 0, 0);">"</span>
<span style="border: 0px; font-style: inherit; font-variant: inherit; font-weight: bold; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 116, 39);"> 2574</span> <span style="border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(175, 0, 0);">"</span><span style="border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(175, 0, 0);"> `dtype` by passing the correct `torch_dtype` argument.</span><span style="border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(175, 0, 0);">"</span></span><br /></div><div><span style="font-size: 13px; border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; word-break: break-all;"><span style="border: 0px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(175, 0, 0);"><br /></span></span></div><div><font color="#000000">Would anyone have encountered a similar error and know how to solve it? <br />Thank you in advance for the time and availability. </font></div><div><font color="#000000">Kind Regards, </font></div><div><font color="#000000">Richard</font></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "chibolts" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts+unsubscribe@googlegroups.com">chibolts+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/d0c8ac03-c420-4cc1-a8e8-0d9ce66542ddn%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/chibolts/d0c8ac03-c420-4cc1-a8e8-0d9ce66542ddn%40googlegroups.com</a>.<br />