Instructions to use cmarkea/bloomz-7b1-mt-sft-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cmarkea/bloomz-7b1-mt-sft-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cmarkea/bloomz-7b1-mt-sft-chat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cmarkea/bloomz-7b1-mt-sft-chat") model = AutoModelForCausalLM.from_pretrained("cmarkea/bloomz-7b1-mt-sft-chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cmarkea/bloomz-7b1-mt-sft-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cmarkea/bloomz-7b1-mt-sft-chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cmarkea/bloomz-7b1-mt-sft-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cmarkea/bloomz-7b1-mt-sft-chat
- SGLang
How to use cmarkea/bloomz-7b1-mt-sft-chat 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 "cmarkea/bloomz-7b1-mt-sft-chat" \ --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": "cmarkea/bloomz-7b1-mt-sft-chat", "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 "cmarkea/bloomz-7b1-mt-sft-chat" \ --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": "cmarkea/bloomz-7b1-mt-sft-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cmarkea/bloomz-7b1-mt-sft-chat with Docker Model Runner:
docker model run hf.co/cmarkea/bloomz-7b1-mt-sft-chat
Commit History
-
Update config.json
8c2dc30
-
Update README.md
43bc102
-
Update README.md
409f1c8
-
Update README.md
bc028e3 -
Update README.md
3f313ac -
Update README.md
f906569
-
Delete flax_model-00001-of-00002.msgpack with huggingface_hub
dd187c8 -
Delete flax_model-00002-of-00002.msgpack with huggingface_hub
22a47d0 -
Delete flax_model.msgpack.index.json with huggingface_hub
3fb861c -
Upload flax_model.msgpack.index.json with huggingface_hub
3f16db2 -
Upload flax_model-00002-of-00002.msgpack with huggingface_hub
de9c258 -
Upload flax_model-00001-of-00002.msgpack with huggingface_hub
709ec35 -
Update README.md
000f9a7 -
Update README.md
f8661a4 -
Update README.md
d71114e -
Update README.md
0e0abea
-
Update README.md
b147de9 -
Update README.md
f9cb7e5 -
Update README.md
32123ce
-
Upload 11 files
759ce43 -
initial commit
Cyrile Delestre62910d2