Instructions to use DMindAI/DMind-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DMindAI/DMind-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DMindAI/DMind-1")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DMindAI/DMind-1", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DMindAI/DMind-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DMindAI/DMind-1" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DMindAI/DMind-1
- SGLang
How to use DMindAI/DMind-1 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DMindAI/DMind-1 with Docker Model Runner:
docker model run hf.co/DMindAI/DMind-1
Commit History
-
Update README.md
FrankVerified signature5444e20
-
Update README.md
FrankVerified signature8c0ccdd
-
Update README.md
FrankVerified signature1a3f172 -
Update README.md
FrankVerified signature9b60ddd
-
Update handler.py
Verified signaturebc2a0b5 -
Update handler.py
Verified signaturec27e6f6 -
Update handler.py
Verified signature668e04f -
Update handler.py
Verified signaturea55dc79 -
Update handler.py
Verified signature77c95fb -
Create handler.py
Verified signatureebb4c7f
-
Update requirements.txt
Verified signature74ee6ee -
Delete handler.py
Verified signature719a57d -
Update requirements.txt
Verified signature904e875 -
Update requirements.txt
Verified signature10a05d5 -
Update handler.py
Verified signaturec06d40f -
Create handler.py
Verified signatureef9c5ef -
Update requirements.txt
Verified signaturee001134 -
Update README.md
FrankVerified signaturec68cf9b -
Rename requirements to requirements.txt
Verified signaturec3682cf -
Update requirements
Verified signatured2afb9d -
Update requirements
Verified signature2c58665 -
Create requirements
Verified signature5b73f3d -
Update README.md
Verified signature5c0ef12 -
feat: add DMind-1-mini model files and configuration
a3b28e0 -
Upload normalized-performance-with-price.jpeg
FrankVerified signature4b7f3b5 -
Delete figures/dmind-1-web3-performance.jpeg
FrankVerified signatured5e84b3 -
Update README.md
FrankVerified signature691352e -
Update README.md
Verified signature856c07e
-
add models
6e0b63a
-
Update README.md
FrankVerified signature03cf08e -
Update README.md
FrankVerified signaturebff17c6 -
Update README.md
FrankVerified signature407150b -
Update README.md
FrankVerified signaturefaed55b -
Update README.md
FrankVerified signatureb96242a -
Upload dmind-1-web3-performance.jpeg
FrankVerified signature2b24234 -
Delete figures/dmind-1-web3-performance.png
FrankVerified signature5e80680 -
Update README.md
FrankVerified signature19884f8 -
Update README.md
FrankVerified signaturecb82e33
-
Delete dmind-logo.svg
FrankVerified signature1d02366 -
Delete dmind-ai-logo.png
FrankVerified signature7022cc1 -
Delete dmind-1-web3-performance.png
FrankVerified signature8feb9a7 -
Delete figures/newimage.txt
FrankVerified signatured016949 -
Upload 3 files
FrankVerified signaturef6235fc -
Create figures/newimage.txt
FrankVerified signature63c1512 -
Delete figures
FrankVerified signature21b7aac -
Create figures
FrankVerified signaturece4e8a1 -
Upload 3 files
FrankVerified signature4a0aba0 -
Create README.md (#1)
FrankVerified signature- Create README.md (e29e617f19e76d81791fd59395f1bc9cb5deec0a)2f85384
-
initial commit
FrankVerified signature873bd02