Text Generation
Transformers
Safetensors
PyTorch
English
bananamind21_unified
causal-lm
language-model
base-model
small-language-model
bananamind
bananamind2
bananamind21-unified
three-tower
relay
multi-tower
fineweb-hq
dclm
cosmopedia-v2
finemath
digit-tokenizer
custom-code
trust-remote-code
custom-architecture
custom_code
Instructions to use BananaMind/BananaMind-2.1-Unified with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BananaMind/BananaMind-2.1-Unified with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BananaMind/BananaMind-2.1-Unified", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("BananaMind/BananaMind-2.1-Unified", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BananaMind/BananaMind-2.1-Unified with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BananaMind/BananaMind-2.1-Unified" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BananaMind/BananaMind-2.1-Unified", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BananaMind/BananaMind-2.1-Unified
- SGLang
How to use BananaMind/BananaMind-2.1-Unified 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 "BananaMind/BananaMind-2.1-Unified" \ --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": "BananaMind/BananaMind-2.1-Unified", "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 "BananaMind/BananaMind-2.1-Unified" \ --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": "BananaMind/BananaMind-2.1-Unified", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BananaMind/BananaMind-2.1-Unified with Docker Model Runner:
docker model run hf.co/BananaMind/BananaMind-2.1-Unified
| { | |
| "architectures": [ | |
| "BananaMind21UnifiedForCausalLM" | |
| ], | |
| "model_type": "bananamind21_unified", | |
| "auto_map": { | |
| "AutoConfig": "configuration_bananamind21unified.BananaMind21UnifiedConfig", | |
| "AutoModelForCausalLM": "modeling_bananamind21unified.BananaMind21UnifiedForCausalLM" | |
| }, | |
| "vocab_size": 8192, | |
| "head_dim": 64, | |
| "max_position_embeddings": 4096, | |
| "rope_theta": 100000.0, | |
| "rms_norm_eps": 1e-06, | |
| "embed_width": 384, | |
| "hidden_size_a": 256, | |
| "num_hidden_layers_a": 14, | |
| "num_attention_heads_a": 4, | |
| "num_key_value_heads_a": 1, | |
| "intermediate_size_a": 704, | |
| "hidden_size_b": 320, | |
| "num_hidden_layers_b": 5, | |
| "num_attention_heads_b": 5, | |
| "num_key_value_heads_b": 1, | |
| "intermediate_size_b": 960, | |
| "hidden_size_c": 384, | |
| "num_hidden_layers_c": 6, | |
| "num_attention_heads_c": 6, | |
| "num_key_value_heads_c": 2, | |
| "intermediate_size_c": 1024, | |
| "a_read": [ | |
| 5, | |
| 9, | |
| 12 | |
| ], | |
| "a_land": [ | |
| 7, | |
| 11, | |
| 14 | |
| ], | |
| "c_read": [ | |
| 2, | |
| 4, | |
| 5 | |
| ], | |
| "c_land": [ | |
| 3, | |
| 5, | |
| 6 | |
| ], | |
| "b_land": [ | |
| 1, | |
| 3, | |
| 5 | |
| ], | |
| "b_read": [ | |
| 2, | |
| 4, | |
| 5 | |
| ], | |
| "gate_init": 0.01, | |
| "cut_bridges": false, | |
| "hidden_size": 384, | |
| "tie_word_embeddings": false, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "pad_token_id": 0, | |
| "torch_dtype": "float32", | |
| "_name_or_path": "Banaxi-Tech/unified-2.1-test" | |
| } | |