Text Generation
Transformers
PyTorch
JAX
Safetensors
bloom
feature-extraction
text-generation-inference
Instructions to use model-attribution-challenge/bloom-560m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use model-attribution-challenge/bloom-560m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="model-attribution-challenge/bloom-560m")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("model-attribution-challenge/bloom-560m") model = AutoModel.from_pretrained("model-attribution-challenge/bloom-560m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use model-attribution-challenge/bloom-560m 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-560m" # 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-560m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/model-attribution-challenge/bloom-560m
- SGLang
How to use model-attribution-challenge/bloom-560m 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-560m" \ --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-560m", "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-560m" \ --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-560m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use model-attribution-challenge/bloom-560m with Docker Model Runner:
docker model run hf.co/model-attribution-challenge/bloom-560m
Commit History
-
Upload model.safetensors with huggingface_hub (#26)
- Upload model.safetensors with huggingface_hub (319b68183c8cb6d7f997c7fdefc47e997caf12ce) Co-authored-by: Nicolas Patry <Narsil@users.noreply.huggingface.co>afe2e6f
-
Update config.json
Discussed here: Discussed here: https://huggingface.co/bigscience/bloom/discussions/77#63331c7266b27c4ad1957d52148e7a5
-
Update README.md (#10)
- Update README.md (9f8fbfd40745829b76f70843bd2349110c66261f) - Update README.md (6773df99000cd2a545c238e6a9ec17ea7fa64177)7b5134c
-
Remove warning (#9)
- Remove warning (8c7426745e94d9e675082c91a103dab73a285205)ef09465 -
341b tokens model (#5)
- Remove checkpoint warning (50bb55be913163f2f9db6466ba8140d52472b8d8) - Update to 341B tokens checkpoint at 659500 steps (00c8ba2faa9768b35d4887952062bbbcf5d8426f) - Cast checkpoint to FP16 (393c2584b8fcf7f011233dc95f92a45f805becf4) - Update README (d62d52540c5d6f3171475942103d68d9960e9627) - Copy README from master (1320b0494b211db9cb86d1b521feec5c6e10674e) - Update README.md (efaca0f0ec40f79c8d08b9790670a1cc67ee54af) - Update README.md (3bedf50da26db3e8f2ea09cc2a495d9b07a4eb18)ff9e624
-
Update tokenizer_config.json
Younes Belkada3e8a2f1
-
Update config.json (#8)
ybelkada +1: Muennighoff - Update config.json (399ad6ec4f70a571499c8c52af6a4d9e5164db99) Co-authored-by: Niklas Muennighoff <Muennighoff@users.noreply.huggingface.co>7fdf123
-
Update README.md
Younes Belkadade26ece -
Remove .dev from transformers version (#7)
ybelkada- Remove .dev from transformers version (23614d80cae07e1b07ae4ac81d2fe4e5772a9711) - add architecture (f03b6ecb2963a651def14ae6db6c2daa95263f4c)5ce56ba
-
Add Flax weights (#6)
- Add Flax weights (2cb2e60902eafb3464a178b4b2f0398fbcf0dd1a) Co-authored-by: Arthur Zucker <ArthurZ@users.noreply.huggingface.co>697a51b
-
Update tokenizer_config.json (#4)
ybelkada- Update tokenizer_config.json (60a271466ff643e2b51ab4cce80f681e438d005b)0628d1b
-
Add correct pipeline (#2)
ybelkada- Add correct pipeline (dcddf03f88463d5a706688405d371904b714b0a4)4a0a1b7
-
Update config.json
Younes Belkadae9703d8
-
Slightly modify model card (#1)
ybelkada- add small modifs readme (2fd4bd96c1270ff50e922f8bec3fdd110b41f2ec)d586a2f
-
Update config.json
Younes Belkada8ad61ef
-
Copy+paste from updated model card, + warning.
45a9da2
-
Update README.md
b277c40
-
Update date on Model Card
Younes Belkada78c24b3 -
Added intermediary checkpoint warning
Teven Le Scao6a83bd4 -
Update Model Card
Younes Belkadabec2a0d
-
Update config.json
Younes Belkada5fc13c0 -
Create LICENSE
Younes Belkada6c2ccb9 -
new data
11545ee -
new data
d7bae2c
-
Upload special_tokens_map.json
Younes Belkadae5e66cc -
Upload tokenizer_config.json
Younes Belkada9e4cbbc -
Upload tokenizer.json
Younes Belkada65fde0d -
initial commit
Younes Belkadacd392f9