Text Generation
Transformers
Safetensors
English
olmoe
Mixture of Experts
mixture-of-experts
causal-lm
distributed-training
decentralized-training
sparse-sync
conversational
Instructions to use zjr2000/SPES-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zjr2000/SPES-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="zjr2000/SPES-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("zjr2000/SPES-7B") model = AutoModelForCausalLM.from_pretrained("zjr2000/SPES-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use zjr2000/SPES-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zjr2000/SPES-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zjr2000/SPES-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zjr2000/SPES-7B
- SGLang
How to use zjr2000/SPES-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 "zjr2000/SPES-7B" \ --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": "zjr2000/SPES-7B", "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 "zjr2000/SPES-7B" \ --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": "zjr2000/SPES-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use zjr2000/SPES-7B with Docker Model Runner:
docker model run hf.co/zjr2000/SPES-7B
Add library_name and improve model card
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
- moe
|
| 5 |
- mixture-of-experts
|
|
@@ -8,46 +12,51 @@ tags:
|
|
| 8 |
- distributed-training
|
| 9 |
- decentralized-training
|
| 10 |
- sparse-sync
|
| 11 |
-
language:
|
| 12 |
-
- en
|
| 13 |
-
pipeline_tag: text-generation
|
| 14 |
---
|
| 15 |
|
| 16 |
# SPES-7B
|
| 17 |
|
| 18 |
-
SPES-7B is a pretrained
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
|
| 22 |
## Model Details
|
| 23 |
|
| 24 |
- **Model name:** SPES-7B
|
| 25 |
-
- **Model type:** Causal language model
|
| 26 |
- **Parameters:** 7B
|
|
|
|
| 27 |
- **Framework:** SPES
|
| 28 |
- **License:** Apache-2.0
|
| 29 |
|
| 30 |
-
##
|
| 31 |
|
| 32 |
-
|
| 33 |
-
- **Paper:** https://huggingface.co/papers/2602.11543
|
| 34 |
|
| 35 |
-
##
|
| 36 |
|
| 37 |
-
|
|
|
|
|
|
|
| 38 |
|
| 39 |
-
|
| 40 |
-
- research on MoE training and synchronization
|
| 41 |
-
- experimentation and evaluation of pretrained language models
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
## Citation
|
| 45 |
|
| 46 |
-
If you use this model, please cite the SPES paper
|
| 47 |
|
| 48 |
```bibtex
|
| 49 |
-
@article{
|
| 50 |
title={Pretraining A Large Language Model using Distributed GPUs: A Memory-Efficient Decentralized Paradigm},
|
| 51 |
author={Zhang, Jinrui and Xiao, Chaodong and Wu, Aoqi and Zhang, Xindong and Zhang, Lei},
|
|
|
|
| 52 |
year={2026}
|
| 53 |
-
}
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
license: apache-2.0
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
library_name: transformers
|
| 7 |
tags:
|
| 8 |
- moe
|
| 9 |
- mixture-of-experts
|
|
|
|
| 12 |
- distributed-training
|
| 13 |
- decentralized-training
|
| 14 |
- sparse-sync
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
# SPES-7B
|
| 18 |
|
| 19 |
+
SPES-7B is a 7B-parameter Mixture-of-Experts (MoE) Large Language Model pretrained using **SPES** (**SP**arse **E**xpert **S**ync), a memory-efficient decentralized training framework.
|
| 20 |
|
| 21 |
+
This model was introduced in the paper: [Pretraining A Large Language Model using Distributed GPUs: A Memory-Efficient Decentralized Paradigm](https://huggingface.co/papers/2602.11543).
|
| 22 |
+
|
| 23 |
+
**Authors:** Jinrui Zhang, Chaodong Xiao, Aoqi Wu, Xindong Zhang, Lei Zhang.
|
| 24 |
|
| 25 |
## Model Details
|
| 26 |
|
| 27 |
- **Model name:** SPES-7B
|
| 28 |
+
- **Model type:** Causal language model (MoE)
|
| 29 |
- **Parameters:** 7B
|
| 30 |
+
- **Architecture:** Olmoe
|
| 31 |
- **Framework:** SPES
|
| 32 |
- **License:** Apache-2.0
|
| 33 |
|
| 34 |
+
## Introduction
|
| 35 |
|
| 36 |
+
SPES (SParse Expert Sync) is designed for pretraining MoE LLMs across geographically distributed GPU nodes. It addresses memory and bandwidth constraints by training only a subset of experts per node, significantly lowering the individual memory footprint and eliminating the need for full-parameter transmission. SPES-7B achieves competitive performance with centrally trained models under similar computational budgets.
|
|
|
|
| 37 |
|
| 38 |
+
## Project Links
|
| 39 |
|
| 40 |
+
- **GitHub:** [zjr2000/SPES](https://github.com/zjr2000/SPES)
|
| 41 |
+
- **Paper (arXiv):** [2602.11543](https://arxiv.org/abs/2602.11543)
|
| 42 |
+
- **Model Collection:** [SPES Collection](https://huggingface.co/collections/zjr2000/spes)
|
| 43 |
|
| 44 |
+
## Intended Use
|
|
|
|
|
|
|
| 45 |
|
| 46 |
+
This model is intended for research on:
|
| 47 |
+
- Decentralized LLM pretraining paradigms.
|
| 48 |
+
- Mixture-of-Experts (MoE) training and synchronization.
|
| 49 |
+
- Evaluation of pretrained language models trained under constrained bandwidth conditions.
|
| 50 |
|
| 51 |
## Citation
|
| 52 |
|
| 53 |
+
If you use this model, please cite the SPES paper:
|
| 54 |
|
| 55 |
```bibtex
|
| 56 |
+
@article{zhang2026pretraining,
|
| 57 |
title={Pretraining A Large Language Model using Distributed GPUs: A Memory-Efficient Decentralized Paradigm},
|
| 58 |
author={Zhang, Jinrui and Xiao, Chaodong and Wu, Aoqi and Zhang, Xindong and Zhang, Lei},
|
| 59 |
+
journal={arXiv preprint arXiv:2602.11543},
|
| 60 |
year={2026}
|
| 61 |
+
}
|
| 62 |
+
```
|