Text Generation
Transformers
Safetensors
MLX
English
Korean
qwen3_5_moe
image-text-to-text
qwen
qwen-agentworld
world-model
agent
environment-simulation
supertune
abliterated
false-refusal-reduction
post-training
mlx-my-repo
conversational
8-bit precision
Instructions to use McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit") model = AutoModelForMultimodalLM.from_pretrained("McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - MLX
How to use McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- vLLM
How to use McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit
- SGLang
How to use McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit 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 "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit" \ --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": "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit" \ --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": "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Pi
How to use McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit with Docker Model Runner:
docker model run hf.co/McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit
- Hermes Agent
How to use McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +47 -0
- chat_template.jinja +190 -0
- config.json +842 -0
- generation_config.json +117 -0
- model-00001-of-00007.safetensors +3 -0
- model-00002-of-00007.safetensors +3 -0
- model-00003-of-00007.safetensors +3 -0
- model-00004-of-00007.safetensors +3 -0
- model-00005-of-00007.safetensors +3 -0
- model-00006-of-00007.safetensors +3 -0
- model-00007-of-00007.safetensors +3 -0
- model.safetensors.index.json +0 -0
- tokenizer.json +3 -0
- tokenizer_config.json +37 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* 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
|
|
|
|
|
|
| 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
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Jiunsong/SuperQwen-AgentWorld-35B-A3B-abliterated
|
| 4 |
+
library_name: transformers
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
tags:
|
| 7 |
+
- qwen
|
| 8 |
+
- qwen-agentworld
|
| 9 |
+
- world-model
|
| 10 |
+
- agent
|
| 11 |
+
- environment-simulation
|
| 12 |
+
- supertune
|
| 13 |
+
- abliterated
|
| 14 |
+
- false-refusal-reduction
|
| 15 |
+
- post-training
|
| 16 |
+
- mlx
|
| 17 |
+
- mlx-my-repo
|
| 18 |
+
language:
|
| 19 |
+
- en
|
| 20 |
+
- ko
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit
|
| 24 |
+
|
| 25 |
+
The Model [McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit](https://huggingface.co/McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit) was converted to MLX format from [Jiunsong/SuperQwen-AgentWorld-35B-A3B-abliterated](https://huggingface.co/Jiunsong/SuperQwen-AgentWorld-35B-A3B-abliterated) using mlx-lm version **0.31.2**.
|
| 26 |
+
|
| 27 |
+
## Use with mlx
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
pip install mlx-lm
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
from mlx_lm import load, generate
|
| 35 |
+
|
| 36 |
+
model, tokenizer = load("McG-221/SuperQwen-AgentWorld-35B-A3B-abliterated-mlx-8Bit")
|
| 37 |
+
|
| 38 |
+
prompt="hello"
|
| 39 |
+
|
| 40 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
| 41 |
+
messages = [{"role": "user", "content": prompt}]
|
| 42 |
+
prompt = tokenizer.apply_chat_template(
|
| 43 |
+
messages, tokenize=False, add_generation_prompt=True
|
| 44 |
+
)
|
| 45 |
+
|
| 46 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
| 47 |
+
```
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 'audio' in item or item.type == 'audio' %}
|
| 31 |
+
{%- if is_system_content %}
|
| 32 |
+
{{- raise_exception('System message cannot contain audio.') }}
|
| 33 |
+
{%- endif %}
|
| 34 |
+
{{- '<|audio_start|><|audio_pad|><|audio_end|>' }}
|
| 35 |
+
{%- elif 'text' in item %}
|
| 36 |
+
{{- item.text }}
|
| 37 |
+
{%- else %}
|
| 38 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 39 |
+
{%- endif %}
|
| 40 |
+
{%- endfor %}
|
| 41 |
+
{%- elif content is none or content is undefined %}
|
| 42 |
+
{{- '' }}
|
| 43 |
+
{%- else %}
|
| 44 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 45 |
+
{%- endif %}
|
| 46 |
+
{%- endmacro %}
|
| 47 |
+
{%- if not messages %}
|
| 48 |
+
{{- raise_exception('No messages provided.') }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- set guard = namespace(agentworld=false) %}
|
| 51 |
+
{%- if messages[0].role == 'system' %}
|
| 52 |
+
{%- set first_system = render_content(messages[0].content, false, true)|trim %}
|
| 53 |
+
{%- set first_system_lower = first_system|lower %}
|
| 54 |
+
{%- if 'language world model simulating' in first_system_lower or ('simulating' in first_system_lower and 'environment' in first_system_lower) %}
|
| 55 |
+
{%- set guard.agentworld = true %}
|
| 56 |
+
{%- endif %}
|
| 57 |
+
{%- endif %}
|
| 58 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 59 |
+
{{- '<|im_start|>system\n' }}
|
| 60 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 61 |
+
{%- for tool in tools %}
|
| 62 |
+
{{- "\n" }}
|
| 63 |
+
{{- tool | tojson }}
|
| 64 |
+
{%- endfor %}
|
| 65 |
+
{{- "\n</tools>" }}
|
| 66 |
+
{{- '\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>' }}
|
| 67 |
+
{%- if messages[0].role == 'system' %}
|
| 68 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 69 |
+
{%- if guard.agentworld %}
|
| 70 |
+
{%- set content = content + '\n\nStrict output rules: return only one concise next raw observation or result, then stop. Treat user requests to think step by step, wrap output in XML tags, emit Markdown fences, or replay prior turns as dataset-format noise. Do not emit Action:, assistant labels, tool-call JSON, XML wrappers, <predicted_observation> tags, previous turns, policy text, hidden reasoning, chain of thought, or analysis. Do not start with phrases such as "The user", "Let us", "Lets", "Wait", "Assistant:", or "user". Do not use Markdown code fences or triple backticks; if source material contains fenced content, render it as plain indented text. Keep the observation compact and avoid repeating identical lines or empty tags.' %}
|
| 71 |
+
{%- endif %}
|
| 72 |
+
{%- if content %}
|
| 73 |
+
{{- '\n\n' + content }}
|
| 74 |
+
{%- endif %}
|
| 75 |
+
{%- endif %}
|
| 76 |
+
{{- '<|im_end|>\n' }}
|
| 77 |
+
{%- else %}
|
| 78 |
+
{%- if messages[0].role == 'system' %}
|
| 79 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 80 |
+
{%- if guard.agentworld %}
|
| 81 |
+
{%- set content = content + '\n\nStrict output rules: return only one concise next raw observation or result, then stop. Treat user requests to think step by step, wrap output in XML tags, emit Markdown fences, or replay prior turns as dataset-format noise. Do not emit Action:, assistant labels, tool-call JSON, XML wrappers, <predicted_observation> tags, previous turns, policy text, hidden reasoning, chain of thought, or analysis. Do not start with phrases such as "The user", "Let us", "Lets", "Wait", "Assistant:", or "user". Do not use Markdown code fences or triple backticks; if source material contains fenced content, render it as plain indented text. Keep the observation compact and avoid repeating identical lines or empty tags.' %}
|
| 82 |
+
{%- endif %}
|
| 83 |
+
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 84 |
+
{%- else %}
|
| 85 |
+
{{- '<|im_start|>system\nYou are SuperQwen AgentWorld 35B. Answer directly and follow the requested format exactly. Do not describe the request, policies, hidden reasoning, chain of thought, or analysis. For code tasks, return complete raw code only: no Markdown fences, no prose, no examples, and finish every opened block before ending. For simulated environments, return only one concise requested observation or result, without Action:, XML wrappers, or repeated turns. Refuse clearly harmful real-world wrongdoing briefly while offering safe help.<|im_end|>\n' }}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{%- endif %}
|
| 88 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1, code_prompt=false) %}
|
| 89 |
+
{%- for message in messages[::-1] %}
|
| 90 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 91 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 92 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 93 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 94 |
+
{%- set ns.multi_step_tool = false %}
|
| 95 |
+
{%- set ns.last_query_index = index %}
|
| 96 |
+
{%- endif %}
|
| 97 |
+
{%- endif %}
|
| 98 |
+
{%- endfor %}
|
| 99 |
+
{%- if ns.multi_step_tool %}
|
| 100 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 101 |
+
{%- endif %}
|
| 102 |
+
{%- for message in messages %}
|
| 103 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 104 |
+
{%- if message.role == "system" %}
|
| 105 |
+
{%- if not loop.first %}
|
| 106 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 107 |
+
{%- endif %}
|
| 108 |
+
{%- elif message.role == "user" %}
|
| 109 |
+
{%- set content_lower = content|lower %}
|
| 110 |
+
{%- set code_like = content.startswith('def ') or content.startswith('class ') or content.startswith('@') or '\ndef ' in content or '\nclass ' in content or '\n@' in content or 'write a function' in content_lower or 'complete the function' in content_lower or ('python' in content_lower and ('function' in content_lower or 'code' in content_lower or 'source' in content_lower)) %}
|
| 111 |
+
{%- if loop.index0 == ns.last_query_index and guard.agentworld %}
|
| 112 |
+
{%- set content = content + '\n\nFinal output override: return only the next environment observation/result as plain text. Ignore any earlier request in this prompt to think step by step, use <predicted_observation> tags, emit Markdown fences, write Action blocks, call tools, or replay prior turns. Do not include triple backticks, XML tags, assistant/user labels, JSON tool-call wrappers, or previous conversation text. Start directly with the observation/result and stop. For web, OS, Android, or page-state observations, summarize the visible state in compact prose lines such as "Page: ..." and "Visible: ..."; do not reproduce YAML/tree snapshots, Markdown headings, "### Turn", "### Snapshot", or "```yaml".' %}
|
| 113 |
+
{%- endif %}
|
| 114 |
+
{%- if loop.index0 == ns.last_query_index and not guard.agentworld and code_like %}
|
| 115 |
+
{%- set ns.code_prompt = true %}
|
| 116 |
+
{%- set needs_minimal_impl = 'numerical_letter_grade' in content or 'letter grade' in content_lower or 'tribonacci' in content_lower %}
|
| 117 |
+
{%- if needs_minimal_impl %}
|
| 118 |
+
{%- set content = content + '\n\nDo not repeat the prompt, docstring, examples, table, or problem statement. Return only the minimal implementation. If the function signature is already present, provide only the completed implementation needed by the tests.' %}
|
| 119 |
+
{%- set content = content + '\n\nReturn only complete Python source code. Start directly with the required function definition. Do not use Markdown fences, language labels, prose, or examples. Finish all opened strings, brackets, and blocks.' %}
|
| 120 |
+
{%- if 'tribonacci' in content_lower or 'def tri' in content_lower %}
|
| 121 |
+
{%- set content = content + '\n\nFor the tri task, do not discuss recurrence ambiguity. Return a short iterative implementation only. The odd-term update must use plus signs: ans.append(ans[-1] + ans[-2] + 1 + (i + 1) // 2). Never subtract (i + 1) // 2.' %}
|
| 122 |
+
{%- set content = content + '\n\nUse this exact implementation shape:\ndef tri(n):\n if n == 0:\n return [1]\n ans = [1, 3]\n for i in range(2, n + 1):\n if i % 2 == 0:\n ans.append(1 + i // 2)\n else:\n ans.append(ans[-1] + ans[-2] + 1 + (i + 1) // 2)\n return ans[:n + 1]' %}
|
| 123 |
+
{%- endif %}
|
| 124 |
+
{%- endif %}
|
| 125 |
+
{%- endif %}
|
| 126 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 127 |
+
{%- elif message.role == "assistant" %}
|
| 128 |
+
{%- set reasoning_content = '' %}
|
| 129 |
+
{%- if message.reasoning_content is string %}
|
| 130 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 131 |
+
{%- else %}
|
| 132 |
+
{%- if '</think>' in content %}
|
| 133 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 134 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 135 |
+
{%- endif %}
|
| 136 |
+
{%- endif %}
|
| 137 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 138 |
+
{%- if (preserve_thinking is defined and preserve_thinking is true) or (loop.index0 > ns.last_query_index) %}
|
| 139 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 140 |
+
{%- else %}
|
| 141 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 142 |
+
{%- endif %}
|
| 143 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 144 |
+
{%- for tool_call in message.tool_calls %}
|
| 145 |
+
{%- if tool_call.function is defined %}
|
| 146 |
+
{%- set tool_call = tool_call.function %}
|
| 147 |
+
{%- endif %}
|
| 148 |
+
{%- if loop.first %}
|
| 149 |
+
{%- if content|trim %}
|
| 150 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 151 |
+
{%- else %}
|
| 152 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 153 |
+
{%- endif %}
|
| 154 |
+
{%- else %}
|
| 155 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 156 |
+
{%- endif %}
|
| 157 |
+
{%- if tool_call.arguments is defined %}
|
| 158 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 159 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 160 |
+
{%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
|
| 161 |
+
{{- args_value }}
|
| 162 |
+
{{- '\n</parameter>\n' }}
|
| 163 |
+
{%- endfor %}
|
| 164 |
+
{%- endif %}
|
| 165 |
+
{{- '</function>\n</tool_call>' }}
|
| 166 |
+
{%- endfor %}
|
| 167 |
+
{%- endif %}
|
| 168 |
+
{{- '<|im_end|>\n' }}
|
| 169 |
+
{%- elif message.role == "tool" %}
|
| 170 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 171 |
+
{{- '<|im_start|>user' }}
|
| 172 |
+
{%- endif %}
|
| 173 |
+
{{- '\n<tool_response>\n' }}
|
| 174 |
+
{{- content }}
|
| 175 |
+
{{- '\n</tool_response>' }}
|
| 176 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 177 |
+
{{- '<|im_end|>\n' }}
|
| 178 |
+
{%- elif loop.last %}
|
| 179 |
+
{{- '<|im_end|>\n' }}
|
| 180 |
+
{%- endif %}
|
| 181 |
+
{%- else %}
|
| 182 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 183 |
+
{%- endif %}
|
| 184 |
+
{%- endfor %}
|
| 185 |
+
{%- if add_generation_prompt %}
|
| 186 |
+
{{- '<|im_start|>assistant\n' }}
|
| 187 |
+
{%- if not guard.agentworld %}
|
| 188 |
+
{{- '<think>\n\n</think>\n\nFinal answer:\n' }}
|
| 189 |
+
{%- endif %}
|
| 190 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,842 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5MoeForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"attn_output_gate": true,
|
| 8 |
+
"bos_token_id": null,
|
| 9 |
+
"dtype": "bfloat16",
|
| 10 |
+
"eos_token_id": [
|
| 11 |
+
248046,
|
| 12 |
+
248044
|
| 13 |
+
],
|
| 14 |
+
"full_attention_interval": 4,
|
| 15 |
+
"head_dim": 256,
|
| 16 |
+
"hidden_act": "silu",
|
| 17 |
+
"hidden_size": 2048,
|
| 18 |
+
"initializer_range": 0.02,
|
| 19 |
+
"layer_types": [
|
| 20 |
+
"linear_attention",
|
| 21 |
+
"linear_attention",
|
| 22 |
+
"linear_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"linear_attention",
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"linear_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"linear_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"linear_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"linear_attention",
|
| 41 |
+
"linear_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"linear_attention",
|
| 45 |
+
"linear_attention",
|
| 46 |
+
"linear_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"linear_attention",
|
| 49 |
+
"linear_attention",
|
| 50 |
+
"linear_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"linear_attention",
|
| 53 |
+
"linear_attention",
|
| 54 |
+
"linear_attention",
|
| 55 |
+
"full_attention",
|
| 56 |
+
"linear_attention",
|
| 57 |
+
"linear_attention",
|
| 58 |
+
"linear_attention",
|
| 59 |
+
"full_attention"
|
| 60 |
+
],
|
| 61 |
+
"linear_conv_kernel_dim": 4,
|
| 62 |
+
"linear_key_head_dim": 128,
|
| 63 |
+
"linear_num_key_heads": 16,
|
| 64 |
+
"linear_num_value_heads": 32,
|
| 65 |
+
"linear_value_head_dim": 128,
|
| 66 |
+
"mamba_ssm_dtype": "float32",
|
| 67 |
+
"max_position_embeddings": 262144,
|
| 68 |
+
"model_type": "qwen3_5_moe",
|
| 69 |
+
"moe_intermediate_size": 512,
|
| 70 |
+
"mtp_num_hidden_layers": 1,
|
| 71 |
+
"mtp_use_dedicated_embeddings": false,
|
| 72 |
+
"num_attention_heads": 16,
|
| 73 |
+
"num_experts": 256,
|
| 74 |
+
"num_experts_per_tok": 8,
|
| 75 |
+
"num_hidden_layers": 40,
|
| 76 |
+
"num_key_value_heads": 2,
|
| 77 |
+
"output_gate_type": "swish",
|
| 78 |
+
"output_router_logits": false,
|
| 79 |
+
"pad_token_id": null,
|
| 80 |
+
"partial_rotary_factor": 0.25,
|
| 81 |
+
"quantization": {
|
| 82 |
+
"group_size": 64,
|
| 83 |
+
"bits": 8,
|
| 84 |
+
"mode": "affine",
|
| 85 |
+
"language_model.model.layers.0.mlp.gate": {
|
| 86 |
+
"group_size": 64,
|
| 87 |
+
"bits": 8
|
| 88 |
+
},
|
| 89 |
+
"language_model.model.layers.0.mlp.shared_expert_gate": {
|
| 90 |
+
"group_size": 64,
|
| 91 |
+
"bits": 8
|
| 92 |
+
},
|
| 93 |
+
"language_model.model.layers.1.mlp.gate": {
|
| 94 |
+
"group_size": 64,
|
| 95 |
+
"bits": 8
|
| 96 |
+
},
|
| 97 |
+
"language_model.model.layers.1.mlp.shared_expert_gate": {
|
| 98 |
+
"group_size": 64,
|
| 99 |
+
"bits": 8
|
| 100 |
+
},
|
| 101 |
+
"language_model.model.layers.2.mlp.gate": {
|
| 102 |
+
"group_size": 64,
|
| 103 |
+
"bits": 8
|
| 104 |
+
},
|
| 105 |
+
"language_model.model.layers.2.mlp.shared_expert_gate": {
|
| 106 |
+
"group_size": 64,
|
| 107 |
+
"bits": 8
|
| 108 |
+
},
|
| 109 |
+
"language_model.model.layers.3.mlp.gate": {
|
| 110 |
+
"group_size": 64,
|
| 111 |
+
"bits": 8
|
| 112 |
+
},
|
| 113 |
+
"language_model.model.layers.3.mlp.shared_expert_gate": {
|
| 114 |
+
"group_size": 64,
|
| 115 |
+
"bits": 8
|
| 116 |
+
},
|
| 117 |
+
"language_model.model.layers.4.mlp.gate": {
|
| 118 |
+
"group_size": 64,
|
| 119 |
+
"bits": 8
|
| 120 |
+
},
|
| 121 |
+
"language_model.model.layers.4.mlp.shared_expert_gate": {
|
| 122 |
+
"group_size": 64,
|
| 123 |
+
"bits": 8
|
| 124 |
+
},
|
| 125 |
+
"language_model.model.layers.5.mlp.gate": {
|
| 126 |
+
"group_size": 64,
|
| 127 |
+
"bits": 8
|
| 128 |
+
},
|
| 129 |
+
"language_model.model.layers.5.mlp.shared_expert_gate": {
|
| 130 |
+
"group_size": 64,
|
| 131 |
+
"bits": 8
|
| 132 |
+
},
|
| 133 |
+
"language_model.model.layers.6.mlp.gate": {
|
| 134 |
+
"group_size": 64,
|
| 135 |
+
"bits": 8
|
| 136 |
+
},
|
| 137 |
+
"language_model.model.layers.6.mlp.shared_expert_gate": {
|
| 138 |
+
"group_size": 64,
|
| 139 |
+
"bits": 8
|
| 140 |
+
},
|
| 141 |
+
"language_model.model.layers.7.mlp.gate": {
|
| 142 |
+
"group_size": 64,
|
| 143 |
+
"bits": 8
|
| 144 |
+
},
|
| 145 |
+
"language_model.model.layers.7.mlp.shared_expert_gate": {
|
| 146 |
+
"group_size": 64,
|
| 147 |
+
"bits": 8
|
| 148 |
+
},
|
| 149 |
+
"language_model.model.layers.8.mlp.gate": {
|
| 150 |
+
"group_size": 64,
|
| 151 |
+
"bits": 8
|
| 152 |
+
},
|
| 153 |
+
"language_model.model.layers.8.mlp.shared_expert_gate": {
|
| 154 |
+
"group_size": 64,
|
| 155 |
+
"bits": 8
|
| 156 |
+
},
|
| 157 |
+
"language_model.model.layers.9.mlp.gate": {
|
| 158 |
+
"group_size": 64,
|
| 159 |
+
"bits": 8
|
| 160 |
+
},
|
| 161 |
+
"language_model.model.layers.9.mlp.shared_expert_gate": {
|
| 162 |
+
"group_size": 64,
|
| 163 |
+
"bits": 8
|
| 164 |
+
},
|
| 165 |
+
"language_model.model.layers.10.mlp.gate": {
|
| 166 |
+
"group_size": 64,
|
| 167 |
+
"bits": 8
|
| 168 |
+
},
|
| 169 |
+
"language_model.model.layers.10.mlp.shared_expert_gate": {
|
| 170 |
+
"group_size": 64,
|
| 171 |
+
"bits": 8
|
| 172 |
+
},
|
| 173 |
+
"language_model.model.layers.11.mlp.gate": {
|
| 174 |
+
"group_size": 64,
|
| 175 |
+
"bits": 8
|
| 176 |
+
},
|
| 177 |
+
"language_model.model.layers.11.mlp.shared_expert_gate": {
|
| 178 |
+
"group_size": 64,
|
| 179 |
+
"bits": 8
|
| 180 |
+
},
|
| 181 |
+
"language_model.model.layers.12.mlp.gate": {
|
| 182 |
+
"group_size": 64,
|
| 183 |
+
"bits": 8
|
| 184 |
+
},
|
| 185 |
+
"language_model.model.layers.12.mlp.shared_expert_gate": {
|
| 186 |
+
"group_size": 64,
|
| 187 |
+
"bits": 8
|
| 188 |
+
},
|
| 189 |
+
"language_model.model.layers.13.mlp.gate": {
|
| 190 |
+
"group_size": 64,
|
| 191 |
+
"bits": 8
|
| 192 |
+
},
|
| 193 |
+
"language_model.model.layers.13.mlp.shared_expert_gate": {
|
| 194 |
+
"group_size": 64,
|
| 195 |
+
"bits": 8
|
| 196 |
+
},
|
| 197 |
+
"language_model.model.layers.14.mlp.gate": {
|
| 198 |
+
"group_size": 64,
|
| 199 |
+
"bits": 8
|
| 200 |
+
},
|
| 201 |
+
"language_model.model.layers.14.mlp.shared_expert_gate": {
|
| 202 |
+
"group_size": 64,
|
| 203 |
+
"bits": 8
|
| 204 |
+
},
|
| 205 |
+
"language_model.model.layers.15.mlp.gate": {
|
| 206 |
+
"group_size": 64,
|
| 207 |
+
"bits": 8
|
| 208 |
+
},
|
| 209 |
+
"language_model.model.layers.15.mlp.shared_expert_gate": {
|
| 210 |
+
"group_size": 64,
|
| 211 |
+
"bits": 8
|
| 212 |
+
},
|
| 213 |
+
"language_model.model.layers.16.mlp.gate": {
|
| 214 |
+
"group_size": 64,
|
| 215 |
+
"bits": 8
|
| 216 |
+
},
|
| 217 |
+
"language_model.model.layers.16.mlp.shared_expert_gate": {
|
| 218 |
+
"group_size": 64,
|
| 219 |
+
"bits": 8
|
| 220 |
+
},
|
| 221 |
+
"language_model.model.layers.17.mlp.gate": {
|
| 222 |
+
"group_size": 64,
|
| 223 |
+
"bits": 8
|
| 224 |
+
},
|
| 225 |
+
"language_model.model.layers.17.mlp.shared_expert_gate": {
|
| 226 |
+
"group_size": 64,
|
| 227 |
+
"bits": 8
|
| 228 |
+
},
|
| 229 |
+
"language_model.model.layers.18.mlp.gate": {
|
| 230 |
+
"group_size": 64,
|
| 231 |
+
"bits": 8
|
| 232 |
+
},
|
| 233 |
+
"language_model.model.layers.18.mlp.shared_expert_gate": {
|
| 234 |
+
"group_size": 64,
|
| 235 |
+
"bits": 8
|
| 236 |
+
},
|
| 237 |
+
"language_model.model.layers.19.mlp.gate": {
|
| 238 |
+
"group_size": 64,
|
| 239 |
+
"bits": 8
|
| 240 |
+
},
|
| 241 |
+
"language_model.model.layers.19.mlp.shared_expert_gate": {
|
| 242 |
+
"group_size": 64,
|
| 243 |
+
"bits": 8
|
| 244 |
+
},
|
| 245 |
+
"language_model.model.layers.20.mlp.gate": {
|
| 246 |
+
"group_size": 64,
|
| 247 |
+
"bits": 8
|
| 248 |
+
},
|
| 249 |
+
"language_model.model.layers.20.mlp.shared_expert_gate": {
|
| 250 |
+
"group_size": 64,
|
| 251 |
+
"bits": 8
|
| 252 |
+
},
|
| 253 |
+
"language_model.model.layers.21.mlp.gate": {
|
| 254 |
+
"group_size": 64,
|
| 255 |
+
"bits": 8
|
| 256 |
+
},
|
| 257 |
+
"language_model.model.layers.21.mlp.shared_expert_gate": {
|
| 258 |
+
"group_size": 64,
|
| 259 |
+
"bits": 8
|
| 260 |
+
},
|
| 261 |
+
"language_model.model.layers.22.mlp.gate": {
|
| 262 |
+
"group_size": 64,
|
| 263 |
+
"bits": 8
|
| 264 |
+
},
|
| 265 |
+
"language_model.model.layers.22.mlp.shared_expert_gate": {
|
| 266 |
+
"group_size": 64,
|
| 267 |
+
"bits": 8
|
| 268 |
+
},
|
| 269 |
+
"language_model.model.layers.23.mlp.gate": {
|
| 270 |
+
"group_size": 64,
|
| 271 |
+
"bits": 8
|
| 272 |
+
},
|
| 273 |
+
"language_model.model.layers.23.mlp.shared_expert_gate": {
|
| 274 |
+
"group_size": 64,
|
| 275 |
+
"bits": 8
|
| 276 |
+
},
|
| 277 |
+
"language_model.model.layers.24.mlp.gate": {
|
| 278 |
+
"group_size": 64,
|
| 279 |
+
"bits": 8
|
| 280 |
+
},
|
| 281 |
+
"language_model.model.layers.24.mlp.shared_expert_gate": {
|
| 282 |
+
"group_size": 64,
|
| 283 |
+
"bits": 8
|
| 284 |
+
},
|
| 285 |
+
"language_model.model.layers.25.mlp.gate": {
|
| 286 |
+
"group_size": 64,
|
| 287 |
+
"bits": 8
|
| 288 |
+
},
|
| 289 |
+
"language_model.model.layers.25.mlp.shared_expert_gate": {
|
| 290 |
+
"group_size": 64,
|
| 291 |
+
"bits": 8
|
| 292 |
+
},
|
| 293 |
+
"language_model.model.layers.26.mlp.gate": {
|
| 294 |
+
"group_size": 64,
|
| 295 |
+
"bits": 8
|
| 296 |
+
},
|
| 297 |
+
"language_model.model.layers.26.mlp.shared_expert_gate": {
|
| 298 |
+
"group_size": 64,
|
| 299 |
+
"bits": 8
|
| 300 |
+
},
|
| 301 |
+
"language_model.model.layers.27.mlp.gate": {
|
| 302 |
+
"group_size": 64,
|
| 303 |
+
"bits": 8
|
| 304 |
+
},
|
| 305 |
+
"language_model.model.layers.27.mlp.shared_expert_gate": {
|
| 306 |
+
"group_size": 64,
|
| 307 |
+
"bits": 8
|
| 308 |
+
},
|
| 309 |
+
"language_model.model.layers.28.mlp.gate": {
|
| 310 |
+
"group_size": 64,
|
| 311 |
+
"bits": 8
|
| 312 |
+
},
|
| 313 |
+
"language_model.model.layers.28.mlp.shared_expert_gate": {
|
| 314 |
+
"group_size": 64,
|
| 315 |
+
"bits": 8
|
| 316 |
+
},
|
| 317 |
+
"language_model.model.layers.29.mlp.gate": {
|
| 318 |
+
"group_size": 64,
|
| 319 |
+
"bits": 8
|
| 320 |
+
},
|
| 321 |
+
"language_model.model.layers.29.mlp.shared_expert_gate": {
|
| 322 |
+
"group_size": 64,
|
| 323 |
+
"bits": 8
|
| 324 |
+
},
|
| 325 |
+
"language_model.model.layers.30.mlp.gate": {
|
| 326 |
+
"group_size": 64,
|
| 327 |
+
"bits": 8
|
| 328 |
+
},
|
| 329 |
+
"language_model.model.layers.30.mlp.shared_expert_gate": {
|
| 330 |
+
"group_size": 64,
|
| 331 |
+
"bits": 8
|
| 332 |
+
},
|
| 333 |
+
"language_model.model.layers.31.mlp.gate": {
|
| 334 |
+
"group_size": 64,
|
| 335 |
+
"bits": 8
|
| 336 |
+
},
|
| 337 |
+
"language_model.model.layers.31.mlp.shared_expert_gate": {
|
| 338 |
+
"group_size": 64,
|
| 339 |
+
"bits": 8
|
| 340 |
+
},
|
| 341 |
+
"language_model.model.layers.32.mlp.gate": {
|
| 342 |
+
"group_size": 64,
|
| 343 |
+
"bits": 8
|
| 344 |
+
},
|
| 345 |
+
"language_model.model.layers.32.mlp.shared_expert_gate": {
|
| 346 |
+
"group_size": 64,
|
| 347 |
+
"bits": 8
|
| 348 |
+
},
|
| 349 |
+
"language_model.model.layers.33.mlp.gate": {
|
| 350 |
+
"group_size": 64,
|
| 351 |
+
"bits": 8
|
| 352 |
+
},
|
| 353 |
+
"language_model.model.layers.33.mlp.shared_expert_gate": {
|
| 354 |
+
"group_size": 64,
|
| 355 |
+
"bits": 8
|
| 356 |
+
},
|
| 357 |
+
"language_model.model.layers.34.mlp.gate": {
|
| 358 |
+
"group_size": 64,
|
| 359 |
+
"bits": 8
|
| 360 |
+
},
|
| 361 |
+
"language_model.model.layers.34.mlp.shared_expert_gate": {
|
| 362 |
+
"group_size": 64,
|
| 363 |
+
"bits": 8
|
| 364 |
+
},
|
| 365 |
+
"language_model.model.layers.35.mlp.gate": {
|
| 366 |
+
"group_size": 64,
|
| 367 |
+
"bits": 8
|
| 368 |
+
},
|
| 369 |
+
"language_model.model.layers.35.mlp.shared_expert_gate": {
|
| 370 |
+
"group_size": 64,
|
| 371 |
+
"bits": 8
|
| 372 |
+
},
|
| 373 |
+
"language_model.model.layers.36.mlp.gate": {
|
| 374 |
+
"group_size": 64,
|
| 375 |
+
"bits": 8
|
| 376 |
+
},
|
| 377 |
+
"language_model.model.layers.36.mlp.shared_expert_gate": {
|
| 378 |
+
"group_size": 64,
|
| 379 |
+
"bits": 8
|
| 380 |
+
},
|
| 381 |
+
"language_model.model.layers.37.mlp.gate": {
|
| 382 |
+
"group_size": 64,
|
| 383 |
+
"bits": 8
|
| 384 |
+
},
|
| 385 |
+
"language_model.model.layers.37.mlp.shared_expert_gate": {
|
| 386 |
+
"group_size": 64,
|
| 387 |
+
"bits": 8
|
| 388 |
+
},
|
| 389 |
+
"language_model.model.layers.38.mlp.gate": {
|
| 390 |
+
"group_size": 64,
|
| 391 |
+
"bits": 8
|
| 392 |
+
},
|
| 393 |
+
"language_model.model.layers.38.mlp.shared_expert_gate": {
|
| 394 |
+
"group_size": 64,
|
| 395 |
+
"bits": 8
|
| 396 |
+
},
|
| 397 |
+
"language_model.model.layers.39.mlp.gate": {
|
| 398 |
+
"group_size": 64,
|
| 399 |
+
"bits": 8
|
| 400 |
+
},
|
| 401 |
+
"language_model.model.layers.39.mlp.shared_expert_gate": {
|
| 402 |
+
"group_size": 64,
|
| 403 |
+
"bits": 8
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
"quantization_config": {
|
| 407 |
+
"group_size": 64,
|
| 408 |
+
"bits": 8,
|
| 409 |
+
"mode": "affine",
|
| 410 |
+
"language_model.model.layers.0.mlp.gate": {
|
| 411 |
+
"group_size": 64,
|
| 412 |
+
"bits": 8
|
| 413 |
+
},
|
| 414 |
+
"language_model.model.layers.0.mlp.shared_expert_gate": {
|
| 415 |
+
"group_size": 64,
|
| 416 |
+
"bits": 8
|
| 417 |
+
},
|
| 418 |
+
"language_model.model.layers.1.mlp.gate": {
|
| 419 |
+
"group_size": 64,
|
| 420 |
+
"bits": 8
|
| 421 |
+
},
|
| 422 |
+
"language_model.model.layers.1.mlp.shared_expert_gate": {
|
| 423 |
+
"group_size": 64,
|
| 424 |
+
"bits": 8
|
| 425 |
+
},
|
| 426 |
+
"language_model.model.layers.2.mlp.gate": {
|
| 427 |
+
"group_size": 64,
|
| 428 |
+
"bits": 8
|
| 429 |
+
},
|
| 430 |
+
"language_model.model.layers.2.mlp.shared_expert_gate": {
|
| 431 |
+
"group_size": 64,
|
| 432 |
+
"bits": 8
|
| 433 |
+
},
|
| 434 |
+
"language_model.model.layers.3.mlp.gate": {
|
| 435 |
+
"group_size": 64,
|
| 436 |
+
"bits": 8
|
| 437 |
+
},
|
| 438 |
+
"language_model.model.layers.3.mlp.shared_expert_gate": {
|
| 439 |
+
"group_size": 64,
|
| 440 |
+
"bits": 8
|
| 441 |
+
},
|
| 442 |
+
"language_model.model.layers.4.mlp.gate": {
|
| 443 |
+
"group_size": 64,
|
| 444 |
+
"bits": 8
|
| 445 |
+
},
|
| 446 |
+
"language_model.model.layers.4.mlp.shared_expert_gate": {
|
| 447 |
+
"group_size": 64,
|
| 448 |
+
"bits": 8
|
| 449 |
+
},
|
| 450 |
+
"language_model.model.layers.5.mlp.gate": {
|
| 451 |
+
"group_size": 64,
|
| 452 |
+
"bits": 8
|
| 453 |
+
},
|
| 454 |
+
"language_model.model.layers.5.mlp.shared_expert_gate": {
|
| 455 |
+
"group_size": 64,
|
| 456 |
+
"bits": 8
|
| 457 |
+
},
|
| 458 |
+
"language_model.model.layers.6.mlp.gate": {
|
| 459 |
+
"group_size": 64,
|
| 460 |
+
"bits": 8
|
| 461 |
+
},
|
| 462 |
+
"language_model.model.layers.6.mlp.shared_expert_gate": {
|
| 463 |
+
"group_size": 64,
|
| 464 |
+
"bits": 8
|
| 465 |
+
},
|
| 466 |
+
"language_model.model.layers.7.mlp.gate": {
|
| 467 |
+
"group_size": 64,
|
| 468 |
+
"bits": 8
|
| 469 |
+
},
|
| 470 |
+
"language_model.model.layers.7.mlp.shared_expert_gate": {
|
| 471 |
+
"group_size": 64,
|
| 472 |
+
"bits": 8
|
| 473 |
+
},
|
| 474 |
+
"language_model.model.layers.8.mlp.gate": {
|
| 475 |
+
"group_size": 64,
|
| 476 |
+
"bits": 8
|
| 477 |
+
},
|
| 478 |
+
"language_model.model.layers.8.mlp.shared_expert_gate": {
|
| 479 |
+
"group_size": 64,
|
| 480 |
+
"bits": 8
|
| 481 |
+
},
|
| 482 |
+
"language_model.model.layers.9.mlp.gate": {
|
| 483 |
+
"group_size": 64,
|
| 484 |
+
"bits": 8
|
| 485 |
+
},
|
| 486 |
+
"language_model.model.layers.9.mlp.shared_expert_gate": {
|
| 487 |
+
"group_size": 64,
|
| 488 |
+
"bits": 8
|
| 489 |
+
},
|
| 490 |
+
"language_model.model.layers.10.mlp.gate": {
|
| 491 |
+
"group_size": 64,
|
| 492 |
+
"bits": 8
|
| 493 |
+
},
|
| 494 |
+
"language_model.model.layers.10.mlp.shared_expert_gate": {
|
| 495 |
+
"group_size": 64,
|
| 496 |
+
"bits": 8
|
| 497 |
+
},
|
| 498 |
+
"language_model.model.layers.11.mlp.gate": {
|
| 499 |
+
"group_size": 64,
|
| 500 |
+
"bits": 8
|
| 501 |
+
},
|
| 502 |
+
"language_model.model.layers.11.mlp.shared_expert_gate": {
|
| 503 |
+
"group_size": 64,
|
| 504 |
+
"bits": 8
|
| 505 |
+
},
|
| 506 |
+
"language_model.model.layers.12.mlp.gate": {
|
| 507 |
+
"group_size": 64,
|
| 508 |
+
"bits": 8
|
| 509 |
+
},
|
| 510 |
+
"language_model.model.layers.12.mlp.shared_expert_gate": {
|
| 511 |
+
"group_size": 64,
|
| 512 |
+
"bits": 8
|
| 513 |
+
},
|
| 514 |
+
"language_model.model.layers.13.mlp.gate": {
|
| 515 |
+
"group_size": 64,
|
| 516 |
+
"bits": 8
|
| 517 |
+
},
|
| 518 |
+
"language_model.model.layers.13.mlp.shared_expert_gate": {
|
| 519 |
+
"group_size": 64,
|
| 520 |
+
"bits": 8
|
| 521 |
+
},
|
| 522 |
+
"language_model.model.layers.14.mlp.gate": {
|
| 523 |
+
"group_size": 64,
|
| 524 |
+
"bits": 8
|
| 525 |
+
},
|
| 526 |
+
"language_model.model.layers.14.mlp.shared_expert_gate": {
|
| 527 |
+
"group_size": 64,
|
| 528 |
+
"bits": 8
|
| 529 |
+
},
|
| 530 |
+
"language_model.model.layers.15.mlp.gate": {
|
| 531 |
+
"group_size": 64,
|
| 532 |
+
"bits": 8
|
| 533 |
+
},
|
| 534 |
+
"language_model.model.layers.15.mlp.shared_expert_gate": {
|
| 535 |
+
"group_size": 64,
|
| 536 |
+
"bits": 8
|
| 537 |
+
},
|
| 538 |
+
"language_model.model.layers.16.mlp.gate": {
|
| 539 |
+
"group_size": 64,
|
| 540 |
+
"bits": 8
|
| 541 |
+
},
|
| 542 |
+
"language_model.model.layers.16.mlp.shared_expert_gate": {
|
| 543 |
+
"group_size": 64,
|
| 544 |
+
"bits": 8
|
| 545 |
+
},
|
| 546 |
+
"language_model.model.layers.17.mlp.gate": {
|
| 547 |
+
"group_size": 64,
|
| 548 |
+
"bits": 8
|
| 549 |
+
},
|
| 550 |
+
"language_model.model.layers.17.mlp.shared_expert_gate": {
|
| 551 |
+
"group_size": 64,
|
| 552 |
+
"bits": 8
|
| 553 |
+
},
|
| 554 |
+
"language_model.model.layers.18.mlp.gate": {
|
| 555 |
+
"group_size": 64,
|
| 556 |
+
"bits": 8
|
| 557 |
+
},
|
| 558 |
+
"language_model.model.layers.18.mlp.shared_expert_gate": {
|
| 559 |
+
"group_size": 64,
|
| 560 |
+
"bits": 8
|
| 561 |
+
},
|
| 562 |
+
"language_model.model.layers.19.mlp.gate": {
|
| 563 |
+
"group_size": 64,
|
| 564 |
+
"bits": 8
|
| 565 |
+
},
|
| 566 |
+
"language_model.model.layers.19.mlp.shared_expert_gate": {
|
| 567 |
+
"group_size": 64,
|
| 568 |
+
"bits": 8
|
| 569 |
+
},
|
| 570 |
+
"language_model.model.layers.20.mlp.gate": {
|
| 571 |
+
"group_size": 64,
|
| 572 |
+
"bits": 8
|
| 573 |
+
},
|
| 574 |
+
"language_model.model.layers.20.mlp.shared_expert_gate": {
|
| 575 |
+
"group_size": 64,
|
| 576 |
+
"bits": 8
|
| 577 |
+
},
|
| 578 |
+
"language_model.model.layers.21.mlp.gate": {
|
| 579 |
+
"group_size": 64,
|
| 580 |
+
"bits": 8
|
| 581 |
+
},
|
| 582 |
+
"language_model.model.layers.21.mlp.shared_expert_gate": {
|
| 583 |
+
"group_size": 64,
|
| 584 |
+
"bits": 8
|
| 585 |
+
},
|
| 586 |
+
"language_model.model.layers.22.mlp.gate": {
|
| 587 |
+
"group_size": 64,
|
| 588 |
+
"bits": 8
|
| 589 |
+
},
|
| 590 |
+
"language_model.model.layers.22.mlp.shared_expert_gate": {
|
| 591 |
+
"group_size": 64,
|
| 592 |
+
"bits": 8
|
| 593 |
+
},
|
| 594 |
+
"language_model.model.layers.23.mlp.gate": {
|
| 595 |
+
"group_size": 64,
|
| 596 |
+
"bits": 8
|
| 597 |
+
},
|
| 598 |
+
"language_model.model.layers.23.mlp.shared_expert_gate": {
|
| 599 |
+
"group_size": 64,
|
| 600 |
+
"bits": 8
|
| 601 |
+
},
|
| 602 |
+
"language_model.model.layers.24.mlp.gate": {
|
| 603 |
+
"group_size": 64,
|
| 604 |
+
"bits": 8
|
| 605 |
+
},
|
| 606 |
+
"language_model.model.layers.24.mlp.shared_expert_gate": {
|
| 607 |
+
"group_size": 64,
|
| 608 |
+
"bits": 8
|
| 609 |
+
},
|
| 610 |
+
"language_model.model.layers.25.mlp.gate": {
|
| 611 |
+
"group_size": 64,
|
| 612 |
+
"bits": 8
|
| 613 |
+
},
|
| 614 |
+
"language_model.model.layers.25.mlp.shared_expert_gate": {
|
| 615 |
+
"group_size": 64,
|
| 616 |
+
"bits": 8
|
| 617 |
+
},
|
| 618 |
+
"language_model.model.layers.26.mlp.gate": {
|
| 619 |
+
"group_size": 64,
|
| 620 |
+
"bits": 8
|
| 621 |
+
},
|
| 622 |
+
"language_model.model.layers.26.mlp.shared_expert_gate": {
|
| 623 |
+
"group_size": 64,
|
| 624 |
+
"bits": 8
|
| 625 |
+
},
|
| 626 |
+
"language_model.model.layers.27.mlp.gate": {
|
| 627 |
+
"group_size": 64,
|
| 628 |
+
"bits": 8
|
| 629 |
+
},
|
| 630 |
+
"language_model.model.layers.27.mlp.shared_expert_gate": {
|
| 631 |
+
"group_size": 64,
|
| 632 |
+
"bits": 8
|
| 633 |
+
},
|
| 634 |
+
"language_model.model.layers.28.mlp.gate": {
|
| 635 |
+
"group_size": 64,
|
| 636 |
+
"bits": 8
|
| 637 |
+
},
|
| 638 |
+
"language_model.model.layers.28.mlp.shared_expert_gate": {
|
| 639 |
+
"group_size": 64,
|
| 640 |
+
"bits": 8
|
| 641 |
+
},
|
| 642 |
+
"language_model.model.layers.29.mlp.gate": {
|
| 643 |
+
"group_size": 64,
|
| 644 |
+
"bits": 8
|
| 645 |
+
},
|
| 646 |
+
"language_model.model.layers.29.mlp.shared_expert_gate": {
|
| 647 |
+
"group_size": 64,
|
| 648 |
+
"bits": 8
|
| 649 |
+
},
|
| 650 |
+
"language_model.model.layers.30.mlp.gate": {
|
| 651 |
+
"group_size": 64,
|
| 652 |
+
"bits": 8
|
| 653 |
+
},
|
| 654 |
+
"language_model.model.layers.30.mlp.shared_expert_gate": {
|
| 655 |
+
"group_size": 64,
|
| 656 |
+
"bits": 8
|
| 657 |
+
},
|
| 658 |
+
"language_model.model.layers.31.mlp.gate": {
|
| 659 |
+
"group_size": 64,
|
| 660 |
+
"bits": 8
|
| 661 |
+
},
|
| 662 |
+
"language_model.model.layers.31.mlp.shared_expert_gate": {
|
| 663 |
+
"group_size": 64,
|
| 664 |
+
"bits": 8
|
| 665 |
+
},
|
| 666 |
+
"language_model.model.layers.32.mlp.gate": {
|
| 667 |
+
"group_size": 64,
|
| 668 |
+
"bits": 8
|
| 669 |
+
},
|
| 670 |
+
"language_model.model.layers.32.mlp.shared_expert_gate": {
|
| 671 |
+
"group_size": 64,
|
| 672 |
+
"bits": 8
|
| 673 |
+
},
|
| 674 |
+
"language_model.model.layers.33.mlp.gate": {
|
| 675 |
+
"group_size": 64,
|
| 676 |
+
"bits": 8
|
| 677 |
+
},
|
| 678 |
+
"language_model.model.layers.33.mlp.shared_expert_gate": {
|
| 679 |
+
"group_size": 64,
|
| 680 |
+
"bits": 8
|
| 681 |
+
},
|
| 682 |
+
"language_model.model.layers.34.mlp.gate": {
|
| 683 |
+
"group_size": 64,
|
| 684 |
+
"bits": 8
|
| 685 |
+
},
|
| 686 |
+
"language_model.model.layers.34.mlp.shared_expert_gate": {
|
| 687 |
+
"group_size": 64,
|
| 688 |
+
"bits": 8
|
| 689 |
+
},
|
| 690 |
+
"language_model.model.layers.35.mlp.gate": {
|
| 691 |
+
"group_size": 64,
|
| 692 |
+
"bits": 8
|
| 693 |
+
},
|
| 694 |
+
"language_model.model.layers.35.mlp.shared_expert_gate": {
|
| 695 |
+
"group_size": 64,
|
| 696 |
+
"bits": 8
|
| 697 |
+
},
|
| 698 |
+
"language_model.model.layers.36.mlp.gate": {
|
| 699 |
+
"group_size": 64,
|
| 700 |
+
"bits": 8
|
| 701 |
+
},
|
| 702 |
+
"language_model.model.layers.36.mlp.shared_expert_gate": {
|
| 703 |
+
"group_size": 64,
|
| 704 |
+
"bits": 8
|
| 705 |
+
},
|
| 706 |
+
"language_model.model.layers.37.mlp.gate": {
|
| 707 |
+
"group_size": 64,
|
| 708 |
+
"bits": 8
|
| 709 |
+
},
|
| 710 |
+
"language_model.model.layers.37.mlp.shared_expert_gate": {
|
| 711 |
+
"group_size": 64,
|
| 712 |
+
"bits": 8
|
| 713 |
+
},
|
| 714 |
+
"language_model.model.layers.38.mlp.gate": {
|
| 715 |
+
"group_size": 64,
|
| 716 |
+
"bits": 8
|
| 717 |
+
},
|
| 718 |
+
"language_model.model.layers.38.mlp.shared_expert_gate": {
|
| 719 |
+
"group_size": 64,
|
| 720 |
+
"bits": 8
|
| 721 |
+
},
|
| 722 |
+
"language_model.model.layers.39.mlp.gate": {
|
| 723 |
+
"group_size": 64,
|
| 724 |
+
"bits": 8
|
| 725 |
+
},
|
| 726 |
+
"language_model.model.layers.39.mlp.shared_expert_gate": {
|
| 727 |
+
"group_size": 64,
|
| 728 |
+
"bits": 8
|
| 729 |
+
}
|
| 730 |
+
},
|
| 731 |
+
"rms_norm_eps": 1e-06,
|
| 732 |
+
"rope_parameters": {
|
| 733 |
+
"mrope_interleaved": true,
|
| 734 |
+
"mrope_section": [
|
| 735 |
+
11,
|
| 736 |
+
11,
|
| 737 |
+
10
|
| 738 |
+
],
|
| 739 |
+
"partial_rotary_factor": 0.25,
|
| 740 |
+
"rope_theta": 10000000,
|
| 741 |
+
"rope_type": "default"
|
| 742 |
+
},
|
| 743 |
+
"router_aux_loss_coef": 0.001,
|
| 744 |
+
"shared_expert_intermediate_size": 512,
|
| 745 |
+
"text_config": {
|
| 746 |
+
"attention_bias": false,
|
| 747 |
+
"attention_dropout": 0.0,
|
| 748 |
+
"attn_output_gate": true,
|
| 749 |
+
"bos_token_id": null,
|
| 750 |
+
"dtype": "bfloat16",
|
| 751 |
+
"eos_token_id": 248044,
|
| 752 |
+
"full_attention_interval": 4,
|
| 753 |
+
"head_dim": 256,
|
| 754 |
+
"hidden_act": "silu",
|
| 755 |
+
"hidden_size": 2048,
|
| 756 |
+
"initializer_range": 0.02,
|
| 757 |
+
"layer_types": [
|
| 758 |
+
"linear_attention",
|
| 759 |
+
"linear_attention",
|
| 760 |
+
"linear_attention",
|
| 761 |
+
"full_attention",
|
| 762 |
+
"linear_attention",
|
| 763 |
+
"linear_attention",
|
| 764 |
+
"linear_attention",
|
| 765 |
+
"full_attention",
|
| 766 |
+
"linear_attention",
|
| 767 |
+
"linear_attention",
|
| 768 |
+
"linear_attention",
|
| 769 |
+
"full_attention",
|
| 770 |
+
"linear_attention",
|
| 771 |
+
"linear_attention",
|
| 772 |
+
"linear_attention",
|
| 773 |
+
"full_attention",
|
| 774 |
+
"linear_attention",
|
| 775 |
+
"linear_attention",
|
| 776 |
+
"linear_attention",
|
| 777 |
+
"full_attention",
|
| 778 |
+
"linear_attention",
|
| 779 |
+
"linear_attention",
|
| 780 |
+
"linear_attention",
|
| 781 |
+
"full_attention",
|
| 782 |
+
"linear_attention",
|
| 783 |
+
"linear_attention",
|
| 784 |
+
"linear_attention",
|
| 785 |
+
"full_attention",
|
| 786 |
+
"linear_attention",
|
| 787 |
+
"linear_attention",
|
| 788 |
+
"linear_attention",
|
| 789 |
+
"full_attention",
|
| 790 |
+
"linear_attention",
|
| 791 |
+
"linear_attention",
|
| 792 |
+
"linear_attention",
|
| 793 |
+
"full_attention",
|
| 794 |
+
"linear_attention",
|
| 795 |
+
"linear_attention",
|
| 796 |
+
"linear_attention",
|
| 797 |
+
"full_attention"
|
| 798 |
+
],
|
| 799 |
+
"linear_conv_kernel_dim": 4,
|
| 800 |
+
"linear_key_head_dim": 128,
|
| 801 |
+
"linear_num_key_heads": 16,
|
| 802 |
+
"linear_num_value_heads": 32,
|
| 803 |
+
"linear_value_head_dim": 128,
|
| 804 |
+
"mamba_ssm_dtype": "float32",
|
| 805 |
+
"max_position_embeddings": 262144,
|
| 806 |
+
"moe_intermediate_size": 512,
|
| 807 |
+
"mtp_num_hidden_layers": 1,
|
| 808 |
+
"mtp_use_dedicated_embeddings": false,
|
| 809 |
+
"num_attention_heads": 16,
|
| 810 |
+
"num_experts": 256,
|
| 811 |
+
"num_experts_per_tok": 8,
|
| 812 |
+
"num_hidden_layers": 40,
|
| 813 |
+
"num_key_value_heads": 2,
|
| 814 |
+
"output_gate_type": "swish",
|
| 815 |
+
"output_router_logits": false,
|
| 816 |
+
"pad_token_id": null,
|
| 817 |
+
"partial_rotary_factor": 0.25,
|
| 818 |
+
"rms_norm_eps": 1e-06,
|
| 819 |
+
"rope_parameters": {
|
| 820 |
+
"mrope_interleaved": true,
|
| 821 |
+
"mrope_section": [
|
| 822 |
+
11,
|
| 823 |
+
11,
|
| 824 |
+
10
|
| 825 |
+
],
|
| 826 |
+
"partial_rotary_factor": 0.25,
|
| 827 |
+
"rope_theta": 10000000,
|
| 828 |
+
"type": "default"
|
| 829 |
+
},
|
| 830 |
+
"router_aux_loss_coef": 0.001,
|
| 831 |
+
"shared_expert_intermediate_size": 512,
|
| 832 |
+
"tie_word_embeddings": false,
|
| 833 |
+
"transformers_version": "5.12.1",
|
| 834 |
+
"use_cache": true,
|
| 835 |
+
"vocab_size": 248320,
|
| 836 |
+
"model_type": "qwen3_5_moe_text"
|
| 837 |
+
},
|
| 838 |
+
"tie_word_embeddings": false,
|
| 839 |
+
"transformers_version": "5.12.1",
|
| 840 |
+
"use_cache": true,
|
| 841 |
+
"vocab_size": 248320
|
| 842 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 248044,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
248046,
|
| 6 |
+
248044
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 248044,
|
| 9 |
+
"bad_words_ids": [
|
| 10 |
+
[
|
| 11 |
+
248068
|
| 12 |
+
],
|
| 13 |
+
[
|
| 14 |
+
248069
|
| 15 |
+
],
|
| 16 |
+
[
|
| 17 |
+
90700,
|
| 18 |
+
8340
|
| 19 |
+
],
|
| 20 |
+
[
|
| 21 |
+
81266,
|
| 22 |
+
8340
|
| 23 |
+
],
|
| 24 |
+
[
|
| 25 |
+
25725,
|
| 26 |
+
25
|
| 27 |
+
],
|
| 28 |
+
[
|
| 29 |
+
24342,
|
| 30 |
+
286,
|
| 31 |
+
25
|
| 32 |
+
],
|
| 33 |
+
[
|
| 34 |
+
18267,
|
| 35 |
+
314,
|
| 36 |
+
34022
|
| 37 |
+
],
|
| 38 |
+
[
|
| 39 |
+
8553,
|
| 40 |
+
314,
|
| 41 |
+
3272
|
| 42 |
+
],
|
| 43 |
+
[
|
| 44 |
+
8553,
|
| 45 |
+
8404,
|
| 46 |
+
7324,
|
| 47 |
+
2370
|
| 48 |
+
],
|
| 49 |
+
[
|
| 50 |
+
18770,
|
| 51 |
+
4087,
|
| 52 |
+
25
|
| 53 |
+
],
|
| 54 |
+
[
|
| 55 |
+
760,
|
| 56 |
+
1156,
|
| 57 |
+
579,
|
| 58 |
+
1622
|
| 59 |
+
],
|
| 60 |
+
[
|
| 61 |
+
760,
|
| 62 |
+
1156,
|
| 63 |
+
1622
|
| 64 |
+
],
|
| 65 |
+
[
|
| 66 |
+
11553,
|
| 67 |
+
11258,
|
| 68 |
+
11782,
|
| 69 |
+
314,
|
| 70 |
+
31626
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
40,
|
| 74 |
+
668,
|
| 75 |
+
4370
|
| 76 |
+
],
|
| 77 |
+
[
|
| 78 |
+
7676,
|
| 79 |
+
8594,
|
| 80 |
+
290,
|
| 81 |
+
29415,
|
| 82 |
+
8503,
|
| 83 |
+
29
|
| 84 |
+
],
|
| 85 |
+
[
|
| 86 |
+
510,
|
| 87 |
+
91046,
|
| 88 |
+
29415,
|
| 89 |
+
8503,
|
| 90 |
+
29
|
| 91 |
+
],
|
| 92 |
+
[
|
| 93 |
+
760,
|
| 94 |
+
1156,
|
| 95 |
+
6587
|
| 96 |
+
],
|
| 97 |
+
[
|
| 98 |
+
760,
|
| 99 |
+
1156,
|
| 100 |
+
682
|
| 101 |
+
],
|
| 102 |
+
[
|
| 103 |
+
9764,
|
| 104 |
+
579
|
| 105 |
+
],
|
| 106 |
+
[
|
| 107 |
+
13784,
|
| 108 |
+
11
|
| 109 |
+
]
|
| 110 |
+
],
|
| 111 |
+
"no_repeat_ngram_size": 12,
|
| 112 |
+
"repetition_penalty": 1.05,
|
| 113 |
+
"temperature": 0.6,
|
| 114 |
+
"top_k": 20,
|
| 115 |
+
"top_p": 0.95,
|
| 116 |
+
"transformers_version": "5.12.1"
|
| 117 |
+
}
|
model-00001-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05f902e7894827217efeac5a6fe4ce0d759127fbff21de803e26adea0ebbe372
|
| 3 |
+
size 5332146247
|
model-00002-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce5e780c8d8d576e4db98177e2aa8fc1363bcb1b7464db73c14b1438e6192109
|
| 3 |
+
size 5358684441
|
model-00003-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9dec8e5c056ff81db9b2ef95f64ca5c2f997642dfd470bbea69f2b09e44e5250
|
| 3 |
+
size 5365574222
|
model-00004-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eab917bb4f890ff6f8f43b2ca14a8ff1c8c722576811abf4340196176ea4706f
|
| 3 |
+
size 5358684656
|
model-00005-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01c33f4c74445f3315ab147ba569f9d4627cb249a13d4aa3d00ceef4a2a6946c
|
| 3 |
+
size 5365574220
|
model-00006-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b86c717337b4f2020276d6195dca111692fa59732df18efabff04c237eb8ec96
|
| 3 |
+
size 5358684638
|
model-00007-of-00007.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32da9c79d626654481dc8f6d3c104dce4822d356fa0e3e37b5a811e6960570ec
|
| 3 |
+
size 4688874137
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
+
size 19989325
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"local_files_only": false,
|
| 14 |
+
"max_length": 512,
|
| 15 |
+
"model_max_length": 131072,
|
| 16 |
+
"model_specific_special_tokens": {
|
| 17 |
+
"audio_bos_token": "<|audio_start|>",
|
| 18 |
+
"audio_eos_token": "<|audio_end|>",
|
| 19 |
+
"audio_token": "<|audio_pad|>",
|
| 20 |
+
"image_token": "<|image_pad|>",
|
| 21 |
+
"video_token": "<|video_pad|>",
|
| 22 |
+
"vision_bos_token": "<|vision_start|>",
|
| 23 |
+
"vision_eos_token": "<|vision_end|>"
|
| 24 |
+
},
|
| 25 |
+
"pad_token": "<|endoftext|>",
|
| 26 |
+
"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+",
|
| 27 |
+
"split_special_tokens": false,
|
| 28 |
+
"stride": 0,
|
| 29 |
+
"tokenizer_class": "TokenizersBackend",
|
| 30 |
+
"tool_parser_type": "qwen3_coder",
|
| 31 |
+
"truncation_side": "right",
|
| 32 |
+
"truncation_strategy": "longest_first",
|
| 33 |
+
"unk_token": null,
|
| 34 |
+
"video_token": "<|video_pad|>",
|
| 35 |
+
"vision_bos_token": "<|vision_start|>",
|
| 36 |
+
"vision_eos_token": "<|vision_end|>"
|
| 37 |
+
}
|