Downloads · 30 days
95
5% of all-time downloads
RichardErkhov/TomData_-_GPT2-review-gguf
TomData_-_GPT2-review-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
95
5% of all-time downloads
All-time downloads
1.8K
Public
Repo size
4.4 GB
Likes
0
Public
Click a slice to open those files.
.gguf5.2 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
GPT2-review - GGUF
| Name | Quant method | Size |
|---|---|---|
| GPT2-review.Q2_K.gguf | Q2_K | 0.17GB |
| GPT2-review.Q3_K_S.gguf | Q3_K_S | 0.19GB |
| GPT2-review.Q3_K.gguf | Q3_K | 0.21GB |
| GPT2-review.Q3_K_M.gguf | Q3_K_M | 0.21GB |
| GPT2-review.Q3_K_L.gguf | Q3_K_L | 0.23GB |
| GPT2-review.IQ4_XS.gguf | IQ4_XS | 0.22GB |
| GPT2-review.Q4_0.gguf | Q4_0 | 0.23GB |
| GPT2-review.IQ4_NL.gguf | IQ4_NL | 0.23GB |
| GPT2-review.Q4_K_S.gguf | Q4_K_S | 0.23GB |
| GPT2-review.Q4_K.gguf | Q4_K | 0.25GB |
| GPT2-review.Q4_K_M.gguf | Q4_K_M | 0.25GB |
| GPT2-review.Q4_1.gguf | Q4_1 | 0.25GB |
| GPT2-review.Q5_0.gguf | Q5_0 | 0.27GB |
| GPT2-review.Q5_K_S.gguf | Q5_K_S | 0.27GB |
| GPT2-review.Q5_K.gguf | Q5_K | 0.29GB |
| GPT2-review.Q5_K_M.gguf | Q5_K_M | 0.29GB |
| GPT2-review.Q5_1.gguf | Q5_1 | 0.29GB |
| GPT2-review.Q6_K.gguf | Q6_K | 0.32GB |
| GPT2-review.Q8_0.gguf | Q8_0 | 0.41GB |
datasets:
Model Description: This model is a checkpoint of GPT-2 Medium the 355M parameter version of GPT-2, a transformer-based language model created and released by OpenAI. The model is a further pretrained model on a causal language modeling (CLM) objective with English Amazon Product Reviews from the Fashion category.
Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility:
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='TomData/GPT2-review')
>>> set_seed(42)
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
Here is how to use this model to get the features of a given text in PyTorch:
tokenizer = AutoTokenizer.from_pretrained("TomData/GPT2-review")
model = AutoModelForCausalLM.from_pretrained("TomData/GPT2-review")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
and in TensorFlow:
tokenizer = AutoTokenizer.from_pretrained("TomData/GPT2-review")
model = AutoModelForCausalLM.from_pretrained("TomData/GPT2-review")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
This model is further pretrained to generate artificial product reviews. This can be usefull for:
The model is further pretrained on the Amazion Review Dataset from McAuley-Lab. For training only the reviews related to the Amazon Fashion category are used. See:
dataset = load_dataset("McAuley-Lab/Amazon-Reviews-2023", "raw_review_Amazon_Fashion", trust_remote_code=True)