Run this model with HF Jobs
Run nthngdy/cplm-baselines-360M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/nthngdy/cplm-baselines-360M. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/nthngdy/cplm-baselines-360M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/nthngdy/cplm-baselines-360M. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/nthngdy/cplm-baselines-360M. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use nthngdy/cplm-baselines-360M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nthngdy/cplm-baselines-360M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nthngdy/cplm-baselines-360M")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nthngdy/cplm-baselines-360M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nthngdy/cplm-baselines-360M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nthngdy/cplm-baselines-360M" # 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-360M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nthngdy/cplm-baselines-360M
- SGLang
How to use nthngdy/cplm-baselines-360M 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-360M" \ --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-360M", "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-360M" \ --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-360M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nthngdy/cplm-baselines-360M with Docker Model Runner:
docker model run hf.co/nthngdy/cplm-baselines-360M
Vanilla 360M baselines for Copy-Paste Language Models
360M-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-360M.
Checkpoints
Each model is stored on its own branch. Three backbones are available:
| Backbone | Description |
|---|---|
full |
Full attention in all 32 layers |
hybrid |
3 sliding-window (w=256) layers for every full-attention layer |
sw |
Sliding-window attention (w=256) in all layers |
These are the final checkpoints (20B tokens, step 19,000, after the LR cooldown).
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "nthngdy/cplm-baselines-360M"
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 32 layers, hidden size 960, 15 query / 5 key-value heads, tied embeddings and a 49,152-token vocabulary.
- Data: 20B tokens of FineWeb-Edu, 2,048-token sequences.
- Recipe: AdamW (betas 0.9/0.95, weight decay 0.01), peak LR 3e-3, WSD schedule (500 warmup steps, 1,900 cooldown steps, 19,000 steps in total) and batch size 512.
Citation
@article{godey2026cplm,
title = {Copy-Paste Language Models},
author = {Godey, Nathan and Artzi, Yoav},
journal = {TODO},
year = {2026}
}