Skip to content

Instantly share code, notes, and snippets.

View hongsw's full-sized avatar
๐Ÿ•น๏ธ
Focusing

Seungwoo hong hongsw

๐Ÿ•น๏ธ
Focusing
View GitHub Profile
flowchart TD
    %% ์ค‘์‹ฌ ๋…ธ๋“œ
    OSS[์˜คํ”ˆ์†Œ์Šค ์†Œํ”„ํŠธ์›จ์–ด ๊ต์œก ๊ฒฝ๋กœ] 
    
    %% ์„œ๋ธŒ๊ทธ๋ž˜ํ”„ ๋ ˆ๋ฒจ ์ •์˜
    subgraph ๋ ˆ๋ฒจ1[๋ ˆ๋ฒจ 1 - ํ•ต์‹ฌ ๊ธฐ๋ฐ˜ ๊ธฐ์ˆ ]
        direction TB
        TERMINAL[ํ„ฐ๋ฏธ๋„ ๊ธฐ๋ณธ]
        SHELL[์‰˜ ์Šคํฌ๋ฆฝํŠธ]
@hongsw
hongsw / From_Mathematical_Foundations_to_Modern_AI_Transformer_Evolution_Diagram.md
Last active April 5, 2025 05:49
"์ž์—ฐ์–ด ์ฒ˜๋ฆฌ์˜ ๋Œ€์ˆ˜ํ•™์  ๊ธฐ๋ฐ˜๋ถ€ํ„ฐ ํ˜„๋Œ€ ์ธ๊ณต์ง€๋Šฅ๊นŒ์ง€: Transformer ์•„ํ‚คํ…์ฒ˜์˜ ์ง„ํ™”์™€ ์˜ํ–ฅ๋ ฅ์— ๊ด€ํ•œ ํ†ต์‹œ์  ์กฐ๋ง๋„" ์ด ์ด๋ฆ„์€ ๋‹ค์ด์–ด๊ทธ๋žจ์ด ๋‹ค๋ฃจ๋Š” ๊ด‘๋ฒ”์œ„ํ•œ ์‹œ๊ฐ„์  ์ŠคํŽ™ํŠธ๋Ÿผ(๋Œ€์ˆ˜ํ•™์  ๊ธฐ๋ฐ˜๋ถ€ํ„ฐ ํ˜„๋Œ€ AI๊นŒ์ง€), ์ค‘์‹ฌ ์ฃผ์ œ(Transformer ์•„ํ‚คํ…์ฒ˜), ๊ทธ๋ฆฌ๊ณ  ๋‹ค์ด์–ด๊ทธ๋žจ์˜ ์„ฑ๊ฒฉ(๋‹ค์–‘ํ•œ ๊ธฐ์ˆ ๊ณผ ๋ชจ๋ธ์˜ ๋ฐœ์ „ ๊ณผ์ •๊ณผ ์˜ํ–ฅ ๊ด€๊ณ„๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” ํ†ต์‹œ์  ์กฐ๋ง)์„ ๋ชจ๋‘ ํฌ๊ด„ํ•ฉ๋‹ˆ๋‹ค.
flowchart TB
    subgraph "์ž์—ฐ์–ด ์ฒ˜๋ฆฌ ์ „ํ†ต์  ์ ‘๊ทผ๋ฒ• (1950s~1980s)"
        RULE["๊ทœ์น™ ๊ธฐ๋ฐ˜ ์‹œ์Šคํ…œ<br>- ๋ฌธ๋ฒ• ๊ทœ์น™ ์ˆ˜๋™ ์ •์˜<br>- ์ „๋ฌธ๊ฐ€ ์ง€์‹ ๊ธฐ๋ฐ˜<br>- ํ™•์žฅ์„ฑ ํ•œ๊ณ„"]
        SYM["๊ธฐํ˜ธ์ฃผ์˜ ์ ‘๊ทผ๋ฒ•<br>- ํ˜•์‹ ์–ธ์–ด ๋ฐ ๋ฌธ๋ฒ•<br>- ๋…ผ๋ฆฌ ๊ธฐ๋ฐ˜ ์ถ”๋ก <br>- ์• ๋งค์„ฑ ์ฒ˜๋ฆฌ ์–ด๋ ค์›€"]
        PARSE["๊ตฌ๋ฌธ ๋ถ„์„ ํŠธ๋ฆฌ<br>- ๋ฌธ์žฅ ๊ตฌ์กฐ ํ‘œํ˜„<br>- ๊ณ„์ธต์  ๋ถ„์„<br>- ์˜๋ฏธ ํŒŒ์•… ์ œํ•œ"]
    end

    subgraph "์ˆ˜ํ•™์  ๊ธฐ๋ฐ˜"
        subgraph "์„ ํ˜•๋Œ€์ˆ˜ํ•™ (Linear Algebra)"
@hongsw
hongsw / update-asdf-0.16-zshrc.sh
Created March 21, 2025 02:09
Purpose of the Script This script automates the configuration changes required when upgrading to ASDF version 0.16.0 from earlier versions. The purpose is to: Safely back up the user's existing .zshrc configuration file Remove any outdated ASDF-related configuration lines Add the new required environment variables and PATH modifications for ASDFโ€ฆ
#!/bin/bash
# Create backup filename with current date and time
BACKUP_FILE=~/.zshrc.backup.$(date +%Y%m%d%H%M%S)
# Backup original file
cp ~/.zshrc "$BACKUP_FILE"
echo "Existing .zshrc file has been backed up to $BACKUP_FILE"
# Remove existing ASDF-related settings and create new file
@willccbb
willccbb / grpo_demo.py
Last active May 8, 2025 14:16
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
@hongsw
hongsw / main.dart
Last active September 12, 2023 15:54
dart string functions
void main() {
var hello = 'Hello, ๐ŸŒ!';
print(hello.toUpperCase()); // Output: "HELLO, ๐ŸŒ!"
hello = 'Hello, ๐ŸŒ!';
print(hello.toLowerCase()); // Output: "hello, ๐ŸŒ!"
hello = ' Hello, ๐ŸŒ! ';
print(hello.trim()); // Output: "Hello, ๐ŸŒ!"
@hongsw
hongsw / main.dart
Last active May 24, 2023 01:18
TextFormField + Class ์˜ˆ์‹œ
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
State<MyApp> createState() => _MyAppState();
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
State<MyApp> createState() => _MyAppState();
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
State<MyApp> createState() => _MyAppState();
@hongsw
hongsw / main.dart
Last active March 1, 2023 05:57
Hong Dartpad Nanochat using FlutterFire (Auth + Firestore)
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
const messageLimit = 30;
@hongsw
hongsw / main.dart
Created October 31, 2022 10:21
3.3-๋ณ€์ˆ˜์ด์šฉํ•˜์—ฌ ํ™”๋ฉด๊ตฌ์„ฑ http.get
import 'dart:convert';
import 'package:http/http.dart';
import 'package:flutter/material.dart';
void main() async {
const jsonUrl = "hongsw/67e0d72dffa2908e1715dc89a7b0e802/raw/9c5b1388bd52396ff1917b6928f3bda5fcd3b5c7/webtoon.json";
var toons = [];
try{
var response = await get(Uri.https("gist.githubusercontent.com", jsonUrl));
toons = json.decode(response.body)['webtoon'];