Text Generation
Transformers
PyTorch
Safetensors
Chinese
English
bloom
chat
ggml
text-generation-inference
Instructions to use nicholascao/chatbloom-1b7-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nicholascao/chatbloom-1b7-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nicholascao/chatbloom-1b7-sft")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nicholascao/chatbloom-1b7-sft") model = AutoModelForCausalLM.from_pretrained("nicholascao/chatbloom-1b7-sft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nicholascao/chatbloom-1b7-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nicholascao/chatbloom-1b7-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nicholascao/chatbloom-1b7-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nicholascao/chatbloom-1b7-sft
- SGLang
How to use nicholascao/chatbloom-1b7-sft 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 "nicholascao/chatbloom-1b7-sft" \ --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": "nicholascao/chatbloom-1b7-sft", "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 "nicholascao/chatbloom-1b7-sft" \ --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": "nicholascao/chatbloom-1b7-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nicholascao/chatbloom-1b7-sft with Docker Model Runner:
docker model run hf.co/nicholascao/chatbloom-1b7-sft
Commit History
Add ggml-model-chatbloom-1b7-sft-f16-q4_0.bin from bloomz.cpp converter. (#1) d0f2925
update model ac5c5e2
nicholascao commited on
fix config.json 2d4dc7e
nicholascao commited on
Docs: update README.md 65473cb
nicholascao commited on
Docs: update README.md ea8ce86
nicholascao commited on
expand seq_len to 1024 105cae2
nicholascao commited on
Merge branch 'main' of https://huggingface.co/nicholascao/chatbloom-1b7-sft into main 39f2c92
nicholascao commited on
Update README.md 0ab884d
Update README.md 5a3e0b1
Update README.md 335161d
update README.md 1c8d432
nicholascao commited on
delete generation config 847982e
nicholascao commited on
update model 6d0b3bc
nicholascao commited on
Update README.md c4b7b21
Update README.md 374f6d1
Update README.md 70e4cca
Update README.md 5462923
Update README.md 24a2272
add model db2424b
nicholascao commited on