Instructions to use MultiTrickFox/bloom-2b5_Zen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MultiTrickFox/bloom-2b5_Zen with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MultiTrickFox/bloom-2b5_Zen")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MultiTrickFox/bloom-2b5_Zen") model = AutoModelForCausalLM.from_pretrained("MultiTrickFox/bloom-2b5_Zen", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MultiTrickFox/bloom-2b5_Zen with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MultiTrickFox/bloom-2b5_Zen" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MultiTrickFox/bloom-2b5_Zen", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MultiTrickFox/bloom-2b5_Zen
- SGLang
How to use MultiTrickFox/bloom-2b5_Zen 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 "MultiTrickFox/bloom-2b5_Zen" \ --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": "MultiTrickFox/bloom-2b5_Zen", "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 "MultiTrickFox/bloom-2b5_Zen" \ --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": "MultiTrickFox/bloom-2b5_Zen", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MultiTrickFox/bloom-2b5_Zen with Docker Model Runner:
docker model run hf.co/MultiTrickFox/bloom-2b5_Zen
Commit History
-
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (5cd40bde392394c77b80c510b9479d257f845cb8) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>0e0cb4e
-
Update README.md
6822221
-
Update README.md
a80e3ea -
Update README.md
cae5ccc -
Update README.md
468383b -
Update README.md
9727478 -
Update README.md
040052f -
Update README.md
1148121 -
Update README.md
77cb7f2 -
Update README.md
2cab97d -
Update README.md
64055ec -
Update README.md
f109e85 -
Update README.md
5fc3982 -
Update README.md
2624eb7 -
Update README.md
a3829dc -
Update README.md
5fd6dac -
Update README.md
c5be4a6 -
Update README.md
a1358a3 -
Update README.md
07170f8 -
Update README.md
985120f -
Update README.md
683a6c2 -
Update README.md
25ebbf6 -
Update pytorch_model.bin.index.json
7f25e3b -
Update README.md
3522113 -
Upload pytorch_model-00002-of-00002-001.bin
b70b06b -
Update README.md
e219749 -
Update README.md
7e3b9e7 -
Update README.md
c1af029 -
Update README.md
012496a -
Update README.md
f1f00ad -
Update README.md
bbde354 -
Update README.md
8e03a3e -
Upload pytorch_model-00001-of-00002-002.bin
bc29640 -
Update config.json
fcc60ba -
Upload tokenizer.json
963ae7a -
Upload tokenizer_config.json
15527e4 -
Upload special_tokens_map.json
27c5496 -
Upload pytorch_model.bin.index.json
eb0993b -
Upload config.json
e12bd6a -
Update README.md
f201466 -
Create README.md
7b5c25f -
initial commit
467062e