Skip to content

Instantly share code, notes, and snippets.

View JaeDukSeo's full-sized avatar
🙏
Praying

J JaeDukSeo

🙏
Praying
View GitHub Profile
@JaeDukSeo
JaeDukSeo / deploy_gpt_neo_on_sagemaker.ipynb
Created June 23, 2022 18:15 — forked from zilunpeng/deploy_gpt_neo_on_sagemaker.ipynb
example notebook for deploying GPT-Neo in AWS Sagemaker
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JaeDukSeo
JaeDukSeo / gpt_neo_generation.py
Created June 23, 2022 18:15 — forked from zilunpeng/gpt_neo_generation.py
example code for running GPT-Neo
"""
Invode the conda environment gpt_neo_generation before running this file.
Specify the prompt in prompt.txt
"""
from transformers import GPTNeoForCausalLM, GPT2Tokenizer
import time
def main():
start_time = time.time()
@JaeDukSeo
JaeDukSeo / Training_GPT_Neo.ipynb
Created June 23, 2022 18:15 — forked from zilunpeng/Training_GPT_Neo.ipynb
example notebook for training GPT-Neo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JaeDukSeo
JaeDukSeo / GPT_Neo_playground_public.ipynb
Created June 23, 2022 18:15 — forked from zilunpeng/GPT_Neo_playground_public.ipynb
example notebook for running GPT-Neo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JaeDukSeo
JaeDukSeo / run_generation.py
Created June 23, 2022 18:15 — forked from zilunpeng/run_generation.py
Generate using a GPT model
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@JaeDukSeo
JaeDukSeo / run_clm.py
Created June 23, 2022 18:15 — forked from zilunpeng/run_clm.py
Continue to pre-train GPT models
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@JaeDukSeo
JaeDukSeo / fashion_mnist_theano.py
Created November 11, 2017 17:02 — forked from tomokishii/fashion_mnist_theano.py
fashion_mist_theano.py - one another mnist (fashion mnist) classification code using Theano. (Goodbye Theano!)
#
# fashion_mnist_theano.py
# date. 10/2/2017
#
# REM: I read the article for stopping development of "THEANO".
# The deep learning framework stimulated me and made me write codes.
# I'd like to say thank you to Theano supporting team.
#
import os
@JaeDukSeo
JaeDukSeo / nn.py
Created October 30, 2017 00:08 — forked from ottokart/nn.py
3-layer neural network example with dropout in 2nd layer
# Tiny example of 3-layer nerual network with dropout in 2nd hidden layer
# Output layer is linear with L2 cost (regression model)
# Hidden layer activation is tanh
import numpy as np
n_epochs = 100
n_samples = 100
n_in = 10
n_hidden = 5
@JaeDukSeo
JaeDukSeo / README.md
Created April 28, 2017 04:05 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@JaeDukSeo
JaeDukSeo / README-Template.md
Created March 11, 2017 01:58 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites