Instructions to use maelie-labs/reckoner-1.4b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maelie-labs/reckoner-1.4b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="maelie-labs/reckoner-1.4b-base", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("maelie-labs/reckoner-1.4b-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use maelie-labs/reckoner-1.4b-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "maelie-labs/reckoner-1.4b-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "maelie-labs/reckoner-1.4b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/maelie-labs/reckoner-1.4b-base
- SGLang
How to use maelie-labs/reckoner-1.4b-base 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 "maelie-labs/reckoner-1.4b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "maelie-labs/reckoner-1.4b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "maelie-labs/reckoner-1.4b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "maelie-labs/reckoner-1.4b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use maelie-labs/reckoner-1.4b-base with Docker Model Runner:
docker model run hf.co/maelie-labs/reckoner-1.4b-base
Reckoner-1.4B-Base
Reckoner-1.4B-Base is the pretrained base model of Reckoner-1.4B from Maelie Labs, trained from scratch on 31,501,320,192 tokens of pretraining, context extension and cooldown, before any SFT or post-training.
It has 1,446,786,048 parameters in 20 layers: 14 GDN-2 layers and 6 full-attention layers near both ends. GDN-2 is our gated delta-rule linear-attention layer, which keeps a fixed-size state instead of a cache that grows with the input. Its trained context length is 65,536 tokens.
Use maelie-labs/reckoner-1.4b for chat and tool use. This repository is for research and fine-tuning.
Evaluations
| Evaluation | Result |
|---|---|
| Bits per byte on 500 held-out FineWeb-Edu documents | 0.8288 |
| Bits per byte on 2,000 held-out documents (web, math, code, logic) | 0.6780 |
| Passkey retrieval at 32K tokens | 50/50 |
| Passkey retrieval at 64K tokens | 50/50 |
| Multi-key recall at 32K tokens | 33/50 |
| Multi-key recall at 64K tokens | 13/50 |
The long-context rows use 50 prompts per length, run directly on the base model. The post-trained model's long-context check is a different, smaller test: one passkey prompt per length, through the harness.
Loading with Transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("maelie-labs/reckoner-1.4b-base", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
"maelie-labs/reckoner-1.4b-base", trust_remote_code=True, dtype=torch.bfloat16
).eval()
Limitations
- English only. It was pretrained mostly on English text.
- Weak multi-key recall at 64K. It recalls 13 of 50 multi-key prompts at 64K tokens, against 33 of 50 at 32K.
- Not tuned for chat or tools. Use
maelie-labs/reckoner-1.4bfor instruction following and tool use.
License
Apache-2.0. Software and data attributions are in NOTICE, and the training recipe is in TRAINING.md.
- Downloads last month
- 6