Does GPT use the encoder or decoder part of the Transformer?, GPT-style LLMs use a decoder-only Transformer. More precisely: stacked Transformer decoder blocks with causal/masked self-attention, so each token can only attend to previous tokens., Why is causal masking essential in GPT?, Because GPT is trained to predict the next token. If token t could see future tokens, the task would leak the answer and the model would not learn proper autoregressive generation., How does Mamba differ from a Transformer?, A Transformer uses attention to compare tokens with other tokens. Mamba uses a selective state-space mechanism: it updates a hidden state and learns what information to keep, forget, or pass forward.A Transformer uses attention to compare tokens with other tokens. Mamba uses a selective state-space mechanism: it updates a hidden state and learns what information to keep, forget, or pass forward., Why can Mamba scale better to long sequences than attention-based Transformers?, Standard attention compares many token pairs, so cost grows roughly with sequence length squared. Mamba processes sequences with state updates, so its sequence-length scaling is closer to linear., What does the KV cache do during LLM generation?, It stores previous keys and values so the model does not recompute attention for all past tokens. It speeds up decoding, but generation is still sequential: the model must produce token 1 before token 2.
0%
Undersatnding LLM
แชร์
แชร์
แชร์
โดย
Ktylkasuleja
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แฟลชการ์ด
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม