Downloads · 30 days
34
5% of all-time downloads
suarkadipa/GPT-2-finetuned-papers
GPT-2-finetuned-papers is a text generation model from suarkadipa. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
probably proofread and complete it, then remove this comment. --
Downloads · 30 days
34
5% of all-time downloads
All-time downloads
750
Public
Repo size
655 MB
Likes
0
Public
Click a slice to open those files.
.h5328 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of distilgpt2 on an CShorten/ML-ArXiv-Papers dataset. Based on https://python.plainenglish.io/i-fine-tuned-gpt-2-on-100k-scientific-papers-heres-the-result-903f0784fe65 It achieves the following results on the evaluation set:
More information needed
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer_fromhub = AutoTokenizer.from_pretrained("suarkadipa/GPT-2-finetuned-papers")
model_fromhub = AutoModelForCausalLM.from_pretrained("suarkadipa/GPT-2-finetuned-papers", from_tf=True)
text_generator = pipeline(
"text-generation",
model=model_fromhub,
tokenizer=tokenizer_fromhub,
framework="tf",
max_new_tokens=3000
)
// change with your text
test_sentence = "the role of recommender systems"
res=text_generator(test_sentence)[0]["generated_text"].replace("\n", " ")
res
More information needed
The following hyperparameters were used during training:
| Train Loss | Validation Loss | Epoch |
|---|---|---|
| 2.4225 | 2.2164 | 0 |