Instructions to use DMindAI/DMind-1-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DMindAI/DMind-1-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DMindAI/DMind-1-mini") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DMindAI/DMind-1-mini", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DMindAI/DMind-1-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DMindAI/DMind-1-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DMindAI/DMind-1-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DMindAI/DMind-1-mini
- SGLang
How to use DMindAI/DMind-1-mini 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 "DMindAI/DMind-1-mini" \ --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": "DMindAI/DMind-1-mini", "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 "DMindAI/DMind-1-mini" \ --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": "DMindAI/DMind-1-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DMindAI/DMind-1-mini with Docker Model Runner:
docker model run hf.co/DMindAI/DMind-1-mini
Frank commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -74,16 +74,16 @@ To support real-time and resource-constrained applications, we further introduce
|
|
| 74 |
### DMind-1-mini
|
| 75 |
|
| 76 |
To address scenarios requiring lower latency and faster inference, we introduce **DMind-1-mini**, a lightweight distilled version of DMind-1 based on Qwen3-14B. DMind-1-mini is trained using knowledge distillation and our custom **DeepResearch** framework, drawing from two teacher models:
|
| 77 |
-
- **DMind-1** (Qwen3-32B): Our specialized Web3 domain model
|
| 78 |
-
- **GPT-o3 + DeepResearch**: A general-purpose SOTA LLM, with its outputs processed through our DeepResearch framework for Web3 domain alignment
|
| 79 |
|
| 80 |
The **Distillation pipeline** combines:
|
| 81 |
|
| 82 |
-
- **Web3-specific data distillation**: High-quality instruction-following and QA examples generated by the teacher models
|
| 83 |
|
| 84 |
-
- **Distribution-level supervision**: The student model learns to approximate the teachers' output distributions through soft-label guidance, preserving nuanced prediction behavior and confidence calibration
|
| 85 |
|
| 86 |
-
- **Intermediate representation transfer**: Knowledge is transferred by aligning intermediate representations between teacher and student models, promoting deeper structural understanding beyond surface-level mimicry
|
| 87 |
|
| 88 |
This multi-level distillation strategy enables DMind-1-mini to maintain high Web3 task performance while significantly reducing computational overhead and latency, making it suitable for real-time applications such as instant Q&A, on-chain analytics, and lightweight agent deployment.
|
| 89 |
|
|
@@ -99,11 +99,11 @@ Under this rigorous evaluation:
|
|
| 99 |
|
| 100 |
|
| 101 |
## 3. Use Cases
|
| 102 |
-
- **Expert-Level Question & Answering**: Provides accurate, context-aware answers on blockchain, DeFi, smart contracts, and related Web3 topics
|
| 103 |
-
- **Compliance-Aware Support**: Assists in drafting or reviewing content within regulatory and legal contexts
|
| 104 |
-
- **Content Generation in Domain**: Produces Web3-specific blog posts, documentation, and tutorials tailored to developers and users
|
| 105 |
-
- **DeFi Strategy Suggestions**: Generates insights and recommendations for yield farming, liquidity provision, and portfolio strategies based on user-provided data
|
| 106 |
-
- **Risk Management**: Suggests strategies aligned with user risk profiles for more informed decision-making in volatile markets
|
| 107 |
|
| 108 |
## 4. Quickstart
|
| 109 |
|
|
|
|
| 74 |
### DMind-1-mini
|
| 75 |
|
| 76 |
To address scenarios requiring lower latency and faster inference, we introduce **DMind-1-mini**, a lightweight distilled version of DMind-1 based on Qwen3-14B. DMind-1-mini is trained using knowledge distillation and our custom **DeepResearch** framework, drawing from two teacher models:
|
| 77 |
+
- **DMind-1** (Qwen3-32B): Our specialized Web3 domain model.
|
| 78 |
+
- **GPT-o3 + DeepResearch**: A general-purpose SOTA LLM, with its outputs processed through our DeepResearch framework for Web3 domain alignment.
|
| 79 |
|
| 80 |
The **Distillation pipeline** combines:
|
| 81 |
|
| 82 |
+
- **Web3-specific data distillation**: High-quality instruction-following and QA examples generated by the teacher models.
|
| 83 |
|
| 84 |
+
- **Distribution-level supervision**: The student model learns to approximate the teachers' output distributions through soft-label guidance, preserving nuanced prediction behavior and confidence calibration.
|
| 85 |
|
| 86 |
+
- **Intermediate representation transfer**: Knowledge is transferred by aligning intermediate representations between teacher and student models, promoting deeper structural understanding beyond surface-level mimicry.
|
| 87 |
|
| 88 |
This multi-level distillation strategy enables DMind-1-mini to maintain high Web3 task performance while significantly reducing computational overhead and latency, making it suitable for real-time applications such as instant Q&A, on-chain analytics, and lightweight agent deployment.
|
| 89 |
|
|
|
|
| 99 |
|
| 100 |
|
| 101 |
## 3. Use Cases
|
| 102 |
+
- **Expert-Level Question & Answering**: Provides accurate, context-aware answers on blockchain, DeFi, smart contracts, and related Web3 topics.
|
| 103 |
+
- **Compliance-Aware Support**: Assists in drafting or reviewing content within regulatory and legal contexts.
|
| 104 |
+
- **Content Generation in Domain**: Produces Web3-specific blog posts, documentation, and tutorials tailored to developers and users.
|
| 105 |
+
- **DeFi Strategy Suggestions**: Generates insights and recommendations for yield farming, liquidity provision, and portfolio strategies based on user-provided data.
|
| 106 |
+
- **Risk Management**: Suggests strategies aligned with user risk profiles for more informed decision-making in volatile markets.
|
| 107 |
|
| 108 |
## 4. Quickstart
|
| 109 |
|