初始化项目,由ModelHub XC社区提供模型
Model: cyankiwi/Qwen3-Nemotron-32B-RLBFF-AWQ-8bit Source: Original Platform
This commit is contained in:
59
.gitattributes
vendored
Normal file
59
.gitattributes
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 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
|
||||||
|
*.model filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.msgpack 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
|
||||||
|
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
saved_model/**/* 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
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.db* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ark* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
|
||||||
|
**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
||||||
|
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gguf* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ggml filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.llamafile* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pt2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
||||||
|
model-00002-of-00008.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
merges.txt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
model-00005-of-00008.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
model-00001-of-00008.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
||||||
|
model-00003-of-00008.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
model-00004-of-00008.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
model-00008-of-00008.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
model-00007-of-00008.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
vocab.json filter=lfs diff=lfs merge=lfs -text
|
||||||
|
model-00006-of-00008.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
266
README.md
Normal file
266
README.md
Normal file
@@ -0,0 +1,266 @@
|
|||||||
|
---
|
||||||
|
license: other
|
||||||
|
license_name: nvidia-open-model-license
|
||||||
|
license_link: >-
|
||||||
|
https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/
|
||||||
|
inference: false
|
||||||
|
fine-tuning: false
|
||||||
|
language:
|
||||||
|
- en
|
||||||
|
tags:
|
||||||
|
- nvidia
|
||||||
|
- qwen3
|
||||||
|
datasets:
|
||||||
|
- nvidia/HelpSteer3
|
||||||
|
base_model: nvidia/Qwen3-Nemotron-32B-RLBFF
|
||||||
|
library_name: transformers
|
||||||
|
---
|
||||||
|
|
||||||
|
# Qwen3-Nemotron-32B-RLBFF AWQ - INT8
|
||||||
|
|
||||||
|
## Model Details
|
||||||
|
|
||||||
|
- **Quantization Method:** AWQ
|
||||||
|
- **Bits:** 8
|
||||||
|
- **Group Size:** 32
|
||||||
|
- **Calibration Dataset:** [nvidia/Llama-Nemotron-Post-Training-Dataset](https://huggingface.co/datasets/nvidia/Llama-Nemotron-Post-Training-Dataset)
|
||||||
|
- **Quantization Tool:** [llm-compressor](https://github.com/vllm-project/llm-compressor)
|
||||||
|
|
||||||
|
## Inference
|
||||||
|
|
||||||
|
### Prerequisite
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install -U vllm
|
||||||
|
```
|
||||||
|
|
||||||
|
### Basic Usage
|
||||||
|
|
||||||
|
```bash
|
||||||
|
vllm serve cyankiwi/Qwen3-Nemotron-32B-RLBFF-AWQ-8bit
|
||||||
|
```
|
||||||
|
## Additional Information
|
||||||
|
|
||||||
|
### Changelog
|
||||||
|
|
||||||
|
- **v1.0.0** - Initial quantized release
|
||||||
|
|
||||||
|
### Authors
|
||||||
|
|
||||||
|
- **Name:** cyankiwi
|
||||||
|
|
||||||
|
- **Contacts:** ton@cyan.kiwi
|
||||||
|
|
||||||
|
# Model Overview
|
||||||
|
|
||||||
|
## Description:
|
||||||
|
|
||||||
|
Qwen3-Nemotron-32B-RLBFF is a large language model that leverages Qwen/Qwen3-32B as the foundation and is fine-tuned to improve the quality of LLM-generated responses in the default thinking mode.
|
||||||
|
|
||||||
|
Given a conversation with multiple turns between user and assistant and a user-specified principle, it generates a response the final user turn.
|
||||||
|
|
||||||
|
**This is a research model** described in and is released to support the following research paper: [https://arxiv.org/abs/2509.21319](https://arxiv.org/abs/2509.21319)
|
||||||
|
|
||||||
|
As of 24 Sep 2025, this model achieves [Arena Hard V2](https://github.com/lmarena/arena-hard-auto) of 55.6% and [WildBench](https://huggingface.co/spaces/allenai/WildBench) Score of 70.33% and [MT Bench](https://arxiv.org/abs/2306.05685) of 9.50. This means that our model is substantially improved over the initial Qwen3-32B model and has similar performance compared to DeepSeek R1 and O3-mini at less than 5% of the inference cost (as indicated on openrouter).
|
||||||
|
|
||||||
|
|
||||||
|
## License/Terms of Use:
|
||||||
|
|
||||||
|
GOVERNING TERMS: Use of this model is governed by the [NVIDIA Open Model License](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/).
|
||||||
|
|
||||||
|
|
||||||
|
### Deployment Geography
|
||||||
|
|
||||||
|
Global
|
||||||
|
|
||||||
|
## Use Case:
|
||||||
|
|
||||||
|
Qwen3-Nemotron-32B-RLBFF generates an response to a user query.
|
||||||
|
|
||||||
|
## Release Date:
|
||||||
|
|
||||||
|
HuggingFace 10/27/2025 via https://huggingface.co/nvidia/Qwen3-Nemotron-32B-RLBFF
|
||||||
|
|
||||||
|
## References:
|
||||||
|
|
||||||
|
* [RLBFF](https://arxiv.org/abs/2509.21319)
|
||||||
|
* [HelpSteer3](https://arxiv.org/abs/2503.04378)
|
||||||
|
* [HelpSteer3-Preference](https://arxiv.org/abs/2505.11475)
|
||||||
|
* [HelpSteer2-Preference](https://arxiv.org/abs/2410.01257)
|
||||||
|
* [SteerLM method](https://arxiv.org/abs/2310.05344)
|
||||||
|
* [HelpSteer](https://arxiv.org/abs/2311.09528)
|
||||||
|
* [HelpSteer2](https://arxiv.org/abs/2406.08673)
|
||||||
|
|
||||||
|
|
||||||
|
## LeaderBoards
|
||||||
|
|
||||||
|
Arena Hard V2, WildBench and MT Bench are common benchmarks for measuring general-domain model capabilities.
|
||||||
|
|
||||||
|
| Model | MT Bench (GPT-4-Turbo) | Arena Hard v2 (95% CI) | WildBench Overall | Creative | Planning | Data Analy. | Info. Seek. | Coding | In/M | Out/M | Cost |
|
||||||
|
|:--------------------------------------------|:------------------:|:----------------------:|:----------------:|:---------:|:---------:|:-----------:|:-----------:|:-------:|:----:|:----:|:----:|
|
||||||
|
| **Qwen3-Nemotron-32B-RLBFF** | **9.50** | _55.6_ (-1.6 / +1.4) | _70.33_ | 71.73 | 70.73 | 69.37 | 68.96 | 70.94 | 0.018 | 0.072 | **1×** |
|
||||||
|
| Qwen3-32B | 9.38 | 44.0 (-1.6 / +1.5) | 67.57 | 68.63 | 67.95 | 64.68 | 66.78 | 69.53 | 0.018 | 0.072 | **1×** |
|
||||||
|
| o3-mini | 9.26 | 50.0 (-0.0 / +0.0) | **71.64** | 69.04 | 72.44 | 74.37 | 65.81 | 73.21 | 1.1 | 4.4 | 61× |
|
||||||
|
| Claude-3.7-Sonnet (Thinking) | 8.93 | 54.2 (-2.0 / +1.8) | 65.45 | 66.72 | 65.94 | 63.59 | 63.08 | 67.36 | 3 | 15 | 188× |
|
||||||
|
| DeepSeek R1 | _9.49_ | **57.4** (-2.0 / +2.0) | 64.24 | 70.75 | 66.29 | 59.20 | 68.56 | 61.04 | 0.4 | 2 | _25×_ |
|
||||||
|
|
||||||
|
|
||||||
|
## Model Architecture:
|
||||||
|
**Architecture Type:** Transformer <br>
|
||||||
|
**Network Architecture:** Qwen3 <br>
|
||||||
|
|
||||||
|
We developed this model using [Qwen/Qwen3-32B](https://huggingface.co/Qwen/Qwen3-32B) as its foundation. This model contains 32 billion parameters.
|
||||||
|
|
||||||
|
## Input:
|
||||||
|
**Input Type(s):** Text <br>
|
||||||
|
**Input Format:** String <br>
|
||||||
|
**Input Parameters:** One Dimensional (1D) <br>
|
||||||
|
**Other Properties Related to Input:** Max of 128k tokens (but trained only on conversations up to 4K tokens) <br>
|
||||||
|
|
||||||
|
## Output:
|
||||||
|
**Output Type(s):** Text <br>
|
||||||
|
**Output Format:** String <br>
|
||||||
|
**Output Parameters:** One-Dimensional (1D) <br>
|
||||||
|
**Other Properties Related to Output:** <br>
|
||||||
|
|
||||||
|
Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems. By leveraging NVIDIA’s hardware (e.g. GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions. <br>
|
||||||
|
|
||||||
|
## Software Integration:
|
||||||
|
**Runtime Engine(s):** <br>
|
||||||
|
* [NeMo-RL - 0.3] <br>
|
||||||
|
|
||||||
|
**Supported Hardware Microarchitecture Compatibility:** <br>
|
||||||
|
* NVIDIA Ampere <br>
|
||||||
|
* NVIDIA Hopper <br>
|
||||||
|
* NVIDIA Turing <br>
|
||||||
|
|
||||||
|
**Supported Operating System(s):** Linux <br>
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
You can use the model using HuggingFace Transformers library with 1 or more 80GB GPUs (NVIDIA Ampere or newer) with at least 70GB of free disk space to accomodate the download. Alternatively, you can use vLLM for accelerated inference.
|
||||||
|
|
||||||
|
This code has been tested on Transformers v4.57.0, torch v2.3.0a0+40ec155e58.nv24.3 and 1 H100 80GB GPUs, but any setup that supports Qwen/Qwen3-32B should support this model as well. If you run into problems, you can consider doing pip install -U transformers.
|
||||||
|
|
||||||
|
```python
|
||||||
|
import torch
|
||||||
|
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||||
|
|
||||||
|
model_name = "nvidia/Qwen3-Nemotron-32B-RLBFF"
|
||||||
|
|
||||||
|
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
|
||||||
|
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
||||||
|
|
||||||
|
prompt = "How many r are there in strawberry?"
|
||||||
|
|
||||||
|
messages = [{'role': "user", "content": prompt}]
|
||||||
|
|
||||||
|
tokenized_message = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt", return_dict=True)
|
||||||
|
|
||||||
|
response_token_ids = model.generate(tokenized_message['input_ids'].cuda(),attention_mask=tokenized_message['attention_mask'].cuda(), max_new_tokens=16000, return_dict_in_generate=True, output_scores=True)
|
||||||
|
|
||||||
|
response = tokenizer.decode(response_token_ids.sequences[0].tolist())
|
||||||
|
|
||||||
|
print(response)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Model Version:
|
||||||
|
v1.0
|
||||||
|
|
||||||
|
# Training, Testing and Evaluation Datasets:
|
||||||
|
|
||||||
|
## Training Datasets:
|
||||||
|
|
||||||
|
**Dataset Name:** HelpSteer3 <br>
|
||||||
|
**Dataset Link:** https://huggingface.co/datasets/nvidia/HelpSteer3
|
||||||
|
|
||||||
|
**Data Collection Method by dataset** <br>
|
||||||
|
* [Hybrid: Human, Synthetic] <br>
|
||||||
|
|
||||||
|
**Labeling Method by dataset** <br>
|
||||||
|
* [Human] <br>
|
||||||
|
|
||||||
|
**Properties:** <br>
|
||||||
|
* 77,564 prompt-responses, each annotated with up to 3 annotations of free-text feedback (each being 50-250 words long) elaborating upon the overall helpfulness of the response.
|
||||||
|
|
||||||
|
## Testing Datasets:
|
||||||
|
|
||||||
|
**Dataset Name:** HelpSteer3 <br>
|
||||||
|
**Dataset Link:** https://huggingface.co/datasets/nvidia/HelpSteer3
|
||||||
|
|
||||||
|
**Data Collection Method by dataset** <br>
|
||||||
|
* [Hybrid: Human, Synthetic] <br>
|
||||||
|
|
||||||
|
**Labeling Method by dataset** <br>
|
||||||
|
* [Human] <br>
|
||||||
|
|
||||||
|
**Properties:** <br>
|
||||||
|
* 4,078 prompt-responses, each annotated with up to 3 annotations of free-text feedback (each being 50-250 words long) elaborating upon the overall helpfulness of the response.
|
||||||
|
|
||||||
|
## Evaluation Datasets
|
||||||
|
|
||||||
|
**Dataset Name:** Arena Hard Auto V2 <br>
|
||||||
|
**Dataset Link:** https://github.com/lmarena/arena-hard-auto
|
||||||
|
|
||||||
|
**Data Collection Method by dataset** <br>
|
||||||
|
* [Hybrid: Human, Synthetic] <br>
|
||||||
|
|
||||||
|
**Labeling Method by dataset** <br>
|
||||||
|
* [Hybrid: Human, Synthetic] <br>
|
||||||
|
|
||||||
|
**Properties:** <br>
|
||||||
|
* 500 prompts
|
||||||
|
|
||||||
|
|
||||||
|
**Dataset Name:** WildBench <br>
|
||||||
|
**Dataset Link:** https://github.com/allenai/WildBench
|
||||||
|
|
||||||
|
**Data Collection Method by dataset** <br>
|
||||||
|
* [Hybrid: Human, Synthetic] <br>
|
||||||
|
|
||||||
|
**Labeling Method by dataset** <br>
|
||||||
|
* [Hybrid: Human, Synthetic] <br>
|
||||||
|
|
||||||
|
**Properties:** <br>
|
||||||
|
* 1024 prompts
|
||||||
|
|
||||||
|
|
||||||
|
**Dataset Name:** MT-Bench <br>
|
||||||
|
**Dataset Link:** https://huggingface.co/spaces/lmsys/mt-bench
|
||||||
|
|
||||||
|
**Data Collection Method by dataset** <br>
|
||||||
|
* [Hybrid: Human, Synthetic] <br>
|
||||||
|
|
||||||
|
**Labeling Method by dataset** <br>
|
||||||
|
* [Hybrid: Human, Synthetic] <br>
|
||||||
|
|
||||||
|
**Properties:** <br>
|
||||||
|
* 160 prompts
|
||||||
|
|
||||||
|
|
||||||
|
# Inference:
|
||||||
|
**Engine:** PyTorch <br>
|
||||||
|
**Test Hardware:** H100, A100 80GB, A100 40GB <br>
|
||||||
|
|
||||||
|
|
||||||
|
## Ethical Considerations:
|
||||||
|
NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their supporting model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
|
||||||
|
For more detailed information on ethical considerations for this model, please see the Model Card++ [Explainability](explainability.md), [Bias](bias.md), [Safety and Security](safety.md), and [Privacy](privacy.md) Subcards.
|
||||||
|
|
||||||
|
Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
|
||||||
|
|
||||||
|
## Citation
|
||||||
|
|
||||||
|
If you find this model useful, please cite the following work:
|
||||||
|
|
||||||
|
```bibtex
|
||||||
|
@misc{wang2025rlbffbinaryflexiblefeedback,
|
||||||
|
title={RLBFF: Binary Flexible Feedback to bridge between Human Feedback | Verifiable Rewards},
|
||||||
|
author={Zhilin Wang and Jiaqi Zeng and Olivier Delalleau and Ellie Evans and Daniel Egert and Hoo-Chang Shin and Felipe Soares and Yi Dong and Oleksii Kuchaiev},
|
||||||
|
year={2025},
|
||||||
|
eprint={2509.21319},
|
||||||
|
archivePrefix={arXiv},
|
||||||
|
primaryClass={cs.CL},
|
||||||
|
url={https://arxiv.org/abs/2509.21319},
|
||||||
|
}
|
||||||
|
```
|
||||||
28
added_tokens.json
Normal file
28
added_tokens.json
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"</think>": 151668,
|
||||||
|
"</tool_call>": 151658,
|
||||||
|
"</tool_response>": 151666,
|
||||||
|
"<think>": 151667,
|
||||||
|
"<tool_call>": 151657,
|
||||||
|
"<tool_response>": 151665,
|
||||||
|
"<|box_end|>": 151649,
|
||||||
|
"<|box_start|>": 151648,
|
||||||
|
"<|endoftext|>": 151643,
|
||||||
|
"<|file_sep|>": 151664,
|
||||||
|
"<|fim_middle|>": 151660,
|
||||||
|
"<|fim_pad|>": 151662,
|
||||||
|
"<|fim_prefix|>": 151659,
|
||||||
|
"<|fim_suffix|>": 151661,
|
||||||
|
"<|im_end|>": 151645,
|
||||||
|
"<|im_start|>": 151644,
|
||||||
|
"<|image_pad|>": 151655,
|
||||||
|
"<|object_ref_end|>": 151647,
|
||||||
|
"<|object_ref_start|>": 151646,
|
||||||
|
"<|quad_end|>": 151651,
|
||||||
|
"<|quad_start|>": 151650,
|
||||||
|
"<|repo_name|>": 151663,
|
||||||
|
"<|video_pad|>": 151656,
|
||||||
|
"<|vision_end|>": 151653,
|
||||||
|
"<|vision_pad|>": 151654,
|
||||||
|
"<|vision_start|>": 151652
|
||||||
|
}
|
||||||
131
config.json
Normal file
131
config.json
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
{
|
||||||
|
"architectures": [
|
||||||
|
"Qwen3ForCausalLM"
|
||||||
|
],
|
||||||
|
"attention_bias": false,
|
||||||
|
"attention_dropout": 0.0,
|
||||||
|
"bos_token_id": 151643,
|
||||||
|
"dtype": "bfloat16",
|
||||||
|
"eos_token_id": 151645,
|
||||||
|
"head_dim": 128,
|
||||||
|
"hidden_act": "silu",
|
||||||
|
"hidden_size": 5120,
|
||||||
|
"initializer_range": 0.02,
|
||||||
|
"intermediate_size": 25600,
|
||||||
|
"layer_types": [
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention",
|
||||||
|
"full_attention"
|
||||||
|
],
|
||||||
|
"max_position_embeddings": 40960,
|
||||||
|
"max_window_layers": 64,
|
||||||
|
"model_type": "qwen3",
|
||||||
|
"num_attention_heads": 64,
|
||||||
|
"num_hidden_layers": 64,
|
||||||
|
"num_key_value_heads": 8,
|
||||||
|
"quantization_config": {
|
||||||
|
"config_groups": {
|
||||||
|
"group_0": {
|
||||||
|
"format": "pack-quantized",
|
||||||
|
"input_activations": null,
|
||||||
|
"output_activations": null,
|
||||||
|
"targets": [
|
||||||
|
"Linear"
|
||||||
|
],
|
||||||
|
"weights": {
|
||||||
|
"actorder": null,
|
||||||
|
"block_structure": null,
|
||||||
|
"dynamic": false,
|
||||||
|
"group_size": 32,
|
||||||
|
"num_bits": 8,
|
||||||
|
"observer": "mse",
|
||||||
|
"observer_kwargs": {},
|
||||||
|
"strategy": "group",
|
||||||
|
"symmetric": true,
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"format": "pack-quantized",
|
||||||
|
"global_compression_ratio": null,
|
||||||
|
"ignore": [
|
||||||
|
"lm_head"
|
||||||
|
],
|
||||||
|
"kv_cache_scheme": null,
|
||||||
|
"quant_method": "compressed-tensors",
|
||||||
|
"quantization_status": "compressed",
|
||||||
|
"sparsity_config": {},
|
||||||
|
"transform_config": {},
|
||||||
|
"version": "0.12.3.dev20+gd429903"
|
||||||
|
},
|
||||||
|
"rms_norm_eps": 1e-06,
|
||||||
|
"rope_scaling": null,
|
||||||
|
"rope_theta": 1000000,
|
||||||
|
"sliding_window": null,
|
||||||
|
"tie_word_embeddings": false,
|
||||||
|
"transformers_version": "4.57.0",
|
||||||
|
"use_cache": true,
|
||||||
|
"use_sliding_window": false,
|
||||||
|
"vocab_size": 151936
|
||||||
|
}
|
||||||
1
configuration.json
Normal file
1
configuration.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}
|
||||||
9
generation_config.json
Normal file
9
generation_config.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"_from_model_config": true,
|
||||||
|
"bos_token_id": 151643,
|
||||||
|
"do_sample": true,
|
||||||
|
"eos_token_id": 151645,
|
||||||
|
"temperature": 0.6,
|
||||||
|
"top_p": 0.95,
|
||||||
|
"transformers_version": "4.57.0"
|
||||||
|
}
|
||||||
BIN
merges.txt
(Stored with Git LFS)
Normal file
BIN
merges.txt
(Stored with Git LFS)
Normal file
Binary file not shown.
3
model-00001-of-00008.safetensors
Normal file
3
model-00001-of-00008.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1b5e6e5a63d5c650414aa73930b7906be317aa9f399b6492ba620f6b0865e427
|
||||||
|
size 4903877600
|
||||||
3
model-00002-of-00008.safetensors
Normal file
3
model-00002-of-00008.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5dea69579f453e94d90c26ad80f1d89f53a8e1ebabe8de067e5675121928392e
|
||||||
|
size 4997030472
|
||||||
3
model-00003-of-00008.safetensors
Normal file
3
model-00003-of-00008.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7367ec40c837f502a15616ebb7529a9fe2b1273987525a57236ce44029f41415
|
||||||
|
size 4985868728
|
||||||
3
model-00004-of-00008.safetensors
Normal file
3
model-00004-of-00008.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a5fb1ed634daacace70d55f6446c1c697061d2afce5b26b45daaca8644c15e09
|
||||||
|
size 4902331784
|
||||||
3
model-00005-of-00008.safetensors
Normal file
3
model-00005-of-00008.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6e2b035fe0c12df52ae96b9b39a5f4cc5abd736d34866f0c7a4d3e6f76f45cdf
|
||||||
|
size 4941303152
|
||||||
3
model-00006-of-00008.safetensors
Normal file
3
model-00006-of-00008.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:eccf4751b9ab246d28046288889dcb291c20a223fbf016fde28eb15c6bf5aaa2
|
||||||
|
size 4902331784
|
||||||
3
model-00007-of-00008.safetensors
Normal file
3
model-00007-of-00008.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:10e87f0f3b9a02ed0df4cef6cc1bd404d4776c2a5f5bf036e2b63a2e4f721f74
|
||||||
|
size 4941303152
|
||||||
3
model-00008-of-00008.safetensors
Normal file
3
model-00008-of-00008.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8d722aa3c9c6c011585b5647308af2aa7ec358ebec8945824f636e3e73ac6f89
|
||||||
|
size 1695120056
|
||||||
1611
model.safetensors.index.json
Normal file
1611
model.safetensors.index.json
Normal file
File diff suppressed because it is too large
Load Diff
31
special_tokens_map.json
Normal file
31
special_tokens_map.json
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"additional_special_tokens": [
|
||||||
|
"<|im_start|>",
|
||||||
|
"<|im_end|>",
|
||||||
|
"<|object_ref_start|>",
|
||||||
|
"<|object_ref_end|>",
|
||||||
|
"<|box_start|>",
|
||||||
|
"<|box_end|>",
|
||||||
|
"<|quad_start|>",
|
||||||
|
"<|quad_end|>",
|
||||||
|
"<|vision_start|>",
|
||||||
|
"<|vision_end|>",
|
||||||
|
"<|vision_pad|>",
|
||||||
|
"<|image_pad|>",
|
||||||
|
"<|video_pad|>"
|
||||||
|
],
|
||||||
|
"eos_token": {
|
||||||
|
"content": "<|im_end|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false
|
||||||
|
},
|
||||||
|
"pad_token": {
|
||||||
|
"content": "<|endoftext|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
tokenizer.json
(Stored with Git LFS)
Normal file
BIN
tokenizer.json
(Stored with Git LFS)
Normal file
Binary file not shown.
240
tokenizer_config.json
Normal file
240
tokenizer_config.json
Normal file
@@ -0,0 +1,240 @@
|
|||||||
|
{
|
||||||
|
"add_bos_token": false,
|
||||||
|
"add_prefix_space": false,
|
||||||
|
"added_tokens_decoder": {
|
||||||
|
"151643": {
|
||||||
|
"content": "<|endoftext|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151644": {
|
||||||
|
"content": "<|im_start|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151645": {
|
||||||
|
"content": "<|im_end|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151646": {
|
||||||
|
"content": "<|object_ref_start|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151647": {
|
||||||
|
"content": "<|object_ref_end|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151648": {
|
||||||
|
"content": "<|box_start|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151649": {
|
||||||
|
"content": "<|box_end|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151650": {
|
||||||
|
"content": "<|quad_start|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151651": {
|
||||||
|
"content": "<|quad_end|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151652": {
|
||||||
|
"content": "<|vision_start|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151653": {
|
||||||
|
"content": "<|vision_end|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151654": {
|
||||||
|
"content": "<|vision_pad|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151655": {
|
||||||
|
"content": "<|image_pad|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151656": {
|
||||||
|
"content": "<|video_pad|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": true
|
||||||
|
},
|
||||||
|
"151657": {
|
||||||
|
"content": "<tool_call>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151658": {
|
||||||
|
"content": "</tool_call>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151659": {
|
||||||
|
"content": "<|fim_prefix|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151660": {
|
||||||
|
"content": "<|fim_middle|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151661": {
|
||||||
|
"content": "<|fim_suffix|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151662": {
|
||||||
|
"content": "<|fim_pad|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151663": {
|
||||||
|
"content": "<|repo_name|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151664": {
|
||||||
|
"content": "<|file_sep|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151665": {
|
||||||
|
"content": "<tool_response>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151666": {
|
||||||
|
"content": "</tool_response>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151667": {
|
||||||
|
"content": "<think>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
},
|
||||||
|
"151668": {
|
||||||
|
"content": "</think>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false,
|
||||||
|
"special": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additional_special_tokens": [
|
||||||
|
"<|im_start|>",
|
||||||
|
"<|im_end|>",
|
||||||
|
"<|object_ref_start|>",
|
||||||
|
"<|object_ref_end|>",
|
||||||
|
"<|box_start|>",
|
||||||
|
"<|box_end|>",
|
||||||
|
"<|quad_start|>",
|
||||||
|
"<|quad_end|>",
|
||||||
|
"<|vision_start|>",
|
||||||
|
"<|vision_end|>",
|
||||||
|
"<|vision_pad|>",
|
||||||
|
"<|image_pad|>",
|
||||||
|
"<|video_pad|>"
|
||||||
|
],
|
||||||
|
"bos_token": null,
|
||||||
|
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
|
||||||
|
"clean_up_tokenization_spaces": false,
|
||||||
|
"eos_token": "<|im_end|>",
|
||||||
|
"errors": "replace",
|
||||||
|
"extra_special_tokens": {},
|
||||||
|
"model_max_length": 131072,
|
||||||
|
"pad_token": "<|endoftext|>",
|
||||||
|
"split_special_tokens": false,
|
||||||
|
"tokenizer_class": "Qwen2Tokenizer",
|
||||||
|
"unk_token": null
|
||||||
|
}
|
||||||
BIN
vocab.json
(Stored with Git LFS)
Normal file
BIN
vocab.json
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user