Text Generation
Transformers
PyTorch
TensorBoard
German
bloom
feature-extraction
text-generation-inference
Instructions to use malteos/bloom-350m-german with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use malteos/bloom-350m-german with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="malteos/bloom-350m-german")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("malteos/bloom-350m-german") model = AutoModel.from_pretrained("malteos/bloom-350m-german") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use malteos/bloom-350m-german with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "malteos/bloom-350m-german" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "malteos/bloom-350m-german", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/malteos/bloom-350m-german
- SGLang
How to use malteos/bloom-350m-german 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 "malteos/bloom-350m-german" \ --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": "malteos/bloom-350m-german", "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 "malteos/bloom-350m-german" \ --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": "malteos/bloom-350m-german", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use malteos/bloom-350m-german with Docker Model Runner:
docker model run hf.co/malteos/bloom-350m-german
malteos commited on
Commit Β·
6f459ec
1
Parent(s): 2f123d1
fixed tb dir
Browse files- tensorboard/{events.out.tfevents.1657872516.jwb0726.juwels.16793.0 β main/events.out.tfevents.1657872516.jwb0726.juwels.16793.0} +0 -0
- tensorboard/{events.out.tfevents.1657873241.jwb1159.juwels.24217.0 β main/events.out.tfevents.1657873241.jwb1159.juwels.24217.0} +0 -0
- tensorboard/{events.out.tfevents.1657873594.jwb0137.juwels.12784.0 β main/events.out.tfevents.1657873594.jwb0137.juwels.12784.0} +0 -0
- tensorboard/{events.out.tfevents.1657873831.jwb0136.juwels.3281.0 β main/events.out.tfevents.1657873831.jwb0136.juwels.3281.0} +0 -0
- tensorboard/{events.out.tfevents.1657874562.jwb0470.juwels.24291.0 β main/events.out.tfevents.1657874562.jwb0470.juwels.24291.0} +0 -0
- tensorboard/{events.out.tfevents.1657891603.jwb0766.juwels.28812.0 β main/events.out.tfevents.1657891603.jwb0766.juwels.28812.0} +0 -0
- tensorboard/{events.out.tfevents.1658855815.jwb0927.juwels.20352.0 β main/events.out.tfevents.1658855815.jwb0927.juwels.20352.0} +0 -0
- tensorboard/{events.out.tfevents.1658929726.jwb1194.juwels.6044.0 β main/events.out.tfevents.1658929726.jwb1194.juwels.6044.0} +0 -0
- tensorboard/{events.out.tfevents.1659239961.jwb0931.juwels.13008.0 β main/events.out.tfevents.1659239961.jwb0931.juwels.13008.0} +0 -0
- tensorboard/{events.out.tfevents.1659374950.jwb1158.juwels.14785.0 β main/events.out.tfevents.1659374950.jwb1158.juwels.14785.0} +0 -0
tensorboard/{events.out.tfevents.1657872516.jwb0726.juwels.16793.0 β main/events.out.tfevents.1657872516.jwb0726.juwels.16793.0}
RENAMED
|
File without changes
|
tensorboard/{events.out.tfevents.1657873241.jwb1159.juwels.24217.0 β main/events.out.tfevents.1657873241.jwb1159.juwels.24217.0}
RENAMED
|
File without changes
|
tensorboard/{events.out.tfevents.1657873594.jwb0137.juwels.12784.0 β main/events.out.tfevents.1657873594.jwb0137.juwels.12784.0}
RENAMED
|
File without changes
|
tensorboard/{events.out.tfevents.1657873831.jwb0136.juwels.3281.0 β main/events.out.tfevents.1657873831.jwb0136.juwels.3281.0}
RENAMED
|
File without changes
|
tensorboard/{events.out.tfevents.1657874562.jwb0470.juwels.24291.0 β main/events.out.tfevents.1657874562.jwb0470.juwels.24291.0}
RENAMED
|
File without changes
|
tensorboard/{events.out.tfevents.1657891603.jwb0766.juwels.28812.0 β main/events.out.tfevents.1657891603.jwb0766.juwels.28812.0}
RENAMED
|
File without changes
|
tensorboard/{events.out.tfevents.1658855815.jwb0927.juwels.20352.0 β main/events.out.tfevents.1658855815.jwb0927.juwels.20352.0}
RENAMED
|
File without changes
|
tensorboard/{events.out.tfevents.1658929726.jwb1194.juwels.6044.0 β main/events.out.tfevents.1658929726.jwb1194.juwels.6044.0}
RENAMED
|
File without changes
|
tensorboard/{events.out.tfevents.1659239961.jwb0931.juwels.13008.0 β main/events.out.tfevents.1659239961.jwb0931.juwels.13008.0}
RENAMED
|
File without changes
|
tensorboard/{events.out.tfevents.1659374950.jwb1158.juwels.14785.0 β main/events.out.tfevents.1659374950.jwb1158.juwels.14785.0}
RENAMED
|
File without changes
|