Downloads · 30 days
47
2% of all-time downloads
RichardErkhov/AIGym_-_TinyGPT2-81M-gguf
AIGym_-_TinyGPT2-81M-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
47
2% of all-time downloads
All-time downloads
2.7K
Public
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.gguf1.8 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
TinyGPT2-81M - GGUF
| Name | Quant method | Size |
|---|---|---|
| TinyGPT2-81M.Q2_K.gguf | Q2_K | 0.06GB |
| TinyGPT2-81M.IQ3_XS.gguf | IQ3_XS | 0.06GB |
| TinyGPT2-81M.IQ3_S.gguf | IQ3_S | 0.06GB |
| TinyGPT2-81M.Q3_K_S.gguf | Q3_K_S | 0.06GB |
| TinyGPT2-81M.IQ3_M.gguf | IQ3_M | 0.07GB |
| TinyGPT2-81M.Q3_K.gguf | Q3_K | 0.07GB |
| TinyGPT2-81M.Q3_K_M.gguf | Q3_K_M | 0.07GB |
| TinyGPT2-81M.Q3_K_L.gguf | Q3_K_L | 0.07GB |
| TinyGPT2-81M.IQ4_XS.gguf | IQ4_XS | 0.07GB |
| TinyGPT2-81M.Q4_0.gguf | Q4_0 | 0.07GB |
| TinyGPT2-81M.IQ4_NL.gguf | IQ4_NL | 0.07GB |
| TinyGPT2-81M.Q4_K_S.gguf | Q4_K_S | 0.07GB |
| TinyGPT2-81M.Q4_K.gguf | Q4_K | 0.08GB |
| TinyGPT2-81M.Q4_K_M.gguf | Q4_K_M | 0.08GB |
| TinyGPT2-81M.Q4_1.gguf | Q4_1 | 0.08GB |
| TinyGPT2-81M.Q5_0.gguf | Q5_0 | 0.08GB |
| TinyGPT2-81M.Q5_K_S.gguf | Q5_K_S | 0.08GB |
| TinyGPT2-81M.Q5_K.gguf | Q5_K | 0.09GB |
| TinyGPT2-81M.Q5_K_M.gguf | Q5_K_M | 0.09GB |
| TinyGPT2-81M.Q5_1.gguf | Q5_1 | 0.09GB |
| TinyGPT2-81M.Q6_K.gguf | Q6_K | 0.09GB |
| TinyGPT2-81M.Q8_0.gguf | Q8_0 | 0.12GB |
This tiny model is an 81 million perimeter GPT2 based model it was trained from scratch on the 3060 TI. it uses the GPT2 tokenizer from the GPT2 repo here on hugging face.
We are training our own tokenizer from scratch and will release a version 2 of this trained on even more data sets once that is complete.
This model is in float 32 but will be converted shortly to float16 in bfloat16.
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model.
Inference Code:
import torch
from transformers import GPT2LMHeadModel, GPT2Tokenizer
# Load fine-tuned GPT-2 model and tokenizer
model = GPT2LMHeadModel.from_pretrained("AIGym/TinyGPT2-81M-colab") # or change the name to the checkpoint if you wanted to try them out
tokenizer = GPT2Tokenizer.from_pretrained("AIGym/TinyGPT2-81M-colab") # use the same as the one above unless you know what you are doing
# Example prompts
prompts = [
"Artificial intelligence is",
"The future of humanity depends on",
"In a galaxy far, far away, there lived",
"To be or not to be, that is",
"Once upon a time, there was a"
]
# Function to generate text based on a prompt
def generate_text(prompt, max_length=120, temperature=0.3):
input_ids = tokenizer.encode(prompt, return_tensors="pt")
attention_mask = torch.ones(input_ids.shape, dtype=torch.long)
output = model.generate(input_ids, attention_mask=attention_mask, max_length=max_length, temperature=temperature, num_return_sequences=1)
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
return generated_text
# Generate and print completions for each prompt
for prompt in prompts:
completion = generate_text(prompt)
print("Prompt:", prompt)
print("Completion:", completion)
print()
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]