Instructions to use tomrb/bettercallbloom-3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tomrb/bettercallbloom-3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tomrb/bettercallbloom-3b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tomrb/bettercallbloom-3b") model = AutoModelForCausalLM.from_pretrained("tomrb/bettercallbloom-3b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tomrb/bettercallbloom-3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tomrb/bettercallbloom-3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tomrb/bettercallbloom-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tomrb/bettercallbloom-3b
- SGLang
How to use tomrb/bettercallbloom-3b 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 "tomrb/bettercallbloom-3b" \ --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": "tomrb/bettercallbloom-3b", "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 "tomrb/bettercallbloom-3b" \ --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": "tomrb/bettercallbloom-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use tomrb/bettercallbloom-3b with Docker Model Runner:
docker model run hf.co/tomrb/bettercallbloom-3b
Commit History
-
Create README.md
71bbbb7
-
Upload tokenizer
2e255ff -
Upload BloomForCausalLM
4f4309d -
Delete config.json
c19e6ce -
Delete pytorch_model-00001-of-00002.bin
f34812c -
Delete pytorch_model-00002-of-00002.bin
f83af4a -
Delete pytorch_model.bin
6c34f3a -
Delete pytorch_model.bin.index.json
0e8499b -
Delete special_tokens_map.json
67613f7 -
Delete tokenizer.json
822aa71 -
Delete tokenizer_config.json
776416e -
Delete .gitattributes
2a2f02e -
Upload tokenizer
c98302a -
Upload BloomForCausalLM
eb635d4
-
Upload 2 files
05a680b
-
add tokenizer
5f2a6a2 -
Upload 2 files
2623a61 -
initial commit
388b154