Instructions to use LnL-AI/dbrx-base-converted-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LnL-AI/dbrx-base-converted-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LnL-AI/dbrx-base-converted-v2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("LnL-AI/dbrx-base-converted-v2", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("LnL-AI/dbrx-base-converted-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LnL-AI/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 "LnL-AI/dbrx-base-converted-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LnL-AI/dbrx-base-converted-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LnL-AI/dbrx-base-converted-v2
- SGLang
How to use LnL-AI/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 "LnL-AI/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/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LnL-AI/dbrx-base-converted-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "LnL-AI/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/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LnL-AI/dbrx-base-converted-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LnL-AI/dbrx-base-converted-v2 with Docker Model Runner:
docker model run hf.co/LnL-AI/dbrx-base-converted-v2
Commit History
-
Note to use dbrx-base-tokenizer
Verified signaturee7a9661
-
update convert so non-tensor files are copied over to output
Verified signature83c9f59 -
Update tiktoken.py (#4)
Verified signature- Update tiktoken.py (345342df4cc7b09196ac8c6d8de5615037638ceb)5135d75
-
Update README.md
Verified signature7fb86d8 -
Update README.md
Verified signaturea1307ee -
tokenizer note
Verified signature103afef -
lr note
Verified signature3fd46fb
-
Update README.md
Verified signature6fd917c -
remove fa2 compat note: self-inflicted training code caused fail
Verified signature6a43266 -
reduce logging verbosity (#3)
Verified signature- reduce logging verbosity (abe53800d8e4e2903ceb0d7603ca75f2c54a1ae8) Co-authored-by: wing lian <winglian@users.noreply.huggingface.co>7b0f012 -
Fix import typo (#2)
Verified signature- Fix import typo (d4ec07a184ea1d8180e68b0561c0580718502ecc) Co-authored-by: Fahadh <fahadh4ilyas@users.noreply.huggingface.co>3babc68 -
add note about flash attn2 compat and quant
Verified signature31ecda2 -
Create convert_v2.py
Verified signature8695694 -
Update README.md
Verified signature14aa5ff -
Update modeling_dbrx.py
Verified signature19b717e -
Create modeling_dbrx.py
Verified signature51673c7 -
Upload model-00060-of-00061.safetensors with huggingface_hub
Verified signature517efb2 -
Update README.md
Verified signature416edac -
Upload model-00011-of-00061.safetensors with huggingface_hub
Verified signaturefadd1e9 -
Upload LICENSE.txt with huggingface_hub
Verified signature960ac57 -
Upload model-00029-of-00061.safetensors with huggingface_hub
Verified signature0c4aaf4 -
Upload model-00042-of-00061.safetensors with huggingface_hub
Verified signature0bf2bc9 -
Upload model-00058-of-00061.safetensors with huggingface_hub
Verified signatured102bd7 -
Upload model-00033-of-00061.safetensors with huggingface_hub
Verified signatureec08fc6 -
Upload model-00038-of-00061.safetensors with huggingface_hub
Verified signature4b2d290 -
Upload model-00053-of-00061.safetensors with huggingface_hub
Verified signature6848910 -
Upload model-00049-of-00061.safetensors with huggingface_hub
Verified signature8a78c98 -
Upload model-00022-of-00061.safetensors with huggingface_hub
Verified signatured085397 -
Upload README.md with huggingface_hub
Verified signature8c3140b -
Upload model-00024-of-00061.safetensors with huggingface_hub
Verified signature93c6174 -
Upload model-00055-of-00061.safetensors with huggingface_hub
Verified signatureea83ee3 -
Upload model-00035-of-00061.safetensors with huggingface_hub
Verified signaturee7d71ef -
Upload model-00044-of-00061.safetensors with huggingface_hub
Verified signatured1d20d7 -
Upload model-00006-of-00061.safetensors with huggingface_hub
Verified signature82d0858 -
Upload tokenizer_config.json with huggingface_hub
Verified signature5d5a922 -
Upload model-00017-of-00061.safetensors with huggingface_hub
Verified signature12481ab -
Upload model-00001-of-00061.safetensors with huggingface_hub
Verified signaturece0b3a9 -
Upload model-00010-of-00061.safetensors with huggingface_hub
Verified signatured7ae19f -
Upload model-00061-of-00061.safetensors with huggingface_hub
Verified signatured09c84f -
Upload model-00048-of-00061.safetensors with huggingface_hub
Verified signature2a6ce95 -
Upload model-00023-of-00061.safetensors with huggingface_hub
Verified signaturedf2da1d -
Upload model-00039-of-00061.safetensors with huggingface_hub
Verified signaturefb19148 -
Upload model-00052-of-00061.safetensors with huggingface_hub
Verified signature90fa7ad -
Upload model-00059-of-00061.safetensors with huggingface_hub
Verified signature7d9f0ee -
Upload model-00032-of-00061.safetensors with huggingface_hub
Verified signaturef5f0188 -
Upload model-00028-of-00061.safetensors with huggingface_hub
Verified signaturea2ccecb -
Upload model-00043-of-00061.safetensors with huggingface_hub
Verified signaturea91c838 -
Upload model-00045-of-00061.safetensors with huggingface_hub
Verified signature565645d -
Upload model-00034-of-00061.safetensors with huggingface_hub
Verified signature8eee426 -
Upload model-00054-of-00061.safetensors with huggingface_hub
Verified signature0824110