import{S as Wc,i as Ic,s as Hc,e as n,k as p,w as b,t as r,M as Xc,c as a,d as o,m as h,a as s,x as w,h as i,b as d,G as e,g as _,y,q as k,o as $,B as T,v as Bc,L as so}from"../../chunks/vendor-hf-doc-builder.js";import{T as Wo}from"../../chunks/Tip-hf-doc-builder.js";import{D as P}from"../../chunks/Docstring-hf-doc-builder.js";import{C as ro}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as X}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as ao}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function Rc(U){let c,S,g,u,v;return u=new ro({props:{code:`from transformers import UniSpeechSatModel, UniSpeechSatConfig

# Initializing a UniSpeechSat microsoft/unispeech-sat-base-100h-libri-ft style configuration
configuration = UniSpeechSatConfig()

# Initializing a model from the microsoft/unispeech-sat-base-100h-libri-ft style configuration
model = UniSpeechSatModel(configuration)

# Accessing the model configuration
configuration = model.config`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> UniSpeechSatModel, UniSpeechSatConfig

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a UniSpeechSat microsoft/unispeech-sat-base-100h-libri-ft style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = UniSpeechSatConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the microsoft/unispeech-sat-base-100h-libri-ft style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = UniSpeechSatModel(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`}}),{c(){c=n("p"),S=r("Example:"),g=p(),b(u.$$.fragment)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Example:"),m.forEach(o),g=h(l),w(u.$$.fragment,l)},m(l,m){_(l,c,m),e(c,S),_(l,g,m),y(u,l,m),v=!0},p:so,i(l){v||(k(u.$$.fragment,l),v=!0)},o(l){$(u.$$.fragment,l),v=!1},d(l){l&&o(c),l&&o(g),T(u,l)}}}function Zc(U){let c,S,g,u,v;return{c(){c=n("p"),S=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),g=n("code"),u=r("Module"),v=r(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),g=a(m,"CODE",{});var F=s(g);u=i(F,"Module"),F.forEach(o),v=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(o)},m(l,m){_(l,c,m),e(c,S),e(c,g),e(g,u),e(c,v)},d(l){l&&o(c)}}}function Qc(U){let c,S,g,u,v;return u=new ro({props:{code:`from transformers import AutoProcessor, UniSpeechSatModel
import torch
from datasets import load_dataset

dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
dataset = dataset.sort("id")
sampling_rate = dataset.features["audio"].sampling_rate

processor = AutoProcessor.from_pretrained("microsoft/unispeech-sat-base-100h-libri-ft")
model = UniSpeechSatModel.from_pretrained("microsoft/unispeech-sat-base-100h-libri-ft")

# audio file is decoded on the fly
inputs = processor(dataset[0]["audio"]["array"], sampling_rate=sampling_rate, return_tensors="pt")
with torch.no_grad():
    outputs = model(**inputs)

last_hidden_states = outputs.last_hidden_state
list(last_hidden_states.shape)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, UniSpeechSatModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_demo&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.sort(<span class="hljs-string">&quot;id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = dataset.features[<span class="hljs-string">&quot;audio&quot;</span>].sampling_rate

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base-100h-libri-ft&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = UniSpeechSatModel.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base-100h-libri-ft&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># audio file is decoded on the fly</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>], sampling_rate=sampling_rate, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(last_hidden_states.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">292</span>, <span class="hljs-number">768</span>]`}}),{c(){c=n("p"),S=r("Example:"),g=p(),b(u.$$.fragment)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Example:"),m.forEach(o),g=h(l),w(u.$$.fragment,l)},m(l,m){_(l,c,m),e(c,S),_(l,g,m),y(u,l,m),v=!0},p:so,i(l){v||(k(u.$$.fragment,l),v=!0)},o(l){$(u.$$.fragment,l),v=!1},d(l){l&&o(c),l&&o(g),T(u,l)}}}function Yc(U){let c,S,g,u,v;return{c(){c=n("p"),S=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),g=n("code"),u=r("Module"),v=r(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),g=a(m,"CODE",{});var F=s(g);u=i(F,"Module"),F.forEach(o),v=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(o)},m(l,m){_(l,c,m),e(c,S),e(c,g),e(g,u),e(c,v)},d(l){l&&o(c)}}}function Jc(U){let c,S,g,u,v;return u=new ro({props:{code:`from transformers import AutoProcessor, UniSpeechSatForCTC
from datasets import load_dataset
import torch

dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
dataset = dataset.sort("id")
sampling_rate = dataset.features["audio"].sampling_rate

processor = AutoProcessor.from_pretrained("microsoft/unispeech-sat-base-100h-libri-ft")
model = UniSpeechSatForCTC.from_pretrained("microsoft/unispeech-sat-base-100h-libri-ft")

# audio file is decoded on the fly
inputs = processor(dataset[0]["audio"]["array"], sampling_rate=sampling_rate, return_tensors="pt")
with torch.no_grad():
    logits = model(**inputs).logits
predicted_ids = torch.argmax(logits, dim=-1)

# transcribe speech
transcription = processor.batch_decode(predicted_ids)
transcription[0]

inputs["labels"] = processor(text=dataset[0]["text"], return_tensors="pt").input_ids

# compute loss
loss = model(**inputs).loss
round(loss.item(), 2)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, UniSpeechSatForCTC
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_demo&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.sort(<span class="hljs-string">&quot;id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = dataset.features[<span class="hljs-string">&quot;audio&quot;</span>].sampling_rate

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base-100h-libri-ft&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = UniSpeechSatForCTC.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base-100h-libri-ft&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># audio file is decoded on the fly</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>], sampling_rate=sampling_rate, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_ids = torch.argmax(logits, dim=-<span class="hljs-number">1</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># transcribe speech</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>transcription = processor.batch_decode(predicted_ids)
<span class="hljs-meta">&gt;&gt;&gt; </span>transcription[<span class="hljs-number">0</span>]
<span class="hljs-string">&#x27;MISTER QUILDER IS THE APOSTLE OF THE MIDDLE CLASSES AND WE ARE GLAD TO WELCOME HIS GOSPEL&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs[<span class="hljs-string">&quot;labels&quot;</span>] = processor(text=dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;text&quot;</span>], return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).input_ids

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># compute loss</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs).loss
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">round</span>(loss.item(), <span class="hljs-number">2</span>)
<span class="hljs-number">39.88</span>`}}),{c(){c=n("p"),S=r("Example:"),g=p(),b(u.$$.fragment)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Example:"),m.forEach(o),g=h(l),w(u.$$.fragment,l)},m(l,m){_(l,c,m),e(c,S),_(l,g,m),y(u,l,m),v=!0},p:so,i(l){v||(k(u.$$.fragment,l),v=!0)},o(l){$(u.$$.fragment,l),v=!1},d(l){l&&o(c),l&&o(g),T(u,l)}}}function Gc(U){let c,S,g,u,v;return{c(){c=n("p"),S=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),g=n("code"),u=r("Module"),v=r(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),g=a(m,"CODE",{});var F=s(g);u=i(F,"Module"),F.forEach(o),v=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(o)},m(l,m){_(l,c,m),e(c,S),e(c,g),e(g,u),e(c,v)},d(l){l&&o(c)}}}function Kc(U){let c,S,g,u,v;return u=new ro({props:{code:`from transformers import AutoFeatureExtractor, UniSpeechSatForSequenceClassification
from datasets import load_dataset
import torch

dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
dataset = dataset.sort("id")
sampling_rate = dataset.features["audio"].sampling_rate

feature_extractor = AutoFeatureExtractor.from_pretrained("microsoft/unispeech-sat-base-100h-libri-ft")
model = UniSpeechSatForSequenceClassification.from_pretrained("microsoft/unispeech-sat-base-100h-libri-ft")

# audio file is decoded on the fly
inputs = feature_extractor(dataset[0]["audio"]["array"], sampling_rate=sampling_rate, return_tensors="pt")

with torch.no_grad():
    logits = model(**inputs).logits

predicted_class_ids = torch.argmax(logits, dim=-1).item()
predicted_label = model.config.id2label[predicted_class_ids]

# compute loss - target_label is e.g. "down"
target_label = model.config.id2label[0]
inputs["labels"] = torch.tensor([model.config.label2id[target_label]])
loss = model(**inputs).loss`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor, UniSpeechSatForSequenceClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_demo&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.sort(<span class="hljs-string">&quot;id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = dataset.features[<span class="hljs-string">&quot;audio&quot;</span>].sampling_rate

<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base-100h-libri-ft&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = UniSpeechSatForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base-100h-libri-ft&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># audio file is decoded on the fly</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = feature_extractor(dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>], sampling_rate=sampling_rate, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_class_ids = torch.argmax(logits, dim=-<span class="hljs-number">1</span>).item()
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_label = model.config.id2label[predicted_class_ids]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># compute loss - target_label is e.g. &quot;down&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>target_label = model.config.id2label[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs[<span class="hljs-string">&quot;labels&quot;</span>] = torch.tensor([model.config.label2id[target_label]])
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs).loss`}}),{c(){c=n("p"),S=r("Example:"),g=p(),b(u.$$.fragment)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Example:"),m.forEach(o),g=h(l),w(u.$$.fragment,l)},m(l,m){_(l,c,m),e(c,S),_(l,g,m),y(u,l,m),v=!0},p:so,i(l){v||(k(u.$$.fragment,l),v=!0)},o(l){$(u.$$.fragment,l),v=!1},d(l){l&&o(c),l&&o(g),T(u,l)}}}function ed(U){let c,S,g,u,v;return{c(){c=n("p"),S=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),g=n("code"),u=r("Module"),v=r(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),g=a(m,"CODE",{});var F=s(g);u=i(F,"Module"),F.forEach(o),v=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(o)},m(l,m){_(l,c,m),e(c,S),e(c,g),e(g,u),e(c,v)},d(l){l&&o(c)}}}function td(U){let c,S,g,u,v;return u=new ro({props:{code:`from transformers import AutoFeatureExtractor, UniSpeechSatForAudioFrameClassification
from datasets import load_dataset
import torch

dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
dataset = dataset.sort("id")
sampling_rate = dataset.features["audio"].sampling_rate

feature_extractor = AutoFeatureExtractor.from_pretrained("microsoft/unispeech-sat-base-plus-sd")
model = UniSpeechSatForAudioFrameClassification.from_pretrained("microsoft/unispeech-sat-base-plus-sd")

# audio file is decoded on the fly
inputs = feature_extractor(dataset[0]["audio"]["array"], return_tensors="pt", sampling_rate=sampling_rate)
with torch.no_grad():
    logits = model(**inputs).logits

probabilities = torch.sigmoid(logits[0])
# labels is a one-hot array of shape (num_frames, num_speakers)
labels = (probabilities > 0.5).long()
labels[0].tolist()`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor, UniSpeechSatForAudioFrameClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_demo&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.sort(<span class="hljs-string">&quot;id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = dataset.features[<span class="hljs-string">&quot;audio&quot;</span>].sampling_rate

<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base-plus-sd&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = UniSpeechSatForAudioFrameClassification.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base-plus-sd&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># audio file is decoded on the fly</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = feature_extractor(dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>], return_tensors=<span class="hljs-string">&quot;pt&quot;</span>, sampling_rate=sampling_rate)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span>probabilities = torch.sigmoid(logits[<span class="hljs-number">0</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># labels is a one-hot array of shape (num_frames, num_speakers)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = (probabilities &gt; <span class="hljs-number">0.5</span>).long()
<span class="hljs-meta">&gt;&gt;&gt; </span>labels[<span class="hljs-number">0</span>].tolist()
[<span class="hljs-number">0</span>, <span class="hljs-number">0</span>]`}}),{c(){c=n("p"),S=r("Example:"),g=p(),b(u.$$.fragment)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Example:"),m.forEach(o),g=h(l),w(u.$$.fragment,l)},m(l,m){_(l,c,m),e(c,S),_(l,g,m),y(u,l,m),v=!0},p:so,i(l){v||(k(u.$$.fragment,l),v=!0)},o(l){$(u.$$.fragment,l),v=!1},d(l){l&&o(c),l&&o(g),T(u,l)}}}function od(U){let c,S,g,u,v;return{c(){c=n("p"),S=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),g=n("code"),u=r("Module"),v=r(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),g=a(m,"CODE",{});var F=s(g);u=i(F,"Module"),F.forEach(o),v=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(o)},m(l,m){_(l,c,m),e(c,S),e(c,g),e(g,u),e(c,v)},d(l){l&&o(c)}}}function nd(U){let c,S,g,u,v;return u=new ro({props:{code:`from transformers import AutoFeatureExtractor, UniSpeechSatForXVector
from datasets import load_dataset
import torch

dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
dataset = dataset.sort("id")
sampling_rate = dataset.features["audio"].sampling_rate

feature_extractor = AutoFeatureExtractor.from_pretrained("microsoft/unispeech-sat-base-plus-sv")
model = UniSpeechSatForXVector.from_pretrained("microsoft/unispeech-sat-base-plus-sv")

# audio file is decoded on the fly
inputs = feature_extractor(
    [d["array"] for d in dataset[:2]["audio"]], sampling_rate=sampling_rate, return_tensors="pt", padding=True
)
with torch.no_grad():
    embeddings = model(**inputs).embeddings

embeddings = torch.nn.functional.normalize(embeddings, dim=-1).cpu()

# the resulting embeddings can be used for cosine similarity-based retrieval
cosine_sim = torch.nn.CosineSimilarity(dim=-1)
similarity = cosine_sim(embeddings[0], embeddings[1])
threshold = 0.7  # the optimal threshold is dataset-dependent
if similarity < threshold:
    print("Speakers are not the same!")
round(similarity.item(), 2)`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor, UniSpeechSatForXVector
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_demo&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.sort(<span class="hljs-string">&quot;id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = dataset.features[<span class="hljs-string">&quot;audio&quot;</span>].sampling_rate

<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base-plus-sv&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = UniSpeechSatForXVector.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base-plus-sv&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># audio file is decoded on the fly</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = feature_extractor(
<span class="hljs-meta">... </span>    [d[<span class="hljs-string">&quot;array&quot;</span>] <span class="hljs-keyword">for</span> d <span class="hljs-keyword">in</span> dataset[:<span class="hljs-number">2</span>][<span class="hljs-string">&quot;audio&quot;</span>]], sampling_rate=sampling_rate, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>, padding=<span class="hljs-literal">True</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    embeddings = model(**inputs).embeddings

<span class="hljs-meta">&gt;&gt;&gt; </span>embeddings = torch.nn.functional.normalize(embeddings, dim=-<span class="hljs-number">1</span>).cpu()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># the resulting embeddings can be used for cosine similarity-based retrieval</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>cosine_sim = torch.nn.CosineSimilarity(dim=-<span class="hljs-number">1</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>similarity = cosine_sim(embeddings[<span class="hljs-number">0</span>], embeddings[<span class="hljs-number">1</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>threshold = <span class="hljs-number">0.7</span>  <span class="hljs-comment"># the optimal threshold is dataset-dependent</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">if</span> similarity &lt; threshold:
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;Speakers are not the same!&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">round</span>(similarity.item(), <span class="hljs-number">2</span>)
<span class="hljs-number">0.97</span>`}}),{c(){c=n("p"),S=r("Example:"),g=p(),b(u.$$.fragment)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Example:"),m.forEach(o),g=h(l),w(u.$$.fragment,l)},m(l,m){_(l,c,m),e(c,S),_(l,g,m),y(u,l,m),v=!0},p:so,i(l){v||(k(u.$$.fragment,l),v=!0)},o(l){$(u.$$.fragment,l),v=!1},d(l){l&&o(c),l&&o(g),T(u,l)}}}function ad(U){let c,S,g,u,v;return{c(){c=n("p"),S=r("Although the recipe for forward pass needs to be defined within this function, one should call the "),g=n("code"),u=r("Module"),v=r(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Although the recipe for forward pass needs to be defined within this function, one should call the "),g=a(m,"CODE",{});var F=s(g);u=i(F,"Module"),F.forEach(o),v=i(m,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),m.forEach(o)},m(l,m){_(l,c,m),e(c,S),e(c,g),e(g,u),e(c,v)},d(l){l&&o(c)}}}function sd(U){let c,S,g,u,v;return u=new ro({props:{code:`import torch
from transformers import AutoFeatureExtractor, UniSpeechSatForPreTraining
from transformers.models.unispeech_sat.modeling_unispeech_sat import _compute_mask_indices

feature_extractor = AutoFeatureExtractor.from_pretrained("microsoft/unispeech-sat-base")
model = UniSpeechSatForPreTraining.from_pretrained("microsoft/unispeech-sat-base")
# TODO: Add full pretraining example`,highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor, UniSpeechSatForPreTraining
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers.models.unispeech_sat.modeling_unispeech_sat <span class="hljs-keyword">import</span> _compute_mask_indices

<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = UniSpeechSatForPreTraining.from_pretrained(<span class="hljs-string">&quot;microsoft/unispeech-sat-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># <span class="hljs-doctag">TODO:</span> Add full pretraining example</span>`}}),{c(){c=n("p"),S=r("Example:"),g=p(),b(u.$$.fragment)},l(l){c=a(l,"P",{});var m=s(c);S=i(m,"Example:"),m.forEach(o),g=h(l),w(u.$$.fragment,l)},m(l,m){_(l,c,m),e(c,S),_(l,g,m),y(u,l,m),v=!0},p:so,i(l){v||(k(u.$$.fragment,l),v=!0)},o(l){$(u.$$.fragment,l),v=!1},d(l){l&&o(c),l&&o(g),T(u,l)}}}function rd(U){let c,S,g,u,v,l,m,F,Da,zn,J,ve,Io,Ye,La,Ho,Va,On,Se,Na,Je,Wa,Ia,Dn,io,Ha,Ln,lo,Xo,Xa,Vn,co,Ba,Nn,B,Ge,Ra,po,Za,Qa,Ya,Ke,Ja,ho,Ga,Ka,es,Bo,ts,Wn,R,os,et,ns,as,tt,ss,rs,In,G,be,Ro,ot,is,Zo,ls,Hn,we,Qo,mo,cs,ds,Yo,uo,ps,Xn,K,ye,Jo,nt,hs,Go,ms,Bn,M,at,us,ee,fs,fo,gs,_s,st,vs,Ss,bs,te,ws,go,ys,ks,_o,$s,Ts,Us,ke,Rn,oe,$e,Ko,rt,Fs,en,xs,Zn,ne,it,Cs,lt,js,tn,As,qs,Qn,ae,Te,on,ct,Es,nn,Ps,Yn,A,dt,Ms,pt,zs,ht,Os,Ds,Ls,mt,Vs,vo,Ns,Ws,Is,ut,Hs,ft,Xs,Bs,Rs,z,gt,Zs,se,Qs,So,Ys,Js,an,Gs,Ks,er,Ue,tr,Fe,Jn,re,xe,sn,_t,or,rn,nr,Gn,q,vt,ar,ie,sr,ln,rr,ir,St,lr,cr,dr,bt,pr,bo,hr,mr,ur,wt,fr,yt,gr,_r,vr,O,kt,Sr,le,br,wo,wr,yr,cn,kr,$r,Tr,Ce,Ur,je,Kn,ce,Ae,dn,$t,Fr,pn,xr,ea,x,Tt,Cr,hn,jr,Ar,Ut,qr,Ft,Er,Pr,Mr,xt,zr,yo,Or,Dr,Lr,Ct,Vr,jt,Nr,Wr,Ir,D,At,Hr,de,Xr,ko,Br,Rr,mn,Zr,Qr,Yr,qe,Jr,Ee,ta,pe,Pe,un,qt,Gr,fn,Kr,oa,C,Et,ei,gn,ti,oi,Pt,ni,Mt,ai,si,ri,zt,ii,$o,li,ci,di,Ot,pi,Dt,hi,mi,ui,L,Lt,fi,he,gi,To,_i,vi,_n,Si,bi,wi,Me,yi,ze,na,me,Oe,vn,Vt,ki,Sn,$i,aa,j,Nt,Ti,bn,Ui,Fi,Wt,xi,It,Ci,ji,Ai,Ht,qi,Uo,Ei,Pi,Mi,Xt,zi,Bt,Oi,Di,Li,V,Rt,Vi,ue,Ni,Fo,Wi,Ii,wn,Hi,Xi,Bi,De,Ri,Le,sa,fe,Ve,yn,Zt,Zi,kn,Qi,ra,E,Qt,Yi,ge,Ji,$n,Gi,Ki,Yt,el,tl,ol,Jt,nl,xo,al,sl,rl,Gt,il,Kt,ll,cl,dl,N,eo,pl,_e,hl,Co,ml,ul,Tn,fl,gl,_l,Ne,vl,We,ia;return l=new X({}),Ye=new X({}),ot=new X({}),nt=new X({}),at=new P({props:{name:"class transformers.UniSpeechSatConfig",anchor:"transformers.UniSpeechSatConfig",parameters:[{name:"vocab_size",val:" = 32"},{name:"hidden_size",val:" = 768"},{name:"num_hidden_layers",val:" = 12"},{name:"num_attention_heads",val:" = 12"},{name:"intermediate_size",val:" = 3072"},{name:"hidden_act",val:" = 'gelu'"},{name:"hidden_dropout",val:" = 0.1"},{name:"activation_dropout",val:" = 0.1"},{name:"attention_dropout",val:" = 0.1"},{name:"feat_proj_dropout",val:" = 0.0"},{name:"feat_quantizer_dropout",val:" = 0.0"},{name:"final_dropout",val:" = 0.1"},{name:"layerdrop",val:" = 0.1"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-05"},{name:"feat_extract_norm",val:" = 'group'"},{name:"feat_extract_activation",val:" = 'gelu'"},{name:"conv_dim",val:" = (512, 512, 512, 512, 512, 512, 512)"},{name:"conv_stride",val:" = (5, 2, 2, 2, 2, 2, 2)"},{name:"conv_kernel",val:" = (10, 3, 3, 3, 3, 2, 2)"},{name:"conv_bias",val:" = False"},{name:"num_conv_pos_embeddings",val:" = 128"},{name:"num_conv_pos_embedding_groups",val:" = 16"},{name:"do_stable_layer_norm",val:" = False"},{name:"apply_spec_augment",val:" = True"},{name:"mask_time_prob",val:" = 0.05"},{name:"mask_time_length",val:" = 10"},{name:"mask_time_min_masks",val:" = 2"},{name:"mask_feature_prob",val:" = 0.0"},{name:"mask_feature_length",val:" = 10"},{name:"mask_feature_min_masks",val:" = 0"},{name:"num_codevectors_per_group",val:" = 320"},{name:"num_codevector_groups",val:" = 2"},{name:"contrastive_logits_temperature",val:" = 0.1"},{name:"num_negatives",val:" = 100"},{name:"codevector_dim",val:" = 256"},{name:"proj_codevector_dim",val:" = 256"},{name:"diversity_loss_weight",val:" = 0.1"},{name:"ctc_loss_reduction",val:" = 'mean'"},{name:"ctc_zero_infinity",val:" = False"},{name:"use_weighted_layer_sum",val:" = False"},{name:"classifier_proj_size",val:" = 256"},{name:"tdnn_dim",val:" = (512, 512, 512, 512, 1500)"},{name:"tdnn_kernel",val:" = (5, 3, 3, 1, 1)"},{name:"tdnn_dilation",val:" = (1, 2, 3, 1, 1)"},{name:"xvector_output_dim",val:" = 512"},{name:"pad_token_id",val:" = 0"},{name:"bos_token_id",val:" = 1"},{name:"eos_token_id",val:" = 2"},{name:"num_clusters",val:" = 504"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.UniSpeechSatConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
Vocabulary size of the UniSpeechSat model. Defines the number of different tokens that can be represented
by the <code>inputs_ids</code> passed when calling <a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatModel">UniSpeechSatModel</a>. Vocabulary size of the model. Defines the
different tokens that can be represented by the <em>inputs_ids</em> passed to the forward method of
<a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatModel">UniSpeechSatModel</a>.`,name:"vocab_size"},{anchor:"transformers.UniSpeechSatConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.UniSpeechSatConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.UniSpeechSatConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.UniSpeechSatConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3072) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (i.e., feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.UniSpeechSatConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;selu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.UniSpeechSatConfig.hidden_dropout",description:`<strong>hidden_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"hidden_dropout"},{anchor:"transformers.UniSpeechSatConfig.attention_dropout",description:`<strong>attention_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_dropout"},{anchor:"transformers.UniSpeechSatConfig.final_dropout",description:`<strong>final_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for the final projection layer of <a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatForCTC">UniSpeechSatForCTC</a>.`,name:"final_dropout"},{anchor:"transformers.UniSpeechSatConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.UniSpeechSatConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-12) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.UniSpeechSatConfig.feat_extract_norm",description:`<strong>feat_extract_norm</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;group&quot;</code>) &#x2014;
The norm to be applied to 1D convolutional layers in feature encoder. One of <code>&quot;group&quot;</code> for group
normalization of only the first 1D convolutional layer or <code>&quot;layer&quot;</code> for layer normalization of all 1D
convolutional layers.`,name:"feat_extract_norm"},{anchor:"transformers.UniSpeechSatConfig.feat_proj_dropout",description:`<strong>feat_proj_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability for output of the feature encoder.`,name:"feat_proj_dropout"},{anchor:"transformers.UniSpeechSatConfig.feat_extract_activation",description:"<strong>feat_extract_activation</strong> (<code>str, </code>optional<code>, defaults to </code>&#x201C;gelu&#x201D;<code>) -- The non-linear activation function (function or string) in the 1D convolutional layers of the feature extractor. If string, </code>&#x201C;gelu&#x201D;<code>, </code>&#x201C;relu&#x201D;<code>, </code>&#x201C;selu&#x201D;<code>and</code>&#x201C;gelu_new&#x201D;` are supported.",name:"feat_extract_activation"},{anchor:"transformers.UniSpeechSatConfig.feat_quantizer_dropout",description:`<strong>feat_quantizer_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probabilitiy for quantized feature encoder states.`,name:"feat_quantizer_dropout"},{anchor:"transformers.UniSpeechSatConfig.conv_dim",description:`<strong>conv_dim</strong> (<code>Tuple[int]</code> or <code>List[int]</code>, <em>optional</em>, defaults to <code>(512, 512, 512, 512, 512, 512, 512)</code>) &#x2014;
A tuple of integers defining the number of input and output channels of each 1D convolutional layer in the
feature encoder. The length of <em>conv_dim</em> defines the number of 1D convolutional layers.`,name:"conv_dim"},{anchor:"transformers.UniSpeechSatConfig.conv_stride",description:`<strong>conv_stride</strong> (<code>Tuple[int]</code> or <code>List[int]</code>, <em>optional</em>, defaults to <code>(5, 2, 2, 2, 2, 2, 2)</code>) &#x2014;
A tuple of integers defining the stride of each 1D convolutional layer in the feature encoder. The length
of <em>conv_stride</em> defines the number of convolutional layers and has to match the length of <em>conv_dim</em>.`,name:"conv_stride"},{anchor:"transformers.UniSpeechSatConfig.conv_kernel",description:`<strong>conv_kernel</strong> (<code>Tuple[int]</code> or <code>List[int]</code>, <em>optional</em>, defaults to <code>(10, 3, 3, 3, 3, 3, 3)</code>) &#x2014;
A tuple of integers defining the kernel size of each 1D convolutional layer in the feature encoder. The
length of <em>conv_kernel</em> defines the number of convolutional layers and has to match the length of
<em>conv_dim</em>.`,name:"conv_kernel"},{anchor:"transformers.UniSpeechSatConfig.conv_bias",description:`<strong>conv_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the 1D convolutional layers have a bias.`,name:"conv_bias"},{anchor:"transformers.UniSpeechSatConfig.num_conv_pos_embeddings",description:`<strong>num_conv_pos_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
Number of convolutional positional embeddings. Defines the kernel size of 1D convolutional positional
embeddings layer.`,name:"num_conv_pos_embeddings"},{anchor:"transformers.UniSpeechSatConfig.num_conv_pos_embedding_groups",description:`<strong>num_conv_pos_embedding_groups</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
Number of groups of 1D convolutional positional embeddings layer.`,name:"num_conv_pos_embedding_groups"},{anchor:"transformers.UniSpeechSatConfig.do_stable_layer_norm",description:`<strong>do_stable_layer_norm</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to apply <em>stable</em> layer norm architecture of the Transformer encoder. <code>do_stable_layer_norm is True</code> corresponds to applying layer norm before the attention layer, whereas <code>do_stable_layer_norm is False</code> corresponds to applying layer norm after the attention layer.`,name:"do_stable_layer_norm"},{anchor:"transformers.UniSpeechSatConfig.apply_spec_augment",description:`<strong>apply_spec_augment</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to apply <em>SpecAugment</em> data augmentation to the outputs of the feature encoder. For reference see
<a href="https://arxiv.org/abs/1904.08779" rel="nofollow">SpecAugment: A Simple Data Augmentation Method for Automatic Speech
Recognition</a>.`,name:"apply_spec_augment"},{anchor:"transformers.UniSpeechSatConfig.mask_time_prob",description:`<strong>mask_time_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.05) &#x2014;
Percentage (between 0 and 1) of all feature vectors along the time axis which will be masked. The masking
procecure generates &#x201D;mask_time_prob<em>len(time_axis)/mask_time_length&#x201D; independent masks over the axis. If
reasoning from the propability of each feature vector to be chosen as the start of the vector span to be
masked, </em>mask_time_prob<em> should be \`prob_vector_start</em>mask_time_length<code>. Note that overlap may decrease the actual percentage of masked vectors. This is only relevant if </code>apply_spec_augment is True\`.`,name:"mask_time_prob"},{anchor:"transformers.UniSpeechSatConfig.mask_time_length",description:`<strong>mask_time_length</strong> (<code>int</code>, <em>optional</em>, defaults to 10) &#x2014;
Length of vector span along the time axis.`,name:"mask_time_length"},{anchor:"transformers.UniSpeechSatConfig.mask_time_min_masks",description:`<strong>mask_time_min_masks</strong> (<code>int</code>, <em>optional</em>, defaults to 2), &#x2014;
The minimum number of masks of length <code>mask_feature_length</code> generated along the time axis, each time step,
irrespectively of <code>mask_feature_prob</code>. Only relevant if &#x201D;mask_time_prob*len(time_axis)/mask_time_length &lt;
mask_time_min_masks&#x201D;`,name:"mask_time_min_masks"},{anchor:"transformers.UniSpeechSatConfig.mask_feature_prob",description:`<strong>mask_feature_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Percentage (between 0 and 1) of all feature vectors along the feature axis which will be masked. The
masking procecure generates &#x201D;mask_feature_prob<em>len(feature_axis)/mask_time_length&#x201D; independent masks over
the axis. If reasoning from the propability of each feature vector to be chosen as the start of the vector
span to be masked, </em>mask_feature_prob<em> should be \`prob_vector_start</em>mask_feature_length<code>. Note that overlap may decrease the actual percentage of masked vectors. This is only relevant if </code>apply_spec_augment is
True\`.`,name:"mask_feature_prob"},{anchor:"transformers.UniSpeechSatConfig.mask_feature_length",description:`<strong>mask_feature_length</strong> (<code>int</code>, <em>optional</em>, defaults to 10) &#x2014;
Length of vector span along the feature axis.`,name:"mask_feature_length"},{anchor:"transformers.UniSpeechSatConfig.mask_feature_min_masks",description:`<strong>mask_feature_min_masks</strong> (<code>int</code>, <em>optional</em>, defaults to 0), &#x2014;
The minimum number of masks of length <code>mask_feature_length</code> generated along the feature axis, each time
step, irrespectively of <code>mask_feature_prob</code>. Only relevant if
&#x201D;mask_feature_prob*len(feature_axis)/mask_feature_length &lt; mask_feature_min_masks&#x201D;`,name:"mask_feature_min_masks"},{anchor:"transformers.UniSpeechSatConfig.num_codevectors_per_group",description:`<strong>num_codevectors_per_group</strong> (<code>int</code>, <em>optional</em>, defaults to 320) &#x2014;
Number of entries in each quantization codebook (group).`,name:"num_codevectors_per_group"},{anchor:"transformers.UniSpeechSatConfig.num_codevector_groups",description:`<strong>num_codevector_groups</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
Number of codevector groups for product codevector quantization.`,name:"num_codevector_groups"},{anchor:"transformers.UniSpeechSatConfig.contrastive_logits_temperature",description:`<strong>contrastive_logits_temperature</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The temperature <em>kappa</em> in the contrastive loss.`,name:"contrastive_logits_temperature"},{anchor:"transformers.UniSpeechSatConfig.feat_quantizer_dropout",description:`<strong>feat_quantizer_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probabilitiy for the output of the feature encoder that&#x2019;s used by the quantizer.`,name:"feat_quantizer_dropout"},{anchor:"transformers.UniSpeechSatConfig.num_negatives",description:`<strong>num_negatives</strong> (<code>int</code>, <em>optional</em>, defaults to 100) &#x2014;
Number of negative samples for the contrastive loss.`,name:"num_negatives"},{anchor:"transformers.UniSpeechSatConfig.codevector_dim",description:`<strong>codevector_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
Dimensionality of the quantized feature vectors.`,name:"codevector_dim"},{anchor:"transformers.UniSpeechSatConfig.proj_codevector_dim",description:`<strong>proj_codevector_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
Dimensionality of the final projection of both the quantized and the transformer features.`,name:"proj_codevector_dim"},{anchor:"transformers.UniSpeechSatConfig.diversity_loss_weight",description:`<strong>diversity_loss_weight</strong> (<code>int</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The weight of the codebook diversity loss component.`,name:"diversity_loss_weight"},{anchor:"transformers.UniSpeechSatConfig.ctc_loss_reduction",description:`<strong>ctc_loss_reduction</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;mean&quot;</code>) &#x2014;
Specifies the reduction to apply to the output of <code>torch.nn.CTCLoss</code>. Only relevant when training an
instance of <a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatForCTC">UniSpeechSatForCTC</a>.`,name:"ctc_loss_reduction"},{anchor:"transformers.UniSpeechSatConfig.ctc_zero_infinity",description:`<strong>ctc_zero_infinity</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to zero infinite losses and the associated gradients of <code>torch.nn.CTCLoss</code>. Infinite losses mainly
occur when the inputs are too short to be aligned to the targets. Only relevant when training an instance
of <a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatForCTC">UniSpeechSatForCTC</a>.`,name:"ctc_zero_infinity"},{anchor:"transformers.UniSpeechSatConfig.use_weighted_layer_sum",description:`<strong>use_weighted_layer_sum</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use a weighted average of layer outputs with learned weights. Only relevant when using an
instance of <a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatForSequenceClassification">UniSpeechSatForSequenceClassification</a>.`,name:"use_weighted_layer_sum"},{anchor:"transformers.UniSpeechSatConfig.classifier_proj_size",description:`<strong>classifier_proj_size</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
Dimensionality of the projection before token mean-pooling for classification.`,name:"classifier_proj_size"},{anchor:"transformers.UniSpeechSatConfig.tdnn_dim",description:`<strong>tdnn_dim</strong> (<code>Tuple[int]</code> or <code>List[int]</code>, <em>optional</em>, defaults to <code>(512, 512, 512, 512, 1500)</code>) &#x2014;
A tuple of integers defining the number of output channels of each 1D convolutional layer in the <em>TDNN</em>
module of the <em>XVector</em> model. The length of <em>tdnn_dim</em> defines the number of <em>TDNN</em> layers.`,name:"tdnn_dim"},{anchor:"transformers.UniSpeechSatConfig.tdnn_kernel",description:`<strong>tdnn_kernel</strong> (<code>Tuple[int]</code> or <code>List[int]</code>, <em>optional</em>, defaults to <code>(5, 3, 3, 1, 1)</code>) &#x2014;
A tuple of integers defining the kernel size of each 1D convolutional layer in the <em>TDNN</em> module of the
<em>XVector</em> model. The length of <em>tdnn_kernel</em> has to match the length of <em>tdnn_dim</em>.`,name:"tdnn_kernel"},{anchor:"transformers.UniSpeechSatConfig.tdnn_dilation",description:`<strong>tdnn_dilation</strong> (<code>Tuple[int]</code> or <code>List[int]</code>, <em>optional</em>, defaults to <code>(1, 2, 3, 1, 1)</code>) &#x2014;
A tuple of integers defining the dilation factor of each 1D convolutional layer in <em>TDNN</em> module of the
<em>XVector</em> model. The length of <em>tdnn_dilation</em> has to match the length of <em>tdnn_dim</em>.`,name:"tdnn_dilation"},{anchor:"transformers.UniSpeechSatConfig.xvector_output_dim",description:`<strong>xvector_output_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Dimensionality of the <em>XVector</em> embedding vectors.`,name:"xvector_output_dim"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/configuration_unispeech_sat.py#L34"}}),ke=new ao({props:{anchor:"transformers.UniSpeechSatConfig.example",$$slots:{default:[Rc]},$$scope:{ctx:U}}}),rt=new X({}),it=new P({props:{name:"class transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput",anchor:"transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput",parameters:[{name:"loss",val:": typing.Optional[torch.FloatTensor] = None"},{name:"logits",val:": FloatTensor = None"},{name:"projected_states",val:": FloatTensor = None"},{name:"projected_quantized_states",val:": FloatTensor = None"},{name:"codevector_perplexity",val:": FloatTensor = None"},{name:"hidden_states",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"attentions",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"}],parametersDescription:[{anchor:"transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput.loss",description:`<strong>loss</strong> (<em>optional</em>, returned when model is in train mode, <code>torch.FloatTensor</code> of shape <code>(1,)</code>) &#x2014;
Total loss as the sum of the contrastive loss (L_m) and the diversity loss (L_d) as stated in the <a href="https://arxiv.org/pdf/2006.11477.pdf" rel="nofollow">official
paper</a> . (classification) loss.`,name:"loss"},{anchor:"transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput.projected_states",description:`<strong>projected_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.proj_codevector_dim)</code>) &#x2014;
Hidden-states of the model projected to <em>config.proj_codevector_dim</em> that can be used to predict the masked
projected quantized states.`,name:"projected_states"},{anchor:"transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput.projected_quantized_states",description:`<strong>projected_quantized_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.proj_codevector_dim)</code>) &#x2014;
Quantized extracted feature vectors projected to <em>config.proj_codevector_dim</em> representing the positive
target vectors for contrastive loss.`,name:"projected_quantized_states"},{anchor:"transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput.hidden_states",description:`<strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) &#x2014;
Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each layer) of
shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.`,name:"hidden_states"},{anchor:"transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput.attentions",description:`<strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) &#x2014;
Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.`,name:"attentions"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L80"}}),ct=new X({}),dt=new P({props:{name:"class transformers.UniSpeechSatModel",anchor:"transformers.UniSpeechSatModel",parameters:[{name:"config",val:": UniSpeechSatConfig"}],parametersDescription:[{anchor:"transformers.UniSpeechSatModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig">UniSpeechSatConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1086"}}),gt=new P({props:{name:"forward",anchor:"transformers.UniSpeechSatModel.forward",parameters:[{name:"input_values",val:": typing.Optional[torch.Tensor]"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"mask_time_indices",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.UniSpeechSatModel.forward.input_values",description:`<strong>input_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Float values of input raw speech waveform. Values can be obtained by loading a <code>.flac</code> or <code>.wav</code> audio file
into an array of type <code>List[float]</code> or a <code>numpy.ndarray</code>, <em>e.g.</em> via the soundfile library (<code>pip install soundfile</code>). To prepare the array into <code>input_values</code>, the <a href="/docs/transformers/v4.29.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a> should be used for padding and
conversion into a tensor of type <code>torch.FloatTensor</code>. See <a href="/docs/transformers/v4.29.0/en/model_doc/wav2vec2#transformers.Wav2Vec2Processor.__call__">Wav2Vec2Processor.<strong>call</strong>()</a> for details.`,name:"input_values"},{anchor:"transformers.UniSpeechSatModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing convolution and attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p><code>attention_mask</code> should only be passed if the corresponding processor has <code>config.return_attention_mask == True</code>. For all models whose processor has <code>config.return_attention_mask == False</code>, such as
<a href="https://huggingface.co/microsoft/unispeech-sat-base-100h-libri-ft" rel="nofollow">microsoft/unispeech-sat-base-100h-libri-ft</a>,
<code>attention_mask</code> should <strong>not</strong> be passed to avoid degraded performance when doing batched inference. For
such models <code>input_values</code> should simply be padded with 0 and passed without <code>attention_mask</code>. Be aware
that these models also yield slightly different results depending on whether <code>input_values</code> is padded or
not.</p>

					</div>`,name:"attention_mask"},{anchor:"transformers.UniSpeechSatModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.UniSpeechSatModel.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.UniSpeechSatModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1150",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.Wav2Vec2BaseModelOutput"
>transformers.modeling_outputs.Wav2Vec2BaseModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig"
>UniSpeechSatConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>extract_features</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, conv_dim[-1])</code>) \u2014 Sequence of extracted feature vectors of the last convolutional layer of the model.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each layer) of
shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.Wav2Vec2BaseModelOutput"
>transformers.modeling_outputs.Wav2Vec2BaseModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ue=new Wo({props:{$$slots:{default:[Zc]},$$scope:{ctx:U}}}),Fe=new ao({props:{anchor:"transformers.UniSpeechSatModel.forward.example",$$slots:{default:[Qc]},$$scope:{ctx:U}}}),_t=new X({}),vt=new P({props:{name:"class transformers.UniSpeechSatForCTC",anchor:"transformers.UniSpeechSatForCTC",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.UniSpeechSatForCTC.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig">UniSpeechSatConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1349"}}),kt=new P({props:{name:"forward",anchor:"transformers.UniSpeechSatForCTC.forward",parameters:[{name:"input_values",val:": typing.Optional[torch.Tensor]"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"transformers.UniSpeechSatForCTC.forward.input_values",description:`<strong>input_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Float values of input raw speech waveform. Values can be obtained by loading a <code>.flac</code> or <code>.wav</code> audio file
into an array of type <code>List[float]</code> or a <code>numpy.ndarray</code>, <em>e.g.</em> via the soundfile library (<code>pip install soundfile</code>). To prepare the array into <code>input_values</code>, the <a href="/docs/transformers/v4.29.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a> should be used for padding and
conversion into a tensor of type <code>torch.FloatTensor</code>. See <a href="/docs/transformers/v4.29.0/en/model_doc/wav2vec2#transformers.Wav2Vec2Processor.__call__">Wav2Vec2Processor.<strong>call</strong>()</a> for details.`,name:"input_values"},{anchor:"transformers.UniSpeechSatForCTC.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing convolution and attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p><code>attention_mask</code> should only be passed if the corresponding processor has <code>config.return_attention_mask == True</code>. For all models whose processor has <code>config.return_attention_mask == False</code>, such as
<a href="https://huggingface.co/microsoft/unispeech-sat-base-100h-libri-ft" rel="nofollow">microsoft/unispeech-sat-base-100h-libri-ft</a>,
<code>attention_mask</code> should <strong>not</strong> be passed to avoid degraded performance when doing batched inference. For
such models <code>input_values</code> should simply be padded with 0 and passed without <code>attention_mask</code>. Be aware
that these models also yield slightly different results depending on whether <code>input_values</code> is padded or
not.</p>

					</div>`,name:"attention_mask"},{anchor:"transformers.UniSpeechSatForCTC.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.UniSpeechSatForCTC.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.UniSpeechSatForCTC.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.UniSpeechSatForCTC.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, target_length)</code>, <em>optional</em>) &#x2014;
Labels for connectionist temporal classification. Note that <code>target_length</code> has to be smaller or equal to
the sequence length of the output logits. Indices are selected in <code>[-100, 0, ..., config.vocab_size - 1]</code>.
All labels set to <code>-100</code> are ignored (masked), the loss is only computed for labels in <code>[0, ..., config.vocab_size - 1]</code>.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1390",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.CausalLMOutput"
>transformers.modeling_outputs.CausalLMOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig"
>UniSpeechSatConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Language modeling loss (for next-token prediction).</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) \u2014 Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.CausalLMOutput"
>transformers.modeling_outputs.CausalLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ce=new Wo({props:{$$slots:{default:[Yc]},$$scope:{ctx:U}}}),je=new ao({props:{anchor:"transformers.UniSpeechSatForCTC.forward.example",$$slots:{default:[Jc]},$$scope:{ctx:U}}}),$t=new X({}),Tt=new P({props:{name:"class transformers.UniSpeechSatForSequenceClassification",anchor:"transformers.UniSpeechSatForSequenceClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.UniSpeechSatForSequenceClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig">UniSpeechSatConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1477"}}),At=new P({props:{name:"forward",anchor:"transformers.UniSpeechSatForSequenceClassification.forward",parameters:[{name:"input_values",val:": typing.Optional[torch.Tensor]"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"transformers.UniSpeechSatForSequenceClassification.forward.input_values",description:`<strong>input_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Float values of input raw speech waveform. Values can be obtained by loading a <code>.flac</code> or <code>.wav</code> audio file
into an array of type <code>List[float]</code> or a <code>numpy.ndarray</code>, <em>e.g.</em> via the soundfile library (<code>pip install soundfile</code>). To prepare the array into <code>input_values</code>, the <a href="/docs/transformers/v4.29.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a> should be used for padding and
conversion into a tensor of type <code>torch.FloatTensor</code>. See <a href="/docs/transformers/v4.29.0/en/model_doc/wav2vec2#transformers.Wav2Vec2Processor.__call__">Wav2Vec2Processor.<strong>call</strong>()</a> for details.`,name:"input_values"},{anchor:"transformers.UniSpeechSatForSequenceClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing convolution and attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p><code>attention_mask</code> should only be passed if the corresponding processor has <code>config.return_attention_mask == True</code>. For all models whose processor has <code>config.return_attention_mask == False</code>, such as
<a href="https://huggingface.co/microsoft/unispeech-sat-base-100h-libri-ft" rel="nofollow">microsoft/unispeech-sat-base-100h-libri-ft</a>,
<code>attention_mask</code> should <strong>not</strong> be passed to avoid degraded performance when doing batched inference. For
such models <code>input_values</code> should simply be padded with 0 and passed without <code>attention_mask</code>. Be aware
that these models also yield slightly different results depending on whether <code>input_values</code> is padded or
not.</p>

					</div>`,name:"attention_mask"},{anchor:"transformers.UniSpeechSatForSequenceClassification.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.UniSpeechSatForSequenceClassification.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.UniSpeechSatForSequenceClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.UniSpeechSatForSequenceClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the sequence classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1525",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.SequenceClassifierOutput"
>transformers.modeling_outputs.SequenceClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig"
>UniSpeechSatConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification (or regression if config.num_labels==1) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.num_labels)</code>) \u2014 Classification (or regression if config.num_labels==1) scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.SequenceClassifierOutput"
>transformers.modeling_outputs.SequenceClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),qe=new Wo({props:{$$slots:{default:[Gc]},$$scope:{ctx:U}}}),Ee=new ao({props:{anchor:"transformers.UniSpeechSatForSequenceClassification.forward.example",$$slots:{default:[Kc]},$$scope:{ctx:U}}}),qt=new X({}),Et=new P({props:{name:"class transformers.UniSpeechSatForAudioFrameClassification",anchor:"transformers.UniSpeechSatForAudioFrameClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.UniSpeechSatForAudioFrameClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig">UniSpeechSatConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1602"}}),Lt=new P({props:{name:"forward",anchor:"transformers.UniSpeechSatForAudioFrameClassification.forward",parameters:[{name:"input_values",val:": typing.Optional[torch.Tensor]"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.UniSpeechSatForAudioFrameClassification.forward.input_values",description:`<strong>input_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Float values of input raw speech waveform. Values can be obtained by loading a <code>.flac</code> or <code>.wav</code> audio file
into an array of type <code>List[float]</code> or a <code>numpy.ndarray</code>, <em>e.g.</em> via the soundfile library (<code>pip install soundfile</code>). To prepare the array into <code>input_values</code>, the <a href="/docs/transformers/v4.29.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a> should be used for padding and
conversion into a tensor of type <code>torch.FloatTensor</code>. See <a href="/docs/transformers/v4.29.0/en/model_doc/wav2vec2#transformers.Wav2Vec2Processor.__call__">Wav2Vec2Processor.<strong>call</strong>()</a> for details.`,name:"input_values"},{anchor:"transformers.UniSpeechSatForAudioFrameClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing convolution and attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p><code>attention_mask</code> should only be passed if the corresponding processor has <code>config.return_attention_mask == True</code>. For all models whose processor has <code>config.return_attention_mask == False</code>, such as
<a href="https://huggingface.co/microsoft/unispeech-sat-base-100h-libri-ft" rel="nofollow">microsoft/unispeech-sat-base-100h-libri-ft</a>,
<code>attention_mask</code> should <strong>not</strong> be passed to avoid degraded performance when doing batched inference. For
such models <code>input_values</code> should simply be padded with 0 and passed without <code>attention_mask</code>. Be aware
that these models also yield slightly different results depending on whether <code>input_values</code> is padded or
not.</p>

					</div>`,name:"attention_mask"},{anchor:"transformers.UniSpeechSatForAudioFrameClassification.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.UniSpeechSatForAudioFrameClassification.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.UniSpeechSatForAudioFrameClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.UniSpeechSatForAudioFrameClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the sequence classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1646",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.TokenClassifierOutput"
>transformers.modeling_outputs.TokenClassifierOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig"
>UniSpeechSatConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided)  \u2014 Classification loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.num_labels)</code>) \u2014 Classification scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.TokenClassifierOutput"
>transformers.modeling_outputs.TokenClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Me=new Wo({props:{$$slots:{default:[ed]},$$scope:{ctx:U}}}),ze=new ao({props:{anchor:"transformers.UniSpeechSatForAudioFrameClassification.forward.example",$$slots:{default:[td]},$$scope:{ctx:U}}}),Vt=new X({}),Nt=new P({props:{name:"class transformers.UniSpeechSatForXVector",anchor:"transformers.UniSpeechSatForXVector",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.UniSpeechSatForXVector.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig">UniSpeechSatConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1766"}}),Rt=new P({props:{name:"forward",anchor:"transformers.UniSpeechSatForXVector.forward",parameters:[{name:"input_values",val:": typing.Optional[torch.Tensor]"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"transformers.UniSpeechSatForXVector.forward.input_values",description:`<strong>input_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Float values of input raw speech waveform. Values can be obtained by loading a <code>.flac</code> or <code>.wav</code> audio file
into an array of type <code>List[float]</code> or a <code>numpy.ndarray</code>, <em>e.g.</em> via the soundfile library (<code>pip install soundfile</code>). To prepare the array into <code>input_values</code>, the <a href="/docs/transformers/v4.29.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a> should be used for padding and
conversion into a tensor of type <code>torch.FloatTensor</code>. See <a href="/docs/transformers/v4.29.0/en/model_doc/wav2vec2#transformers.Wav2Vec2Processor.__call__">Wav2Vec2Processor.<strong>call</strong>()</a> for details.`,name:"input_values"},{anchor:"transformers.UniSpeechSatForXVector.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing convolution and attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p><code>attention_mask</code> should only be passed if the corresponding processor has <code>config.return_attention_mask == True</code>. For all models whose processor has <code>config.return_attention_mask == False</code>, such as
<a href="https://huggingface.co/microsoft/unispeech-sat-base-100h-libri-ft" rel="nofollow">microsoft/unispeech-sat-base-100h-libri-ft</a>,
<code>attention_mask</code> should <strong>not</strong> be passed to avoid degraded performance when doing batched inference. For
such models <code>input_values</code> should simply be padded with 0 and passed without <code>attention_mask</code>. Be aware
that these models also yield slightly different results depending on whether <code>input_values</code> is padded or
not.</p>

					</div>`,name:"attention_mask"},{anchor:"transformers.UniSpeechSatForXVector.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.UniSpeechSatForXVector.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.UniSpeechSatForXVector.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.UniSpeechSatForXVector.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the sequence classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1828",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.XVectorOutput"
>transformers.modeling_outputs.XVectorOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig"
>UniSpeechSatConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Classification loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.xvector_output_dim)</code>) \u2014 Classification hidden states before AMSoftmax.</p>
</li>
<li>
<p><strong>embeddings</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.xvector_output_dim)</code>) \u2014 Utterance embeddings used for vector similarity-based retrieval.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each layer) of
shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.modeling_outputs.XVectorOutput"
>transformers.modeling_outputs.XVectorOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),De=new Wo({props:{$$slots:{default:[od]},$$scope:{ctx:U}}}),Le=new ao({props:{anchor:"transformers.UniSpeechSatForXVector.forward.example",$$slots:{default:[nd]},$$scope:{ctx:U}}}),Zt=new X({}),Qt=new P({props:{name:"class transformers.UniSpeechSatForPreTraining",anchor:"transformers.UniSpeechSatForPreTraining",parameters:[{name:"config",val:": UniSpeechSatConfig"}],parametersDescription:[{anchor:"transformers.UniSpeechSatForPreTraining.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig">UniSpeechSatConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1207"}}),eo=new P({props:{name:"forward",anchor:"transformers.UniSpeechSatForPreTraining.forward",parameters:[{name:"input_values",val:": typing.Optional[torch.Tensor]"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.UniSpeechSatForPreTraining.forward.input_values",description:`<strong>input_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Float values of input raw speech waveform. Values can be obtained by loading a <code>.flac</code> or <code>.wav</code> audio file
into an array of type <code>List[float]</code> or a <code>numpy.ndarray</code>, <em>e.g.</em> via the soundfile library (<code>pip install soundfile</code>). To prepare the array into <code>input_values</code>, the <a href="/docs/transformers/v4.29.0/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a> should be used for padding and
conversion into a tensor of type <code>torch.FloatTensor</code>. See <a href="/docs/transformers/v4.29.0/en/model_doc/wav2vec2#transformers.Wav2Vec2Processor.__call__">Wav2Vec2Processor.<strong>call</strong>()</a> for details.`,name:"input_values"},{anchor:"transformers.UniSpeechSatForPreTraining.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing convolution and attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a></p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p><code>attention_mask</code> should only be passed if the corresponding processor has <code>config.return_attention_mask == True</code>. For all models whose processor has <code>config.return_attention_mask == False</code>, such as
<a href="https://huggingface.co/microsoft/unispeech-sat-base-100h-libri-ft" rel="nofollow">microsoft/unispeech-sat-base-100h-libri-ft</a>,
<code>attention_mask</code> should <strong>not</strong> be passed to avoid degraded performance when doing batched inference. For
such models <code>input_values</code> should simply be padded with 0 and passed without <code>attention_mask</code>. Be aware
that these models also yield slightly different results depending on whether <code>input_values</code> is padded or
not.</p>

					</div>`,name:"attention_mask"},{anchor:"transformers.UniSpeechSatForPreTraining.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.UniSpeechSatForPreTraining.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.UniSpeechSatForPreTraining.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.29.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.29.0/src/transformers/models/unispeech_sat/modeling_unispeech_sat.py#L1275",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput"
>transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatConfig"
>UniSpeechSatConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<em>optional</em>, returned when model is in train mode, <code>torch.FloatTensor</code> of shape <code>(1,)</code>) \u2014 Total loss as the sum of the contrastive loss (L_m) and the diversity loss (L_d) as stated in the <a
  href="https://arxiv.org/pdf/2006.11477.pdf"
  rel="nofollow"
>official
paper</a> . (classification) loss.</p>
</li>
<li>
<p><strong>projected_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.proj_codevector_dim)</code>) \u2014 Hidden-states of the model projected to <em>config.proj_codevector_dim</em> that can be used to predict the masked
projected quantized states.</p>
</li>
<li>
<p><strong>projected_quantized_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.proj_codevector_dim)</code>) \u2014 Quantized extracted feature vectors projected to <em>config.proj_codevector_dim</em> representing the positive
target vectors for contrastive loss.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each layer) of
shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput"
>transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ne=new Wo({props:{$$slots:{default:[ad]},$$scope:{ctx:U}}}),We=new ao({props:{anchor:"transformers.UniSpeechSatForPreTraining.forward.example",$$slots:{default:[sd]},$$scope:{ctx:U}}}),{c(){c=n("meta"),S=p(),g=n("h1"),u=n("a"),v=n("span"),b(l.$$.fragment),m=p(),F=n("span"),Da=r("UniSpeech-SAT"),zn=p(),J=n("h2"),ve=n("a"),Io=n("span"),b(Ye.$$.fragment),La=p(),Ho=n("span"),Va=r("Overview"),On=p(),Se=n("p"),Na=r("The UniSpeech-SAT model was proposed in "),Je=n("a"),Wa=r(`UniSpeech-SAT: Universal Speech Representation Learning with Speaker Aware
Pre-Training`),Ia=r(` by Sanyuan Chen, Yu Wu, Chengyi Wang, Zhengyang Chen, Zhuo Chen,
Shujie Liu, Jian Wu, Yao Qian, Furu Wei, Jinyu Li, Xiangzhan Yu .`),Dn=p(),io=n("p"),Ha=r("The abstract from the paper is the following:"),Ln=p(),lo=n("p"),Xo=n("em"),Xa=r(`Self-supervised learning (SSL) is a long-standing goal for speech processing, since it utilizes large-scale unlabeled
data and avoids extensive human labeling. Recent years witness great successes in applying self-supervised learning in
speech recognition, while limited exploration was attempted in applying SSL for modeling speaker characteristics. In
this paper, we aim to improve the existing SSL framework for speaker representation learning. Two methods are
introduced for enhancing the unsupervised speaker information extraction. First, we apply the multi-task learning to
the current SSL framework, where we integrate the utterance-wise contrastive loss with the SSL objective function.
Second, for better speaker discrimination, we propose an utterance mixing strategy for data augmentation, where
additional overlapped utterances are created unsupervisely and incorporate during training. We integrate the proposed
methods into the HuBERT framework. Experiment results on SUPERB benchmark show that the proposed system achieves
state-of-the-art performance in universal representation learning, especially for speaker identification oriented
tasks. An ablation study is performed verifying the efficacy of each proposed method. Finally, we scale up training
dataset to 94 thousand hours public audio data and achieve further performance improvement in all SUPERB tasks.`),Vn=p(),co=n("p"),Ba=r("Tips:"),Nn=p(),B=n("ul"),Ge=n("li"),Ra=r(`UniSpeechSat is a speech model that accepts a float array corresponding to the raw waveform of the speech signal.
Please use `),po=n("a"),Za=r("Wav2Vec2Processor"),Qa=r(" for the feature extraction."),Ya=p(),Ke=n("li"),Ja=r(`UniSpeechSat model can be fine-tuned using connectionist temporal classification (CTC) so the model output has to be
decoded using `),ho=n("a"),Ga=r("Wav2Vec2CTCTokenizer"),Ka=r("."),es=p(),Bo=n("li"),ts=r("UniSpeechSat performs especially well on speaker verification, speaker identification, and speaker diarization tasks."),Wn=p(),R=n("p"),os=r("This model was contributed by "),et=n("a"),ns=r("patrickvonplaten"),as=r(`. The Authors\u2019 code can be
found `),tt=n("a"),ss=r("here"),rs=r("."),In=p(),G=n("h2"),be=n("a"),Ro=n("span"),b(ot.$$.fragment),is=p(),Zo=n("span"),ls=r("Documentation resources"),Hn=p(),we=n("ul"),Qo=n("li"),mo=n("a"),cs=r("Audio classification task guide"),ds=p(),Yo=n("li"),uo=n("a"),ps=r("Automatic speech recognition task guide"),Xn=p(),K=n("h2"),ye=n("a"),Jo=n("span"),b(nt.$$.fragment),hs=p(),Go=n("span"),ms=r("UniSpeechSatConfig"),Bn=p(),M=n("div"),b(at.$$.fragment),us=p(),ee=n("p"),fs=r("This is the configuration class to store the configuration of a "),fo=n("a"),gs=r("UniSpeechSatModel"),_s=r(`. It is used to instantiate an
UniSpeechSat model according to the specified arguments, defining the model architecture. Instantiating a
configuration with the defaults will yield a similar configuration to that of the UniSpeechSat
`),st=n("a"),vs=r("microsoft/unispeech-sat-base-100h-libri-ft"),Ss=r(`
architecture.`),bs=p(),te=n("p"),ws=r("Configuration objects inherit from "),go=n("a"),ys=r("PretrainedConfig"),ks=r(` and can be used to control the model outputs. Read the
documentation from `),_o=n("a"),$s=r("PretrainedConfig"),Ts=r(" for more information."),Us=p(),b(ke.$$.fragment),Rn=p(),oe=n("h2"),$e=n("a"),Ko=n("span"),b(rt.$$.fragment),Fs=p(),en=n("span"),xs=r("UniSpeechSat specific outputs"),Zn=p(),ne=n("div"),b(it.$$.fragment),Cs=p(),lt=n("p"),js=r("Output type of "),tn=n("code"),As=r("UniSpeechSatForPreTrainingOutput"),qs=r(", with potential hidden states and attentions."),Qn=p(),ae=n("h2"),Te=n("a"),on=n("span"),b(ct.$$.fragment),Es=p(),nn=n("span"),Ps=r("UniSpeechSatModel"),Yn=p(),A=n("div"),b(dt.$$.fragment),Ms=p(),pt=n("p"),zs=r(`The bare UniSpeechSat Model transformer outputting raw hidden-states without any specific head on top.
UniSpeechSat was proposed in `),ht=n("a"),Os=r(`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),Ds=r(` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),Ls=p(),mt=n("p"),Vs=r("This model inherits from "),vo=n("a"),Ns=r("PreTrainedModel"),Ws=r(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),Is=p(),ut=n("p"),Hs=r("This model is a PyTorch "),ft=n("a"),Xs=r("torch.nn.Module"),Bs=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Rs=p(),z=n("div"),b(gt.$$.fragment),Zs=p(),se=n("p"),Qs=r("The "),So=n("a"),Ys=r("UniSpeechSatModel"),Js=r(" forward method, overrides the "),an=n("code"),Gs=r("__call__"),Ks=r(" special method."),er=p(),b(Ue.$$.fragment),tr=p(),b(Fe.$$.fragment),Jn=p(),re=n("h2"),xe=n("a"),sn=n("span"),b(_t.$$.fragment),or=p(),rn=n("span"),nr=r("UniSpeechSatForCTC"),Gn=p(),q=n("div"),b(vt.$$.fragment),ar=p(),ie=n("p"),sr=r("UniSpeechSat Model with a "),ln=n("code"),rr=r("language modeling"),ir=r(` head on top for Connectionist Temporal Classification (CTC).
UniSpeechSat was proposed in `),St=n("a"),lr=r(`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),cr=r(` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),dr=p(),bt=n("p"),pr=r("This model inherits from "),bo=n("a"),hr=r("PreTrainedModel"),mr=r(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),ur=p(),wt=n("p"),fr=r("This model is a PyTorch "),yt=n("a"),gr=r("torch.nn.Module"),_r=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),vr=p(),O=n("div"),b(kt.$$.fragment),Sr=p(),le=n("p"),br=r("The "),wo=n("a"),wr=r("UniSpeechSatForCTC"),yr=r(" forward method, overrides the "),cn=n("code"),kr=r("__call__"),$r=r(" special method."),Tr=p(),b(Ce.$$.fragment),Ur=p(),b(je.$$.fragment),Kn=p(),ce=n("h2"),Ae=n("a"),dn=n("span"),b($t.$$.fragment),Fr=p(),pn=n("span"),xr=r("UniSpeechSatForSequenceClassification"),ea=p(),x=n("div"),b(Tt.$$.fragment),Cr=p(),hn=n("p"),jr=r(`UniSpeechSat Model with a sequence classification head on top (a linear layer over the pooled output) for tasks
like SUPERB Keyword Spotting.`),Ar=p(),Ut=n("p"),qr=r("UniSpeechSat was proposed in "),Ft=n("a"),Er=r(`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),Pr=r(` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),Mr=p(),xt=n("p"),zr=r("This model inherits from "),yo=n("a"),Or=r("PreTrainedModel"),Dr=r(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),Lr=p(),Ct=n("p"),Vr=r("This model is a PyTorch "),jt=n("a"),Nr=r("torch.nn.Module"),Wr=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Ir=p(),D=n("div"),b(At.$$.fragment),Hr=p(),de=n("p"),Xr=r("The "),ko=n("a"),Br=r("UniSpeechSatForSequenceClassification"),Rr=r(" forward method, overrides the "),mn=n("code"),Zr=r("__call__"),Qr=r(" special method."),Yr=p(),b(qe.$$.fragment),Jr=p(),b(Ee.$$.fragment),ta=p(),pe=n("h2"),Pe=n("a"),un=n("span"),b(qt.$$.fragment),Gr=p(),fn=n("span"),Kr=r("UniSpeechSatForAudioFrameClassification"),oa=p(),C=n("div"),b(Et.$$.fragment),ei=p(),gn=n("p"),ti=r("UniSpeech-SAT Model with a frame classification head on top for tasks like Speaker Diarization."),oi=p(),Pt=n("p"),ni=r("UniSpeechSat was proposed in "),Mt=n("a"),ai=r(`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),si=r(` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),ri=p(),zt=n("p"),ii=r("This model inherits from "),$o=n("a"),li=r("PreTrainedModel"),ci=r(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),di=p(),Ot=n("p"),pi=r("This model is a PyTorch "),Dt=n("a"),hi=r("torch.nn.Module"),mi=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),ui=p(),L=n("div"),b(Lt.$$.fragment),fi=p(),he=n("p"),gi=r("The "),To=n("a"),_i=r("UniSpeechSatForAudioFrameClassification"),vi=r(" forward method, overrides the "),_n=n("code"),Si=r("__call__"),bi=r(" special method."),wi=p(),b(Me.$$.fragment),yi=p(),b(ze.$$.fragment),na=p(),me=n("h2"),Oe=n("a"),vn=n("span"),b(Vt.$$.fragment),ki=p(),Sn=n("span"),$i=r("UniSpeechSatForXVector"),aa=p(),j=n("div"),b(Nt.$$.fragment),Ti=p(),bn=n("p"),Ui=r("UniSpeech-SAT Model with an XVector feature extraction head on top for tasks like Speaker Verification."),Fi=p(),Wt=n("p"),xi=r("UniSpeechSat was proposed in "),It=n("a"),Ci=r(`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),ji=r(` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),Ai=p(),Ht=n("p"),qi=r("This model inherits from "),Uo=n("a"),Ei=r("PreTrainedModel"),Pi=r(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),Mi=p(),Xt=n("p"),zi=r("This model is a PyTorch "),Bt=n("a"),Oi=r("torch.nn.Module"),Di=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Li=p(),V=n("div"),b(Rt.$$.fragment),Vi=p(),ue=n("p"),Ni=r("The "),Fo=n("a"),Wi=r("UniSpeechSatForXVector"),Ii=r(" forward method, overrides the "),wn=n("code"),Hi=r("__call__"),Xi=r(" special method."),Bi=p(),b(De.$$.fragment),Ri=p(),b(Le.$$.fragment),sa=p(),fe=n("h2"),Ve=n("a"),yn=n("span"),b(Zt.$$.fragment),Zi=p(),kn=n("span"),Qi=r("UniSpeechSatForPreTraining"),ra=p(),E=n("div"),b(Qt.$$.fragment),Yi=p(),ge=n("p"),Ji=r("UniSpeechSat Model with a quantizer and "),$n=n("code"),Gi=r("VQ"),Ki=r(` head on top.
UniSpeechSat was proposed in `),Yt=n("a"),el=r(`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),tl=r(` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),ol=p(),Jt=n("p"),nl=r("This model inherits from "),xo=n("a"),al=r("PreTrainedModel"),sl=r(`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),rl=p(),Gt=n("p"),il=r("This model is a PyTorch "),Kt=n("a"),ll=r("torch.nn.Module"),cl=r(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),dl=p(),N=n("div"),b(eo.$$.fragment),pl=p(),_e=n("p"),hl=r("The "),Co=n("a"),ml=r("UniSpeechSatForPreTraining"),ul=r(" forward method, overrides the "),Tn=n("code"),fl=r("__call__"),gl=r(" special method."),_l=p(),b(Ne.$$.fragment),vl=p(),b(We.$$.fragment),this.h()},l(t){const f=Xc('[data-svelte="svelte-1phssyn"]',document.head);c=a(f,"META",{name:!0,content:!0}),f.forEach(o),S=h(t),g=a(t,"H1",{class:!0});var to=s(g);u=a(to,"A",{id:!0,class:!0,href:!0});var Un=s(u);v=a(Un,"SPAN",{});var Fn=s(v);w(l.$$.fragment,Fn),Fn.forEach(o),Un.forEach(o),m=h(to),F=a(to,"SPAN",{});var xn=s(F);Da=i(xn,"UniSpeech-SAT"),xn.forEach(o),to.forEach(o),zn=h(t),J=a(t,"H2",{class:!0});var oo=s(J);ve=a(oo,"A",{id:!0,class:!0,href:!0});var Cn=s(ve);Io=a(Cn,"SPAN",{});var jn=s(Io);w(Ye.$$.fragment,jn),jn.forEach(o),Cn.forEach(o),La=h(oo),Ho=a(oo,"SPAN",{});var An=s(Ho);Va=i(An,"Overview"),An.forEach(o),oo.forEach(o),On=h(t),Se=a(t,"P",{});var no=s(Se);Na=i(no,"The UniSpeech-SAT model was proposed in "),Je=a(no,"A",{href:!0,rel:!0});var qn=s(Je);Wa=i(qn,`UniSpeech-SAT: Universal Speech Representation Learning with Speaker Aware
Pre-Training`),qn.forEach(o),Ia=i(no,` by Sanyuan Chen, Yu Wu, Chengyi Wang, Zhengyang Chen, Zhuo Chen,
Shujie Liu, Jian Wu, Yao Qian, Furu Wei, Jinyu Li, Xiangzhan Yu .`),no.forEach(o),Dn=h(t),io=a(t,"P",{});var En=s(io);Ha=i(En,"The abstract from the paper is the following:"),En.forEach(o),Ln=h(t),lo=a(t,"P",{});var Pn=s(lo);Xo=a(Pn,"EM",{});var Mn=s(Xo);Xa=i(Mn,`Self-supervised learning (SSL) is a long-standing goal for speech processing, since it utilizes large-scale unlabeled
data and avoids extensive human labeling. Recent years witness great successes in applying self-supervised learning in
speech recognition, while limited exploration was attempted in applying SSL for modeling speaker characteristics. In
this paper, we aim to improve the existing SSL framework for speaker representation learning. Two methods are
introduced for enhancing the unsupervised speaker information extraction. First, we apply the multi-task learning to
the current SSL framework, where we integrate the utterance-wise contrastive loss with the SSL objective function.
Second, for better speaker discrimination, we propose an utterance mixing strategy for data augmentation, where
additional overlapped utterances are created unsupervisely and incorporate during training. We integrate the proposed
methods into the HuBERT framework. Experiment results on SUPERB benchmark show that the proposed system achieves
state-of-the-art performance in universal representation learning, especially for speaker identification oriented
tasks. An ablation study is performed verifying the efficacy of each proposed method. Finally, we scale up training
dataset to 94 thousand hours public audio data and achieve further performance improvement in all SUPERB tasks.`),Mn.forEach(o),Pn.forEach(o),Vn=h(t),co=a(t,"P",{});var Sl=s(co);Ba=i(Sl,"Tips:"),Sl.forEach(o),Nn=h(t),B=a(t,"UL",{});var jo=s(B);Ge=a(jo,"LI",{});var la=s(Ge);Ra=i(la,`UniSpeechSat is a speech model that accepts a float array corresponding to the raw waveform of the speech signal.
Please use `),po=a(la,"A",{href:!0});var bl=s(po);Za=i(bl,"Wav2Vec2Processor"),bl.forEach(o),Qa=i(la," for the feature extraction."),la.forEach(o),Ya=h(jo),Ke=a(jo,"LI",{});var ca=s(Ke);Ja=i(ca,`UniSpeechSat model can be fine-tuned using connectionist temporal classification (CTC) so the model output has to be
decoded using `),ho=a(ca,"A",{href:!0});var wl=s(ho);Ga=i(wl,"Wav2Vec2CTCTokenizer"),wl.forEach(o),Ka=i(ca,"."),ca.forEach(o),es=h(jo),Bo=a(jo,"LI",{});var yl=s(Bo);ts=i(yl,"UniSpeechSat performs especially well on speaker verification, speaker identification, and speaker diarization tasks."),yl.forEach(o),jo.forEach(o),Wn=h(t),R=a(t,"P",{});var Ao=s(R);os=i(Ao,"This model was contributed by "),et=a(Ao,"A",{href:!0,rel:!0});var kl=s(et);ns=i(kl,"patrickvonplaten"),kl.forEach(o),as=i(Ao,`. The Authors\u2019 code can be
found `),tt=a(Ao,"A",{href:!0,rel:!0});var $l=s(tt);ss=i($l,"here"),$l.forEach(o),rs=i(Ao,"."),Ao.forEach(o),In=h(t),G=a(t,"H2",{class:!0});var da=s(G);be=a(da,"A",{id:!0,class:!0,href:!0});var Tl=s(be);Ro=a(Tl,"SPAN",{});var Ul=s(Ro);w(ot.$$.fragment,Ul),Ul.forEach(o),Tl.forEach(o),is=h(da),Zo=a(da,"SPAN",{});var Fl=s(Zo);ls=i(Fl,"Documentation resources"),Fl.forEach(o),da.forEach(o),Hn=h(t),we=a(t,"UL",{});var pa=s(we);Qo=a(pa,"LI",{});var xl=s(Qo);mo=a(xl,"A",{href:!0});var Cl=s(mo);cs=i(Cl,"Audio classification task guide"),Cl.forEach(o),xl.forEach(o),ds=h(pa),Yo=a(pa,"LI",{});var jl=s(Yo);uo=a(jl,"A",{href:!0});var Al=s(uo);ps=i(Al,"Automatic speech recognition task guide"),Al.forEach(o),jl.forEach(o),pa.forEach(o),Xn=h(t),K=a(t,"H2",{class:!0});var ha=s(K);ye=a(ha,"A",{id:!0,class:!0,href:!0});var ql=s(ye);Jo=a(ql,"SPAN",{});var El=s(Jo);w(nt.$$.fragment,El),El.forEach(o),ql.forEach(o),hs=h(ha),Go=a(ha,"SPAN",{});var Pl=s(Go);ms=i(Pl,"UniSpeechSatConfig"),Pl.forEach(o),ha.forEach(o),Bn=h(t),M=a(t,"DIV",{class:!0});var Ie=s(M);w(at.$$.fragment,Ie),us=h(Ie),ee=a(Ie,"P",{});var qo=s(ee);fs=i(qo,"This is the configuration class to store the configuration of a "),fo=a(qo,"A",{href:!0});var Ml=s(fo);gs=i(Ml,"UniSpeechSatModel"),Ml.forEach(o),_s=i(qo,`. It is used to instantiate an
UniSpeechSat model according to the specified arguments, defining the model architecture. Instantiating a
configuration with the defaults will yield a similar configuration to that of the UniSpeechSat
`),st=a(qo,"A",{href:!0,rel:!0});var zl=s(st);vs=i(zl,"microsoft/unispeech-sat-base-100h-libri-ft"),zl.forEach(o),Ss=i(qo,`
architecture.`),qo.forEach(o),bs=h(Ie),te=a(Ie,"P",{});var Eo=s(te);ws=i(Eo,"Configuration objects inherit from "),go=a(Eo,"A",{href:!0});var Ol=s(go);ys=i(Ol,"PretrainedConfig"),Ol.forEach(o),ks=i(Eo,` and can be used to control the model outputs. Read the
documentation from `),_o=a(Eo,"A",{href:!0});var Dl=s(_o);$s=i(Dl,"PretrainedConfig"),Dl.forEach(o),Ts=i(Eo," for more information."),Eo.forEach(o),Us=h(Ie),w(ke.$$.fragment,Ie),Ie.forEach(o),Rn=h(t),oe=a(t,"H2",{class:!0});var ma=s(oe);$e=a(ma,"A",{id:!0,class:!0,href:!0});var Ll=s($e);Ko=a(Ll,"SPAN",{});var Vl=s(Ko);w(rt.$$.fragment,Vl),Vl.forEach(o),Ll.forEach(o),Fs=h(ma),en=a(ma,"SPAN",{});var Nl=s(en);xs=i(Nl,"UniSpeechSat specific outputs"),Nl.forEach(o),ma.forEach(o),Zn=h(t),ne=a(t,"DIV",{class:!0});var ua=s(ne);w(it.$$.fragment,ua),Cs=h(ua),lt=a(ua,"P",{});var fa=s(lt);js=i(fa,"Output type of "),tn=a(fa,"CODE",{});var Wl=s(tn);As=i(Wl,"UniSpeechSatForPreTrainingOutput"),Wl.forEach(o),qs=i(fa,", with potential hidden states and attentions."),fa.forEach(o),ua.forEach(o),Qn=h(t),ae=a(t,"H2",{class:!0});var ga=s(ae);Te=a(ga,"A",{id:!0,class:!0,href:!0});var Il=s(Te);on=a(Il,"SPAN",{});var Hl=s(on);w(ct.$$.fragment,Hl),Hl.forEach(o),Il.forEach(o),Es=h(ga),nn=a(ga,"SPAN",{});var Xl=s(nn);Ps=i(Xl,"UniSpeechSatModel"),Xl.forEach(o),ga.forEach(o),Yn=h(t),A=a(t,"DIV",{class:!0});var Z=s(A);w(dt.$$.fragment,Z),Ms=h(Z),pt=a(Z,"P",{});var _a=s(pt);zs=i(_a,`The bare UniSpeechSat Model transformer outputting raw hidden-states without any specific head on top.
UniSpeechSat was proposed in `),ht=a(_a,"A",{href:!0,rel:!0});var Bl=s(ht);Os=i(Bl,`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),Bl.forEach(o),Ds=i(_a,` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),_a.forEach(o),Ls=h(Z),mt=a(Z,"P",{});var va=s(mt);Vs=i(va,"This model inherits from "),vo=a(va,"A",{href:!0});var Rl=s(vo);Ns=i(Rl,"PreTrainedModel"),Rl.forEach(o),Ws=i(va,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),va.forEach(o),Is=h(Z),ut=a(Z,"P",{});var Sa=s(ut);Hs=i(Sa,"This model is a PyTorch "),ft=a(Sa,"A",{href:!0,rel:!0});var Zl=s(ft);Xs=i(Zl,"torch.nn.Module"),Zl.forEach(o),Bs=i(Sa,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Sa.forEach(o),Rs=h(Z),z=a(Z,"DIV",{class:!0});var He=s(z);w(gt.$$.fragment,He),Zs=h(He),se=a(He,"P",{});var Po=s(se);Qs=i(Po,"The "),So=a(Po,"A",{href:!0});var Ql=s(So);Ys=i(Ql,"UniSpeechSatModel"),Ql.forEach(o),Js=i(Po," forward method, overrides the "),an=a(Po,"CODE",{});var Yl=s(an);Gs=i(Yl,"__call__"),Yl.forEach(o),Ks=i(Po," special method."),Po.forEach(o),er=h(He),w(Ue.$$.fragment,He),tr=h(He),w(Fe.$$.fragment,He),He.forEach(o),Z.forEach(o),Jn=h(t),re=a(t,"H2",{class:!0});var ba=s(re);xe=a(ba,"A",{id:!0,class:!0,href:!0});var Jl=s(xe);sn=a(Jl,"SPAN",{});var Gl=s(sn);w(_t.$$.fragment,Gl),Gl.forEach(o),Jl.forEach(o),or=h(ba),rn=a(ba,"SPAN",{});var Kl=s(rn);nr=i(Kl,"UniSpeechSatForCTC"),Kl.forEach(o),ba.forEach(o),Gn=h(t),q=a(t,"DIV",{class:!0});var Q=s(q);w(vt.$$.fragment,Q),ar=h(Q),ie=a(Q,"P",{});var Mo=s(ie);sr=i(Mo,"UniSpeechSat Model with a "),ln=a(Mo,"CODE",{});var ec=s(ln);rr=i(ec,"language modeling"),ec.forEach(o),ir=i(Mo,` head on top for Connectionist Temporal Classification (CTC).
UniSpeechSat was proposed in `),St=a(Mo,"A",{href:!0,rel:!0});var tc=s(St);lr=i(tc,`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),tc.forEach(o),cr=i(Mo,` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),Mo.forEach(o),dr=h(Q),bt=a(Q,"P",{});var wa=s(bt);pr=i(wa,"This model inherits from "),bo=a(wa,"A",{href:!0});var oc=s(bo);hr=i(oc,"PreTrainedModel"),oc.forEach(o),mr=i(wa,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),wa.forEach(o),ur=h(Q),wt=a(Q,"P",{});var ya=s(wt);fr=i(ya,"This model is a PyTorch "),yt=a(ya,"A",{href:!0,rel:!0});var nc=s(yt);gr=i(nc,"torch.nn.Module"),nc.forEach(o),_r=i(ya,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),ya.forEach(o),vr=h(Q),O=a(Q,"DIV",{class:!0});var Xe=s(O);w(kt.$$.fragment,Xe),Sr=h(Xe),le=a(Xe,"P",{});var zo=s(le);br=i(zo,"The "),wo=a(zo,"A",{href:!0});var ac=s(wo);wr=i(ac,"UniSpeechSatForCTC"),ac.forEach(o),yr=i(zo," forward method, overrides the "),cn=a(zo,"CODE",{});var sc=s(cn);kr=i(sc,"__call__"),sc.forEach(o),$r=i(zo," special method."),zo.forEach(o),Tr=h(Xe),w(Ce.$$.fragment,Xe),Ur=h(Xe),w(je.$$.fragment,Xe),Xe.forEach(o),Q.forEach(o),Kn=h(t),ce=a(t,"H2",{class:!0});var ka=s(ce);Ae=a(ka,"A",{id:!0,class:!0,href:!0});var rc=s(Ae);dn=a(rc,"SPAN",{});var ic=s(dn);w($t.$$.fragment,ic),ic.forEach(o),rc.forEach(o),Fr=h(ka),pn=a(ka,"SPAN",{});var lc=s(pn);xr=i(lc,"UniSpeechSatForSequenceClassification"),lc.forEach(o),ka.forEach(o),ea=h(t),x=a(t,"DIV",{class:!0});var W=s(x);w(Tt.$$.fragment,W),Cr=h(W),hn=a(W,"P",{});var cc=s(hn);jr=i(cc,`UniSpeechSat Model with a sequence classification head on top (a linear layer over the pooled output) for tasks
like SUPERB Keyword Spotting.`),cc.forEach(o),Ar=h(W),Ut=a(W,"P",{});var $a=s(Ut);qr=i($a,"UniSpeechSat was proposed in "),Ft=a($a,"A",{href:!0,rel:!0});var dc=s(Ft);Er=i(dc,`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),dc.forEach(o),Pr=i($a,` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),$a.forEach(o),Mr=h(W),xt=a(W,"P",{});var Ta=s(xt);zr=i(Ta,"This model inherits from "),yo=a(Ta,"A",{href:!0});var pc=s(yo);Or=i(pc,"PreTrainedModel"),pc.forEach(o),Dr=i(Ta,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),Ta.forEach(o),Lr=h(W),Ct=a(W,"P",{});var Ua=s(Ct);Vr=i(Ua,"This model is a PyTorch "),jt=a(Ua,"A",{href:!0,rel:!0});var hc=s(jt);Nr=i(hc,"torch.nn.Module"),hc.forEach(o),Wr=i(Ua,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Ua.forEach(o),Ir=h(W),D=a(W,"DIV",{class:!0});var Be=s(D);w(At.$$.fragment,Be),Hr=h(Be),de=a(Be,"P",{});var Oo=s(de);Xr=i(Oo,"The "),ko=a(Oo,"A",{href:!0});var mc=s(ko);Br=i(mc,"UniSpeechSatForSequenceClassification"),mc.forEach(o),Rr=i(Oo," forward method, overrides the "),mn=a(Oo,"CODE",{});var uc=s(mn);Zr=i(uc,"__call__"),uc.forEach(o),Qr=i(Oo," special method."),Oo.forEach(o),Yr=h(Be),w(qe.$$.fragment,Be),Jr=h(Be),w(Ee.$$.fragment,Be),Be.forEach(o),W.forEach(o),ta=h(t),pe=a(t,"H2",{class:!0});var Fa=s(pe);Pe=a(Fa,"A",{id:!0,class:!0,href:!0});var fc=s(Pe);un=a(fc,"SPAN",{});var gc=s(un);w(qt.$$.fragment,gc),gc.forEach(o),fc.forEach(o),Gr=h(Fa),fn=a(Fa,"SPAN",{});var _c=s(fn);Kr=i(_c,"UniSpeechSatForAudioFrameClassification"),_c.forEach(o),Fa.forEach(o),oa=h(t),C=a(t,"DIV",{class:!0});var I=s(C);w(Et.$$.fragment,I),ei=h(I),gn=a(I,"P",{});var vc=s(gn);ti=i(vc,"UniSpeech-SAT Model with a frame classification head on top for tasks like Speaker Diarization."),vc.forEach(o),oi=h(I),Pt=a(I,"P",{});var xa=s(Pt);ni=i(xa,"UniSpeechSat was proposed in "),Mt=a(xa,"A",{href:!0,rel:!0});var Sc=s(Mt);ai=i(Sc,`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),Sc.forEach(o),si=i(xa,` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),xa.forEach(o),ri=h(I),zt=a(I,"P",{});var Ca=s(zt);ii=i(Ca,"This model inherits from "),$o=a(Ca,"A",{href:!0});var bc=s($o);li=i(bc,"PreTrainedModel"),bc.forEach(o),ci=i(Ca,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),Ca.forEach(o),di=h(I),Ot=a(I,"P",{});var ja=s(Ot);pi=i(ja,"This model is a PyTorch "),Dt=a(ja,"A",{href:!0,rel:!0});var wc=s(Dt);hi=i(wc,"torch.nn.Module"),wc.forEach(o),mi=i(ja,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),ja.forEach(o),ui=h(I),L=a(I,"DIV",{class:!0});var Re=s(L);w(Lt.$$.fragment,Re),fi=h(Re),he=a(Re,"P",{});var Do=s(he);gi=i(Do,"The "),To=a(Do,"A",{href:!0});var yc=s(To);_i=i(yc,"UniSpeechSatForAudioFrameClassification"),yc.forEach(o),vi=i(Do," forward method, overrides the "),_n=a(Do,"CODE",{});var kc=s(_n);Si=i(kc,"__call__"),kc.forEach(o),bi=i(Do," special method."),Do.forEach(o),wi=h(Re),w(Me.$$.fragment,Re),yi=h(Re),w(ze.$$.fragment,Re),Re.forEach(o),I.forEach(o),na=h(t),me=a(t,"H2",{class:!0});var Aa=s(me);Oe=a(Aa,"A",{id:!0,class:!0,href:!0});var $c=s(Oe);vn=a($c,"SPAN",{});var Tc=s(vn);w(Vt.$$.fragment,Tc),Tc.forEach(o),$c.forEach(o),ki=h(Aa),Sn=a(Aa,"SPAN",{});var Uc=s(Sn);$i=i(Uc,"UniSpeechSatForXVector"),Uc.forEach(o),Aa.forEach(o),aa=h(t),j=a(t,"DIV",{class:!0});var H=s(j);w(Nt.$$.fragment,H),Ti=h(H),bn=a(H,"P",{});var Fc=s(bn);Ui=i(Fc,"UniSpeech-SAT Model with an XVector feature extraction head on top for tasks like Speaker Verification."),Fc.forEach(o),Fi=h(H),Wt=a(H,"P",{});var qa=s(Wt);xi=i(qa,"UniSpeechSat was proposed in "),It=a(qa,"A",{href:!0,rel:!0});var xc=s(It);Ci=i(xc,`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),xc.forEach(o),ji=i(qa,` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),qa.forEach(o),Ai=h(H),Ht=a(H,"P",{});var Ea=s(Ht);qi=i(Ea,"This model inherits from "),Uo=a(Ea,"A",{href:!0});var Cc=s(Uo);Ei=i(Cc,"PreTrainedModel"),Cc.forEach(o),Pi=i(Ea,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),Ea.forEach(o),Mi=h(H),Xt=a(H,"P",{});var Pa=s(Xt);zi=i(Pa,"This model is a PyTorch "),Bt=a(Pa,"A",{href:!0,rel:!0});var jc=s(Bt);Oi=i(jc,"torch.nn.Module"),jc.forEach(o),Di=i(Pa,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Pa.forEach(o),Li=h(H),V=a(H,"DIV",{class:!0});var Ze=s(V);w(Rt.$$.fragment,Ze),Vi=h(Ze),ue=a(Ze,"P",{});var Lo=s(ue);Ni=i(Lo,"The "),Fo=a(Lo,"A",{href:!0});var Ac=s(Fo);Wi=i(Ac,"UniSpeechSatForXVector"),Ac.forEach(o),Ii=i(Lo," forward method, overrides the "),wn=a(Lo,"CODE",{});var qc=s(wn);Hi=i(qc,"__call__"),qc.forEach(o),Xi=i(Lo," special method."),Lo.forEach(o),Bi=h(Ze),w(De.$$.fragment,Ze),Ri=h(Ze),w(Le.$$.fragment,Ze),Ze.forEach(o),H.forEach(o),sa=h(t),fe=a(t,"H2",{class:!0});var Ma=s(fe);Ve=a(Ma,"A",{id:!0,class:!0,href:!0});var Ec=s(Ve);yn=a(Ec,"SPAN",{});var Pc=s(yn);w(Zt.$$.fragment,Pc),Pc.forEach(o),Ec.forEach(o),Zi=h(Ma),kn=a(Ma,"SPAN",{});var Mc=s(kn);Qi=i(Mc,"UniSpeechSatForPreTraining"),Mc.forEach(o),Ma.forEach(o),ra=h(t),E=a(t,"DIV",{class:!0});var Y=s(E);w(Qt.$$.fragment,Y),Yi=h(Y),ge=a(Y,"P",{});var Vo=s(ge);Ji=i(Vo,"UniSpeechSat Model with a quantizer and "),$n=a(Vo,"CODE",{});var zc=s($n);Gi=i(zc,"VQ"),zc.forEach(o),Ki=i(Vo,` head on top.
UniSpeechSat was proposed in `),Yt=a(Vo,"A",{href:!0,rel:!0});var Oc=s(Yt);el=i(Oc,`wav2vec 2.0: A Framework for Self-Supervised Learning of Speech
Representations`),Oc.forEach(o),tl=i(Vo,` by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael
Auli.`),Vo.forEach(o),ol=h(Y),Jt=a(Y,"P",{});var za=s(Jt);nl=i(za,"This model inherits from "),xo=a(za,"A",{href:!0});var Dc=s(xo);al=i(Dc,"PreTrainedModel"),Dc.forEach(o),sl=i(za,`. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving etc.).`),za.forEach(o),rl=h(Y),Gt=a(Y,"P",{});var Oa=s(Gt);il=i(Oa,"This model is a PyTorch "),Kt=a(Oa,"A",{href:!0,rel:!0});var Lc=s(Kt);ll=i(Lc,"torch.nn.Module"),Lc.forEach(o),cl=i(Oa,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Oa.forEach(o),dl=h(Y),N=a(Y,"DIV",{class:!0});var Qe=s(N);w(eo.$$.fragment,Qe),pl=h(Qe),_e=a(Qe,"P",{});var No=s(_e);hl=i(No,"The "),Co=a(No,"A",{href:!0});var Vc=s(Co);ml=i(Vc,"UniSpeechSatForPreTraining"),Vc.forEach(o),ul=i(No," forward method, overrides the "),Tn=a(No,"CODE",{});var Nc=s(Tn);fl=i(Nc,"__call__"),Nc.forEach(o),gl=i(No," special method."),No.forEach(o),_l=h(Qe),w(Ne.$$.fragment,Qe),vl=h(Qe),w(We.$$.fragment,Qe),Qe.forEach(o),Y.forEach(o),this.h()},h(){d(c,"name","hf:doc:metadata"),d(c,"content",JSON.stringify(id)),d(u,"id","unispeechsat"),d(u,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(u,"href","#unispeechsat"),d(g,"class","relative group"),d(ve,"id","overview"),d(ve,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ve,"href","#overview"),d(J,"class","relative group"),d(Je,"href","https://arxiv.org/abs/2110.05752"),d(Je,"rel","nofollow"),d(po,"href","/docs/transformers/v4.29.0/en/model_doc/wav2vec2#transformers.Wav2Vec2Processor"),d(ho,"href","/docs/transformers/v4.29.0/en/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer"),d(et,"href","https://huggingface.co/patrickvonplaten"),d(et,"rel","nofollow"),d(tt,"href","https://github.com/microsoft/UniSpeech/tree/main/UniSpeech-SAT"),d(tt,"rel","nofollow"),d(be,"id","documentation-resources"),d(be,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(be,"href","#documentation-resources"),d(G,"class","relative group"),d(mo,"href","../tasks/audio_classification"),d(uo,"href","../tasks/asr"),d(ye,"id","transformers.UniSpeechSatConfig"),d(ye,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ye,"href","#transformers.UniSpeechSatConfig"),d(K,"class","relative group"),d(fo,"href","/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatModel"),d(st,"href","https://huggingface.co/microsoft/unispeech-sat-base-100h-libri-ft"),d(st,"rel","nofollow"),d(go,"href","/docs/transformers/v4.29.0/en/main_classes/configuration#transformers.PretrainedConfig"),d(_o,"href","/docs/transformers/v4.29.0/en/main_classes/configuration#transformers.PretrainedConfig"),d(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d($e,"id","transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput"),d($e,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d($e,"href","#transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput"),d(oe,"class","relative group"),d(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Te,"id","transformers.UniSpeechSatModel"),d(Te,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Te,"href","#transformers.UniSpeechSatModel"),d(ae,"class","relative group"),d(ht,"href","https://arxiv.org/abs/2006.11477"),d(ht,"rel","nofollow"),d(vo,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel"),d(ft,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),d(ft,"rel","nofollow"),d(So,"href","/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatModel"),d(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(xe,"id","transformers.UniSpeechSatForCTC"),d(xe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(xe,"href","#transformers.UniSpeechSatForCTC"),d(re,"class","relative group"),d(St,"href","https://arxiv.org/abs/2006.11477"),d(St,"rel","nofollow"),d(bo,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel"),d(yt,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),d(yt,"rel","nofollow"),d(wo,"href","/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatForCTC"),d(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Ae,"id","transformers.UniSpeechSatForSequenceClassification"),d(Ae,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Ae,"href","#transformers.UniSpeechSatForSequenceClassification"),d(ce,"class","relative group"),d(Ft,"href","https://arxiv.org/abs/2006.11477"),d(Ft,"rel","nofollow"),d(yo,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel"),d(jt,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),d(jt,"rel","nofollow"),d(ko,"href","/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatForSequenceClassification"),d(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Pe,"id","transformers.UniSpeechSatForAudioFrameClassification"),d(Pe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Pe,"href","#transformers.UniSpeechSatForAudioFrameClassification"),d(pe,"class","relative group"),d(Mt,"href","https://arxiv.org/abs/2006.11477"),d(Mt,"rel","nofollow"),d($o,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel"),d(Dt,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),d(Dt,"rel","nofollow"),d(To,"href","/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatForAudioFrameClassification"),d(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Oe,"id","transformers.UniSpeechSatForXVector"),d(Oe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Oe,"href","#transformers.UniSpeechSatForXVector"),d(me,"class","relative group"),d(It,"href","https://arxiv.org/abs/2006.11477"),d(It,"rel","nofollow"),d(Uo,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel"),d(Bt,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),d(Bt,"rel","nofollow"),d(Fo,"href","/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatForXVector"),d(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(Ve,"id","transformers.UniSpeechSatForPreTraining"),d(Ve,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(Ve,"href","#transformers.UniSpeechSatForPreTraining"),d(fe,"class","relative group"),d(Yt,"href","https://arxiv.org/abs/2006.11477"),d(Yt,"rel","nofollow"),d(xo,"href","/docs/transformers/v4.29.0/en/main_classes/model#transformers.PreTrainedModel"),d(Kt,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),d(Kt,"rel","nofollow"),d(Co,"href","/docs/transformers/v4.29.0/en/model_doc/unispeech-sat#transformers.UniSpeechSatForPreTraining"),d(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,f){e(document.head,c),_(t,S,f),_(t,g,f),e(g,u),e(u,v),y(l,v,null),e(g,m),e(g,F),e(F,Da),_(t,zn,f),_(t,J,f),e(J,ve),e(ve,Io),y(Ye,Io,null),e(J,La),e(J,Ho),e(Ho,Va),_(t,On,f),_(t,Se,f),e(Se,Na),e(Se,Je),e(Je,Wa),e(Se,Ia),_(t,Dn,f),_(t,io,f),e(io,Ha),_(t,Ln,f),_(t,lo,f),e(lo,Xo),e(Xo,Xa),_(t,Vn,f),_(t,co,f),e(co,Ba),_(t,Nn,f),_(t,B,f),e(B,Ge),e(Ge,Ra),e(Ge,po),e(po,Za),e(Ge,Qa),e(B,Ya),e(B,Ke),e(Ke,Ja),e(Ke,ho),e(ho,Ga),e(Ke,Ka),e(B,es),e(B,Bo),e(Bo,ts),_(t,Wn,f),_(t,R,f),e(R,os),e(R,et),e(et,ns),e(R,as),e(R,tt),e(tt,ss),e(R,rs),_(t,In,f),_(t,G,f),e(G,be),e(be,Ro),y(ot,Ro,null),e(G,is),e(G,Zo),e(Zo,ls),_(t,Hn,f),_(t,we,f),e(we,Qo),e(Qo,mo),e(mo,cs),e(we,ds),e(we,Yo),e(Yo,uo),e(uo,ps),_(t,Xn,f),_(t,K,f),e(K,ye),e(ye,Jo),y(nt,Jo,null),e(K,hs),e(K,Go),e(Go,ms),_(t,Bn,f),_(t,M,f),y(at,M,null),e(M,us),e(M,ee),e(ee,fs),e(ee,fo),e(fo,gs),e(ee,_s),e(ee,st),e(st,vs),e(ee,Ss),e(M,bs),e(M,te),e(te,ws),e(te,go),e(go,ys),e(te,ks),e(te,_o),e(_o,$s),e(te,Ts),e(M,Us),y(ke,M,null),_(t,Rn,f),_(t,oe,f),e(oe,$e),e($e,Ko),y(rt,Ko,null),e(oe,Fs),e(oe,en),e(en,xs),_(t,Zn,f),_(t,ne,f),y(it,ne,null),e(ne,Cs),e(ne,lt),e(lt,js),e(lt,tn),e(tn,As),e(lt,qs),_(t,Qn,f),_(t,ae,f),e(ae,Te),e(Te,on),y(ct,on,null),e(ae,Es),e(ae,nn),e(nn,Ps),_(t,Yn,f),_(t,A,f),y(dt,A,null),e(A,Ms),e(A,pt),e(pt,zs),e(pt,ht),e(ht,Os),e(pt,Ds),e(A,Ls),e(A,mt),e(mt,Vs),e(mt,vo),e(vo,Ns),e(mt,Ws),e(A,Is),e(A,ut),e(ut,Hs),e(ut,ft),e(ft,Xs),e(ut,Bs),e(A,Rs),e(A,z),y(gt,z,null),e(z,Zs),e(z,se),e(se,Qs),e(se,So),e(So,Ys),e(se,Js),e(se,an),e(an,Gs),e(se,Ks),e(z,er),y(Ue,z,null),e(z,tr),y(Fe,z,null),_(t,Jn,f),_(t,re,f),e(re,xe),e(xe,sn),y(_t,sn,null),e(re,or),e(re,rn),e(rn,nr),_(t,Gn,f),_(t,q,f),y(vt,q,null),e(q,ar),e(q,ie),e(ie,sr),e(ie,ln),e(ln,rr),e(ie,ir),e(ie,St),e(St,lr),e(ie,cr),e(q,dr),e(q,bt),e(bt,pr),e(bt,bo),e(bo,hr),e(bt,mr),e(q,ur),e(q,wt),e(wt,fr),e(wt,yt),e(yt,gr),e(wt,_r),e(q,vr),e(q,O),y(kt,O,null),e(O,Sr),e(O,le),e(le,br),e(le,wo),e(wo,wr),e(le,yr),e(le,cn),e(cn,kr),e(le,$r),e(O,Tr),y(Ce,O,null),e(O,Ur),y(je,O,null),_(t,Kn,f),_(t,ce,f),e(ce,Ae),e(Ae,dn),y($t,dn,null),e(ce,Fr),e(ce,pn),e(pn,xr),_(t,ea,f),_(t,x,f),y(Tt,x,null),e(x,Cr),e(x,hn),e(hn,jr),e(x,Ar),e(x,Ut),e(Ut,qr),e(Ut,Ft),e(Ft,Er),e(Ut,Pr),e(x,Mr),e(x,xt),e(xt,zr),e(xt,yo),e(yo,Or),e(xt,Dr),e(x,Lr),e(x,Ct),e(Ct,Vr),e(Ct,jt),e(jt,Nr),e(Ct,Wr),e(x,Ir),e(x,D),y(At,D,null),e(D,Hr),e(D,de),e(de,Xr),e(de,ko),e(ko,Br),e(de,Rr),e(de,mn),e(mn,Zr),e(de,Qr),e(D,Yr),y(qe,D,null),e(D,Jr),y(Ee,D,null),_(t,ta,f),_(t,pe,f),e(pe,Pe),e(Pe,un),y(qt,un,null),e(pe,Gr),e(pe,fn),e(fn,Kr),_(t,oa,f),_(t,C,f),y(Et,C,null),e(C,ei),e(C,gn),e(gn,ti),e(C,oi),e(C,Pt),e(Pt,ni),e(Pt,Mt),e(Mt,ai),e(Pt,si),e(C,ri),e(C,zt),e(zt,ii),e(zt,$o),e($o,li),e(zt,ci),e(C,di),e(C,Ot),e(Ot,pi),e(Ot,Dt),e(Dt,hi),e(Ot,mi),e(C,ui),e(C,L),y(Lt,L,null),e(L,fi),e(L,he),e(he,gi),e(he,To),e(To,_i),e(he,vi),e(he,_n),e(_n,Si),e(he,bi),e(L,wi),y(Me,L,null),e(L,yi),y(ze,L,null),_(t,na,f),_(t,me,f),e(me,Oe),e(Oe,vn),y(Vt,vn,null),e(me,ki),e(me,Sn),e(Sn,$i),_(t,aa,f),_(t,j,f),y(Nt,j,null),e(j,Ti),e(j,bn),e(bn,Ui),e(j,Fi),e(j,Wt),e(Wt,xi),e(Wt,It),e(It,Ci),e(Wt,ji),e(j,Ai),e(j,Ht),e(Ht,qi),e(Ht,Uo),e(Uo,Ei),e(Ht,Pi),e(j,Mi),e(j,Xt),e(Xt,zi),e(Xt,Bt),e(Bt,Oi),e(Xt,Di),e(j,Li),e(j,V),y(Rt,V,null),e(V,Vi),e(V,ue),e(ue,Ni),e(ue,Fo),e(Fo,Wi),e(ue,Ii),e(ue,wn),e(wn,Hi),e(ue,Xi),e(V,Bi),y(De,V,null),e(V,Ri),y(Le,V,null),_(t,sa,f),_(t,fe,f),e(fe,Ve),e(Ve,yn),y(Zt,yn,null),e(fe,Zi),e(fe,kn),e(kn,Qi),_(t,ra,f),_(t,E,f),y(Qt,E,null),e(E,Yi),e(E,ge),e(ge,Ji),e(ge,$n),e($n,Gi),e(ge,Ki),e(ge,Yt),e(Yt,el),e(ge,tl),e(E,ol),e(E,Jt),e(Jt,nl),e(Jt,xo),e(xo,al),e(Jt,sl),e(E,rl),e(E,Gt),e(Gt,il),e(Gt,Kt),e(Kt,ll),e(Gt,cl),e(E,dl),e(E,N),y(eo,N,null),e(N,pl),e(N,_e),e(_e,hl),e(_e,Co),e(Co,ml),e(_e,ul),e(_e,Tn),e(Tn,fl),e(_e,gl),e(N,_l),y(Ne,N,null),e(N,vl),y(We,N,null),ia=!0},p(t,[f]){const to={};f&2&&(to.$$scope={dirty:f,ctx:t}),ke.$set(to);const Un={};f&2&&(Un.$$scope={dirty:f,ctx:t}),Ue.$set(Un);const Fn={};f&2&&(Fn.$$scope={dirty:f,ctx:t}),Fe.$set(Fn);const xn={};f&2&&(xn.$$scope={dirty:f,ctx:t}),Ce.$set(xn);const oo={};f&2&&(oo.$$scope={dirty:f,ctx:t}),je.$set(oo);const Cn={};f&2&&(Cn.$$scope={dirty:f,ctx:t}),qe.$set(Cn);const jn={};f&2&&(jn.$$scope={dirty:f,ctx:t}),Ee.$set(jn);const An={};f&2&&(An.$$scope={dirty:f,ctx:t}),Me.$set(An);const no={};f&2&&(no.$$scope={dirty:f,ctx:t}),ze.$set(no);const qn={};f&2&&(qn.$$scope={dirty:f,ctx:t}),De.$set(qn);const En={};f&2&&(En.$$scope={dirty:f,ctx:t}),Le.$set(En);const Pn={};f&2&&(Pn.$$scope={dirty:f,ctx:t}),Ne.$set(Pn);const Mn={};f&2&&(Mn.$$scope={dirty:f,ctx:t}),We.$set(Mn)},i(t){ia||(k(l.$$.fragment,t),k(Ye.$$.fragment,t),k(ot.$$.fragment,t),k(nt.$$.fragment,t),k(at.$$.fragment,t),k(ke.$$.fragment,t),k(rt.$$.fragment,t),k(it.$$.fragment,t),k(ct.$$.fragment,t),k(dt.$$.fragment,t),k(gt.$$.fragment,t),k(Ue.$$.fragment,t),k(Fe.$$.fragment,t),k(_t.$$.fragment,t),k(vt.$$.fragment,t),k(kt.$$.fragment,t),k(Ce.$$.fragment,t),k(je.$$.fragment,t),k($t.$$.fragment,t),k(Tt.$$.fragment,t),k(At.$$.fragment,t),k(qe.$$.fragment,t),k(Ee.$$.fragment,t),k(qt.$$.fragment,t),k(Et.$$.fragment,t),k(Lt.$$.fragment,t),k(Me.$$.fragment,t),k(ze.$$.fragment,t),k(Vt.$$.fragment,t),k(Nt.$$.fragment,t),k(Rt.$$.fragment,t),k(De.$$.fragment,t),k(Le.$$.fragment,t),k(Zt.$$.fragment,t),k(Qt.$$.fragment,t),k(eo.$$.fragment,t),k(Ne.$$.fragment,t),k(We.$$.fragment,t),ia=!0)},o(t){$(l.$$.fragment,t),$(Ye.$$.fragment,t),$(ot.$$.fragment,t),$(nt.$$.fragment,t),$(at.$$.fragment,t),$(ke.$$.fragment,t),$(rt.$$.fragment,t),$(it.$$.fragment,t),$(ct.$$.fragment,t),$(dt.$$.fragment,t),$(gt.$$.fragment,t),$(Ue.$$.fragment,t),$(Fe.$$.fragment,t),$(_t.$$.fragment,t),$(vt.$$.fragment,t),$(kt.$$.fragment,t),$(Ce.$$.fragment,t),$(je.$$.fragment,t),$($t.$$.fragment,t),$(Tt.$$.fragment,t),$(At.$$.fragment,t),$(qe.$$.fragment,t),$(Ee.$$.fragment,t),$(qt.$$.fragment,t),$(Et.$$.fragment,t),$(Lt.$$.fragment,t),$(Me.$$.fragment,t),$(ze.$$.fragment,t),$(Vt.$$.fragment,t),$(Nt.$$.fragment,t),$(Rt.$$.fragment,t),$(De.$$.fragment,t),$(Le.$$.fragment,t),$(Zt.$$.fragment,t),$(Qt.$$.fragment,t),$(eo.$$.fragment,t),$(Ne.$$.fragment,t),$(We.$$.fragment,t),ia=!1},d(t){o(c),t&&o(S),t&&o(g),T(l),t&&o(zn),t&&o(J),T(Ye),t&&o(On),t&&o(Se),t&&o(Dn),t&&o(io),t&&o(Ln),t&&o(lo),t&&o(Vn),t&&o(co),t&&o(Nn),t&&o(B),t&&o(Wn),t&&o(R),t&&o(In),t&&o(G),T(ot),t&&o(Hn),t&&o(we),t&&o(Xn),t&&o(K),T(nt),t&&o(Bn),t&&o(M),T(at),T(ke),t&&o(Rn),t&&o(oe),T(rt),t&&o(Zn),t&&o(ne),T(it),t&&o(Qn),t&&o(ae),T(ct),t&&o(Yn),t&&o(A),T(dt),T(gt),T(Ue),T(Fe),t&&o(Jn),t&&o(re),T(_t),t&&o(Gn),t&&o(q),T(vt),T(kt),T(Ce),T(je),t&&o(Kn),t&&o(ce),T($t),t&&o(ea),t&&o(x),T(Tt),T(At),T(qe),T(Ee),t&&o(ta),t&&o(pe),T(qt),t&&o(oa),t&&o(C),T(Et),T(Lt),T(Me),T(ze),t&&o(na),t&&o(me),T(Vt),t&&o(aa),t&&o(j),T(Nt),T(Rt),T(De),T(Le),t&&o(sa),t&&o(fe),T(Zt),t&&o(ra),t&&o(E),T(Qt),T(eo),T(Ne),T(We)}}}const id={local:"unispeechsat",sections:[{local:"overview",title:"Overview"},{local:"documentation-resources",title:"Documentation resources"},{local:"transformers.UniSpeechSatConfig",title:"UniSpeechSatConfig"},{local:"transformers.models.unispeech_sat.modeling_unispeech_sat.UniSpeechSatForPreTrainingOutput",title:"UniSpeechSat specific outputs"},{local:"transformers.UniSpeechSatModel",title:"UniSpeechSatModel"},{local:"transformers.UniSpeechSatForCTC",title:"UniSpeechSatForCTC"},{local:"transformers.UniSpeechSatForSequenceClassification",title:"UniSpeechSatForSequenceClassification"},{local:"transformers.UniSpeechSatForAudioFrameClassification",title:"UniSpeechSatForAudioFrameClassification"},{local:"transformers.UniSpeechSatForXVector",title:"UniSpeechSatForXVector"},{local:"transformers.UniSpeechSatForPreTraining",title:"UniSpeechSatForPreTraining"}],title:"UniSpeech-SAT"};function ld(U){return Bc(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class fd extends Wc{constructor(c){super();Ic(this,c,ld,rd,Hc,{})}}export{fd as default,id as metadata};
