Downloads · 30 days
29
7% of all-time downloads
kurogane/tinystorys_multiscreen_vocab768
tinystorys_multiscreen_vocab768 is a text generation model from kurogane. 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 an unofficial experimental pre-traind model of multiscreen with TinyStories datasets. It has been trained using TRL.
Downloads · 30 days
29
7% of all-time downloads
All-time downloads
414
Public
Parameters
14.9M
59.5 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors59.5 MB · 100%
From the Hugging Face model README
This model is an unofficial experimental pre-traind model of multiscreen with TinyStories datasets. It has been trained using TRL.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "kurogane/tinystorys_multiscreen_vocab768"
cache_dir = r"/media/kurogane/backup/cache"
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
cache_dir=cache_dir,
)
model.to("cuda:0")
tokenizer = AutoTokenizer.from_pretrained(
model_id,
padding_side="left",
cache_dir=cache_dir,
)
model_inputs = tokenizer(["A list of colors: red, blue"], return_tensors="pt").to(model.device)
generated_ids = model.generate(**model_inputs)
s_output = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(s_output)
A list of colors: red, blue, yellow, green, orange. All the people
This model was trained with SFT.
This model is an experimental tiny language model trained on TinyStories using a Multiscreen-style architecture inspired by the paper Screening Is Enough by Ken M. Nakanishi.
This model implementation was developed as an experimental Hugging Face Transformers port, with reference to the unofficial PyTorch implementation dieOD/multiscreen-pytorch. This model is not an official implementation released by the author of the Multiscreen paper.
The training data is based on the TinyStories dataset by Ronen Eldan and Yuanzhi Li.