Text Generation
Transformers
Safetensors
dbrx_converted
dbrx
gptq
4bit
gptqmodel
conversational
custom_code
Instructions to use ModelCloud/dbrx-base-converted-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ModelCloud/dbrx-base-converted-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ModelCloud/dbrx-base-converted-v2", 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("ModelCloud/dbrx-base-converted-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ModelCloud/dbrx-base-converted-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ModelCloud/dbrx-base-converted-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ModelCloud/dbrx-base-converted-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ModelCloud/dbrx-base-converted-v2
- SGLang
How to use ModelCloud/dbrx-base-converted-v2 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 "ModelCloud/dbrx-base-converted-v2" \ --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": "ModelCloud/dbrx-base-converted-v2", "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 "ModelCloud/dbrx-base-converted-v2" \ --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": "ModelCloud/dbrx-base-converted-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ModelCloud/dbrx-base-converted-v2 with Docker Model Runner:
docker model run hf.co/ModelCloud/dbrx-base-converted-v2
Commit History
-
Use GPT2Tokenizer instead of Tiktokenizer
LRLadf2575
-
Upload folder using huggingface_hub (#2)
Verified signature- 105f1178f9d8b66bfdb8d6aeace71d87a44882c93dc1a364951edf3bed5b7fed (4469e6cebb072c49afb19891bb1a39938256c32c) - 8e0288f8b29a72b2b789f8ee9ef0f1d37afed293ac673c71dd23de9fefb803d6 (6522af42bbc4f9ddec800957f5040b4b37234f8a) - 7560fe9b264ad4b595838c002a9b7055e3681319cfeb309ac10b11266196080a (6c92710166b0a0c0d4da211136419aaf8b9dd645) - 3f2c528bc240a676a1082f61de1324301c08251cfbb6acc8eab451682b2182f1 (e959a697ce2dde9767fb6e0c9b5a9184b4813467) - 113d4616586d81e5b29178fea579ad5a9f9d2a93b4fad2fb6c2bd68a000e16b2 (c7cdb1262588cf8298197381834df203b788bea2) - 51bbd95fb593c1e8a136ac9d4f19bb4b0717ef9c1405cba883c02c3c836e8a94 (50ab2cb8524ccdd797e658c35307bb72335640cd) - 8ad6e0f2cf13660450ce44366813e4e9945122f741e988d88b5f63e24c1e780a (7061eae46fbdff8f296a0f8cec7ac1dd6d8f5731) - 249fcafe317fe688216accde549c582c77256d95a00c8c860e39ee5dcdc1ec3c (fb1517e3001b1393d15c76e2aeee22a3df121784) - bd798f3f39314cc2ddf4e84ba55da3f5a3c486f3217b6b877356f2209f973899 (4a3e2e6f8e798df20c97083ad2cba535a0d04900) - 69435614…d809459
-
initial commit
Verified signature8c89a11