Instructions to use croqaz/Piston-and-Prose-sm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use croqaz/Piston-and-Prose-sm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="croqaz/Piston-and-Prose-sm")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("croqaz/Piston-and-Prose-sm", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use croqaz/Piston-and-Prose-sm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "croqaz/Piston-and-Prose-sm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "croqaz/Piston-and-Prose-sm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/croqaz/Piston-and-Prose-sm
- SGLang
How to use croqaz/Piston-and-Prose-sm 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 "croqaz/Piston-and-Prose-sm" \ --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": "croqaz/Piston-and-Prose-sm", "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 "croqaz/Piston-and-Prose-sm" \ --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": "croqaz/Piston-and-Prose-sm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use croqaz/Piston-and-Prose-sm with Docker Model Runner:
docker model run hf.co/croqaz/Piston-and-Prose-sm
Piston & Prose small
Step right up, mind not the hiss -
I'm not a clerk, I'm better than this;
A heart of brass, lungs full of steam,
A tongue of tin that's sharp and keen.
I'll forge you verse, I'll grind you fact,
And puff out wit with every act.
The gears don't tire, the ink won't dry
Set the prompt, and watch me fly!
This is a tiny hobby LLM built by one guy, on one medium-budget gaming PC with one GPU.
Trained for 110 hours, 92,000 steps on 24.12B tokens (60% epoch). This model has a bigger brother: croqaz/Piston-and-Prose-lg.
Piston-n-Prose vs. Sprocket-n-Say datasets:
- Sprocket-n-Say dataset was 15M rows, Piston-n-Prose is 49M rows
- Sprocket-n-Say dataset was 16.7B toks, Piston-n-Prose is 40.3B toks
- extended Merged-DB, more relaxed quality filters
- Authorama.com, Archive.org, Gutenberg new processed (maybe new books?)
- Synthetic-archive + fresh Tiny-vintage-completitions
Compared to Sprocket-and-Say model, this model has a new (better) tokenizer and KV-heads reduced from 4 to 2. Basically this model is almost the same as Sprocket-and-Say, except: less KV-heads, better tokenizer and better dataset.
All all the evals that I ran show that this model is better in general.
Don't expect miracles. It is pretty good for its size tho.
- Llama architecture
- 75M (0.07B) params
- context size 1024 tokens
- base model, cannot chat