Image-Text-to-Text
Transformers
Safetensors
English
Bee
feature-extraction
Bee-8B
Fully-Open-MLLMs
conversational
custom_code
Instructions to use Open-Bee/Bee-8B-RL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Open-Bee/Bee-8B-RL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Open-Bee/Bee-8B-RL", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Open-Bee/Bee-8B-RL", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Open-Bee/Bee-8B-RL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Open-Bee/Bee-8B-RL" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Open-Bee/Bee-8B-RL", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Open-Bee/Bee-8B-RL
- SGLang
How to use Open-Bee/Bee-8B-RL 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 "Open-Bee/Bee-8B-RL" \ --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": "Open-Bee/Bee-8B-RL", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "Open-Bee/Bee-8B-RL" \ --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": "Open-Bee/Bee-8B-RL", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Open-Bee/Bee-8B-RL with Docker Model Runner:
docker model run hf.co/Open-Bee/Bee-8B-RL
| { | |
| "auto_map": { | |
| "AutoConfig": "configuration_bee.BeeConfig", | |
| "AutoModel": "modeling_bee.BeeForConditionalGeneration", | |
| "AutoModelForCausalLM": "modeling_bee.BeeForConditionalGeneration" | |
| }, | |
| "architectures": [ | |
| "BeeForConditionalGeneration" | |
| ], | |
| "eos_token_id": 151645, | |
| "image_grid_pinpoints": [ | |
| [ | |
| 384, | |
| 384 | |
| ], | |
| [ | |
| 384, | |
| 768 | |
| ], | |
| [ | |
| 384, | |
| 1152 | |
| ], | |
| [ | |
| 384, | |
| 1536 | |
| ], | |
| [ | |
| 384, | |
| 1920 | |
| ], | |
| [ | |
| 384, | |
| 2304 | |
| ], | |
| [ | |
| 768, | |
| 384 | |
| ], | |
| [ | |
| 768, | |
| 768 | |
| ], | |
| [ | |
| 768, | |
| 1152 | |
| ], | |
| [ | |
| 768, | |
| 1536 | |
| ], | |
| [ | |
| 768, | |
| 1920 | |
| ], | |
| [ | |
| 768, | |
| 2304 | |
| ], | |
| [ | |
| 1152, | |
| 384 | |
| ], | |
| [ | |
| 1152, | |
| 768 | |
| ], | |
| [ | |
| 1152, | |
| 1152 | |
| ], | |
| [ | |
| 1152, | |
| 1536 | |
| ], | |
| [ | |
| 1152, | |
| 1920 | |
| ], | |
| [ | |
| 1152, | |
| 2304 | |
| ], | |
| [ | |
| 1536, | |
| 384 | |
| ], | |
| [ | |
| 1536, | |
| 768 | |
| ], | |
| [ | |
| 1536, | |
| 1152 | |
| ], | |
| [ | |
| 1536, | |
| 1536 | |
| ], | |
| [ | |
| 1536, | |
| 1920 | |
| ], | |
| [ | |
| 1536, | |
| 2304 | |
| ], | |
| [ | |
| 1920, | |
| 384 | |
| ], | |
| [ | |
| 1920, | |
| 768 | |
| ], | |
| [ | |
| 1920, | |
| 1152 | |
| ], | |
| [ | |
| 1920, | |
| 1536 | |
| ], | |
| [ | |
| 1920, | |
| 1920 | |
| ], | |
| [ | |
| 1920, | |
| 2304 | |
| ], | |
| [ | |
| 2304, | |
| 384 | |
| ], | |
| [ | |
| 2304, | |
| 768 | |
| ], | |
| [ | |
| 2304, | |
| 1152 | |
| ], | |
| [ | |
| 2304, | |
| 1536 | |
| ], | |
| [ | |
| 2304, | |
| 1920 | |
| ], | |
| [ | |
| 2304, | |
| 2304 | |
| ] | |
| ], | |
| "image_token_index": 151669, | |
| "model_type": "Bee", | |
| "multimodal_projector_bias": true, | |
| "pad_token_id": 151643, | |
| "projector_hidden_act": "gelu", | |
| "text_config": { | |
| "_name_or_path": "Qwen/Qwen3-8B", | |
| "architectures": [ | |
| "Qwen3ForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 151643, | |
| "eos_token_id": 151645, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 4096, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 12288, | |
| "max_position_embeddings": 40960, | |
| "max_window_layers": 36, | |
| "model_type": "qwen3", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 36, | |
| "num_key_value_heads": 8, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": null, | |
| "rope_theta": 1000000, | |
| "sliding_window": null, | |
| "torch_dtype": "bfloat16", | |
| "use_cache": true, | |
| "use_sliding_window": false, | |
| "vocab_size": 152000 | |
| }, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.55.0", | |
| "use_image_newline_parameter": true, | |
| "video_token_index": 151670, | |
| "vision_aspect_ratio": "anyres_max_6", | |
| "vision_config": { | |
| "auto_map": { | |
| "AutoConfig": "configuration_bee.BeeConfig" | |
| }, | |
| "attention_dropout": 0.0, | |
| "hidden_act": "gelu_pytorch_tanh", | |
| "hidden_size": 1152, | |
| "image_size": 384, | |
| "intermediate_size": 4304, | |
| "layer_norm_eps": 1e-06, | |
| "model_type": "siglip_vision_model", | |
| "num_attention_heads": 16, | |
| "num_channels": 3, | |
| "num_hidden_layers": 26, | |
| "patch_size": 14, | |
| "torch_dtype": "bfloat16", | |
| "vision_use_head": false | |
| }, | |
| "vision_feature_layer": -1, | |
| "vision_feature_select_strategy": "full" | |
| } |