Skip to content

Instantly share code, notes, and snippets.

View dsdanielpark's full-sized avatar
๐Ÿ„โ€โ™‚๏ธ
Believe in your potential. May the Force be with us.

MinWoo(Daniel) Park dsdanielpark

๐Ÿ„โ€โ™‚๏ธ
Believe in your potential. May the Force be with us.
View GitHub Profile
@dsdanielpark
dsdanielpark / LLM.md
Created October 4, 2023 08:24 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@dsdanielpark
dsdanielpark / RLHF.md
Created August 10, 2023 07:55 — forked from JoaoLages/RLHF.md
Reinforcement Learning from Human Feedback (RLHF) - a simplified explanation

Maybe you've heard about this technique but you haven't completely understood it, especially the PPO part. This explanation might help.

We will focus on text-to-text language models ๐Ÿ“, such as GPT-3, BLOOM, and T5. Models like BERT, which are encoder-only, are not addressed.

Reinforcement Learning from Human Feedback (RLHF) has been successfully applied in ChatGPT, hence its major increase in popularity. ๐Ÿ“ˆ

RLHF is especially useful in two scenarios ๐ŸŒŸ:

  • You canโ€™t create a good loss function
    • Example: how do you calculate a metric to measure if the modelโ€™s output was funny?
  • You want to train with production data, but you canโ€™t easily label your production data
@dsdanielpark
dsdanielpark / gist:6087c6d8e17d1fce4472d1ffc9ea7176
Created July 25, 2023 06:59 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@dsdanielpark
dsdanielpark / deskew.py
Created June 21, 2022 00:16 — forked from russss/deskew.py
Automatic scanned image rotation/deskew with OpenCV
import cv2
import numpy as np
def deskew(im, max_skew=10):
height, width = im.shape
# Create a grayscale image and denoise it
im_gs = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
im_gs = cv2.fastNlMeansDenoising(im_gs, h=3)