Downloads · 30 days
411
100% of all-time downloads
netsrik/deepj-tinystories
deepj-tinystories is a text generation model from netsrik. Use it when you need the model to write or continue text. It is set up for deepj. The card lists the license as mit.
An experimental 1,301,120-parameter language model trained with DeepJ. On 100 deterministic TinyStories validation windows (12800 tokens), loss was 2.182273 and perplexity was 8.866.
Downloads · 30 days
411
100% of all-time downloads
All-time downloads
411
Public
Repo size
5.2 MB
Likes
0
Public
Click a slice to open those files.
.dj5.2 MB · 99%
From the Hugging Face model README
An experimental 1,301,120-parameter language model trained with DeepJ. On 100 deterministic TinyStories validation windows (12800 tokens), loss was 2.182273 and perplexity was 8.866.
This compact language model was created with DeepJ and uses a DeepSeek-style Transformer architecture with 4 layers, a hidden size of 128, 4 attention heads, Q rank 64, KV rank 32 and a 2,048-token vocabulary.
It is not an exact implementation of DeepSeek V2, V3 or R1 and does not currently use an incremental KV cache.
The model.dj checkpoint and tokenizer.bpe files use DeepJ's versioned binary formats.
They are not directly loadable by the Python Transformers library.
Use DeepJ 0.8.0-alpha from Maven Central.
<dependency>
<groupId>io.github.kirstenali</groupId>
<artifactId>deepj</artifactId>
<version>0.8.0-alpha</version>
</dependency>
Download this repository's model.dj and tokenizer.bpe into downloaded-model. Imports are omitted below.
Path directory = Path.of("downloaded-model");
BPEModel bpe = BPEModelIO.load(directory.resolve("tokenizer.bpe"));
BPETokenizer tokenizer = new BPETokenizer(bpe);
DeepJPrismConfig config = new DeepJPrismConfig(
2048, 128, 128, 4, 4, 384, 64, 32, 0.2f, 1.0f);
DeepJPrism model = new DeepJPrism(config, 42L);
model.load(directory.resolve("model.dj"));
String text = TextGenerator.generate(model, tokenizer, config,
"Once upon a time", 80, 0.8f, 40, 2026L);
Trained for 10000 steps with batch size 1 and 128-token sequences on TinyStories, a synthetic English dataset licensed CDLA-Sharing-1.0. The BPE vocabulary was trained from a bounded sample of the training split.
Small experimental model trained only on synthetic children's stories. It may produce incorrect, repetitive, biased, or unsuitable text. It has not been evaluated for safety or downstream use and is not a general-purpose assistant.