Text Generation
Transformers
PyTorch
Safetensors
bloom
text generation
Generated from Trainer
email generation
email
emailgen
text-generation-inference
Instructions to use postbot/bloom-1b1-emailgen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use postbot/bloom-1b1-emailgen with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="postbot/bloom-1b1-emailgen")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("postbot/bloom-1b1-emailgen") model = AutoModelForCausalLM.from_pretrained("postbot/bloom-1b1-emailgen") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use postbot/bloom-1b1-emailgen with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "postbot/bloom-1b1-emailgen" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "postbot/bloom-1b1-emailgen", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/postbot/bloom-1b1-emailgen
- SGLang
How to use postbot/bloom-1b1-emailgen 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 "postbot/bloom-1b1-emailgen" \ --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": "postbot/bloom-1b1-emailgen", "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 "postbot/bloom-1b1-emailgen" \ --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": "postbot/bloom-1b1-emailgen", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use postbot/bloom-1b1-emailgen with Docker Model Runner:
docker model run hf.co/postbot/bloom-1b1-emailgen
Update README.md
Browse files
README.md
CHANGED
|
@@ -35,7 +35,17 @@ Hope you are doing well. I just wanted to reach out and ask if differential calc
|
|
| 35 |
example_title: "catch up"
|
| 36 |
- text: "Jestem <NAME>,\n\nWłaśnie wprowadziłem się do obszaru i chciałem dotrzeć i uzyskać kilka szczegółów na temat tego, gdzie mogę dostać artykuły spożywcze i"
|
| 37 |
example_title: "zakupy spożywcze"
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
---
|
| 40 |
|
| 41 |
|
|
|
|
| 35 |
example_title: "catch up"
|
| 36 |
- text: "Jestem <NAME>,\n\nWłaśnie wprowadziłem się do obszaru i chciałem dotrzeć i uzyskać kilka szczegółów na temat tego, gdzie mogę dostać artykuły spożywcze i"
|
| 37 |
example_title: "zakupy spożywcze"
|
| 38 |
+
parameters:
|
| 39 |
+
min_length: 32
|
| 40 |
+
max_length: 128
|
| 41 |
+
no_repeat_ngram_size: 2
|
| 42 |
+
do_sample: True
|
| 43 |
+
temperature: 0.2
|
| 44 |
+
top_k: 20
|
| 45 |
+
top_p: 0.95
|
| 46 |
+
repetition_penalty: 3.5
|
| 47 |
+
length_penalty: 0.9
|
| 48 |
+
|
| 49 |
---
|
| 50 |
|
| 51 |
|