Text Generation
PEFT
Safetensors
Transformers
English
network-engineering
network-operations
cloud-operations
network-troubleshooting
network-automation
cisco
palo-alto-networks
fortinet
juniper
aws
azure
gcp
bgp
ospf
lora
sft
trl
conversational
Instructions to use Reponx/Network-Cloud-Ops-Engineer-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Reponx/Network-Cloud-Ops-Engineer-9B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-9B") model = PeftModel.from_pretrained(base_model, "Reponx/Network-Cloud-Ops-Engineer-9B") - Transformers
How to use Reponx/Network-Cloud-Ops-Engineer-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Reponx/Network-Cloud-Ops-Engineer-9B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Reponx/Network-Cloud-Ops-Engineer-9B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Reponx/Network-Cloud-Ops-Engineer-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Reponx/Network-Cloud-Ops-Engineer-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Reponx/Network-Cloud-Ops-Engineer-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Reponx/Network-Cloud-Ops-Engineer-9B
- SGLang
How to use Reponx/Network-Cloud-Ops-Engineer-9B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Reponx/Network-Cloud-Ops-Engineer-9B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Reponx/Network-Cloud-Ops-Engineer-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Reponx/Network-Cloud-Ops-Engineer-9B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Reponx/Network-Cloud-Ops-Engineer-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Reponx/Network-Cloud-Ops-Engineer-9B with Docker Model Runner:
docker model run hf.co/Reponx/Network-Cloud-Ops-Engineer-9B
Delete checkpoint-47
Browse files- checkpoint-47/README.md +0 -209
- checkpoint-47/adapter_config.json +0 -51
- checkpoint-47/adapter_model.safetensors +0 -3
- checkpoint-47/chat_template.jinja +0 -154
- checkpoint-47/optimizer.pt +0 -3
- checkpoint-47/rng_state.pth +0 -3
- checkpoint-47/scheduler.pt +0 -3
- checkpoint-47/tokenizer.json +0 -3
- checkpoint-47/tokenizer_config.json +0 -32
- checkpoint-47/trainer_state.json +0 -135
- checkpoint-47/training_args.bin +0 -3
checkpoint-47/README.md
DELETED
|
@@ -1,209 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: Qwen/Qwen3.5-9B
|
| 3 |
-
library_name: peft
|
| 4 |
-
pipeline_tag: text-generation
|
| 5 |
-
tags:
|
| 6 |
-
- base_model:adapter:Qwen/Qwen3.5-9B
|
| 7 |
-
- lora
|
| 8 |
-
- sft
|
| 9 |
-
- transformers
|
| 10 |
-
- trl
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
-
# Model Card for Model ID
|
| 14 |
-
|
| 15 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
## Model Details
|
| 20 |
-
|
| 21 |
-
### Model Description
|
| 22 |
-
|
| 23 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
- **Developed by:** [More Information Needed]
|
| 28 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
-
- **Model type:** [More Information Needed]
|
| 31 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
-
- **License:** [More Information Needed]
|
| 33 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
-
|
| 35 |
-
### Model Sources [optional]
|
| 36 |
-
|
| 37 |
-
<!-- Provide the basic links for the model. -->
|
| 38 |
-
|
| 39 |
-
- **Repository:** [More Information Needed]
|
| 40 |
-
- **Paper [optional]:** [More Information Needed]
|
| 41 |
-
- **Demo [optional]:** [More Information Needed]
|
| 42 |
-
|
| 43 |
-
## Uses
|
| 44 |
-
|
| 45 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
-
|
| 47 |
-
### Direct Use
|
| 48 |
-
|
| 49 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
-
|
| 51 |
-
[More Information Needed]
|
| 52 |
-
|
| 53 |
-
### Downstream Use [optional]
|
| 54 |
-
|
| 55 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
-
|
| 57 |
-
[More Information Needed]
|
| 58 |
-
|
| 59 |
-
### Out-of-Scope Use
|
| 60 |
-
|
| 61 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
-
|
| 63 |
-
[More Information Needed]
|
| 64 |
-
|
| 65 |
-
## Bias, Risks, and Limitations
|
| 66 |
-
|
| 67 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
-
|
| 69 |
-
[More Information Needed]
|
| 70 |
-
|
| 71 |
-
### Recommendations
|
| 72 |
-
|
| 73 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
-
|
| 75 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
-
|
| 77 |
-
## How to Get Started with the Model
|
| 78 |
-
|
| 79 |
-
Use the code below to get started with the model.
|
| 80 |
-
|
| 81 |
-
[More Information Needed]
|
| 82 |
-
|
| 83 |
-
## Training Details
|
| 84 |
-
|
| 85 |
-
### Training Data
|
| 86 |
-
|
| 87 |
-
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 88 |
-
|
| 89 |
-
[More Information Needed]
|
| 90 |
-
|
| 91 |
-
### Training Procedure
|
| 92 |
-
|
| 93 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
-
|
| 95 |
-
#### Preprocessing [optional]
|
| 96 |
-
|
| 97 |
-
[More Information Needed]
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
#### Training Hyperparameters
|
| 101 |
-
|
| 102 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
-
|
| 104 |
-
#### Speeds, Sizes, Times [optional]
|
| 105 |
-
|
| 106 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
-
|
| 108 |
-
[More Information Needed]
|
| 109 |
-
|
| 110 |
-
## Evaluation
|
| 111 |
-
|
| 112 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
-
|
| 114 |
-
### Testing Data, Factors & Metrics
|
| 115 |
-
|
| 116 |
-
#### Testing Data
|
| 117 |
-
|
| 118 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
-
|
| 120 |
-
[More Information Needed]
|
| 121 |
-
|
| 122 |
-
#### Factors
|
| 123 |
-
|
| 124 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
-
|
| 126 |
-
[More Information Needed]
|
| 127 |
-
|
| 128 |
-
#### Metrics
|
| 129 |
-
|
| 130 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
-
|
| 132 |
-
[More Information Needed]
|
| 133 |
-
|
| 134 |
-
### Results
|
| 135 |
-
|
| 136 |
-
[More Information Needed]
|
| 137 |
-
|
| 138 |
-
#### Summary
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
## Model Examination [optional]
|
| 143 |
-
|
| 144 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
-
|
| 146 |
-
[More Information Needed]
|
| 147 |
-
|
| 148 |
-
## Environmental Impact
|
| 149 |
-
|
| 150 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
-
|
| 152 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 153 |
-
|
| 154 |
-
- **Hardware Type:** [More Information Needed]
|
| 155 |
-
- **Hours used:** [More Information Needed]
|
| 156 |
-
- **Cloud Provider:** [More Information Needed]
|
| 157 |
-
- **Compute Region:** [More Information Needed]
|
| 158 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
-
|
| 160 |
-
## Technical Specifications [optional]
|
| 161 |
-
|
| 162 |
-
### Model Architecture and Objective
|
| 163 |
-
|
| 164 |
-
[More Information Needed]
|
| 165 |
-
|
| 166 |
-
### Compute Infrastructure
|
| 167 |
-
|
| 168 |
-
[More Information Needed]
|
| 169 |
-
|
| 170 |
-
#### Hardware
|
| 171 |
-
|
| 172 |
-
[More Information Needed]
|
| 173 |
-
|
| 174 |
-
#### Software
|
| 175 |
-
|
| 176 |
-
[More Information Needed]
|
| 177 |
-
|
| 178 |
-
## Citation [optional]
|
| 179 |
-
|
| 180 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
-
|
| 182 |
-
**BibTeX:**
|
| 183 |
-
|
| 184 |
-
[More Information Needed]
|
| 185 |
-
|
| 186 |
-
**APA:**
|
| 187 |
-
|
| 188 |
-
[More Information Needed]
|
| 189 |
-
|
| 190 |
-
## Glossary [optional]
|
| 191 |
-
|
| 192 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
-
|
| 194 |
-
[More Information Needed]
|
| 195 |
-
|
| 196 |
-
## More Information [optional]
|
| 197 |
-
|
| 198 |
-
[More Information Needed]
|
| 199 |
-
|
| 200 |
-
## Model Card Authors [optional]
|
| 201 |
-
|
| 202 |
-
[More Information Needed]
|
| 203 |
-
|
| 204 |
-
## Model Card Contact
|
| 205 |
-
|
| 206 |
-
[More Information Needed]
|
| 207 |
-
### Framework versions
|
| 208 |
-
|
| 209 |
-
- PEFT 0.21.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkpoint-47/adapter_config.json
DELETED
|
@@ -1,51 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"alora_invocation_tokens": null,
|
| 3 |
-
"alpha_pattern": {},
|
| 4 |
-
"arrow_config": null,
|
| 5 |
-
"auto_mapping": null,
|
| 6 |
-
"base_model_name_or_path": "Qwen/Qwen3.5-9B",
|
| 7 |
-
"bias": "none",
|
| 8 |
-
"corda_config": null,
|
| 9 |
-
"ensure_weight_tying": false,
|
| 10 |
-
"eva_config": null,
|
| 11 |
-
"exclude_modules": null,
|
| 12 |
-
"fan_in_fan_out": false,
|
| 13 |
-
"inference_mode": true,
|
| 14 |
-
"init_lora_weights": true,
|
| 15 |
-
"kasa_config": null,
|
| 16 |
-
"layer_replication": null,
|
| 17 |
-
"layers_pattern": null,
|
| 18 |
-
"layers_to_transform": null,
|
| 19 |
-
"loftq_config": {},
|
| 20 |
-
"lora_alpha": 32,
|
| 21 |
-
"lora_bias": false,
|
| 22 |
-
"lora_dropout": 0.05,
|
| 23 |
-
"lora_ga_config": null,
|
| 24 |
-
"megatron_config": null,
|
| 25 |
-
"megatron_core": "megatron.core",
|
| 26 |
-
"modules_to_save": null,
|
| 27 |
-
"monteclora_config": null,
|
| 28 |
-
"peft_type": "LORA",
|
| 29 |
-
"peft_version": "0.21.0",
|
| 30 |
-
"qalora_group_size": 16,
|
| 31 |
-
"r": 16,
|
| 32 |
-
"rank_pattern": {},
|
| 33 |
-
"revision": null,
|
| 34 |
-
"target_modules": [
|
| 35 |
-
"k_proj",
|
| 36 |
-
"down_proj",
|
| 37 |
-
"o_proj",
|
| 38 |
-
"gate_proj",
|
| 39 |
-
"up_proj",
|
| 40 |
-
"v_proj",
|
| 41 |
-
"q_proj"
|
| 42 |
-
],
|
| 43 |
-
"target_parameters": null,
|
| 44 |
-
"task_type": "CAUSAL_LM",
|
| 45 |
-
"trainable_token_indices": null,
|
| 46 |
-
"use_bdlora": null,
|
| 47 |
-
"use_dora": false,
|
| 48 |
-
"use_qalora": false,
|
| 49 |
-
"use_rslora": false,
|
| 50 |
-
"velora_config": null
|
| 51 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkpoint-47/adapter_model.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d2dc7a1c3411b365a47e34d4c25647a1e1107af93c05eb7ee5fee08de92fdc9b
|
| 3 |
-
size 58230048
|
|
|
|
|
|
|
|
|
|
|
|
checkpoint-47/chat_template.jinja
DELETED
|
@@ -1,154 +0,0 @@
|
|
| 1 |
-
{%- set image_count = namespace(value=0) %}
|
| 2 |
-
{%- set video_count = namespace(value=0) %}
|
| 3 |
-
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
-
{%- if content is string %}
|
| 5 |
-
{{- content }}
|
| 6 |
-
{%- elif content is iterable and content is not mapping %}
|
| 7 |
-
{%- for item in content %}
|
| 8 |
-
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
-
{%- if is_system_content %}
|
| 10 |
-
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
-
{%- endif %}
|
| 12 |
-
{%- if do_vision_count %}
|
| 13 |
-
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
-
{%- endif %}
|
| 15 |
-
{%- if add_vision_id %}
|
| 16 |
-
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
-
{%- endif %}
|
| 18 |
-
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
-
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
-
{%- if is_system_content %}
|
| 21 |
-
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
-
{%- endif %}
|
| 23 |
-
{%- if do_vision_count %}
|
| 24 |
-
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
-
{%- endif %}
|
| 26 |
-
{%- if add_vision_id %}
|
| 27 |
-
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
-
{%- endif %}
|
| 29 |
-
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
-
{%- elif 'text' in item %}
|
| 31 |
-
{{- item.text }}
|
| 32 |
-
{%- else %}
|
| 33 |
-
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
-
{%- endif %}
|
| 35 |
-
{%- endfor %}
|
| 36 |
-
{%- elif content is none or content is undefined %}
|
| 37 |
-
{{- '' }}
|
| 38 |
-
{%- else %}
|
| 39 |
-
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
-
{%- endif %}
|
| 41 |
-
{%- endmacro %}
|
| 42 |
-
{%- if not messages %}
|
| 43 |
-
{{- raise_exception('No messages provided.') }}
|
| 44 |
-
{%- endif %}
|
| 45 |
-
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
-
{{- '<|im_start|>system\n' }}
|
| 47 |
-
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
-
{%- for tool in tools %}
|
| 49 |
-
{{- "\n" }}
|
| 50 |
-
{{- tool | tojson }}
|
| 51 |
-
{%- endfor %}
|
| 52 |
-
{{- "\n</tools>" }}
|
| 53 |
-
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
-
{%- if messages[0].role == 'system' %}
|
| 55 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
-
{%- if content %}
|
| 57 |
-
{{- '\n\n' + content }}
|
| 58 |
-
{%- endif %}
|
| 59 |
-
{%- endif %}
|
| 60 |
-
{{- '<|im_end|>\n' }}
|
| 61 |
-
{%- else %}
|
| 62 |
-
{%- if messages[0].role == 'system' %}
|
| 63 |
-
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
-
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
-
{%- endif %}
|
| 66 |
-
{%- endif %}
|
| 67 |
-
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
-
{%- for message in messages[::-1] %}
|
| 69 |
-
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
-
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
-
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
-
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
-
{%- set ns.multi_step_tool = false %}
|
| 74 |
-
{%- set ns.last_query_index = index %}
|
| 75 |
-
{%- endif %}
|
| 76 |
-
{%- endif %}
|
| 77 |
-
{%- endfor %}
|
| 78 |
-
{%- if ns.multi_step_tool %}
|
| 79 |
-
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
-
{%- endif %}
|
| 81 |
-
{%- for message in messages %}
|
| 82 |
-
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
-
{%- if message.role == "system" %}
|
| 84 |
-
{%- if not loop.first %}
|
| 85 |
-
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
-
{%- endif %}
|
| 87 |
-
{%- elif message.role == "user" %}
|
| 88 |
-
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
-
{%- elif message.role == "assistant" %}
|
| 90 |
-
{%- set reasoning_content = '' %}
|
| 91 |
-
{%- if message.reasoning_content is string %}
|
| 92 |
-
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
-
{%- else %}
|
| 94 |
-
{%- if '</think>' in content %}
|
| 95 |
-
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
-
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
-
{%- endif %}
|
| 98 |
-
{%- endif %}
|
| 99 |
-
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
-
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
-
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
-
{%- else %}
|
| 103 |
-
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
-
{%- endif %}
|
| 105 |
-
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
-
{%- for tool_call in message.tool_calls %}
|
| 107 |
-
{%- if tool_call.function is defined %}
|
| 108 |
-
{%- set tool_call = tool_call.function %}
|
| 109 |
-
{%- endif %}
|
| 110 |
-
{%- if loop.first %}
|
| 111 |
-
{%- if content|trim %}
|
| 112 |
-
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
-
{%- else %}
|
| 114 |
-
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
-
{%- endif %}
|
| 116 |
-
{%- else %}
|
| 117 |
-
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
-
{%- endif %}
|
| 119 |
-
{%- if tool_call.arguments is defined %}
|
| 120 |
-
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
-
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
-
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
-
{{- args_value }}
|
| 124 |
-
{{- '\n</parameter>\n' }}
|
| 125 |
-
{%- endfor %}
|
| 126 |
-
{%- endif %}
|
| 127 |
-
{{- '</function>\n</tool_call>' }}
|
| 128 |
-
{%- endfor %}
|
| 129 |
-
{%- endif %}
|
| 130 |
-
{{- '<|im_end|>\n' }}
|
| 131 |
-
{%- elif message.role == "tool" %}
|
| 132 |
-
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
-
{{- '<|im_start|>user' }}
|
| 134 |
-
{%- endif %}
|
| 135 |
-
{{- '\n<tool_response>\n' }}
|
| 136 |
-
{{- content }}
|
| 137 |
-
{{- '\n</tool_response>' }}
|
| 138 |
-
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
-
{{- '<|im_end|>\n' }}
|
| 140 |
-
{%- elif loop.last %}
|
| 141 |
-
{{- '<|im_end|>\n' }}
|
| 142 |
-
{%- endif %}
|
| 143 |
-
{%- else %}
|
| 144 |
-
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
-
{%- endif %}
|
| 146 |
-
{%- endfor %}
|
| 147 |
-
{%- if add_generation_prompt %}
|
| 148 |
-
{{- '<|im_start|>assistant\n' }}
|
| 149 |
-
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 150 |
-
{{- '<think>\n\n</think>\n\n' }}
|
| 151 |
-
{%- else %}
|
| 152 |
-
{{- '<think>\n' }}
|
| 153 |
-
{%- endif %}
|
| 154 |
-
{%- endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkpoint-47/optimizer.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5c376e6634fd0285954af26f5738532c81c974074f0ce025549c484ce08485d3
|
| 3 |
-
size 116611723
|
|
|
|
|
|
|
|
|
|
|
|
checkpoint-47/rng_state.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7e319cef1ae1c8dcae4b792b7b9f5d2ab82c2bec9df33a55ad750e37b4e73cac
|
| 3 |
-
size 14645
|
|
|
|
|
|
|
|
|
|
|
|
checkpoint-47/scheduler.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8861b4bfb7477bad57c45efc4f77dbb4b8649b72a1e9913e81d8467abd7de57b
|
| 3 |
-
size 1465
|
|
|
|
|
|
|
|
|
|
|
|
checkpoint-47/tokenizer.json
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
-
size 19989325
|
|
|
|
|
|
|
|
|
|
|
|
checkpoint-47/tokenizer_config.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"add_prefix_space": false,
|
| 3 |
-
"audio_bos_token": "<|audio_start|>",
|
| 4 |
-
"audio_eos_token": "<|audio_end|>",
|
| 5 |
-
"audio_token": "<|audio_pad|>",
|
| 6 |
-
"backend": "tokenizers",
|
| 7 |
-
"bos_token": null,
|
| 8 |
-
"clean_up_tokenization_spaces": false,
|
| 9 |
-
"eos_token": "<|im_end|>",
|
| 10 |
-
"errors": "replace",
|
| 11 |
-
"image_token": "<|image_pad|>",
|
| 12 |
-
"is_local": false,
|
| 13 |
-
"local_files_only": false,
|
| 14 |
-
"model_max_length": 262144,
|
| 15 |
-
"model_specific_special_tokens": {
|
| 16 |
-
"audio_bos_token": "<|audio_start|>",
|
| 17 |
-
"audio_eos_token": "<|audio_end|>",
|
| 18 |
-
"audio_token": "<|audio_pad|>",
|
| 19 |
-
"image_token": "<|image_pad|>",
|
| 20 |
-
"video_token": "<|video_pad|>",
|
| 21 |
-
"vision_bos_token": "<|vision_start|>",
|
| 22 |
-
"vision_eos_token": "<|vision_end|>"
|
| 23 |
-
},
|
| 24 |
-
"pad_token": "<|im_end|>",
|
| 25 |
-
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
-
"split_special_tokens": false,
|
| 27 |
-
"tokenizer_class": "Qwen2Tokenizer",
|
| 28 |
-
"unk_token": null,
|
| 29 |
-
"video_token": "<|video_pad|>",
|
| 30 |
-
"vision_bos_token": "<|vision_start|>",
|
| 31 |
-
"vision_eos_token": "<|vision_end|>"
|
| 32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkpoint-47/trainer_state.json
DELETED
|
@@ -1,135 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"best_global_step": null,
|
| 3 |
-
"best_metric": null,
|
| 4 |
-
"best_model_checkpoint": null,
|
| 5 |
-
"epoch": 1.0,
|
| 6 |
-
"eval_steps": 500,
|
| 7 |
-
"global_step": 47,
|
| 8 |
-
"is_hyper_param_search": false,
|
| 9 |
-
"is_local_process_zero": true,
|
| 10 |
-
"is_world_process_zero": true,
|
| 11 |
-
"log_history": [
|
| 12 |
-
{
|
| 13 |
-
"entropy": 1.5707119077444076,
|
| 14 |
-
"epoch": 0.10810810810810811,
|
| 15 |
-
"grad_norm": 0.322265625,
|
| 16 |
-
"learning_rate": 0.00019432624113475177,
|
| 17 |
-
"loss": 1.881264877319336,
|
| 18 |
-
"mean_token_accuracy": 0.619016257673502,
|
| 19 |
-
"num_tokens": 82553.0,
|
| 20 |
-
"step": 5
|
| 21 |
-
},
|
| 22 |
-
{
|
| 23 |
-
"entropy": 1.5649840101599692,
|
| 24 |
-
"epoch": 0.21621621621621623,
|
| 25 |
-
"grad_norm": 0.330078125,
|
| 26 |
-
"learning_rate": 0.0001872340425531915,
|
| 27 |
-
"loss": 1.446617317199707,
|
| 28 |
-
"mean_token_accuracy": 0.6761172756552696,
|
| 29 |
-
"num_tokens": 163524.0,
|
| 30 |
-
"step": 10
|
| 31 |
-
},
|
| 32 |
-
{
|
| 33 |
-
"entropy": 1.3364211052656174,
|
| 34 |
-
"epoch": 0.32432432432432434,
|
| 35 |
-
"grad_norm": 0.6015625,
|
| 36 |
-
"learning_rate": 0.0001801418439716312,
|
| 37 |
-
"loss": 1.3492197036743163,
|
| 38 |
-
"mean_token_accuracy": 0.6943369582295418,
|
| 39 |
-
"num_tokens": 241107.0,
|
| 40 |
-
"step": 15
|
| 41 |
-
},
|
| 42 |
-
{
|
| 43 |
-
"entropy": 1.2037748828530312,
|
| 44 |
-
"epoch": 0.43243243243243246,
|
| 45 |
-
"grad_norm": 0.34765625,
|
| 46 |
-
"learning_rate": 0.00017304964539007094,
|
| 47 |
-
"loss": 1.124203872680664,
|
| 48 |
-
"mean_token_accuracy": 0.7247785940766335,
|
| 49 |
-
"num_tokens": 326509.0,
|
| 50 |
-
"step": 20
|
| 51 |
-
},
|
| 52 |
-
{
|
| 53 |
-
"entropy": 1.1209649741649628,
|
| 54 |
-
"epoch": 0.5405405405405406,
|
| 55 |
-
"grad_norm": 0.4609375,
|
| 56 |
-
"learning_rate": 0.00016595744680851065,
|
| 57 |
-
"loss": 1.0391186714172362,
|
| 58 |
-
"mean_token_accuracy": 0.7364149361848831,
|
| 59 |
-
"num_tokens": 408950.0,
|
| 60 |
-
"step": 25
|
| 61 |
-
},
|
| 62 |
-
{
|
| 63 |
-
"entropy": 1.083810679614544,
|
| 64 |
-
"epoch": 0.6486486486486487,
|
| 65 |
-
"grad_norm": 0.380859375,
|
| 66 |
-
"learning_rate": 0.00015886524822695037,
|
| 67 |
-
"loss": 1.0059229850769043,
|
| 68 |
-
"mean_token_accuracy": 0.7455603450536727,
|
| 69 |
-
"num_tokens": 487230.0,
|
| 70 |
-
"step": 30
|
| 71 |
-
},
|
| 72 |
-
{
|
| 73 |
-
"entropy": 1.0357761055231094,
|
| 74 |
-
"epoch": 0.7567567567567568,
|
| 75 |
-
"grad_norm": 0.427734375,
|
| 76 |
-
"learning_rate": 0.00015177304964539008,
|
| 77 |
-
"loss": 0.9472196578979493,
|
| 78 |
-
"mean_token_accuracy": 0.7571635067462921,
|
| 79 |
-
"num_tokens": 565958.0,
|
| 80 |
-
"step": 35
|
| 81 |
-
},
|
| 82 |
-
{
|
| 83 |
-
"entropy": 1.0032977111637593,
|
| 84 |
-
"epoch": 0.8648648648648649,
|
| 85 |
-
"grad_norm": 0.345703125,
|
| 86 |
-
"learning_rate": 0.0001446808510638298,
|
| 87 |
-
"loss": 0.8935558319091796,
|
| 88 |
-
"mean_token_accuracy": 0.7672008484601974,
|
| 89 |
-
"num_tokens": 650259.0,
|
| 90 |
-
"step": 40
|
| 91 |
-
},
|
| 92 |
-
{
|
| 93 |
-
"entropy": 1.0992332849651576,
|
| 94 |
-
"epoch": 0.972972972972973,
|
| 95 |
-
"grad_norm": 0.42578125,
|
| 96 |
-
"learning_rate": 0.0001375886524822695,
|
| 97 |
-
"loss": 0.9571656227111817,
|
| 98 |
-
"mean_token_accuracy": 0.7421869739890099,
|
| 99 |
-
"num_tokens": 729236.0,
|
| 100 |
-
"step": 45
|
| 101 |
-
},
|
| 102 |
-
{
|
| 103 |
-
"epoch": 1.0,
|
| 104 |
-
"eval_entropy": 0.9616759965817133,
|
| 105 |
-
"eval_loss": 0.9603502750396729,
|
| 106 |
-
"eval_mean_token_accuracy": 0.7673611044883728,
|
| 107 |
-
"eval_num_tokens": 748840.0,
|
| 108 |
-
"eval_runtime": 22.6826,
|
| 109 |
-
"eval_samples_per_second": 4.056,
|
| 110 |
-
"eval_steps_per_second": 0.529,
|
| 111 |
-
"step": 47
|
| 112 |
-
}
|
| 113 |
-
],
|
| 114 |
-
"logging_steps": 5,
|
| 115 |
-
"max_steps": 141,
|
| 116 |
-
"num_input_tokens_seen": 0,
|
| 117 |
-
"num_train_epochs": 3,
|
| 118 |
-
"save_steps": 500,
|
| 119 |
-
"stateful_callbacks": {
|
| 120 |
-
"TrainerControl": {
|
| 121 |
-
"args": {
|
| 122 |
-
"should_epoch_stop": false,
|
| 123 |
-
"should_evaluate": false,
|
| 124 |
-
"should_log": false,
|
| 125 |
-
"should_save": true,
|
| 126 |
-
"should_training_stop": false
|
| 127 |
-
},
|
| 128 |
-
"attributes": {}
|
| 129 |
-
}
|
| 130 |
-
},
|
| 131 |
-
"total_flos": 4.46593631649792e+16,
|
| 132 |
-
"train_batch_size": 2,
|
| 133 |
-
"trial_name": null,
|
| 134 |
-
"trial_params": null
|
| 135 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkpoint-47/training_args.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c4c7164adbeeb6a6cb3aaab86aadce9293454a2672cf83ef97741b95d17d18e4
|
| 3 |
-
size 5777
|
|
|
|
|
|
|
|
|
|
|
|