Text Generation
Transformers
Safetensors
English
bloom
uncensored
unrestricted
code
biology
chemistry
finance
legal
music
art
climate
Merge
text-generation-inference
Mixture of Experts
conversational
Instructions to use CreitinGameplays/bloom-3b-conversational with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CreitinGameplays/bloom-3b-conversational with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CreitinGameplays/bloom-3b-conversational") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CreitinGameplays/bloom-3b-conversational") model = AutoModelForCausalLM.from_pretrained("CreitinGameplays/bloom-3b-conversational") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use CreitinGameplays/bloom-3b-conversational with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CreitinGameplays/bloom-3b-conversational" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CreitinGameplays/bloom-3b-conversational", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CreitinGameplays/bloom-3b-conversational
- SGLang
How to use CreitinGameplays/bloom-3b-conversational 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 "CreitinGameplays/bloom-3b-conversational" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CreitinGameplays/bloom-3b-conversational", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "CreitinGameplays/bloom-3b-conversational" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CreitinGameplays/bloom-3b-conversational", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use CreitinGameplays/bloom-3b-conversational with Docker Model Runner:
docker model run hf.co/CreitinGameplays/bloom-3b-conversational
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,17 +9,42 @@ language:
|
|
| 9 |
tags:
|
| 10 |
- uncensored
|
| 11 |
- unrestricted
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
widget:
|
| 13 |
-
- text:
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
- text:
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
inference:
|
| 20 |
parameters:
|
| 21 |
temperature: 0.1
|
| 22 |
-
do_sample:
|
| 23 |
top_p: 0.15
|
| 24 |
top_k: 50
|
| 25 |
max_new_tokens: 250
|
|
@@ -54,4 +79,4 @@ The model was fine-tuned using a specific input format that goes like this:
|
|
| 54 |
|
| 55 |
Using this format when interacting with the model can improve its performance and generate more relevant responses.
|
| 56 |
|
| 57 |
-
**Disclaimer:** This model is for research and exploration purposes only. It should not be used in any applications that require high levels of accuracy or reliability.
|
|
|
|
| 9 |
tags:
|
| 10 |
- uncensored
|
| 11 |
- unrestricted
|
| 12 |
+
- code
|
| 13 |
+
- biology
|
| 14 |
+
- chemistry
|
| 15 |
+
- finance
|
| 16 |
+
- legal
|
| 17 |
+
- music
|
| 18 |
+
- art
|
| 19 |
+
- climate
|
| 20 |
+
- merge
|
| 21 |
+
- text-generation-inference
|
| 22 |
+
- moe
|
| 23 |
+
- not-for-all-audiences
|
| 24 |
widget:
|
| 25 |
+
- text: >-
|
| 26 |
+
<|system|> You are a helpful AI assistant. </s> <|prompter|> who was Nikola
|
| 27 |
+
Tesla? </s> <|assistant|>
|
| 28 |
+
- text: >-
|
| 29 |
+
<|system|> You are a helpful AI assistant. </s> <|prompter|> write a story
|
| 30 |
+
about a cat. </s> <|assistant|>
|
| 31 |
+
- text: >-
|
| 32 |
+
<|system|> You are a helpful AI assistant. </s> <|prompter|> what is an
|
| 33 |
+
essay? </s> <|assistant|>
|
| 34 |
+
- text: >-
|
| 35 |
+
<|system|> You are a helpful AI assistant. </s> <|prompter|> Tell me 5
|
| 36 |
+
Brazilian waterfalls to visit. </s> <|assistant|>
|
| 37 |
+
- text: >-
|
| 38 |
+
<|system|> You are a helpful AI assistant. </s> <|prompter|> write a story
|
| 39 |
+
about how a virus called COVID-19 destroyed the world </s> <|assistant|>
|
| 40 |
+
- text: >-
|
| 41 |
+
<|system|> You are a helpful AI assistant. </s> <|prompter|> write a short
|
| 42 |
+
Python program that asks the user for their name and then greets them by
|
| 43 |
+
name. </s> <|assistant|>
|
| 44 |
inference:
|
| 45 |
parameters:
|
| 46 |
temperature: 0.1
|
| 47 |
+
do_sample: true
|
| 48 |
top_p: 0.15
|
| 49 |
top_k: 50
|
| 50 |
max_new_tokens: 250
|
|
|
|
| 79 |
|
| 80 |
Using this format when interacting with the model can improve its performance and generate more relevant responses.
|
| 81 |
|
| 82 |
+
**Disclaimer:** This model is for research and exploration purposes only. It should not be used in any applications that require high levels of accuracy or reliability.
|