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

Model: AmanPriyanshu/gpt-oss-13.1b-specialized-science-pruned-moe-only-19-experts
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-04-21 16:29:43 +08:00
commit 457460ed0b
25 changed files with 2041 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

356
README.md Normal file
View File

@@ -0,0 +1,356 @@
---
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
- science
- specialized
- efficient
- transformer
- causal-lm
- text-generation
- pytorch
- pruned-model
- domain-specific
---
# Science GPT-OSS Model (19 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 19 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 science 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.1B (pruned from 21B) |
| **Original Experts per Layer** | 32 |
| **Pruned Experts per Layer** | 19 |
| **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** | Science |
## 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 science evaluation tasks
- **Systematic Reduction**: Reduced from 32 to 19 experts per layer
- **No Retraining**: Direct removal without additional training steps
## Performance & Applications
### Pruning Benefits
- **Smaller Memory Footprint**: 59.4% of original expert parameters
- **Reduced Computational Load**: Fewer routing decisions during inference
- **Focused Capabilities**: Retains experts relevant to science 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 science-specialized model leverages experts that showed high activation patterns during scientific reasoning tasks from GPQA (physics, chemistry, biology) and MMLU science domains. These experts demonstrate superior performance on complex scientific problem-solving and technical knowledge recall.
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 science tasks, we created this specialized model that maintains domain expertise while significantly reducing computational requirements from 32 to 19 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 19 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.1b-specialized-science-pruned-moe-only-19-experts",
torch_dtype=torch.bfloat16,
device_map="cpu",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("AmanPriyanshu/gpt-oss-13.1b-specialized-science-pruned-moe-only-19-experts")
# Generate with the model
messages = [
{"role": "user", "content": "Explain the process of photosynthesis in plants."}
]
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.1b-specialized-science-pruned-moe-only-19-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.1b-specialized-science-pruned-moe-only-19-experts")
# Generate with the model
messages = [
{"role": "user", "content": "Explain the process of photosynthesis in plants."}
]
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 science tasks:
### Example 1
**Question:** Explain the process of photosynthesis in plants.
**Response:**
```
<|channel|>analysis<|message|>Need concise explanation.<|end|><|start|>assistant<|channel|>final<|message|>**Photosynthesis in Plants A StepbyStep Overview**
| **Stage** | **What Happens** | **Key Players** | **Result** |
|---|---|---|---|
| 1. **Light Capture** | Sunlight hits chlorophyllcontaining pigments in the thylakoid membranes of chloroplasts. | • Chlorophyll a & b<br>• Carotenoids (protective pigments) | • Excited electrons are released from chlorophyll |
| 2. **Electron Transport Chain (ETC)** | Excited electrons travel through a series of proteins (photosystem II → cytochrome b₆₀ → photosystem I → cytochrome a₁₀). | • Photosystem II (PSII)<br>• Photosystem I (PSI)<br>• Cytochrome complexes | • Energy is stored in ATP (via proton gradient) and NADPH (via electron reduction) |
| 3. **Carbon Fixation (Calvin Cycle)** | CO₂ from the air is incorporated into sugars using ATP and NADPH. | • Ribulose1phosphate carboxylaseoxygenase (RuBisCO)<br>• Other enzymes (e.g., GAPDH, PGK) | • Glyceraldehyde3phosphate → 3phosphoglycerate → 1bromopentose → glucose & other carbohydrates |
| 4. **Oxygen Release** | Water molecules split (photolysis) in PSII, releasing O₂ as a byproduct. | • Watersplitting enzyme (H₂O → 2H⁺ + 4e⁻ + O₂) | • O₂ diffuses out through stomata |
### QuickLine Summary
1. **Light energy** excites chlorophyll → electrons are freed.
2. Electrons travel through the ETC, generating **ATP** and **NADPH**.
3. **ATP + NADPH** power the Calvin cycle, fixing atmospheric CO₂ into glucose.
4. **Water** is split to supply electrons, releasing **oxygen**.
**Result:** Plants convert light, CO₂, and H₂O into glucose (energy source) and O₂ (lifesupporting gas).<|return|>
```
---
### Example 2
**Question:** What causes the greenhouse effect and how does it work?
**Response:**
```
<|channel|>analysis<|message|>Need explain greenhouse effect, causes, mechanism.<|end|><|start|>assistant<|channel|>final<|message|>### 1. What is the Greenhouse Effect?
The **greenhouse effect** is a natural process that keeps Earths surface warm enough to support life. It works by trapping a portion of the Suns energy that would otherwise escape into space, much like a greenhouse traps heat.
---
## 2. What Causes the Greenhouse Effect?
| **Primary Cause** | **How it Works** |
|-------------------|-------------------|
| **Atmospheric Greenhouse Gases** | Gases that absorb and reradiate infrared (IR) radiation emitted by the Earths surface. |
| **Key Gases** | • **Water vapor (H₂O)** ~70% of the natural greenhouse effect. <br>• **Carbon dioxide (CO₂)** ~20% (humanproduced ~0.04% of the atmosphere). <br>• **Methane (CH₄)** ~1% (humanproduced ~0.0002%). <br>• **Nitrous oxide (N₂O)**, **ozone (O₃)**, and **CFCs** smaller but potent contributors. |
| **Human Activities** | • Burning fossil fuels (coal, oil, gas). <br>• Deforec­tion and landuse changes. <br>• Agriculture (especially livestock, rice paddies). <br>• Industrial processes (cement, ammonia). |
| **Resulting Increase** | Since the preindustrial era (~1850), atmospheric CO₂ has risen from ~280ppm to ~420ppm, and the total greenhousegas forcing has increased by ~1.8Wm⁻². |
---
## 3. How Does the Greenhouse Effect Work? (StepbyStep)
1. **Solar Radiation Arranges**
* The Sun emits mainly visible and nearinfrared (NIR) light.
* About 30% of this is reflected by clouds, ice, and the Earths surface.
* Roughly 70% reaches the surface and is absorbed, warming the land, oceans, and atmosphere.
2. **Earths Surface ReRadiates**
* The warmed surface emits thermal radiation, mostly in the **longwave (infrared)** part of the spectrum (≈ 550
```
---
### Example 3
**Question:** Describe the structure and function of DNA.
**Response:**
```
<|channel|>analysis<|message|>Need concise description.<|end|><|start|>assistant<|channel|>final<|message|>**DNA (Deoxyribonucleic Acid)** is the hereditary genetic material that carries the instructions for building and regulating all living organisms. Its structure and function can be broken down into several key components:
| **Structure** | **Function** |
|---|---|
| **DoubleHelix Backbone** Two complementary strands of nucleotides wound around each other in a righthanded helix. The sugarphosphate backbone provides structural stability and protects the genetic code. | **Genetic Information Storage** The sequence of nucleotides encodes the instructions for proteins and RNA molecules. |
| **Nucleotides** Four bases (Adenine, Thymine, Cytosine, Guanine) pair via hydrogen bonds (AT, CG). | **Protein Synthesis** During transcription, RNA polymerase reads the DNA sequence and produces messenger RNA (mRNA), which is translated into proteins. |
| **Major & Minor Groes** The helical twist creates grooves that allow proteins (e.g., transcription factors, nucleases) to access the DNA. | **Regulation of Gene Expression** DNAbinding proteins recognize specific sequences in the grooves to activate or repress genes. |
| **Chromatin Packaging** In eukaryotes, DNA wraps around histone proteins to form nucleosomes, which further coil into higherorder structures (chromosomes). | **Cell Division & Chromosome Segregation** Proper packaging ensures accurate duplication and segregation of genetic material during mitosis and meiosis. |
| **Replication Origin Sites** Specific sequences (e.g., ATrich “origin of replication”) where DNA helicase unwinds the strands. | **DNA Replication** The double helix is copied during cell division, ensuring each daughter cell receives a complete genome. |
| **Repair Mechanisms** Enzymes (e.g., DNA polymerase, ligase, helicase) correct mismatches, breaks, and mutations. | **Genome Integrity** Maintains fidelity of genetic information across generations. |
**Key Functional Roles**
1. **Encoding Genetic Code** Determines amino acid sequences of proteins, regulatory RNAs, and other biomolecules.
2. **Regulation of Gene Activity** DNA sequences (promoters, enhancers, silencers) control when and where genes are expressed.
3. **Inheritance** Passed from parent to offspring,
```
---
## 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": 19,
"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
}

506
expert_mapping.json Normal file
View File

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

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:6d4625abf0aaf00e12a073f5727464927eb5f3b515b9115a582825114eb5a151
size 1842071526

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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": 13147604232,
"total_size": 26295208464
},
"weight_map": {
"lm_head.weight": "model-00014-of-00014.safetensors",
"model.embed_tokens.weight": "model-00001-of-00014.safetensors",
"model.layers.0.input_layernorm.weight": "model-00002-of-00014.safetensors",
"model.layers.0.mlp.experts.down_proj": "model-00002-of-00014.safetensors",
"model.layers.0.mlp.experts.down_proj_bias": "model-00002-of-00014.safetensors",
"model.layers.0.mlp.experts.gate_up_proj": "model-00001-of-00014.safetensors",
"model.layers.0.mlp.experts.gate_up_proj_bias": "model-00001-of-00014.safetensors",
"model.layers.0.mlp.router.bias": "model-00001-of-00014.safetensors",
"model.layers.0.mlp.router.weight": "model-00001-of-00014.safetensors",
"model.layers.0.post_attention_layernorm.weight": "model-00002-of-00014.safetensors",
"model.layers.0.self_attn.k_proj.bias": "model-00001-of-00014.safetensors",
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00014.safetensors",
"model.layers.0.self_attn.o_proj.bias": "model-00001-of-00014.safetensors",
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00014.safetensors",
"model.layers.0.self_attn.q_proj.bias": "model-00001-of-00014.safetensors",
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00014.safetensors",
"model.layers.0.self_attn.sinks": "model-00001-of-00014.safetensors",
"model.layers.0.self_attn.v_proj.bias": "model-00001-of-00014.safetensors",
"model.layers.0.self_attn.v_proj.weight": "model-00001-of-00014.safetensors",
"model.layers.1.input_layernorm.weight": "model-00002-of-00014.safetensors",
"model.layers.1.mlp.experts.down_proj": "model-00002-of-00014.safetensors",
"model.layers.1.mlp.experts.down_proj_bias": "model-00002-of-00014.safetensors",
"model.layers.1.mlp.experts.gate_up_proj": "model-00002-of-00014.safetensors",
"model.layers.1.mlp.experts.gate_up_proj_bias": "model-00002-of-00014.safetensors",
"model.layers.1.mlp.router.bias": "model-00002-of-00014.safetensors",
"model.layers.1.mlp.router.weight": "model-00002-of-00014.safetensors",
"model.layers.1.post_attention_layernorm.weight": "model-00002-of-00014.safetensors",
"model.layers.1.self_attn.k_proj.bias": "model-00002-of-00014.safetensors",
"model.layers.1.self_attn.k_proj.weight": "model-00002-of-00014.safetensors",
"model.layers.1.self_attn.o_proj.bias": "model-00002-of-00014.safetensors",
"model.layers.1.self_attn.o_proj.weight": "model-00002-of-00014.safetensors",
"model.layers.1.self_attn.q_proj.bias": "model-00002-of-00014.safetensors",
"model.layers.1.self_attn.q_proj.weight": "model-00002-of-00014.safetensors",
"model.layers.1.self_attn.sinks": "model-00002-of-00014.safetensors",
"model.layers.1.self_attn.v_proj.bias": "model-00002-of-00014.safetensors",
"model.layers.1.self_attn.v_proj.weight": "model-00002-of-00014.safetensors",
"model.layers.10.input_layernorm.weight": "model-00007-of-00014.safetensors",
"model.layers.10.mlp.experts.down_proj": "model-00007-of-00014.safetensors",
"model.layers.10.mlp.experts.down_proj_bias": "model-00007-of-00014.safetensors",
"model.layers.10.mlp.experts.gate_up_proj": "model-00006-of-00014.safetensors",
"model.layers.10.mlp.experts.gate_up_proj_bias": "model-00006-of-00014.safetensors",
"model.layers.10.mlp.router.bias": "model-00006-of-00014.safetensors",
"model.layers.10.mlp.router.weight": "model-00006-of-00014.safetensors",
"model.layers.10.post_attention_layernorm.weight": "model-00007-of-00014.safetensors",
"model.layers.10.self_attn.k_proj.bias": "model-00006-of-00014.safetensors",
"model.layers.10.self_attn.k_proj.weight": "model-00006-of-00014.safetensors",
"model.layers.10.self_attn.o_proj.bias": "model-00006-of-00014.safetensors",
"model.layers.10.self_attn.o_proj.weight": "model-00006-of-00014.safetensors",
"model.layers.10.self_attn.q_proj.bias": "model-00006-of-00014.safetensors",
"model.layers.10.self_attn.q_proj.weight": "model-00006-of-00014.safetensors",
"model.layers.10.self_attn.sinks": "model-00006-of-00014.safetensors",
"model.layers.10.self_attn.v_proj.bias": "model-00006-of-00014.safetensors",
"model.layers.10.self_attn.v_proj.weight": "model-00006-of-00014.safetensors",
"model.layers.11.input_layernorm.weight": "model-00007-of-00014.safetensors",
"model.layers.11.mlp.experts.down_proj": "model-00007-of-00014.safetensors",
"model.layers.11.mlp.experts.down_proj_bias": "model-00007-of-00014.safetensors",
"model.layers.11.mlp.experts.gate_up_proj": "model-00007-of-00014.safetensors",
"model.layers.11.mlp.experts.gate_up_proj_bias": "model-00007-of-00014.safetensors",
"model.layers.11.mlp.router.bias": "model-00007-of-00014.safetensors",
"model.layers.11.mlp.router.weight": "model-00007-of-00014.safetensors",
"model.layers.11.post_attention_layernorm.weight": "model-00007-of-00014.safetensors",
"model.layers.11.self_attn.k_proj.bias": "model-00007-of-00014.safetensors",
"model.layers.11.self_attn.k_proj.weight": "model-00007-of-00014.safetensors",
"model.layers.11.self_attn.o_proj.bias": "model-00007-of-00014.safetensors",
"model.layers.11.self_attn.o_proj.weight": "model-00007-of-00014.safetensors",
"model.layers.11.self_attn.q_proj.bias": "model-00007-of-00014.safetensors",
"model.layers.11.self_attn.q_proj.weight": "model-00007-of-00014.safetensors",
"model.layers.11.self_attn.sinks": "model-00007-of-00014.safetensors",
"model.layers.11.self_attn.v_proj.bias": "model-00007-of-00014.safetensors",
"model.layers.11.self_attn.v_proj.weight": "model-00007-of-00014.safetensors",
"model.layers.12.input_layernorm.weight": "model-00008-of-00014.safetensors",
"model.layers.12.mlp.experts.down_proj": "model-00008-of-00014.safetensors",
"model.layers.12.mlp.experts.down_proj_bias": "model-00008-of-00014.safetensors",
"model.layers.12.mlp.experts.gate_up_proj": "model-00007-of-00014.safetensors",
"model.layers.12.mlp.experts.gate_up_proj_bias": "model-00007-of-00014.safetensors",
"model.layers.12.mlp.router.bias": "model-00007-of-00014.safetensors",
"model.layers.12.mlp.router.weight": "model-00007-of-00014.safetensors",
"model.layers.12.post_attention_layernorm.weight": "model-00008-of-00014.safetensors",
"model.layers.12.self_attn.k_proj.bias": "model-00007-of-00014.safetensors",
"model.layers.12.self_attn.k_proj.weight": "model-00007-of-00014.safetensors",
"model.layers.12.self_attn.o_proj.bias": "model-00007-of-00014.safetensors",
"model.layers.12.self_attn.o_proj.weight": "model-00007-of-00014.safetensors",
"model.layers.12.self_attn.q_proj.bias": "model-00007-of-00014.safetensors",
"model.layers.12.self_attn.q_proj.weight": "model-00007-of-00014.safetensors",
"model.layers.12.self_attn.sinks": "model-00007-of-00014.safetensors",
"model.layers.12.self_attn.v_proj.bias": "model-00007-of-00014.safetensors",
"model.layers.12.self_attn.v_proj.weight": "model-00007-of-00014.safetensors",
"model.layers.13.input_layernorm.weight": "model-00008-of-00014.safetensors",
"model.layers.13.mlp.experts.down_proj": "model-00008-of-00014.safetensors",
"model.layers.13.mlp.experts.down_proj_bias": "model-00008-of-00014.safetensors",
"model.layers.13.mlp.experts.gate_up_proj": "model-00008-of-00014.safetensors",
"model.layers.13.mlp.experts.gate_up_proj_bias": "model-00008-of-00014.safetensors",
"model.layers.13.mlp.router.bias": "model-00008-of-00014.safetensors",
"model.layers.13.mlp.router.weight": "model-00008-of-00014.safetensors",
"model.layers.13.post_attention_layernorm.weight": "model-00008-of-00014.safetensors",
"model.layers.13.self_attn.k_proj.bias": "model-00008-of-00014.safetensors",
"model.layers.13.self_attn.k_proj.weight": "model-00008-of-00014.safetensors",
"model.layers.13.self_attn.o_proj.bias": "model-00008-of-00014.safetensors",
"model.layers.13.self_attn.o_proj.weight": "model-00008-of-00014.safetensors",
"model.layers.13.self_attn.q_proj.bias": "model-00008-of-00014.safetensors",
"model.layers.13.self_attn.q_proj.weight": "model-00008-of-00014.safetensors",
"model.layers.13.self_attn.sinks": "model-00008-of-00014.safetensors",
"model.layers.13.self_attn.v_proj.bias": "model-00008-of-00014.safetensors",
"model.layers.13.self_attn.v_proj.weight": "model-00008-of-00014.safetensors",
"model.layers.14.input_layernorm.weight": "model-00009-of-00014.safetensors",
"model.layers.14.mlp.experts.down_proj": "model-00009-of-00014.safetensors",
"model.layers.14.mlp.experts.down_proj_bias": "model-00009-of-00014.safetensors",
"model.layers.14.mlp.experts.gate_up_proj": "model-00008-of-00014.safetensors",
"model.layers.14.mlp.experts.gate_up_proj_bias": "model-00008-of-00014.safetensors",
"model.layers.14.mlp.router.bias": "model-00008-of-00014.safetensors",
"model.layers.14.mlp.router.weight": "model-00008-of-00014.safetensors",
"model.layers.14.post_attention_layernorm.weight": "model-00009-of-00014.safetensors",
"model.layers.14.self_attn.k_proj.bias": "model-00008-of-00014.safetensors",
"model.layers.14.self_attn.k_proj.weight": "model-00008-of-00014.safetensors",
"model.layers.14.self_attn.o_proj.bias": "model-00008-of-00014.safetensors",
"model.layers.14.self_attn.o_proj.weight": "model-00008-of-00014.safetensors",
"model.layers.14.self_attn.q_proj.bias": "model-00008-of-00014.safetensors",
"model.layers.14.self_attn.q_proj.weight": "model-00008-of-00014.safetensors",
"model.layers.14.self_attn.sinks": "model-00008-of-00014.safetensors",
"model.layers.14.self_attn.v_proj.bias": "model-00008-of-00014.safetensors",
"model.layers.14.self_attn.v_proj.weight": "model-00008-of-00014.safetensors",
"model.layers.15.input_layernorm.weight": "model-00009-of-00014.safetensors",
"model.layers.15.mlp.experts.down_proj": "model-00009-of-00014.safetensors",
"model.layers.15.mlp.experts.down_proj_bias": "model-00009-of-00014.safetensors",
"model.layers.15.mlp.experts.gate_up_proj": "model-00009-of-00014.safetensors",
"model.layers.15.mlp.experts.gate_up_proj_bias": "model-00009-of-00014.safetensors",
"model.layers.15.mlp.router.bias": "model-00009-of-00014.safetensors",
"model.layers.15.mlp.router.weight": "model-00009-of-00014.safetensors",
"model.layers.15.post_attention_layernorm.weight": "model-00009-of-00014.safetensors",
"model.layers.15.self_attn.k_proj.bias": "model-00009-of-00014.safetensors",
"model.layers.15.self_attn.k_proj.weight": "model-00009-of-00014.safetensors",
"model.layers.15.self_attn.o_proj.bias": "model-00009-of-00014.safetensors",
"model.layers.15.self_attn.o_proj.weight": "model-00009-of-00014.safetensors",
"model.layers.15.self_attn.q_proj.bias": "model-00009-of-00014.safetensors",
"model.layers.15.self_attn.q_proj.weight": "model-00009-of-00014.safetensors",
"model.layers.15.self_attn.sinks": "model-00009-of-00014.safetensors",
"model.layers.15.self_attn.v_proj.bias": "model-00009-of-00014.safetensors",
"model.layers.15.self_attn.v_proj.weight": "model-00009-of-00014.safetensors",
"model.layers.16.input_layernorm.weight": "model-00010-of-00014.safetensors",
"model.layers.16.mlp.experts.down_proj": "model-00010-of-00014.safetensors",
"model.layers.16.mlp.experts.down_proj_bias": "model-00010-of-00014.safetensors",
"model.layers.16.mlp.experts.gate_up_proj": "model-00009-of-00014.safetensors",
"model.layers.16.mlp.experts.gate_up_proj_bias": "model-00009-of-00014.safetensors",
"model.layers.16.mlp.router.bias": "model-00009-of-00014.safetensors",
"model.layers.16.mlp.router.weight": "model-00009-of-00014.safetensors",
"model.layers.16.post_attention_layernorm.weight": "model-00010-of-00014.safetensors",
"model.layers.16.self_attn.k_proj.bias": "model-00009-of-00014.safetensors",
"model.layers.16.self_attn.k_proj.weight": "model-00009-of-00014.safetensors",
"model.layers.16.self_attn.o_proj.bias": "model-00009-of-00014.safetensors",
"model.layers.16.self_attn.o_proj.weight": "model-00009-of-00014.safetensors",
"model.layers.16.self_attn.q_proj.bias": "model-00009-of-00014.safetensors",
"model.layers.16.self_attn.q_proj.weight": "model-00009-of-00014.safetensors",
"model.layers.16.self_attn.sinks": "model-00009-of-00014.safetensors",
"model.layers.16.self_attn.v_proj.bias": "model-00009-of-00014.safetensors",
"model.layers.16.self_attn.v_proj.weight": "model-00009-of-00014.safetensors",
"model.layers.17.input_layernorm.weight": "model-00010-of-00014.safetensors",
"model.layers.17.mlp.experts.down_proj": "model-00010-of-00014.safetensors",
"model.layers.17.mlp.experts.down_proj_bias": "model-00010-of-00014.safetensors",
"model.layers.17.mlp.experts.gate_up_proj": "model-00010-of-00014.safetensors",
"model.layers.17.mlp.experts.gate_up_proj_bias": "model-00010-of-00014.safetensors",
"model.layers.17.mlp.router.bias": "model-00010-of-00014.safetensors",
"model.layers.17.mlp.router.weight": "model-00010-of-00014.safetensors",
"model.layers.17.post_attention_layernorm.weight": "model-00010-of-00014.safetensors",
"model.layers.17.self_attn.k_proj.bias": "model-00010-of-00014.safetensors",
"model.layers.17.self_attn.k_proj.weight": "model-00010-of-00014.safetensors",
"model.layers.17.self_attn.o_proj.bias": "model-00010-of-00014.safetensors",
"model.layers.17.self_attn.o_proj.weight": "model-00010-of-00014.safetensors",
"model.layers.17.self_attn.q_proj.bias": "model-00010-of-00014.safetensors",
"model.layers.17.self_attn.q_proj.weight": "model-00010-of-00014.safetensors",
"model.layers.17.self_attn.sinks": "model-00010-of-00014.safetensors",
"model.layers.17.self_attn.v_proj.bias": "model-00010-of-00014.safetensors",
"model.layers.17.self_attn.v_proj.weight": "model-00010-of-00014.safetensors",
"model.layers.18.input_layernorm.weight": "model-00011-of-00014.safetensors",
"model.layers.18.mlp.experts.down_proj": "model-00011-of-00014.safetensors",
"model.layers.18.mlp.experts.down_proj_bias": "model-00011-of-00014.safetensors",
"model.layers.18.mlp.experts.gate_up_proj": "model-00010-of-00014.safetensors",
"model.layers.18.mlp.experts.gate_up_proj_bias": "model-00010-of-00014.safetensors",
"model.layers.18.mlp.router.bias": "model-00010-of-00014.safetensors",
"model.layers.18.mlp.router.weight": "model-00010-of-00014.safetensors",
"model.layers.18.post_attention_layernorm.weight": "model-00011-of-00014.safetensors",
"model.layers.18.self_attn.k_proj.bias": "model-00010-of-00014.safetensors",
"model.layers.18.self_attn.k_proj.weight": "model-00010-of-00014.safetensors",
"model.layers.18.self_attn.o_proj.bias": "model-00010-of-00014.safetensors",
"model.layers.18.self_attn.o_proj.weight": "model-00010-of-00014.safetensors",
"model.layers.18.self_attn.q_proj.bias": "model-00010-of-00014.safetensors",
"model.layers.18.self_attn.q_proj.weight": "model-00010-of-00014.safetensors",
"model.layers.18.self_attn.sinks": "model-00010-of-00014.safetensors",
"model.layers.18.self_attn.v_proj.bias": "model-00010-of-00014.safetensors",
"model.layers.18.self_attn.v_proj.weight": "model-00010-of-00014.safetensors",
"model.layers.19.input_layernorm.weight": "model-00011-of-00014.safetensors",
"model.layers.19.mlp.experts.down_proj": "model-00011-of-00014.safetensors",
"model.layers.19.mlp.experts.down_proj_bias": "model-00011-of-00014.safetensors",
"model.layers.19.mlp.experts.gate_up_proj": "model-00011-of-00014.safetensors",
"model.layers.19.mlp.experts.gate_up_proj_bias": "model-00011-of-00014.safetensors",
"model.layers.19.mlp.router.bias": "model-00011-of-00014.safetensors",
"model.layers.19.mlp.router.weight": "model-00011-of-00014.safetensors",
"model.layers.19.post_attention_layernorm.weight": "model-00011-of-00014.safetensors",
"model.layers.19.self_attn.k_proj.bias": "model-00011-of-00014.safetensors",
"model.layers.19.self_attn.k_proj.weight": "model-00011-of-00014.safetensors",
"model.layers.19.self_attn.o_proj.bias": "model-00011-of-00014.safetensors",
"model.layers.19.self_attn.o_proj.weight": "model-00011-of-00014.safetensors",
"model.layers.19.self_attn.q_proj.bias": "model-00011-of-00014.safetensors",
"model.layers.19.self_attn.q_proj.weight": "model-00011-of-00014.safetensors",
"model.layers.19.self_attn.sinks": "model-00011-of-00014.safetensors",
"model.layers.19.self_attn.v_proj.bias": "model-00011-of-00014.safetensors",
"model.layers.19.self_attn.v_proj.weight": "model-00011-of-00014.safetensors",
"model.layers.2.input_layernorm.weight": "model-00003-of-00014.safetensors",
"model.layers.2.mlp.experts.down_proj": "model-00003-of-00014.safetensors",
"model.layers.2.mlp.experts.down_proj_bias": "model-00003-of-00014.safetensors",
"model.layers.2.mlp.experts.gate_up_proj": "model-00002-of-00014.safetensors",
"model.layers.2.mlp.experts.gate_up_proj_bias": "model-00002-of-00014.safetensors",
"model.layers.2.mlp.router.bias": "model-00002-of-00014.safetensors",
"model.layers.2.mlp.router.weight": "model-00002-of-00014.safetensors",
"model.layers.2.post_attention_layernorm.weight": "model-00003-of-00014.safetensors",
"model.layers.2.self_attn.k_proj.bias": "model-00002-of-00014.safetensors",
"model.layers.2.self_attn.k_proj.weight": "model-00002-of-00014.safetensors",
"model.layers.2.self_attn.o_proj.bias": "model-00002-of-00014.safetensors",
"model.layers.2.self_attn.o_proj.weight": "model-00002-of-00014.safetensors",
"model.layers.2.self_attn.q_proj.bias": "model-00002-of-00014.safetensors",
"model.layers.2.self_attn.q_proj.weight": "model-00002-of-00014.safetensors",
"model.layers.2.self_attn.sinks": "model-00002-of-00014.safetensors",
"model.layers.2.self_attn.v_proj.bias": "model-00002-of-00014.safetensors",
"model.layers.2.self_attn.v_proj.weight": "model-00002-of-00014.safetensors",
"model.layers.20.input_layernorm.weight": "model-00012-of-00014.safetensors",
"model.layers.20.mlp.experts.down_proj": "model-00012-of-00014.safetensors",
"model.layers.20.mlp.experts.down_proj_bias": "model-00012-of-00014.safetensors",
"model.layers.20.mlp.experts.gate_up_proj": "model-00011-of-00014.safetensors",
"model.layers.20.mlp.experts.gate_up_proj_bias": "model-00011-of-00014.safetensors",
"model.layers.20.mlp.router.bias": "model-00011-of-00014.safetensors",
"model.layers.20.mlp.router.weight": "model-00011-of-00014.safetensors",
"model.layers.20.post_attention_layernorm.weight": "model-00012-of-00014.safetensors",
"model.layers.20.self_attn.k_proj.bias": "model-00011-of-00014.safetensors",
"model.layers.20.self_attn.k_proj.weight": "model-00011-of-00014.safetensors",
"model.layers.20.self_attn.o_proj.bias": "model-00011-of-00014.safetensors",
"model.layers.20.self_attn.o_proj.weight": "model-00011-of-00014.safetensors",
"model.layers.20.self_attn.q_proj.bias": "model-00011-of-00014.safetensors",
"model.layers.20.self_attn.q_proj.weight": "model-00011-of-00014.safetensors",
"model.layers.20.self_attn.sinks": "model-00011-of-00014.safetensors",
"model.layers.20.self_attn.v_proj.bias": "model-00011-of-00014.safetensors",
"model.layers.20.self_attn.v_proj.weight": "model-00011-of-00014.safetensors",
"model.layers.21.input_layernorm.weight": "model-00012-of-00014.safetensors",
"model.layers.21.mlp.experts.down_proj": "model-00012-of-00014.safetensors",
"model.layers.21.mlp.experts.down_proj_bias": "model-00012-of-00014.safetensors",
"model.layers.21.mlp.experts.gate_up_proj": "model-00012-of-00014.safetensors",
"model.layers.21.mlp.experts.gate_up_proj_bias": "model-00012-of-00014.safetensors",
"model.layers.21.mlp.router.bias": "model-00012-of-00014.safetensors",
"model.layers.21.mlp.router.weight": "model-00012-of-00014.safetensors",
"model.layers.21.post_attention_layernorm.weight": "model-00012-of-00014.safetensors",
"model.layers.21.self_attn.k_proj.bias": "model-00012-of-00014.safetensors",
"model.layers.21.self_attn.k_proj.weight": "model-00012-of-00014.safetensors",
"model.layers.21.self_attn.o_proj.bias": "model-00012-of-00014.safetensors",
"model.layers.21.self_attn.o_proj.weight": "model-00012-of-00014.safetensors",
"model.layers.21.self_attn.q_proj.bias": "model-00012-of-00014.safetensors",
"model.layers.21.self_attn.q_proj.weight": "model-00012-of-00014.safetensors",
"model.layers.21.self_attn.sinks": "model-00012-of-00014.safetensors",
"model.layers.21.self_attn.v_proj.bias": "model-00012-of-00014.safetensors",
"model.layers.21.self_attn.v_proj.weight": "model-00012-of-00014.safetensors",
"model.layers.22.input_layernorm.weight": "model-00013-of-00014.safetensors",
"model.layers.22.mlp.experts.down_proj": "model-00013-of-00014.safetensors",
"model.layers.22.mlp.experts.down_proj_bias": "model-00013-of-00014.safetensors",
"model.layers.22.mlp.experts.gate_up_proj": "model-00012-of-00014.safetensors",
"model.layers.22.mlp.experts.gate_up_proj_bias": "model-00012-of-00014.safetensors",
"model.layers.22.mlp.router.bias": "model-00012-of-00014.safetensors",
"model.layers.22.mlp.router.weight": "model-00012-of-00014.safetensors",
"model.layers.22.post_attention_layernorm.weight": "model-00013-of-00014.safetensors",
"model.layers.22.self_attn.k_proj.bias": "model-00012-of-00014.safetensors",
"model.layers.22.self_attn.k_proj.weight": "model-00012-of-00014.safetensors",
"model.layers.22.self_attn.o_proj.bias": "model-00012-of-00014.safetensors",
"model.layers.22.self_attn.o_proj.weight": "model-00012-of-00014.safetensors",
"model.layers.22.self_attn.q_proj.bias": "model-00012-of-00014.safetensors",
"model.layers.22.self_attn.q_proj.weight": "model-00012-of-00014.safetensors",
"model.layers.22.self_attn.sinks": "model-00012-of-00014.safetensors",
"model.layers.22.self_attn.v_proj.bias": "model-00012-of-00014.safetensors",
"model.layers.22.self_attn.v_proj.weight": "model-00012-of-00014.safetensors",
"model.layers.23.input_layernorm.weight": "model-00013-of-00014.safetensors",
"model.layers.23.mlp.experts.down_proj": "model-00013-of-00014.safetensors",
"model.layers.23.mlp.experts.down_proj_bias": "model-00013-of-00014.safetensors",
"model.layers.23.mlp.experts.gate_up_proj": "model-00013-of-00014.safetensors",
"model.layers.23.mlp.experts.gate_up_proj_bias": "model-00013-of-00014.safetensors",
"model.layers.23.mlp.router.bias": "model-00013-of-00014.safetensors",
"model.layers.23.mlp.router.weight": "model-00013-of-00014.safetensors",
"model.layers.23.post_attention_layernorm.weight": "model-00013-of-00014.safetensors",
"model.layers.23.self_attn.k_proj.bias": "model-00013-of-00014.safetensors",
"model.layers.23.self_attn.k_proj.weight": "model-00013-of-00014.safetensors",
"model.layers.23.self_attn.o_proj.bias": "model-00013-of-00014.safetensors",
"model.layers.23.self_attn.o_proj.weight": "model-00013-of-00014.safetensors",
"model.layers.23.self_attn.q_proj.bias": "model-00013-of-00014.safetensors",
"model.layers.23.self_attn.q_proj.weight": "model-00013-of-00014.safetensors",
"model.layers.23.self_attn.sinks": "model-00013-of-00014.safetensors",
"model.layers.23.self_attn.v_proj.bias": "model-00013-of-00014.safetensors",
"model.layers.23.self_attn.v_proj.weight": "model-00013-of-00014.safetensors",
"model.layers.3.input_layernorm.weight": "model-00003-of-00014.safetensors",
"model.layers.3.mlp.experts.down_proj": "model-00003-of-00014.safetensors",
"model.layers.3.mlp.experts.down_proj_bias": "model-00003-of-00014.safetensors",
"model.layers.3.mlp.experts.gate_up_proj": "model-00003-of-00014.safetensors",
"model.layers.3.mlp.experts.gate_up_proj_bias": "model-00003-of-00014.safetensors",
"model.layers.3.mlp.router.bias": "model-00003-of-00014.safetensors",
"model.layers.3.mlp.router.weight": "model-00003-of-00014.safetensors",
"model.layers.3.post_attention_layernorm.weight": "model-00003-of-00014.safetensors",
"model.layers.3.self_attn.k_proj.bias": "model-00003-of-00014.safetensors",
"model.layers.3.self_attn.k_proj.weight": "model-00003-of-00014.safetensors",
"model.layers.3.self_attn.o_proj.bias": "model-00003-of-00014.safetensors",
"model.layers.3.self_attn.o_proj.weight": "model-00003-of-00014.safetensors",
"model.layers.3.self_attn.q_proj.bias": "model-00003-of-00014.safetensors",
"model.layers.3.self_attn.q_proj.weight": "model-00003-of-00014.safetensors",
"model.layers.3.self_attn.sinks": "model-00003-of-00014.safetensors",
"model.layers.3.self_attn.v_proj.bias": "model-00003-of-00014.safetensors",
"model.layers.3.self_attn.v_proj.weight": "model-00003-of-00014.safetensors",
"model.layers.4.input_layernorm.weight": "model-00004-of-00014.safetensors",
"model.layers.4.mlp.experts.down_proj": "model-00004-of-00014.safetensors",
"model.layers.4.mlp.experts.down_proj_bias": "model-00004-of-00014.safetensors",
"model.layers.4.mlp.experts.gate_up_proj": "model-00003-of-00014.safetensors",
"model.layers.4.mlp.experts.gate_up_proj_bias": "model-00003-of-00014.safetensors",
"model.layers.4.mlp.router.bias": "model-00003-of-00014.safetensors",
"model.layers.4.mlp.router.weight": "model-00003-of-00014.safetensors",
"model.layers.4.post_attention_layernorm.weight": "model-00004-of-00014.safetensors",
"model.layers.4.self_attn.k_proj.bias": "model-00003-of-00014.safetensors",
"model.layers.4.self_attn.k_proj.weight": "model-00003-of-00014.safetensors",
"model.layers.4.self_attn.o_proj.bias": "model-00003-of-00014.safetensors",
"model.layers.4.self_attn.o_proj.weight": "model-00003-of-00014.safetensors",
"model.layers.4.self_attn.q_proj.bias": "model-00003-of-00014.safetensors",
"model.layers.4.self_attn.q_proj.weight": "model-00003-of-00014.safetensors",
"model.layers.4.self_attn.sinks": "model-00003-of-00014.safetensors",
"model.layers.4.self_attn.v_proj.bias": "model-00003-of-00014.safetensors",
"model.layers.4.self_attn.v_proj.weight": "model-00003-of-00014.safetensors",
"model.layers.5.input_layernorm.weight": "model-00004-of-00014.safetensors",
"model.layers.5.mlp.experts.down_proj": "model-00004-of-00014.safetensors",
"model.layers.5.mlp.experts.down_proj_bias": "model-00004-of-00014.safetensors",
"model.layers.5.mlp.experts.gate_up_proj": "model-00004-of-00014.safetensors",
"model.layers.5.mlp.experts.gate_up_proj_bias": "model-00004-of-00014.safetensors",
"model.layers.5.mlp.router.bias": "model-00004-of-00014.safetensors",
"model.layers.5.mlp.router.weight": "model-00004-of-00014.safetensors",
"model.layers.5.post_attention_layernorm.weight": "model-00004-of-00014.safetensors",
"model.layers.5.self_attn.k_proj.bias": "model-00004-of-00014.safetensors",
"model.layers.5.self_attn.k_proj.weight": "model-00004-of-00014.safetensors",
"model.layers.5.self_attn.o_proj.bias": "model-00004-of-00014.safetensors",
"model.layers.5.self_attn.o_proj.weight": "model-00004-of-00014.safetensors",
"model.layers.5.self_attn.q_proj.bias": "model-00004-of-00014.safetensors",
"model.layers.5.self_attn.q_proj.weight": "model-00004-of-00014.safetensors",
"model.layers.5.self_attn.sinks": "model-00004-of-00014.safetensors",
"model.layers.5.self_attn.v_proj.bias": "model-00004-of-00014.safetensors",
"model.layers.5.self_attn.v_proj.weight": "model-00004-of-00014.safetensors",
"model.layers.6.input_layernorm.weight": "model-00005-of-00014.safetensors",
"model.layers.6.mlp.experts.down_proj": "model-00005-of-00014.safetensors",
"model.layers.6.mlp.experts.down_proj_bias": "model-00005-of-00014.safetensors",
"model.layers.6.mlp.experts.gate_up_proj": "model-00004-of-00014.safetensors",
"model.layers.6.mlp.experts.gate_up_proj_bias": "model-00004-of-00014.safetensors",
"model.layers.6.mlp.router.bias": "model-00004-of-00014.safetensors",
"model.layers.6.mlp.router.weight": "model-00004-of-00014.safetensors",
"model.layers.6.post_attention_layernorm.weight": "model-00005-of-00014.safetensors",
"model.layers.6.self_attn.k_proj.bias": "model-00004-of-00014.safetensors",
"model.layers.6.self_attn.k_proj.weight": "model-00004-of-00014.safetensors",
"model.layers.6.self_attn.o_proj.bias": "model-00004-of-00014.safetensors",
"model.layers.6.self_attn.o_proj.weight": "model-00004-of-00014.safetensors",
"model.layers.6.self_attn.q_proj.bias": "model-00004-of-00014.safetensors",
"model.layers.6.self_attn.q_proj.weight": "model-00004-of-00014.safetensors",
"model.layers.6.self_attn.sinks": "model-00004-of-00014.safetensors",
"model.layers.6.self_attn.v_proj.bias": "model-00004-of-00014.safetensors",
"model.layers.6.self_attn.v_proj.weight": "model-00004-of-00014.safetensors",
"model.layers.7.input_layernorm.weight": "model-00005-of-00014.safetensors",
"model.layers.7.mlp.experts.down_proj": "model-00005-of-00014.safetensors",
"model.layers.7.mlp.experts.down_proj_bias": "model-00005-of-00014.safetensors",
"model.layers.7.mlp.experts.gate_up_proj": "model-00005-of-00014.safetensors",
"model.layers.7.mlp.experts.gate_up_proj_bias": "model-00005-of-00014.safetensors",
"model.layers.7.mlp.router.bias": "model-00005-of-00014.safetensors",
"model.layers.7.mlp.router.weight": "model-00005-of-00014.safetensors",
"model.layers.7.post_attention_layernorm.weight": "model-00005-of-00014.safetensors",
"model.layers.7.self_attn.k_proj.bias": "model-00005-of-00014.safetensors",
"model.layers.7.self_attn.k_proj.weight": "model-00005-of-00014.safetensors",
"model.layers.7.self_attn.o_proj.bias": "model-00005-of-00014.safetensors",
"model.layers.7.self_attn.o_proj.weight": "model-00005-of-00014.safetensors",
"model.layers.7.self_attn.q_proj.bias": "model-00005-of-00014.safetensors",
"model.layers.7.self_attn.q_proj.weight": "model-00005-of-00014.safetensors",
"model.layers.7.self_attn.sinks": "model-00005-of-00014.safetensors",
"model.layers.7.self_attn.v_proj.bias": "model-00005-of-00014.safetensors",
"model.layers.7.self_attn.v_proj.weight": "model-00005-of-00014.safetensors",
"model.layers.8.input_layernorm.weight": "model-00006-of-00014.safetensors",
"model.layers.8.mlp.experts.down_proj": "model-00006-of-00014.safetensors",
"model.layers.8.mlp.experts.down_proj_bias": "model-00006-of-00014.safetensors",
"model.layers.8.mlp.experts.gate_up_proj": "model-00005-of-00014.safetensors",
"model.layers.8.mlp.experts.gate_up_proj_bias": "model-00005-of-00014.safetensors",
"model.layers.8.mlp.router.bias": "model-00005-of-00014.safetensors",
"model.layers.8.mlp.router.weight": "model-00005-of-00014.safetensors",
"model.layers.8.post_attention_layernorm.weight": "model-00006-of-00014.safetensors",
"model.layers.8.self_attn.k_proj.bias": "model-00005-of-00014.safetensors",
"model.layers.8.self_attn.k_proj.weight": "model-00005-of-00014.safetensors",
"model.layers.8.self_attn.o_proj.bias": "model-00005-of-00014.safetensors",
"model.layers.8.self_attn.o_proj.weight": "model-00005-of-00014.safetensors",
"model.layers.8.self_attn.q_proj.bias": "model-00005-of-00014.safetensors",
"model.layers.8.self_attn.q_proj.weight": "model-00005-of-00014.safetensors",
"model.layers.8.self_attn.sinks": "model-00005-of-00014.safetensors",
"model.layers.8.self_attn.v_proj.bias": "model-00005-of-00014.safetensors",
"model.layers.8.self_attn.v_proj.weight": "model-00005-of-00014.safetensors",
"model.layers.9.input_layernorm.weight": "model-00006-of-00014.safetensors",
"model.layers.9.mlp.experts.down_proj": "model-00006-of-00014.safetensors",
"model.layers.9.mlp.experts.down_proj_bias": "model-00006-of-00014.safetensors",
"model.layers.9.mlp.experts.gate_up_proj": "model-00006-of-00014.safetensors",
"model.layers.9.mlp.experts.gate_up_proj_bias": "model-00006-of-00014.safetensors",
"model.layers.9.mlp.router.bias": "model-00006-of-00014.safetensors",
"model.layers.9.mlp.router.weight": "model-00006-of-00014.safetensors",
"model.layers.9.post_attention_layernorm.weight": "model-00006-of-00014.safetensors",
"model.layers.9.self_attn.k_proj.bias": "model-00006-of-00014.safetensors",
"model.layers.9.self_attn.k_proj.weight": "model-00006-of-00014.safetensors",
"model.layers.9.self_attn.o_proj.bias": "model-00006-of-00014.safetensors",
"model.layers.9.self_attn.o_proj.weight": "model-00006-of-00014.safetensors",
"model.layers.9.self_attn.q_proj.bias": "model-00006-of-00014.safetensors",
"model.layers.9.self_attn.q_proj.weight": "model-00006-of-00014.safetensors",
"model.layers.9.self_attn.sinks": "model-00006-of-00014.safetensors",
"model.layers.9.self_attn.v_proj.bias": "model-00006-of-00014.safetensors",
"model.layers.9.self_attn.v_proj.weight": "model-00006-of-00014.safetensors",
"model.norm.weight": "model-00013-of-00014.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"
}