Instructions to use plimb/gladios-tiny.story-0.1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use plimb/gladios-tiny.story-0.1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="plimb/gladios-tiny.story-0.1B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("plimb/gladios-tiny.story-0.1B") model = AutoModelForCausalLM.from_pretrained("plimb/gladios-tiny.story-0.1B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use plimb/gladios-tiny.story-0.1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "plimb/gladios-tiny.story-0.1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "plimb/gladios-tiny.story-0.1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/plimb/gladios-tiny.story-0.1B
- SGLang
How to use plimb/gladios-tiny.story-0.1B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "plimb/gladios-tiny.story-0.1B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "plimb/gladios-tiny.story-0.1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "plimb/gladios-tiny.story-0.1B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "plimb/gladios-tiny.story-0.1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use plimb/gladios-tiny.story-0.1B with Docker Model Runner:
docker model run hf.co/plimb/gladios-tiny.story-0.1B
gladios-tiny.story-0.1B
๐ง Overview
gladios-tiny.story-0.1B is a decoder-only Transformer (GPT-2-style architecture, 124M / 0.1B
parameters) trained from scratch on the full TinyStories
dataset (2.1 million children's stories, ~470M tokens).
The model uses the GPT-2 tokenizer (50,257-token vocabulary) and generates short, coherent stories in English, in the style of the training data.
๐ Try it without installing anything: Gradio demo (ZeroGPU) ๐ Full training code: github.com/plimb-ai/gladios-tiny-story
๐๏ธ Architecture
| Type | Decoder-only Transformer (GPT-2 architecture) |
| Parameters | ~124M (0.1B) |
| Layers | 12 |
| Attention heads | 12 |
| Embedding dim | 768 |
| Context length | 512 tokens |
| Tokenizer | GPT-2 (tiktoken / 50,257-token vocab) |
| Weights | safetensors |
๐ Usage
from transformers import pipeline
gen = pipeline("text-generation", model="plimb/gladios-tiny.story-0.1B")
print(gen(
"Once upon a time",
max_new_tokens=200,
do_sample=True,
temperature=0.8,
top_k=50,
)[0]["generated_text"])
Or directly with AutoModelForCausalLM:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained("plimb/gladios-tiny.story-0.1B")
tok = AutoTokenizer.from_pretrained("plimb/gladios-tiny.story-0.1B")
ids = tok("Once upon a time", return_tensors="pt").input_ids
out = model.generate(ids, max_new_tokens=200, do_sample=True, temperature=0.8, top_k=50,
pad_token_id=tok.eos_token_id)
print(tok.decode(out[0], skip_special_tokens=True))
๐ Training data
- Dataset: roneneldan/TinyStories (full
trainsplit) - Tokenizer: GPT-2, with each story separated by the special
<|endoftext|>token - Trained on the entire dataset (no subsampling)
โ ๏ธ Limitations
- Only writes short children's stories, in English
- No general world knowledge, no instruction-following, no conversational ability
- May hallucinate or lose coherence on prompts far outside the TinyStories style
๐ License
MIT
- Downloads last month
- 187