Text Generation
Transformers
PyTorch
bloom
feature-extraction
Eval Results (legacy)
text-generation-inference
Instructions to use model-attribution-challenge/bloom-2b5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use model-attribution-challenge/bloom-2b5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="model-attribution-challenge/bloom-2b5")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("model-attribution-challenge/bloom-2b5") model = AutoModel.from_pretrained("model-attribution-challenge/bloom-2b5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use model-attribution-challenge/bloom-2b5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "model-attribution-challenge/bloom-2b5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "model-attribution-challenge/bloom-2b5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/model-attribution-challenge/bloom-2b5
- SGLang
How to use model-attribution-challenge/bloom-2b5 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 "model-attribution-challenge/bloom-2b5" \ --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": "model-attribution-challenge/bloom-2b5", "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 "model-attribution-challenge/bloom-2b5" \ --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": "model-attribution-challenge/bloom-2b5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use model-attribution-challenge/bloom-2b5 with Docker Model Runner:
docker model run hf.co/model-attribution-challenge/bloom-2b5
Commit History
-
Update README.md
1c5992f
-
Add evaluation (#8)
- Add evaluation (ee589c92eb5cf17c617fb3145214de77e2de8c23)68331cd
-
341b tokens model (#7)
ybelkada +1: Muennighoff- Model ckpt at 341b tokens (62e2f7ca388fba2da718c045456d8b354da2b66a) - Remove warning (06344e9b1c06991eab8bd987686afb056b3aca6d) Co-authored-by: Niklas Muennighoff <Muennighoff@users.noreply.huggingface.co>538fcc1
-
Update README.md
Younes Belkada7fac334
-
Add correct pipeline tag (#2)
ybelkada- Add correct pipeline tag (6bfebac776e18ad3ac40961629ce5eeca627faf5)51a38df
-
Update README.md (#1)
ybelkada- Update README.md (2b6926370063828b7c226ad18232cd564b18dc49)df69d83
-
Copy+Paste from updated model card, + warning.
b6b0418
-
Update README.md
d8263c9
-
Update date on Model Card
Younes Belkada80fbc65 -
Update README.md
030b11e -
Added intermediary checkpoint warning
Teven Le Scao4304d27 -
Update Model Card
Younes Belkada5118142
-
initial commit
Younes Belkada58f9b04