Skip to content

Commit 425dc42

Browse files
committed
update
1 parent df73c9b commit 425dc42

File tree

4 files changed

+44
-4
lines changed

4 files changed

+44
-4
lines changed

app/learn/llm-fundamentals/batch-size-vs-sequence-length/page.tsx renamed to app/learn/large-language-models/batch-size-vs-sequence-length/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { LessonPage } from "@/components/lesson-page";
33
export default function BatchSizeVsSequenceLengthPage() {
44
return (
55
<LessonPage
6-
contentPath="llm-fundamentals/batch-size-vs-sequence-length"
6+
contentPath="large-language-models/batch-size-vs-sequence-length"
77
prevLink={{ href: "/learn", label: "← Back to Course" }}
88
nextLink={{ href: "/learn", label: "Continue Learning →" }}
99
/>

app/learn/page.tsx

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,46 @@ export default function LearnPage() {
12161216
</div>
12171217
</div>
12181218

1219+
{/* Large Language Models Module */}
1220+
<div className="bg-gradient-to-br from-slate-800/50 to-slate-700/50 backdrop-blur-sm border border-slate-600/50 rounded-2xl p-8">
1221+
<div className="flex items-center gap-4 mb-6">
1222+
<div className="w-12 h-12 bg-gradient-to-r from-emerald-500 to-teal-500 rounded-lg flex items-center justify-center">
1223+
<svg className="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1224+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z" />
1225+
</svg>
1226+
</div>
1227+
<div>
1228+
<h2 className="text-3xl font-bold text-white">
1229+
{language === 'en' ? 'Large Language Models' : '大型语言模型'}
1230+
</h2>
1231+
<p className="text-slate-400">
1232+
{language === 'en' ? 'Understanding LLM training and optimization' : '理解LLM训练和优化'}
1233+
</p>
1234+
</div>
1235+
</div>
1236+
1237+
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
1238+
<Link
1239+
href="/learn/large-language-models/batch-size-vs-sequence-length"
1240+
className="group bg-slate-800/50 border border-slate-600/50 rounded-xl p-6 hover:border-emerald-500/50 hover:shadow-xl hover:shadow-emerald-500/10 transition-all duration-300"
1241+
>
1242+
<div className="flex items-start justify-between mb-3">
1243+
<h3 className="text-xl font-semibold text-white group-hover:text-emerald-400 transition-colors">
1244+
<span className="mr-2">1.</span>{language === 'en' ? 'Batch Size vs Sequence Length' : '批量大小与序列长度'}
1245+
</h3>
1246+
<svg className="w-5 h-5 text-emerald-400 group-hover:translate-x-1 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1247+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
1248+
</svg>
1249+
</div>
1250+
<p className="text-slate-400 text-sm">
1251+
{language === 'en'
1252+
? 'Understanding the trade-offs between batch size and sequence length'
1253+
: '理解批量大小和序列长度之间的权衡'}
1254+
</p>
1255+
</Link>
1256+
</div>
1257+
</div>
1258+
12191259
</div>
12201260
</div>
12211261
</section>

lib/course-structure.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ export const getCourseModules = (): ModuleData[] => [
367367
]
368368
},
369369
{
370-
title: "LLM Training Fundamentals",
371-
titleZh: "LLM训练基础",
370+
title: "Large Language Models",
371+
titleZh: "大型语言模型",
372372
icon: (
373373
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
374374
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z" />
@@ -378,7 +378,7 @@ export const getCourseModules = (): ModuleData[] => [
378378
{
379379
title: "Batch Size vs Sequence Length",
380380
titleZh: "批量大小与序列长度",
381-
href: "/learn/llm-fundamentals/batch-size-vs-sequence-length"
381+
href: "/learn/large-language-models/batch-size-vs-sequence-length"
382382
}
383383
]
384384
}

public/content/learn/llm-fundamentals/batch-size-vs-sequence-length/batch-size-vs-sequence-length-content.md renamed to public/content/learn/large-language-models/batch-size-vs-sequence-length/batch-size-vs-sequence-length-content.md

File renamed without changes.

0 commit comments

Comments
 (0)