Buckets:

HuggingFaceDocBuilder's picture
|
download
raw
17.8 kB
# အခန်းပြီးဆုံးခြင်း စစ်ဆေးမှု[[end-of-chapter-quiz]]
<CourseFloatingBanner
chapter={2}
classNames="absolute z-10 right-0 top-0"
/>
### 1. Language modeling pipeline ၏ အစီအစဉ်က ဘာလဲ။
<Question
choices={[
{
text: "ပထမဆုံး၊ text ကို ကိုြီး raw predictions ွေကို ေးဲ့ model တယ်။ ို့ောကtokenizer က predictions ွေကို ားလညြီး ိုအပဲ့အခtext အဖြော်းေးတယ်။",
explain: "Model က text ကို ားမလညိုူး။ Tokenizer က text ကို အရငtokenize ြီး model က ားလညိုောIDs ွေအဖြော်းေးရပမယ်။"
},
{
text: "ပထမဆုံး၊ text ကို ကိုြီး IDs ွေကို ေးဲ့ tokenizer တယ်။ Model က IDs ွေကို ကိုြီး text ိုဲ့ prediction တစကို ေးတယ်။",
explain: "Model ဲ့ prediction က ိုကိုကtext မဖိုူး။ Prediction ကို text အဖြော်းို့ tokenizer ကို ထပအသုံးြုရပမယ်။"
},
{
text: "Tokenizer က text ကို ကိုြီး IDs ွေကို ေးတယ်။ Model က IDs ွေကို ကိုြီး prediction တစကို ေးတယ်။ ို့ောကtokenizer ကို predictions ွေကို text အဖြော်းို့အတကတစဖနထပအသုံးြုိုတယ်။",
explain: "Tokenizer ကို tokenize ်း့် de-tokenize ်း ုံးအတကအသုံးြုိုတယ်။",
correct: true
}
]}
/>
### 2. Base Transformer model က ထုတ်ပေးတဲ့ tensor မှာ dimension ဘယ်နှစ်ခုရှိပြီး၊ ဘာတွေလဲ။
<Question
choices={[
{
text: "2 : Sequence length ဲ့ batch size",
explain: "ှားတယ်။ Model က ေးဲ့ tensor ှာ တတ dimension တစှိတယ- hidden size ါ။"
},
{
text: "2 : Sequence length ဲ့ hidden size",
explain: "ှားတယ်။ Transformer model ားုံးက batches ွေကို ကိုတယ်၊ single sequence တစဲ့ိုရငောbatch size က 1 ့်မယ်။"
},
{
text: "3 : Sequence length, batch size ဲ့ hidden size",
explain: "ကော်းိုကာ။",
correct: true
}
]}
/>
### 3. အောက်ပါတို့ထဲမှ မည်သည့်အရာက subword tokenization ဥပမာတစ်ခုလဲ။
<Question
choices={[
{
text: "WordPiece",
explain: "တယ်၊ က subword tokenization ဥပမတစဲ။",
correct: true
},
{
text: "Character-based tokenization",
explain: "Character-based tokenization subword tokenization အမျိုးအစား မဟူး။"
},
{
text: "Whitespace ဲ့ punctuation ွေဲ့ ို်းြား်း",
explain: "က word-based tokenization နည်းလမ်းတစါ။"
},
{
text: "BPE",
explain: "တယ်၊ က subword tokenization ဥပမတစဲ။",
correct: true
},
{
text: "Unigram",
explain: "တယ်၊ က subword tokenization ဥပမတစဲ။",
correct: true
},
{
text: "အထကအဖြေျားတစမဟါ။",
explain: "ှားတယ်။"
}
]}
/>
### 4. Model head ဆိုတာ ဘာလဲ။
<Question
choices={[
{
text: "Base Transformer network ဲ့ အစအပို်းတစြီး tensors ွေကို ၎်းို့ဲ့ ကနဲ့ layers ွေလညလမ်းကြော်းြော်းေးတယ်။",
explain: "ို အစအပို်းျိုး မရှိူး။"
},
{
text: "Self-attention mechanism ို့လည်း ျားြီး၊ ၎်းသညsequenceအခြား tokens ျား့်အညtoken တစု၏ ကိုားြုှုကို ိုကျောွေောြုေးတယ်။",
explain: "Self-attention layer ှာ attention 'heads' ွေ ဝငမယ့် ွေက adaptation heads ွေ မဟူး။"
},
{
text: "Transformer predictions ွေကို task-specific output တစအဖြော်းို့အတကုံား့် layers တစို့မဟအနည်းငယဲ့ ွဲ့စည်းားဲ့ အပိုအစအပို်းတစု။",
explain: "တယ်။ Adaptation heads ွော (ိုး်းွာ heads ို့လည်း ျားတယ်) မတဲ့ ုံျိုးုံဲ့ တယ- language modeling heads, question answering heads, sequence classification heads... ",
correct: true
}
]}
/>
### 5. AutoModel ဆိုတာ ဘာလဲ။
<Question
choices={[
{
text: "သင်၏ data ေါ်အလိုအလျောကေ့က့်ေးော model တစု။",
explain: "ကို ကျွော်ို့ဲ့ AutoTrain product ဲ့ ှားား။"
},
{
text: "Checkpoint ကို အခြေြီး ကနဲ့ architecture ကို ေးဲ့ object တစု။",
explain: "ြီ- `AutoModel` က ကနဲ့ architecture ကို ေးို့အတကinitialize မယ့် checkpoint ကို ို့ိုအပတယ်။",
correct: true
},
{
text: "၎်း၏ inputs ျားအတကအသုံးြုော စကားကို အလိုအလျောကောက်းြီး ကနော weights ျားကို load ေးော model တစု။",
explain: "အချို့ checkpoints ွေဲ့ models ွေက စကားျားွာကို ကိုို်းှိမယ့်၊ စကားအရ checkpoint ကို အလိုအလျောကွေးို့အတကbuilt-in tools ွေ မရှိေးူး။ သင့်ငန်းအတကအကော်းုံး checkpoint ကို ှာွေို့ Model Hub ကို ွားသင့်တယ်။"
}
]}
/>
### 6. အရှည်မတူညီသော sequences များကို အတူတကွ batch လုပ်သည့်အခါ မည်သည့်နည်းလမ်းများကို သိရှိထားသင့်သလဲ။
<Question
choices={[
{
text: "Truncating",
explain: "တယ်၊ truncation က rectangular shape ောsequences ွေကို ျှောို့ ကနဲ့ နည်းလမ်းတစဲ။ မယ့် တစတည်းော နည်းလမ်းား။",
correct: true
},
{
text: "Returning tensors",
explain: "အခြားနည်းလမ်းွေက rectangular tensors ွေကို ေးိုမယ့်၊ sequences ွေကို batch ဲ့အခtensors ွေကို ေးက အသုံးမဝငူး။"
},
{
text: "Padding",
explain: "တယ်၊ padding က rectangular shape ောsequences ွေကို ျှောို့ ကနဲ့ နည်းလမ်းတစဲ။ မယ့် တစတည်းော နည်းလမ်းား။",
correct: true
},
{
text: "Attention masking",
explain: "တယ်။ အရမတော sequences ျားကို ကိုသည့်အခAttention masks ျားသညအလအရေးကြီးသည်။ ို့ော်လည်း ၎်းသညှိားရမည့် တစတည်းော နည်းပညမဟေးါ။",
correct: true
}
]}
/>
### 7. sequence classification model က ထုတ်ပေးတဲ့ logits တွေပေါ်မှာ SoftMax function ကို အသုံးပြုရခြင်းရဲ့ ရည်ရွယ်ချက်က ဘာလဲ။
<Question
choices={[
{
text: "Logits ွေကို ိုိုုံကရအောြုေးတယ်။",
explain: "မဟူး၊ SoftMax function က ရလဒွေဲ့ ုံကရမှုကို မထိုကူး။"
},
{
text: "၎်းို့ ားလညိုောအန့်ုံး့် အမ့်ုံးကန့်သတကကို သတေးတယ်။",
explain: "ကဲ့ တနိုးွေက 0 ဲ့ 1 ကြားှာ ှိတယ်။ မယ့် က SoftMax function ကို အသုံးြုရတဲ့ တစတည်းော အကြော်းကော့ မဟူး။",
correct: true
},
{
text: "output ဲ့ ေါ်းတနိုးက 1 ြီး ိုြေိုအဓ့်ိုိုြေ ှိတယ်။",
explain: "ြီ။ မယ့် က SoftMax function ကို အသုံးြုရတဲ့ တစတည်းော အကြော်းကော့ မဟူး။",
correct: true
}
]}
/>
### 8. tokenizer API ရဲ့ အများစုက ဘယ် method ပေါ်မှာ အခြေခံထားလဲ။
<Question
choices={[
{
text: "encodetext ကို IDs အဖencode ိုြီး IDs ွေကို predictions အဖencode ိုို့ါ။",
explain: "ှားတယ်။ `encode` method tokenizers ွေှာ ှိမယ့် models ွေှာော့ မရှိူး။"
},
{
text: "tokenizer object ကို ိုကိုကေါ််း။",
explain: "ြီ။ tokenizer ဲ့ `__call__` method အလအစ်းထကဲ့ method တစြီး မဆိုီးါး ကိုိုတယ်။ က model ကနpredictions ွေကို ရယို့ အသုံးြုဲ့ method လည်း တယ်။",
correct: true
},
{
text: "pad",
explain: "ှားတယ်။ Padding က အလအသုံးဝငမယ့် tokenizer API ဲ့ တစတစို်းျှတယ်။"
},
{
text: "tokenize",
explain: "`tokenize` method အသုံးဝငုံး methods ွေက တစမယ့် tokenizer API ဲ့ အဓက အစအပို်းော့ မဟူး။"
}
]}
/>
### 9. ဒီ code sample မှာ `result` variable က ဘာတွေ ပါဝင်သလဲ။
```py
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("bert-base-cased")
result = tokenizer.tokenize("Hello!")
```
<Question
choices={[
{
text: "Strings ျား၏ list တစု၊ string တစသညtoken တစသည်။",
explain: "တယ်၊ ကို IDs ွေအဖြော်းြီး model ကို ို့ိုကါ။",
correct: true
},
{
text: "IDs ျား၏ list တစု။",
explain: "ှားတယ်။ က `__call__` မဟ် `convert_tokens_to_ids` method အတကါ။"
},
{
text: "Tokens ျားားုံး ဝငော string တစု။",
explain: "က မသင့်ော်ူး၊ ို့ိုော့ ရညကက string ကို tokens ျားွာအဖို်းြားို့ါ။"
}
]}
/>
### 10. အောက်ပါ code မှာ တစ်ခုခု မှားနေတာ ရှိပါသလား။
```py
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("bert-base-cased")
model = AutoModel.from_pretrained("gpt2")
encoded = tokenizer("Hey!", return_tensors="pt")
result = model(**encoded)
```
<Question
choices={[
{
text: "မရှိူး၊ ကနုံရပတယ်။",
explain: "ကမကော်းွာဲ့ဲ၊ model တစကို မတဲ့ checkpoint ဲ့ train ားဲ့ tokenizer တစဲ့ ွဲဖကက ကော်းဲ့ အကြံတစမဟူး။ model ကို tokenizer ဲ့ output ကနအဓို့ train ားမဟူး၊ ကြော့် model output က (run ိုဲ့ရငော်) အဓမရှိူး။"
},
{
text: "Tokenizer ဲ့ model အမြဲတမ်း checkpoint ကနသင့်တယ်။",
explain: "ြီ။",
correct: true
},
{
text: "Input ို်းbatch ကြော့် tokenizer ဲ့ pad ်းဲ့ truncate ်းက ကော်းဲ့ အလေ့အက့်ါ။",
explain: "Model input ို်းbatch ို့ ိုအပတယ်။ ို့ော်လည်း၊ sequence ကို truncate မဟpad က အဓှိှာ မဟူး။ ို့ိုော့ တစတည်းှိို့ါ။ ွေက sentences list တစကို batch ို့အတကနည်းလမ်းွေါ။"
}
]}
/>

Xet Storage Details

Size:
17.8 kB
·
Xet hash:
dc6e4fdc087268fbe1467e76b019fe9cba645ec89dc45f5da952444ce030eb3a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.