Instructions to use ModelCloud/dbrx-instruct-converted-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ModelCloud/dbrx-instruct-converted-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ModelCloud/dbrx-instruct-converted-v2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ModelCloud/dbrx-instruct-converted-v2", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ModelCloud/dbrx-instruct-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-instruct-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-instruct-converted-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ModelCloud/dbrx-instruct-converted-v2
- SGLang
How to use ModelCloud/dbrx-instruct-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-instruct-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-instruct-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-instruct-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-instruct-converted-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ModelCloud/dbrx-instruct-converted-v2 with Docker Model Runner:
docker model run hf.co/ModelCloud/dbrx-instruct-converted-v2
Upload folder using huggingface_hub
Upload folder using huggingface_hub
Multi commit ID: cd5e054e267c35c0c776a9d4cad337ac8625e506feb6a0827c7313317eeb36b2
Scheduled commits:
- Upload 1 file(s) totalling 3.5G (9768ebe43b80c11e575db1d951572af2bb45474ede807ad71ff41445685fee75)
- Upload 1 file(s) totalling 4.4G (44e5da5ca204044dbfb00cb3f9fa98a490e23d0f03db129f6b218d6411c04ff7)
- Upload 1 file(s) totalling 4.2G (f982a90e8b1bd08203b3a06efc3d56cb6f4b9b15597961014c29c8fb3280bbf5)
- Upload 1 file(s) totalling 4.4G (e6629b0df4bd0297e9c54b115b77ddabda30f8b1e2599a8512ba501e3c02032c)
- Upload 1 file(s) totalling 4.4G (319009fdee789e4dc2ef9ade44fdde27bb7f8714faff7ed4bb88fc80a92c255a)
- Upload 1 file(s) totalling 4.2G (2038ed65c67f787b0f554d222d5f5071e00077de44bbbcfcabd9a7a8cbf1b61c)
- Upload 1 file(s) totalling 4.4G (2db0cbc992f5e8d40ff6fc8b12c12d27c33f086406fe9531978269bf519bb387)
- Upload 1 file(s) totalling 4.4G (47acf2e55b2e182c49564b82c51e9aadc5e7152371113e35bcb706ac38313984)
- Upload 1 file(s) totalling 4.2G (b17a0d2943e6a7e91975da811fc09702a58e9988fb66862aaad53c715448c6da)
- Upload 1 file(s) totalling 4.4G (1050c18c71bb26b670f3cb059f49e8a9347bac319ed332127728993246730a53)
- Upload 1 file(s) totalling 4.4G (2c42a75c50c49f8504ec46b8e6790380cb41013ce05c11773244e67c12f047d5)
- Upload 1 file(s) totalling 4.2G (8037d19d50daa5d7c7173a06ed6f210bda60895e66befe7b555f3b5cfda902a9)
- Upload 1 file(s) totalling 4.4G (e7bdbe573c94586a7fd098baf980ab87fb0ea21f49c778d7aa384a50ca42a201)
- Upload 1 file(s) totalling 4.4G (45f2fcb3f7b589ee99dce4b45be692e58ce447677c041bc56ce2d217f36b49a6)
- Upload 1 file(s) totalling 4.2G (288baaa26763a63582d9543e11b6760abfbc36291404e07e33ccfb04b5a000f6)
- Upload 1 file(s) totalling 4.4G (3bea9eb52bedaea7e05a08d10967fa0fcc3aa4c3d03bb89da901704eacfda64e)
- Upload 1 file(s) totalling 4.4G (8f0b6837bc3e80e1fa3c61f794cf4360b744a8867cae235cc553388bfa490ec2)
- Upload 1 file(s) totalling 4.2G (d14394874f4c761910c5d14684445a287b992c7fe55f9d06293509b78811a22c)
- Upload 1 file(s) totalling 4.4G (cdfff6e0585be6a7194c489f5babeefb2363087256626ef5bfeaf2a0817ecc85)
- Upload 1 file(s) totalling 4.4G (087cc7d625a4a9e3fc91faa8c705bfcadbe6dab8548ff4f6cf07750ed02731b2)
- Upload 1 file(s) totalling 4.2G (b6cf9a8729b7d32d1d64b4b4e2f48933812a730fbc012d9b1daceeb1f110534d)
- Upload 1 file(s) totalling 4.4G (632cb309b859bce20c8d3e1b3b105ceba7ce0f41eeaf672562ded32c2b0a07f3)
- Upload 1 file(s) totalling 4.4G (295a893c6c2b15075f795741ee52333c0dec32a5b36f736e7dd6bac79bc29c8c)
- Upload 1 file(s) totalling 4.2G (920f0d7709d09ec3f2b29c4f4f86c098903784994164af03db62a1d440bccb59)
- Upload 1 file(s) totalling 4.4G (67194ecdd290d6ecd392026855c6740e384a2b1f4ef869a31124a0b81c9ddb54)
- Upload 1 file(s) totalling 4.4G (b33e86e80e0b1c125497a8f9a6ad1eafa0ae70f24d9551d77b1e79ecb919e9bc)
- Upload 1 file(s) totalling 4.2G (8917f1518e26013bd41106977befc01e3fa76ab2162643d73faa3e2ac7059a50)
- Upload 1 file(s) totalling 4.4G (b1adc1a4412a577b938d4ebe54231a1ab0458b163f94644fdefd1223809055fd)
- Upload 1 file(s) totalling 4.4G (0964f2c6379e965663237d248b8cc4f5877d61431f3143db933ed750ad810b8f)
- Upload 1 file(s) totalling 4.2G (7f8051ffc6cc69e994ff64860de70d170147c300dd492f1e857e038579e9f23b)
- Upload 1 file(s) totalling 4.4G (f49931de7748c7ceb9366c2eae4c1595f85e62d7506d2e789277cabbde0becd1)
- Upload 1 file(s) totalling 4.4G (6b9b2d5e6e979a8c1f85134b209dd071168428e8bc7372cc2352f504e1667786)
- Upload 1 file(s) totalling 4.2G (d4f0b1ab5337758a1b1bd7d24139f5d042d8b0ccfad55e23fc45842576afa526)
- Upload 1 file(s) totalling 4.4G (33bd963adf78dacb049bf13fcc0a4792b5fdec7ba73dcf7815c33ca50df23efa)
- Upload 1 file(s) totalling 4.4G (387413fa44067d82d80c1f49f1f446d46c3821838e8baa0dbbe2d209a275b90f)
- Upload 1 file(s) totalling 4.2G (a55402b96ab8b068fd7a60c07527a6b9b689f539d60397d55ad9a010287dcabc)
- Upload 1 file(s) totalling 4.4G (c48ff22578781ed20bc182dfa9c06fd94712a7b8dd7fb1b088af0122bf774221)
- Upload 1 file(s) totalling 4.4G (1abbd1271518e8d61d4f8e62034f5cb4c2a67b96fc7e88c6d837e558f523cb07)
- Upload 1 file(s) totalling 4.2G (7e8735194d382c1e3d5631dcef79a27c472e8bd2bf79276ee559c2147cf02f11)
- Upload 1 file(s) totalling 4.4G (23ad6e293484ab9b71b6ef9426e700dc6766119fd62c537f961d7eb4738d9684)
- Upload 1 file(s) totalling 4.4G (4c74b0c5a47dbca191eb0bd1877e77d128e8149fb54db9126e9e54ea7ba5c901)
- Upload 1 file(s) totalling 4.2G (b9a2193d710d070ccab4271a8f910baedc59074ea85fb6e3ce99fb931512e5e5)
- Upload 1 file(s) totalling 4.4G (7b730fa7dc0adfe344c7e7f8083cf64580e521cb9328ccc27b40d284441ec10b)
- Upload 1 file(s) totalling 4.4G (6b9ec34d5b4ed43aa27592e10e2fb508002e431ea6289e38fdbe88f5ba71d0a6)
- Upload 1 file(s) totalling 4.2G (bbc38fc35a274ef24e7873f38c37e1a5de54906987f95da42d71a87f2975e9d8)
- Upload 1 file(s) totalling 4.4G (0eb9769927829f93d9e88b51b5d6a91cd99ce6c803f263d589c13a6518985122)
- Upload 1 file(s) totalling 4.4G (29aa6aede56f3a1a666121806e1bc7a5aae7d40defaa88965c8d9cbac1aa0254)
- Upload 1 file(s) totalling 4.2G (24565d7c067ad1e21c7745e4d7f30d89c77d662d4e9b77c29756d55d83cd4969)
- Upload 1 file(s) totalling 4.4G (d6c826650939059066c08cadde4c784df24b41c26b8b13d49a806e991e453f6d)
- Upload 1 file(s) totalling 4.4G (e225e85722768c1fd988367213eea22198114d9a8db6621144b6a168ddf7561d)
- Upload 1 file(s) totalling 4.2G (e6512a4be02c5a30c1a6bfb86f7818d5ae1f9ece4682296906ce3106a6eb4bfe)
- Upload 1 file(s) totalling 4.4G (cd78ea3bf8dc2a261a2a254bc4786fae95e2ae5cfdf98225c84c512ae17df5d1)
- Upload 1 file(s) totalling 4.4G (2bbe8357fe7c21cd3d04a4b1d06f659e501209223b31a99c46a5cfe0a757e830)
- Upload 1 file(s) totalling 4.2G (a62f6115a3ca31ca86d5f6e2279302b2c99510192e3eabf946ffcae1a14ce3c0)
- Upload 1 file(s) totalling 4.4G (74628101b328c875eabccb8c2535a403af3db7ff85989f4523c238c777222307)
- Upload 1 file(s) totalling 4.4G (1b74bb7a68b8d5a8376e33505cf125f713be199c9f55c648d55af07686924975)
- Upload 1 file(s) totalling 4.2G (a635328c68b66a235159d525c8701d70a0deeea45eace07b758f0715d4d0ccf0)
- Upload 1 file(s) totalling 4.4G (3f3fd7890c7aebb3172b13536812af6741204848e11ce4fd101998c21a56ac74)
- Upload 1 file(s) totalling 4.4G (2eb7edb4742ee0e4924d9f8a2e0feb480f703506cfbc10f2a7190f2d129a0923)
- Upload 1 file(s) totalling 4.2G (3e51a202d07500da13fa32bde9c0c1f0a2ed2473cc4d8dfa5ae1bcb2a413d705)
- Upload 1 file(s) totalling 3.3G (ea89e2716c35e4dc41d4c070f91f9887a896b63d689c1306a0d617adb3e505ec)
- Upload 12 file(s) totalling 330.8K (38d52afe98894b7e91ddd95b616ceb46008c189834b5698652527c83023053e4)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.
Multi-commit is now completed! You can ping the repo owner to review the changes. This PR can now be commented or modified without risking to corrupt it.
This is a comment posted using the huggingface_hub library in the context of a multi-commit. Learn more about multi-commits in this guide.