Instructions to use rednote-hilab/dots.llm1.base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rednote-hilab/dots.llm1.base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rednote-hilab/dots.llm1.base") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rednote-hilab/dots.llm1.base") model = AutoModelForCausalLM.from_pretrained("rednote-hilab/dots.llm1.base") 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 rednote-hilab/dots.llm1.base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rednote-hilab/dots.llm1.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": "rednote-hilab/dots.llm1.base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rednote-hilab/dots.llm1.base
- SGLang
How to use rednote-hilab/dots.llm1.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 "rednote-hilab/dots.llm1.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": "rednote-hilab/dots.llm1.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 "rednote-hilab/dots.llm1.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": "rednote-hilab/dots.llm1.base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use rednote-hilab/dots.llm1.base with Docker Model Runner:
docker model run hf.co/rednote-hilab/dots.llm1.base
update readme
Browse files
README.md
CHANGED
|
@@ -32,7 +32,7 @@ Visit our Hugging Face (click links above), search checkpoints with names starti
|
|
| 32 |
|
| 33 |
|
| 34 |
The `dots.llm1` model is a large-scale MoE model that activates 14B parameters out of a total of 142B parameters, delivering performance on par with state-of-the-art models.
|
| 35 |
-
Leveraging our meticulously crafted and efficient data processing pipeline, `dots.llm1` achieves performance comparable to Qwen2.5-72B after pretrained on
|
| 36 |
|
| 37 |
|
| 38 |
<p align="center">
|
|
@@ -43,7 +43,7 @@ Leveraging our meticulously crafted and efficient data processing pipeline, `dot
|
|
| 43 |
|
| 44 |
**This repo contains the base and instruction-tuned `dots.llm1` model**. which has the following features:
|
| 45 |
|
| 46 |
-
- Type: A MoE model with 14B activated and 142B total parameters trained on
|
| 47 |
- Training Stages: Pretraining and SFT.
|
| 48 |
- Architecture: Multi-head Attention with QK-Norm in attention Layer, fine-grained MoE utilizing top-6 out of 128 routed experts, plus 2 shared experts.
|
| 49 |
- Number of Layers: 62
|
|
@@ -55,10 +55,10 @@ Leveraging our meticulously crafted and efficient data processing pipeline, `dot
|
|
| 55 |
The highlights from `dots.llm1` include:
|
| 56 |
|
| 57 |
- **Enhanced Data Processing**: We propose a scalable and fine-grained *three-stage* data processing framework designed to generate large-scale, high-quality and diverse data for pretraining.
|
| 58 |
-
- **No Synthetic Data during Pretraining**:
|
| 59 |
- **Performance and Cost Efficiency**: `dots.llm1` is an open-source model that activates only *14B* parameters at inference, delivering both comprehensive capabilities and high computational efficiency.
|
| 60 |
- **Infrastructure**: We introduce an innovative MoE all-to-all communication and computation overlapping recipe based on interleaved 1F1B pipeline scheduling and an efficient grouped GEMM implementation to boost computational efficiency.
|
| 61 |
-
- **Open Accessibility to Model Dynamics**: Intermediate model checkpoints
|
| 62 |
|
| 63 |
## 3. Example Usage
|
| 64 |
|
|
|
|
| 32 |
|
| 33 |
|
| 34 |
The `dots.llm1` model is a large-scale MoE model that activates 14B parameters out of a total of 142B parameters, delivering performance on par with state-of-the-art models.
|
| 35 |
+
Leveraging our meticulously crafted and efficient data processing pipeline, `dots.llm1` achieves performance comparable to Qwen2.5-72B after pretrained on high-quality corpus without synthetic data. To foster further research, we open-source intermediate training checkpoints spanning the entire training process, providing valuable insights into the learning dynamics of large language models.
|
| 36 |
|
| 37 |
|
| 38 |
<p align="center">
|
|
|
|
| 43 |
|
| 44 |
**This repo contains the base and instruction-tuned `dots.llm1` model**. which has the following features:
|
| 45 |
|
| 46 |
+
- Type: A MoE model with 14B activated and 142B total parameters trained on high-quality corpus.
|
| 47 |
- Training Stages: Pretraining and SFT.
|
| 48 |
- Architecture: Multi-head Attention with QK-Norm in attention Layer, fine-grained MoE utilizing top-6 out of 128 routed experts, plus 2 shared experts.
|
| 49 |
- Number of Layers: 62
|
|
|
|
| 55 |
The highlights from `dots.llm1` include:
|
| 56 |
|
| 57 |
- **Enhanced Data Processing**: We propose a scalable and fine-grained *three-stage* data processing framework designed to generate large-scale, high-quality and diverse data for pretraining.
|
| 58 |
+
- **No Synthetic Data during Pretraining**: High-quality non-synthetic tokens was used in base model pretraining.
|
| 59 |
- **Performance and Cost Efficiency**: `dots.llm1` is an open-source model that activates only *14B* parameters at inference, delivering both comprehensive capabilities and high computational efficiency.
|
| 60 |
- **Infrastructure**: We introduce an innovative MoE all-to-all communication and computation overlapping recipe based on interleaved 1F1B pipeline scheduling and an efficient grouped GEMM implementation to boost computational efficiency.
|
| 61 |
+
- **Open Accessibility to Model Dynamics**: Intermediate model checkpoints are released spanning the entire training process, facilitating future research into the learning dynamics of large language models.
|
| 62 |
|
| 63 |
## 3. Example Usage
|
| 64 |
|