Yes
This commit is contained in:
61
00-Lesson-Site/src/content/lessons/01-intro.mdx
Normal file
61
00-Lesson-Site/src/content/lessons/01-intro.mdx
Normal file
@@ -0,0 +1,61 @@
|
||||
---
|
||||
# Path: src/content/lessons/01-intro.mdx
|
||||
|
||||
title: "Introduction to Web Dev"
|
||||
description: "Setting up the environment"
|
||||
style: "type-1"
|
||||
---
|
||||
|
||||
import Spoiler from "../../components/Post/Spoiler.tsx";
|
||||
|
||||
# Hosting a Large Language Model (LLM) Locally
|
||||
|
||||
<picture>
|
||||
<img src="https://pic.mangopig.tech/i/879aaccd-6822-423f-883a-74cf5ba598e7.jpg" alt="Web Development Illustration" />
|
||||
</picture>
|
||||
|
||||
<blockquote class="lesson-meta">
|
||||
<span>Lesson 01</span>
|
||||
<span>Created at: **December 2025**</span>
|
||||
<span>Last Updated: **December 2025**</span>
|
||||
</blockquote>
|
||||
|
||||
<blockquote class="objectives" data-toc="Lesson Objectives">
|
||||
|
||||
## Lesson Objectives
|
||||
|
||||
- Setting up your Developer Environment
|
||||
- Setting up a isolated Docker environment for hosting LLMs
|
||||
- Introduction to basic Python environment setup
|
||||
- Hosting a basic LLM model with Llama.cpp locally
|
||||
|
||||
<picture>
|
||||
<img src="https://pic.mangopig.tech/i/4c4d1b5f-b9ce-4952-a1b4-991b19c0adb5.png" alt="MangoPig Ganbattte" />
|
||||
</picture>
|
||||
|
||||
</blockquote>
|
||||
|
||||
<section data-toc="Setting Up Developer Environment">
|
||||
<h2 data-toc="WSL" data-toc-level="2">Setting Up WSL (Windows Subsystem for Linux)</h2>
|
||||
To set up WSL on your Windows machine, follow these steps:
|
||||
1. Open PowerShell as Administrator.
|
||||
2. Run the following command to enable WSL and install a Linux distribution (Ubuntu is recommended):
|
||||
|
||||
```zsh frame="none"
|
||||
wsl --install
|
||||
```
|
||||
|
||||
3. Restart your computer when prompted.
|
||||
4. After restarting, open the Ubuntu application from the Start menu and complete the initial setup by creating a user account.
|
||||
5. Update your package lists and upgrade installed packages by running:
|
||||
|
||||
```zsh frame="none"
|
||||
sudo apt update && sudo apt upgrade -y
|
||||
```
|
||||
|
||||
<h2 data-toc="Getting Your Environment Ready" data-toc-level="2">Getting Your Environment Ready</h2>
|
||||
|
||||
```wsl frame="none"
|
||||
|
||||
|
||||
</section>
|
||||
15
00-Lesson-Site/src/content/lessons/config.ts
Normal file
15
00-Lesson-Site/src/content/lessons/config.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// Path: 00-Lesson-Site/src/content/lessons/config.ts
|
||||
|
||||
import { defineCollection, z } from "astro:content";
|
||||
|
||||
const lessonsCollection = defineCollection({
|
||||
type: "content",
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string().optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
lessons: lessonsCollection,
|
||||
};
|
||||
Reference in New Issue
Block a user