Instructions to use Sumail/Bubble_bee01_2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sumail/Bubble_bee01_2b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sumail/Bubble_bee01_2b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sumail/Bubble_bee01_2b") model = AutoModelForCausalLM.from_pretrained("Sumail/Bubble_bee01_2b") 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 Sumail/Bubble_bee01_2b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sumail/Bubble_bee01_2b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sumail/Bubble_bee01_2b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sumail/Bubble_bee01_2b
- SGLang
How to use Sumail/Bubble_bee01_2b 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 "Sumail/Bubble_bee01_2b" \ --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": "Sumail/Bubble_bee01_2b", "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 "Sumail/Bubble_bee01_2b" \ --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": "Sumail/Bubble_bee01_2b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Sumail/Bubble_bee01_2b with Docker Model Runner:
docker model run hf.co/Sumail/Bubble_bee01_2b
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,36 +1,3 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
-
|
| 4 |
-
- mergewss]
|
| 5 |
-
- mergekit
|
| 6 |
-
- lazymergekit
|
| 7 |
-
- tomaszki/gemma-25
|
| 8 |
-
- tomaszki/gemma-24
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Bubble_bee01_2b
|
| 12 |
-
|
| 13 |
-
Bubble_bee01_2b is a merge of the following models using [mergekit](https://github.com/cg123/mergekit):
|
| 14 |
-
* [tomaszki/gemma-25](https://huggingface.co/tomaszki/gemma-25)
|
| 15 |
-
* [tomaszki/gemma-24](https://huggingface.co/tomaszki/gemma-24)
|
| 16 |
-
|
| 17 |
-
## 🧩 Configuration
|
| 18 |
-
|
| 19 |
-
```yaml
|
| 20 |
-
slices:
|
| 21 |
-
- sources:
|
| 22 |
-
- model: tomaszki/gemma-25
|
| 23 |
-
layer_range: [0, 18]
|
| 24 |
-
- model: tomaszki/gemma-24
|
| 25 |
-
layer_range: [0, 18]
|
| 26 |
-
merge_method: slerp
|
| 27 |
-
base_model: tomaszki/gemma-25
|
| 28 |
-
parameters:
|
| 29 |
-
t:
|
| 30 |
-
- filter: self_attn
|
| 31 |
-
value: [0, 0.5, 0.3, 0.7, 1]
|
| 32 |
-
- filter: mlp
|
| 33 |
-
value: [1, 0.5, 0.7, 0.3, 0]
|
| 34 |
-
- value: 0.5
|
| 35 |
-
dtype: bfloat16
|
| 36 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|