初始化项目,由ModelHub XC社区提供模型

Model: AmanPriyanshu/gpt-oss-13.7b-specialized-math-pruned-moe-only-20-experts
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-05-02 14:15:57 +08:00
commit 07cdfa23fd
29 changed files with 2104 additions and 0 deletions

36
.gitattributes vendored Normal file
View File

@@ -0,0 +1,36 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.ftz filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.h5 filter=lfs diff=lfs merge=lfs -text
*.joblib filter=lfs diff=lfs merge=lfs -text
*.lfs.* filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.ot filter=lfs diff=lfs merge=lfs -text
*.parquet filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.tar.* filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tflite filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
tokenizer.json filter=lfs diff=lfs merge=lfs -text

383
README.md Normal file
View File

@@ -0,0 +1,383 @@
---
license: apache-2.0
datasets:
- AmanPriyanshu/GPT-OSS-20B-MoE-expert-activations
language:
- en
pipeline_tag: text-generation
tags:
- mixture-of-experts
- moe
- expert-pruning
- gpt-oss
- openai
- reasoning
- math
- specialized
- efficient
- transformer
- causal-lm
- text-generation
- pytorch
- pruned-model
- domain-specific
---
# Math GPT-OSS Model (20 Experts)
**Project**: https://amanpriyanshu.github.io/GPT-OSS-MoE-ExpertFingerprinting/
<div align="center">
### 👥 Follow the Authors
**Aman Priyanshu**
[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/aman-priyanshu/)
[![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://x.com/AmanPriyanshu6)
[![Website](https://img.shields.io/badge/Website-FF7139?style=for-the-badge&logo=firefox&logoColor=white)](https://amanpriyanshu.github.io/)
**Supriti Vijay**
[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/supriti-vijay/)
[![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://x.com/SupritiVijay)
[![Website](https://img.shields.io/badge/Website-FF7139?style=for-the-badge&logo=firefox&logoColor=white)](https://supritivijay.github.io/)
</div>
## Introduction
This is a pruned variant of OpenAI's GPT-OSS-20B model, reduced to 20 experts per layer based on activation patterns from the [AmanPriyanshu/GPT-OSS-20B MoE Expert Activations dataset](https://huggingface.co/datasets/AmanPriyanshu/GPT-OSS-20B-MoE-expert-activations). We analyzed router decisions across evaluation benchmarks to identify and retain experts most relevant for math tasks.
**⚠️ Experimental Model**: This is an experimental pruned model that may not work well - check the [examples below](#model-examples) to see if the outputs meet your needs before use.
This pruning approach reduces the model size while attempting to preserve performance on the target domain.
## Model Architecture & Statistics
| Metric | Value |
|--------|-------|
| **Base Model** | openai/gpt-oss-20b |
| **Architecture** | Mixture-of-Experts Transformer |
| **Total Parameters** | ~13.7B (pruned from 21B) |
| **Original Experts per Layer** | 32 |
| **Pruned Experts per Layer** | 20 |
| **Layers** | 24 |
| **Top-k Routing** | 4 |
| **Context Length** | 128K tokens |
| **Attention Heads** | 64 (Query), 8 (Key-Value) |
| **Residual Dimension** | 2880 |
| **Attention Pattern** | Alternating dense & sliding window (128 tokens) |
| **Positional Encoding** | RoPE (Rotary Position Embedding) |
| **Normalization** | RMSNorm |
| **Precision** | BF16 |
| **License** | Apache 2.0 |
| **Specialization** | Math |
## Pruning Methodology
### What is Expert Pruning?
Mixture-of-Experts models contain multiple specialized sub-networks (experts) per layer. During inference, only a subset of experts are activated for each token. Expert pruning involves:
1. **Analyzing Usage Patterns**: Tracking which experts activate most frequently for specific tasks
2. **Removing Underutilized Experts**: Discarding experts with low activation rates for the target domain
3. **Preserving Router Functionality**: Maintaining the routing mechanism with fewer available experts
### Our Approach
- **Data-Driven Selection**: Used activation patterns from math evaluation tasks
- **Systematic Reduction**: Reduced from 32 to 20 experts per layer
- **No Retraining**: Direct removal without additional training steps
## Performance & Applications
### Pruning Benefits
- **Smaller Memory Footprint**: 62.5% of original expert parameters
- **Reduced Computational Load**: Fewer routing decisions during inference
- **Focused Capabilities**: Retains experts relevant to math tasks
### Use Cases
- **Speculative Decoding**: Draft model for full GPT-OSS-20B
- **Resource-Constrained Deployment**: Edge devices, mobile applications
- **Research**: Study expert specialization in MoE models
- **Fine-tuning**: Smaller base model for domain adaptation
*Note: Performance may vary depending on how well the pruned experts match your specific use case.*
## Motivation & Expert Selection
This mathematics-focused model utilizes experts that exhibited strong performance on mathematical reasoning tasks from MMLU mathematics subjects and quantitative sections. These experts excel at mathematical computation, proof strategies, and logical reasoning.
The expert selection process utilized our comprehensive analysis of router activation patterns across multiple evaluation benchmarks:
- **GPQA**: Graduate-level questions in physics, chemistry, biology (Diamond & Expert subsets)
- **MMLU/MMLU-Pro**: Comprehensive knowledge across 57+ subjects including science, medicine, law
- **SORRY-Bench**: Safety evaluation across harmful content categories
- **Tulu3**: Persona-driven instruction following with verifiable constraints
- **Polyglot-or-Not**: Multilingual factual completion tasks
By identifying experts that consistently activated for math tasks, we created this specialized model that maintains domain expertise while significantly reducing computational requirements from 32 to 20 experts per layer.
## Dataset & Analysis Foundation
This model is based on analysis from the **GPT-OSS-20B MoE Expert Activations dataset** available at:
🔗 **https://huggingface.co/datasets/AmanPriyanshu/GPT-OSS-20B-MoE-expert-activations**
The dataset contains router activation patterns from OpenAI's GPT-OSS-20B model across diverse evaluation benchmarks, enabling the creation of these domain-optimized models through systematic expert pruning.
### Pruning Methodology
Our approach involves:
1. **Activation Analysis**: Comprehensive evaluation of expert usage patterns across domain-specific tasks
2. **Expert Ranking**: Identification of the most frequently activated experts for target domains
3. **Systematic Pruning**: Reduction from 32 to 20 experts while preserving router functionality
4. **Quality Validation**: Testing to ensure maintained performance on target tasks
*This is a direct pruning approach - no additional training was performed. The model inherits all capabilities from the original GPT-OSS-20B with focused expert selection.*
## Usage
### CPU Inference
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load the specialized model on CPU
model = AutoModelForCausalLM.from_pretrained(
"AmanPriyanshu/gpt-oss-13.7b-specialized-math-pruned-moe-only-20-experts",
torch_dtype=torch.bfloat16,
device_map="cpu",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("AmanPriyanshu/gpt-oss-13.7b-specialized-math-pruned-moe-only-20-experts")
# Generate with the model
messages = [
{"role": "user", "content": "Solve this equation: 2x + 5 = 17. Show your work step by step."}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
return_dict=True,
reasoning_effort="medium"
)
# Ensure inputs are on the same device as model
inputs = {k: v.to(model.device) for k, v in inputs.items()}
outputs = model.generate(
**inputs,
max_new_tokens=512,
do_sample=True,
temperature=0.1,
top_p=0.9,
pad_token_id=tokenizer.eos_token_id,
eos_token_id=tokenizer.eos_token_id
)
# Decode only the generated part
input_length = inputs['input_ids'].shape[1]
response_tokens = outputs[0][input_length:]
response = tokenizer.decode(response_tokens, skip_special_tokens=True)
print(response)
```
### Apple Silicon (MPS) Inference
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Check MPS availability and load model
device = "mps" if torch.backends.mps.is_available() else "cpu"
model = AutoModelForCausalLM.from_pretrained(
"AmanPriyanshu/gpt-oss-13.7b-specialized-math-pruned-moe-only-20-experts",
torch_dtype=torch.float16, # Better MPS compatibility
device_map=device,
trust_remote_code=True,
low_cpu_mem_usage=True
)
tokenizer = AutoTokenizer.from_pretrained("AmanPriyanshu/gpt-oss-13.7b-specialized-math-pruned-moe-only-20-experts")
# Generate with the model
messages = [
{"role": "user", "content": "Solve this equation: 2x + 5 = 17. Show your work step by step."}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
return_dict=True,
reasoning_effort="medium"
)
# Move inputs to model device
inputs = {k: v.to(model.device) if isinstance(v, torch.Tensor) else v for k, v in inputs.items()}
# Use torch.no_grad for MPS stability
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=512,
do_sample=True,
temperature=0.1,
top_p=0.9,
pad_token_id=tokenizer.eos_token_id,
eos_token_id=tokenizer.eos_token_id,
use_cache=True
)
# Decode only the generated part
input_length = inputs['input_ids'].shape[1]
response_tokens = outputs[0][input_length:]
response = tokenizer.decode(response_tokens, skip_special_tokens=True)
print(response)
```
### GPU Inference
For CUDA GPU inference, the models work with minimal modifications from the CPU example above. Simply change:
```python
device_map="auto" # Will automatically use GPU if available
torch_dtype=torch.bfloat16 # or torch.float16
```
## Model Examples
The following examples demonstrate the model's performance on math tasks:
### Example 1
**Question:** Solve this equation: 2x + 5 = 17. Show your work step by step.
**Response:**
```
<|channel|>analysis<|message|>We need to solve 2x+5=17. Subtract 5: 2x=12. Divide 2: x=6. Provide step-by-step.<|end|><|start|>assistant<|channel|>final<|message|>**Step 1 Write the equation**
\[
2x + 5 = 17
\]
**Step 2 Isolate the term with \(x\)**
Subtract 5 from both sides so that the constant term disappears:
\[
2x + 5 - 5 = 17 - 5
\]
\[
2x = 12
\]
**Step 3 Solve for \(x\)**
Divide both sides by 2 (the coefficient of \(x\)):
\[
\frac{2x}{2} = \frac{12}{2}
\]
\[
x = 6
\]
---
**Answer:** \(x = 6\)
(You can check by plugging back: \(2(6)+5 = 12+5 = 17\), which matches the righthand side.)<|return|>
```
---
### Example 2
**Question:** What is the Pythagorean theorem and how is it used?
**Response:**
```
<|channel|>analysis<|message|>Need explain theorem, formula, usage.<|end|><|start|>assistant<|channel|>final<|message|>**The Pythagorean Theorem**
> In a rightangled triangle, the square of the length of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the lengths of the other two sides.
Mathematically:
\[
a^{2} + b^{2} = c^{2}
\]
where
* \(a\) and \(b\) are the legs (the two sides that form the right angle),
* \(c\) is the hypotenuse.
---
### How It Is Used
| Application | What you do | Example |
|-------------|-------------|---------|
| **Finding a missing side** | Rearsolve the equation for the unknown side | In a triangle with legs 3m and 4m, \(c = \sqrt{3^{2}+4^{2}} = 5\)m. |
| **Checking if a triangle is rightangled** | Verify if \(a^{2}+b^{2}=c^{2}\) | For sides 6, 8, 10: \(6^{2}+8^{2}=36+64=100=10^{2}\) → right triangle. |
| **Design & construction** | Ensure structural elements meet rightangle requirements (e.g., building corners, ladders). | A carpenter uses the theorem to calculate the length of a diagonal brace. |
| **Navigation & surveying** | Compute distances when only horizontal and vertical components are known. | A hiker measures 200m east and 150m north; the straightaway distance is \(\sqrt{200^{2}+150^{2}}\). |
| **Computer graphics & animation** | Determine pixel distances, collision detection, or rendering of rightangled shapes. | A program calculates the distance between two points in a 2D grid. |
| **Physics & engineering** | Resolve forces, velocities, or displacements into perpendicular components. | A projectiles horizontal and vertical speeds combine to give the resultant speed. |
| **Mathematics & education** | Introduce geometry, algebra, and proof techniques. | Students prove that the area of a square built on each side of a right triangle satisfies the theorem. |
---
### Quick “Rule of Thumb”
- **If you know two sides** → compute the third with \(c = \sqrt{a^{
```
---
### Example 3
**Question:** Calculate the area of a circle with radius 7 meters.
**Response:**
```
<|channel|>analysis<|message|>Need area πr^2 = π*49 ≈ 153.938.<|end|><|start|>assistant<|channel|>final<|message|>The area \(A\) of a circle is given by
\[
A = \pi r^{2}
\]
where \(r\) is the radius.
For \(r = 7\)m:
\[
A = \pi (7\ \text{m})^{2}
= \pi \times 49\ \text{m}^{2}
\approx 3.14159 \times 49\ \text{m}^{2}
\approx 153.938\ \text{m}^{2}
\]
So the circle has an area of about **\(154\ \text{m}^{2}\)** (rounded to the nearest square meter).<|return|>
```
---
## Citation
If you use this model in your research, please cite:
```bibtex
@misc{priyanshu2025gptoss,
title={{GPT-OSS MoE Expert Fingerprinting: Analyzing Expert Activation Patterns in Mixture of Experts Models}},
author={Priyanshu, Aman and Vijay, Supriti},
year={2025},
howpublished={\url{https://amanpriyanshu.github.io/GPT-OSS-MoE-ExpertFingerprinting/}},
note={Interactive analysis tool for expert activation patterns in MoE architectures}
}
```
## References & Resources
- **Original Model**: [OpenAI GPT-OSS Model Card](https://openai.com/index/introducing-gpt-oss/)
- **Model Hub**: [GPT-OSS-20B on Hugging Face](https://huggingface.co/openai/gpt-oss-20b)
- **Expert Analysis Dataset**: [GPT-OSS-20B MoE Expert Activations](https://huggingface.co/datasets/AmanPriyanshu/GPT-OSS-20B-MoE-expert-activations)
- **Project Page**: [GPT-OSS MoE Expert Fingerprinting](https://amanpriyanshu.github.io/GPT-OSS-MoE-ExpertFingerprinting/)
- **GitHub Repository**: [OpenAI GPT-OSS](https://github.com/openai/gpt-oss)

331
chat_template.jinja Normal file
View File

@@ -0,0 +1,331 @@
{#-
In addition to the normal inputs of `messages` and `tools`, this template also accepts the
following kwargs:
- "builtin_tools": A list, can contain "browser" and/or "python".
- "model_identity": A string that optionally describes the model identity.
- "reasoning_effort": A string that describes the reasoning effort, defaults to "medium".
#}
{#- Tool Definition Rendering ============================================== #}
{%- macro render_typescript_type(param_spec, required_params, is_nullable=false) -%}
{%- if param_spec.type == "array" -%}
{%- if param_spec['items'] -%}
{%- if param_spec['items']['type'] == "string" -%}
{{- "string[]" }}
{%- elif param_spec['items']['type'] == "number" -%}
{{- "number[]" }}
{%- elif param_spec['items']['type'] == "integer" -%}
{{- "number[]" }}
{%- elif param_spec['items']['type'] == "boolean" -%}
{{- "boolean[]" }}
{%- else -%}
{%- set inner_type = render_typescript_type(param_spec['items'], required_params) -%}
{%- if inner_type == "object | object" or inner_type|length > 50 -%}
{{- "any[]" }}
{%- else -%}
{{- inner_type + "[]" }}
{%- endif -%}
{%- endif -%}
{%- if param_spec.nullable -%}
{{- " | null" }}
{%- endif -%}
{%- else -%}
{{- "any[]" }}
{%- if param_spec.nullable -%}
{{- " | null" }}
{%- endif -%}
{%- endif -%}
{%- elif param_spec.type is defined and param_spec.type is iterable and param_spec.type is not string and param_spec.type is not mapping and param_spec.type[0] is defined -%}
{#- Handle array of types like ["object", "object"] from Union[dict, list] #}
{%- if param_spec.type | length > 1 -%}
{{- param_spec.type | join(" | ") }}
{%- else -%}
{{- param_spec.type[0] }}
{%- endif -%}
{%- elif param_spec.oneOf -%}
{#- Handle oneOf schemas - check for complex unions and fallback to any #}
{%- set has_object_variants = false -%}
{%- for variant in param_spec.oneOf -%}
{%- if variant.type == "object" -%}
{%- set has_object_variants = true -%}
{%- endif -%}
{%- endfor -%}
{%- if has_object_variants and param_spec.oneOf|length > 1 -%}
{{- "any" }}
{%- else -%}
{%- for variant in param_spec.oneOf -%}
{{- render_typescript_type(variant, required_params) -}}
{%- if variant.description %}
{{- "// " + variant.description }}
{%- endif -%}
{%- if variant.default is defined %}
{{ "// default: " + variant.default|tojson }}
{%- endif -%}
{%- if not loop.last %}
{{- " | " }}
{% endif -%}
{%- endfor -%}
{%- endif -%}
{%- elif param_spec.type == "string" -%}
{%- if param_spec.enum -%}
{{- '"' + param_spec.enum|join('" | "') + '"' -}}
{%- else -%}
{{- "string" }}
{%- if param_spec.nullable %}
{{- " | null" }}
{%- endif -%}
{%- endif -%}
{%- elif param_spec.type == "number" -%}
{{- "number" }}
{%- elif param_spec.type == "integer" -%}
{{- "number" }}
{%- elif param_spec.type == "boolean" -%}
{{- "boolean" }}
{%- elif param_spec.type == "object" -%}
{%- if param_spec.properties -%}
{{- "{\n" }}
{%- for prop_name, prop_spec in param_spec.properties.items() -%}
{{- prop_name -}}
{%- if prop_name not in (param_spec.required or []) -%}
{{- "?" }}
{%- endif -%}
{{- ": " }}
{{ render_typescript_type(prop_spec, param_spec.required or []) }}
{%- if not loop.last -%}
{{-", " }}
{%- endif -%}
{%- endfor -%}
{{- "}" }}
{%- else -%}
{{- "object" }}
{%- endif -%}
{%- else -%}
{{- "any" }}
{%- endif -%}
{%- endmacro -%}
{%- macro render_tool_namespace(namespace_name, tools) -%}
{{- "## " + namespace_name + "\n\n" }}
{{- "namespace " + namespace_name + " {\n\n" }}
{%- for tool in tools %}
{%- set tool = tool.function %}
{{- "// " + tool.description + "\n" }}
{{- "type "+ tool.name + " = " }}
{%- if tool.parameters and tool.parameters.properties %}
{{- "(_: {\n" }}
{%- for param_name, param_spec in tool.parameters.properties.items() %}
{%- if param_spec.description %}
{{- "// " + param_spec.description + "\n" }}
{%- endif %}
{{- param_name }}
{%- if param_name not in (tool.parameters.required or []) -%}
{{- "?" }}
{%- endif -%}
{{- ": " }}
{{- render_typescript_type(param_spec, tool.parameters.required or []) }}
{%- if param_spec.default is defined -%}
{%- if param_spec.enum %}
{{- ", // default: " + param_spec.default }}
{%- elif param_spec.oneOf %}
{{- "// default: " + param_spec.default }}
{%- else %}
{{- ", // default: " + param_spec.default|tojson }}
{%- endif -%}
{%- endif -%}
{%- if not loop.last %}
{{- ",\n" }}
{%- else %}
{{- ",\n" }}
{%- endif -%}
{%- endfor %}
{{- "}) => any;\n\n" }}
{%- else -%}
{{- "() => any;\n\n" }}
{%- endif -%}
{%- endfor %}
{{- "} // namespace " + namespace_name }}
{%- endmacro -%}
{%- macro render_builtin_tools(browser_tool, python_tool) -%}
{%- if browser_tool %}
{{- "## browser\n\n" }}
{{- "// Tool for browsing.\n" }}
{{- "// The `cursor` appears in brackets before each browsing display: `[{cursor}]`.\n" }}
{{- "// Cite information from the tool using the following format:\n" }}
{{- "// `【{cursor}†L{line_start}(-L{line_end})?】`, for example: `【6†L9-L11】` or `【8†L3】`.\n" }}
{{- "// Do not quote more than 10 words directly from the tool output.\n" }}
{{- "// sources=web (default: web)\n" }}
{{- "namespace browser {\n\n" }}
{{- "// Searches for information related to `query` and displays `topn` results.\n" }}
{{- "type search = (_: {\n" }}
{{- "query: string,\n" }}
{{- "topn?: number, // default: 10\n" }}
{{- "source?: string,\n" }}
{{- "}) => any;\n\n" }}
{{- "// Opens the link `id` from the page indicated by `cursor` starting at line number `loc`, showing `num_lines` lines.\n" }}
{{- "// Valid link ids are displayed with the formatting: `【{id}†.*】`.\n" }}
{{- "// If `cursor` is not provided, the most recent page is implied.\n" }}
{{- "// If `id` is a string, it is treated as a fully qualified URL associated with `source`.\n" }}
{{- "// If `loc` is not provided, the viewport will be positioned at the beginning of the document or centered on the most relevant passage, if available.\n" }}
{{- "// Use this function without `id` to scroll to a new location of an opened page.\n" }}
{{- "type open = (_: {\n" }}
{{- "id?: number | string, // default: -1\n" }}
{{- "cursor?: number, // default: -1\n" }}
{{- "loc?: number, // default: -1\n" }}
{{- "num_lines?: number, // default: -1\n" }}
{{- "view_source?: boolean, // default: false\n" }}
{{- "source?: string,\n" }}
{{- "}) => any;\n\n" }}
{{- "// Finds exact matches of `pattern` in the current page, or the page given by `cursor`.\n" }}
{{- "type find = (_: {\n" }}
{{- "pattern: string,\n" }}
{{- "cursor?: number, // default: -1\n" }}
{{- "}) => any;\n\n" }}
{{- "} // namespace browser\n\n" }}
{%- endif -%}
{%- if python_tool %}
{{- "## python\n\n" }}
{{- "Use this tool to execute Python code in your chain of thought. The code will not be shown to the user. This tool should be used for internal reasoning, but not for code that is intended to be visible to the user (e.g. when creating plots, tables, or files).\n\n" }}
{{- "When you send a message containing Python code to python, it will be executed in a stateful Jupyter notebook environment. python will respond with the output of the execution or time out after 120.0 seconds. The drive at '/mnt/data' can be used to save and persist user files. Internet access for this session is UNKNOWN. Depends on the cluster.\n\n" }}
{%- endif -%}
{%- endmacro -%}
{#- System Message Construction ============================================ #}
{%- macro build_system_message() -%}
{%- if model_identity is not defined %}
{%- set model_identity = "You are ChatGPT, a large language model trained by OpenAI." %}
{%- endif %}
{{- model_identity + "\n" }}
{{- "Knowledge cutoff: 2024-06\n" }}
{{- "Current date: " + strftime_now("%Y-%m-%d") + "\n\n" }}
{%- if reasoning_effort is not defined %}
{%- set reasoning_effort = "medium" %}
{%- endif %}
{{- "Reasoning: " + reasoning_effort + "\n\n" }}
{%- if builtin_tools %}
{{- "# Tools\n\n" }}
{%- set available_builtin_tools = namespace(browser=false, python=false) %}
{%- for tool in builtin_tools %}
{%- if tool == "browser" %}
{%- set available_builtin_tools.browser = true %}
{%- elif tool == "python" %}
{%- set available_builtin_tools.python = true %}
{%- endif %}
{%- endfor %}
{{- render_builtin_tools(available_builtin_tools.browser, available_builtin_tools.python) }}
{%- endif -%}
{{- "# Valid channels: analysis, commentary, final. Channel must be included for every message." }}
{%- if tools -%}
{{- "\nCalls to these tools must go to the commentary channel: 'functions'." }}
{%- endif -%}
{%- endmacro -%}
{#- Main Template Logic ================================================= #}
{#- Set defaults #}
{#- Render system message #}
{{- "<|start|>system<|message|>" }}
{{- build_system_message() }}
{{- "<|end|>" }}
{#- Extract developer message #}
{%- if messages[0].role == "developer" or messages[0].role == "system" %}
{%- set developer_message = messages[0].content %}
{%- set loop_messages = messages[1:] %}
{%- else %}
{%- set developer_message = "" %}
{%- set loop_messages = messages %}
{%- endif %}
{#- Render developer message #}
{%- if developer_message or tools %}
{{- "<|start|>developer<|message|>" }}
{%- if developer_message %}
{{- "# Instructions\n\n" }}
{{- developer_message }}
{{- "\n\n" }}
{%- endif %}
{%- if tools -%}
{{- "# Tools\n\n" }}
{{- render_tool_namespace("functions", tools) }}
{%- endif -%}
{{- "<|end|>" }}
{%- endif %}
{#- Render messages #}
{%- set last_tool_call = namespace(name=none) %}
{%- for message in loop_messages -%}
{#- At this point only assistant/user/tool messages should remain #}
{%- if message.role == 'assistant' -%}
{#- Checks to ensure the messages are being passed in the format we expect #}
{%- if "content" in message %}
{%- if "<|channel|>analysis<|message|>" in message.content or "<|channel|>final<|message|>" in message.content %}
{{- raise_exception("You have passed a message containing <|channel|> tags in the content field. Instead of doing this, you should pass analysis messages (the string between '<|message|>' and '<|end|>') in the 'thinking' field, and final messages (the string between '<|message|>' and '<|end|>') in the 'content' field.") }}
{%- endif %}
{%- endif %}
{%- if "thinking" in message %}
{%- if "<|channel|>analysis<|message|>" in message.thinking or "<|channel|>final<|message|>" in message.thinking %}
{{- raise_exception("You have passed a message containing <|channel|> tags in the thinking field. Instead of doing this, you should pass analysis messages (the string between '<|message|>' and '<|end|>') in the 'thinking' field, and final messages (the string between '<|message|>' and '<|end|>') in the 'content' field.") }}
{%- endif %}
{%- endif %}
{%- if "tool_calls" in message %}
{#- We need very careful handling here - we want to drop the tool call analysis message if the model #}
{#- has output a later <|final|> message, but otherwise we want to retain it. This is the only case #}
{#- when we render CoT/analysis messages in inference. #}
{%- set future_final_message = namespace(found=false) %}
{%- for future_message in loop_messages[loop.index:] %}
{%- if future_message.role == 'assistant' and "tool_calls" not in future_message %}
{%- set future_final_message.found = true %}
{%- endif %}
{%- endfor %}
{#- We assume max 1 tool call per message, and so we infer the tool call name #}
{#- in "tool" messages from the most recent assistant tool call name #}
{%- set tool_call = message.tool_calls[0] %}
{%- if tool_call.function %}
{%- set tool_call = tool_call.function %}
{%- endif %}
{%- if message.content and message.thinking %}
{{- raise_exception("Cannot pass both content and thinking in an assistant message with tool calls! Put the analysis message in one or the other, but not both.") }}
{%- elif message.content and not future_final_message.found %}
{{- "<|start|>assistant<|channel|>analysis<|message|>" + message.content + "<|end|>" }}
{%- elif message.thinking and not future_final_message.found %}
{{- "<|start|>assistant<|channel|>analysis<|message|>" + message.thinking + "<|end|>" }}
{%- endif %}
{{- "<|start|>assistant to=" }}
{{- "functions." + tool_call.name + "<|channel|>commentary " }}
{{- (tool_call.content_type if tool_call.content_type is defined else "json") + "<|message|>" }}
{{- tool_call.arguments|tojson }}
{{- "<|call|>" }}
{%- set last_tool_call.name = tool_call.name %}
{%- elif loop.last and not add_generation_prompt %}
{#- Only render the CoT if the final turn is an assistant turn and add_generation_prompt is false #}
{#- This is a situation that should only occur in training, never in inference. #}
{%- if "thinking" in message %}
{{- "<|start|>assistant<|channel|>analysis<|message|>" + message.thinking + "<|end|>" }}
{%- endif %}
{#- <|return|> indicates the end of generation, but <|end|> does not #}
{#- <|return|> should never be an input to the model, but we include it as the final token #}
{#- when training, so the model learns to emit it. #}
{{- "<|start|>assistant<|channel|>final<|message|>" + message.content + "<|return|>" }}
{%- else %}
{#- CoT is dropped during all previous turns, so we never render it for inference #}
{{- "<|start|>assistant<|channel|>final<|message|>" + message.content + "<|end|>" }}
{%- set last_tool_call.name = none %}
{%- endif %}
{%- elif message.role == 'tool' -%}
{%- if last_tool_call.name is none %}
{{- raise_exception("Message has tool role, but there was no previous assistant message with a tool call!") }}
{%- endif %}
{{- "<|start|>functions." + last_tool_call.name }}
{{- " to=assistant<|channel|>commentary<|message|>" + message.content|tojson + "<|end|>" }}
{%- elif message.role == 'user' -%}
{{- "<|start|>user<|message|>" + message.content + "<|end|>" }}
{%- endif -%}
{%- endfor -%}
{#- Generation prompt #}
{%- if add_generation_prompt -%}
<|start|>assistant
{%- endif -%}

9
citation.json Normal file
View File

@@ -0,0 +1,9 @@
{
"title": "GPT-OSS MoE Expert Fingerprinting: Analyzing Expert Activation Patterns in Mixture of Experts Models",
"authors": [
"Aman Priyanshu",
"Supriti Vijay"
],
"year": 2025,
"url": "https://amanpriyanshu.github.io/GPT-OSS-MoE-ExpertFingerprinting/"
}

123
config.json Normal file
View File

@@ -0,0 +1,123 @@
{
"vocab_size": 201088,
"hidden_size": 2880,
"intermediate_size": 2880,
"num_hidden_layers": 24,
"num_attention_heads": 64,
"num_local_experts": 20,
"sliding_window": 128,
"num_experts_per_tok": 4,
"num_key_value_heads": 8,
"hidden_act": "silu",
"initializer_range": 0.02,
"rms_norm_eps": 1e-05,
"rope_theta": 150000,
"rope_scaling": {
"beta_fast": 32.0,
"beta_slow": 1.0,
"factor": 32.0,
"original_max_position_embeddings": 4096,
"rope_type": "yarn",
"truncate": false
},
"attention_dropout": 0.0,
"head_dim": 64,
"layer_types": [
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"full_attention"
],
"attention_bias": true,
"max_position_embeddings": 131072,
"router_aux_loss_coef": 0.9,
"output_router_logits": false,
"use_cache": true,
"return_dict": true,
"output_hidden_states": false,
"torchscript": false,
"torch_dtype": null,
"pruned_heads": {},
"tie_word_embeddings": false,
"chunk_size_feed_forward": 0,
"is_encoder_decoder": false,
"is_decoder": false,
"cross_attention_hidden_size": null,
"add_cross_attention": false,
"tie_encoder_decoder": false,
"architectures": [
"GptOssForCausalLM"
],
"finetuning_task": null,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"task_specific_params": null,
"problem_type": null,
"tokenizer_class": null,
"prefix": null,
"bos_token_id": null,
"pad_token_id": 199999,
"eos_token_id": 200002,
"sep_token_id": null,
"decoder_start_token_id": null,
"max_length": 20,
"min_length": 0,
"do_sample": false,
"early_stopping": false,
"num_beams": 1,
"num_beam_groups": 1,
"diversity_penalty": 0.0,
"temperature": 1.0,
"top_k": 50,
"top_p": 1.0,
"typical_p": 1.0,
"repetition_penalty": 1.0,
"length_penalty": 1.0,
"no_repeat_ngram_size": 0,
"encoder_no_repeat_ngram_size": 0,
"bad_words_ids": null,
"num_return_sequences": 1,
"output_scores": false,
"return_dict_in_generate": false,
"forced_bos_token_id": null,
"forced_eos_token_id": null,
"remove_invalid_values": false,
"exponential_decay_length_penalty": null,
"suppress_tokens": null,
"begin_suppress_tokens": null,
"_name_or_path": "openai/gpt-oss-20b",
"transformers_version": "4.55.0",
"experts_per_token": 4,
"initial_context_length": 4096,
"model_type": "gpt_oss",
"swiglu_limit": 7.0,
"tf_legacy_loss": false,
"use_bfloat16": false,
"output_attentions": false
}

530
expert_mapping.json Normal file
View File

@@ -0,0 +1,530 @@
{
"0": {
"31": 0,
"9": 1,
"3": 2,
"11": 3,
"17": 4,
"19": 5,
"22": 6,
"16": 7,
"5": 8,
"1": 9,
"30": 10,
"2": 11,
"15": 12,
"14": 13,
"6": 14,
"24": 15,
"23": 16,
"10": 17,
"28": 18,
"21": 19
},
"1": {
"6": 0,
"28": 1,
"23": 2,
"25": 3,
"29": 4,
"0": 5,
"18": 6,
"27": 7,
"1": 8,
"13": 9,
"12": 10,
"3": 11,
"31": 12,
"17": 13,
"26": 14,
"10": 15,
"16": 16,
"30": 17,
"20": 18,
"8": 19
},
"2": {
"20": 0,
"31": 1,
"15": 2,
"21": 3,
"29": 4,
"10": 5,
"7": 6,
"8": 7,
"5": 8,
"0": 9,
"28": 10,
"22": 11,
"27": 12,
"16": 13,
"13": 14,
"3": 15,
"4": 16,
"6": 17,
"26": 18,
"23": 19
},
"3": {
"0": 0,
"7": 1,
"31": 2,
"21": 3,
"10": 4,
"23": 5,
"1": 6,
"19": 7,
"17": 8,
"2": 9,
"26": 10,
"11": 11,
"9": 12,
"25": 13,
"12": 14,
"27": 15,
"14": 16,
"16": 17,
"13": 18,
"3": 19
},
"4": {
"6": 0,
"27": 1,
"15": 2,
"18": 3,
"20": 4,
"23": 5,
"17": 6,
"19": 7,
"24": 8,
"10": 9,
"8": 10,
"14": 11,
"16": 12,
"30": 13,
"7": 14,
"31": 15,
"4": 16,
"12": 17,
"25": 18,
"13": 19
},
"5": {
"25": 0,
"6": 1,
"10": 2,
"0": 3,
"14": 4,
"31": 5,
"15": 6,
"2": 7,
"8": 8,
"24": 9,
"18": 10,
"17": 11,
"19": 12,
"27": 13,
"26": 14,
"7": 15,
"30": 16,
"21": 17,
"22": 18,
"3": 19
},
"6": {
"2": 0,
"9": 1,
"15": 2,
"10": 3,
"26": 4,
"5": 5,
"3": 6,
"16": 7,
"21": 8,
"7": 9,
"12": 10,
"20": 11,
"14": 12,
"31": 13,
"25": 14,
"4": 15,
"1": 16,
"11": 17,
"18": 18,
"24": 19
},
"7": {
"5": 0,
"29": 1,
"1": 2,
"0": 3,
"30": 4,
"13": 5,
"10": 6,
"18": 7,
"14": 8,
"19": 9,
"4": 10,
"24": 11,
"15": 12,
"11": 13,
"17": 14,
"21": 15,
"28": 16,
"16": 17,
"20": 18,
"3": 19
},
"8": {
"20": 0,
"24": 1,
"4": 2,
"21": 3,
"17": 4,
"31": 5,
"8": 6,
"5": 7,
"11": 8,
"0": 9,
"13": 10,
"23": 11,
"6": 12,
"30": 13,
"26": 14,
"19": 15,
"9": 16,
"3": 17,
"2": 18,
"29": 19
},
"9": {
"15": 0,
"8": 1,
"19": 2,
"14": 3,
"30": 4,
"17": 5,
"21": 6,
"16": 7,
"0": 8,
"13": 9,
"2": 10,
"23": 11,
"5": 12,
"4": 13,
"12": 14,
"22": 15,
"3": 16,
"26": 17,
"27": 18,
"28": 19
},
"10": {
"10": 0,
"7": 1,
"5": 2,
"16": 3,
"19": 4,
"23": 5,
"26": 6,
"25": 7,
"21": 8,
"13": 9,
"11": 10,
"18": 11,
"22": 12,
"24": 13,
"8": 14,
"4": 15,
"2": 16,
"31": 17,
"14": 18,
"30": 19
},
"11": {
"30": 0,
"12": 1,
"9": 2,
"27": 3,
"11": 4,
"26": 5,
"7": 6,
"18": 7,
"20": 8,
"3": 9,
"25": 10,
"4": 11,
"21": 12,
"17": 13,
"15": 14,
"2": 15,
"23": 16,
"6": 17,
"8": 18,
"24": 19
},
"12": {
"14": 0,
"23": 1,
"19": 2,
"3": 3,
"6": 4,
"21": 5,
"11": 6,
"28": 7,
"1": 8,
"24": 9,
"30": 10,
"25": 11,
"7": 12,
"8": 13,
"12": 14,
"26": 15,
"15": 16,
"13": 17,
"17": 18,
"10": 19
},
"13": {
"28": 0,
"21": 1,
"2": 2,
"9": 3,
"11": 4,
"19": 5,
"1": 6,
"10": 7,
"30": 8,
"24": 9,
"16": 10,
"3": 11,
"4": 12,
"15": 13,
"6": 14,
"5": 15,
"0": 16,
"20": 17,
"14": 18,
"8": 19
},
"14": {
"9": 0,
"0": 1,
"3": 2,
"6": 3,
"25": 4,
"18": 5,
"21": 6,
"26": 7,
"13": 8,
"4": 9,
"20": 10,
"24": 11,
"1": 12,
"12": 13,
"31": 14,
"28": 15,
"29": 16,
"11": 17,
"27": 18,
"10": 19
},
"15": {
"13": 0,
"10": 1,
"18": 2,
"29": 3,
"31": 4,
"26": 5,
"3": 6,
"7": 7,
"9": 8,
"1": 9,
"2": 10,
"25": 11,
"28": 12,
"16": 13,
"19": 14,
"23": 15,
"4": 16,
"22": 17,
"21": 18,
"27": 19
},
"16": {
"30": 0,
"31": 1,
"18": 2,
"15": 3,
"29": 4,
"11": 5,
"24": 6,
"28": 7,
"5": 8,
"14": 9,
"0": 10,
"20": 11,
"10": 12,
"9": 13,
"21": 14,
"4": 15,
"2": 16,
"17": 17,
"22": 18,
"26": 19
},
"17": {
"14": 0,
"2": 1,
"30": 2,
"12": 3,
"5": 4,
"0": 5,
"4": 6,
"17": 7,
"22": 8,
"11": 9,
"28": 10,
"7": 11,
"8": 12,
"25": 13,
"6": 14,
"13": 15,
"27": 16,
"24": 17,
"19": 18,
"3": 19
},
"18": {
"18": 0,
"1": 1,
"7": 2,
"13": 3,
"24": 4,
"14": 5,
"31": 6,
"15": 7,
"27": 8,
"10": 9,
"20": 10,
"23": 11,
"9": 12,
"2": 13,
"0": 14,
"16": 15,
"6": 16,
"26": 17,
"30": 18,
"19": 19
},
"19": {
"0": 0,
"3": 1,
"19": 2,
"11": 3,
"6": 4,
"17": 5,
"29": 6,
"16": 7,
"7": 8,
"31": 9,
"15": 10,
"2": 11,
"12": 12,
"4": 13,
"13": 14,
"18": 15,
"28": 16,
"22": 17,
"24": 18,
"20": 19
},
"20": {
"22": 0,
"8": 1,
"16": 2,
"7": 3,
"30": 4,
"24": 5,
"12": 6,
"31": 7,
"23": 8,
"21": 9,
"11": 10,
"0": 11,
"17": 12,
"13": 13,
"29": 14,
"25": 15,
"2": 16,
"10": 17,
"6": 18,
"26": 19
},
"21": {
"10": 0,
"3": 1,
"6": 2,
"9": 3,
"27": 4,
"20": 5,
"21": 6,
"28": 7,
"8": 8,
"1": 9,
"2": 10,
"14": 11,
"31": 12,
"18": 13,
"7": 14,
"30": 15,
"13": 16,
"16": 17,
"29": 18,
"23": 19
},
"22": {
"16": 0,
"25": 1,
"5": 2,
"14": 3,
"19": 4,
"8": 5,
"6": 6,
"18": 7,
"23": 8,
"22": 9,
"15": 10,
"26": 11,
"4": 12,
"0": 13,
"27": 14,
"20": 15,
"13": 16,
"28": 17,
"29": 18,
"7": 19
},
"23": {
"8": 0,
"31": 1,
"16": 2,
"18": 3,
"25": 4,
"10": 5,
"17": 6,
"28": 7,
"0": 8,
"3": 9,
"22": 10,
"6": 11,
"14": 12,
"19": 13,
"26": 14,
"24": 15,
"27": 16,
"13": 17,
"23": 18,
"20": 19
}
}

10
generation_config.json Normal file
View File

@@ -0,0 +1,10 @@
{
"bos_token_id": 199998,
"do_sample": true,
"eos_token_id": [
200002,
199999
],
"pad_token_id": 199999,
"transformers_version": "4.55.0"
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1ecf859a2efd3bcdded653d3152d4465b053cd664d402e5509eb043b742e9298
size 1875266408

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7df03fbdccf885dc129919f054610b38a1783880da905c70c5968a72bed564fa
size 1434022520

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9db00705555c5805fd51340eb80de86746fc536147bcac642b765df890c60c13
size 1712685232

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eea347ca266acb19fc01f0da3c1ca9de58e3fc26a049d9ec13128c1c72ee3f41
size 1434022520

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31f23141062ad852a0b4dc0e901dbf03b60aca1bb2813cc8ee5fdd49cafc02cf
size 1712685232

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0df6523961562ded407876dc12273227ead9b48aeb685b82b9e3a9ae685fe1f2
size 1434022520

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2e14675ee15a51f2a5c60adea58d96af8860a2f5e88811513ba15d4c0f154450
size 1712685232

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:da74ed35237e3d6b5b739efa5022e435e1983f17e401871e039f5ef2c767e10c
size 1434022536

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d5b50032020f702d24c46dae17f7c4ab728960cabd37dad1e3358def45d32e9e
size 1712685248

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:519748fcec6f8027014e53ed8ee762bf29eea65d6c2a3259a2d9110394d779c1
size 1434022552

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f66ed5a190b0f06c6f734bf1ae1bb7d073228b67c02368cdaba0188eb6593cae
size 1712685248

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:864cc599d917481cf66a3603622f46529737da8b4ae93be4c7d70610e97589fa
size 1434022552

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:edd30740fe101a8a1984dfcce4e21fd373d65a16ba5c52cd8d4a8ed0dad6bbce
size 1712685248

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9e27a05a2a05e392382a7676c6835d869d49328a4426576d906eeb802d4e70e8
size 1434022552

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d35677f9d4784a6611398620ba6b53296cefcd15244b37bb95fb6a0f301cc8fb
size 1712685248

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f0fba23925f56e3e2bd52312f939f9ce93c1da8e1801800a8682b9b2008a6369
size 1434022552

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:227980b893eef895e8d9c1e086025801c89a564ca8b2231ae5a968a73c2dd95d
size 995691696

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:08e257de1fa16cf80c8a36ca29c5974fc999f0dc7ada1468bfd0be18151af482
size 1158267008

View File

@@ -0,0 +1,419 @@
{
"metadata": {
"total_parameters": 13745077536,
"total_size": 27490155072
},
"weight_map": {
"lm_head.weight": "model-00018-of-00018.safetensors",
"model.embed_tokens.weight": "model-00001-of-00018.safetensors",
"model.layers.0.input_layernorm.weight": "model-00002-of-00018.safetensors",
"model.layers.0.mlp.experts.down_proj": "model-00002-of-00018.safetensors",
"model.layers.0.mlp.experts.down_proj_bias": "model-00002-of-00018.safetensors",
"model.layers.0.mlp.experts.gate_up_proj": "model-00001-of-00018.safetensors",
"model.layers.0.mlp.experts.gate_up_proj_bias": "model-00001-of-00018.safetensors",
"model.layers.0.mlp.router.bias": "model-00001-of-00018.safetensors",
"model.layers.0.mlp.router.weight": "model-00001-of-00018.safetensors",
"model.layers.0.post_attention_layernorm.weight": "model-00002-of-00018.safetensors",
"model.layers.0.self_attn.k_proj.bias": "model-00001-of-00018.safetensors",
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00018.safetensors",
"model.layers.0.self_attn.o_proj.bias": "model-00001-of-00018.safetensors",
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00018.safetensors",
"model.layers.0.self_attn.q_proj.bias": "model-00001-of-00018.safetensors",
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00018.safetensors",
"model.layers.0.self_attn.sinks": "model-00001-of-00018.safetensors",
"model.layers.0.self_attn.v_proj.bias": "model-00001-of-00018.safetensors",
"model.layers.0.self_attn.v_proj.weight": "model-00001-of-00018.safetensors",
"model.layers.1.input_layernorm.weight": "model-00002-of-00018.safetensors",
"model.layers.1.mlp.experts.down_proj": "model-00002-of-00018.safetensors",
"model.layers.1.mlp.experts.down_proj_bias": "model-00002-of-00018.safetensors",
"model.layers.1.mlp.experts.gate_up_proj": "model-00002-of-00018.safetensors",
"model.layers.1.mlp.experts.gate_up_proj_bias": "model-00002-of-00018.safetensors",
"model.layers.1.mlp.router.bias": "model-00002-of-00018.safetensors",
"model.layers.1.mlp.router.weight": "model-00002-of-00018.safetensors",
"model.layers.1.post_attention_layernorm.weight": "model-00002-of-00018.safetensors",
"model.layers.1.self_attn.k_proj.bias": "model-00002-of-00018.safetensors",
"model.layers.1.self_attn.k_proj.weight": "model-00002-of-00018.safetensors",
"model.layers.1.self_attn.o_proj.bias": "model-00002-of-00018.safetensors",
"model.layers.1.self_attn.o_proj.weight": "model-00002-of-00018.safetensors",
"model.layers.1.self_attn.q_proj.bias": "model-00002-of-00018.safetensors",
"model.layers.1.self_attn.q_proj.weight": "model-00002-of-00018.safetensors",
"model.layers.1.self_attn.sinks": "model-00002-of-00018.safetensors",
"model.layers.1.self_attn.v_proj.bias": "model-00002-of-00018.safetensors",
"model.layers.1.self_attn.v_proj.weight": "model-00002-of-00018.safetensors",
"model.layers.10.input_layernorm.weight": "model-00008-of-00018.safetensors",
"model.layers.10.mlp.experts.down_proj": "model-00008-of-00018.safetensors",
"model.layers.10.mlp.experts.down_proj_bias": "model-00008-of-00018.safetensors",
"model.layers.10.mlp.experts.gate_up_proj": "model-00008-of-00018.safetensors",
"model.layers.10.mlp.experts.gate_up_proj_bias": "model-00008-of-00018.safetensors",
"model.layers.10.mlp.router.bias": "model-00008-of-00018.safetensors",
"model.layers.10.mlp.router.weight": "model-00008-of-00018.safetensors",
"model.layers.10.post_attention_layernorm.weight": "model-00008-of-00018.safetensors",
"model.layers.10.self_attn.k_proj.bias": "model-00008-of-00018.safetensors",
"model.layers.10.self_attn.k_proj.weight": "model-00008-of-00018.safetensors",
"model.layers.10.self_attn.o_proj.bias": "model-00008-of-00018.safetensors",
"model.layers.10.self_attn.o_proj.weight": "model-00008-of-00018.safetensors",
"model.layers.10.self_attn.q_proj.bias": "model-00008-of-00018.safetensors",
"model.layers.10.self_attn.q_proj.weight": "model-00008-of-00018.safetensors",
"model.layers.10.self_attn.sinks": "model-00008-of-00018.safetensors",
"model.layers.10.self_attn.v_proj.bias": "model-00008-of-00018.safetensors",
"model.layers.10.self_attn.v_proj.weight": "model-00008-of-00018.safetensors",
"model.layers.11.input_layernorm.weight": "model-00009-of-00018.safetensors",
"model.layers.11.mlp.experts.down_proj": "model-00009-of-00018.safetensors",
"model.layers.11.mlp.experts.down_proj_bias": "model-00009-of-00018.safetensors",
"model.layers.11.mlp.experts.gate_up_proj": "model-00009-of-00018.safetensors",
"model.layers.11.mlp.experts.gate_up_proj_bias": "model-00009-of-00018.safetensors",
"model.layers.11.mlp.router.bias": "model-00008-of-00018.safetensors",
"model.layers.11.mlp.router.weight": "model-00008-of-00018.safetensors",
"model.layers.11.post_attention_layernorm.weight": "model-00009-of-00018.safetensors",
"model.layers.11.self_attn.k_proj.bias": "model-00008-of-00018.safetensors",
"model.layers.11.self_attn.k_proj.weight": "model-00008-of-00018.safetensors",
"model.layers.11.self_attn.o_proj.bias": "model-00008-of-00018.safetensors",
"model.layers.11.self_attn.o_proj.weight": "model-00008-of-00018.safetensors",
"model.layers.11.self_attn.q_proj.bias": "model-00008-of-00018.safetensors",
"model.layers.11.self_attn.q_proj.weight": "model-00008-of-00018.safetensors",
"model.layers.11.self_attn.sinks": "model-00008-of-00018.safetensors",
"model.layers.11.self_attn.v_proj.bias": "model-00008-of-00018.safetensors",
"model.layers.11.self_attn.v_proj.weight": "model-00008-of-00018.safetensors",
"model.layers.12.input_layernorm.weight": "model-00010-of-00018.safetensors",
"model.layers.12.mlp.experts.down_proj": "model-00010-of-00018.safetensors",
"model.layers.12.mlp.experts.down_proj_bias": "model-00010-of-00018.safetensors",
"model.layers.12.mlp.experts.gate_up_proj": "model-00009-of-00018.safetensors",
"model.layers.12.mlp.experts.gate_up_proj_bias": "model-00009-of-00018.safetensors",
"model.layers.12.mlp.router.bias": "model-00009-of-00018.safetensors",
"model.layers.12.mlp.router.weight": "model-00009-of-00018.safetensors",
"model.layers.12.post_attention_layernorm.weight": "model-00010-of-00018.safetensors",
"model.layers.12.self_attn.k_proj.bias": "model-00009-of-00018.safetensors",
"model.layers.12.self_attn.k_proj.weight": "model-00009-of-00018.safetensors",
"model.layers.12.self_attn.o_proj.bias": "model-00009-of-00018.safetensors",
"model.layers.12.self_attn.o_proj.weight": "model-00009-of-00018.safetensors",
"model.layers.12.self_attn.q_proj.bias": "model-00009-of-00018.safetensors",
"model.layers.12.self_attn.q_proj.weight": "model-00009-of-00018.safetensors",
"model.layers.12.self_attn.sinks": "model-00009-of-00018.safetensors",
"model.layers.12.self_attn.v_proj.bias": "model-00009-of-00018.safetensors",
"model.layers.12.self_attn.v_proj.weight": "model-00009-of-00018.safetensors",
"model.layers.13.input_layernorm.weight": "model-00010-of-00018.safetensors",
"model.layers.13.mlp.experts.down_proj": "model-00010-of-00018.safetensors",
"model.layers.13.mlp.experts.down_proj_bias": "model-00010-of-00018.safetensors",
"model.layers.13.mlp.experts.gate_up_proj": "model-00010-of-00018.safetensors",
"model.layers.13.mlp.experts.gate_up_proj_bias": "model-00010-of-00018.safetensors",
"model.layers.13.mlp.router.bias": "model-00010-of-00018.safetensors",
"model.layers.13.mlp.router.weight": "model-00010-of-00018.safetensors",
"model.layers.13.post_attention_layernorm.weight": "model-00010-of-00018.safetensors",
"model.layers.13.self_attn.k_proj.bias": "model-00010-of-00018.safetensors",
"model.layers.13.self_attn.k_proj.weight": "model-00010-of-00018.safetensors",
"model.layers.13.self_attn.o_proj.bias": "model-00010-of-00018.safetensors",
"model.layers.13.self_attn.o_proj.weight": "model-00010-of-00018.safetensors",
"model.layers.13.self_attn.q_proj.bias": "model-00010-of-00018.safetensors",
"model.layers.13.self_attn.q_proj.weight": "model-00010-of-00018.safetensors",
"model.layers.13.self_attn.sinks": "model-00010-of-00018.safetensors",
"model.layers.13.self_attn.v_proj.bias": "model-00010-of-00018.safetensors",
"model.layers.13.self_attn.v_proj.weight": "model-00010-of-00018.safetensors",
"model.layers.14.input_layernorm.weight": "model-00011-of-00018.safetensors",
"model.layers.14.mlp.experts.down_proj": "model-00011-of-00018.safetensors",
"model.layers.14.mlp.experts.down_proj_bias": "model-00011-of-00018.safetensors",
"model.layers.14.mlp.experts.gate_up_proj": "model-00011-of-00018.safetensors",
"model.layers.14.mlp.experts.gate_up_proj_bias": "model-00011-of-00018.safetensors",
"model.layers.14.mlp.router.bias": "model-00010-of-00018.safetensors",
"model.layers.14.mlp.router.weight": "model-00010-of-00018.safetensors",
"model.layers.14.post_attention_layernorm.weight": "model-00011-of-00018.safetensors",
"model.layers.14.self_attn.k_proj.bias": "model-00010-of-00018.safetensors",
"model.layers.14.self_attn.k_proj.weight": "model-00010-of-00018.safetensors",
"model.layers.14.self_attn.o_proj.bias": "model-00010-of-00018.safetensors",
"model.layers.14.self_attn.o_proj.weight": "model-00010-of-00018.safetensors",
"model.layers.14.self_attn.q_proj.bias": "model-00010-of-00018.safetensors",
"model.layers.14.self_attn.q_proj.weight": "model-00010-of-00018.safetensors",
"model.layers.14.self_attn.sinks": "model-00010-of-00018.safetensors",
"model.layers.14.self_attn.v_proj.bias": "model-00010-of-00018.safetensors",
"model.layers.14.self_attn.v_proj.weight": "model-00010-of-00018.safetensors",
"model.layers.15.input_layernorm.weight": "model-00012-of-00018.safetensors",
"model.layers.15.mlp.experts.down_proj": "model-00012-of-00018.safetensors",
"model.layers.15.mlp.experts.down_proj_bias": "model-00012-of-00018.safetensors",
"model.layers.15.mlp.experts.gate_up_proj": "model-00011-of-00018.safetensors",
"model.layers.15.mlp.experts.gate_up_proj_bias": "model-00011-of-00018.safetensors",
"model.layers.15.mlp.router.bias": "model-00011-of-00018.safetensors",
"model.layers.15.mlp.router.weight": "model-00011-of-00018.safetensors",
"model.layers.15.post_attention_layernorm.weight": "model-00012-of-00018.safetensors",
"model.layers.15.self_attn.k_proj.bias": "model-00011-of-00018.safetensors",
"model.layers.15.self_attn.k_proj.weight": "model-00011-of-00018.safetensors",
"model.layers.15.self_attn.o_proj.bias": "model-00011-of-00018.safetensors",
"model.layers.15.self_attn.o_proj.weight": "model-00011-of-00018.safetensors",
"model.layers.15.self_attn.q_proj.bias": "model-00011-of-00018.safetensors",
"model.layers.15.self_attn.q_proj.weight": "model-00011-of-00018.safetensors",
"model.layers.15.self_attn.sinks": "model-00011-of-00018.safetensors",
"model.layers.15.self_attn.v_proj.bias": "model-00011-of-00018.safetensors",
"model.layers.15.self_attn.v_proj.weight": "model-00011-of-00018.safetensors",
"model.layers.16.input_layernorm.weight": "model-00012-of-00018.safetensors",
"model.layers.16.mlp.experts.down_proj": "model-00012-of-00018.safetensors",
"model.layers.16.mlp.experts.down_proj_bias": "model-00012-of-00018.safetensors",
"model.layers.16.mlp.experts.gate_up_proj": "model-00012-of-00018.safetensors",
"model.layers.16.mlp.experts.gate_up_proj_bias": "model-00012-of-00018.safetensors",
"model.layers.16.mlp.router.bias": "model-00012-of-00018.safetensors",
"model.layers.16.mlp.router.weight": "model-00012-of-00018.safetensors",
"model.layers.16.post_attention_layernorm.weight": "model-00012-of-00018.safetensors",
"model.layers.16.self_attn.k_proj.bias": "model-00012-of-00018.safetensors",
"model.layers.16.self_attn.k_proj.weight": "model-00012-of-00018.safetensors",
"model.layers.16.self_attn.o_proj.bias": "model-00012-of-00018.safetensors",
"model.layers.16.self_attn.o_proj.weight": "model-00012-of-00018.safetensors",
"model.layers.16.self_attn.q_proj.bias": "model-00012-of-00018.safetensors",
"model.layers.16.self_attn.q_proj.weight": "model-00012-of-00018.safetensors",
"model.layers.16.self_attn.sinks": "model-00012-of-00018.safetensors",
"model.layers.16.self_attn.v_proj.bias": "model-00012-of-00018.safetensors",
"model.layers.16.self_attn.v_proj.weight": "model-00012-of-00018.safetensors",
"model.layers.17.input_layernorm.weight": "model-00013-of-00018.safetensors",
"model.layers.17.mlp.experts.down_proj": "model-00013-of-00018.safetensors",
"model.layers.17.mlp.experts.down_proj_bias": "model-00013-of-00018.safetensors",
"model.layers.17.mlp.experts.gate_up_proj": "model-00013-of-00018.safetensors",
"model.layers.17.mlp.experts.gate_up_proj_bias": "model-00013-of-00018.safetensors",
"model.layers.17.mlp.router.bias": "model-00012-of-00018.safetensors",
"model.layers.17.mlp.router.weight": "model-00012-of-00018.safetensors",
"model.layers.17.post_attention_layernorm.weight": "model-00013-of-00018.safetensors",
"model.layers.17.self_attn.k_proj.bias": "model-00012-of-00018.safetensors",
"model.layers.17.self_attn.k_proj.weight": "model-00012-of-00018.safetensors",
"model.layers.17.self_attn.o_proj.bias": "model-00012-of-00018.safetensors",
"model.layers.17.self_attn.o_proj.weight": "model-00012-of-00018.safetensors",
"model.layers.17.self_attn.q_proj.bias": "model-00012-of-00018.safetensors",
"model.layers.17.self_attn.q_proj.weight": "model-00012-of-00018.safetensors",
"model.layers.17.self_attn.sinks": "model-00012-of-00018.safetensors",
"model.layers.17.self_attn.v_proj.bias": "model-00012-of-00018.safetensors",
"model.layers.17.self_attn.v_proj.weight": "model-00012-of-00018.safetensors",
"model.layers.18.input_layernorm.weight": "model-00014-of-00018.safetensors",
"model.layers.18.mlp.experts.down_proj": "model-00014-of-00018.safetensors",
"model.layers.18.mlp.experts.down_proj_bias": "model-00014-of-00018.safetensors",
"model.layers.18.mlp.experts.gate_up_proj": "model-00013-of-00018.safetensors",
"model.layers.18.mlp.experts.gate_up_proj_bias": "model-00013-of-00018.safetensors",
"model.layers.18.mlp.router.bias": "model-00013-of-00018.safetensors",
"model.layers.18.mlp.router.weight": "model-00013-of-00018.safetensors",
"model.layers.18.post_attention_layernorm.weight": "model-00014-of-00018.safetensors",
"model.layers.18.self_attn.k_proj.bias": "model-00013-of-00018.safetensors",
"model.layers.18.self_attn.k_proj.weight": "model-00013-of-00018.safetensors",
"model.layers.18.self_attn.o_proj.bias": "model-00013-of-00018.safetensors",
"model.layers.18.self_attn.o_proj.weight": "model-00013-of-00018.safetensors",
"model.layers.18.self_attn.q_proj.bias": "model-00013-of-00018.safetensors",
"model.layers.18.self_attn.q_proj.weight": "model-00013-of-00018.safetensors",
"model.layers.18.self_attn.sinks": "model-00013-of-00018.safetensors",
"model.layers.18.self_attn.v_proj.bias": "model-00013-of-00018.safetensors",
"model.layers.18.self_attn.v_proj.weight": "model-00013-of-00018.safetensors",
"model.layers.19.input_layernorm.weight": "model-00014-of-00018.safetensors",
"model.layers.19.mlp.experts.down_proj": "model-00014-of-00018.safetensors",
"model.layers.19.mlp.experts.down_proj_bias": "model-00014-of-00018.safetensors",
"model.layers.19.mlp.experts.gate_up_proj": "model-00014-of-00018.safetensors",
"model.layers.19.mlp.experts.gate_up_proj_bias": "model-00014-of-00018.safetensors",
"model.layers.19.mlp.router.bias": "model-00014-of-00018.safetensors",
"model.layers.19.mlp.router.weight": "model-00014-of-00018.safetensors",
"model.layers.19.post_attention_layernorm.weight": "model-00014-of-00018.safetensors",
"model.layers.19.self_attn.k_proj.bias": "model-00014-of-00018.safetensors",
"model.layers.19.self_attn.k_proj.weight": "model-00014-of-00018.safetensors",
"model.layers.19.self_attn.o_proj.bias": "model-00014-of-00018.safetensors",
"model.layers.19.self_attn.o_proj.weight": "model-00014-of-00018.safetensors",
"model.layers.19.self_attn.q_proj.bias": "model-00014-of-00018.safetensors",
"model.layers.19.self_attn.q_proj.weight": "model-00014-of-00018.safetensors",
"model.layers.19.self_attn.sinks": "model-00014-of-00018.safetensors",
"model.layers.19.self_attn.v_proj.bias": "model-00014-of-00018.safetensors",
"model.layers.19.self_attn.v_proj.weight": "model-00014-of-00018.safetensors",
"model.layers.2.input_layernorm.weight": "model-00003-of-00018.safetensors",
"model.layers.2.mlp.experts.down_proj": "model-00003-of-00018.safetensors",
"model.layers.2.mlp.experts.down_proj_bias": "model-00003-of-00018.safetensors",
"model.layers.2.mlp.experts.gate_up_proj": "model-00003-of-00018.safetensors",
"model.layers.2.mlp.experts.gate_up_proj_bias": "model-00003-of-00018.safetensors",
"model.layers.2.mlp.router.bias": "model-00002-of-00018.safetensors",
"model.layers.2.mlp.router.weight": "model-00002-of-00018.safetensors",
"model.layers.2.post_attention_layernorm.weight": "model-00003-of-00018.safetensors",
"model.layers.2.self_attn.k_proj.bias": "model-00002-of-00018.safetensors",
"model.layers.2.self_attn.k_proj.weight": "model-00002-of-00018.safetensors",
"model.layers.2.self_attn.o_proj.bias": "model-00002-of-00018.safetensors",
"model.layers.2.self_attn.o_proj.weight": "model-00002-of-00018.safetensors",
"model.layers.2.self_attn.q_proj.bias": "model-00002-of-00018.safetensors",
"model.layers.2.self_attn.q_proj.weight": "model-00002-of-00018.safetensors",
"model.layers.2.self_attn.sinks": "model-00002-of-00018.safetensors",
"model.layers.2.self_attn.v_proj.bias": "model-00002-of-00018.safetensors",
"model.layers.2.self_attn.v_proj.weight": "model-00002-of-00018.safetensors",
"model.layers.20.input_layernorm.weight": "model-00015-of-00018.safetensors",
"model.layers.20.mlp.experts.down_proj": "model-00015-of-00018.safetensors",
"model.layers.20.mlp.experts.down_proj_bias": "model-00015-of-00018.safetensors",
"model.layers.20.mlp.experts.gate_up_proj": "model-00015-of-00018.safetensors",
"model.layers.20.mlp.experts.gate_up_proj_bias": "model-00015-of-00018.safetensors",
"model.layers.20.mlp.router.bias": "model-00014-of-00018.safetensors",
"model.layers.20.mlp.router.weight": "model-00014-of-00018.safetensors",
"model.layers.20.post_attention_layernorm.weight": "model-00015-of-00018.safetensors",
"model.layers.20.self_attn.k_proj.bias": "model-00014-of-00018.safetensors",
"model.layers.20.self_attn.k_proj.weight": "model-00014-of-00018.safetensors",
"model.layers.20.self_attn.o_proj.bias": "model-00014-of-00018.safetensors",
"model.layers.20.self_attn.o_proj.weight": "model-00014-of-00018.safetensors",
"model.layers.20.self_attn.q_proj.bias": "model-00014-of-00018.safetensors",
"model.layers.20.self_attn.q_proj.weight": "model-00014-of-00018.safetensors",
"model.layers.20.self_attn.sinks": "model-00014-of-00018.safetensors",
"model.layers.20.self_attn.v_proj.bias": "model-00014-of-00018.safetensors",
"model.layers.20.self_attn.v_proj.weight": "model-00014-of-00018.safetensors",
"model.layers.21.input_layernorm.weight": "model-00016-of-00018.safetensors",
"model.layers.21.mlp.experts.down_proj": "model-00016-of-00018.safetensors",
"model.layers.21.mlp.experts.down_proj_bias": "model-00016-of-00018.safetensors",
"model.layers.21.mlp.experts.gate_up_proj": "model-00015-of-00018.safetensors",
"model.layers.21.mlp.experts.gate_up_proj_bias": "model-00015-of-00018.safetensors",
"model.layers.21.mlp.router.bias": "model-00015-of-00018.safetensors",
"model.layers.21.mlp.router.weight": "model-00015-of-00018.safetensors",
"model.layers.21.post_attention_layernorm.weight": "model-00016-of-00018.safetensors",
"model.layers.21.self_attn.k_proj.bias": "model-00015-of-00018.safetensors",
"model.layers.21.self_attn.k_proj.weight": "model-00015-of-00018.safetensors",
"model.layers.21.self_attn.o_proj.bias": "model-00015-of-00018.safetensors",
"model.layers.21.self_attn.o_proj.weight": "model-00015-of-00018.safetensors",
"model.layers.21.self_attn.q_proj.bias": "model-00015-of-00018.safetensors",
"model.layers.21.self_attn.q_proj.weight": "model-00015-of-00018.safetensors",
"model.layers.21.self_attn.sinks": "model-00015-of-00018.safetensors",
"model.layers.21.self_attn.v_proj.bias": "model-00015-of-00018.safetensors",
"model.layers.21.self_attn.v_proj.weight": "model-00015-of-00018.safetensors",
"model.layers.22.input_layernorm.weight": "model-00016-of-00018.safetensors",
"model.layers.22.mlp.experts.down_proj": "model-00016-of-00018.safetensors",
"model.layers.22.mlp.experts.down_proj_bias": "model-00016-of-00018.safetensors",
"model.layers.22.mlp.experts.gate_up_proj": "model-00016-of-00018.safetensors",
"model.layers.22.mlp.experts.gate_up_proj_bias": "model-00016-of-00018.safetensors",
"model.layers.22.mlp.router.bias": "model-00016-of-00018.safetensors",
"model.layers.22.mlp.router.weight": "model-00016-of-00018.safetensors",
"model.layers.22.post_attention_layernorm.weight": "model-00016-of-00018.safetensors",
"model.layers.22.self_attn.k_proj.bias": "model-00016-of-00018.safetensors",
"model.layers.22.self_attn.k_proj.weight": "model-00016-of-00018.safetensors",
"model.layers.22.self_attn.o_proj.bias": "model-00016-of-00018.safetensors",
"model.layers.22.self_attn.o_proj.weight": "model-00016-of-00018.safetensors",
"model.layers.22.self_attn.q_proj.bias": "model-00016-of-00018.safetensors",
"model.layers.22.self_attn.q_proj.weight": "model-00016-of-00018.safetensors",
"model.layers.22.self_attn.sinks": "model-00016-of-00018.safetensors",
"model.layers.22.self_attn.v_proj.bias": "model-00016-of-00018.safetensors",
"model.layers.22.self_attn.v_proj.weight": "model-00016-of-00018.safetensors",
"model.layers.23.input_layernorm.weight": "model-00017-of-00018.safetensors",
"model.layers.23.mlp.experts.down_proj": "model-00017-of-00018.safetensors",
"model.layers.23.mlp.experts.down_proj_bias": "model-00017-of-00018.safetensors",
"model.layers.23.mlp.experts.gate_up_proj": "model-00017-of-00018.safetensors",
"model.layers.23.mlp.experts.gate_up_proj_bias": "model-00017-of-00018.safetensors",
"model.layers.23.mlp.router.bias": "model-00016-of-00018.safetensors",
"model.layers.23.mlp.router.weight": "model-00016-of-00018.safetensors",
"model.layers.23.post_attention_layernorm.weight": "model-00017-of-00018.safetensors",
"model.layers.23.self_attn.k_proj.bias": "model-00016-of-00018.safetensors",
"model.layers.23.self_attn.k_proj.weight": "model-00016-of-00018.safetensors",
"model.layers.23.self_attn.o_proj.bias": "model-00016-of-00018.safetensors",
"model.layers.23.self_attn.o_proj.weight": "model-00016-of-00018.safetensors",
"model.layers.23.self_attn.q_proj.bias": "model-00016-of-00018.safetensors",
"model.layers.23.self_attn.q_proj.weight": "model-00016-of-00018.safetensors",
"model.layers.23.self_attn.sinks": "model-00016-of-00018.safetensors",
"model.layers.23.self_attn.v_proj.bias": "model-00016-of-00018.safetensors",
"model.layers.23.self_attn.v_proj.weight": "model-00016-of-00018.safetensors",
"model.layers.3.input_layernorm.weight": "model-00004-of-00018.safetensors",
"model.layers.3.mlp.experts.down_proj": "model-00004-of-00018.safetensors",
"model.layers.3.mlp.experts.down_proj_bias": "model-00004-of-00018.safetensors",
"model.layers.3.mlp.experts.gate_up_proj": "model-00003-of-00018.safetensors",
"model.layers.3.mlp.experts.gate_up_proj_bias": "model-00003-of-00018.safetensors",
"model.layers.3.mlp.router.bias": "model-00003-of-00018.safetensors",
"model.layers.3.mlp.router.weight": "model-00003-of-00018.safetensors",
"model.layers.3.post_attention_layernorm.weight": "model-00004-of-00018.safetensors",
"model.layers.3.self_attn.k_proj.bias": "model-00003-of-00018.safetensors",
"model.layers.3.self_attn.k_proj.weight": "model-00003-of-00018.safetensors",
"model.layers.3.self_attn.o_proj.bias": "model-00003-of-00018.safetensors",
"model.layers.3.self_attn.o_proj.weight": "model-00003-of-00018.safetensors",
"model.layers.3.self_attn.q_proj.bias": "model-00003-of-00018.safetensors",
"model.layers.3.self_attn.q_proj.weight": "model-00003-of-00018.safetensors",
"model.layers.3.self_attn.sinks": "model-00003-of-00018.safetensors",
"model.layers.3.self_attn.v_proj.bias": "model-00003-of-00018.safetensors",
"model.layers.3.self_attn.v_proj.weight": "model-00003-of-00018.safetensors",
"model.layers.4.input_layernorm.weight": "model-00004-of-00018.safetensors",
"model.layers.4.mlp.experts.down_proj": "model-00004-of-00018.safetensors",
"model.layers.4.mlp.experts.down_proj_bias": "model-00004-of-00018.safetensors",
"model.layers.4.mlp.experts.gate_up_proj": "model-00004-of-00018.safetensors",
"model.layers.4.mlp.experts.gate_up_proj_bias": "model-00004-of-00018.safetensors",
"model.layers.4.mlp.router.bias": "model-00004-of-00018.safetensors",
"model.layers.4.mlp.router.weight": "model-00004-of-00018.safetensors",
"model.layers.4.post_attention_layernorm.weight": "model-00004-of-00018.safetensors",
"model.layers.4.self_attn.k_proj.bias": "model-00004-of-00018.safetensors",
"model.layers.4.self_attn.k_proj.weight": "model-00004-of-00018.safetensors",
"model.layers.4.self_attn.o_proj.bias": "model-00004-of-00018.safetensors",
"model.layers.4.self_attn.o_proj.weight": "model-00004-of-00018.safetensors",
"model.layers.4.self_attn.q_proj.bias": "model-00004-of-00018.safetensors",
"model.layers.4.self_attn.q_proj.weight": "model-00004-of-00018.safetensors",
"model.layers.4.self_attn.sinks": "model-00004-of-00018.safetensors",
"model.layers.4.self_attn.v_proj.bias": "model-00004-of-00018.safetensors",
"model.layers.4.self_attn.v_proj.weight": "model-00004-of-00018.safetensors",
"model.layers.5.input_layernorm.weight": "model-00005-of-00018.safetensors",
"model.layers.5.mlp.experts.down_proj": "model-00005-of-00018.safetensors",
"model.layers.5.mlp.experts.down_proj_bias": "model-00005-of-00018.safetensors",
"model.layers.5.mlp.experts.gate_up_proj": "model-00005-of-00018.safetensors",
"model.layers.5.mlp.experts.gate_up_proj_bias": "model-00005-of-00018.safetensors",
"model.layers.5.mlp.router.bias": "model-00004-of-00018.safetensors",
"model.layers.5.mlp.router.weight": "model-00004-of-00018.safetensors",
"model.layers.5.post_attention_layernorm.weight": "model-00005-of-00018.safetensors",
"model.layers.5.self_attn.k_proj.bias": "model-00004-of-00018.safetensors",
"model.layers.5.self_attn.k_proj.weight": "model-00004-of-00018.safetensors",
"model.layers.5.self_attn.o_proj.bias": "model-00004-of-00018.safetensors",
"model.layers.5.self_attn.o_proj.weight": "model-00004-of-00018.safetensors",
"model.layers.5.self_attn.q_proj.bias": "model-00004-of-00018.safetensors",
"model.layers.5.self_attn.q_proj.weight": "model-00004-of-00018.safetensors",
"model.layers.5.self_attn.sinks": "model-00004-of-00018.safetensors",
"model.layers.5.self_attn.v_proj.bias": "model-00004-of-00018.safetensors",
"model.layers.5.self_attn.v_proj.weight": "model-00004-of-00018.safetensors",
"model.layers.6.input_layernorm.weight": "model-00006-of-00018.safetensors",
"model.layers.6.mlp.experts.down_proj": "model-00006-of-00018.safetensors",
"model.layers.6.mlp.experts.down_proj_bias": "model-00006-of-00018.safetensors",
"model.layers.6.mlp.experts.gate_up_proj": "model-00005-of-00018.safetensors",
"model.layers.6.mlp.experts.gate_up_proj_bias": "model-00005-of-00018.safetensors",
"model.layers.6.mlp.router.bias": "model-00005-of-00018.safetensors",
"model.layers.6.mlp.router.weight": "model-00005-of-00018.safetensors",
"model.layers.6.post_attention_layernorm.weight": "model-00006-of-00018.safetensors",
"model.layers.6.self_attn.k_proj.bias": "model-00005-of-00018.safetensors",
"model.layers.6.self_attn.k_proj.weight": "model-00005-of-00018.safetensors",
"model.layers.6.self_attn.o_proj.bias": "model-00005-of-00018.safetensors",
"model.layers.6.self_attn.o_proj.weight": "model-00005-of-00018.safetensors",
"model.layers.6.self_attn.q_proj.bias": "model-00005-of-00018.safetensors",
"model.layers.6.self_attn.q_proj.weight": "model-00005-of-00018.safetensors",
"model.layers.6.self_attn.sinks": "model-00005-of-00018.safetensors",
"model.layers.6.self_attn.v_proj.bias": "model-00005-of-00018.safetensors",
"model.layers.6.self_attn.v_proj.weight": "model-00005-of-00018.safetensors",
"model.layers.7.input_layernorm.weight": "model-00006-of-00018.safetensors",
"model.layers.7.mlp.experts.down_proj": "model-00006-of-00018.safetensors",
"model.layers.7.mlp.experts.down_proj_bias": "model-00006-of-00018.safetensors",
"model.layers.7.mlp.experts.gate_up_proj": "model-00006-of-00018.safetensors",
"model.layers.7.mlp.experts.gate_up_proj_bias": "model-00006-of-00018.safetensors",
"model.layers.7.mlp.router.bias": "model-00006-of-00018.safetensors",
"model.layers.7.mlp.router.weight": "model-00006-of-00018.safetensors",
"model.layers.7.post_attention_layernorm.weight": "model-00006-of-00018.safetensors",
"model.layers.7.self_attn.k_proj.bias": "model-00006-of-00018.safetensors",
"model.layers.7.self_attn.k_proj.weight": "model-00006-of-00018.safetensors",
"model.layers.7.self_attn.o_proj.bias": "model-00006-of-00018.safetensors",
"model.layers.7.self_attn.o_proj.weight": "model-00006-of-00018.safetensors",
"model.layers.7.self_attn.q_proj.bias": "model-00006-of-00018.safetensors",
"model.layers.7.self_attn.q_proj.weight": "model-00006-of-00018.safetensors",
"model.layers.7.self_attn.sinks": "model-00006-of-00018.safetensors",
"model.layers.7.self_attn.v_proj.bias": "model-00006-of-00018.safetensors",
"model.layers.7.self_attn.v_proj.weight": "model-00006-of-00018.safetensors",
"model.layers.8.input_layernorm.weight": "model-00007-of-00018.safetensors",
"model.layers.8.mlp.experts.down_proj": "model-00007-of-00018.safetensors",
"model.layers.8.mlp.experts.down_proj_bias": "model-00007-of-00018.safetensors",
"model.layers.8.mlp.experts.gate_up_proj": "model-00007-of-00018.safetensors",
"model.layers.8.mlp.experts.gate_up_proj_bias": "model-00007-of-00018.safetensors",
"model.layers.8.mlp.router.bias": "model-00006-of-00018.safetensors",
"model.layers.8.mlp.router.weight": "model-00006-of-00018.safetensors",
"model.layers.8.post_attention_layernorm.weight": "model-00007-of-00018.safetensors",
"model.layers.8.self_attn.k_proj.bias": "model-00006-of-00018.safetensors",
"model.layers.8.self_attn.k_proj.weight": "model-00006-of-00018.safetensors",
"model.layers.8.self_attn.o_proj.bias": "model-00006-of-00018.safetensors",
"model.layers.8.self_attn.o_proj.weight": "model-00006-of-00018.safetensors",
"model.layers.8.self_attn.q_proj.bias": "model-00006-of-00018.safetensors",
"model.layers.8.self_attn.q_proj.weight": "model-00006-of-00018.safetensors",
"model.layers.8.self_attn.sinks": "model-00006-of-00018.safetensors",
"model.layers.8.self_attn.v_proj.bias": "model-00006-of-00018.safetensors",
"model.layers.8.self_attn.v_proj.weight": "model-00006-of-00018.safetensors",
"model.layers.9.input_layernorm.weight": "model-00008-of-00018.safetensors",
"model.layers.9.mlp.experts.down_proj": "model-00008-of-00018.safetensors",
"model.layers.9.mlp.experts.down_proj_bias": "model-00008-of-00018.safetensors",
"model.layers.9.mlp.experts.gate_up_proj": "model-00007-of-00018.safetensors",
"model.layers.9.mlp.experts.gate_up_proj_bias": "model-00007-of-00018.safetensors",
"model.layers.9.mlp.router.bias": "model-00007-of-00018.safetensors",
"model.layers.9.mlp.router.weight": "model-00007-of-00018.safetensors",
"model.layers.9.post_attention_layernorm.weight": "model-00008-of-00018.safetensors",
"model.layers.9.self_attn.k_proj.bias": "model-00007-of-00018.safetensors",
"model.layers.9.self_attn.k_proj.weight": "model-00007-of-00018.safetensors",
"model.layers.9.self_attn.o_proj.bias": "model-00007-of-00018.safetensors",
"model.layers.9.self_attn.o_proj.weight": "model-00007-of-00018.safetensors",
"model.layers.9.self_attn.q_proj.bias": "model-00007-of-00018.safetensors",
"model.layers.9.self_attn.q_proj.weight": "model-00007-of-00018.safetensors",
"model.layers.9.self_attn.sinks": "model-00007-of-00018.safetensors",
"model.layers.9.self_attn.v_proj.bias": "model-00007-of-00018.safetensors",
"model.layers.9.self_attn.v_proj.weight": "model-00007-of-00018.safetensors",
"model.norm.weight": "model-00017-of-00018.safetensors"
}
}

23
special_tokens_map.json Normal file
View File

@@ -0,0 +1,23 @@
{
"bos_token": {
"content": "<|startoftext|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"eos_token": {
"content": "<|return|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"pad_token": {
"content": "<|endoftext|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
}
}

3
tokenizer.json Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0614fe83cadab421296e664e1f48f4261fa8fef6e03e63bb75c20f38e37d07d3
size 27868174

183
tokenizer_config.json Normal file
View File

@@ -0,0 +1,183 @@
{
"added_tokens_decoder": {
"199998": {
"content": "<|startoftext|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"199999": {
"content": "<|endoftext|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200000": {
"content": "<|reserved_200000|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200001": {
"content": "<|reserved_200001|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200002": {
"content": "<|return|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200003": {
"content": "<|constrain|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200004": {
"content": "<|reserved_200004|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200005": {
"content": "<|channel|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200006": {
"content": "<|start|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200007": {
"content": "<|end|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200008": {
"content": "<|message|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200009": {
"content": "<|reserved_200009|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200010": {
"content": "<|reserved_200010|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200011": {
"content": "<|reserved_200011|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200012": {
"content": "<|call|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200013": {
"content": "<|reserved_200013|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200014": {
"content": "<|reserved_200014|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200015": {
"content": "<|reserved_200015|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200016": {
"content": "<|reserved_200016|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200017": {
"content": "<|reserved_200017|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"200018": {
"content": "<|endofprompt|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
}
},
"bos_token": "<|startoftext|>",
"clean_up_tokenization_spaces": false,
"eos_token": "<|return|>",
"extra_special_tokens": {},
"model_input_names": [
"input_ids",
"attention_mask"
],
"model_max_length": 1000000000000000019884624838656,
"pad_token": "<|endoftext|>",
"tokenizer_class": "PreTrainedTokenizerFast"
}