Text Generation
Transformers
Safetensors
Chinese
mini_gemini_qwen2
vlm
MLLM
Multi-Modal LLM
conversational
Instructions to use MonolithFoundation/Bumblebee with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MonolithFoundation/Bumblebee with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MonolithFoundation/Bumblebee") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("MonolithFoundation/Bumblebee", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MonolithFoundation/Bumblebee with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MonolithFoundation/Bumblebee" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MonolithFoundation/Bumblebee", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MonolithFoundation/Bumblebee
- SGLang
How to use MonolithFoundation/Bumblebee 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 "MonolithFoundation/Bumblebee" \ --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": "MonolithFoundation/Bumblebee", "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 "MonolithFoundation/Bumblebee" \ --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": "MonolithFoundation/Bumblebee", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MonolithFoundation/Bumblebee with Docker Model Runner:
docker model run hf.co/MonolithFoundation/Bumblebee
| { | |
| "_name_or_path": "./checkpoints/qwen-14b-chat", | |
| "adapt_size": false, | |
| "architectures": [ | |
| "MiniGeminiQwen2ForCausalLM" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 151643, | |
| "eos_token_id": 151645, | |
| "freeze_mm_mlp_adapter": false, | |
| "hidden_act": "silu", | |
| "hidden_size": 5120, | |
| "image_aspect_ratio": "pad", | |
| "image_global": false, | |
| "image_grid": 1, | |
| "image_grid_pinpoints": null, | |
| "image_size_aux": 768, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 13696, | |
| "max_position_embeddings": 32768, | |
| "max_window_layers": 35, | |
| "mm_hidden_size": 1024, | |
| "mm_hidden_size_aux": 2880, | |
| "mm_projector_lr": null, | |
| "mm_projector_type": "mlp2x_gelu", | |
| "mm_use_im_patch_token": false, | |
| "mm_use_im_start_end": false, | |
| "mm_vision_select_feature": "patch", | |
| "mm_vision_select_layer": -2, | |
| "mm_vision_tower": "./checkpoints/clip-vit-large-patch14-336", | |
| "mm_vision_tower_aux": "./checkpoints/openclip-convnext-large-d-320-laion2B-s29B-b131K-ft-soup", | |
| "model_type": "mini_gemini_qwen2", | |
| "new_img_size": null, | |
| "num_attention_heads": 40, | |
| "num_hidden_layers": 40, | |
| "num_key_value_heads": 40, | |
| "optimize_vision_tower": false, | |
| "optimize_vision_tower_aux": false, | |
| "rms_norm_eps": 1e-06, | |
| "rope_theta": 1000000.0, | |
| "sliding_window": 32768, | |
| "tie_word_embeddings": false, | |
| "tokenizer_model_max_length": 2048, | |
| "tokenizer_padding_side": "right", | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.39.3", | |
| "tune_mm_mlp_adapter": false, | |
| "use_cache": true, | |
| "use_mm_proj": true, | |
| "use_sliding_window": false, | |
| "vocab_size": 152064 | |
| } | |