Downloads · 30 days
158
41% of all-time downloads
RichardErkhov/segestic_-_Tinystories-gpt-0.1-3m-4bits
segestic_-_Tinystories-gpt-0.1-3m-4bits 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
158
41% of all-time downloads
All-time downloads
385
Public
Parameters
3.8M
7 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7 MB · 67%
How the weights are stored.
F163.4M · 89%
From the Hugging Face model README
Quantization made by Richard Erkhov.
Tinystories-gpt-0.1-3m - bnb 4bits
datasets:
from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("segestic/Tinystories-gpt-0.1-3m")
model = AutoModelForCausalLM.from_pretrained("segestic/Tinystories-gpt-0.1-3m")
prompt = "Once upon a time there was"
input_ids = tokenizer.encode(prompt, return_tensors="pt")
output = model.generate(input_ids, max_length = 1000, num_beams=1)
output_text = tokenizer.decode(output[0], skip_special_tokens=True)
print(output_text)
from transformers import pipeline
pipe = pipeline("text-generation", model="segestic/Tinystories-gpt-0.1-3m")
prompt = "where is the little girl"
output = pipe(prompt, max_length=1000, num_beams=1)
generated_text = output[0]['generated_text']
print(generated_text)