Image-Text-to-Text
Transformers
Safetensors
GGUF
English
gemma4
text-generation-inference
unsloth
conversational
4-bit precision
bitsandbytes
Instructions to use rimashussain/gemma4-cubicasa-floorplan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rimashussain/gemma4-cubicasa-floorplan with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="rimashussain/gemma4-cubicasa-floorplan") 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 AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("rimashussain/gemma4-cubicasa-floorplan") model = AutoModelForMultimodalLM.from_pretrained("rimashussain/gemma4-cubicasa-floorplan") 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?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - llama-cpp-python
How to use rimashussain/gemma4-cubicasa-floorplan with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="rimashussain/gemma4-cubicasa-floorplan", filename="gemma-4-E4B-it.F16-mmproj.gguf", )
llm.create_chat_completion( 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" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use rimashussain/gemma4-cubicasa-floorplan with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf rimashussain/gemma4-cubicasa-floorplan:F16 # Run inference directly in the terminal: llama cli -hf rimashussain/gemma4-cubicasa-floorplan:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf rimashussain/gemma4-cubicasa-floorplan:F16 # Run inference directly in the terminal: llama cli -hf rimashussain/gemma4-cubicasa-floorplan:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf rimashussain/gemma4-cubicasa-floorplan:F16 # Run inference directly in the terminal: ./llama-cli -hf rimashussain/gemma4-cubicasa-floorplan:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf rimashussain/gemma4-cubicasa-floorplan:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf rimashussain/gemma4-cubicasa-floorplan:F16
Use Docker
docker model run hf.co/rimashussain/gemma4-cubicasa-floorplan:F16
- LM Studio
- Jan
- vLLM
How to use rimashussain/gemma4-cubicasa-floorplan with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rimashussain/gemma4-cubicasa-floorplan" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rimashussain/gemma4-cubicasa-floorplan", "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/rimashussain/gemma4-cubicasa-floorplan:F16
- SGLang
How to use rimashussain/gemma4-cubicasa-floorplan 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 "rimashussain/gemma4-cubicasa-floorplan" \ --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": "rimashussain/gemma4-cubicasa-floorplan", "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 "rimashussain/gemma4-cubicasa-floorplan" \ --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": "rimashussain/gemma4-cubicasa-floorplan", "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" } } ] } ] }' - Ollama
How to use rimashussain/gemma4-cubicasa-floorplan with Ollama:
ollama run hf.co/rimashussain/gemma4-cubicasa-floorplan:F16
- Unsloth Studio
How to use rimashussain/gemma4-cubicasa-floorplan with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rimashussain/gemma4-cubicasa-floorplan to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rimashussain/gemma4-cubicasa-floorplan to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for rimashussain/gemma4-cubicasa-floorplan to start chatting
- Pi
How to use rimashussain/gemma4-cubicasa-floorplan with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf rimashussain/gemma4-cubicasa-floorplan:F16
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "rimashussain/gemma4-cubicasa-floorplan:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use rimashussain/gemma4-cubicasa-floorplan with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf rimashussain/gemma4-cubicasa-floorplan:F16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default rimashussain/gemma4-cubicasa-floorplan:F16
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use rimashussain/gemma4-cubicasa-floorplan with Docker Model Runner:
docker model run hf.co/rimashussain/gemma4-cubicasa-floorplan:F16
- Lemonade
How to use rimashussain/gemma4-cubicasa-floorplan with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull rimashussain/gemma4-cubicasa-floorplan:F16
Run and chat with the model
lemonade run user.gemma4-cubicasa-floorplan-F16
List all available models
lemonade list
Round 5 - Arsenal East real drawing training
Browse files- config.json +205 -192
- generation_config.json +14 -0
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -1,200 +1,213 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
},
|
| 29 |
-
"model_type": "gemma4_audio",
|
| 30 |
-
"num_attention_heads": 8,
|
| 31 |
-
"num_hidden_layers": 12,
|
| 32 |
-
"output_attentions": false,
|
| 33 |
-
"output_hidden_states": false,
|
| 34 |
-
"output_proj_dims": 1536,
|
| 35 |
-
"problem_type": null,
|
| 36 |
-
"residual_weight": 0.5,
|
| 37 |
-
"return_dict": true,
|
| 38 |
-
"rms_norm_eps": 1e-06,
|
| 39 |
-
"subsampling_conv_channels": [
|
| 40 |
-
128,
|
| 41 |
-
32
|
| 42 |
-
],
|
| 43 |
-
"use_clipped_linears": true
|
| 44 |
},
|
| 45 |
-
"
|
| 46 |
-
"
|
| 47 |
-
"
|
| 48 |
-
"
|
| 49 |
-
"
|
| 50 |
-
"
|
| 51 |
-
"
|
| 52 |
-
"
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
| 55 |
],
|
| 56 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
"initializer_range": 0.02,
|
| 58 |
-
"
|
| 59 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
"pad_token_id": 0,
|
| 61 |
-
"
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
"
|
| 65 |
-
"
|
| 66 |
-
"
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
"
|
| 70 |
-
"
|
| 71 |
-
|
| 72 |
-
"head_dim": 256,
|
| 73 |
-
"hidden_activation": "gelu_pytorch_tanh",
|
| 74 |
-
"hidden_size": 2560,
|
| 75 |
-
"hidden_size_per_layer_input": 256,
|
| 76 |
-
"initializer_range": 0.02,
|
| 77 |
-
"intermediate_size": 10240,
|
| 78 |
-
"layer_types": [
|
| 79 |
-
"sliding_attention",
|
| 80 |
-
"sliding_attention",
|
| 81 |
-
"sliding_attention",
|
| 82 |
-
"sliding_attention",
|
| 83 |
-
"sliding_attention",
|
| 84 |
-
"full_attention",
|
| 85 |
-
"sliding_attention",
|
| 86 |
-
"sliding_attention",
|
| 87 |
-
"sliding_attention",
|
| 88 |
-
"sliding_attention",
|
| 89 |
-
"sliding_attention",
|
| 90 |
-
"full_attention",
|
| 91 |
-
"sliding_attention",
|
| 92 |
-
"sliding_attention",
|
| 93 |
-
"sliding_attention",
|
| 94 |
-
"sliding_attention",
|
| 95 |
-
"sliding_attention",
|
| 96 |
-
"full_attention",
|
| 97 |
-
"sliding_attention",
|
| 98 |
-
"sliding_attention",
|
| 99 |
-
"sliding_attention",
|
| 100 |
-
"sliding_attention",
|
| 101 |
-
"sliding_attention",
|
| 102 |
-
"full_attention",
|
| 103 |
-
"sliding_attention",
|
| 104 |
-
"sliding_attention",
|
| 105 |
-
"sliding_attention",
|
| 106 |
-
"sliding_attention",
|
| 107 |
-
"sliding_attention",
|
| 108 |
-
"full_attention",
|
| 109 |
-
"sliding_attention",
|
| 110 |
-
"sliding_attention",
|
| 111 |
-
"sliding_attention",
|
| 112 |
-
"sliding_attention",
|
| 113 |
-
"sliding_attention",
|
| 114 |
-
"full_attention",
|
| 115 |
-
"sliding_attention",
|
| 116 |
-
"sliding_attention",
|
| 117 |
-
"sliding_attention",
|
| 118 |
-
"sliding_attention",
|
| 119 |
-
"sliding_attention",
|
| 120 |
-
"full_attention"
|
| 121 |
-
],
|
| 122 |
-
"max_position_embeddings": 131072,
|
| 123 |
-
"model_type": "gemma4_text",
|
| 124 |
-
"moe_intermediate_size": null,
|
| 125 |
-
"num_attention_heads": 8,
|
| 126 |
-
"num_experts": null,
|
| 127 |
-
"num_global_key_value_heads": null,
|
| 128 |
-
"num_hidden_layers": 42,
|
| 129 |
-
"num_key_value_heads": 2,
|
| 130 |
-
"num_kv_shared_layers": 18,
|
| 131 |
-
"pad_token_id": 0,
|
| 132 |
-
"rms_norm_eps": 1e-06,
|
| 133 |
-
"rope_parameters": {
|
| 134 |
-
"full_attention": {
|
| 135 |
-
"partial_rotary_factor": 0.25,
|
| 136 |
-
"rope_theta": 1000000.0,
|
| 137 |
-
"rope_type": "proportional"
|
| 138 |
-
},
|
| 139 |
-
"sliding_attention": {
|
| 140 |
-
"rope_theta": 10000.0,
|
| 141 |
-
"rope_type": "default"
|
| 142 |
-
}
|
| 143 |
-
},
|
| 144 |
-
"sliding_window": 512,
|
| 145 |
-
"tie_word_embeddings": true,
|
| 146 |
-
"top_k_experts": null,
|
| 147 |
-
"use_bidirectional_attention": null,
|
| 148 |
-
"use_cache": true,
|
| 149 |
-
"use_double_wide_mlp": false,
|
| 150 |
-
"vocab_size": 262144,
|
| 151 |
-
"vocab_size_per_layer_input": 262144
|
| 152 |
},
|
|
|
|
| 153 |
"tie_word_embeddings": true,
|
| 154 |
-
"
|
| 155 |
-
"
|
| 156 |
-
"
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 198 |
},
|
| 199 |
-
"
|
| 200 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Gemma4ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"audio_config": {
|
| 6 |
+
"_name_or_path": "",
|
| 7 |
+
"architectures": null,
|
| 8 |
+
"attention_chunk_size": 12,
|
| 9 |
+
"attention_context_left": 13,
|
| 10 |
+
"attention_context_right": 0,
|
| 11 |
+
"attention_invalid_logits_value": -1000000000.0,
|
| 12 |
+
"attention_logit_cap": 50.0,
|
| 13 |
+
"chunk_size_feed_forward": 0,
|
| 14 |
+
"conv_kernel_size": 5,
|
| 15 |
+
"dtype": "bfloat16",
|
| 16 |
+
"gradient_clipping": 10000000000.0,
|
| 17 |
+
"hidden_act": "silu",
|
| 18 |
+
"hidden_size": 1024,
|
| 19 |
+
"id2label": {
|
| 20 |
+
"0": "LABEL_0",
|
| 21 |
+
"1": "LABEL_1"
|
| 22 |
+
},
|
| 23 |
+
"initializer_range": 0.02,
|
| 24 |
+
"is_encoder_decoder": false,
|
| 25 |
+
"label2id": {
|
| 26 |
+
"LABEL_0": 0,
|
| 27 |
+
"LABEL_1": 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
},
|
| 29 |
+
"model_type": "gemma4_audio",
|
| 30 |
+
"num_attention_heads": 8,
|
| 31 |
+
"num_hidden_layers": 12,
|
| 32 |
+
"output_attentions": false,
|
| 33 |
+
"output_hidden_states": false,
|
| 34 |
+
"output_proj_dims": 1536,
|
| 35 |
+
"problem_type": null,
|
| 36 |
+
"residual_weight": 0.5,
|
| 37 |
+
"return_dict": true,
|
| 38 |
+
"rms_norm_eps": 1e-06,
|
| 39 |
+
"subsampling_conv_channels": [
|
| 40 |
+
128,
|
| 41 |
+
32
|
| 42 |
],
|
| 43 |
+
"use_clipped_linears": true
|
| 44 |
+
},
|
| 45 |
+
"audio_token_id": 258881,
|
| 46 |
+
"boa_token_id": 256000,
|
| 47 |
+
"boi_token_id": 255999,
|
| 48 |
+
"dtype": "float32",
|
| 49 |
+
"eoa_token_id": 258883,
|
| 50 |
+
"eoa_token_index": 258883,
|
| 51 |
+
"eoi_token_id": 258882,
|
| 52 |
+
"eos_token_id": [
|
| 53 |
+
1,
|
| 54 |
+
106
|
| 55 |
+
],
|
| 56 |
+
"image_token_id": 258880,
|
| 57 |
+
"initializer_range": 0.02,
|
| 58 |
+
"model_type": "gemma4",
|
| 59 |
+
"quantization_config": {
|
| 60 |
+
"_load_in_4bit": true,
|
| 61 |
+
"_load_in_8bit": false,
|
| 62 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 63 |
+
"bnb_4bit_quant_storage": "uint8",
|
| 64 |
+
"bnb_4bit_quant_type": "nf4",
|
| 65 |
+
"bnb_4bit_use_double_quant": true,
|
| 66 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 67 |
+
"llm_int8_has_fp16_weight": false,
|
| 68 |
+
"llm_int8_skip_modules": null,
|
| 69 |
+
"llm_int8_threshold": 6.0,
|
| 70 |
+
"load_in_4bit": true,
|
| 71 |
+
"load_in_8bit": false,
|
| 72 |
+
"quant_method": "bitsandbytes"
|
| 73 |
+
},
|
| 74 |
+
"text_config": {
|
| 75 |
+
"attention_bias": false,
|
| 76 |
+
"attention_dropout": 0.0,
|
| 77 |
+
"attention_k_eq_v": false,
|
| 78 |
+
"bos_token_id": 2,
|
| 79 |
+
"dtype": "bfloat16",
|
| 80 |
+
"enable_moe_block": false,
|
| 81 |
+
"eos_token_id": 1,
|
| 82 |
+
"expert_intermediate_size": null,
|
| 83 |
+
"final_logit_softcapping": 30.0,
|
| 84 |
+
"global_head_dim": 512,
|
| 85 |
+
"head_dim": 256,
|
| 86 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 87 |
+
"hidden_size": 2560,
|
| 88 |
+
"hidden_size_per_layer_input": 256,
|
| 89 |
"initializer_range": 0.02,
|
| 90 |
+
"intermediate_size": 10240,
|
| 91 |
+
"layer_types": [
|
| 92 |
+
"sliding_attention",
|
| 93 |
+
"sliding_attention",
|
| 94 |
+
"sliding_attention",
|
| 95 |
+
"sliding_attention",
|
| 96 |
+
"sliding_attention",
|
| 97 |
+
"full_attention",
|
| 98 |
+
"sliding_attention",
|
| 99 |
+
"sliding_attention",
|
| 100 |
+
"sliding_attention",
|
| 101 |
+
"sliding_attention",
|
| 102 |
+
"sliding_attention",
|
| 103 |
+
"full_attention",
|
| 104 |
+
"sliding_attention",
|
| 105 |
+
"sliding_attention",
|
| 106 |
+
"sliding_attention",
|
| 107 |
+
"sliding_attention",
|
| 108 |
+
"sliding_attention",
|
| 109 |
+
"full_attention",
|
| 110 |
+
"sliding_attention",
|
| 111 |
+
"sliding_attention",
|
| 112 |
+
"sliding_attention",
|
| 113 |
+
"sliding_attention",
|
| 114 |
+
"sliding_attention",
|
| 115 |
+
"full_attention",
|
| 116 |
+
"sliding_attention",
|
| 117 |
+
"sliding_attention",
|
| 118 |
+
"sliding_attention",
|
| 119 |
+
"sliding_attention",
|
| 120 |
+
"sliding_attention",
|
| 121 |
+
"full_attention",
|
| 122 |
+
"sliding_attention",
|
| 123 |
+
"sliding_attention",
|
| 124 |
+
"sliding_attention",
|
| 125 |
+
"sliding_attention",
|
| 126 |
+
"sliding_attention",
|
| 127 |
+
"full_attention",
|
| 128 |
+
"sliding_attention",
|
| 129 |
+
"sliding_attention",
|
| 130 |
+
"sliding_attention",
|
| 131 |
+
"sliding_attention",
|
| 132 |
+
"sliding_attention",
|
| 133 |
+
"full_attention"
|
| 134 |
+
],
|
| 135 |
+
"max_position_embeddings": 131072,
|
| 136 |
+
"model_type": "gemma4_text",
|
| 137 |
+
"moe_intermediate_size": null,
|
| 138 |
+
"num_attention_heads": 8,
|
| 139 |
+
"num_experts": null,
|
| 140 |
+
"num_global_key_value_heads": null,
|
| 141 |
+
"num_hidden_layers": 42,
|
| 142 |
+
"num_key_value_heads": 2,
|
| 143 |
+
"num_kv_shared_layers": 18,
|
| 144 |
"pad_token_id": 0,
|
| 145 |
+
"rms_norm_eps": 1e-06,
|
| 146 |
+
"rope_parameters": {
|
| 147 |
+
"full_attention": {
|
| 148 |
+
"partial_rotary_factor": 0.25,
|
| 149 |
+
"rope_theta": 1000000.0,
|
| 150 |
+
"rope_type": "proportional"
|
| 151 |
+
},
|
| 152 |
+
"sliding_attention": {
|
| 153 |
+
"rope_theta": 10000.0,
|
| 154 |
+
"rope_type": "default"
|
| 155 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
},
|
| 157 |
+
"sliding_window": 512,
|
| 158 |
"tie_word_embeddings": true,
|
| 159 |
+
"top_k_experts": null,
|
| 160 |
+
"use_bidirectional_attention": null,
|
| 161 |
+
"use_cache": true,
|
| 162 |
+
"use_double_wide_mlp": false,
|
| 163 |
+
"vocab_size": 262144,
|
| 164 |
+
"vocab_size_per_layer_input": 262144
|
| 165 |
+
},
|
| 166 |
+
"tie_word_embeddings": true,
|
| 167 |
+
"transformers_version": "5.5.4",
|
| 168 |
+
"video_token_id": 258884,
|
| 169 |
+
"vision_config": {
|
| 170 |
+
"_name_or_path": "",
|
| 171 |
+
"architectures": null,
|
| 172 |
+
"attention_bias": false,
|
| 173 |
+
"attention_dropout": 0.0,
|
| 174 |
+
"chunk_size_feed_forward": 0,
|
| 175 |
+
"default_output_length": 280,
|
| 176 |
+
"dtype": "bfloat16",
|
| 177 |
+
"global_head_dim": 64,
|
| 178 |
+
"head_dim": 64,
|
| 179 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 180 |
+
"hidden_size": 768,
|
| 181 |
+
"id2label": {
|
| 182 |
+
"0": "LABEL_0",
|
| 183 |
+
"1": "LABEL_1"
|
| 184 |
+
},
|
| 185 |
+
"initializer_range": 0.02,
|
| 186 |
+
"intermediate_size": 3072,
|
| 187 |
+
"is_encoder_decoder": false,
|
| 188 |
+
"label2id": {
|
| 189 |
+
"LABEL_0": 0,
|
| 190 |
+
"LABEL_1": 1
|
| 191 |
+
},
|
| 192 |
+
"max_position_embeddings": 131072,
|
| 193 |
+
"model_type": "gemma4_vision",
|
| 194 |
+
"num_attention_heads": 12,
|
| 195 |
+
"num_hidden_layers": 16,
|
| 196 |
+
"num_key_value_heads": 12,
|
| 197 |
+
"output_attentions": false,
|
| 198 |
+
"output_hidden_states": false,
|
| 199 |
+
"patch_size": 16,
|
| 200 |
+
"pooling_kernel_size": 3,
|
| 201 |
+
"position_embedding_size": 10240,
|
| 202 |
+
"problem_type": null,
|
| 203 |
+
"return_dict": true,
|
| 204 |
+
"rms_norm_eps": 1e-06,
|
| 205 |
+
"rope_parameters": {
|
| 206 |
+
"rope_theta": 100.0,
|
| 207 |
+
"rope_type": "default"
|
| 208 |
},
|
| 209 |
+
"standardize": false,
|
| 210 |
+
"use_clipped_linears": true
|
| 211 |
+
},
|
| 212 |
+
"vision_soft_tokens_per_image": 280
|
| 213 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 2,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
1,
|
| 6 |
+
106,
|
| 7 |
+
50
|
| 8 |
+
],
|
| 9 |
+
"pad_token_id": 0,
|
| 10 |
+
"temperature": 1.0,
|
| 11 |
+
"top_k": 64,
|
| 12 |
+
"top_p": 0.95,
|
| 13 |
+
"transformers_version": "5.5.4"
|
| 14 |
+
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90d88c73fbfaea9189b8e8bb3b7767a2c8c4484f011b4352774977e68d4f9830
|
| 3 |
+
size 10775532066
|