stevhliu / astroGPT

huggingface.co
Total runs: 16
24-hour runs: 0
7-day runs: 5
30-day runs: -7
Model's Last Updated: May 23 2021
text-generation

Introduction of astroGPT

Model Details of astroGPT

astroGPT 🪐

Model description

This is a GPT-2 model fine-tuned on Western zodiac signs. For more information about GPT-2, take a look at 🤗 Hugging Face's GPT-2 model card . You can use astroGPT to generate a daily horoscope by entering the current date.

How to use

To use this model, simply enter the current date like so Mon DD, YEAR :

from transformers import AutoTokenizer, AutoModelWithLMHead

tokenizer = AutoTokenizer.from_pretrained("stevhliu/astroGPT")
model = AutoModelWithLMHead.from_pretrained("stevhliu/astroGPT")

input_ids = tokenizer.encode('Sep 03, 2020', return_tensors='pt').to('cuda')

sample_output = model.generate(input_ids,
                               do_sample=True, 
                               max_length=75,
                               top_k=20, 
                               top_p=0.97)
                                
print(sample_output)
Limitations and bias

astroGPT inherits the same biases that affect GPT-2 as a result of training on a lot of non-neutral content on the internet. The model does not currently support zodiac sign-specific generation and only returns a general horoscope. While the generated text may occasionally mention a specific zodiac sign, this is due to how the horoscopes were originally written by it's human authors.

Data

The data was scraped from Horoscope.com and trained on 4.7MB of text. The text was collected from four categories (daily, love, wellness, career) and span from 09/01/19 to 08/01/2020. The archives only store horoscopes dating a year back from the current date.

Training and results

The text was tokenized using the fast GPT-2 BPE tokenizer . It has a vocabulary size of 50,257 and sequence length of 1024 tokens. The model was trained with on one of Google Colaboratory's GPU's for approximately 2.5 hrs with fastai's learning rate finder, discriminative learning rates and 1cycle policy. See table below for a quick summary of the training procedure and results.

dataset size epochs lr training time train_loss valid_loss perplexity
5.9MB 32 slice(1e-7,1e-5) 2.5 hrs 2.657170 2.642387 14.046692

Runs of stevhliu astroGPT on huggingface.co

16
Total runs
0
24-hour runs
0
3-day runs
5
7-day runs
-7
30-day runs

More Information About astroGPT huggingface.co Model

astroGPT huggingface.co

astroGPT huggingface.co is an AI model on huggingface.co that provides astroGPT's model effect (), which can be used instantly with this stevhliu astroGPT model. huggingface.co supports a free trial of the astroGPT model, and also provides paid use of the astroGPT. Support call astroGPT model through api, including Node.js, Python, http.

stevhliu astroGPT online free

astroGPT huggingface.co is an online trial and call api platform, which integrates astroGPT's modeling effects, including api services, and provides a free online trial of astroGPT, you can try astroGPT online for free by clicking the link below.

stevhliu astroGPT online free url in huggingface.co:

https://huggingface.co/stevhliu/astroGPT

astroGPT install

astroGPT is an open source model from GitHub that offers a free installation service, and any user can find astroGPT on GitHub to install. At the same time, huggingface.co provides the effect of astroGPT install, users can directly use astroGPT installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

astroGPT install url in huggingface.co:

https://huggingface.co/stevhliu/astroGPT

Url of astroGPT

astroGPT huggingface.co Url

Provider of astroGPT huggingface.co

stevhliu
ORGANIZATIONS

Other API from stevhliu

huggingface.co

Total runs: 2
Run Growth: -3
Growth Rate: -150.00%
Updated:May 16 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 19 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 22 2022