Downloads · 30 days
34
29% of all-time downloads
agentlans/pythia-14m-sentences
pythia-14m-sentences is a text generation model from agentlans. 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.
This model is a fine-tuned version of the Pythia-14M language model, optimized for generating high-quality English sentences. It builds upon the base model agentlans/pythia-14m-finewebedu-sentences and has been furthe…
Downloads · 30 days
34
29% of all-time downloads
All-time downloads
118
Public
Parameters
14.1M
56.3 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors56.3 MB · 94%
From the Hugging Face model README
This model is a fine-tuned version of the Pythia-14M language model, optimized for generating high-quality English sentences. It builds upon the base model agentlans/pythia-14m-finewebedu-sentences and has been further trained on a curated dataset of well-formed English sentences agentlans/high-quality-english-sentences.
The model is based on the Pythia-14M architecture, which is a relatively compact language model. It has been fine-tuned specifically for generating (mostly) grammatically correct and coherent English sentences across a variety of topics and styles.
This model is designed for:
Limitations:
The model was fine-tuned on a combination of datasets:
For the composition and preprocessing of the training data, see agentlans/high-quality-english-sentences.
To generate 10 random sentences starting from an empty string on a CUDA device:
from transformers import pipeline, set_seed
generator = pipeline('text-generation', model='agentlans/pythia-14m-sentences', device='cuda')
set_seed(1234)
results = generator("", max_length=100, num_return_sequences=10, do_sample=True)
for x in results:
print(x['generated_text'])
Output:
The most common cause of the number of diseases is the common cause of death.
And there are many people in the war.
The average household income is 35.5 percent.
He was the most influential theologians of the country in this world.
On the other hand, the students will be able to learn the value of the current and the time.
However, the effect of the study would be greater than that of a drug-related drug drug.
To understand today, our nation's largest international commitment to the use of new technology and technology across the country.
On Sunday, the UK was first held in the state of the Australian, where a foreign trade union was used since the first year.
I've said that the program is most effective in education in the middle of the world.
So a year, it is important to identify a community where a student has a disability.
To let the model continue the sentence:
results = generator("The meaning of life is", max_length=100, num_return_sequences=10, do_sample=True)
for x in results:
print(x['generated_text'])
Output:
The meaning of life is one of the most extraordinary stories of the great world, and some of the most brilliant examples of the world of science.
The meaning of life is to develop.
The meaning of life is to the person, or to make it a personal impression of what is the case for the reader.
The meaning of life is no longer the most important concept of the human language.
The meaning of life is the form of a personal or personal character.
The meaning of life is the world's real and our future.
The meaning of life is the true one of the nation's largest historical experiences.
The meaning of life is the basis of the Church's first, the church of the Holy Spirit, and a living faith.
The meaning of life is that the law requires that the truth be lost.
The meaning of life is the best reason for the poor and poor economy.
The model was trained using the following hyperparameters:
On the evaluation set, the model achieved:
As with any text generation model, users should be aware of potential biases in the training data that may be reflected in the model's outputs. The model should not be used to generate or propagate harmful content.