ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
This commit is contained in:
+54
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><style>
|
||||
html { background: #FFFFFF; }
|
||||
body { width: 720pt; height: 405pt; margin: 0; padding: 0; background: #FAFAFF; font-family: Arial, sans-serif; display: flex; }
|
||||
.bar { width: 10pt; background: #4338CA; }
|
||||
.wrap { width: 644pt; margin: 26pt 32pt 22pt 34pt; display: flex; flex-direction: column; }
|
||||
.kicker { font-size: 9.5pt; color: #7C3AED; font-weight: bold; letter-spacing: 2pt; margin: 0 0 4pt 0; }
|
||||
h1 { font-size: 23pt; color: #1A1633; margin: 0 0 8pt 0; }
|
||||
.rule { background: #F59E0B; height: 3pt; width: 60pt; margin: 0 0 14pt 0; }
|
||||
.cols { display: flex; }
|
||||
.card { width: 302pt; background: #FFFFFF; border: 1px solid #E0DFF0; border-radius: 10pt; padding: 12pt 16pt 4pt 16pt; }
|
||||
.card p { margin: 0; }
|
||||
.ct { font-size: 12.5pt; color: #4338CA; font-weight: bold; margin: 0 0 8pt 0; }
|
||||
ul { margin: 0; padding-left: 13pt; font-size: 10pt; color: #2A2740; line-height: 1.35; }
|
||||
li { margin-bottom: 7pt; }
|
||||
.gap { width: 20pt; }
|
||||
.mono { font-family: Courier New, monospace; font-size: 9pt; color: #4338CA; }
|
||||
.hw { background: #EEF0FF; border-radius: 8pt; padding: 9pt 14pt; margin-top: 14pt; }
|
||||
.hw p { font-size: 10pt; color: #2A2740; margin: 0; }
|
||||
.foot { font-size: 8pt; color: #8A86A3; margin-top: auto; margin-bottom: 0; }
|
||||
</style></head>
|
||||
<body>
|
||||
<div class="bar"></div>
|
||||
<div class="wrap">
|
||||
<p class="kicker">07 · EXPERIMENTS</p>
|
||||
<h1>Training Setup</h1>
|
||||
<div class="rule"></div>
|
||||
<div class="cols">
|
||||
<div class="card">
|
||||
<p class="ct">Data & Batching</p>
|
||||
<ul>
|
||||
<li><b>WMT 2014 English–German</b>: 4.5M sentence pairs; <b>English–French</b>: 36M sentences.</li>
|
||||
<li>Byte-pair encoding with a <b>shared source–target vocabulary of ~37K tokens</b>.</li>
|
||||
<li>Batches of ~25,000 source and ~25,000 target tokens, grouped by approximate sequence length.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="gap"></div>
|
||||
<div class="card">
|
||||
<p class="ct">Optimization & Regularization</p>
|
||||
<ul>
|
||||
<li>Adam (β₁ = 0.9, β₂ = 0.98, ε = 10⁻⁹) with <b>warmup</b>: 4,000 linearly increasing steps, then inverse-square-root decay.</li>
|
||||
<li>Residual dropout 0.1 (base) / 0.3 (big); attention dropout on each sub-layer.</li>
|
||||
<li>Label smoothing ε_ls = 0.1 — hurts perplexity but <b>improves accuracy and BLEU</b>.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hw">
|
||||
<p><b>Hardware & time:</b> 8 × NVIDIA P100 GPUs — base model: 12 hours (100K steps); big model: 3.5 days (300K steps). Beam search with beam size 4, length penalty α = 0.6.</p>
|
||||
</div>
|
||||
<p class="foot">Source: §5 Training (paper p. 7); §6.1 (paper p. 8).</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user