Instructions to use bigscience/bloom-560m-intermediate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloom-560m-intermediate with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloom-560m-intermediate")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloom-560m-intermediate") model = AutoModelForCausalLM.from_pretrained("bigscience/bloom-560m-intermediate", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigscience/bloom-560m-intermediate with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloom-560m-intermediate" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigscience/bloom-560m-intermediate", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloom-560m-intermediate
- SGLang
How to use bigscience/bloom-560m-intermediate 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 "bigscience/bloom-560m-intermediate" \ --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": "bigscience/bloom-560m-intermediate", "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 "bigscience/bloom-560m-intermediate" \ --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": "bigscience/bloom-560m-intermediate", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloom-560m-intermediate with Docker Model Runner:
docker model run hf.co/bigscience/bloom-560m-intermediate
Commit History
-
Adding `safetensors` variant of this model (#3)
- Adding `safetensors` variant of this model (1b0ac6f22c226fad72b665cccbf3374b426ca52a) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>fac2c0b
-
Fix architecture (#1)
- Fix architecture (a23b9a78fe22a93539c23f38bdb7459c7b3600dd) Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>09bac53
-
Create new file
c6989d1 -
new data
22703ee -
new data
68499d4 -
new data
c23dac3 -
new data
66f5c22 -
new data
89cf149 -
new data
b5727b4 -
new data
32b1c9e -
new data
129904c -
initial commit
cec319d