Instructions to use nthngdy/cplm-baselines-1.7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nthngdy/cplm-baselines-1.7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nthngdy/cplm-baselines-1.7B")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nthngdy/cplm-baselines-1.7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nthngdy/cplm-baselines-1.7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nthngdy/cplm-baselines-1.7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nthngdy/cplm-baselines-1.7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nthngdy/cplm-baselines-1.7B
- SGLang
How to use nthngdy/cplm-baselines-1.7B 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 "nthngdy/cplm-baselines-1.7B" \ --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": "nthngdy/cplm-baselines-1.7B", "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 "nthngdy/cplm-baselines-1.7B" \ --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": "nthngdy/cplm-baselines-1.7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nthngdy/cplm-baselines-1.7B with Docker Model Runner:
docker model run hf.co/nthngdy/cplm-baselines-1.7B
Vanilla 1.7B baselines for Copy-Paste Language Models
1.7B-parameter vanilla language models used as baselines in the paper Copy-Paste Language Models (Nathan Godey & Yoav Artzi, Cornell University). [Paper: TODO arXiv link]
The Copy-Paste counterparts (CPLMs), trained with the exact same recipe, are available at nthngdy/cplm-1.7B.
Checkpoints
Each model is stored on its own branch. Three backbones are available:
| Backbone | Description |
|---|---|
full |
Full attention in all 24 layers |
hybrid |
3 sliding-window (w=256) layers for every full-attention layer |
sw |
Sliding-window attention (w=256) in all layers |
The final checkpoints (200B tokens, step 95,000, after LR cooldown) are on branches {backbone} and {backbone}_200B.
For hybrid and sw, intermediate checkpoints taken every 5,000 steps (before LR cooldown) are available as {backbone}_{tokens}B: 11B, 21B, 32B, 42B, 53B, 63B, 74B, 84B, 95B, 105B, 116B, 126B, 137B, 147B, 158B, 168B, 179B and 189B. Token counts are rounded up (512 sequences × 4,096 tokens per step).
SFT checkpoints
Each final checkpoint was also fine-tuned on Tulu-3 (sequences of up to 16k tokens, LR 1e-4, 12,138 steps). These checkpoints are on branches {backbone}_sft and {backbone}_200B_sft, which point to the same commit. They include a chat template. Full and Hybrid SFT models were fine-tuned with YaRN (×4).
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "nthngdy/cplm-baselines-1.7B"
tok = AutoTokenizer.from_pretrained(repo, revision="full")
model = AutoModelForCausalLM.from_pretrained(repo, revision="full")
ids = tok("The capital of France is", return_tensors="pt").input_ids
print(tok.decode(model.generate(ids, max_new_tokens=32)[0]))
Training
- Architecture: SmolLM3 with 24 layers, hidden size 2,048, 32 heads, tied embeddings and a 49,152-token vocabulary.
- Data: 200B tokens of FineWeb-Edu, 4,096-token sequences.
- Recipe: SmolLM2 recipe with AdamW, peak LR 5e-4, WSD schedule (2,000 warmup steps, 4,750 cooldown steps) and batch size 512.
Citation
@article{godey2026cplm,
title = {Copy-Paste Language Models},
author = {Godey, Nathan and Artzi, Yoav},
journal = {TODO},
year = {2026}
}