Run this model with HF Jobs
Run ParScale/ParScale-1.8B-P4 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/ParScale/ParScale-1.8B-P4. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/ParScale/ParScale-1.8B-P4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/ParScale/ParScale-1.8B-P4. 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/ParScale/ParScale-1.8B-P4 with Transformers and bitsandbytes. 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 ParScale/ParScale-1.8B-P4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ParScale/ParScale-1.8B-P4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ParScale/ParScale-1.8B-P4", 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("ParScale/ParScale-1.8B-P4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ParScale/ParScale-1.8B-P4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ParScale/ParScale-1.8B-P4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ParScale/ParScale-1.8B-P4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ParScale/ParScale-1.8B-P4
- SGLang
How to use ParScale/ParScale-1.8B-P4 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 "ParScale/ParScale-1.8B-P4" \ --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": "ParScale/ParScale-1.8B-P4", "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 "ParScale/ParScale-1.8B-P4" \ --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": "ParScale/ParScale-1.8B-P4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ParScale/ParScale-1.8B-P4 with Docker Model Runner:
docker model run hf.co/ParScale/ParScale-1.8B-P4
Parallel Scaling Law for Language Model
Yet Another Scaling Law beyond Parameters and Inference Time Scaling
Checkpoints
All the released checkpoints were trained on public datasets and are for academic use only.
β¨ are our recommendation for strong models.
Base models for scaling training data to 1T tokens
These models demonstrate strong competitiveness among existing small models, including SmolLM, gemma, and Llama-3.2 (see Table 4 for details).
| Model | Description | Download |
|---|---|---|
| ParScale-1.8B-P1 | β¨ Baseline $P=1$ | π€ ParScale/ParScale-1.8B-P1 |
| ParScale-1.8B-P2 | β¨ ParScale $P=2$ | π€ ParScale/ParScale-1.8B-P2 |
| ParScale-1.8B-P4 | β¨ ParScale $P=4$ | π€ ParScale/ParScale-1.8B-P4 |
| ParScale-1.8B-P8 | β¨ ParScale $P=8$ | π€ ParScale/ParScale-1.8B-P8 |
Instruct models for scaling training data to 1T tokens
We post-trained the aforementioned base model on SmolTalk-1M to enable conversational capabilities.
| Model | Description | Download |
|---|---|---|
| ParScale-1.8B-P1-Inst | β¨ Baseline $P=1$ | π€ ParScale/ParScale-1.8B-P1-Inst |
| ParScale-1.8B-P2-Inst | β¨ ParScale $P=2$ | π€ ParScale/ParScale-1.8B-P2-Inst |
| ParScale-1.8B-P4-Inst | β¨ ParScale $P=4$ | π€ ParScale/ParScale-1.8B-P4-Inst |
| ParScale-1.8B-P8-Inst | β¨ ParScale $P=8$ | π€ ParScale/ParScale-1.8B-P8-Inst |
Continual Pretraining Qwen-2.5-3B
We froze the parameters of Qwen-2.5-3B and only fine-tuned the newly introduced parameters on Stack-V2-Python. Since the following models share the same backbone parameters as Qwen-2.5-3B, they have the potential for dynamic parscale: switching P to adapt model capabilities during inference.
| Model | Description | Download |
|---|---|---|
| ParScale-Qwen-3B-P2-Python | β¨ ParScale $P=2$ | π€ ParScale/ParScale-Qwen-3B-P2-Python |
| ParScale-Qwen-3B-P4-Python | β¨ ParScale $P=4$ | π€ ParScale/ParScale-Qwen-3B-P4-Python |
| ParScale-Qwen-3B-P8-Python | β¨ ParScale $P=8$ | π€ ParScale/ParScale-Qwen-3B-P8-Python |
- For full pretraining on Stack-V2-Python
| Model | Description | Download |
|---|---|---|
| ParScale-QwenInit-3B-P1-Python | Baseline $P=1$ | π€ ParScale/ParScale-QwenInit-3B-P1-Python |
| ParScale-QwenInit-3B-P2-Python | ParScale $P=2$ | π€ ParScale/ParScale-QwenInit-3B-P2-Python |
| ParScale-QwenInit-3B-P4-Python | ParScale $P=4$ | π€ ParScale/ParScale-QwenInit-3B-P4-Python |
| ParScale-QwenInit-3B-P8-Python | ParScale $P=8$ | π€ ParScale/ParScale-QwenInit-3B-P8-Python |
- For full pretraining on Pile
| Model | Description | Download |
|---|---|---|
| ParScale-QwenInit-3B-P1-Pile | Baseline $P=1$ | π€ ParScale/ParScale-QwenInit-3B-P1-Pile |
| ParScale-QwenInit-3B-P2-Pile | ParScale $P=2$ | π€ ParScale/ParScale-QwenInit-3B-P2-Pile |
| ParScale-QwenInit-3B-P4-Pile | ParScale $P=4$ | π€ ParScale/ParScale-QwenInit-3B-P4-Pile |
| ParScale-QwenInit-3B-P8-Pile | ParScale $P=8$ | π€ ParScale/ParScale-QwenInit-3B-P8-Pile |
Checkpoints Used to Fit the Scaling Law
Download link: https://huggingface.co/ParScale/ParScale-{size}-{P}-{dataset}
- {size}: model size, from {0.7B, 0.9B, 1.3B, 1.8B, 3B, 4.7B}
- {P}: number of parallels, from {P1, P2, P4, P8}
- {dataset}: training dataset, from {Python, Pile}
- Downloads last month
- 18