TODO: Write a project description
TODO: Describe the installation process
""" | |
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() |
#!/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 |
#!/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 | |
# |
# | |
# 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 |
# 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 |