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)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ModelCloud/dbrx-base-converted-v2", trust_remote_code=True, dtype="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
Upload folder using huggingface_hub
Upload folder using huggingface_hub
Multi commit ID: ef69dac7a8011dee1fac8144aba9ebee111d5f667fc340c3be26d9cda7cdcc34
Scheduled commits:
- Upload 1 file(s) totalling 3.5G (105f1178f9d8b66bfdb8d6aeace71d87a44882c93dc1a364951edf3bed5b7fed)
- Upload 1 file(s) totalling 4.4G (8e0288f8b29a72b2b789f8ee9ef0f1d37afed293ac673c71dd23de9fefb803d6)
- Upload 1 file(s) totalling 4.2G (7560fe9b264ad4b595838c002a9b7055e3681319cfeb309ac10b11266196080a)
- Upload 1 file(s) totalling 4.4G (3f2c528bc240a676a1082f61de1324301c08251cfbb6acc8eab451682b2182f1)
- Upload 1 file(s) totalling 4.4G (113d4616586d81e5b29178fea579ad5a9f9d2a93b4fad2fb6c2bd68a000e16b2)
- Upload 1 file(s) totalling 4.2G (51bbd95fb593c1e8a136ac9d4f19bb4b0717ef9c1405cba883c02c3c836e8a94)
- Upload 1 file(s) totalling 4.4G (8ad6e0f2cf13660450ce44366813e4e9945122f741e988d88b5f63e24c1e780a)
- Upload 1 file(s) totalling 4.4G (249fcafe317fe688216accde549c582c77256d95a00c8c860e39ee5dcdc1ec3c)
- Upload 1 file(s) totalling 4.2G (bd798f3f39314cc2ddf4e84ba55da3f5a3c486f3217b6b877356f2209f973899)
- Upload 1 file(s) totalling 4.4G (694356148ecfeecf35a16d28f789fe7d35c36f5c292757e27038b35cf3529790)
- Upload 1 file(s) totalling 4.4G (c2fdeaa8fd250a6d83594539757c2c2ef70dcea353326d00effa0bd73d744bac)
- Upload 1 file(s) totalling 4.2G (f82470d211e7ccd1cee116bf69ddc54748ec338cc4f642915d994c5861c98eef)
- Upload 1 file(s) totalling 4.4G (5843f1d77eb70e28c96bd10f0e459b584dca6ecb8b442b8e9a8e592097d54dcb)
- Upload 1 file(s) totalling 4.4G (b81e0ecaab94a01095456e12799428eaea7e1fd28cb49c49f920d498b1cfb83f)
- Upload 1 file(s) totalling 4.2G (ddcba34b76bc2752e40fa7b6efaf7bf588a401576dfa3aacc7c1c09ebc042aa0)
- Upload 1 file(s) totalling 4.4G (4b7b956dc227b6ec28aa950d8648bef9b7395958aee2541acd4d104352de276e)
- Upload 1 file(s) totalling 4.4G (da6c84c653e90f4366a59652fa2e56d108506e803a235fc5882c9c474298ec63)
- Upload 1 file(s) totalling 4.2G (bd65ef470d916351b344f1e9352a55ec75f41dddcea743ecf2c99e9955a69c99)
- Upload 1 file(s) totalling 4.4G (4c70ce4344fabec195450a1705006e2e7bd2bce13e257709040244038c1d819a)
- Upload 1 file(s) totalling 4.4G (edcbe4b8923b070db9ea4d8c0b9e95aed56d00125c84145b12786806fd2e5cb3)
- Upload 1 file(s) totalling 4.2G (4960442ece6d6e86446161206bb506f80d00e1cc78cca059ea44e10fba1f1c8b)
- Upload 1 file(s) totalling 4.4G (c56b2d7ea34183445d32ceb34148ca2f25f579f204a0f5dd1de064edb500e3d7)
- Upload 1 file(s) totalling 4.4G (a3845ff13533bc9656e226d3da4e0d12ce0951f864a5e42b8af7688d0cad6394)
- Upload 1 file(s) totalling 4.2G (219e9050e5931b3f8f618075c87feadb4c00bf6192d06a47b75f6134edda40ff)
- Upload 1 file(s) totalling 4.4G (32823684c8d23182a644e0fabcb4494bc0432a1ce8decc43796a151ce3461da6)
- Upload 1 file(s) totalling 4.4G (357c32f90fe9da08fb4ca1c8d243636766551358918ea669ab5f8f58926b567c)
- Upload 1 file(s) totalling 4.2G (ceb186e57582dd86b2924ebbd130c7a86ec5f602806a871d33bbddef7c62992e)
- Upload 1 file(s) totalling 4.4G (de14ddb3914ab39b44cd0fce8ef69912ed6c6e70b0a7de0877fecd12500ed98d)
- Upload 1 file(s) totalling 4.4G (87e869d7f1bc09eb692757974f8e1bbad935c49a6b912b516b7fab6635c2737d)
- Upload 1 file(s) totalling 4.2G (3bf9b1e66836776b69f108b671807028d16566bb6bf11e73cd38cd18615247a5)
- Upload 1 file(s) totalling 4.4G (9cc9da92b7486056bf80bc841ce876c7d769ba68d43e2a25faf973487681c142)
- Upload 1 file(s) totalling 4.4G (e1fd7e2e15394223d44185a2c131b19acd5f2b25708ad5c4b1ca7f336e15bb09)
- Upload 1 file(s) totalling 4.2G (45fec8464d770d8ad8c8b525d692b4e5b8129223742b133cdd0a8dfd14ecccce)
- Upload 1 file(s) totalling 4.4G (d9a94592bd4cd790a51687de8cb052b569edbb5e1727477862234bb7d1a384e6)
- Upload 1 file(s) totalling 4.4G (eaf75a1d942c468d1f429c5b6843107d13f0d27d66a884ae92234beb33e3edd5)
- Upload 1 file(s) totalling 4.2G (b0a2041f568db86f9cf2f8693db136d60d9e353d348fbc1f8d7e25d9cade12e4)
- Upload 1 file(s) totalling 4.4G (9be833f4a5691563507c997a7d7dcb5642bbb1ca5a2c6e215f7373e113e0f5c4)
- Upload 1 file(s) totalling 4.4G (bee0bd188d8ccde632602cbd4fb165df91bf989ab6ac91756ab5c53c3fb94051)
- Upload 1 file(s) totalling 4.2G (669f4b11ad6d583d6e639bcc24779e000805bece6bc909682543963a6cfeaf72)
- Upload 1 file(s) totalling 4.4G (5bb94bb9877c7c0e04b01572b68fd672607a066bd60bf549f5d673b61d24dcf9)
- Upload 1 file(s) totalling 4.4G (17ec2e9f474d62291e04b7177028b293760d2af6ec8f1b1d626cb4da86cd8f03)
- Upload 1 file(s) totalling 4.2G (4881b32cae3096b54069d56857b10d2a615e136be77f8146f2665df2bd68aefe)
- Upload 1 file(s) totalling 4.4G (f82fa822b269247bad7a8881e5e1fd0b073c25b04b5087ae74ae8bc9431db94a)
- Upload 1 file(s) totalling 4.4G (404e08513b373c06ccdaa759b540ddbcd77d998eb9f3431dfdc84b89fb429c4f)
- Upload 1 file(s) totalling 4.2G (1892254fff70c78383b164d6ac9eff9cf432b8685c8f19e68ddbad86a6adbcc3)
- Upload 1 file(s) totalling 4.4G (6d8f664c864cfa0b9f3844ac43d6030ed16bd4f42ab2b42b468ff0cf98246ef0)
- Upload 1 file(s) totalling 4.4G (382478dfd90a1f893c87fcae2dcd308b4459bf3bc51a1093edab543b1b0a4dd0)
- Upload 1 file(s) totalling 4.2G (77273d0a1c6d503e54737c79a4b60f39eb4fc28b86b4916da46f086ffee5260a)
- Upload 1 file(s) totalling 4.4G (e02cc9d20667e37018e0bf72f77cd696e03ed422e8fc34d5f0d8cea39b756558)
- Upload 1 file(s) totalling 4.4G (119556f42f9d9b485e426f0156df2b4bfe5a4cdb2d2eb6015f5ff9a4aa59bde5)
- Upload 1 file(s) totalling 4.2G (6806b3935aacd07f05c5b7cba5967f7545fa6d8d2bee1e4e75f93ff6f51550be)
- Upload 1 file(s) totalling 4.4G (dd04a1956d17542de4f27dc0a35579a52c48b3e5e794afad60549c39269dd3d3)
- Upload 1 file(s) totalling 4.4G (e64f1ed46e0006b804989983e6ea55e886253266f315ef746613e2a9dd9ece23)
- Upload 1 file(s) totalling 4.2G (a412e94a4cd272b33678ade13e4b04a30330159d9f970b59bc685af003e5811a)
- Upload 1 file(s) totalling 4.4G (d811614d6b7e24f7a12d39c93a6c5237201fcb3151e15a638e283c84b490e37f)
- Upload 1 file(s) totalling 4.4G (e76e612bcca95d39ac6d7d8c328bcb08493293a7985deb4f157ce2cac9135f49)
- Upload 1 file(s) totalling 4.2G (a45781161db45b4e965e38302e8bb3f9a67750fbb0e6cfc0f614bf90af52679f)
- Upload 1 file(s) totalling 4.4G (5db6743cb290ec2073ac7245bb6f3dfb39e285f835d9edcc43fdc4e63f02358f)
- Upload 1 file(s) totalling 4.4G (372664a11a6d5225663ebbd784460491c9b3eceebc736a04668ed87687a0723a)
- Upload 1 file(s) totalling 4.2G (6a715d21a640564947ec47d36590def3600e37451ad1c7e17c5794e866b9d25d)
- Upload 1 file(s) totalling 3.3G (2ba83c8624b6f4894287e981390ac00418eae754d8944a6ca40c77f0b1e4ed4c)
- Upload 11 file(s) totalling 330.1K (f90ce0b8fdbca174da1b904d6f72ba4c2624cd89bbe3461d64e899f5b7f65f03)
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.