Image-Text-to-Text
Transformers
Safetensors
English
Chinese
qwen3_5
html-generation
web-design
visual-ui
visual-question-answering
reasoning
vllm
80k-context
zero-system-prompt
conversational
Instructions to use wesjos/mario-html-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wesjos/mario-html-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="wesjos/mario-html-4B") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("wesjos/mario-html-4B") model = AutoModelForMultimodalLM.from_pretrained("wesjos/mario-html-4B", device_map="auto") 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wesjos/mario-html-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wesjos/mario-html-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wesjos/mario-html-4B", "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/wesjos/mario-html-4B
- SGLang
How to use wesjos/mario-html-4B 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 "wesjos/mario-html-4B" \ --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": "wesjos/mario-html-4B", "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 "wesjos/mario-html-4B" \ --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": "wesjos/mario-html-4B", "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 wesjos/mario-html-4B with Docker Model Runner:
docker model run hf.co/wesjos/mario-html-4B
Mirror from ModelScope: wesjos/mario-html-4B
Browse files- .gitattributes +23 -9
- README.md +95 -0
- chat_template.jinja +163 -0
- config.json +108 -0
- configuration.json +1 -0
- generation_config.json +7 -0
- model.safetensors-00001-of-00002.safetensors +3 -0
- model.safetensors-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +745 -0
- processor_config.json +63 -0
- tokenizer.json +3 -0
- tokenizer_config.json +300 -0
- webui/README.md +37 -0
- webui/config.json +18 -0
- webui/requirements.txt +4 -0
- webui/run_webui.sh +10 -0
- webui/server.py +401 -0
- webui/static/index.html +1599 -0
- webui/static/theme.css +593 -0
.gitattributes
CHANGED
|
@@ -1,35 +1,49 @@
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 4 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
| 5 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 6 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 11 |
*.model filter=lfs diff=lfs merge=lfs -text
|
| 12 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 13 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 14 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 17 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 18 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 20 |
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 21 |
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 22 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 23 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 24 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.db* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.ark* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.gguf* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.ggml filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.llamafile* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*.pt2 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 46 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 47 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
"/model.safetensors.index.json" filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
"/tokenizer.json" filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen3.5-4B
|
| 4 |
+
tags:
|
| 5 |
+
- html-generation
|
| 6 |
+
- web-design
|
| 7 |
+
- visual-ui
|
| 8 |
+
- vllm
|
| 9 |
+
- 80k-context
|
| 10 |
+
- zero-system-prompt
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# 🍄 Mario-HTML-4B
|
| 14 |
+
|
| 15 |
+
**Mario-HTML-4B** is a specialized, modern visual-UI language model fine-tuned on top of **Qwen3.5-4B**. It natively communicates through **modular, semantic HTML cards and bento grids** rather than standard raw Markdown.
|
| 16 |
+
|
| 17 |
+
- **Model Repository**: [wesjos/mario-html-4B](https://www.modelscope.cn/models/wesjos/mario-html-4B)
|
| 18 |
+
- **Base Architecture**: Qwen3.5-4B (Dense, Hybrid Linear + Sparse Attention)
|
| 19 |
+
- **Native Context Window**: 80K+ Tokens (`81,920` tokens tested with vLLM)
|
| 20 |
+
- **Persona & Identity**: **Mario** (`You are Mario, an intelligent AI assistant that communicates through modern, modular visual web cards.`)
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
## 🌟 Key Highlights
|
| 25 |
+
|
| 26 |
+
1. **Zero System Prompt Native Generation**:
|
| 27 |
+
The Jinja chat template and internal weights have been trained with 100% prompt dropout. Without specifying any system instructions, the model naturally adopts the **Mario** identity and outputs structured `<div class="ai-view">` visual layouts.
|
| 28 |
+
2. **80K Ultra-Long Context Support (vLLM)**:
|
| 29 |
+
Leveraging Qwen3.5's hybrid architecture (24 linear-attention layers + 8 full-attention layers), per-token KV cache is only ~32 KB. On a single 24GB GPU (RTX 4090 / A10G), vLLM easily provisions an 80K context window (`max_model_len: 81920`) with 4.6x concurrency.
|
| 30 |
+
3. **Structured Design System**:
|
| 31 |
+
- **Root View**: `<div class="ai-view">`
|
| 32 |
+
- **Modular Cards**: `<div class="card">`
|
| 33 |
+
- **Bento Grids**: `<div class="grid grid-2">`, `<div class="grid grid-3">`
|
| 34 |
+
- **Metrics & Specs**: `<div class="metric-group"><div class="metric-card">...</div></div>`
|
| 35 |
+
- **Process Steppers**: `<div class="stepper"><div class="step-item">...</div></div>`
|
| 36 |
+
- **Callouts & Badges**: `<div class="callout callout-info|warning">`, `<span class="badge">`
|
| 37 |
+
4. **Clean Thinking Stream**:
|
| 38 |
+
Fully compatible with `--reasoning-parser qwen3`, isolating `<think>` chain-of-thought into streaming reasoning chunks while leaving the main HTML code block 100% clean.
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
## 🚀 Quick Deployment with vLLM
|
| 43 |
+
|
| 44 |
+
### 1. Launch Inference Server
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
vllm serve wesjos/mario-html-4B \
|
| 48 |
+
--host 0.0.0.0 \
|
| 49 |
+
--port 18085 \
|
| 50 |
+
--dtype bfloat16 \
|
| 51 |
+
--max-model-len 81920 \
|
| 52 |
+
--gpu-memory-utilization 0.95 \
|
| 53 |
+
--enforce-eager \
|
| 54 |
+
--reasoning-parser qwen3 \
|
| 55 |
+
--served-model-name qwen-3.8-27b
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
### 2. Python Client Example
|
| 59 |
+
|
| 60 |
+
```python
|
| 61 |
+
from openai import OpenAI
|
| 62 |
+
|
| 63 |
+
client = OpenAI(base_url="http://localhost:18085/v1", api_key="none")
|
| 64 |
+
|
| 65 |
+
response = client.chat.completions.create(
|
| 66 |
+
model="qwen-3.8-27b",
|
| 67 |
+
messages=[
|
| 68 |
+
{"role": "user", "content": "用现代HTML卡片介绍量子计算的基本原理"}
|
| 69 |
+
],
|
| 70 |
+
temperature=0.7,
|
| 71 |
+
max_tokens=4096,
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
print(response.choices[0].message.content)
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
---
|
| 78 |
+
|
| 79 |
+
## 🎨 Bundled WebUI
|
| 80 |
+
|
| 81 |
+
A lightweight, high-performance WebUI is included in the `webui/` folder:
|
| 82 |
+
|
| 83 |
+
```bash
|
| 84 |
+
cd webui
|
| 85 |
+
pip install -r requirements.txt
|
| 86 |
+
python server.py --port 8791
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
Open `http://localhost:8791` to experience real-time CoT thinking bubbles, live rendered HTML cards, and custom CSS theming.
|
| 90 |
+
|
| 91 |
+
---
|
| 92 |
+
|
| 93 |
+
## 📄 License
|
| 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|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set image_count = namespace(value=0) %}
|
| 2 |
+
{%- set video_count = namespace(value=0) %}
|
| 3 |
+
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
+
{%- if content is string %}
|
| 5 |
+
{{- content }}
|
| 6 |
+
{%- elif content is iterable and content is not mapping %}
|
| 7 |
+
{%- for item in content %}
|
| 8 |
+
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
+
{%- if is_system_content %}
|
| 10 |
+
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
+
{%- endif %}
|
| 12 |
+
{%- if do_vision_count %}
|
| 13 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if add_vision_id %}
|
| 16 |
+
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
+
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
+
{%- if is_system_content %}
|
| 21 |
+
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
{%- if do_vision_count %}
|
| 24 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
+
{%- endif %}
|
| 26 |
+
{%- if add_vision_id %}
|
| 27 |
+
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
+
{%- elif 'text' in item %}
|
| 31 |
+
{{- item.text }}
|
| 32 |
+
{%- else %}
|
| 33 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endfor %}
|
| 36 |
+
{%- elif content is none or content is undefined %}
|
| 37 |
+
{{- '' }}
|
| 38 |
+
{%- else %}
|
| 39 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
+
{%- endif %}
|
| 41 |
+
{%- endmacro %}
|
| 42 |
+
{%- if not messages %}
|
| 43 |
+
{{- raise_exception('No messages provided.') }}
|
| 44 |
+
{%- endif %}
|
| 45 |
+
{%- set num_sys = 0 %}
|
| 46 |
+
{%- set merged_system = '' %}
|
| 47 |
+
{%- if messages[0].role == 'system' or messages[0].role == 'developer' %}
|
| 48 |
+
{%- set first = render_content(messages[0].content, false, true)|trim %}
|
| 49 |
+
{%- if messages|length > 1 and (messages[1].role == 'system' or messages[1].role == 'developer') %}
|
| 50 |
+
{%- set second = render_content(messages[1].content, false, true)|trim %}
|
| 51 |
+
{%- set merged_system = first + '\n' + second %}
|
| 52 |
+
{%- set num_sys = 2 %}
|
| 53 |
+
{%- else %}
|
| 54 |
+
{%- set merged_system = first %}
|
| 55 |
+
{%- set num_sys = 1 %}
|
| 56 |
+
{%- endif %}
|
| 57 |
+
{%- endif %}
|
| 58 |
+
|
| 59 |
+
{%- if not merged_system -%}
|
| 60 |
+
{%- set merged_system = 'You are Mario, an intelligent AI assistant that communicates through modern, modular visual web cards.' -%}
|
| 61 |
+
{%- endif -%}
|
| 62 |
+
|
| 63 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 64 |
+
{{- '<|im_start|>system\n' }}
|
| 65 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 66 |
+
{%- for tool in tools %}
|
| 67 |
+
{{- "\n" }}
|
| 68 |
+
{{- tool | tojson }}
|
| 69 |
+
{%- endfor %}
|
| 70 |
+
{{- "\n</tools>" }}
|
| 71 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 72 |
+
{%- if merged_system %}
|
| 73 |
+
{{- '\n\n' + merged_system }}
|
| 74 |
+
{%- endif %}
|
| 75 |
+
{{- '<|im_end|>\n' }}
|
| 76 |
+
{%- else %}
|
| 77 |
+
{%- if merged_system %}
|
| 78 |
+
{{- '<|im_start|>system\n' + merged_system + '<|im_end|>\n' }}
|
| 79 |
+
{%- endif %}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 82 |
+
{%- for message in messages[::-1] %}
|
| 83 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 84 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 85 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 86 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 87 |
+
{%- set ns.multi_step_tool = false %}
|
| 88 |
+
{%- set ns.last_query_index = index %}
|
| 89 |
+
{%- endif %}
|
| 90 |
+
{%- endif %}
|
| 91 |
+
{%- endfor %}
|
| 92 |
+
{%- for message in messages %}
|
| 93 |
+
{%- if loop.index0 >= num_sys and message.role != "system" and message.role != "developer" %}
|
| 94 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 95 |
+
{%- if message.role == "user" %}
|
| 96 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 97 |
+
{%- elif message.role == "assistant" %}
|
| 98 |
+
{%- set reasoning_content = '' %}
|
| 99 |
+
{%- if message.reasoning_content is string %}
|
| 100 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 101 |
+
{%- else %}
|
| 102 |
+
{%- if '</think>' in content %}
|
| 103 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 104 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 105 |
+
{%- endif %}
|
| 106 |
+
{%- endif %}
|
| 107 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 108 |
+
{%- if loop.index0 > ns.last_query_index %}
|
| 109 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 110 |
+
{%- else %}
|
| 111 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 112 |
+
{%- endif %}
|
| 113 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 114 |
+
{%- for tool_call in message.tool_calls %}
|
| 115 |
+
{%- if tool_call.function is defined %}
|
| 116 |
+
{%- set tool_call = tool_call.function %}
|
| 117 |
+
{%- endif %}
|
| 118 |
+
{%- if loop.first %}
|
| 119 |
+
{%- if content|trim %}
|
| 120 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 121 |
+
{%- else %}
|
| 122 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 123 |
+
{%- endif %}
|
| 124 |
+
{%- else %}
|
| 125 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 126 |
+
{%- endif %}
|
| 127 |
+
{%- if tool_call.arguments is mapping %}
|
| 128 |
+
{%- for args_name in tool_call.arguments %}
|
| 129 |
+
{%- set args_value = tool_call.arguments[args_name] %}
|
| 130 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 131 |
+
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 132 |
+
{{- args_value }}
|
| 133 |
+
{{- '\n</parameter>\n' }}
|
| 134 |
+
{%- endfor %}
|
| 135 |
+
{%- endif %}
|
| 136 |
+
{{- '</function>\n</tool_call>' }}
|
| 137 |
+
{%- endfor %}
|
| 138 |
+
{%- endif %}
|
| 139 |
+
{{- '<|im_end|>\n' }}
|
| 140 |
+
{%- elif message.role == "tool" %}
|
| 141 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 142 |
+
{{- '<|im_start|>user' }}
|
| 143 |
+
{%- endif %}
|
| 144 |
+
{{- '\n<tool_response>\n' }}
|
| 145 |
+
{{- content }}
|
| 146 |
+
{{- '\n</tool_response>' }}
|
| 147 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 148 |
+
{{- '<|im_end|>\n' }}
|
| 149 |
+
{%- elif loop.last %}
|
| 150 |
+
{{- '<|im_end|>\n' }}
|
| 151 |
+
{%- endif %}
|
| 152 |
+
{%- endif %}
|
| 153 |
+
{%- endif %}
|
| 154 |
+
{%- endfor %}
|
| 155 |
+
{%- if add_generation_prompt %}
|
| 156 |
+
{{- '<|im_start|>assistant\n' }}
|
| 157 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 158 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 159 |
+
{%- else %}
|
| 160 |
+
{{- '<think>\n' }}
|
| 161 |
+
{%- endif %}
|
| 162 |
+
{%- endif %}
|
| 163 |
+
{#- Unsloth fixes - developer role, tool calling #}
|
config.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"image_token_id": 248056,
|
| 6 |
+
"model_type": "qwen3_5",
|
| 7 |
+
"mtp_num_hidden_layers": 1,
|
| 8 |
+
"text_config": {
|
| 9 |
+
"attention_bias": false,
|
| 10 |
+
"attention_dropout": 0.0,
|
| 11 |
+
"attn_output_gate": true,
|
| 12 |
+
"bos_token_id": null,
|
| 13 |
+
"torch_dtype": "bfloat16",
|
| 14 |
+
"eos_token_id": 248044,
|
| 15 |
+
"full_attention_interval": 4,
|
| 16 |
+
"head_dim": 256,
|
| 17 |
+
"hidden_act": "silu",
|
| 18 |
+
"hidden_size": 2560,
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"intermediate_size": 9216,
|
| 21 |
+
"layer_types": [
|
| 22 |
+
"linear_attention",
|
| 23 |
+
"linear_attention",
|
| 24 |
+
"linear_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"linear_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"linear_attention",
|
| 37 |
+
"full_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"linear_attention",
|
| 41 |
+
"full_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"linear_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"linear_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"linear_attention",
|
| 49 |
+
"full_attention",
|
| 50 |
+
"linear_attention",
|
| 51 |
+
"linear_attention",
|
| 52 |
+
"linear_attention",
|
| 53 |
+
"full_attention"
|
| 54 |
+
],
|
| 55 |
+
"linear_conv_kernel_dim": 4,
|
| 56 |
+
"linear_key_head_dim": 128,
|
| 57 |
+
"linear_num_key_heads": 16,
|
| 58 |
+
"linear_num_value_heads": 32,
|
| 59 |
+
"linear_value_head_dim": 128,
|
| 60 |
+
"mamba_ssm_dtype": "float32",
|
| 61 |
+
"max_position_embeddings": 262144,
|
| 62 |
+
"mlp_only_layers": [],
|
| 63 |
+
"model_type": "qwen3_5_text",
|
| 64 |
+
"mtp_num_hidden_layers": 1,
|
| 65 |
+
"mtp_use_dedicated_embeddings": false,
|
| 66 |
+
"num_attention_heads": 16,
|
| 67 |
+
"num_hidden_layers": 32,
|
| 68 |
+
"num_key_value_heads": 4,
|
| 69 |
+
"pad_token_id": null,
|
| 70 |
+
"partial_rotary_factor": 0.25,
|
| 71 |
+
"rms_norm_eps": 1e-06,
|
| 72 |
+
"rope_parameters": {
|
| 73 |
+
"mrope_interleaved": true,
|
| 74 |
+
"mrope_section": [
|
| 75 |
+
11,
|
| 76 |
+
11,
|
| 77 |
+
10
|
| 78 |
+
],
|
| 79 |
+
"partial_rotary_factor": 0.25,
|
| 80 |
+
"rope_theta": 10000000,
|
| 81 |
+
"rope_type": "default"
|
| 82 |
+
},
|
| 83 |
+
"tie_word_embeddings": true,
|
| 84 |
+
"use_cache": true,
|
| 85 |
+
"vocab_size": 248320
|
| 86 |
+
},
|
| 87 |
+
"tie_word_embeddings": true,
|
| 88 |
+
"unsloth_fixed_mtp": true,
|
| 89 |
+
"video_token_id": 248057,
|
| 90 |
+
"vision_config": {
|
| 91 |
+
"deepstack_visual_indexes": [],
|
| 92 |
+
"depth": 24,
|
| 93 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 94 |
+
"hidden_size": 1024,
|
| 95 |
+
"in_channels": 3,
|
| 96 |
+
"initializer_range": 0.02,
|
| 97 |
+
"intermediate_size": 4096,
|
| 98 |
+
"model_type": "qwen3_5",
|
| 99 |
+
"num_heads": 16,
|
| 100 |
+
"num_position_embeddings": 2304,
|
| 101 |
+
"out_hidden_size": 2560,
|
| 102 |
+
"patch_size": 16,
|
| 103 |
+
"spatial_merge_size": 2,
|
| 104 |
+
"temporal_patch_size": 2
|
| 105 |
+
},
|
| 106 |
+
"vision_end_token_id": 248054,
|
| 107 |
+
"vision_start_token_id": 248053
|
| 108 |
+
}
|
configuration.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"task":"chatbot"}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"eos_token_id": 248044,
|
| 4 |
+
"pad_token_id": 248055,
|
| 5 |
+
"transformers_version": "5.5.0",
|
| 6 |
+
"use_cache": true
|
| 7 |
+
}
|
model.safetensors-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc5cc291a0236a3e50c4a87ada55f6e8655985c1711111f03e2a5a74a0a5c609
|
| 3 |
+
size 5329398688
|
model.safetensors-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3b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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 9319737856
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"model.language_model.embed_tokens.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 7 |
+
"model.language_model.layers.1.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 8 |
+
"model.language_model.layers.1.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 9 |
+
"model.language_model.layers.1.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 10 |
+
"model.language_model.layers.10.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 11 |
+
"model.language_model.layers.10.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 12 |
+
"model.language_model.layers.10.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 13 |
+
"model.language_model.layers.11.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 14 |
+
"model.language_model.layers.11.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 15 |
+
"model.language_model.layers.11.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 16 |
+
"model.language_model.layers.18.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 17 |
+
"model.language_model.layers.18.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 18 |
+
"model.language_model.layers.18.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 19 |
+
"model.language_model.layers.19.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 20 |
+
"model.language_model.layers.19.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 21 |
+
"model.language_model.layers.19.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 22 |
+
"model.language_model.layers.12.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 23 |
+
"model.language_model.layers.12.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 24 |
+
"model.language_model.layers.12.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 25 |
+
"model.language_model.layers.13.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 26 |
+
"model.language_model.layers.13.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 27 |
+
"model.language_model.layers.13.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 28 |
+
"model.language_model.layers.7.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 29 |
+
"model.language_model.layers.8.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 30 |
+
"model.language_model.layers.8.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 31 |
+
"model.language_model.layers.8.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 32 |
+
"model.language_model.layers.21.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 33 |
+
"model.language_model.layers.21.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 34 |
+
"model.language_model.layers.21.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 35 |
+
"model.language_model.layers.22.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 36 |
+
"model.language_model.layers.22.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 37 |
+
"model.language_model.layers.22.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 38 |
+
"model.language_model.layers.23.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 39 |
+
"model.language_model.layers.23.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 40 |
+
"model.language_model.layers.23.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 41 |
+
"model.language_model.layers.31.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 42 |
+
"model.language_model.layers.31.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 43 |
+
"model.language_model.layers.31.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 44 |
+
"model.language_model.layers.4.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 45 |
+
"model.language_model.layers.4.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 46 |
+
"model.language_model.layers.4.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 47 |
+
"model.language_model.layers.14.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 48 |
+
"model.language_model.layers.14.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 49 |
+
"model.language_model.layers.14.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 50 |
+
"model.language_model.layers.15.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 51 |
+
"model.language_model.layers.15.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 52 |
+
"model.language_model.layers.15.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 53 |
+
"model.language_model.layers.9.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 54 |
+
"model.language_model.layers.9.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 55 |
+
"model.language_model.layers.9.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 56 |
+
"mtp.layers.0.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 57 |
+
"mtp.layers.0.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 58 |
+
"mtp.layers.0.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 59 |
+
"model.language_model.layers.29.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 60 |
+
"model.language_model.layers.3.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 61 |
+
"model.language_model.layers.3.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 62 |
+
"model.language_model.layers.3.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 63 |
+
"model.language_model.layers.30.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 64 |
+
"model.language_model.layers.30.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 65 |
+
"model.language_model.layers.30.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 66 |
+
"model.language_model.layers.16.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 67 |
+
"model.language_model.layers.16.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 68 |
+
"model.language_model.layers.16.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 69 |
+
"model.language_model.layers.17.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 70 |
+
"model.language_model.layers.17.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 71 |
+
"model.language_model.layers.17.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 72 |
+
"model.language_model.layers.24.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 73 |
+
"model.language_model.layers.24.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 74 |
+
"model.language_model.layers.24.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 75 |
+
"model.language_model.layers.5.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 76 |
+
"model.language_model.layers.5.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 77 |
+
"model.language_model.layers.5.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 78 |
+
"model.language_model.layers.6.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 79 |
+
"model.language_model.layers.6.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 80 |
+
"model.language_model.layers.6.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 81 |
+
"model.language_model.layers.7.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 82 |
+
"model.language_model.layers.7.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 83 |
+
"model.language_model.layers.2.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 84 |
+
"model.language_model.layers.2.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 85 |
+
"model.language_model.layers.2.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 86 |
+
"model.language_model.layers.20.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 87 |
+
"model.language_model.layers.20.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 88 |
+
"model.language_model.layers.20.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 89 |
+
"model.language_model.layers.25.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 90 |
+
"model.language_model.layers.25.mlp.gate_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 91 |
+
"model.language_model.layers.25.mlp.up_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 92 |
+
"model.language_model.layers.26.mlp.down_proj.weight": "model.safetensors-00001-of-00002.safetensors",
|
| 93 |
+
"model.language_model.layers.26.mlp.gate_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 94 |
+
"model.language_model.layers.26.mlp.up_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 95 |
+
"model.language_model.layers.27.mlp.down_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 96 |
+
"model.language_model.layers.27.mlp.gate_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 97 |
+
"model.language_model.layers.27.mlp.up_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 98 |
+
"model.language_model.layers.28.mlp.down_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 99 |
+
"model.language_model.layers.28.mlp.gate_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 100 |
+
"model.language_model.layers.28.mlp.up_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 101 |
+
"model.language_model.layers.29.mlp.gate_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 102 |
+
"model.language_model.layers.29.mlp.up_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 103 |
+
"model.language_model.layers.0.mlp.down_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 104 |
+
"model.language_model.layers.0.mlp.gate_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 105 |
+
"model.language_model.layers.0.mlp.up_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 106 |
+
"model.language_model.layers.10.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 107 |
+
"model.language_model.layers.11.self_attn.q_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 108 |
+
"model.language_model.layers.18.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 109 |
+
"model.language_model.layers.19.self_attn.q_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 110 |
+
"model.language_model.layers.2.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 111 |
+
"model.language_model.layers.12.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 112 |
+
"model.language_model.layers.13.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 113 |
+
"model.language_model.layers.7.self_attn.q_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 114 |
+
"model.language_model.layers.8.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 115 |
+
"model.language_model.layers.22.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 116 |
+
"model.language_model.layers.23.self_attn.q_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 117 |
+
"model.language_model.layers.31.self_attn.q_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 118 |
+
"model.language_model.layers.4.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 119 |
+
"model.language_model.layers.14.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 120 |
+
"model.language_model.layers.15.self_attn.q_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 121 |
+
"model.language_model.layers.9.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 122 |
+
"mtp.layers.0.self_attn.q_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 123 |
+
"model.language_model.layers.3.self_attn.q_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 124 |
+
"model.language_model.layers.30.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 125 |
+
"model.language_model.layers.16.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 126 |
+
"model.language_model.layers.17.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 127 |
+
"model.language_model.layers.24.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 128 |
+
"model.language_model.layers.25.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 129 |
+
"model.language_model.layers.5.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 130 |
+
"model.language_model.layers.6.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 131 |
+
"model.language_model.layers.20.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 132 |
+
"model.language_model.layers.21.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 133 |
+
"model.language_model.layers.26.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 134 |
+
"model.language_model.layers.27.self_attn.q_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 135 |
+
"model.language_model.layers.28.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 136 |
+
"model.language_model.layers.29.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 137 |
+
"model.language_model.layers.0.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 138 |
+
"model.language_model.layers.1.linear_attn.in_proj_qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 139 |
+
"model.visual.merger.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 140 |
+
"mtp.fc.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 141 |
+
"model.language_model.layers.10.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 142 |
+
"model.language_model.layers.10.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 143 |
+
"model.language_model.layers.11.self_attn.o_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 144 |
+
"model.language_model.layers.18.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 145 |
+
"model.language_model.layers.18.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 146 |
+
"model.language_model.layers.19.self_attn.o_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 147 |
+
"model.language_model.layers.2.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 148 |
+
"model.language_model.layers.12.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 149 |
+
"model.language_model.layers.12.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 150 |
+
"model.language_model.layers.13.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 151 |
+
"model.language_model.layers.13.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 152 |
+
"model.language_model.layers.7.self_attn.o_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 153 |
+
"model.language_model.layers.8.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 154 |
+
"model.language_model.layers.8.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 155 |
+
"model.language_model.layers.21.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 156 |
+
"model.language_model.layers.22.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 157 |
+
"model.language_model.layers.22.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 158 |
+
"model.language_model.layers.23.self_attn.o_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 159 |
+
"model.language_model.layers.31.self_attn.o_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 160 |
+
"model.language_model.layers.4.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 161 |
+
"model.language_model.layers.4.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 162 |
+
"model.language_model.layers.14.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 163 |
+
"model.language_model.layers.14.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 164 |
+
"model.language_model.layers.15.self_attn.o_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 165 |
+
"model.language_model.layers.9.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 166 |
+
"model.language_model.layers.9.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 167 |
+
"mtp.layers.0.self_attn.o_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 168 |
+
"model.language_model.layers.3.self_attn.o_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 169 |
+
"model.language_model.layers.30.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 170 |
+
"model.language_model.layers.30.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 171 |
+
"model.language_model.layers.16.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 172 |
+
"model.language_model.layers.16.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 173 |
+
"model.language_model.layers.17.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 174 |
+
"model.language_model.layers.17.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 175 |
+
"model.language_model.layers.24.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 176 |
+
"model.language_model.layers.24.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 177 |
+
"model.language_model.layers.25.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 178 |
+
"model.language_model.layers.25.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 179 |
+
"model.language_model.layers.5.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 180 |
+
"model.language_model.layers.5.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 181 |
+
"model.language_model.layers.6.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 182 |
+
"model.language_model.layers.6.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 183 |
+
"model.language_model.layers.2.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 184 |
+
"model.language_model.layers.20.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 185 |
+
"model.language_model.layers.20.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 186 |
+
"model.language_model.layers.21.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 187 |
+
"model.language_model.layers.26.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 188 |
+
"model.language_model.layers.26.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 189 |
+
"model.language_model.layers.27.self_attn.o_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 190 |
+
"model.language_model.layers.28.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 191 |
+
"model.language_model.layers.28.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 192 |
+
"model.language_model.layers.29.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 193 |
+
"model.language_model.layers.29.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 194 |
+
"model.language_model.layers.0.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 195 |
+
"model.language_model.layers.0.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 196 |
+
"model.language_model.layers.1.linear_attn.in_proj_z.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 197 |
+
"model.language_model.layers.1.linear_attn.out_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 198 |
+
"model.visual.merger.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 199 |
+
"model.visual.blocks.0.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 200 |
+
"model.visual.blocks.0.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 201 |
+
"model.visual.blocks.1.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 202 |
+
"model.visual.blocks.1.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 203 |
+
"model.visual.blocks.10.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 204 |
+
"model.visual.blocks.10.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 205 |
+
"model.visual.blocks.11.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 206 |
+
"model.visual.blocks.11.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 207 |
+
"model.visual.blocks.12.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 208 |
+
"model.visual.blocks.12.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 209 |
+
"model.visual.blocks.13.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 210 |
+
"model.visual.blocks.13.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 211 |
+
"model.visual.blocks.14.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 212 |
+
"model.visual.blocks.14.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 213 |
+
"model.visual.blocks.15.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 214 |
+
"model.visual.blocks.15.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 215 |
+
"model.visual.blocks.16.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 216 |
+
"model.visual.blocks.16.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 217 |
+
"model.visual.blocks.17.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 218 |
+
"model.visual.blocks.17.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 219 |
+
"model.visual.blocks.18.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 220 |
+
"model.visual.blocks.18.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 221 |
+
"model.visual.blocks.19.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 222 |
+
"model.visual.blocks.19.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 223 |
+
"model.visual.blocks.2.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 224 |
+
"model.visual.blocks.2.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 225 |
+
"model.visual.blocks.20.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 226 |
+
"model.visual.blocks.20.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 227 |
+
"model.visual.blocks.21.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 228 |
+
"model.visual.blocks.21.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 229 |
+
"model.visual.blocks.22.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 230 |
+
"model.visual.blocks.22.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 231 |
+
"model.visual.blocks.23.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 232 |
+
"model.visual.blocks.23.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 233 |
+
"model.visual.blocks.3.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 234 |
+
"model.visual.blocks.3.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 235 |
+
"model.visual.blocks.4.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 236 |
+
"model.visual.blocks.4.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 237 |
+
"model.visual.blocks.5.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 238 |
+
"model.visual.blocks.5.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 239 |
+
"model.visual.blocks.6.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 240 |
+
"model.visual.blocks.6.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 241 |
+
"model.visual.blocks.7.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 242 |
+
"model.visual.blocks.7.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 243 |
+
"model.visual.blocks.8.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 244 |
+
"model.visual.blocks.8.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 245 |
+
"model.visual.blocks.9.mlp.linear_fc1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 246 |
+
"model.visual.blocks.9.mlp.linear_fc2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 247 |
+
"model.visual.blocks.0.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 248 |
+
"model.visual.blocks.1.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 249 |
+
"model.visual.blocks.10.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 250 |
+
"model.visual.blocks.11.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 251 |
+
"model.visual.blocks.12.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 252 |
+
"model.visual.blocks.13.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 253 |
+
"model.visual.blocks.14.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 254 |
+
"model.visual.blocks.15.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 255 |
+
"model.visual.blocks.16.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 256 |
+
"model.visual.blocks.17.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 257 |
+
"model.visual.blocks.18.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 258 |
+
"model.visual.blocks.19.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 259 |
+
"model.visual.blocks.2.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 260 |
+
"model.visual.blocks.20.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 261 |
+
"model.visual.blocks.21.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 262 |
+
"model.visual.blocks.22.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 263 |
+
"model.visual.blocks.23.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 264 |
+
"model.visual.blocks.3.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 265 |
+
"model.visual.blocks.4.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 266 |
+
"model.visual.blocks.5.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 267 |
+
"model.visual.blocks.6.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 268 |
+
"model.visual.blocks.7.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 269 |
+
"model.visual.blocks.8.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 270 |
+
"model.visual.blocks.9.attn.qkv.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 271 |
+
"model.language_model.layers.11.self_attn.k_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 272 |
+
"model.language_model.layers.11.self_attn.v_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 273 |
+
"model.language_model.layers.19.self_attn.k_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 274 |
+
"model.language_model.layers.19.self_attn.v_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 275 |
+
"model.language_model.layers.7.self_attn.k_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 276 |
+
"model.language_model.layers.7.self_attn.v_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 277 |
+
"model.language_model.layers.23.self_attn.k_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 278 |
+
"model.language_model.layers.23.self_attn.v_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 279 |
+
"model.language_model.layers.31.self_attn.k_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 280 |
+
"model.language_model.layers.31.self_attn.v_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 281 |
+
"model.language_model.layers.15.self_attn.k_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 282 |
+
"model.language_model.layers.15.self_attn.v_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 283 |
+
"mtp.layers.0.self_attn.k_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 284 |
+
"mtp.layers.0.self_attn.v_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 285 |
+
"model.language_model.layers.3.self_attn.k_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 286 |
+
"model.language_model.layers.3.self_attn.v_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 287 |
+
"model.language_model.layers.27.self_attn.k_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 288 |
+
"model.language_model.layers.27.self_attn.v_proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 289 |
+
"model.visual.pos_embed.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 290 |
+
"model.visual.patch_embed.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 291 |
+
"model.visual.blocks.0.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 292 |
+
"model.visual.blocks.1.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 293 |
+
"model.visual.blocks.10.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 294 |
+
"model.visual.blocks.11.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 295 |
+
"model.visual.blocks.12.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 296 |
+
"model.visual.blocks.13.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 297 |
+
"model.visual.blocks.14.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 298 |
+
"model.visual.blocks.15.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 299 |
+
"model.visual.blocks.16.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 300 |
+
"model.visual.blocks.17.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 301 |
+
"model.visual.blocks.18.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 302 |
+
"model.visual.blocks.19.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 303 |
+
"model.visual.blocks.2.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 304 |
+
"model.visual.blocks.20.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 305 |
+
"model.visual.blocks.21.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 306 |
+
"model.visual.blocks.22.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 307 |
+
"model.visual.blocks.23.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 308 |
+
"model.visual.blocks.3.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 309 |
+
"model.visual.blocks.4.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 310 |
+
"model.visual.blocks.5.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 311 |
+
"model.visual.blocks.6.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 312 |
+
"model.visual.blocks.7.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 313 |
+
"model.visual.blocks.8.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 314 |
+
"model.visual.blocks.9.attn.proj.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 315 |
+
"model.language_model.layers.10.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 316 |
+
"model.language_model.layers.10.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 317 |
+
"model.language_model.layers.18.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 318 |
+
"model.language_model.layers.18.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 319 |
+
"model.language_model.layers.2.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 320 |
+
"model.language_model.layers.2.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 321 |
+
"model.language_model.layers.12.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 322 |
+
"model.language_model.layers.12.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 323 |
+
"model.language_model.layers.13.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 324 |
+
"model.language_model.layers.13.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 325 |
+
"model.language_model.layers.8.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 326 |
+
"model.language_model.layers.8.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 327 |
+
"model.language_model.layers.22.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 328 |
+
"model.language_model.layers.22.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 329 |
+
"model.language_model.layers.4.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 330 |
+
"model.language_model.layers.4.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 331 |
+
"model.language_model.layers.14.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 332 |
+
"model.language_model.layers.14.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 333 |
+
"model.language_model.layers.9.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 334 |
+
"model.language_model.layers.9.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 335 |
+
"model.language_model.layers.30.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 336 |
+
"model.language_model.layers.30.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 337 |
+
"model.language_model.layers.16.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 338 |
+
"model.language_model.layers.16.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 339 |
+
"model.language_model.layers.17.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 340 |
+
"model.language_model.layers.17.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 341 |
+
"model.language_model.layers.24.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 342 |
+
"model.language_model.layers.24.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 343 |
+
"model.language_model.layers.25.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 344 |
+
"model.language_model.layers.25.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 345 |
+
"model.language_model.layers.5.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 346 |
+
"model.language_model.layers.5.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 347 |
+
"model.language_model.layers.6.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 348 |
+
"model.language_model.layers.6.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 349 |
+
"model.language_model.layers.20.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 350 |
+
"model.language_model.layers.20.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 351 |
+
"model.language_model.layers.21.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 352 |
+
"model.language_model.layers.21.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 353 |
+
"model.language_model.layers.26.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 354 |
+
"model.language_model.layers.26.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 355 |
+
"model.language_model.layers.28.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 356 |
+
"model.language_model.layers.28.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 357 |
+
"model.language_model.layers.29.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 358 |
+
"model.language_model.layers.29.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 359 |
+
"model.language_model.layers.0.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 360 |
+
"model.language_model.layers.0.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 361 |
+
"model.language_model.layers.1.linear_attn.in_proj_b.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 362 |
+
"model.language_model.layers.1.linear_attn.in_proj_a.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 363 |
+
"model.language_model.layers.10.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 364 |
+
"model.language_model.layers.2.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 365 |
+
"model.language_model.layers.12.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 366 |
+
"model.language_model.layers.13.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 367 |
+
"model.language_model.layers.8.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 368 |
+
"model.language_model.layers.9.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 369 |
+
"model.language_model.layers.22.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 370 |
+
"model.language_model.layers.4.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 371 |
+
"model.language_model.layers.5.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 372 |
+
"model.language_model.layers.14.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 373 |
+
"model.language_model.layers.16.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 374 |
+
"model.language_model.layers.30.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 375 |
+
"model.language_model.layers.17.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 376 |
+
"model.language_model.layers.18.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 377 |
+
"model.language_model.layers.24.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 378 |
+
"model.language_model.layers.25.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 379 |
+
"model.language_model.layers.6.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 380 |
+
"model.language_model.layers.20.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 381 |
+
"model.language_model.layers.21.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 382 |
+
"model.language_model.layers.26.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 383 |
+
"model.language_model.layers.28.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 384 |
+
"model.language_model.layers.29.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 385 |
+
"model.language_model.layers.0.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 386 |
+
"model.language_model.layers.1.linear_attn.conv1d.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 387 |
+
"model.visual.blocks.0.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 388 |
+
"model.visual.blocks.1.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 389 |
+
"model.visual.blocks.10.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 390 |
+
"model.visual.blocks.11.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 391 |
+
"model.visual.blocks.12.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 392 |
+
"model.visual.blocks.13.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 393 |
+
"model.visual.blocks.14.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 394 |
+
"model.visual.blocks.15.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 395 |
+
"model.visual.blocks.16.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 396 |
+
"model.visual.blocks.17.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 397 |
+
"model.visual.blocks.18.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 398 |
+
"model.visual.blocks.19.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 399 |
+
"model.visual.blocks.2.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 400 |
+
"model.visual.blocks.20.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 401 |
+
"model.visual.blocks.21.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 402 |
+
"model.visual.blocks.22.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 403 |
+
"model.visual.blocks.23.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 404 |
+
"model.visual.blocks.3.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 405 |
+
"model.visual.blocks.4.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 406 |
+
"model.visual.blocks.5.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 407 |
+
"model.visual.blocks.6.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 408 |
+
"model.visual.blocks.7.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 409 |
+
"model.visual.blocks.8.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 410 |
+
"model.visual.blocks.9.mlp.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 411 |
+
"model.visual.merger.linear_fc1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 412 |
+
"model.visual.blocks.0.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 413 |
+
"model.visual.blocks.1.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 414 |
+
"model.visual.blocks.10.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 415 |
+
"model.visual.blocks.11.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 416 |
+
"model.visual.blocks.12.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 417 |
+
"model.visual.blocks.13.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 418 |
+
"model.visual.blocks.14.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 419 |
+
"model.visual.blocks.15.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 420 |
+
"model.visual.blocks.16.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 421 |
+
"model.visual.blocks.17.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 422 |
+
"model.visual.blocks.18.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 423 |
+
"model.visual.blocks.19.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 424 |
+
"model.visual.blocks.2.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 425 |
+
"model.visual.blocks.20.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 426 |
+
"model.visual.blocks.21.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 427 |
+
"model.visual.blocks.22.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 428 |
+
"model.visual.blocks.23.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 429 |
+
"model.visual.blocks.3.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 430 |
+
"model.visual.blocks.4.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 431 |
+
"model.visual.blocks.5.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 432 |
+
"model.visual.blocks.6.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 433 |
+
"model.visual.blocks.7.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 434 |
+
"model.visual.blocks.8.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 435 |
+
"model.visual.blocks.9.attn.qkv.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 436 |
+
"model.language_model.layers.10.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 437 |
+
"model.language_model.layers.10.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 438 |
+
"model.language_model.layers.11.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 439 |
+
"model.language_model.layers.11.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 440 |
+
"model.language_model.layers.18.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 441 |
+
"model.language_model.layers.19.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 442 |
+
"model.language_model.layers.19.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 443 |
+
"model.language_model.layers.2.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 444 |
+
"model.language_model.layers.12.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 445 |
+
"model.language_model.layers.12.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 446 |
+
"model.language_model.layers.13.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 447 |
+
"model.language_model.layers.13.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 448 |
+
"model.language_model.layers.7.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 449 |
+
"model.language_model.layers.8.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 450 |
+
"model.language_model.layers.8.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 451 |
+
"model.language_model.layers.9.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 452 |
+
"model.language_model.layers.21.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 453 |
+
"model.language_model.layers.22.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 454 |
+
"model.language_model.layers.22.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 455 |
+
"model.language_model.layers.23.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 456 |
+
"model.language_model.layers.23.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 457 |
+
"model.language_model.layers.31.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 458 |
+
"model.language_model.layers.4.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 459 |
+
"model.language_model.layers.4.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 460 |
+
"model.language_model.layers.14.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 461 |
+
"model.language_model.layers.14.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 462 |
+
"model.language_model.layers.15.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 463 |
+
"model.language_model.layers.15.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 464 |
+
"model.language_model.layers.16.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 465 |
+
"model.language_model.layers.9.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 466 |
+
"mtp.layers.0.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 467 |
+
"mtp.layers.0.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 468 |
+
"mtp.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 469 |
+
"mtp.pre_fc_norm_embedding.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 470 |
+
"mtp.pre_fc_norm_hidden.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 471 |
+
"model.language_model.layers.3.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 472 |
+
"model.language_model.layers.3.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 473 |
+
"model.language_model.layers.30.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 474 |
+
"model.language_model.layers.30.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 475 |
+
"model.language_model.layers.31.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 476 |
+
"model.language_model.layers.16.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 477 |
+
"model.language_model.layers.17.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 478 |
+
"model.language_model.layers.17.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 479 |
+
"model.language_model.layers.18.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 480 |
+
"model.language_model.layers.24.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 481 |
+
"model.language_model.layers.24.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 482 |
+
"model.language_model.layers.25.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 483 |
+
"model.language_model.layers.25.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 484 |
+
"model.language_model.layers.5.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 485 |
+
"model.language_model.layers.5.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 486 |
+
"model.language_model.layers.6.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 487 |
+
"model.language_model.layers.6.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 488 |
+
"model.language_model.layers.7.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 489 |
+
"model.language_model.layers.2.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 490 |
+
"model.language_model.layers.20.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 491 |
+
"model.language_model.layers.20.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 492 |
+
"model.language_model.layers.21.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 493 |
+
"model.language_model.layers.26.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 494 |
+
"model.language_model.layers.26.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 495 |
+
"model.language_model.layers.27.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 496 |
+
"model.language_model.layers.27.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 497 |
+
"model.language_model.layers.28.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 498 |
+
"model.language_model.layers.28.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 499 |
+
"model.language_model.layers.29.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 500 |
+
"model.language_model.layers.29.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 501 |
+
"model.language_model.layers.0.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 502 |
+
"model.language_model.layers.0.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 503 |
+
"model.language_model.layers.1.input_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 504 |
+
"model.language_model.layers.1.post_attention_layernorm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 505 |
+
"model.language_model.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 506 |
+
"model.visual.merger.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 507 |
+
"model.visual.blocks.0.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 508 |
+
"model.visual.blocks.0.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 509 |
+
"model.visual.blocks.0.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 510 |
+
"model.visual.blocks.0.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 511 |
+
"model.visual.blocks.0.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 512 |
+
"model.visual.blocks.0.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 513 |
+
"model.visual.blocks.1.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 514 |
+
"model.visual.blocks.1.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 515 |
+
"model.visual.blocks.1.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 516 |
+
"model.visual.blocks.1.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 517 |
+
"model.visual.blocks.1.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 518 |
+
"model.visual.blocks.1.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 519 |
+
"model.visual.blocks.10.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 520 |
+
"model.visual.blocks.10.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 521 |
+
"model.visual.blocks.10.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 522 |
+
"model.visual.blocks.10.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 523 |
+
"model.visual.blocks.10.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 524 |
+
"model.visual.blocks.10.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 525 |
+
"model.visual.blocks.11.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 526 |
+
"model.visual.blocks.11.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 527 |
+
"model.visual.blocks.11.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 528 |
+
"model.visual.blocks.11.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 529 |
+
"model.visual.blocks.11.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 530 |
+
"model.visual.blocks.11.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 531 |
+
"model.visual.blocks.12.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 532 |
+
"model.visual.blocks.12.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 533 |
+
"model.visual.blocks.12.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 534 |
+
"model.visual.blocks.12.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 535 |
+
"model.visual.blocks.12.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 536 |
+
"model.visual.blocks.12.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 537 |
+
"model.visual.blocks.13.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 538 |
+
"model.visual.blocks.13.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 539 |
+
"model.visual.blocks.13.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 540 |
+
"model.visual.blocks.13.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 541 |
+
"model.visual.blocks.13.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 542 |
+
"model.visual.blocks.13.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 543 |
+
"model.visual.blocks.14.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 544 |
+
"model.visual.blocks.14.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 545 |
+
"model.visual.blocks.14.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 546 |
+
"model.visual.blocks.14.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 547 |
+
"model.visual.blocks.14.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 548 |
+
"model.visual.blocks.14.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 549 |
+
"model.visual.blocks.15.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 550 |
+
"model.visual.blocks.15.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 551 |
+
"model.visual.blocks.15.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 552 |
+
"model.visual.blocks.15.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 553 |
+
"model.visual.blocks.15.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 554 |
+
"model.visual.blocks.15.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 555 |
+
"model.visual.blocks.16.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 556 |
+
"model.visual.blocks.16.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 557 |
+
"model.visual.blocks.16.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 558 |
+
"model.visual.blocks.16.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 559 |
+
"model.visual.blocks.16.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 560 |
+
"model.visual.blocks.16.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 561 |
+
"model.visual.blocks.17.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 562 |
+
"model.visual.blocks.17.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 563 |
+
"model.visual.blocks.17.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 564 |
+
"model.visual.blocks.17.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 565 |
+
"model.visual.blocks.17.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 566 |
+
"model.visual.blocks.17.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 567 |
+
"model.visual.blocks.18.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 568 |
+
"model.visual.blocks.18.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 569 |
+
"model.visual.blocks.18.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 570 |
+
"model.visual.blocks.18.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 571 |
+
"model.visual.blocks.18.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 572 |
+
"model.visual.blocks.18.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 573 |
+
"model.visual.blocks.19.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 574 |
+
"model.visual.blocks.19.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 575 |
+
"model.visual.blocks.19.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 576 |
+
"model.visual.blocks.19.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 577 |
+
"model.visual.blocks.19.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 578 |
+
"model.visual.blocks.19.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 579 |
+
"model.visual.blocks.2.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 580 |
+
"model.visual.blocks.2.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 581 |
+
"model.visual.blocks.2.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 582 |
+
"model.visual.blocks.2.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 583 |
+
"model.visual.blocks.2.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 584 |
+
"model.visual.blocks.2.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 585 |
+
"model.visual.blocks.20.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 586 |
+
"model.visual.blocks.20.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 587 |
+
"model.visual.blocks.20.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 588 |
+
"model.visual.blocks.20.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 589 |
+
"model.visual.blocks.20.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 590 |
+
"model.visual.blocks.20.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 591 |
+
"model.visual.blocks.21.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 592 |
+
"model.visual.blocks.21.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 593 |
+
"model.visual.blocks.21.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 594 |
+
"model.visual.blocks.21.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 595 |
+
"model.visual.blocks.21.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 596 |
+
"model.visual.blocks.21.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 597 |
+
"model.visual.blocks.22.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 598 |
+
"model.visual.blocks.22.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 599 |
+
"model.visual.blocks.22.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 600 |
+
"model.visual.blocks.22.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 601 |
+
"model.visual.blocks.22.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 602 |
+
"model.visual.blocks.22.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 603 |
+
"model.visual.blocks.23.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 604 |
+
"model.visual.blocks.23.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 605 |
+
"model.visual.blocks.23.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 606 |
+
"model.visual.blocks.23.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 607 |
+
"model.visual.blocks.23.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 608 |
+
"model.visual.blocks.23.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 609 |
+
"model.visual.blocks.3.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 610 |
+
"model.visual.blocks.3.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 611 |
+
"model.visual.blocks.3.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 612 |
+
"model.visual.blocks.3.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 613 |
+
"model.visual.blocks.3.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 614 |
+
"model.visual.blocks.3.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 615 |
+
"model.visual.blocks.4.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 616 |
+
"model.visual.blocks.4.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 617 |
+
"model.visual.blocks.4.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 618 |
+
"model.visual.blocks.4.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 619 |
+
"model.visual.blocks.4.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 620 |
+
"model.visual.blocks.4.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 621 |
+
"model.visual.blocks.5.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 622 |
+
"model.visual.blocks.5.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 623 |
+
"model.visual.blocks.5.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 624 |
+
"model.visual.blocks.5.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 625 |
+
"model.visual.blocks.5.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 626 |
+
"model.visual.blocks.5.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 627 |
+
"model.visual.blocks.6.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 628 |
+
"model.visual.blocks.6.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 629 |
+
"model.visual.blocks.6.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 630 |
+
"model.visual.blocks.6.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 631 |
+
"model.visual.blocks.6.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 632 |
+
"model.visual.blocks.6.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 633 |
+
"model.visual.blocks.7.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 634 |
+
"model.visual.blocks.7.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 635 |
+
"model.visual.blocks.7.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 636 |
+
"model.visual.blocks.7.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 637 |
+
"model.visual.blocks.7.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 638 |
+
"model.visual.blocks.7.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 639 |
+
"model.visual.blocks.8.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 640 |
+
"model.visual.blocks.8.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 641 |
+
"model.visual.blocks.8.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 642 |
+
"model.visual.blocks.8.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 643 |
+
"model.visual.blocks.8.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 644 |
+
"model.visual.blocks.8.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 645 |
+
"model.visual.blocks.9.attn.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 646 |
+
"model.visual.blocks.9.mlp.linear_fc2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 647 |
+
"model.visual.blocks.9.norm1.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 648 |
+
"model.visual.blocks.9.norm1.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 649 |
+
"model.visual.blocks.9.norm2.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 650 |
+
"model.visual.blocks.9.norm2.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 651 |
+
"model.visual.merger.norm.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 652 |
+
"model.visual.merger.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 653 |
+
"model.visual.patch_embed.proj.bias": "model.safetensors-00002-of-00002.safetensors",
|
| 654 |
+
"model.language_model.layers.10.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 655 |
+
"model.language_model.layers.11.self_attn.k_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 656 |
+
"model.language_model.layers.11.self_attn.q_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 657 |
+
"model.language_model.layers.18.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 658 |
+
"model.language_model.layers.19.self_attn.k_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 659 |
+
"model.language_model.layers.19.self_attn.q_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 660 |
+
"model.language_model.layers.2.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 661 |
+
"model.language_model.layers.12.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 662 |
+
"model.language_model.layers.13.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 663 |
+
"model.language_model.layers.7.self_attn.k_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 664 |
+
"model.language_model.layers.7.self_attn.q_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 665 |
+
"model.language_model.layers.8.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 666 |
+
"model.language_model.layers.22.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 667 |
+
"model.language_model.layers.23.self_attn.k_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 668 |
+
"model.language_model.layers.31.self_attn.k_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 669 |
+
"model.language_model.layers.31.self_attn.q_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 670 |
+
"model.language_model.layers.4.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 671 |
+
"model.language_model.layers.14.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 672 |
+
"model.language_model.layers.15.self_attn.k_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 673 |
+
"model.language_model.layers.15.self_attn.q_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 674 |
+
"model.language_model.layers.9.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 675 |
+
"mtp.layers.0.self_attn.k_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 676 |
+
"mtp.layers.0.self_attn.q_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 677 |
+
"model.language_model.layers.3.self_attn.k_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 678 |
+
"model.language_model.layers.3.self_attn.q_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 679 |
+
"model.language_model.layers.30.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 680 |
+
"model.language_model.layers.16.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 681 |
+
"model.language_model.layers.17.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 682 |
+
"model.language_model.layers.23.self_attn.q_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 683 |
+
"model.language_model.layers.24.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 684 |
+
"model.language_model.layers.25.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 685 |
+
"model.language_model.layers.5.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 686 |
+
"model.language_model.layers.6.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 687 |
+
"model.language_model.layers.20.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 688 |
+
"model.language_model.layers.21.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 689 |
+
"model.language_model.layers.26.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 690 |
+
"model.language_model.layers.27.self_attn.k_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 691 |
+
"model.language_model.layers.27.self_attn.q_norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 692 |
+
"model.language_model.layers.28.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 693 |
+
"model.language_model.layers.29.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 694 |
+
"model.language_model.layers.0.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 695 |
+
"model.language_model.layers.1.linear_attn.norm.weight": "model.safetensors-00002-of-00002.safetensors",
|
| 696 |
+
"model.language_model.layers.10.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 697 |
+
"model.language_model.layers.12.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 698 |
+
"model.language_model.layers.2.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 699 |
+
"model.language_model.layers.13.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 700 |
+
"model.language_model.layers.14.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 701 |
+
"model.language_model.layers.8.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 702 |
+
"model.language_model.layers.9.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 703 |
+
"model.language_model.layers.22.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 704 |
+
"model.language_model.layers.4.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 705 |
+
"model.language_model.layers.5.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 706 |
+
"model.language_model.layers.16.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 707 |
+
"model.language_model.layers.30.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 708 |
+
"model.language_model.layers.17.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 709 |
+
"model.language_model.layers.18.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 710 |
+
"model.language_model.layers.24.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 711 |
+
"model.language_model.layers.25.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 712 |
+
"model.language_model.layers.6.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 713 |
+
"model.language_model.layers.20.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 714 |
+
"model.language_model.layers.21.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 715 |
+
"model.language_model.layers.26.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 716 |
+
"model.language_model.layers.28.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 717 |
+
"model.language_model.layers.29.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 718 |
+
"model.language_model.layers.0.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 719 |
+
"model.language_model.layers.1.linear_attn.A_log": "model.safetensors-00002-of-00002.safetensors",
|
| 720 |
+
"model.language_model.layers.10.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 721 |
+
"model.language_model.layers.2.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 722 |
+
"model.language_model.layers.12.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 723 |
+
"model.language_model.layers.13.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 724 |
+
"model.language_model.layers.8.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 725 |
+
"model.language_model.layers.9.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 726 |
+
"model.language_model.layers.22.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 727 |
+
"model.language_model.layers.4.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 728 |
+
"model.language_model.layers.5.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 729 |
+
"model.language_model.layers.14.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 730 |
+
"model.language_model.layers.16.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 731 |
+
"model.language_model.layers.30.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 732 |
+
"model.language_model.layers.17.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 733 |
+
"model.language_model.layers.18.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 734 |
+
"model.language_model.layers.24.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 735 |
+
"model.language_model.layers.25.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 736 |
+
"model.language_model.layers.6.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 737 |
+
"model.language_model.layers.20.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 738 |
+
"model.language_model.layers.21.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 739 |
+
"model.language_model.layers.26.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 740 |
+
"model.language_model.layers.28.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 741 |
+
"model.language_model.layers.29.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 742 |
+
"model.language_model.layers.0.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors",
|
| 743 |
+
"model.language_model.layers.1.linear_attn.dt_bias": "model.safetensors-00002-of-00002.safetensors"
|
| 744 |
+
}
|
| 745 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"data_format": "channels_first",
|
| 4 |
+
"do_convert_rgb": true,
|
| 5 |
+
"do_normalize": true,
|
| 6 |
+
"do_rescale": true,
|
| 7 |
+
"do_resize": true,
|
| 8 |
+
"image_mean": [
|
| 9 |
+
0.5,
|
| 10 |
+
0.5,
|
| 11 |
+
0.5
|
| 12 |
+
],
|
| 13 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"merge_size": 2,
|
| 20 |
+
"patch_size": 16,
|
| 21 |
+
"resample": 3,
|
| 22 |
+
"rescale_factor": 0.00392156862745098,
|
| 23 |
+
"size": {
|
| 24 |
+
"longest_edge": 16777216,
|
| 25 |
+
"shortest_edge": 65536
|
| 26 |
+
},
|
| 27 |
+
"temporal_patch_size": 2
|
| 28 |
+
},
|
| 29 |
+
"processor_class": "Qwen3VLProcessor",
|
| 30 |
+
"video_processor": {
|
| 31 |
+
"data_format": "channels_first",
|
| 32 |
+
"default_to_square": true,
|
| 33 |
+
"do_convert_rgb": true,
|
| 34 |
+
"do_normalize": true,
|
| 35 |
+
"do_rescale": true,
|
| 36 |
+
"do_resize": true,
|
| 37 |
+
"do_sample_frames": true,
|
| 38 |
+
"fps": 2,
|
| 39 |
+
"image_mean": [
|
| 40 |
+
0.5,
|
| 41 |
+
0.5,
|
| 42 |
+
0.5
|
| 43 |
+
],
|
| 44 |
+
"image_std": [
|
| 45 |
+
0.5,
|
| 46 |
+
0.5,
|
| 47 |
+
0.5
|
| 48 |
+
],
|
| 49 |
+
"max_frames": 768,
|
| 50 |
+
"merge_size": 2,
|
| 51 |
+
"min_frames": 4,
|
| 52 |
+
"patch_size": 16,
|
| 53 |
+
"resample": 3,
|
| 54 |
+
"rescale_factor": 0.00392156862745098,
|
| 55 |
+
"return_metadata": false,
|
| 56 |
+
"size": {
|
| 57 |
+
"longest_edge": 25165824,
|
| 58 |
+
"shortest_edge": 4096
|
| 59 |
+
},
|
| 60 |
+
"temporal_patch_size": 2,
|
| 61 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 62 |
+
}
|
| 63 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4
|
| 3 |
+
size 19989343
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,300 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"audio_bos_token": "<|audio_start|>",
|
| 4 |
+
"audio_eos_token": "<|audio_end|>",
|
| 5 |
+
"audio_token": "<|audio_pad|>",
|
| 6 |
+
"backend": "tokenizers",
|
| 7 |
+
"bos_token": null,
|
| 8 |
+
"clean_up_tokenization_spaces": false,
|
| 9 |
+
"eos_token": "<|im_end|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": true,
|
| 13 |
+
"model_max_length": 262144,
|
| 14 |
+
"model_specific_special_tokens": {
|
| 15 |
+
"audio_bos_token": "<|audio_start|>",
|
| 16 |
+
"audio_eos_token": "<|audio_end|>",
|
| 17 |
+
"audio_token": "<|audio_pad|>",
|
| 18 |
+
"image_token": "<|image_pad|>",
|
| 19 |
+
"video_token": "<|video_pad|>",
|
| 20 |
+
"vision_bos_token": "<|vision_start|>",
|
| 21 |
+
"vision_eos_token": "<|vision_end|>"
|
| 22 |
+
},
|
| 23 |
+
"pad_token": "<|vision_pad|>",
|
| 24 |
+
"padding_side": "left",
|
| 25 |
+
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
+
"processor_class": "Qwen3VLProcessor",
|
| 27 |
+
"split_special_tokens": false,
|
| 28 |
+
"tokenizer_class": "TokenizersBackend",
|
| 29 |
+
"unk_token": null,
|
| 30 |
+
"video_token": "<|video_pad|>",
|
| 31 |
+
"vision_bos_token": "<|vision_start|>",
|
| 32 |
+
"vision_eos_token": "<|vision_end|>",
|
| 33 |
+
"added_tokens_decoder": {
|
| 34 |
+
"248044": {
|
| 35 |
+
"content": "<|endoftext|>",
|
| 36 |
+
"single_word": false,
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"rstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"special": true
|
| 41 |
+
},
|
| 42 |
+
"248045": {
|
| 43 |
+
"content": "<|im_start|>",
|
| 44 |
+
"single_word": false,
|
| 45 |
+
"lstrip": false,
|
| 46 |
+
"rstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"special": true
|
| 49 |
+
},
|
| 50 |
+
"248046": {
|
| 51 |
+
"content": "<|im_end|>",
|
| 52 |
+
"single_word": false,
|
| 53 |
+
"lstrip": false,
|
| 54 |
+
"rstrip": false,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"special": true
|
| 57 |
+
},
|
| 58 |
+
"248047": {
|
| 59 |
+
"content": "<|object_ref_start|>",
|
| 60 |
+
"single_word": false,
|
| 61 |
+
"lstrip": false,
|
| 62 |
+
"rstrip": false,
|
| 63 |
+
"normalized": false,
|
| 64 |
+
"special": true
|
| 65 |
+
},
|
| 66 |
+
"248048": {
|
| 67 |
+
"content": "<|object_ref_end|>",
|
| 68 |
+
"single_word": false,
|
| 69 |
+
"lstrip": false,
|
| 70 |
+
"rstrip": false,
|
| 71 |
+
"normalized": false,
|
| 72 |
+
"special": true
|
| 73 |
+
},
|
| 74 |
+
"248049": {
|
| 75 |
+
"content": "<|box_start|>",
|
| 76 |
+
"single_word": false,
|
| 77 |
+
"lstrip": false,
|
| 78 |
+
"rstrip": false,
|
| 79 |
+
"normalized": false,
|
| 80 |
+
"special": true
|
| 81 |
+
},
|
| 82 |
+
"248050": {
|
| 83 |
+
"content": "<|box_end|>",
|
| 84 |
+
"single_word": false,
|
| 85 |
+
"lstrip": false,
|
| 86 |
+
"rstrip": false,
|
| 87 |
+
"normalized": false,
|
| 88 |
+
"special": true
|
| 89 |
+
},
|
| 90 |
+
"248051": {
|
| 91 |
+
"content": "<|quad_start|>",
|
| 92 |
+
"single_word": false,
|
| 93 |
+
"lstrip": false,
|
| 94 |
+
"rstrip": false,
|
| 95 |
+
"normalized": false,
|
| 96 |
+
"special": true
|
| 97 |
+
},
|
| 98 |
+
"248052": {
|
| 99 |
+
"content": "<|quad_end|>",
|
| 100 |
+
"single_word": false,
|
| 101 |
+
"lstrip": false,
|
| 102 |
+
"rstrip": false,
|
| 103 |
+
"normalized": false,
|
| 104 |
+
"special": true
|
| 105 |
+
},
|
| 106 |
+
"248053": {
|
| 107 |
+
"content": "<|vision_start|>",
|
| 108 |
+
"single_word": false,
|
| 109 |
+
"lstrip": false,
|
| 110 |
+
"rstrip": false,
|
| 111 |
+
"normalized": false,
|
| 112 |
+
"special": true
|
| 113 |
+
},
|
| 114 |
+
"248054": {
|
| 115 |
+
"content": "<|vision_end|>",
|
| 116 |
+
"single_word": false,
|
| 117 |
+
"lstrip": false,
|
| 118 |
+
"rstrip": false,
|
| 119 |
+
"normalized": false,
|
| 120 |
+
"special": true
|
| 121 |
+
},
|
| 122 |
+
"248055": {
|
| 123 |
+
"content": "<|vision_pad|>",
|
| 124 |
+
"single_word": false,
|
| 125 |
+
"lstrip": false,
|
| 126 |
+
"rstrip": false,
|
| 127 |
+
"normalized": false,
|
| 128 |
+
"special": true
|
| 129 |
+
},
|
| 130 |
+
"248056": {
|
| 131 |
+
"content": "<|image_pad|>",
|
| 132 |
+
"single_word": false,
|
| 133 |
+
"lstrip": false,
|
| 134 |
+
"rstrip": false,
|
| 135 |
+
"normalized": false,
|
| 136 |
+
"special": true
|
| 137 |
+
},
|
| 138 |
+
"248057": {
|
| 139 |
+
"content": "<|video_pad|>",
|
| 140 |
+
"single_word": false,
|
| 141 |
+
"lstrip": false,
|
| 142 |
+
"rstrip": false,
|
| 143 |
+
"normalized": false,
|
| 144 |
+
"special": true
|
| 145 |
+
},
|
| 146 |
+
"248058": {
|
| 147 |
+
"content": "<tool_call>",
|
| 148 |
+
"single_word": false,
|
| 149 |
+
"lstrip": false,
|
| 150 |
+
"rstrip": false,
|
| 151 |
+
"normalized": false,
|
| 152 |
+
"special": false
|
| 153 |
+
},
|
| 154 |
+
"248059": {
|
| 155 |
+
"content": "</tool_call>",
|
| 156 |
+
"single_word": false,
|
| 157 |
+
"lstrip": false,
|
| 158 |
+
"rstrip": false,
|
| 159 |
+
"normalized": false,
|
| 160 |
+
"special": false
|
| 161 |
+
},
|
| 162 |
+
"248060": {
|
| 163 |
+
"content": "<|fim_prefix|>",
|
| 164 |
+
"single_word": false,
|
| 165 |
+
"lstrip": false,
|
| 166 |
+
"rstrip": false,
|
| 167 |
+
"normalized": false,
|
| 168 |
+
"special": false
|
| 169 |
+
},
|
| 170 |
+
"248061": {
|
| 171 |
+
"content": "<|fim_middle|>",
|
| 172 |
+
"single_word": false,
|
| 173 |
+
"lstrip": false,
|
| 174 |
+
"rstrip": false,
|
| 175 |
+
"normalized": false,
|
| 176 |
+
"special": false
|
| 177 |
+
},
|
| 178 |
+
"248062": {
|
| 179 |
+
"content": "<|fim_suffix|>",
|
| 180 |
+
"single_word": false,
|
| 181 |
+
"lstrip": false,
|
| 182 |
+
"rstrip": false,
|
| 183 |
+
"normalized": false,
|
| 184 |
+
"special": false
|
| 185 |
+
},
|
| 186 |
+
"248063": {
|
| 187 |
+
"content": "<|fim_pad|>",
|
| 188 |
+
"single_word": false,
|
| 189 |
+
"lstrip": false,
|
| 190 |
+
"rstrip": false,
|
| 191 |
+
"normalized": false,
|
| 192 |
+
"special": false
|
| 193 |
+
},
|
| 194 |
+
"248064": {
|
| 195 |
+
"content": "<|repo_name|>",
|
| 196 |
+
"single_word": false,
|
| 197 |
+
"lstrip": false,
|
| 198 |
+
"rstrip": false,
|
| 199 |
+
"normalized": false,
|
| 200 |
+
"special": false
|
| 201 |
+
},
|
| 202 |
+
"248065": {
|
| 203 |
+
"content": "<|file_sep|>",
|
| 204 |
+
"single_word": false,
|
| 205 |
+
"lstrip": false,
|
| 206 |
+
"rstrip": false,
|
| 207 |
+
"normalized": false,
|
| 208 |
+
"special": false
|
| 209 |
+
},
|
| 210 |
+
"248066": {
|
| 211 |
+
"content": "<tool_response>",
|
| 212 |
+
"single_word": false,
|
| 213 |
+
"lstrip": false,
|
| 214 |
+
"rstrip": false,
|
| 215 |
+
"normalized": false,
|
| 216 |
+
"special": false
|
| 217 |
+
},
|
| 218 |
+
"248067": {
|
| 219 |
+
"content": "</tool_response>",
|
| 220 |
+
"single_word": false,
|
| 221 |
+
"lstrip": false,
|
| 222 |
+
"rstrip": false,
|
| 223 |
+
"normalized": false,
|
| 224 |
+
"special": false
|
| 225 |
+
},
|
| 226 |
+
"248068": {
|
| 227 |
+
"content": "<think>",
|
| 228 |
+
"single_word": false,
|
| 229 |
+
"lstrip": false,
|
| 230 |
+
"rstrip": false,
|
| 231 |
+
"normalized": false,
|
| 232 |
+
"special": false
|
| 233 |
+
},
|
| 234 |
+
"248069": {
|
| 235 |
+
"content": "</think>",
|
| 236 |
+
"single_word": false,
|
| 237 |
+
"lstrip": false,
|
| 238 |
+
"rstrip": false,
|
| 239 |
+
"normalized": false,
|
| 240 |
+
"special": false
|
| 241 |
+
},
|
| 242 |
+
"248070": {
|
| 243 |
+
"content": "<|audio_start|>",
|
| 244 |
+
"single_word": false,
|
| 245 |
+
"lstrip": false,
|
| 246 |
+
"rstrip": false,
|
| 247 |
+
"normalized": false,
|
| 248 |
+
"special": true
|
| 249 |
+
},
|
| 250 |
+
"248071": {
|
| 251 |
+
"content": "<|audio_end|>",
|
| 252 |
+
"single_word": false,
|
| 253 |
+
"lstrip": false,
|
| 254 |
+
"rstrip": false,
|
| 255 |
+
"normalized": false,
|
| 256 |
+
"special": true
|
| 257 |
+
},
|
| 258 |
+
"248072": {
|
| 259 |
+
"content": "<tts_pad>",
|
| 260 |
+
"single_word": false,
|
| 261 |
+
"lstrip": false,
|
| 262 |
+
"rstrip": false,
|
| 263 |
+
"normalized": false,
|
| 264 |
+
"special": true
|
| 265 |
+
},
|
| 266 |
+
"248073": {
|
| 267 |
+
"content": "<tts_text_bos>",
|
| 268 |
+
"single_word": false,
|
| 269 |
+
"lstrip": false,
|
| 270 |
+
"rstrip": false,
|
| 271 |
+
"normalized": false,
|
| 272 |
+
"special": true
|
| 273 |
+
},
|
| 274 |
+
"248074": {
|
| 275 |
+
"content": "<tts_text_eod>",
|
| 276 |
+
"single_word": false,
|
| 277 |
+
"lstrip": false,
|
| 278 |
+
"rstrip": false,
|
| 279 |
+
"normalized": false,
|
| 280 |
+
"special": true
|
| 281 |
+
},
|
| 282 |
+
"248075": {
|
| 283 |
+
"content": "<tts_text_bos_single>",
|
| 284 |
+
"single_word": false,
|
| 285 |
+
"lstrip": false,
|
| 286 |
+
"rstrip": false,
|
| 287 |
+
"normalized": false,
|
| 288 |
+
"special": true
|
| 289 |
+
},
|
| 290 |
+
"248076": {
|
| 291 |
+
"content": "<|audio_pad|>",
|
| 292 |
+
"single_word": false,
|
| 293 |
+
"lstrip": false,
|
| 294 |
+
"rstrip": false,
|
| 295 |
+
"normalized": false,
|
| 296 |
+
"special": true
|
| 297 |
+
}
|
| 298 |
+
},
|
| 299 |
+
"chat_template": "{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain images.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Picture ' ~ image_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n {%- elif 'video' in item or item.type == 'video' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain videos.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Video ' ~ video_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n {%- elif 'text' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception('Unexpected item type in content.') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- '' }}\n {%- else %}\n {{- raise_exception('Unexpected content type.') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- set num_sys = 0 %}\n{%- set merged_system = '' %}\n{%- if messages[0].role == 'system' or messages[0].role == 'developer' %}\n {%- set first = render_content(messages[0].content, false, true)|trim %}\n {%- if messages|length > 1 and (messages[1].role == 'system' or messages[1].role == 'developer') %}\n {%- set second = render_content(messages[1].content, false, true)|trim %}\n {%- set merged_system = first + '\\n' + second %}\n {%- set num_sys = 2 %}\n {%- else %}\n {%- set merged_system = first %}\n {%- set num_sys = 1 %}\n {%- endif %}\n{%- endif %}\n\n{%- if not merged_system -%}\n {%- set merged_system = 'You are Mario, an intelligent AI assistant that communicates through modern, modular visual web cards.' -%}\n{%- endif -%}\n\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- '<|im_start|>system\\n' }}\n {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n {%- if merged_system %}\n {{- '\\n\\n' + merged_system }}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if merged_system %}\n {{- '<|im_start|>system\\n' + merged_system + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if loop.index0 >= num_sys and message.role != \"system\" and message.role != \"developer\" %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- set reasoning_content = reasoning_content|trim %}\n {%- if loop.index0 > ns.last_query_index %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if loop.first %}\n {%- if content|trim %}\n {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- else %}\n {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- if tool_call.arguments is mapping %}\n {%- for args_name in tool_call.arguments %}\n {%- set args_value = tool_call.arguments[args_name] %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- else %}\n {{- '<think>\\n' }}\n {%- endif %}\n{%- endif %}\n{#- Unsloth fixes - developer role, tool calling #}\n"
|
| 300 |
+
}
|
webui/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🍄 Mario-HTML Explorer WebUI
|
| 2 |
+
|
| 3 |
+
Minimalist, modern visual web interface for **Mario-HTML-4B**.
|
| 4 |
+
|
| 5 |
+
## Features
|
| 6 |
+
|
| 7 |
+
- **Real-time Dual-Stream Rendering**: Displays CoT reasoning traces (`<think>`) in collapsible panels and parses semantic HTML (`<div class="ai-view">`) live.
|
| 8 |
+
- **Multimodal Clipboard Support**: Directly paste screenshots (`Ctrl+V`) from your clipboard to analyze page layouts and designs.
|
| 9 |
+
- **Live Theme Engine**: Switch between Light/Dark palettes, cyberpunk, retro themes, and live custom CSS.
|
| 10 |
+
- **Pure Zero System Prompt**: Model natively identifies as Mario and outputs modular components without external prompt engineering.
|
| 11 |
+
|
| 12 |
+
## Quick Start
|
| 13 |
+
|
| 14 |
+
### 1. Launch Inference Engine (vLLM recommended)
|
| 15 |
+
|
| 16 |
+
```bash
|
| 17 |
+
# In model root directory:
|
| 18 |
+
vllm serve . \
|
| 19 |
+
--host 0.0.0.0 \
|
| 20 |
+
--port 18085 \
|
| 21 |
+
--dtype bfloat16 \
|
| 22 |
+
--max-model-len 81920 \
|
| 23 |
+
--gpu-memory-utilization 0.95 \
|
| 24 |
+
--enforce-eager \
|
| 25 |
+
--reasoning-parser qwen3 \
|
| 26 |
+
--served-model-name qwen-3.8-27b
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
### 2. Launch WebUI
|
| 30 |
+
|
| 31 |
+
```bash
|
| 32 |
+
cd webui
|
| 33 |
+
pip install -r requirements.txt
|
| 34 |
+
python server.py --port 8791
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
Visit `http://localhost:8791` in your browser.
|
webui/config.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend_mode": "api",
|
| 3 |
+
"api_url": "http://127.0.0.1:18085",
|
| 4 |
+
"model_path": "/mnt/sdb/models/mario-qwen3.5-4b-html-16bit",
|
| 5 |
+
"model_alias": "qwen-3.8-27b",
|
| 6 |
+
"context_size": 81920,
|
| 7 |
+
"gpu_layers": 99,
|
| 8 |
+
"do_sample": true,
|
| 9 |
+
"temperature": 1.0,
|
| 10 |
+
"top_p": 0.95,
|
| 11 |
+
"top_k": 20,
|
| 12 |
+
"repetition_penalty": 1.0,
|
| 13 |
+
"max_tokens": 8192,
|
| 14 |
+
"enable_thinking": true,
|
| 15 |
+
"theme_preset": "editorial",
|
| 16 |
+
"custom_css": "/* Editorial Serif */\n.html-canvas {\n background: #fdfbf7 !important;\n color: #2c2523 !important;\n font-family: \"Georgia\", \"Times New Roman\", serif !important;\n border: 1px solid #e7dfd5 !important;\n}\n.card {\n background: #ffffff !important;\n border: 1px solid #e7dfd5 !important;\n box-shadow: 0 2px 4px rgba(44, 37, 35, 0.04) !important;\n}\nh2, h3, h4 {\n font-family: \"Georgia\", serif !important;\n font-weight: 600 !important;\n}\n.modern-table {\n border-top: 2px solid #2c2523 !important;\n border-bottom: 2px solid #2c2523 !important;\n}",
|
| 17 |
+
"system_prompt": "your are a helpful assistant that generate html to talk"
|
| 18 |
+
}
|
webui/requirements.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi>=0.100.0
|
| 2 |
+
uvicorn>=0.22.0
|
| 3 |
+
httpx>=0.24.0
|
| 4 |
+
pydantic>=2.0.0
|
webui/run_webui.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 5 |
+
cd "$SCRIPT_DIR"
|
| 6 |
+
|
| 7 |
+
PORT="${1:-8791}"
|
| 8 |
+
|
| 9 |
+
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting Mario-HTML WebUI on port $PORT..."
|
| 10 |
+
exec python3 server.py --port "$PORT"
|
webui/server.py
ADDED
|
@@ -0,0 +1,401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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end options: Llama.cpp API Server or Direct Model Path
|
| 7 |
+
- Real-time streaming for Reasoning Trace (<think>) & Rendered HTML (<div class="ai-view">)
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
import os
|
| 11 |
+
import json
|
| 12 |
+
import time
|
| 13 |
+
import subprocess
|
| 14 |
+
import threading
|
| 15 |
+
from typing import List, Dict, Optional, Union, Any
|
| 16 |
+
import httpx
|
| 17 |
+
import uvicorn
|
| 18 |
+
from fastapi import FastAPI, Request
|
| 19 |
+
from fastapi.responses import FileResponse, JSONResponse, StreamingResponse
|
| 20 |
+
from fastapi.staticfiles import StaticFiles
|
| 21 |
+
from pydantic import BaseModel
|
| 22 |
+
|
| 23 |
+
PORT = 8791
|
| 24 |
+
CONFIG_FILE = "/mnt/sdb/models/llama3.1-html-webui/config.json"
|
| 25 |
+
HISTORY_FILE = "/mnt/sdb/models/llama3.1-html-webui/chat_history.jsonl"
|
| 26 |
+
STATIC_DIR = "/mnt/sdb/models/llama3.1-html-webui/static"
|
| 27 |
+
LLAMA_SERVER_BIN = "/mnt/sdb/ubuntu/llama.cpp-clef/build/bin/llama-server"
|
| 28 |
+
|
| 29 |
+
DEFAULT_SYSTEM_PROMPT = """You are an expert technical communicator and information architect.
|
| 30 |
+
Your mission is to provide an authoritative, deep, practical, and visually engaging response to the user's inquiry, rendered directly as a modern HTML view.
|
| 31 |
+
|
| 32 |
+
[DESIGN SYSTEM & STYLING]
|
| 33 |
+
Your response will be styled by an accompanying modern CSS design system. You have full creative freedom to select and compose semantic components that naturally fit the topic:
|
| 34 |
+
- Root container: Wrap everything in <div class="ai-view">...</div>
|
| 35 |
+
- Content Cards: <div class="card"> for focused topics, modular explanations, or key sections
|
| 36 |
+
- Bento Grids: <div class="grid grid-2"> or <div class="grid grid-3"> for multi-column comparisons, alternative tools, or side-by-side perspectives
|
| 37 |
+
- Callouts: <div class="callout callout-info|warning|success|danger"><div class="callout-header">Header</div><p>Content</p></div> for highlights, warnings, tips, or key takeaways
|
| 38 |
+
- Code snippets: <div class="code-box"><div class="code-header"><span class="code-dots"><i></i><i></i><i></i></span><span class="code-title">LANG</span></div><pre><code>...</code></pre></div> for code or CLI commands
|
| 39 |
+
- Modern Tables: <div class="table-container"><table class="modern-table"><thead>...</thead><tbody>...</tbody></table></div> for structured tabular data
|
| 40 |
+
- Steppers / Workflows: <div class="stepper"><div class="step-item"><div class="step-num">1</div><div class="step-content"><h4>Title</h4><p>Details</p></div></div></div> for sequential steps or tutorials
|
| 41 |
+
- Metrics / Key Specs: <div class="metric-group"><div class="metric-card"><span class="metric-label">Label</span><span class="metric-value">Value</span><span class="metric-sub">Subtext</span></div></div>
|
| 42 |
+
- Badges & Tags: <span class="badge badge-accent|success|warning|danger|info"> for category tags or status indicators
|
| 43 |
+
- Summary Card: <div class="summary"><p class="lead">...</p></div> (optional, if the question benefits from a clear bottom-line takeaway)
|
| 44 |
+
- Typography: Use standard semantic tags (<h2>, <h3>, <p>, <ul>, <ol>, <li>, <strong>, <code>) freely.
|
| 45 |
+
|
| 46 |
+
[GUIDELINES]
|
| 47 |
+
- Pure HTML fragment only. Start directly with <div class="ai-view"> and close with </div>.
|
| 48 |
+
- No markdown code fences (do NOT wrap output in ```html or ```).
|
| 49 |
+
- Prioritize high information density: use structured cards, tables, steppers, and callouts to make explanations punchy, scannable, and elegant. Avoid bloated narrative padding.
|
| 50 |
+
- Ensure all HTML tags are strictly balanced and properly closed."""
|
| 51 |
+
|
| 52 |
+
DEFAULT_CONFIG = {
|
| 53 |
+
"backend_mode": "api", # 'api' or 'direct'
|
| 54 |
+
"api_url": "http://127.0.0.1:18085",
|
| 55 |
+
"model_path": "/mnt/sdb/models/mario-qwen3.5-4b-html-16bit",
|
| 56 |
+
"model_alias": "qwen-3.8-27b",
|
| 57 |
+
"context_size": 81920,
|
| 58 |
+
"gpu_layers": 99,
|
| 59 |
+
"do_sample": True,
|
| 60 |
+
"temperature": 1.0,
|
| 61 |
+
"top_p": 0.95,
|
| 62 |
+
"top_k": 20,
|
| 63 |
+
"min_p": 0.0,
|
| 64 |
+
"presence_penalty": 1.5,
|
| 65 |
+
"repetition_penalty": 1.0,
|
| 66 |
+
"max_tokens": 8192,
|
| 67 |
+
"enable_thinking": True,
|
| 68 |
+
"theme_preset": "default",
|
| 69 |
+
"custom_css": "",
|
| 70 |
+
"system_prompt": "",
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
config_lock = threading.Lock()
|
| 74 |
+
|
| 75 |
+
def load_config() -> dict:
|
| 76 |
+
if os.path.exists(CONFIG_FILE):
|
| 77 |
+
try:
|
| 78 |
+
with open(CONFIG_FILE, "r", encoding="utf-8") as f:
|
| 79 |
+
data = json.load(f)
|
| 80 |
+
cfg = dict(DEFAULT_CONFIG)
|
| 81 |
+
cfg.update(data)
|
| 82 |
+
return cfg
|
| 83 |
+
except Exception:
|
| 84 |
+
pass
|
| 85 |
+
return dict(DEFAULT_CONFIG)
|
| 86 |
+
|
| 87 |
+
def save_config(cfg: dict):
|
| 88 |
+
with config_lock:
|
| 89 |
+
with open(CONFIG_FILE, "w", encoding="utf-8") as f:
|
| 90 |
+
json.dump(cfg, f, indent=2, ensure_ascii=False)
|
| 91 |
+
|
| 92 |
+
current_config = load_config()
|
| 93 |
+
|
| 94 |
+
history_lock = threading.Lock()
|
| 95 |
+
|
| 96 |
+
def log_chat(record: dict):
|
| 97 |
+
with history_lock:
|
| 98 |
+
with open(HISTORY_FILE, "a", encoding="utf-8") as f:
|
| 99 |
+
f.write(json.dumps(record, ensure_ascii=False) + "\n")
|
| 100 |
+
|
| 101 |
+
app = FastAPI(title="Qwen-HTML WebUI")
|
| 102 |
+
app.mount("/static", StaticFiles(directory=STATIC_DIR), name="static")
|
| 103 |
+
|
| 104 |
+
@app.get("/")
|
| 105 |
+
async def root():
|
| 106 |
+
return FileResponse(os.path.join(STATIC_DIR, "index.html"))
|
| 107 |
+
|
| 108 |
+
@app.get("/api/config")
|
| 109 |
+
async def get_config_endpoint():
|
| 110 |
+
return current_config
|
| 111 |
+
|
| 112 |
+
class UpdateConfigRequest(BaseModel):
|
| 113 |
+
backend_mode: Optional[str] = None
|
| 114 |
+
api_url: Optional[str] = None
|
| 115 |
+
model_path: Optional[str] = None
|
| 116 |
+
context_size: Optional[int] = None
|
| 117 |
+
gpu_layers: Optional[int] = None
|
| 118 |
+
do_sample: Optional[bool] = None
|
| 119 |
+
temperature: Optional[float] = None
|
| 120 |
+
top_p: Optional[float] = None
|
| 121 |
+
top_k: Optional[int] = None
|
| 122 |
+
min_p: Optional[float] = None
|
| 123 |
+
presence_penalty: Optional[float] = None
|
| 124 |
+
repetition_penalty: Optional[float] = None
|
| 125 |
+
max_tokens: Optional[int] = None
|
| 126 |
+
enable_thinking: Optional[bool] = None
|
| 127 |
+
theme_preset: Optional[str] = None
|
| 128 |
+
custom_css: Optional[str] = None
|
| 129 |
+
system_prompt: Optional[str] = None
|
| 130 |
+
|
| 131 |
+
@app.post("/api/config")
|
| 132 |
+
async def update_config_endpoint(req: UpdateConfigRequest):
|
| 133 |
+
updates = req.dict(exclude_unset=True)
|
| 134 |
+
current_config.update(updates)
|
| 135 |
+
save_config(current_config)
|
| 136 |
+
return {"status": "ok", "config": current_config}
|
| 137 |
+
|
| 138 |
+
@app.get("/api/status")
|
| 139 |
+
async def status_endpoint():
|
| 140 |
+
api_url = current_config.get("api_url", "http://127.0.0.1:18085")
|
| 141 |
+
is_alive = False
|
| 142 |
+
model_info = "Unknown"
|
| 143 |
+
latency_ms = None
|
| 144 |
+
|
| 145 |
+
t0 = time.time()
|
| 146 |
+
try:
|
| 147 |
+
async with httpx.AsyncClient(timeout=2.0) as client:
|
| 148 |
+
resp = await client.get(f"{api_url}/health")
|
| 149 |
+
if resp.status_code == 200:
|
| 150 |
+
is_alive = True
|
| 151 |
+
latency_ms = round((time.time() - t0) * 1000, 1)
|
| 152 |
+
m_resp = await client.get(f"{api_url}/v1/models")
|
| 153 |
+
if m_resp.status_code == 200:
|
| 154 |
+
models = m_resp.json().get("data", [])
|
| 155 |
+
if models:
|
| 156 |
+
model_info = models[0].get("id", "qwen3.5-4b-html")
|
| 157 |
+
except Exception:
|
| 158 |
+
pass
|
| 159 |
+
|
| 160 |
+
return {
|
| 161 |
+
"status": "ready" if is_alive else "disconnected",
|
| 162 |
+
"backend_mode": current_config.get("backend_mode", "api"),
|
| 163 |
+
"api_url": api_url,
|
| 164 |
+
"model_path": current_config.get("model_path"),
|
| 165 |
+
"model_info": model_info,
|
| 166 |
+
"latency_ms": latency_ms,
|
| 167 |
+
"enable_thinking": current_config.get("enable_thinking", True)
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
class LoadModelRequest(BaseModel):
|
| 171 |
+
model_path: str
|
| 172 |
+
context_size: Optional[int] = 65536
|
| 173 |
+
gpu_layers: Optional[int] = 99
|
| 174 |
+
|
| 175 |
+
@app.post("/api/model/load")
|
| 176 |
+
async def load_model_endpoint(req: LoadModelRequest):
|
| 177 |
+
model_path = req.model_path.strip()
|
| 178 |
+
if not os.path.exists(model_path):
|
| 179 |
+
return JSONResponse(status_code=400, content={"error": f"File does not exist: {model_path}"})
|
| 180 |
+
|
| 181 |
+
ctx = req.context_size or 65536
|
| 182 |
+
ngl = req.gpu_layers if req.gpu_layers is not None else 99
|
| 183 |
+
|
| 184 |
+
# Restart llama-server service
|
| 185 |
+
stop_cmd = ["systemctl", "--user", "stop", "llama-server-q8.scope"]
|
| 186 |
+
subprocess.run(stop_cmd, check=False)
|
| 187 |
+
time.sleep(1.5)
|
| 188 |
+
|
| 189 |
+
start_cmd = [
|
| 190 |
+
"systemd-run", "--user", "--scope", "--unit=llama-server-q8",
|
| 191 |
+
LLAMA_SERVER_BIN,
|
| 192 |
+
"--host", "0.0.0.0",
|
| 193 |
+
"--port", "18085",
|
| 194 |
+
"-m", model_path,
|
| 195 |
+
"-c", str(ctx),
|
| 196 |
+
"-ngl", str(ngl),
|
| 197 |
+
"-fa", "on",
|
| 198 |
+
"--alias", "qwen3.5-4b-html",
|
| 199 |
+
"-t", "8"
|
| 200 |
+
]
|
| 201 |
+
mmproj_candidate = os.path.join(os.path.dirname(model_path), "mmproj-Qwen3.5-4B-BF16.gguf")
|
| 202 |
+
if os.path.exists(mmproj_candidate):
|
| 203 |
+
start_cmd.extend(["--mmproj", mmproj_candidate])
|
| 204 |
+
elif os.path.exists("/mnt/sdb/models/qwen3.5-4b-html-v4-onix-16k-gguf/mmproj-Qwen3.5-4B-BF16.gguf"):
|
| 205 |
+
start_cmd.extend(["--mmproj", "/mnt/sdb/models/qwen3.5-4b-html-v4-onix-16k-gguf/mmproj-Qwen3.5-4B-BF16.gguf"])
|
| 206 |
+
|
| 207 |
+
proc = subprocess.Popen(start_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| 208 |
+
|
| 209 |
+
# Poll for health check
|
| 210 |
+
ready = False
|
| 211 |
+
for _ in range(25):
|
| 212 |
+
time.sleep(0.5)
|
| 213 |
+
try:
|
| 214 |
+
with httpx.Client(timeout=1.0) as client:
|
| 215 |
+
res = client.get("http://127.0.0.1:18085/health")
|
| 216 |
+
if res.status_code == 200:
|
| 217 |
+
ready = True
|
| 218 |
+
break
|
| 219 |
+
except Exception:
|
| 220 |
+
pass
|
| 221 |
+
|
| 222 |
+
if ready:
|
| 223 |
+
current_config["model_path"] = model_path
|
| 224 |
+
current_config["context_size"] = ctx
|
| 225 |
+
current_config["gpu_layers"] = ngl
|
| 226 |
+
current_config["backend_mode"] = "direct"
|
| 227 |
+
save_config(current_config)
|
| 228 |
+
return {"status": "ok", "message": f"Successfully loaded {os.path.basename(model_path)}"}
|
| 229 |
+
else:
|
| 230 |
+
return JSONResponse(status_code=500, content={"error": "Failed to start llama-server with the specified model."})
|
| 231 |
+
|
| 232 |
+
class ChatMessage(BaseModel):
|
| 233 |
+
role: str
|
| 234 |
+
content: Union[str, List[Any], Dict[str, Any]]
|
| 235 |
+
|
| 236 |
+
class ChatStreamRequest(BaseModel):
|
| 237 |
+
messages: List[ChatMessage]
|
| 238 |
+
enable_thinking: Optional[bool] = None
|
| 239 |
+
do_sample: Optional[bool] = None
|
| 240 |
+
temperature: Optional[float] = None
|
| 241 |
+
top_p: Optional[float] = None
|
| 242 |
+
top_k: Optional[int] = None
|
| 243 |
+
min_p: Optional[float] = None
|
| 244 |
+
presence_penalty: Optional[float] = None
|
| 245 |
+
repetition_penalty: Optional[float] = None
|
| 246 |
+
max_tokens: Optional[int] = None
|
| 247 |
+
system_prompt: Optional[str] = None
|
| 248 |
+
|
| 249 |
+
@app.post("/api/chat/stream")
|
| 250 |
+
async def chat_stream_endpoint(req: ChatStreamRequest, request: Request):
|
| 251 |
+
client_ip = request.client.host if request.client else "unknown"
|
| 252 |
+
t0 = time.time()
|
| 253 |
+
|
| 254 |
+
enable_thinking = req.enable_thinking if req.enable_thinking is not None else current_config.get("enable_thinking", True)
|
| 255 |
+
do_sample = req.do_sample if req.do_sample is not None else current_config.get("do_sample", True)
|
| 256 |
+
temp = req.temperature if req.temperature is not None else current_config.get("temperature", 1.0)
|
| 257 |
+
if not do_sample:
|
| 258 |
+
temp = 0.0
|
| 259 |
+
top_p = req.top_p if req.top_p is not None else current_config.get("top_p", 0.95)
|
| 260 |
+
top_k = req.top_k if req.top_k is not None else current_config.get("top_k", 20)
|
| 261 |
+
min_p = req.min_p if req.min_p is not None else current_config.get("min_p", 0.0)
|
| 262 |
+
pres_penalty = req.presence_penalty if req.presence_penalty is not None else current_config.get("presence_penalty", 1.5)
|
| 263 |
+
rep_penalty = req.repetition_penalty if req.repetition_penalty is not None else current_config.get("repetition_penalty", 1.0)
|
| 264 |
+
max_tokens = req.max_tokens if req.max_tokens is not None else current_config.get("max_tokens", 8192)
|
| 265 |
+
sys_prompt = req.system_prompt if req.system_prompt is not None else current_config.get("system_prompt", "")
|
| 266 |
+
|
| 267 |
+
messages_payload = []
|
| 268 |
+
if sys_prompt and sys_prompt.strip():
|
| 269 |
+
messages_payload.append({"role": "system", "content": sys_prompt.strip()})
|
| 270 |
+
|
| 271 |
+
for msg in req.messages:
|
| 272 |
+
messages_payload.append({"role": msg.role, "content": msg.content})
|
| 273 |
+
|
| 274 |
+
payload = {
|
| 275 |
+
"model": current_config.get("model_alias", "qwen-3.8-27b"),
|
| 276 |
+
"messages": messages_payload,
|
| 277 |
+
"temperature": temp,
|
| 278 |
+
"top_p": top_p,
|
| 279 |
+
"max_tokens": max_tokens,
|
| 280 |
+
"stream": True,
|
| 281 |
+
"chat_template_kwargs": {"enable_thinking": enable_thinking},
|
| 282 |
+
}
|
| 283 |
+
if top_k is not None and top_k > 0:
|
| 284 |
+
payload["top_k"] = top_k
|
| 285 |
+
if min_p is not None and min_p > 0:
|
| 286 |
+
payload["min_p"] = min_p
|
| 287 |
+
if pres_penalty is not None:
|
| 288 |
+
payload["presence_penalty"] = pres_penalty
|
| 289 |
+
if rep_penalty is not None and rep_penalty > 0:
|
| 290 |
+
payload["repetition_penalty"] = rep_penalty
|
| 291 |
+
|
| 292 |
+
api_url = current_config.get("api_url", "http://127.0.0.1:18085")
|
| 293 |
+
|
| 294 |
+
async def event_generator():
|
| 295 |
+
thought_chunks = []
|
| 296 |
+
content_chunks = []
|
| 297 |
+
token_count = 0
|
| 298 |
+
|
| 299 |
+
in_thinking_mode = False
|
| 300 |
+
|
| 301 |
+
try:
|
| 302 |
+
async with httpx.AsyncClient(timeout=180.0) as client:
|
| 303 |
+
async with client.stream(
|
| 304 |
+
"POST",
|
| 305 |
+
f"{api_url}/v1/chat/completions",
|
| 306 |
+
json=payload,
|
| 307 |
+
headers={"Content-Type": "application/json"}
|
| 308 |
+
) as response:
|
| 309 |
+
if response.status_code != 200:
|
| 310 |
+
err_text = await response.aread()
|
| 311 |
+
yield f"data: {json.dumps({'type': 'error', 'error': err_text.decode('utf-8')}, ensure_ascii=False)}\n\n"
|
| 312 |
+
return
|
| 313 |
+
|
| 314 |
+
async for line in response.aiter_lines():
|
| 315 |
+
if not line or not line.startswith("data: "):
|
| 316 |
+
continue
|
| 317 |
+
data_str = line[6:].strip()
|
| 318 |
+
if data_str == "[DONE]":
|
| 319 |
+
break
|
| 320 |
+
try:
|
| 321 |
+
chunk_json = json.loads(data_str)
|
| 322 |
+
choice = chunk_json.get("choices", [{}])[0]
|
| 323 |
+
delta = choice.get("delta", {})
|
| 324 |
+
|
| 325 |
+
# Reasoning trace
|
| 326 |
+
reasoning = delta.get("reasoning_content") or delta.get("reasoning")
|
| 327 |
+
if reasoning:
|
| 328 |
+
thought_chunks.append(reasoning)
|
| 329 |
+
token_count += 1
|
| 330 |
+
out_data = json.dumps({"type": "thought", "content": reasoning}, ensure_ascii=False)
|
| 331 |
+
yield f"data: {out_data}\n\n"
|
| 332 |
+
|
| 333 |
+
# Main content (HTML)
|
| 334 |
+
if "content" in delta and delta["content"]:
|
| 335 |
+
text = delta["content"]
|
| 336 |
+
token_count += 1
|
| 337 |
+
|
| 338 |
+
# Intercept and route raw <think> tags if present in content
|
| 339 |
+
cur = text
|
| 340 |
+
while cur:
|
| 341 |
+
if not in_thinking_mode:
|
| 342 |
+
if "<think>" in cur:
|
| 343 |
+
before, cur = cur.split("<think>", 1)
|
| 344 |
+
if before:
|
| 345 |
+
content_chunks.append(before)
|
| 346 |
+
yield f"data: {json.dumps({'type': 'content', 'content': before}, ensure_ascii=False)}\n\n"
|
| 347 |
+
in_thinking_mode = True
|
| 348 |
+
else:
|
| 349 |
+
content_chunks.append(cur)
|
| 350 |
+
yield f"data: {json.dumps({'type': 'content', 'content': cur}, ensure_ascii=False)}\n\n"
|
| 351 |
+
break
|
| 352 |
+
else:
|
| 353 |
+
if "</think>" in cur:
|
| 354 |
+
thought_part, cur = cur.split("</think>", 1)
|
| 355 |
+
if thought_part:
|
| 356 |
+
thought_chunks.append(thought_part)
|
| 357 |
+
yield f"data: {json.dumps({'type': 'thought', 'content': thought_part}, ensure_ascii=False)}\n\n"
|
| 358 |
+
in_thinking_mode = False
|
| 359 |
+
else:
|
| 360 |
+
thought_chunks.append(cur)
|
| 361 |
+
yield f"data: {json.dumps({'type': 'thought', 'content': cur}, ensure_ascii=False)}\n\n"
|
| 362 |
+
break
|
| 363 |
+
except Exception:
|
| 364 |
+
continue
|
| 365 |
+
|
| 366 |
+
elapsed = round(time.time() - t0, 2)
|
| 367 |
+
tok_per_sec = round(token_count / elapsed, 1) if elapsed > 0 else 0
|
| 368 |
+
|
| 369 |
+
full_thought = "".join(thought_chunks).strip()
|
| 370 |
+
full_content = "".join(content_chunks).strip()
|
| 371 |
+
|
| 372 |
+
done_payload = json.dumps({
|
| 373 |
+
"type": "done",
|
| 374 |
+
"tokens": token_count,
|
| 375 |
+
"elapsed": elapsed,
|
| 376 |
+
"tok_per_sec": tok_per_sec,
|
| 377 |
+
}, ensure_ascii=False)
|
| 378 |
+
yield f"data: {done_payload}\n\n"
|
| 379 |
+
|
| 380 |
+
# Log chat
|
| 381 |
+
log_chat({
|
| 382 |
+
"timestamp": time.strftime("%Y-%m-%d %H:%M:%S"),
|
| 383 |
+
"client_ip": client_ip,
|
| 384 |
+
"messages": [m.dict() for m in req.messages],
|
| 385 |
+
"tokens": token_count,
|
| 386 |
+
"elapsed": elapsed,
|
| 387 |
+
"tok_per_sec": tok_per_sec,
|
| 388 |
+
"enable_thinking": enable_thinking,
|
| 389 |
+
"thought_len": len(full_thought),
|
| 390 |
+
"content_len": len(full_content)
|
| 391 |
+
})
|
| 392 |
+
|
| 393 |
+
except Exception as ex:
|
| 394 |
+
err_data = json.dumps({"type": "error", "error": str(ex)}, ensure_ascii=False)
|
| 395 |
+
yield f"data: {err_data}\n\n"
|
| 396 |
+
|
| 397 |
+
return StreamingResponse(event_generator(), media_type="text/event-stream")
|
| 398 |
+
|
| 399 |
+
if __name__ == "__main__":
|
| 400 |
+
print(f"Starting Qwen-HTML Minimal WebUI on http://0.0.0.0:{PORT}...")
|
| 401 |
+
uvicorn.run(app, host="0.0.0.0", port=PORT, log_level="info")
|
webui/static/index.html
ADDED
|
@@ -0,0 +1,1599 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Mario-HTML Explorer</title>
|
| 7 |
+
<link rel="stylesheet" href="/static/theme.css">
|
| 8 |
+
<style id="custom-theme-style"></style>
|
| 9 |
+
<style>
|
| 10 |
+
:root {
|
| 11 |
+
--bg-page: #f8fafc;
|
| 12 |
+
--bg-surface: #ffffff;
|
| 13 |
+
--bg-surface-elevated: #f1f5f9;
|
| 14 |
+
--border-color: #e2e8f0;
|
| 15 |
+
--border-focus: #2563eb;
|
| 16 |
+
--text-main: #0f172a;
|
| 17 |
+
--text-sub: #64748b;
|
| 18 |
+
--accent: #2563eb;
|
| 19 |
+
--accent-hover: #1d4ed8;
|
| 20 |
+
--accent-subtle: #eff6ff;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
* { box-sizing: border-box; margin: 0; padding: 0; }
|
| 24 |
+
body {
|
| 25 |
+
background-color: var(--bg-page);
|
| 26 |
+
color: var(--text-main);
|
| 27 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
| 28 |
+
height: 100vh;
|
| 29 |
+
display: flex;
|
| 30 |
+
flex-direction: column;
|
| 31 |
+
overflow: hidden;
|
| 32 |
+
padding: 0;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
/* Header */
|
| 36 |
+
header {
|
| 37 |
+
background-color: rgba(255, 255, 255, 0.95);
|
| 38 |
+
border-bottom: 1px solid var(--border-color);
|
| 39 |
+
padding: 12px 24px;
|
| 40 |
+
display: flex;
|
| 41 |
+
align-items: center;
|
| 42 |
+
justify-content: space-between;
|
| 43 |
+
backdrop-filter: blur(8px);
|
| 44 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
| 45 |
+
z-index: 20;
|
| 46 |
+
}
|
| 47 |
+
.brand {
|
| 48 |
+
display: flex;
|
| 49 |
+
align-items: center;
|
| 50 |
+
gap: 10px;
|
| 51 |
+
font-size: 1.1rem;
|
| 52 |
+
font-weight: 700;
|
| 53 |
+
color: var(--text-main);
|
| 54 |
+
letter-spacing: -0.02em;
|
| 55 |
+
}
|
| 56 |
+
.brand-badge {
|
| 57 |
+
background: var(--accent-subtle);
|
| 58 |
+
color: var(--accent);
|
| 59 |
+
font-size: 0.75rem;
|
| 60 |
+
padding: 2px 8px;
|
| 61 |
+
border-radius: 999px;
|
| 62 |
+
font-weight: 600;
|
| 63 |
+
border: 1px solid #bfdbfe;
|
| 64 |
+
}
|
| 65 |
+
.header-actions {
|
| 66 |
+
display: flex;
|
| 67 |
+
align-items: center;
|
| 68 |
+
gap: 12px;
|
| 69 |
+
}
|
| 70 |
+
.status-pill {
|
| 71 |
+
display: flex;
|
| 72 |
+
align-items: center;
|
| 73 |
+
gap: 6px;
|
| 74 |
+
font-size: 0.8rem;
|
| 75 |
+
padding: 4px 12px;
|
| 76 |
+
border-radius: 999px;
|
| 77 |
+
background: var(--bg-surface);
|
| 78 |
+
border: 1px solid var(--border-color);
|
| 79 |
+
color: var(--text-sub);
|
| 80 |
+
cursor: pointer;
|
| 81 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
| 82 |
+
transition: all 0.2s;
|
| 83 |
+
}
|
| 84 |
+
.status-pill:hover { border-color: var(--accent); color: var(--text-main); }
|
| 85 |
+
.status-dot {
|
| 86 |
+
width: 8px;
|
| 87 |
+
height: 8px;
|
| 88 |
+
border-radius: 50%;
|
| 89 |
+
background: #10b981;
|
| 90 |
+
}
|
| 91 |
+
.status-dot.error { background: #ef4444; }
|
| 92 |
+
|
| 93 |
+
.btn-icon {
|
| 94 |
+
background: var(--bg-surface);
|
| 95 |
+
border: 1px solid var(--border-color);
|
| 96 |
+
color: #334155;
|
| 97 |
+
padding: 6px 12px;
|
| 98 |
+
border-radius: 6px;
|
| 99 |
+
font-size: 0.85rem;
|
| 100 |
+
font-weight: 500;
|
| 101 |
+
cursor: pointer;
|
| 102 |
+
display: inline-flex;
|
| 103 |
+
align-items: center;
|
| 104 |
+
gap: 6px;
|
| 105 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
| 106 |
+
transition: all 0.2s;
|
| 107 |
+
}
|
| 108 |
+
.btn-icon:hover {
|
| 109 |
+
background: var(--bg-surface-elevated);
|
| 110 |
+
border-color: #cbd5e1;
|
| 111 |
+
color: var(--text-main);
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
/* Main Chat Container */
|
| 115 |
+
#chat-container {
|
| 116 |
+
flex: 1;
|
| 117 |
+
overflow-y: auto;
|
| 118 |
+
padding: 24px 16px 220px 16px;
|
| 119 |
+
scroll-behavior: smooth;
|
| 120 |
+
}
|
| 121 |
+
.chat-inner {
|
| 122 |
+
max-width: 920px;
|
| 123 |
+
margin: 0 auto;
|
| 124 |
+
display: flex;
|
| 125 |
+
flex-direction: column;
|
| 126 |
+
gap: 28px;
|
| 127 |
+
padding-bottom: 40px;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
/* Welcome Banner */
|
| 131 |
+
.welcome-card {
|
| 132 |
+
background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
|
| 133 |
+
border: 1px solid var(--border-color);
|
| 134 |
+
border-radius: 14px;
|
| 135 |
+
padding: 32px 24px;
|
| 136 |
+
text-align: center;
|
| 137 |
+
margin-top: 16px;
|
| 138 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
|
| 139 |
+
}
|
| 140 |
+
.welcome-title {
|
| 141 |
+
font-size: 1.45rem;
|
| 142 |
+
font-weight: 700;
|
| 143 |
+
margin-bottom: 8px;
|
| 144 |
+
color: var(--text-main);
|
| 145 |
+
}
|
| 146 |
+
.welcome-desc {
|
| 147 |
+
color: var(--text-sub);
|
| 148 |
+
font-size: 0.95rem;
|
| 149 |
+
max-width: 620px;
|
| 150 |
+
margin: 0 auto 24px auto;
|
| 151 |
+
line-height: 1.6;
|
| 152 |
+
}
|
| 153 |
+
.chips-grid {
|
| 154 |
+
display: flex;
|
| 155 |
+
flex-wrap: wrap;
|
| 156 |
+
gap: 10px;
|
| 157 |
+
justify-content: center;
|
| 158 |
+
}
|
| 159 |
+
.prompt-chip {
|
| 160 |
+
background: var(--bg-surface);
|
| 161 |
+
border: 1px solid var(--border-color);
|
| 162 |
+
padding: 7px 16px;
|
| 163 |
+
border-radius: 20px;
|
| 164 |
+
font-size: 0.85rem;
|
| 165 |
+
color: var(--text-main);
|
| 166 |
+
cursor: pointer;
|
| 167 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
|
| 168 |
+
transition: all 0.2s;
|
| 169 |
+
}
|
| 170 |
+
.prompt-chip:hover {
|
| 171 |
+
background: var(--accent-subtle);
|
| 172 |
+
border-color: #93c5fd;
|
| 173 |
+
color: var(--accent);
|
| 174 |
+
transform: translateY(-1px);
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
/* Message Bubbles */
|
| 178 |
+
.message-row {
|
| 179 |
+
display: flex;
|
| 180 |
+
flex-direction: column;
|
| 181 |
+
gap: 8px;
|
| 182 |
+
animation: fadeIn 0.25s ease-out;
|
| 183 |
+
}
|
| 184 |
+
@keyframes fadeIn {
|
| 185 |
+
from { opacity: 0; transform: translateY(6px); }
|
| 186 |
+
to { opacity: 1; transform: translateY(0); }
|
| 187 |
+
}
|
| 188 |
+
.message-user {
|
| 189 |
+
align-self: flex-end;
|
| 190 |
+
max-width: 80%;
|
| 191 |
+
}
|
| 192 |
+
.user-bubble {
|
| 193 |
+
background: var(--accent);
|
| 194 |
+
color: #ffffff;
|
| 195 |
+
padding: 12px 18px;
|
| 196 |
+
border-radius: 14px 14px 2px 14px;
|
| 197 |
+
font-size: 0.95rem;
|
| 198 |
+
line-height: 1.5;
|
| 199 |
+
word-break: break-word;
|
| 200 |
+
box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
|
| 201 |
+
}
|
| 202 |
+
.message-assistant {
|
| 203 |
+
align-self: stretch;
|
| 204 |
+
max-width: 100%;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
/* Thinking Trace Block */
|
| 208 |
+
.thinking-box {
|
| 209 |
+
background: #f8fafc;
|
| 210 |
+
border: 1px solid var(--border-color);
|
| 211 |
+
border-left: 3px solid #6366f1;
|
| 212 |
+
border-radius: 8px;
|
| 213 |
+
margin-bottom: 12px;
|
| 214 |
+
overflow: hidden;
|
| 215 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
|
| 216 |
+
}
|
| 217 |
+
.thinking-summary {
|
| 218 |
+
padding: 9px 14px;
|
| 219 |
+
display: flex;
|
| 220 |
+
align-items: center;
|
| 221 |
+
gap: 8px;
|
| 222 |
+
font-size: 0.82rem;
|
| 223 |
+
font-weight: 600;
|
| 224 |
+
color: #475569;
|
| 225 |
+
font-family: var(--font-mono, monospace);
|
| 226 |
+
cursor: pointer;
|
| 227 |
+
user-select: none;
|
| 228 |
+
background: #f1f5f9;
|
| 229 |
+
}
|
| 230 |
+
.thinking-summary:hover {
|
| 231 |
+
color: var(--text-main);
|
| 232 |
+
}
|
| 233 |
+
.thinking-summary::marker { display: none; }
|
| 234 |
+
.thinking-content {
|
| 235 |
+
padding: 14px 18px;
|
| 236 |
+
font-family: var(--font-mono, monospace);
|
| 237 |
+
font-size: 0.82rem;
|
| 238 |
+
color: #475569;
|
| 239 |
+
line-height: 1.6;
|
| 240 |
+
white-space: pre-wrap;
|
| 241 |
+
word-break: break-word;
|
| 242 |
+
border-top: 1px solid var(--border-color);
|
| 243 |
+
max-height: 380px;
|
| 244 |
+
overflow-y: auto;
|
| 245 |
+
background: #f8fafc;
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
/* HTML Content Canvas */
|
| 249 |
+
.html-canvas {
|
| 250 |
+
background: #ffffff;
|
| 251 |
+
color: #1e293b;
|
| 252 |
+
border-radius: 14px;
|
| 253 |
+
padding: 24px;
|
| 254 |
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
|
| 255 |
+
border: 1px solid var(--border-color);
|
| 256 |
+
overflow-x: auto;
|
| 257 |
+
}
|
| 258 |
+
.raw-source-view {
|
| 259 |
+
background: #0f172a;
|
| 260 |
+
color: #38bdf8;
|
| 261 |
+
font-family: var(--font-mono, monospace);
|
| 262 |
+
font-size: 0.82rem;
|
| 263 |
+
padding: 16px;
|
| 264 |
+
border-radius: 8px;
|
| 265 |
+
white-space: pre-wrap;
|
| 266 |
+
word-break: break-all;
|
| 267 |
+
max-height: 400px;
|
| 268 |
+
overflow-y: auto;
|
| 269 |
+
border: 1px solid #1e293b;
|
| 270 |
+
display: none;
|
| 271 |
+
margin-top: 10px;
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
/* Action bar below message */
|
| 275 |
+
.msg-footer {
|
| 276 |
+
display: flex;
|
| 277 |
+
align-items: center;
|
| 278 |
+
justify-content: space-between;
|
| 279 |
+
margin-top: 10px;
|
| 280 |
+
padding: 8px 14px;
|
| 281 |
+
background: var(--bg-surface);
|
| 282 |
+
border: 1px solid var(--border-color);
|
| 283 |
+
border-radius: 8px;
|
| 284 |
+
font-size: 0.78rem;
|
| 285 |
+
color: var(--text-sub);
|
| 286 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
|
| 287 |
+
}
|
| 288 |
+
.msg-stats {
|
| 289 |
+
display: flex;
|
| 290 |
+
align-items: center;
|
| 291 |
+
gap: 12px;
|
| 292 |
+
font-family: var(--font-mono, monospace);
|
| 293 |
+
font-weight: 500;
|
| 294 |
+
}
|
| 295 |
+
.msg-actions {
|
| 296 |
+
display: flex;
|
| 297 |
+
align-items: center;
|
| 298 |
+
gap: 8px;
|
| 299 |
+
}
|
| 300 |
+
.action-btn {
|
| 301 |
+
background: var(--bg-surface-elevated);
|
| 302 |
+
border: 1px solid var(--border-color);
|
| 303 |
+
color: #334155;
|
| 304 |
+
font-size: 0.75rem;
|
| 305 |
+
font-weight: 500;
|
| 306 |
+
padding: 4px 10px;
|
| 307 |
+
border-radius: 6px;
|
| 308 |
+
cursor: pointer;
|
| 309 |
+
display: inline-flex;
|
| 310 |
+
align-items: center;
|
| 311 |
+
gap: 4px;
|
| 312 |
+
transition: all 0.15s;
|
| 313 |
+
}
|
| 314 |
+
.action-btn:hover {
|
| 315 |
+
background: #e2e8f0;
|
| 316 |
+
color: var(--accent);
|
| 317 |
+
border-color: #cbd5e1;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
/* Input Floating Bar */
|
| 321 |
+
.input-wrapper {
|
| 322 |
+
position: fixed;
|
| 323 |
+
bottom: 0;
|
| 324 |
+
left: 0;
|
| 325 |
+
right: 0;
|
| 326 |
+
background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.95) 25%, #f8fafc 100%);
|
| 327 |
+
padding: 16px 16px 22px 16px;
|
| 328 |
+
z-index: 10;
|
| 329 |
+
}
|
| 330 |
+
.input-box {
|
| 331 |
+
max-width: 920px;
|
| 332 |
+
margin: 0 auto;
|
| 333 |
+
background: var(--bg-surface);
|
| 334 |
+
border: 1px solid #cbd5e1;
|
| 335 |
+
border-radius: 14px;
|
| 336 |
+
padding: 12px 16px;
|
| 337 |
+
display: flex;
|
| 338 |
+
flex-direction: column;
|
| 339 |
+
gap: 8px;
|
| 340 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
|
| 341 |
+
transition: border-color 0.2s, box-shadow 0.2s;
|
| 342 |
+
}
|
| 343 |
+
.input-box:focus-within {
|
| 344 |
+
border-color: var(--accent);
|
| 345 |
+
box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.12), 0 8px 10px -6px rgba(37, 99, 235, 0.08);
|
| 346 |
+
}
|
| 347 |
+
textarea {
|
| 348 |
+
width: 100%;
|
| 349 |
+
background: transparent;
|
| 350 |
+
border: none;
|
| 351 |
+
outline: none;
|
| 352 |
+
color: var(--text-main);
|
| 353 |
+
font-size: 0.95rem;
|
| 354 |
+
font-family: inherit;
|
| 355 |
+
resize: none;
|
| 356 |
+
min-height: 44px;
|
| 357 |
+
max-height: 180px;
|
| 358 |
+
line-height: 1.5;
|
| 359 |
+
}
|
| 360 |
+
textarea::placeholder {
|
| 361 |
+
color: #94a3b8;
|
| 362 |
+
}
|
| 363 |
+
.input-bottom-row {
|
| 364 |
+
display: flex;
|
| 365 |
+
align-items: center;
|
| 366 |
+
justify-content: space-between;
|
| 367 |
+
border-top: 1px solid #f1f5f9;
|
| 368 |
+
padding-top: 8px;
|
| 369 |
+
}
|
| 370 |
+
.toggle-label {
|
| 371 |
+
display: inline-flex;
|
| 372 |
+
align-items: center;
|
| 373 |
+
gap: 8px;
|
| 374 |
+
font-size: 0.8rem;
|
| 375 |
+
color: var(--text-sub);
|
| 376 |
+
cursor: pointer;
|
| 377 |
+
user-select: none;
|
| 378 |
+
font-weight: 500;
|
| 379 |
+
}
|
| 380 |
+
.toggle-switch {
|
| 381 |
+
position: relative;
|
| 382 |
+
width: 34px;
|
| 383 |
+
height: 18px;
|
| 384 |
+
background: #cbd5e1;
|
| 385 |
+
border-radius: 999px;
|
| 386 |
+
transition: background 0.2s;
|
| 387 |
+
}
|
| 388 |
+
.toggle-switch.active { background: #6366f1; }
|
| 389 |
+
.toggle-knob {
|
| 390 |
+
position: absolute;
|
| 391 |
+
top: 2px;
|
| 392 |
+
left: 2px;
|
| 393 |
+
width: 14px;
|
| 394 |
+
height: 14px;
|
| 395 |
+
background: #fff;
|
| 396 |
+
border-radius: 50%;
|
| 397 |
+
transition: transform 0.2s;
|
| 398 |
+
}
|
| 399 |
+
.toggle-switch.active .toggle-knob {
|
| 400 |
+
transform: translateX(16px);
|
| 401 |
+
}
|
| 402 |
+
|
| 403 |
+
.btn-send {
|
| 404 |
+
background: var(--accent);
|
| 405 |
+
color: #ffffff;
|
| 406 |
+
border: none;
|
| 407 |
+
padding: 7px 18px;
|
| 408 |
+
border-radius: 8px;
|
| 409 |
+
font-weight: 600;
|
| 410 |
+
font-size: 0.85rem;
|
| 411 |
+
cursor: pointer;
|
| 412 |
+
display: inline-flex;
|
| 413 |
+
align-items: center;
|
| 414 |
+
gap: 6px;
|
| 415 |
+
transition: all 0.2s;
|
| 416 |
+
}
|
| 417 |
+
.btn-send:hover { background: var(--accent-hover); }
|
| 418 |
+
.btn-send:disabled {
|
| 419 |
+
background: #e2e8f0;
|
| 420 |
+
color: #94a3b8;
|
| 421 |
+
cursor: not-allowed;
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
+
/* Settings Modal */
|
| 425 |
+
.modal-overlay {
|
| 426 |
+
position: fixed;
|
| 427 |
+
inset: 0;
|
| 428 |
+
background: rgba(15, 23, 42, 0.4);
|
| 429 |
+
backdrop-filter: blur(4px);
|
| 430 |
+
display: none;
|
| 431 |
+
align-items: center;
|
| 432 |
+
justify-content: center;
|
| 433 |
+
z-index: 100;
|
| 434 |
+
}
|
| 435 |
+
.modal-overlay.open { display: flex; }
|
| 436 |
+
.modal-card {
|
| 437 |
+
background: #ffffff;
|
| 438 |
+
border: 1px solid var(--border-color);
|
| 439 |
+
border-radius: 14px;
|
| 440 |
+
width: 90%;
|
| 441 |
+
max-width: 620px;
|
| 442 |
+
max-height: 85vh;
|
| 443 |
+
display: flex;
|
| 444 |
+
flex-direction: column;
|
| 445 |
+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
| 446 |
+
animation: modalIn 0.2s ease-out;
|
| 447 |
+
}
|
| 448 |
+
@keyframes modalIn {
|
| 449 |
+
from { transform: scale(0.96); opacity: 0; }
|
| 450 |
+
to { transform: scale(1); opacity: 1; }
|
| 451 |
+
}
|
| 452 |
+
.modal-header {
|
| 453 |
+
padding: 16px 20px;
|
| 454 |
+
border-bottom: 1px solid var(--border-color);
|
| 455 |
+
display: flex;
|
| 456 |
+
align-items: center;
|
| 457 |
+
justify-content: space-between;
|
| 458 |
+
}
|
| 459 |
+
.modal-header h3 { font-size: 1.1rem; color: var(--text-main); }
|
| 460 |
+
.modal-close {
|
| 461 |
+
background: none;
|
| 462 |
+
border: none;
|
| 463 |
+
color: var(--text-sub);
|
| 464 |
+
font-size: 1.2rem;
|
| 465 |
+
cursor: pointer;
|
| 466 |
+
}
|
| 467 |
+
.modal-close:hover { color: var(--text-main); }
|
| 468 |
+
.modal-body {
|
| 469 |
+
padding: 20px;
|
| 470 |
+
overflow-y: auto;
|
| 471 |
+
display: flex;
|
| 472 |
+
flex-direction: column;
|
| 473 |
+
gap: 20px;
|
| 474 |
+
}
|
| 475 |
+
.modal-footer {
|
| 476 |
+
padding: 14px 20px;
|
| 477 |
+
border-top: 1px solid var(--border-color);
|
| 478 |
+
display: flex;
|
| 479 |
+
justify-content: flex-end;
|
| 480 |
+
gap: 10px;
|
| 481 |
+
}
|
| 482 |
+
|
| 483 |
+
.form-group {
|
| 484 |
+
display: flex;
|
| 485 |
+
flex-direction: column;
|
| 486 |
+
gap: 6px;
|
| 487 |
+
}
|
| 488 |
+
.form-group label {
|
| 489 |
+
font-size: 0.85rem;
|
| 490 |
+
font-weight: 600;
|
| 491 |
+
color: var(--text-main);
|
| 492 |
+
}
|
| 493 |
+
.form-desc {
|
| 494 |
+
font-size: 0.75rem;
|
| 495 |
+
color: var(--text-sub);
|
| 496 |
+
}
|
| 497 |
+
.input-text, select {
|
| 498 |
+
background: #ffffff;
|
| 499 |
+
border: 1px solid #cbd5e1;
|
| 500 |
+
color: var(--text-main);
|
| 501 |
+
padding: 8px 12px;
|
| 502 |
+
border-radius: 6px;
|
| 503 |
+
font-size: 0.85rem;
|
| 504 |
+
font-family: inherit;
|
| 505 |
+
outline: none;
|
| 506 |
+
}
|
| 507 |
+
.input-text:focus, select:focus {
|
| 508 |
+
border-color: var(--accent);
|
| 509 |
+
}
|
| 510 |
+
.tab-pills {
|
| 511 |
+
display: flex;
|
| 512 |
+
gap: 6px;
|
| 513 |
+
background: #f1f5f9;
|
| 514 |
+
padding: 4px;
|
| 515 |
+
border-radius: 8px;
|
| 516 |
+
}
|
| 517 |
+
.tab-pill {
|
| 518 |
+
flex: 1;
|
| 519 |
+
text-align: center;
|
| 520 |
+
padding: 6px 12px;
|
| 521 |
+
font-size: 0.8rem;
|
| 522 |
+
font-weight: 600;
|
| 523 |
+
border-radius: 6px;
|
| 524 |
+
cursor: pointer;
|
| 525 |
+
color: var(--text-sub);
|
| 526 |
+
transition: all 0.2s;
|
| 527 |
+
}
|
| 528 |
+
.tab-pill.active {
|
| 529 |
+
background: #ffffff;
|
| 530 |
+
color: var(--text-main);
|
| 531 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
| 532 |
+
}
|
| 533 |
+
.modal-nav-tabs {
|
| 534 |
+
display: flex;
|
| 535 |
+
border-bottom: 1px solid var(--border-color);
|
| 536 |
+
background: #f8fafc;
|
| 537 |
+
border-top-left-radius: 14px;
|
| 538 |
+
border-top-right-radius: 14px;
|
| 539 |
+
}
|
| 540 |
+
.modal-nav-tab {
|
| 541 |
+
flex: 1;
|
| 542 |
+
text-align: center;
|
| 543 |
+
padding: 11px 14px;
|
| 544 |
+
font-size: 0.82rem;
|
| 545 |
+
font-weight: 600;
|
| 546 |
+
color: var(--text-sub);
|
| 547 |
+
cursor: pointer;
|
| 548 |
+
border-bottom: 2px solid transparent;
|
| 549 |
+
transition: all 0.2s;
|
| 550 |
+
}
|
| 551 |
+
.modal-nav-tab:hover {
|
| 552 |
+
color: var(--text-main);
|
| 553 |
+
background: #f1f5f9;
|
| 554 |
+
}
|
| 555 |
+
.modal-nav-tab.active {
|
| 556 |
+
color: var(--accent);
|
| 557 |
+
border-bottom-color: var(--accent);
|
| 558 |
+
background: #ffffff;
|
| 559 |
+
}
|
| 560 |
+
.preset-grid {
|
| 561 |
+
display: grid;
|
| 562 |
+
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
|
| 563 |
+
gap: 8px;
|
| 564 |
+
}
|
| 565 |
+
.preset-btn {
|
| 566 |
+
background: #f8fafc;
|
| 567 |
+
border: 1px solid var(--border-color);
|
| 568 |
+
border-radius: 8px;
|
| 569 |
+
padding: 9px 12px;
|
| 570 |
+
font-size: 0.8rem;
|
| 571 |
+
font-weight: 600;
|
| 572 |
+
color: #334155;
|
| 573 |
+
cursor: pointer;
|
| 574 |
+
text-align: center;
|
| 575 |
+
transition: all 0.15s;
|
| 576 |
+
}
|
| 577 |
+
.preset-btn:hover {
|
| 578 |
+
background: var(--accent-subtle);
|
| 579 |
+
border-color: #93c5fd;
|
| 580 |
+
color: var(--accent);
|
| 581 |
+
}
|
| 582 |
+
.preset-btn.active {
|
| 583 |
+
background: var(--accent-subtle);
|
| 584 |
+
border-color: var(--accent);
|
| 585 |
+
color: var(--accent);
|
| 586 |
+
box-shadow: 0 0 0 1px var(--accent);
|
| 587 |
+
}
|
| 588 |
+
.snippet-pills {
|
| 589 |
+
display: flex;
|
| 590 |
+
flex-wrap: wrap;
|
| 591 |
+
gap: 6px;
|
| 592 |
+
margin-top: 6px;
|
| 593 |
+
}
|
| 594 |
+
.snippet-pill {
|
| 595 |
+
background: #f1f5f9;
|
| 596 |
+
border: 1px solid var(--border-color);
|
| 597 |
+
color: #475569;
|
| 598 |
+
font-size: 0.72rem;
|
| 599 |
+
padding: 3px 8px;
|
| 600 |
+
border-radius: 4px;
|
| 601 |
+
cursor: pointer;
|
| 602 |
+
font-family: var(--font-mono, monospace);
|
| 603 |
+
}
|
| 604 |
+
.snippet-pill:hover {
|
| 605 |
+
background: #e2e8f0;
|
| 606 |
+
color: var(--accent);
|
| 607 |
+
}
|
| 608 |
+
.slider-row {
|
| 609 |
+
display: flex;
|
| 610 |
+
align-items: center;
|
| 611 |
+
gap: 12px;
|
| 612 |
+
}
|
| 613 |
+
.slider-row input[type="range"] { flex: 1; }
|
| 614 |
+
.slider-val {
|
| 615 |
+
font-family: var(--font-mono, monospace);
|
| 616 |
+
font-size: 0.85rem;
|
| 617 |
+
width: 50px;
|
| 618 |
+
text-align: right;
|
| 619 |
+
color: var(--text-main);
|
| 620 |
+
}
|
| 621 |
+
</style>
|
| 622 |
+
</head>
|
| 623 |
+
<body>
|
| 624 |
+
|
| 625 |
+
<!-- Top Navigation -->
|
| 626 |
+
<header>
|
| 627 |
+
<div class="brand">
|
| 628 |
+
<span>🍄 Mario-HTML Explorer</span>
|
| 629 |
+
<span class="brand-badge">RL Math & HTML Native</span>
|
| 630 |
+
</div>
|
| 631 |
+
<div class="header-actions">
|
| 632 |
+
<div class="status-pill" id="status-pill" onclick="openSettings()">
|
| 633 |
+
<span class="status-dot" id="status-dot"></span>
|
| 634 |
+
<span id="status-text">Connecting...</span>
|
| 635 |
+
</div>
|
| 636 |
+
<button class="btn-icon" onclick="clearChat()">🧹 Clear</button>
|
| 637 |
+
<button class="btn-icon" onclick="openSettings()">⚙️ Settings</button>
|
| 638 |
+
</div>
|
| 639 |
+
</header>
|
| 640 |
+
|
| 641 |
+
<!-- Chat View -->
|
| 642 |
+
<main id="chat-container">
|
| 643 |
+
<div class="chat-inner" id="messages-list">
|
| 644 |
+
|
| 645 |
+
<!-- Welcome Card -->
|
| 646 |
+
<div class="welcome-card" id="welcome-card">
|
| 647 |
+
<div class="welcome-title">Mario 4B Modular HTML Presentation Model</div>
|
| 648 |
+
<p class="welcome-desc">
|
| 649 |
+
Trained with Reinforcement Learning (GRPO) to output pure semantic HTML visual views backed by deep step-by-step mathematical reasoning.
|
| 650 |
+
</p>
|
| 651 |
+
<div class="chips-grid">
|
| 652 |
+
<div class="prompt-chip" onclick="sendPreset('Solve the linear equation: 2x + 5 = 17 step by step')">📐 2x + 5 = 17 Equation</div>
|
| 653 |
+
<div class="prompt-chip" onclick="sendPreset('Explain Binary Search algorithm with complexity and steps')">⚡ Binary Search</div>
|
| 654 |
+
<div class="prompt-chip" onclick="sendPreset('Compare 9.11 and 9.9 — which one is larger and why?')">⚖️ 9.11 vs 9.9</div>
|
| 655 |
+
<div class="prompt-chip" onclick="sendPreset('Compare Microservices vs Monolith architecture in a modern comparison grid')">🏛️ Microservices vs Monolith</div>
|
| 656 |
+
</div>
|
| 657 |
+
</div>
|
| 658 |
+
|
| 659 |
+
</div>
|
| 660 |
+
</main>
|
| 661 |
+
|
| 662 |
+
<!-- Floating Input Bar -->
|
| 663 |
+
<div class="input-wrapper">
|
| 664 |
+
<div class="input-box">
|
| 665 |
+
<!-- Attached image preview bar -->
|
| 666 |
+
<div id="image-preview-bar" style="display:none; padding:8px 12px; align-items:center; gap:10px; background:#f1f5f9; border-radius:8px; margin-bottom:8px; border:1px solid #e2e8f0;">
|
| 667 |
+
<img id="attached-img-thumb" style="max-height:48px; max-width:64px; border-radius:6px; object-fit:cover; border:1px solid #cbd5e1;">
|
| 668 |
+
<span id="attached-img-name" style="font-size:0.8rem; color:#475569; flex-grow:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;">image.png</span>
|
| 669 |
+
<button onclick="removeAttachedImage()" type="button" style="background:none; border:none; color:#ef4444; font-size:1.1rem; cursor:pointer; padding:0 4px; font-weight:bold;" title="Remove image">✕</button>
|
| 670 |
+
</div>
|
| 671 |
+
|
| 672 |
+
<textarea id="prompt-input" placeholder="Ask a question or request a structured presentation... (Paste or upload image supported)" rows="1" onkeydown="handleKeyDown(event)"></textarea>
|
| 673 |
+
<div class="input-bottom-row">
|
| 674 |
+
<div style="display:flex; align-items:center; gap:10px;">
|
| 675 |
+
<input type="file" id="image-file-input" accept="image/*" style="display:none;" onchange="handleImageFileSelect(event)">
|
| 676 |
+
<button type="button" class="btn-attach" onclick="document.getElementById('image-file-input').click()" title="Attach image or paste directly from clipboard" style="background:#ffffff; border:1px solid #cbd5e1; border-radius:8px; padding:6px 12px; cursor:pointer; font-size:0.85rem; display:inline-flex; align-items:center; gap:6px; color:#334155; font-weight:500;">
|
| 677 |
+
🖼️ <span>Add Image</span>
|
| 678 |
+
</button>
|
| 679 |
+
<label class="toggle-label" onclick="toggleThinking()">
|
| 680 |
+
<span class="toggle-switch active" id="thinking-switch">
|
| 681 |
+
<span class="toggle-knob"></span>
|
| 682 |
+
</span>
|
| 683 |
+
<span id="thinking-label">🧠 CoT: ON</span>
|
| 684 |
+
</label>
|
| 685 |
+
</div>
|
| 686 |
+
<button class="btn-send" id="send-btn" onclick="handleSendOrStop()">Send ↵</button>
|
| 687 |
+
</div>
|
| 688 |
+
</div>
|
| 689 |
+
</div>
|
| 690 |
+
|
| 691 |
+
<!-- Settings Modal -->
|
| 692 |
+
<div class="modal-overlay" id="settings-modal">
|
| 693 |
+
<div class="modal-card">
|
| 694 |
+
<div class="modal-header">
|
| 695 |
+
<h3>Model & Inference Settings</h3>
|
| 696 |
+
<button class="modal-close" onclick="closeSettings()">✕</button>
|
| 697 |
+
</div>
|
| 698 |
+
<div class="modal-nav-tabs">
|
| 699 |
+
<div class="modal-nav-tab active" id="nav-tab-conn" onclick="switchModalNav('conn')">🔌 Model & Engine</div>
|
| 700 |
+
<div class="modal-nav-tab" id="nav-tab-theme" onclick="switchModalNav('theme')">🎨 Styling & Theme</div>
|
| 701 |
+
<div class="modal-nav-tab" id="nav-tab-params" onclick="switchModalNav('params')">⚙️ Parameters</div>
|
| 702 |
+
</div>
|
| 703 |
+
<div class="modal-body">
|
| 704 |
+
|
| 705 |
+
<!-- SECTION 1: Model & Engine -->
|
| 706 |
+
<div id="modal-sec-conn" style="display: flex; flex-direction: column; gap: 16px;">
|
| 707 |
+
<div class="form-group">
|
| 708 |
+
<label>Backend Provider Mode</label>
|
| 709 |
+
<div class="tab-pills">
|
| 710 |
+
<div class="tab-pill active" id="tab-api" onclick="switchBackendTab('api')">Llama.cpp API Server</div>
|
| 711 |
+
<div class="tab-pill" id="tab-direct" onclick="switchBackendTab('direct')">Direct Model Path</div>
|
| 712 |
+
</div>
|
| 713 |
+
</div>
|
| 714 |
+
|
| 715 |
+
<!-- API Mode Section -->
|
| 716 |
+
<div id="section-api" style="display: flex; flex-direction: column; gap: 12px;">
|
| 717 |
+
<div class="form-group">
|
| 718 |
+
<label>Llama.cpp Server URL</label>
|
| 719 |
+
<input type="text" class="input-text" id="cfg-api-url" placeholder="http://127.0.0.1:18085">
|
| 720 |
+
<span class="form-desc">Compatible with standard OpenAI-style <code>/v1/chat/completions</code> endpoint.</span>
|
| 721 |
+
</div>
|
| 722 |
+
</div>
|
| 723 |
+
|
| 724 |
+
<!-- Direct Mode Section -->
|
| 725 |
+
<div id="section-direct" style="display: none; flex-direction: column; gap: 12px;">
|
| 726 |
+
<div class="form-group">
|
| 727 |
+
<label>Model Preset</label>
|
| 728 |
+
<select id="cfg-model-preset" onchange="onPresetChange()">
|
| 729 |
+
<option value="/mnt/sdb/models/qwen3.5-4b-html-v4-grpo-math-gguf/Qwen3.5-4B-HTML-v4-GRPO-Math-Q8_0.gguf">Qwen3.5-4B-HTML-Q8_0 (Recommended, 4.3GB)</option>
|
| 730 |
+
<option value="/mnt/sdb/models/qwen3.5-4b-html-v4-grpo-math-gguf/Qwen3.5-4B-HTML-v4-GRPO-Math-Q4_K_M.gguf">Qwen3.5-4B-HTML-Q4_K_M (Fast, 2.6GB)</option>
|
| 731 |
+
<option value="custom">Custom Path...</option>
|
| 732 |
+
</select>
|
| 733 |
+
</div>
|
| 734 |
+
<div class="form-group">
|
| 735 |
+
<label>GGUF Model Path</label>
|
| 736 |
+
<input type="text" class="input-text" id="cfg-model-path" placeholder="/mnt/sdb/models/...">
|
| 737 |
+
</div>
|
| 738 |
+
<div style="display: flex; gap: 12px;">
|
| 739 |
+
<div class="form-group" style="flex:1;">
|
| 740 |
+
<label>Context Window</label>
|
| 741 |
+
<input type="number" class="input-text" id="cfg-ctx" value="65536">
|
| 742 |
+
</div>
|
| 743 |
+
<div class="form-group" style="flex:1;">
|
| 744 |
+
<label>GPU Offload Layers</label>
|
| 745 |
+
<input type="number" class="input-text" id="cfg-ngl" value="99">
|
| 746 |
+
</div>
|
| 747 |
+
</div>
|
| 748 |
+
<button class="btn-icon" style="background:#2563eb; color:#fff; justify-content:center; padding:8px;" onclick="loadDirectModel()">
|
| 749 |
+
🚀 Load Model & Restart Llama Server
|
| 750 |
+
</button>
|
| 751 |
+
</div>
|
| 752 |
+
</div>
|
| 753 |
+
|
| 754 |
+
<!-- SECTION 2: Styling & Theme -->
|
| 755 |
+
<div id="modal-sec-theme" style="display: none; flex-direction: column; gap: 16px;">
|
| 756 |
+
<div class="form-group">
|
| 757 |
+
<label>Theme Presets (One-Click Style Switch)</label>
|
| 758 |
+
<div class="preset-grid">
|
| 759 |
+
<button type="button" class="preset-btn active" id="btn-theme-default" onclick="selectThemePreset('default')">Default Modern</button>
|
| 760 |
+
<button type="button" class="preset-btn" id="btn-theme-apple" onclick="selectThemePreset('apple')">Apple Clean</button>
|
| 761 |
+
<button type="button" class="preset-btn" id="btn-theme-notion" onclick="selectThemePreset('notion')">Notion Minimal</button>
|
| 762 |
+
<button type="button" class="preset-btn" id="btn-theme-cyber" onclick="selectThemePreset('cyber')">Cyber Neon</button>
|
| 763 |
+
<button type="button" class="preset-btn" id="btn-theme-editorial" onclick="selectThemePreset('editorial')">Editorial Serif</button>
|
| 764 |
+
</div>
|
| 765 |
+
</div>
|
| 766 |
+
|
| 767 |
+
<div class="form-group">
|
| 768 |
+
<div style="display:flex; justify-content:space-between; align-items:center;">
|
| 769 |
+
<label>Custom CSS Overrides</label>
|
| 770 |
+
<button type="button" class="action-link" style="font-size:0.75rem;" onclick="resetCustomCss()">Reset CSS</button>
|
| 771 |
+
</div>
|
| 772 |
+
<textarea class="input-text" id="cfg-custom-css" rows="8" placeholder="/* Enter custom CSS rules to customize .ai-view and cards */" oninput="applyLiveCustomCss(this.value)" style="font-size:0.78rem; font-family:var(--font-mono, monospace); line-height:1.5;"></textarea>
|
| 773 |
+
<span class="form-desc">Injected live in real-time. Overrides apply instantly to all cards & responses.</span>
|
| 774 |
+
|
| 775 |
+
<div class="snippet-pills">
|
| 776 |
+
<span style="font-size:0.72rem; color:var(--text-sub); align-self:center;">Quick Snippets:</span>
|
| 777 |
+
<button type="button" class="snippet-pill" onclick="insertCssSnippet('cards_rounded')">+ 24px Round Cards</button>
|
| 778 |
+
<button type="button" class="snippet-pill" onclick="insertCssSnippet('glassmorphism')">+ Frosted Glass</button>
|
| 779 |
+
<button type="button" class="snippet-pill" onclick="insertCssSnippet('soft_shadows')">+ Subtle Glow</button>
|
| 780 |
+
<button type="button" class="snippet-pill" onclick="insertCssSnippet('compact')">+ Compact Density</button>
|
| 781 |
+
</div>
|
| 782 |
+
</div>
|
| 783 |
+
</div>
|
| 784 |
+
|
| 785 |
+
<!-- SECTION 3: Parameters -->
|
| 786 |
+
<div id="modal-sec-params" style="display: none; flex-direction: column; gap: 16px;">
|
| 787 |
+
|
| 788 |
+
<div style="display:flex; justify-content:space-between; align-items:center; background:var(--bg-secondary); padding:10px 14px; border-radius:var(--radius-sm); border:1px solid var(--border);">
|
| 789 |
+
<div>
|
| 790 |
+
<div style="font-weight:600; font-size:0.85rem;">Sampling Decoding (Do Sample)</div>
|
| 791 |
+
<div style="font-size:0.72rem; color:var(--text-sub);">Enable probabilistic sampling. If disabled, uses greedy decoding (temp=0).</div>
|
| 792 |
+
</div>
|
| 793 |
+
<input type="checkbox" id="cfg-do-sample" style="width:18px; height:18px; accent-color:var(--accent); cursor:pointer;">
|
| 794 |
+
</div>
|
| 795 |
+
|
| 796 |
+
<div class="form-group">
|
| 797 |
+
<div style="display:flex; justify-content:space-between;">
|
| 798 |
+
<label>Temperature</label>
|
| 799 |
+
<span class="slider-val" id="temp-val">1.00</span>
|
| 800 |
+
</div>
|
| 801 |
+
<div class="slider-row">
|
| 802 |
+
<input type="range" id="cfg-temp" min="0" max="2.0" step="0.05" oninput="document.getElementById('temp-val').innerText = parseFloat(this.value).toFixed(2)">
|
| 803 |
+
</div>
|
| 804 |
+
<span class="form-desc">Higher = more creative; lower = more focused and deterministic. Default: 1.0.</span>
|
| 805 |
+
</div>
|
| 806 |
+
|
| 807 |
+
<div class="form-group">
|
| 808 |
+
<div style="display:flex; justify-content:space-between;">
|
| 809 |
+
<label>Top-P (Nucleus Sampling)</label>
|
| 810 |
+
<span class="slider-val" id="topp-val">0.95</span>
|
| 811 |
+
</div>
|
| 812 |
+
<div class="slider-row">
|
| 813 |
+
<input type="range" id="cfg-top-p" min="0" max="1.0" step="0.05" oninput="document.getElementById('topp-val').innerText = parseFloat(this.value).toFixed(2)">
|
| 814 |
+
</div>
|
| 815 |
+
<span class="form-desc">Limits cumulative probability mass of top candidates. Default: 0.95.</span>
|
| 816 |
+
</div>
|
| 817 |
+
|
| 818 |
+
<div class="form-group">
|
| 819 |
+
<div style="display:flex; justify-content:space-between;">
|
| 820 |
+
<label>Top-K Sampling</label>
|
| 821 |
+
<span class="slider-val" id="topk-val">20</span>
|
| 822 |
+
</div>
|
| 823 |
+
<div class="slider-row">
|
| 824 |
+
<input type="range" id="cfg-top-k" min="0" max="100" step="1" oninput="document.getElementById('topk-val').innerText = this.value === '0' ? 'Off' : this.value">
|
| 825 |
+
</div>
|
| 826 |
+
<span class="form-desc">Sample only from top K tokens. Set to 0 to disable. Default: 20.</span>
|
| 827 |
+
</div>
|
| 828 |
+
|
| 829 |
+
<div class="form-group">
|
| 830 |
+
<div style="display:flex; justify-content:space-between;">
|
| 831 |
+
<label>Min-P Sampling</label>
|
| 832 |
+
<span class="slider-val" id="minp-val">0.00</span>
|
| 833 |
+
</div>
|
| 834 |
+
<div class="slider-row">
|
| 835 |
+
<input type="range" id="cfg-min-p" min="0.0" max="1.0" step="0.01" oninput="document.getElementById('minp-val').innerText = parseFloat(this.value).toFixed(2)">
|
| 836 |
+
</div>
|
| 837 |
+
<span class="form-desc">Minimum probability threshold relative to most likely token. Default: 0.00.</span>
|
| 838 |
+
</div>
|
| 839 |
+
|
| 840 |
+
<div class="form-group">
|
| 841 |
+
<div style="display:flex; justify-content:space-between;">
|
| 842 |
+
<label>Presence Penalty (存在惩罚)</label>
|
| 843 |
+
<span class="slider-val" id="pres-val">1.50</span>
|
| 844 |
+
</div>
|
| 845 |
+
<div class="slider-row">
|
| 846 |
+
<input type="range" id="cfg-pres-penalty" min="-2.0" max="2.0" step="0.1" oninput="document.getElementById('pres-val').innerText = parseFloat(this.value).toFixed(2)">
|
| 847 |
+
</div>
|
| 848 |
+
<span class="form-desc">Penalize tokens based on presence in text to encourage new topics. Default: 1.50.</span>
|
| 849 |
+
</div>
|
| 850 |
+
|
| 851 |
+
<div class="form-group">
|
| 852 |
+
<div style="display:flex; justify-content:space-between;">
|
| 853 |
+
<label>Repetition Penalty (重复性惩罚)</label>
|
| 854 |
+
<span class="slider-val" id="rep-val">1.00</span>
|
| 855 |
+
</div>
|
| 856 |
+
<div class="slider-row">
|
| 857 |
+
<input type="range" id="cfg-rep-penalty" min="1.0" max="2.0" step="0.02" oninput="document.getElementById('rep-val').innerText = parseFloat(this.value).toFixed(2)">
|
| 858 |
+
</div>
|
| 859 |
+
<span class="form-desc">Penalize recurring tokens to prevent repetitive n-gram loops. Default: 1.00.</span>
|
| 860 |
+
</div>
|
| 861 |
+
|
| 862 |
+
<div class="form-group">
|
| 863 |
+
<div style="display:flex; justify-content:space-between;">
|
| 864 |
+
<label>Max Output Tokens (提高至最大 Context 80K)</label>
|
| 865 |
+
<span class="slider-val" id="max-val">8192</span>
|
| 866 |
+
</div>
|
| 867 |
+
<div class="slider-row">
|
| 868 |
+
<input type="range" id="cfg-max-tokens" min="512" max="81920" step="512" oninput="document.getElementById('max-val').innerText = this.value">
|
| 869 |
+
</div>
|
| 870 |
+
<div class="snippet-pills" style="margin-top:6px;">
|
| 871 |
+
<span style="font-size:0.72rem; color:var(--text-sub); align-self:center;">Presets:</span>
|
| 872 |
+
<button type="button" class="snippet-pill" onclick="setMaxTokensPreset(4096)">4K</button>
|
| 873 |
+
<button type="button" class="snippet-pill" onclick="setMaxTokensPreset(8192)">8K</button>
|
| 874 |
+
<button type="button" class="snippet-pill" onclick="setMaxTokensPreset(16384)">16K</button>
|
| 875 |
+
<button type="button" class="snippet-pill" onclick="setMaxTokensPreset(32768)">32K</button>
|
| 876 |
+
<button type="button" class="snippet-pill" onclick="setMaxTokensPreset(65536)">64K</button>
|
| 877 |
+
<button type="button" class="snippet-pill" onclick="setMaxTokensPreset(81920)">80K Max</button>
|
| 878 |
+
</div>
|
| 879 |
+
<span class="form-desc">Maximum generation token limit per response (up to full 80K context window).</span>
|
| 880 |
+
</div>
|
| 881 |
+
|
| 882 |
+
<div class="form-group">
|
| 883 |
+
<div style="display:flex; justify-content:space-between; align-items:center;">
|
| 884 |
+
<label>System Prompt (留空默认 Mario Zero-Prompt)</label>
|
| 885 |
+
<button type="button" class="action-link" style="font-size:0.72rem;" onclick="document.getElementById('cfg-system-prompt').value=''">Clear Prompt</button>
|
| 886 |
+
</div>
|
| 887 |
+
<textarea class="input-text" id="cfg-system-prompt" rows="4" placeholder="Leave empty to use native Mario card-generating persona" style="font-size:0.75rem; font-family:var(--font-mono, monospace);"></textarea>
|
| 888 |
+
<span class="form-desc">Default is empty. Mario natively formats visual HTML cards without manual prompts.</span>
|
| 889 |
+
</div>
|
| 890 |
+
</div>
|
| 891 |
+
|
| 892 |
+
</div>
|
| 893 |
+
<div class="modal-footer">
|
| 894 |
+
<button class="btn-icon" onclick="closeSettings()">Cancel</button>
|
| 895 |
+
<button class="btn-icon" style="background:var(--accent); color:#ffffff;" onclick="saveSettings()">Save Settings</button>
|
| 896 |
+
</div>
|
| 897 |
+
</div>
|
| 898 |
+
</div>
|
| 899 |
+
|
| 900 |
+
<script>
|
| 901 |
+
let appConfig = {};
|
| 902 |
+
let isGenerating = false;
|
| 903 |
+
let conversationHistory = [];
|
| 904 |
+
|
| 905 |
+
const THEME_PRESETS = {
|
| 906 |
+
default: `/* Default Modern Theme */`,
|
| 907 |
+
apple: `/* Apple Clean */
|
| 908 |
+
.html-canvas {
|
| 909 |
+
border-radius: 20px !important;
|
| 910 |
+
background: #fbfbfd !important;
|
| 911 |
+
border: 1px solid rgba(0,0,0,0.06) !important;
|
| 912 |
+
box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
|
| 913 |
+
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif !important;
|
| 914 |
+
}
|
| 915 |
+
.card {
|
| 916 |
+
border-radius: 16px !important;
|
| 917 |
+
border: 1px solid rgba(0,0,0,0.06) !important;
|
| 918 |
+
background: #ffffff !important;
|
| 919 |
+
box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
|
| 920 |
+
}
|
| 921 |
+
.summary-card {
|
| 922 |
+
border-radius: 16px !important;
|
| 923 |
+
border-left-width: 6px !important;
|
| 924 |
+
}
|
| 925 |
+
.callout {
|
| 926 |
+
border-radius: 14px !important;
|
| 927 |
+
}
|
| 928 |
+
.badge {
|
| 929 |
+
border-radius: 8px !important;
|
| 930 |
+
font-weight: 600 !important;
|
| 931 |
+
}`,
|
| 932 |
+
notion: `/* Notion Minimal */
|
| 933 |
+
.html-canvas {
|
| 934 |
+
border-radius: 4px !important;
|
| 935 |
+
border: 1px solid #37352f !important;
|
| 936 |
+
box-shadow: none !important;
|
| 937 |
+
background: #ffffff !important;
|
| 938 |
+
}
|
| 939 |
+
.card {
|
| 940 |
+
border-radius: 4px !important;
|
| 941 |
+
border: 1px solid #e3e2e0 !important;
|
| 942 |
+
box-shadow: none !important;
|
| 943 |
+
}
|
| 944 |
+
.summary-card {
|
| 945 |
+
border-radius: 4px !important;
|
| 946 |
+
border-left-color: #37352f !important;
|
| 947 |
+
}
|
| 948 |
+
.callout {
|
| 949 |
+
border-radius: 4px !important;
|
| 950 |
+
border-left-width: 4px !important;
|
| 951 |
+
}
|
| 952 |
+
.badge {
|
| 953 |
+
border-radius: 3px !important;
|
| 954 |
+
font-weight: 500 !important;
|
| 955 |
+
}`,
|
| 956 |
+
cyber: `/* Cyber Neon */
|
| 957 |
+
.html-canvas {
|
| 958 |
+
background: #090d16 !important;
|
| 959 |
+
color: #e2e8f0 !important;
|
| 960 |
+
border: 1px solid #00f2ff !important;
|
| 961 |
+
box-shadow: 0 0 25px rgba(0, 242, 255, 0.25) !important;
|
| 962 |
+
}
|
| 963 |
+
.card {
|
| 964 |
+
background: #111827 !important;
|
| 965 |
+
border: 1px solid #1f2937 !important;
|
| 966 |
+
color: #f8fafc !important;
|
| 967 |
+
}
|
| 968 |
+
.summary-card {
|
| 969 |
+
background: #111827 !important;
|
| 970 |
+
border-left-color: #00f2ff !important;
|
| 971 |
+
}
|
| 972 |
+
.modern-table th {
|
| 973 |
+
background: #1e293b !important;
|
| 974 |
+
color: #00f2ff !important;
|
| 975 |
+
}
|
| 976 |
+
.badge-accent {
|
| 977 |
+
background: rgba(0, 242, 255, 0.2) !important;
|
| 978 |
+
color: #00f2ff !important;
|
| 979 |
+
border: 1px solid #00f2ff !important;
|
| 980 |
+
}`,
|
| 981 |
+
editorial: `/* Editorial Serif */
|
| 982 |
+
.html-canvas {
|
| 983 |
+
background: #fdfbf7 !important;
|
| 984 |
+
color: #2c2523 !important;
|
| 985 |
+
font-family: "Georgia", "Times New Roman", serif !important;
|
| 986 |
+
border: 1px solid #e7dfd5 !important;
|
| 987 |
+
}
|
| 988 |
+
.card {
|
| 989 |
+
background: #ffffff !important;
|
| 990 |
+
border: 1px solid #e7dfd5 !important;
|
| 991 |
+
box-shadow: 0 2px 4px rgba(44, 37, 35, 0.04) !important;
|
| 992 |
+
}
|
| 993 |
+
h2, h3, h4 {
|
| 994 |
+
font-family: "Georgia", serif !important;
|
| 995 |
+
font-weight: 600 !important;
|
| 996 |
+
}
|
| 997 |
+
.modern-table {
|
| 998 |
+
border-top: 2px solid #2c2523 !important;
|
| 999 |
+
border-bottom: 2px solid #2c2523 !important;
|
| 1000 |
+
}`
|
| 1001 |
+
};
|
| 1002 |
+
|
| 1003 |
+
const CSS_SNIPPETS = {
|
| 1004 |
+
cards_rounded: `\n/* Rounded Cards */\n.card, .html-canvas { border-radius: 24px !important; }\n`,
|
| 1005 |
+
glassmorphism: `\n/* Frosted Glass */\n.card {\n background: rgba(255, 255, 255, 0.8) !important;\n backdrop-filter: blur(12px) !important;\n border: 1px solid rgba(255, 255, 255, 0.6) !important;\n}\n`,
|
| 1006 |
+
soft_shadows: `\n/* Subtle Glow */\n.card:hover {\n box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15) !important;\n border-color: #93c5fd !important;\n}\n`,
|
| 1007 |
+
compact: `\n/* Compact Density */\n.ai-view { gap: 12px !important; }\n.card { padding: 14px 18px !important; }\n`
|
| 1008 |
+
};
|
| 1009 |
+
|
| 1010 |
+
function switchModalNav(tab) {
|
| 1011 |
+
document.getElementById("nav-tab-conn").className = tab === 'conn' ? "modal-nav-tab active" : "modal-nav-tab";
|
| 1012 |
+
document.getElementById("nav-tab-theme").className = tab === 'theme' ? "modal-nav-tab active" : "modal-nav-tab";
|
| 1013 |
+
document.getElementById("nav-tab-params").className = tab === 'params' ? "modal-nav-tab active" : "modal-nav-tab";
|
| 1014 |
+
|
| 1015 |
+
document.getElementById("modal-sec-conn").style.display = tab === 'conn' ? 'flex' : 'none';
|
| 1016 |
+
document.getElementById("modal-sec-theme").style.display = tab === 'theme' ? 'flex' : 'none';
|
| 1017 |
+
document.getElementById("modal-sec-params").style.display = tab === 'params' ? 'flex' : 'none';
|
| 1018 |
+
}
|
| 1019 |
+
|
| 1020 |
+
function applyLiveCustomCss(cssText) {
|
| 1021 |
+
let tag = document.getElementById("custom-theme-style");
|
| 1022 |
+
if (!tag) {
|
| 1023 |
+
tag = document.createElement("style");
|
| 1024 |
+
tag.id = "custom-theme-style";
|
| 1025 |
+
document.head.appendChild(tag);
|
| 1026 |
+
}
|
| 1027 |
+
tag.textContent = cssText || "";
|
| 1028 |
+
}
|
| 1029 |
+
|
| 1030 |
+
function selectThemePreset(name) {
|
| 1031 |
+
appConfig.theme_preset = name;
|
| 1032 |
+
document.querySelectorAll(".preset-btn").forEach(b => b.classList.remove("active"));
|
| 1033 |
+
const activeBtn = document.getElementById("btn-theme-" + name);
|
| 1034 |
+
if (activeBtn) activeBtn.classList.add("active");
|
| 1035 |
+
|
| 1036 |
+
const css = THEME_PRESETS[name] || "";
|
| 1037 |
+
document.getElementById("cfg-custom-css").value = css;
|
| 1038 |
+
applyLiveCustomCss(css);
|
| 1039 |
+
}
|
| 1040 |
+
|
| 1041 |
+
function insertCssSnippet(key) {
|
| 1042 |
+
const snip = CSS_SNIPPETS[key] || "";
|
| 1043 |
+
const tx = document.getElementById("cfg-custom-css");
|
| 1044 |
+
tx.value = (tx.value + "\n" + snip).trim();
|
| 1045 |
+
applyLiveCustomCss(tx.value);
|
| 1046 |
+
}
|
| 1047 |
+
|
| 1048 |
+
function resetCustomCss() {
|
| 1049 |
+
selectThemePreset("default");
|
| 1050 |
+
}
|
| 1051 |
+
|
| 1052 |
+
// Initialize
|
| 1053 |
+
window.addEventListener("DOMContentLoaded", async () => {
|
| 1054 |
+
await fetchConfig();
|
| 1055 |
+
await checkStatus();
|
| 1056 |
+
setInterval(checkStatus, 5000);
|
| 1057 |
+
autoResizeTextarea();
|
| 1058 |
+
});
|
| 1059 |
+
|
| 1060 |
+
async function fetchConfig() {
|
| 1061 |
+
try {
|
| 1062 |
+
const res = await fetch("/api/config");
|
| 1063 |
+
appConfig = await res.json();
|
| 1064 |
+
const preset = appConfig.theme_preset || "default";
|
| 1065 |
+
const css = appConfig.custom_css || (preset !== 'default' ? THEME_PRESETS[preset] : "");
|
| 1066 |
+
applyLiveCustomCss(css);
|
| 1067 |
+
updateSettingsModalForm();
|
| 1068 |
+
} catch (e) {
|
| 1069 |
+
console.error("Failed to load config", e);
|
| 1070 |
+
}
|
| 1071 |
+
}
|
| 1072 |
+
|
| 1073 |
+
async function checkStatus() {
|
| 1074 |
+
try {
|
| 1075 |
+
const res = await fetch("/api/status");
|
| 1076 |
+
const data = await res.json();
|
| 1077 |
+
const dot = document.getElementById("status-dot");
|
| 1078 |
+
const txt = document.getElementById("status-text");
|
| 1079 |
+
|
| 1080 |
+
if (data.status === "ready") {
|
| 1081 |
+
dot.className = "status-dot";
|
| 1082 |
+
txt.innerText = `${data.model_info} (${data.latency_ms || 0}ms)`;
|
| 1083 |
+
} else {
|
| 1084 |
+
dot.className = "status-dot error";
|
| 1085 |
+
txt.innerText = "Server Offline";
|
| 1086 |
+
}
|
| 1087 |
+
} catch (e) {
|
| 1088 |
+
document.getElementById("status-dot").className = "status-dot error";
|
| 1089 |
+
document.getElementById("status-text").innerText = "Connection Failed";
|
| 1090 |
+
}
|
| 1091 |
+
}
|
| 1092 |
+
|
| 1093 |
+
function toggleThinking() {
|
| 1094 |
+
appConfig.enable_thinking = !appConfig.enable_thinking;
|
| 1095 |
+
const sw = document.getElementById("thinking-switch");
|
| 1096 |
+
const lbl = document.getElementById("thinking-label");
|
| 1097 |
+
if (appConfig.enable_thinking) {
|
| 1098 |
+
sw.className = "toggle-switch active";
|
| 1099 |
+
lbl.innerText = "🧠 CoT Reasoning: ON";
|
| 1100 |
+
} else {
|
| 1101 |
+
sw.className = "toggle-switch";
|
| 1102 |
+
lbl.innerText = "⚡ Direct HTML (No CoT)";
|
| 1103 |
+
}
|
| 1104 |
+
}
|
| 1105 |
+
|
| 1106 |
+
function switchBackendTab(mode) {
|
| 1107 |
+
document.getElementById("tab-api").className = mode === 'api' ? "tab-pill active" : "tab-pill";
|
| 1108 |
+
document.getElementById("tab-direct").className = mode === 'direct' ? "tab-pill active" : "tab-pill";
|
| 1109 |
+
document.getElementById("section-api").style.display = mode === 'api' ? 'flex' : 'none';
|
| 1110 |
+
document.getElementById("section-direct").style.display = mode === 'direct' ? 'flex' : 'none';
|
| 1111 |
+
appConfig.backend_mode = mode;
|
| 1112 |
+
}
|
| 1113 |
+
|
| 1114 |
+
function onPresetChange() {
|
| 1115 |
+
const sel = document.getElementById("cfg-model-preset").value;
|
| 1116 |
+
if (sel !== "custom") {
|
| 1117 |
+
document.getElementById("cfg-model-path").value = sel;
|
| 1118 |
+
}
|
| 1119 |
+
}
|
| 1120 |
+
|
| 1121 |
+
function openSettings() {
|
| 1122 |
+
updateSettingsModalForm();
|
| 1123 |
+
document.getElementById("settings-modal").classList.add("open");
|
| 1124 |
+
}
|
| 1125 |
+
|
| 1126 |
+
function closeSettings() {
|
| 1127 |
+
document.getElementById("settings-modal").classList.remove("open");
|
| 1128 |
+
}
|
| 1129 |
+
|
| 1130 |
+
function setMaxTokensPreset(val) {
|
| 1131 |
+
document.getElementById("cfg-max-tokens").value = val;
|
| 1132 |
+
document.getElementById("max-val").innerText = val;
|
| 1133 |
+
}
|
| 1134 |
+
|
| 1135 |
+
function updateSettingsModalForm() {
|
| 1136 |
+
document.getElementById("cfg-api-url").value = appConfig.api_url || "http://127.0.0.1:18085";
|
| 1137 |
+
document.getElementById("cfg-model-path").value = appConfig.model_path || "";
|
| 1138 |
+
document.getElementById("cfg-ctx").value = appConfig.context_size || 81920;
|
| 1139 |
+
document.getElementById("cfg-ngl").value = appConfig.gpu_layers || 99;
|
| 1140 |
+
|
| 1141 |
+
const doSample = appConfig.do_sample !== false;
|
| 1142 |
+
document.getElementById("cfg-do-sample").checked = doSample;
|
| 1143 |
+
|
| 1144 |
+
const temp = appConfig.temperature ?? 1.0;
|
| 1145 |
+
document.getElementById("cfg-temp").value = temp;
|
| 1146 |
+
document.getElementById("temp-val").innerText = parseFloat(temp).toFixed(2);
|
| 1147 |
+
|
| 1148 |
+
const topP = appConfig.top_p ?? 0.95;
|
| 1149 |
+
document.getElementById("cfg-top-p").value = topP;
|
| 1150 |
+
document.getElementById("topp-val").innerText = parseFloat(topP).toFixed(2);
|
| 1151 |
+
|
| 1152 |
+
const topK = appConfig.top_k ?? 20;
|
| 1153 |
+
document.getElementById("cfg-top-k").value = topK;
|
| 1154 |
+
document.getElementById("topk-val").innerText = topK <= 0 ? "Off" : topK;
|
| 1155 |
+
|
| 1156 |
+
const minP = appConfig.min_p ?? 0.0;
|
| 1157 |
+
document.getElementById("cfg-min-p").value = minP;
|
| 1158 |
+
document.getElementById("minp-val").innerText = parseFloat(minP).toFixed(2);
|
| 1159 |
+
|
| 1160 |
+
const presPen = appConfig.presence_penalty ?? 1.5;
|
| 1161 |
+
document.getElementById("cfg-pres-penalty").value = presPen;
|
| 1162 |
+
document.getElementById("pres-val").innerText = parseFloat(presPen).toFixed(2);
|
| 1163 |
+
|
| 1164 |
+
const repPen = appConfig.repetition_penalty ?? 1.0;
|
| 1165 |
+
document.getElementById("cfg-rep-penalty").value = repPen;
|
| 1166 |
+
document.getElementById("rep-val").innerText = parseFloat(repPen).toFixed(2);
|
| 1167 |
+
|
| 1168 |
+
const maxTok = appConfig.max_tokens ?? 8192;
|
| 1169 |
+
document.getElementById("cfg-max-tokens").value = maxTok;
|
| 1170 |
+
document.getElementById("max-val").innerText = maxTok;
|
| 1171 |
+
|
| 1172 |
+
document.getElementById("cfg-system-prompt").value = appConfig.system_prompt || "";
|
| 1173 |
+
|
| 1174 |
+
const preset = appConfig.theme_preset || "default";
|
| 1175 |
+
document.querySelectorAll(".preset-btn").forEach(b => b.classList.remove("active"));
|
| 1176 |
+
const btn = document.getElementById("btn-theme-" + preset);
|
| 1177 |
+
if (btn) btn.classList.add("active");
|
| 1178 |
+
document.getElementById("cfg-custom-css").value = appConfig.custom_css || (preset !== 'default' ? THEME_PRESETS[preset] : "");
|
| 1179 |
+
|
| 1180 |
+
switchBackendTab(appConfig.backend_mode || 'api');
|
| 1181 |
+
}
|
| 1182 |
+
|
| 1183 |
+
async function saveSettings() {
|
| 1184 |
+
const payload = {
|
| 1185 |
+
backend_mode: appConfig.backend_mode,
|
| 1186 |
+
api_url: document.getElementById("cfg-api-url").value,
|
| 1187 |
+
do_sample: document.getElementById("cfg-do-sample").checked,
|
| 1188 |
+
temperature: parseFloat(document.getElementById("cfg-temp").value),
|
| 1189 |
+
top_p: parseFloat(document.getElementById("cfg-top-p").value),
|
| 1190 |
+
top_k: parseInt(document.getElementById("cfg-top-k").value),
|
| 1191 |
+
min_p: parseFloat(document.getElementById("cfg-min-p").value),
|
| 1192 |
+
presence_penalty: parseFloat(document.getElementById("cfg-pres-penalty").value),
|
| 1193 |
+
repetition_penalty: parseFloat(document.getElementById("cfg-rep-penalty").value),
|
| 1194 |
+
max_tokens: parseInt(document.getElementById("cfg-max-tokens").value),
|
| 1195 |
+
system_prompt: document.getElementById("cfg-system-prompt").value,
|
| 1196 |
+
enable_thinking: appConfig.enable_thinking,
|
| 1197 |
+
theme_preset: appConfig.theme_preset || "default",
|
| 1198 |
+
custom_css: document.getElementById("cfg-custom-css").value
|
| 1199 |
+
};
|
| 1200 |
+
await fetch("/api/config", {
|
| 1201 |
+
method: "POST",
|
| 1202 |
+
headers: { "Content-Type": "application/json" },
|
| 1203 |
+
body: JSON.stringify(payload)
|
| 1204 |
+
});
|
| 1205 |
+
closeSettings();
|
| 1206 |
+
await fetchConfig();
|
| 1207 |
+
await checkStatus();
|
| 1208 |
+
}
|
| 1209 |
+
|
| 1210 |
+
async function loadDirectModel() {
|
| 1211 |
+
const path = document.getElementById("cfg-model-path").value.trim();
|
| 1212 |
+
const ctx = parseInt(document.getElementById("cfg-ctx").value);
|
| 1213 |
+
const ngl = parseInt(document.getElementById("cfg-ngl").value);
|
| 1214 |
+
if (!path) {
|
| 1215 |
+
alert("Please enter a valid model path.");
|
| 1216 |
+
return;
|
| 1217 |
+
}
|
| 1218 |
+
const btn = event.target;
|
| 1219 |
+
const origText = btn.innerText;
|
| 1220 |
+
btn.innerText = "⏳ Loading Model...";
|
| 1221 |
+
btn.disabled = true;
|
| 1222 |
+
|
| 1223 |
+
try {
|
| 1224 |
+
const res = await fetch("/api/model/load", {
|
| 1225 |
+
method: "POST",
|
| 1226 |
+
headers: { "Content-Type": "application/json" },
|
| 1227 |
+
body: JSON.stringify({ model_path: path, context_size: ctx, gpu_layers: ngl })
|
| 1228 |
+
});
|
| 1229 |
+
const data = await res.json();
|
| 1230 |
+
if (res.ok) {
|
| 1231 |
+
alert(data.message || "Model loaded successfully!");
|
| 1232 |
+
closeSettings();
|
| 1233 |
+
await fetchConfig();
|
| 1234 |
+
await checkStatus();
|
| 1235 |
+
} else {
|
| 1236 |
+
alert("Error: " + (data.error || "Failed to load model."));
|
| 1237 |
+
}
|
| 1238 |
+
} catch (err) {
|
| 1239 |
+
alert("Error connecting to server: " + err.message);
|
| 1240 |
+
} finally {
|
| 1241 |
+
btn.innerText = origText;
|
| 1242 |
+
btn.disabled = false;
|
| 1243 |
+
}
|
| 1244 |
+
}
|
| 1245 |
+
|
| 1246 |
+
function clearChat() {
|
| 1247 |
+
conversationHistory = [];
|
| 1248 |
+
const list = document.getElementById("messages-list");
|
| 1249 |
+
list.innerHTML = `
|
| 1250 |
+
<div class="welcome-card" id="welcome-card">
|
| 1251 |
+
<div class="welcome-title">Mario 4B Modular HTML Presentation Model</div>
|
| 1252 |
+
<p class="welcome-desc">
|
| 1253 |
+
Trained with Reinforcement Learning (GRPO) to output pure semantic HTML visual views backed by deep step-by-step mathematical reasoning.
|
| 1254 |
+
</p>
|
| 1255 |
+
<div class="chips-grid">
|
| 1256 |
+
<div class="prompt-chip" onclick="sendPreset('Solve the linear equation: 2x + 5 = 17 step by step')">📐 2x + 5 = 17 Equation</div>
|
| 1257 |
+
<div class="prompt-chip" onclick="sendPreset('Explain Binary Search algorithm with complexity and steps')">⚡ Binary Search</div>
|
| 1258 |
+
<div class="prompt-chip" onclick="sendPreset('Compare 9.11 and 9.9 — which one is larger and why?')">⚖️ 9.11 vs 9.9</div>
|
| 1259 |
+
<div class="prompt-chip" onclick="sendPreset('Compare Microservices vs Monolith architecture in a modern comparison grid')">🏛️ Microservices vs Monolith</div>
|
| 1260 |
+
</div>
|
| 1261 |
+
</div>
|
| 1262 |
+
`;
|
| 1263 |
+
}
|
| 1264 |
+
|
| 1265 |
+
function sendPreset(text) {
|
| 1266 |
+
document.getElementById("prompt-input").value = text;
|
| 1267 |
+
sendMessage();
|
| 1268 |
+
}
|
| 1269 |
+
|
| 1270 |
+
function handleKeyDown(e) {
|
| 1271 |
+
if (e.key === "Enter" && !e.shiftKey) {
|
| 1272 |
+
e.preventDefault();
|
| 1273 |
+
sendMessage();
|
| 1274 |
+
}
|
| 1275 |
+
}
|
| 1276 |
+
|
| 1277 |
+
function autoResizeTextarea() {
|
| 1278 |
+
const tx = document.getElementById("prompt-input");
|
| 1279 |
+
tx.addEventListener("input", () => {
|
| 1280 |
+
tx.style.height = "auto";
|
| 1281 |
+
tx.style.height = Math.min(tx.scrollHeight, 180) + "px";
|
| 1282 |
+
});
|
| 1283 |
+
}
|
| 1284 |
+
|
| 1285 |
+
let attachedImageBase64 = null;
|
| 1286 |
+
|
| 1287 |
+
function handleImageFileSelect(e) {
|
| 1288 |
+
const file = e.target.files[0];
|
| 1289 |
+
if (file) loadImageFile(file);
|
| 1290 |
+
e.target.value = "";
|
| 1291 |
+
}
|
| 1292 |
+
|
| 1293 |
+
function loadImageFile(file) {
|
| 1294 |
+
if (!file || !file.type.startsWith("image/")) return;
|
| 1295 |
+
const reader = new FileReader();
|
| 1296 |
+
reader.onload = function(evt) {
|
| 1297 |
+
attachedImageBase64 = evt.target.result;
|
| 1298 |
+
document.getElementById("attached-img-thumb").src = attachedImageBase64;
|
| 1299 |
+
document.getElementById("attached-img-name").innerText = `${file.name || 'Image'} (${(file.size / 1024).toFixed(1)} KB)`;
|
| 1300 |
+
document.getElementById("image-preview-bar").style.display = "flex";
|
| 1301 |
+
};
|
| 1302 |
+
reader.readAsDataURL(file);
|
| 1303 |
+
}
|
| 1304 |
+
|
| 1305 |
+
function removeAttachedImage() {
|
| 1306 |
+
attachedImageBase64 = null;
|
| 1307 |
+
document.getElementById("image-preview-bar").style.display = "none";
|
| 1308 |
+
document.getElementById("attached-img-thumb").src = "";
|
| 1309 |
+
}
|
| 1310 |
+
|
| 1311 |
+
// Direct clipboard paste support
|
| 1312 |
+
window.addEventListener("paste", function(e) {
|
| 1313 |
+
const items = (e.clipboardData || window.clipboardData).items;
|
| 1314 |
+
for (let item of items) {
|
| 1315 |
+
if (item.type.indexOf("image") !== -1) {
|
| 1316 |
+
const file = item.getAsFile();
|
| 1317 |
+
loadImageFile(file);
|
| 1318 |
+
break;
|
| 1319 |
+
}
|
| 1320 |
+
}
|
| 1321 |
+
});
|
| 1322 |
+
|
| 1323 |
+
let activeAbortController = null;
|
| 1324 |
+
|
| 1325 |
+
function handleSendOrStop() {
|
| 1326 |
+
if (isGenerating) {
|
| 1327 |
+
stopGenerating();
|
| 1328 |
+
} else {
|
| 1329 |
+
sendMessage();
|
| 1330 |
+
}
|
| 1331 |
+
}
|
| 1332 |
+
|
| 1333 |
+
function stopGenerating() {
|
| 1334 |
+
if (activeAbortController) {
|
| 1335 |
+
try {
|
| 1336 |
+
activeAbortController.abort();
|
| 1337 |
+
} catch (_) {}
|
| 1338 |
+
activeAbortController = null;
|
| 1339 |
+
}
|
| 1340 |
+
isGenerating = false;
|
| 1341 |
+
const sendBtn = document.getElementById("send-btn");
|
| 1342 |
+
if (sendBtn) {
|
| 1343 |
+
sendBtn.innerText = "Send ↵";
|
| 1344 |
+
sendBtn.style.background = "var(--accent)";
|
| 1345 |
+
}
|
| 1346 |
+
}
|
| 1347 |
+
|
| 1348 |
+
async function sendMessage() {
|
| 1349 |
+
if (isGenerating) return;
|
| 1350 |
+
const input = document.getElementById("prompt-input");
|
| 1351 |
+
const text = input.value.trim();
|
| 1352 |
+
const currentImg = attachedImageBase64;
|
| 1353 |
+
|
| 1354 |
+
if (!text && !currentImg) return;
|
| 1355 |
+
|
| 1356 |
+
input.value = "";
|
| 1357 |
+
input.style.height = "44px";
|
| 1358 |
+
removeAttachedImage();
|
| 1359 |
+
|
| 1360 |
+
// Hide welcome card if present
|
| 1361 |
+
const welcome = document.getElementById("welcome-card");
|
| 1362 |
+
if (welcome) welcome.remove();
|
| 1363 |
+
|
| 1364 |
+
// Append user bubble
|
| 1365 |
+
appendUserMessage(text, currentImg);
|
| 1366 |
+
|
| 1367 |
+
if (currentImg) {
|
| 1368 |
+
conversationHistory.push({
|
| 1369 |
+
role: "user",
|
| 1370 |
+
content: [
|
| 1371 |
+
{ type: "text", text: text || "Please analyze and describe this image." },
|
| 1372 |
+
{ type: "image_url", image_url: { url: currentImg } }
|
| 1373 |
+
]
|
| 1374 |
+
});
|
| 1375 |
+
} else {
|
| 1376 |
+
conversationHistory.push({ role: "user", content: text });
|
| 1377 |
+
}
|
| 1378 |
+
|
| 1379 |
+
// Create assistant container
|
| 1380 |
+
const { row, thinkingBody, htmlCanvas, rawSource, statsSpan } = createAssistantRow();
|
| 1381 |
+
|
| 1382 |
+
isGenerating = true;
|
| 1383 |
+
activeAbortController = new AbortController();
|
| 1384 |
+
const sendBtn = document.getElementById("send-btn");
|
| 1385 |
+
sendBtn.innerText = "Stop ⏹";
|
| 1386 |
+
sendBtn.style.background = "#ef4444";
|
| 1387 |
+
|
| 1388 |
+
let accumulatedThought = "";
|
| 1389 |
+
let accumulatedContent = "";
|
| 1390 |
+
|
| 1391 |
+
try {
|
| 1392 |
+
const response = await fetch("/api/chat/stream", {
|
| 1393 |
+
method: "POST",
|
| 1394 |
+
headers: { "Content-Type": "application/json" },
|
| 1395 |
+
signal: activeAbortController.signal,
|
| 1396 |
+
body: JSON.stringify({
|
| 1397 |
+
messages: conversationHistory,
|
| 1398 |
+
enable_thinking: appConfig.enable_thinking,
|
| 1399 |
+
do_sample: appConfig.do_sample,
|
| 1400 |
+
temperature: appConfig.temperature,
|
| 1401 |
+
top_p: appConfig.top_p,
|
| 1402 |
+
top_k: appConfig.top_k,
|
| 1403 |
+
min_p: appConfig.min_p,
|
| 1404 |
+
presence_penalty: appConfig.presence_penalty,
|
| 1405 |
+
repetition_penalty: appConfig.repetition_penalty,
|
| 1406 |
+
max_tokens: appConfig.max_tokens,
|
| 1407 |
+
system_prompt: appConfig.system_prompt
|
| 1408 |
+
})
|
| 1409 |
+
});
|
| 1410 |
+
|
| 1411 |
+
const reader = response.body.getReader();
|
| 1412 |
+
const decoder = new TextDecoder("utf-8");
|
| 1413 |
+
let streamBuffer = "";
|
| 1414 |
+
|
| 1415 |
+
while (true) {
|
| 1416 |
+
const { done, value } = await reader.read();
|
| 1417 |
+
if (done) break;
|
| 1418 |
+
|
| 1419 |
+
streamBuffer += decoder.decode(value, { stream: true });
|
| 1420 |
+
const lines = streamBuffer.split("\n");
|
| 1421 |
+
// Keep the last segment in streamBuffer (it might be truncated or empty)
|
| 1422 |
+
streamBuffer = lines.pop();
|
| 1423 |
+
|
| 1424 |
+
for (const line of lines) {
|
| 1425 |
+
const trimmed = line.trim();
|
| 1426 |
+
if (!trimmed.startsWith("data: ")) continue;
|
| 1427 |
+
const dataStr = trimmed.slice(6).trim();
|
| 1428 |
+
if (!dataStr) continue;
|
| 1429 |
+
|
| 1430 |
+
let packet;
|
| 1431 |
+
try {
|
| 1432 |
+
packet = JSON.parse(dataStr);
|
| 1433 |
+
} catch (jsonErr) {
|
| 1434 |
+
console.warn("Skipping incomplete/malformed SSE chunk:", jsonErr, dataStr);
|
| 1435 |
+
continue;
|
| 1436 |
+
}
|
| 1437 |
+
|
| 1438 |
+
if (packet.type === "thought") {
|
| 1439 |
+
accumulatedThought += packet.content;
|
| 1440 |
+
thinkingBody.innerText = accumulatedThought;
|
| 1441 |
+
scrollToBottom();
|
| 1442 |
+
} else if (packet.type === "content") {
|
| 1443 |
+
accumulatedContent += packet.content;
|
| 1444 |
+
if (accumulatedContent.includes("<think>")) {
|
| 1445 |
+
const tm = accumulatedContent.match(/<think>([\s\S]*?)(?:<\/think>|$)/i);
|
| 1446 |
+
if (tm && tm[1]) {
|
| 1447 |
+
thinkingBody.innerText = tm[1].trim();
|
| 1448 |
+
}
|
| 1449 |
+
}
|
| 1450 |
+
renderHtmlView(htmlCanvas, rawSource, accumulatedContent);
|
| 1451 |
+
scrollToBottom();
|
| 1452 |
+
} else if (packet.type === "done") {
|
| 1453 |
+
statsSpan.innerText = `⏱️ ${packet.elapsed}s | ⚡ ${packet.tok_per_sec} tok/s | 📊 ${packet.tokens} tokens`;
|
| 1454 |
+
conversationHistory.push({ role: "assistant", content: accumulatedContent });
|
| 1455 |
+
} else if (packet.type === "error") {
|
| 1456 |
+
htmlCanvas.innerHTML = `<div style="color:#ef4444; padding:12px;"><strong>Error:</strong> ${packet.error}</div>`;
|
| 1457 |
+
}
|
| 1458 |
+
}
|
| 1459 |
+
}
|
| 1460 |
+
|
| 1461 |
+
// Process any residual trailing line in streamBuffer
|
| 1462 |
+
if (streamBuffer.trim().startsWith("data: ")) {
|
| 1463 |
+
try {
|
| 1464 |
+
const packet = JSON.parse(streamBuffer.trim().slice(6).trim());
|
| 1465 |
+
if (packet.type === "done") {
|
| 1466 |
+
statsSpan.innerText = `⏱️ ${packet.elapsed}s | ⚡ ${packet.tok_per_sec} tok/s | 📊 ${packet.tokens} tokens`;
|
| 1467 |
+
conversationHistory.push({ role: "assistant", content: accumulatedContent });
|
| 1468 |
+
}
|
| 1469 |
+
} catch (_) {}
|
| 1470 |
+
}
|
| 1471 |
+
|
| 1472 |
+
} catch (err) {
|
| 1473 |
+
if (err.name === "AbortError" || String(err).includes("aborted")) {
|
| 1474 |
+
statsSpan.innerText = (statsSpan.innerText ? statsSpan.innerText + " | " : "") + "⏹ Stopped by user";
|
| 1475 |
+
conversationHistory.push({ role: "assistant", content: accumulatedContent });
|
| 1476 |
+
} else {
|
| 1477 |
+
htmlCanvas.innerHTML = `<div style="color:#ef4444; padding:12px;"><strong>Network Error:</strong> ${err.message}</div>`;
|
| 1478 |
+
}
|
| 1479 |
+
} finally {
|
| 1480 |
+
isGenerating = false;
|
| 1481 |
+
activeAbortController = null;
|
| 1482 |
+
const sendBtn = document.getElementById("send-btn");
|
| 1483 |
+
if (sendBtn) {
|
| 1484 |
+
sendBtn.innerText = "Send ↵";
|
| 1485 |
+
sendBtn.style.background = "var(--accent)";
|
| 1486 |
+
}
|
| 1487 |
+
}
|
| 1488 |
+
}
|
| 1489 |
+
|
| 1490 |
+
function appendUserMessage(text, imgSrc) {
|
| 1491 |
+
const list = document.getElementById("messages-list");
|
| 1492 |
+
const row = document.createElement("div");
|
| 1493 |
+
row.className = "message-row message-user";
|
| 1494 |
+
let imgHtml = "";
|
| 1495 |
+
if (imgSrc) {
|
| 1496 |
+
imgHtml = `<div style="margin-bottom:8px;"><img src="${imgSrc}" style="max-width:240px; max-height:180px; border-radius:8px; border:1px solid rgba(0,0,0,0.1); display:block; object-fit:cover;"></div>`;
|
| 1497 |
+
}
|
| 1498 |
+
row.innerHTML = `<div class="user-bubble">${imgHtml}${escapeHtml(text)}</div>`;
|
| 1499 |
+
list.appendChild(row);
|
| 1500 |
+
scrollToBottom();
|
| 1501 |
+
}
|
| 1502 |
+
|
| 1503 |
+
function createAssistantRow() {
|
| 1504 |
+
const list = document.getElementById("messages-list");
|
| 1505 |
+
const row = document.createElement("div");
|
| 1506 |
+
row.className = "message-row message-assistant";
|
| 1507 |
+
|
| 1508 |
+
const showThinking = appConfig.enable_thinking;
|
| 1509 |
+
|
| 1510 |
+
row.innerHTML = `
|
| 1511 |
+
<details class="thinking-box" ${showThinking ? 'open' : ''} style="${showThinking ? '' : 'display:none;'}">
|
| 1512 |
+
<summary class="thinking-summary">
|
| 1513 |
+
<span>🧠 Chain of Thought</span>
|
| 1514 |
+
<span style="margin-left:auto; font-size:0.75rem;">▼ Toggle</span>
|
| 1515 |
+
</summary>
|
| 1516 |
+
<div class="thinking-content">Thinking in progress...</div>
|
| 1517 |
+
</details>
|
| 1518 |
+
<div class="html-canvas">Generating visual presentation...</div>
|
| 1519 |
+
<div class="raw-source-view"></div>
|
| 1520 |
+
<div class="msg-footer">
|
| 1521 |
+
<div class="msg-stats"><span>Generating...</span></div>
|
| 1522 |
+
<div class="msg-actions">
|
| 1523 |
+
<button class="action-btn" onclick="toggleRawView(this)">👁️ View Source</button>
|
| 1524 |
+
<button class="action-btn" onclick="copyHtml(this)">📋 Copy HTML</button>
|
| 1525 |
+
</div>
|
| 1526 |
+
</div>
|
| 1527 |
+
`;
|
| 1528 |
+
|
| 1529 |
+
list.appendChild(row);
|
| 1530 |
+
scrollToBottom();
|
| 1531 |
+
|
| 1532 |
+
const thinkingBody = row.querySelector(".thinking-content");
|
| 1533 |
+
const htmlCanvas = row.querySelector(".html-canvas");
|
| 1534 |
+
const rawSource = row.querySelector(".raw-source-view");
|
| 1535 |
+
const statsSpan = row.querySelector(".msg-stats span");
|
| 1536 |
+
|
| 1537 |
+
return { row, thinkingBody, htmlCanvas, rawSource, statsSpan };
|
| 1538 |
+
}
|
| 1539 |
+
|
| 1540 |
+
function renderHtmlView(canvas, rawView, text) {
|
| 1541 |
+
// 1. Strip any thinking block from HTML canvas view
|
| 1542 |
+
let clean = text.replace(/<think>[\s\S]*?<\/think>/gi, "").trim();
|
| 1543 |
+
clean = clean.replace(/<think>[\s\S]*$/gi, "").trim();
|
| 1544 |
+
|
| 1545 |
+
// 2. Strip code fences if model ever outputs them
|
| 1546 |
+
if (clean.startsWith("```html")) clean = clean.slice(7);
|
| 1547 |
+
if (clean.startsWith("```")) clean = clean.slice(3);
|
| 1548 |
+
if (clean.endsWith("```")) clean = clean.slice(0, -3);
|
| 1549 |
+
clean = clean.trim();
|
| 1550 |
+
|
| 1551 |
+
const startIdx = clean.indexOf('<div class="ai-view">');
|
| 1552 |
+
if (startIdx !== -1) {
|
| 1553 |
+
clean = clean.slice(startIdx);
|
| 1554 |
+
} else if (!clean) {
|
| 1555 |
+
// If content is still in thinking phase
|
| 1556 |
+
canvas.innerHTML = '<div style="color:var(--text-sub); font-size:0.85rem; padding:16px 8px; display:flex; align-items:center; gap:8px;"><span>🧠</span><span>Thinking & formatting UI layout...</span></div>';
|
| 1557 |
+
rawView.innerText = "";
|
| 1558 |
+
return;
|
| 1559 |
+
}
|
| 1560 |
+
|
| 1561 |
+
rawView.innerText = clean;
|
| 1562 |
+
canvas.innerHTML = clean;
|
| 1563 |
+
}
|
| 1564 |
+
|
| 1565 |
+
function toggleRawView(btn) {
|
| 1566 |
+
const row = btn.closest(".message-assistant");
|
| 1567 |
+
const canvas = row.querySelector(".html-canvas");
|
| 1568 |
+
const raw = row.querySelector(".raw-source-view");
|
| 1569 |
+
if (raw.style.display === "block") {
|
| 1570 |
+
raw.style.display = "none";
|
| 1571 |
+
canvas.style.display = "block";
|
| 1572 |
+
btn.innerText = "View Source";
|
| 1573 |
+
} else {
|
| 1574 |
+
raw.style.display = "block";
|
| 1575 |
+
canvas.style.display = "none";
|
| 1576 |
+
btn.innerText = "View Preview";
|
| 1577 |
+
}
|
| 1578 |
+
}
|
| 1579 |
+
|
| 1580 |
+
function copyHtml(btn) {
|
| 1581 |
+
const row = btn.closest(".message-assistant");
|
| 1582 |
+
const raw = row.querySelector(".raw-source-view").innerText;
|
| 1583 |
+
navigator.clipboard.writeText(raw);
|
| 1584 |
+
const orig = btn.innerText;
|
| 1585 |
+
btn.innerText = "Copied! ✓";
|
| 1586 |
+
setTimeout(() => btn.innerText = orig, 1500);
|
| 1587 |
+
}
|
| 1588 |
+
|
| 1589 |
+
function scrollToBottom() {
|
| 1590 |
+
const container = document.getElementById("chat-container");
|
| 1591 |
+
container.scrollTop = container.scrollHeight;
|
| 1592 |
+
}
|
| 1593 |
+
|
| 1594 |
+
function escapeHtml(str) {
|
| 1595 |
+
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
| 1596 |
+
}
|
| 1597 |
+
</script>
|
| 1598 |
+
</body>
|
| 1599 |
+
</html>
|
webui/static/theme.css
ADDED
|
@@ -0,0 +1,593 @@
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
| 3 |
+
--font-mono: "JetBrains Mono", "Fira Code", Menlo, Monaco, Consolas, monospace;
|
| 4 |
+
|
| 5 |
+
--bg-app: #f8fafc;
|
| 6 |
+
--bg-card: #ffffff;
|
| 7 |
+
--bg-subtle: #f1f5f9;
|
| 8 |
+
|
| 9 |
+
--border-subtle: rgba(226, 232, 240, 0.8);
|
| 10 |
+
--border-card: #e2e8f0;
|
| 11 |
+
|
| 12 |
+
--text-main: #0f172a;
|
| 13 |
+
--text-body: #334155;
|
| 14 |
+
--text-muted: #64748b;
|
| 15 |
+
|
| 16 |
+
--accent-color: #2563eb;
|
| 17 |
+
--accent-bg: #eff6ff;
|
| 18 |
+
|
| 19 |
+
--success-color: #059669;
|
| 20 |
+
--success-bg: #ecfdf5;
|
| 21 |
+
--success-border: #a7f3d0;
|
| 22 |
+
|
| 23 |
+
--warning-color: #d97706;
|
| 24 |
+
--warning-bg: #fffbeb;
|
| 25 |
+
--warning-border: #fde68a;
|
| 26 |
+
|
| 27 |
+
--danger-color: #dc2626;
|
| 28 |
+
--danger-bg: #fef2f2;
|
| 29 |
+
--danger-border: #fecaca;
|
| 30 |
+
|
| 31 |
+
--info-color: #0284c7;
|
| 32 |
+
--info-bg: #f0f9ff;
|
| 33 |
+
--info-border: #bae6fd;
|
| 34 |
+
|
| 35 |
+
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
| 36 |
+
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
|
| 37 |
+
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
|
| 38 |
+
--radius-sm: 6px;
|
| 39 |
+
--radius-md: 10px;
|
| 40 |
+
--radius-lg: 14px;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
body {
|
| 44 |
+
margin: 0;
|
| 45 |
+
padding: 24px;
|
| 46 |
+
background-color: var(--bg-app);
|
| 47 |
+
font-family: var(--font-sans);
|
| 48 |
+
color: var(--text-body);
|
| 49 |
+
line-height: 1.6;
|
| 50 |
+
-webkit-font-smoothing: antialiased;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.ai-view {
|
| 54 |
+
max-width: 880px;
|
| 55 |
+
margin: 0 auto;
|
| 56 |
+
display: flex;
|
| 57 |
+
flex-direction: column;
|
| 58 |
+
gap: 20px;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
/* Card Foundation */
|
| 62 |
+
.card {
|
| 63 |
+
background: var(--bg-card);
|
| 64 |
+
border: 1px solid var(--border-card);
|
| 65 |
+
border-radius: var(--radius-lg);
|
| 66 |
+
padding: 20px 24px;
|
| 67 |
+
box-shadow: var(--shadow-sm);
|
| 68 |
+
transition: box-shadow 0.2s ease, border-color 0.2s ease;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
/* Hero / TL;DR Summary Card */
|
| 72 |
+
.summary-card {
|
| 73 |
+
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
|
| 74 |
+
border: 1px solid var(--border-card);
|
| 75 |
+
border-left: 5px solid var(--accent-color);
|
| 76 |
+
border-radius: var(--radius-lg);
|
| 77 |
+
padding: 20px 24px;
|
| 78 |
+
box-shadow: var(--shadow-md);
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
.summary-card .lead {
|
| 82 |
+
font-size: 1.05rem;
|
| 83 |
+
font-weight: 500;
|
| 84 |
+
color: var(--text-main);
|
| 85 |
+
margin: 10px 0 0 0;
|
| 86 |
+
line-height: 1.6;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
/* Badges & Pills */
|
| 90 |
+
.badge {
|
| 91 |
+
display: inline-flex;
|
| 92 |
+
align-items: center;
|
| 93 |
+
gap: 5px;
|
| 94 |
+
font-size: 0.75rem;
|
| 95 |
+
font-weight: 700;
|
| 96 |
+
text-transform: uppercase;
|
| 97 |
+
letter-spacing: 0.05em;
|
| 98 |
+
padding: 3px 9px;
|
| 99 |
+
border-radius: 9999px;
|
| 100 |
+
}
|
| 101 |
+
.badge-accent { background: var(--accent-bg); color: var(--accent-color); }
|
| 102 |
+
.badge-success { background: var(--success-bg); color: var(--success-color); }
|
| 103 |
+
.badge-warning { background: var(--warning-bg); color: var(--warning-color); }
|
| 104 |
+
.badge-danger { background: var(--danger-bg); color: var(--danger-color); }
|
| 105 |
+
.badge-info { background: var(--info-bg); color: var(--info-color); }
|
| 106 |
+
|
| 107 |
+
/* Typography */
|
| 108 |
+
h1, h2, h3, h4 {
|
| 109 |
+
color: var(--text-main);
|
| 110 |
+
margin-top: 0;
|
| 111 |
+
font-weight: 700;
|
| 112 |
+
letter-spacing: -0.02em;
|
| 113 |
+
}
|
| 114 |
+
h2 { font-size: 1.3rem; margin-bottom: 12px; }
|
| 115 |
+
h3 { font-size: 1.1rem; margin-bottom: 8px; }
|
| 116 |
+
p { margin: 0 0 10px 0; }
|
| 117 |
+
p:last-child { margin-bottom: 0; }
|
| 118 |
+
|
| 119 |
+
/* Grid Layouts (Bento) */
|
| 120 |
+
.grid {
|
| 121 |
+
display: grid;
|
| 122 |
+
gap: 16px;
|
| 123 |
+
}
|
| 124 |
+
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
| 125 |
+
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
| 126 |
+
@media (max-width: 680px) {
|
| 127 |
+
.grid-2, .grid-3 { grid-template-columns: 1fr; }
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
/* Callout Blocks */
|
| 131 |
+
.callout {
|
| 132 |
+
border-radius: var(--radius-md);
|
| 133 |
+
padding: 16px 20px;
|
| 134 |
+
border-left: 4px solid;
|
| 135 |
+
margin: 4px 0;
|
| 136 |
+
font-size: 0.95rem;
|
| 137 |
+
}
|
| 138 |
+
.callout-header {
|
| 139 |
+
font-weight: 700;
|
| 140 |
+
display: flex;
|
| 141 |
+
align-items: center;
|
| 142 |
+
gap: 8px;
|
| 143 |
+
margin-bottom: 6px;
|
| 144 |
+
}
|
| 145 |
+
.callout-info {
|
| 146 |
+
background-color: var(--info-bg);
|
| 147 |
+
border-color: var(--info-color);
|
| 148 |
+
color: #0369a1;
|
| 149 |
+
}
|
| 150 |
+
.callout-warning {
|
| 151 |
+
background-color: var(--warning-bg);
|
| 152 |
+
border-color: var(--warning-color);
|
| 153 |
+
color: #92400e;
|
| 154 |
+
}
|
| 155 |
+
.callout-danger {
|
| 156 |
+
background-color: var(--danger-bg);
|
| 157 |
+
border-color: var(--danger-color);
|
| 158 |
+
color: #991b1b;
|
| 159 |
+
}
|
| 160 |
+
.callout-success {
|
| 161 |
+
background-color: var(--success-bg);
|
| 162 |
+
border-color: var(--success-color);
|
| 163 |
+
color: #065f46;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
/* Stepper / Timeline */
|
| 167 |
+
.stepper {
|
| 168 |
+
display: flex;
|
| 169 |
+
flex-direction: column;
|
| 170 |
+
gap: 16px;
|
| 171 |
+
position: relative;
|
| 172 |
+
margin: 6px 0;
|
| 173 |
+
}
|
| 174 |
+
.step-item {
|
| 175 |
+
display: flex;
|
| 176 |
+
gap: 16px;
|
| 177 |
+
align-items: flex-start;
|
| 178 |
+
}
|
| 179 |
+
.step-num {
|
| 180 |
+
flex-shrink: 0;
|
| 181 |
+
width: 32px;
|
| 182 |
+
height: 32px;
|
| 183 |
+
border-radius: 50%;
|
| 184 |
+
background: var(--accent-bg);
|
| 185 |
+
color: var(--accent-color);
|
| 186 |
+
border: 2px solid var(--accent-color);
|
| 187 |
+
display: flex;
|
| 188 |
+
align-items: center;
|
| 189 |
+
justify-content: center;
|
| 190 |
+
font-weight: 700;
|
| 191 |
+
font-size: 0.85rem;
|
| 192 |
+
}
|
| 193 |
+
.step-content {
|
| 194 |
+
flex-grow: 1;
|
| 195 |
+
}
|
| 196 |
+
.step-content h4 {
|
| 197 |
+
margin: 4px 0 6px 0;
|
| 198 |
+
font-size: 1rem;
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
/* Code Container (macOS style window) */
|
| 202 |
+
.code-box {
|
| 203 |
+
background: #0f172a;
|
| 204 |
+
border-radius: var(--radius-md);
|
| 205 |
+
overflow: hidden;
|
| 206 |
+
box-shadow: var(--shadow-sm);
|
| 207 |
+
margin: 8px 0;
|
| 208 |
+
}
|
| 209 |
+
.code-header {
|
| 210 |
+
background: #1e293b;
|
| 211 |
+
padding: 8px 14px;
|
| 212 |
+
display: flex;
|
| 213 |
+
align-items: center;
|
| 214 |
+
justify-content: space-between;
|
| 215 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
| 216 |
+
}
|
| 217 |
+
.code-dots {
|
| 218 |
+
display: flex;
|
| 219 |
+
gap: 6px;
|
| 220 |
+
}
|
| 221 |
+
.code-dots i {
|
| 222 |
+
width: 10px;
|
| 223 |
+
height: 10px;
|
| 224 |
+
border-radius: 50%;
|
| 225 |
+
display: inline-block;
|
| 226 |
+
}
|
| 227 |
+
.code-dots i:nth-child(1) { background: #ef4444; }
|
| 228 |
+
.code-dots i:nth-child(2) { background: #f59e0b; }
|
| 229 |
+
.code-dots i:nth-child(3) { background: #10b981; }
|
| 230 |
+
.code-title {
|
| 231 |
+
color: #94a3b8;
|
| 232 |
+
font-family: var(--font-mono);
|
| 233 |
+
font-size: 0.75rem;
|
| 234 |
+
font-weight: 600;
|
| 235 |
+
text-transform: uppercase;
|
| 236 |
+
}
|
| 237 |
+
.code-box pre {
|
| 238 |
+
margin: 0;
|
| 239 |
+
padding: 14px 16px;
|
| 240 |
+
overflow-x: auto;
|
| 241 |
+
font-family: var(--font-mono);
|
| 242 |
+
font-size: 0.88rem;
|
| 243 |
+
line-height: 1.5;
|
| 244 |
+
color: #f1f5f9;
|
| 245 |
+
}
|
| 246 |
+
code {
|
| 247 |
+
font-family: var(--font-mono);
|
| 248 |
+
font-size: 0.88em;
|
| 249 |
+
background: #e2e8f0;
|
| 250 |
+
color: #0f172a;
|
| 251 |
+
padding: 2px 6px;
|
| 252 |
+
border-radius: 4px;
|
| 253 |
+
}
|
| 254 |
+
.code-box code {
|
| 255 |
+
background: transparent;
|
| 256 |
+
padding: 0;
|
| 257 |
+
color: inherit;
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
/* Metric / KPI Cards */
|
| 261 |
+
.metric-group {
|
| 262 |
+
display: grid;
|
| 263 |
+
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
| 264 |
+
gap: 12px;
|
| 265 |
+
}
|
| 266 |
+
.metric-card {
|
| 267 |
+
background: var(--bg-card);
|
| 268 |
+
border: 1px solid var(--border-card);
|
| 269 |
+
border-radius: var(--radius-md);
|
| 270 |
+
padding: 14px 18px;
|
| 271 |
+
display: flex;
|
| 272 |
+
flex-direction: column;
|
| 273 |
+
}
|
| 274 |
+
.metric-label {
|
| 275 |
+
font-size: 0.8rem;
|
| 276 |
+
color: var(--text-muted);
|
| 277 |
+
font-weight: 600;
|
| 278 |
+
text-transform: uppercase;
|
| 279 |
+
letter-spacing: 0.04em;
|
| 280 |
+
}
|
| 281 |
+
.metric-value {
|
| 282 |
+
font-size: 1.6rem;
|
| 283 |
+
font-weight: 800;
|
| 284 |
+
color: var(--text-main);
|
| 285 |
+
letter-spacing: -0.03em;
|
| 286 |
+
margin: 4px 0;
|
| 287 |
+
}
|
| 288 |
+
.metric-sub {
|
| 289 |
+
font-size: 0.78rem;
|
| 290 |
+
color: var(--text-muted);
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
/* Modern Minimalist Table */
|
| 294 |
+
.table-container {
|
| 295 |
+
overflow-x: auto;
|
| 296 |
+
border: 1px solid var(--border-card);
|
| 297 |
+
border-radius: var(--radius-md);
|
| 298 |
+
margin: 8px 0;
|
| 299 |
+
background: var(--bg-card);
|
| 300 |
+
}
|
| 301 |
+
.modern-table {
|
| 302 |
+
width: 100%;
|
| 303 |
+
border-collapse: collapse;
|
| 304 |
+
text-align: left;
|
| 305 |
+
font-size: 0.92rem;
|
| 306 |
+
}
|
| 307 |
+
.modern-table th {
|
| 308 |
+
background: var(--bg-subtle);
|
| 309 |
+
color: var(--text-muted);
|
| 310 |
+
font-weight: 700;
|
| 311 |
+
font-size: 0.78rem;
|
| 312 |
+
text-transform: uppercase;
|
| 313 |
+
letter-spacing: 0.05em;
|
| 314 |
+
padding: 10px 14px;
|
| 315 |
+
border-bottom: 1px solid var(--border-card);
|
| 316 |
+
}
|
| 317 |
+
.modern-table td {
|
| 318 |
+
padding: 12px 14px;
|
| 319 |
+
border-bottom: 1px solid var(--border-subtle);
|
| 320 |
+
color: var(--text-body);
|
| 321 |
+
}
|
| 322 |
+
.modern-table tr:last-child td {
|
| 323 |
+
border-bottom: none;
|
| 324 |
+
}
|
| 325 |
+
.modern-table tr:hover td {
|
| 326 |
+
background: #f8fafc;
|
| 327 |
+
}
|
| 328 |
+
/* Append Thinking Card component to theme.css */
|
| 329 |
+
.thinking-card {
|
| 330 |
+
background: var(--bg-subtle);
|
| 331 |
+
border: 1px dashed var(--border-card);
|
| 332 |
+
border-radius: var(--radius-lg);
|
| 333 |
+
padding: 12px 18px;
|
| 334 |
+
margin-bottom: 8px;
|
| 335 |
+
transition: all 0.2s ease;
|
| 336 |
+
}
|
| 337 |
+
.thinking-card[open] {
|
| 338 |
+
background: var(--bg-card);
|
| 339 |
+
border-style: solid;
|
| 340 |
+
border-color: #cbd5e1;
|
| 341 |
+
box-shadow: var(--shadow-sm);
|
| 342 |
+
}
|
| 343 |
+
body.dark-mode .thinking-card {
|
| 344 |
+
border-color: #374151;
|
| 345 |
+
background: #11182788;
|
| 346 |
+
}
|
| 347 |
+
body.dark-mode .thinking-card[open] {
|
| 348 |
+
background: #1f2937;
|
| 349 |
+
border-color: #4b5563;
|
| 350 |
+
}
|
| 351 |
+
.thinking-header {
|
| 352 |
+
display: flex;
|
| 353 |
+
align-items: center;
|
| 354 |
+
gap: 10px;
|
| 355 |
+
cursor: pointer;
|
| 356 |
+
user-select: none;
|
| 357 |
+
font-size: 0.88rem;
|
| 358 |
+
font-weight: 700;
|
| 359 |
+
color: var(--text-muted);
|
| 360 |
+
list-style: none; /* Hide default triangle */
|
| 361 |
+
}
|
| 362 |
+
.thinking-header::-webkit-details-marker {
|
| 363 |
+
display: none;
|
| 364 |
+
}
|
| 365 |
+
.thinking-icon {
|
| 366 |
+
font-size: 1.1rem;
|
| 367 |
+
}
|
| 368 |
+
.thinking-title {
|
| 369 |
+
color: var(--text-main);
|
| 370 |
+
flex-grow: 1;
|
| 371 |
+
}
|
| 372 |
+
.thinking-badge {
|
| 373 |
+
font-size: 0.72rem;
|
| 374 |
+
background: #ede9fe;
|
| 375 |
+
color: #6d28d9;
|
| 376 |
+
padding: 2px 8px;
|
| 377 |
+
border-radius: 9999px;
|
| 378 |
+
font-weight: 700;
|
| 379 |
+
}
|
| 380 |
+
body.dark-mode .thinking-badge {
|
| 381 |
+
background: #4c1d9555;
|
| 382 |
+
color: #c4b5fd;
|
| 383 |
+
}
|
| 384 |
+
.thinking-body {
|
| 385 |
+
margin-top: 14px;
|
| 386 |
+
padding-top: 12px;
|
| 387 |
+
border-top: 1px solid var(--border-subtle);
|
| 388 |
+
font-size: 0.88rem;
|
| 389 |
+
line-height: 1.6;
|
| 390 |
+
color: var(--text-muted);
|
| 391 |
+
font-family: var(--font-sans);
|
| 392 |
+
}
|
| 393 |
+
.thinking-step {
|
| 394 |
+
margin-bottom: 8px;
|
| 395 |
+
}
|
| 396 |
+
.thinking-step strong {
|
| 397 |
+
color: var(--text-main);
|
| 398 |
+
}
|
| 399 |
+
.thinking-math {
|
| 400 |
+
font-family: var(--font-mono);
|
| 401 |
+
background: var(--bg-subtle);
|
| 402 |
+
padding: 2px 6px;
|
| 403 |
+
border-radius: 4px;
|
| 404 |
+
color: var(--text-main);
|
| 405 |
+
}
|
| 406 |
+
|
| 407 |
+
/* Aliases for thinking and summary classes */
|
| 408 |
+
.thinking {
|
| 409 |
+
background: var(--bg-subtle);
|
| 410 |
+
border: 1px dashed var(--border-card);
|
| 411 |
+
border-radius: var(--radius-lg);
|
| 412 |
+
padding: 12px 18px;
|
| 413 |
+
margin-bottom: 12px;
|
| 414 |
+
transition: all 0.2s ease;
|
| 415 |
+
}
|
| 416 |
+
.thinking[open] {
|
| 417 |
+
background: var(--bg-card);
|
| 418 |
+
border-style: solid;
|
| 419 |
+
border-color: #cbd5e1;
|
| 420 |
+
box-shadow: var(--shadow-sm);
|
| 421 |
+
}
|
| 422 |
+
body.dark-mode .thinking {
|
| 423 |
+
border-color: #374151;
|
| 424 |
+
background: #11182788;
|
| 425 |
+
}
|
| 426 |
+
body.dark-mode .thinking[open] {
|
| 427 |
+
background: #1f2937;
|
| 428 |
+
border-color: #4b5563;
|
| 429 |
+
}
|
| 430 |
+
|
| 431 |
+
.summary {
|
| 432 |
+
background: var(--bg-card);
|
| 433 |
+
border: 1px solid var(--border-card);
|
| 434 |
+
border-left: 5px solid var(--accent-color);
|
| 435 |
+
border-radius: var(--radius-lg);
|
| 436 |
+
padding: 20px 24px;
|
| 437 |
+
box-shadow: var(--shadow-md);
|
| 438 |
+
margin-top: 10px;
|
| 439 |
+
}
|
| 440 |
+
.summary .lead {
|
| 441 |
+
font-size: 1.05rem;
|
| 442 |
+
font-weight: 500;
|
| 443 |
+
color: var(--text-main);
|
| 444 |
+
margin: 10px 0 0 0;
|
| 445 |
+
line-height: 1.6;
|
| 446 |
+
}
|
| 447 |
+
|
| 448 |
+
/* Modern List System (Kills the Markdown / 90s bullet look) */
|
| 449 |
+
.ai-view ul {
|
| 450 |
+
list-style: none !important;
|
| 451 |
+
padding-left: 0 !important;
|
| 452 |
+
margin: 12px 0 !important;
|
| 453 |
+
display: flex !important;
|
| 454 |
+
flex-direction: column !important;
|
| 455 |
+
gap: 8px !important;
|
| 456 |
+
}
|
| 457 |
+
|
| 458 |
+
.ai-view ul li {
|
| 459 |
+
position: relative !important;
|
| 460 |
+
padding: 8px 14px 8px 30px !important;
|
| 461 |
+
background: rgba(0, 0, 0, 0.02) !important;
|
| 462 |
+
border-radius: var(--radius-sm, 8px) !important;
|
| 463 |
+
border: 1px solid rgba(0, 0, 0, 0.05) !important;
|
| 464 |
+
color: var(--text-body) !important;
|
| 465 |
+
line-height: 1.5 !important;
|
| 466 |
+
font-size: 0.92rem !important;
|
| 467 |
+
transition: all 0.15s ease !important;
|
| 468 |
+
}
|
| 469 |
+
|
| 470 |
+
.ai-view ul li:hover {
|
| 471 |
+
background: rgba(37, 99, 235, 0.04) !important;
|
| 472 |
+
border-color: rgba(37, 99, 235, 0.15) !important;
|
| 473 |
+
}
|
| 474 |
+
|
| 475 |
+
.ai-view ul li::before {
|
| 476 |
+
content: "" !important;
|
| 477 |
+
position: absolute !important;
|
| 478 |
+
left: 12px !important;
|
| 479 |
+
top: 14px !important;
|
| 480 |
+
width: 7px !important;
|
| 481 |
+
height: 7px !important;
|
| 482 |
+
border-radius: 50% !important;
|
| 483 |
+
background: var(--accent-color, #2563eb) !important;
|
| 484 |
+
box-shadow: 0 0 0 3px var(--accent-bg, rgba(37, 99, 235, 0.15)) !important;
|
| 485 |
+
}
|
| 486 |
+
|
| 487 |
+
/* Grid Child Auto-Cardify: if model outputs bare <div> inside .grid, give it card polish */
|
| 488 |
+
.grid > div:not(.card) {
|
| 489 |
+
background: #f8fafc !important;
|
| 490 |
+
border: 1px solid var(--border-card, #e2e8f0) !important;
|
| 491 |
+
border-radius: var(--radius-md, 12px) !important;
|
| 492 |
+
padding: 18px 20px !important;
|
| 493 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
|
| 494 |
+
}
|
| 495 |
+
|
| 496 |
+
.grid > div:not(.card) h3 {
|
| 497 |
+
margin-bottom: 12px !important;
|
| 498 |
+
padding-bottom: 6px !important;
|
| 499 |
+
border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
|
| 500 |
+
}
|
| 501 |
+
|
| 502 |
+
/* Auto-span single child in grid (Prevents blank ghost columns when model outputs only 1 child) */
|
| 503 |
+
.grid > :only-child,
|
| 504 |
+
.grid-2 > :only-child,
|
| 505 |
+
.grid-3 > :only-child {
|
| 506 |
+
grid-column: 1 / -1 !important;
|
| 507 |
+
}
|
| 508 |
+
|
| 509 |
+
/* Grid Child Container Safety: Never allow child to burst out of grid track */
|
| 510 |
+
.grid > div,
|
| 511 |
+
.grid-2 > div,
|
| 512 |
+
.grid-3 > div {
|
| 513 |
+
min-width: 0 !important;
|
| 514 |
+
box-sizing: border-box !important;
|
| 515 |
+
}
|
| 516 |
+
|
| 517 |
+
/* Feature List & Item (Upgraded from old-school bullet points; clean vertical card flow) */
|
| 518 |
+
.feature-list {
|
| 519 |
+
display: flex !important;
|
| 520 |
+
flex-direction: column !important;
|
| 521 |
+
gap: 8px !important;
|
| 522 |
+
margin: 10px 0 !important;
|
| 523 |
+
width: 100% !important;
|
| 524 |
+
box-sizing: border-box !important;
|
| 525 |
+
}
|
| 526 |
+
|
| 527 |
+
.feature-item {
|
| 528 |
+
display: flex !important;
|
| 529 |
+
flex-direction: column !important;
|
| 530 |
+
align-items: flex-start !important;
|
| 531 |
+
gap: 6px !important;
|
| 532 |
+
padding: 10px 14px !important;
|
| 533 |
+
background: #ffffff !important;
|
| 534 |
+
border-radius: var(--radius-sm, 8px) !important;
|
| 535 |
+
border: 1px solid var(--border-card, #e2e8f0) !important;
|
| 536 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
|
| 537 |
+
transition: all 0.15s ease !important;
|
| 538 |
+
width: 100% !important;
|
| 539 |
+
box-sizing: border-box !important;
|
| 540 |
+
}
|
| 541 |
+
|
| 542 |
+
.feature-item:hover {
|
| 543 |
+
border-color: #cbd5e1 !important;
|
| 544 |
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
|
| 545 |
+
}
|
| 546 |
+
|
| 547 |
+
.feature-item .badge {
|
| 548 |
+
font-size: 0.72rem !important;
|
| 549 |
+
padding: 2px 8px !important;
|
| 550 |
+
line-height: 1.4 !important;
|
| 551 |
+
display: inline-flex !important;
|
| 552 |
+
}
|
| 553 |
+
|
| 554 |
+
.feature-item p {
|
| 555 |
+
margin: 0 !important;
|
| 556 |
+
font-size: 0.88rem !important;
|
| 557 |
+
color: var(--text-body, #334155) !important;
|
| 558 |
+
line-height: 1.5 !important;
|
| 559 |
+
width: 100% !important;
|
| 560 |
+
}
|
| 561 |
+
|
| 562 |
+
.feature-item:hover {
|
| 563 |
+
border-color: #cbd5e1 !important;
|
| 564 |
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
|
| 565 |
+
transform: translateX(2px) !important;
|
| 566 |
+
}
|
| 567 |
+
|
| 568 |
+
.feature-item .badge {
|
| 569 |
+
flex-shrink: 0 !important;
|
| 570 |
+
margin-top: 1px !important;
|
| 571 |
+
font-size: 0.75rem !important;
|
| 572 |
+
}
|
| 573 |
+
|
| 574 |
+
.feature-item p {
|
| 575 |
+
margin: 0 !important;
|
| 576 |
+
font-size: 0.92rem !important;
|
| 577 |
+
color: var(--text-body, #334155) !important;
|
| 578 |
+
line-height: 1.5 !important;
|
| 579 |
+
flex-grow: 1 !important;
|
| 580 |
+
}
|
| 581 |
+
|
| 582 |
+
answer {
|
| 583 |
+
display: inline-block;
|
| 584 |
+
font-family: var(--font-mono);
|
| 585 |
+
font-weight: 800;
|
| 586 |
+
font-size: 1.15rem;
|
| 587 |
+
color: var(--accent-color);
|
| 588 |
+
background: var(--accent-bg);
|
| 589 |
+
border: 1px solid rgba(37, 99, 235, 0.25);
|
| 590 |
+
padding: 2px 10px;
|
| 591 |
+
border-radius: 6px;
|
| 592 |
+
letter-spacing: -0.01em;
|
| 593 |
+
}
|