Instructions to use LocalWisdom/Penny-Alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LocalWisdom/Penny-Alpha with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LocalWisdom/Penny-Alpha", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LocalWisdom/Penny-Alpha", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LocalWisdom/Penny-Alpha with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LocalWisdom/Penny-Alpha" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LocalWisdom/Penny-Alpha", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LocalWisdom/Penny-Alpha
- SGLang
How to use LocalWisdom/Penny-Alpha 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 "LocalWisdom/Penny-Alpha" \ --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": "LocalWisdom/Penny-Alpha", "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 "LocalWisdom/Penny-Alpha" \ --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": "LocalWisdom/Penny-Alpha", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LocalWisdom/Penny-Alpha with Docker Model Runner:
docker model run hf.co/LocalWisdom/Penny-Alpha
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("LocalWisdom/Penny-Alpha", trust_remote_code=True, device_map="auto")Penny Alpha
A 59M-parameter base language model using the DeepSeek V4.1 Flash architecture, trained from scratch by LocalWisdom.
We believe the future of LLM is SLM and local-first, and that AI will be an integral part of everyday life. That needs a local-friendly suite. We are LocalWisdom, a suite of next-gen, local-friendly AI devkits and userkits. We believe the future relies on diversified, commoditized LLMs, and LocalWisdom is here to push that narrative.
Model details
| Key | Details |
|---|---|
| Parameters | 59M |
| Architecture | DeepSeek V4.1 Flash (MoE, sparse attention, Engram, hyper-connections) |
| Training data | 1B tokens of Ultra-FineWeb-L3 (English) |
| Training compute | 1x RTX 5060 Ti, 1 day 12 hours, about $5.64 |
| Context window | 8,192 tokens (trained length) |
| Type | Base model: no chat template, no instruction tuning |
| License | MIT |
The architecture supports a native context of 1M tokens, but Penny Alpha was only trained on sequences up to 8,192 tokens. Do not expect reliable behavior beyond that.
Other formats
- GGUF: LocalWisdom/Penny-Alpha-GGUF. Works directly with the latest llama.cpp.
How to use
Penny Alpha is a base model: it continues text and does not follow instructions. For the safetensors weights, use Transformers with trust_remote_code=True (the modeling code ships in this repo as model.py).
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "LocalWisdom/Penny-Alpha"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype=torch.float32).eval()
# Training documents were separated by EOS, so start the prompt with it.
prompt = tok.eos_token + "The history of the bicycle begins"
inputs = tok(prompt, add_special_tokens=False, return_tensors="pt")
with torch.no_grad():
out = model.generate(
**inputs,
max_new_tokens=200,
do_sample=True,
temperature=0.8,
top_k=50,
top_p=0.95,
repetition_penalty=1.1,
use_cache=False, # required: this implementation has no KV cache
)
print(tok.decode(out[0], skip_special_tokens=True))
Notes
- Prepend EOS. The tokenizer does not add it automatically. Without it the model starts mid-document and quality drops.
use_cache=Falseis required. There is no KV cache, so every new token re-runs the whole sequence. This is fine at 59M parameters.- Batching. The attention mask is ignored, so use batch size 1 or equal-length prompts without padding.
- Precision.
float32is the safest choice.bfloat16also loads, but results may differ slightly. - GPU is optional. The model is small enough to run on CPU. Add
.to("cuda")to the model and inputs if you have a GPU.
Limitations
- A 59M-parameter model trained on 1B tokens: expect fluent-looking but frequently repetitive or factually wrong text.
- English only, base model only, and no safety tuning.
- Multi-token prediction (DSpark/MTP) and vision components of the full architecture are not included.
Training
Pretrained from scratch on 1B tokens of Ultra-FineWeb-L3 (English), packed into 8,192-token windows, on a single RTX 5060 Ti.
- Downloads last month
- 453
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LocalWisdom/Penny-Alpha", trust_remote_code=True)