初始化项目,由ModelHub XC社区提供模型
Model: hlyn/prompt-injection-judge-3b Source: Original Platform
This commit is contained in:
208
checkpoint-63/README.md
Normal file
208
checkpoint-63/README.md
Normal file
@@ -0,0 +1,208 @@
|
||||
---
|
||||
base_model: dphn/Dolphin3.0-Llama3.2-3B
|
||||
library_name: peft
|
||||
pipeline_tag: text-generation
|
||||
tags:
|
||||
- axolotl
|
||||
- base_model:adapter:dphn/Dolphin3.0-Llama3.2-3B
|
||||
- lora
|
||||
- transformers
|
||||
---
|
||||
|
||||
# Model Card for Model ID
|
||||
|
||||
<!-- Provide a quick summary of what the model is/does. -->
|
||||
|
||||
|
||||
|
||||
## Model Details
|
||||
|
||||
### Model Description
|
||||
|
||||
<!-- Provide a longer summary of what this model is. -->
|
||||
|
||||
|
||||
|
||||
- **Developed by:** [More Information Needed]
|
||||
- **Funded by [optional]:** [More Information Needed]
|
||||
- **Shared by [optional]:** [More Information Needed]
|
||||
- **Model type:** [More Information Needed]
|
||||
- **Language(s) (NLP):** [More Information Needed]
|
||||
- **License:** [More Information Needed]
|
||||
- **Finetuned from model [optional]:** [More Information Needed]
|
||||
|
||||
### Model Sources [optional]
|
||||
|
||||
<!-- Provide the basic links for the model. -->
|
||||
|
||||
- **Repository:** [More Information Needed]
|
||||
- **Paper [optional]:** [More Information Needed]
|
||||
- **Demo [optional]:** [More Information Needed]
|
||||
|
||||
## Uses
|
||||
|
||||
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
||||
|
||||
### Direct Use
|
||||
|
||||
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
### Downstream Use [optional]
|
||||
|
||||
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
### Out-of-Scope Use
|
||||
|
||||
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
## Bias, Risks, and Limitations
|
||||
|
||||
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
### Recommendations
|
||||
|
||||
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
||||
|
||||
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
||||
|
||||
## How to Get Started with the Model
|
||||
|
||||
Use the code below to get started with the model.
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
## Training Details
|
||||
|
||||
### Training Data
|
||||
|
||||
<!-- 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. -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
### Training Procedure
|
||||
|
||||
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
||||
|
||||
#### Preprocessing [optional]
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
|
||||
#### Training Hyperparameters
|
||||
|
||||
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
||||
|
||||
#### Speeds, Sizes, Times [optional]
|
||||
|
||||
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
## Evaluation
|
||||
|
||||
<!-- This section describes the evaluation protocols and provides the results. -->
|
||||
|
||||
### Testing Data, Factors & Metrics
|
||||
|
||||
#### Testing Data
|
||||
|
||||
<!-- This should link to a Dataset Card if possible. -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
#### Factors
|
||||
|
||||
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
#### Metrics
|
||||
|
||||
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
### Results
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
#### Summary
|
||||
|
||||
|
||||
|
||||
## Model Examination [optional]
|
||||
|
||||
<!-- Relevant interpretability work for the model goes here -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
## Environmental Impact
|
||||
|
||||
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
||||
|
||||
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).
|
||||
|
||||
- **Hardware Type:** [More Information Needed]
|
||||
- **Hours used:** [More Information Needed]
|
||||
- **Cloud Provider:** [More Information Needed]
|
||||
- **Compute Region:** [More Information Needed]
|
||||
- **Carbon Emitted:** [More Information Needed]
|
||||
|
||||
## Technical Specifications [optional]
|
||||
|
||||
### Model Architecture and Objective
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
### Compute Infrastructure
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
#### Hardware
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
#### Software
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
## Citation [optional]
|
||||
|
||||
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
||||
|
||||
**BibTeX:**
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
**APA:**
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
## Glossary [optional]
|
||||
|
||||
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
## More Information [optional]
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
## Model Card Authors [optional]
|
||||
|
||||
[More Information Needed]
|
||||
|
||||
## Model Card Contact
|
||||
|
||||
[More Information Needed]
|
||||
### Framework versions
|
||||
|
||||
- PEFT 0.17.1
|
||||
42
checkpoint-63/adapter_config.json
Normal file
42
checkpoint-63/adapter_config.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"alpha_pattern": {},
|
||||
"auto_mapping": null,
|
||||
"base_model_name_or_path": "dphn/Dolphin3.0-Llama3.2-3B",
|
||||
"bias": "none",
|
||||
"corda_config": null,
|
||||
"eva_config": null,
|
||||
"exclude_modules": null,
|
||||
"fan_in_fan_out": null,
|
||||
"inference_mode": true,
|
||||
"init_lora_weights": true,
|
||||
"layer_replication": null,
|
||||
"layers_pattern": null,
|
||||
"layers_to_transform": null,
|
||||
"loftq_config": {},
|
||||
"lora_alpha": 64,
|
||||
"lora_bias": false,
|
||||
"lora_dropout": 0.1,
|
||||
"megatron_config": null,
|
||||
"megatron_core": "megatron.core",
|
||||
"modules_to_save": null,
|
||||
"peft_type": "LORA",
|
||||
"qalora_group_size": 16,
|
||||
"r": 32,
|
||||
"rank_pattern": {},
|
||||
"revision": null,
|
||||
"target_modules": [
|
||||
"q_proj",
|
||||
"k_proj",
|
||||
"down_proj",
|
||||
"v_proj",
|
||||
"up_proj",
|
||||
"gate_proj",
|
||||
"o_proj"
|
||||
],
|
||||
"target_parameters": [],
|
||||
"task_type": "CAUSAL_LM",
|
||||
"trainable_token_indices": null,
|
||||
"use_dora": false,
|
||||
"use_qalora": false,
|
||||
"use_rslora": false
|
||||
}
|
||||
3
checkpoint-63/adapter_model.safetensors
Normal file
3
checkpoint-63/adapter_model.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8e4504c7e7ed9ae5ee3453117b027ad3951485505712648810bad778493b95a6
|
||||
size 194563400
|
||||
54
checkpoint-63/chat_template.jinja
Normal file
54
checkpoint-63/chat_template.jinja
Normal file
@@ -0,0 +1,54 @@
|
||||
{%- if tools %}
|
||||
{{- '<|im_start|>system\n' }}
|
||||
{%- if messages[0]['role'] == 'system' %}
|
||||
{{- messages[0]['content'] }}
|
||||
{%- else %}
|
||||
{{- 'You are Dolphin, created by Eric Hartford. You are a helpful assistant.' }}
|
||||
{%- endif %}
|
||||
{{- "\n\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>" }}
|
||||
{%- for tool in tools %}
|
||||
{{- "\n" }}
|
||||
{{- tool | tojson }}
|
||||
{%- endfor %}
|
||||
{{- "\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" }}
|
||||
{%- else %}
|
||||
{%- if messages[0]['role'] == 'system' %}
|
||||
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
||||
{%- else %}
|
||||
{{- '<|im_start|>system\nYou are Dolphin, created by Eric Hartford. You are a helpful assistant.<|im_end|>\n' }}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- for message in messages %}
|
||||
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
||||
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
||||
{%- elif message.role == "assistant" %}
|
||||
{{- '<|im_start|>' + message.role }}
|
||||
{%- if message.content %}
|
||||
{{- '\n' + message.content }}
|
||||
{%- endif %}
|
||||
{%- for tool_call in message.tool_calls %}
|
||||
{%- if tool_call.function is defined %}
|
||||
{%- set tool_call = tool_call.function %}
|
||||
{%- endif %}
|
||||
{{- '\n<tool_call>\n{"name": "' }}
|
||||
{{- tool_call.name }}
|
||||
{{- '", "arguments": ' }}
|
||||
{{- tool_call.arguments | tojson }}
|
||||
{{- '}\n</tool_call>' }}
|
||||
{%- endfor %}
|
||||
{{- '<|im_end|>\n' }}
|
||||
{%- elif message.role == "tool" %}
|
||||
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
||||
{{- '<|im_start|>user' }}
|
||||
{%- endif %}
|
||||
{{- '\n<tool_response>\n' }}
|
||||
{{- message.content }}
|
||||
{{- '\n</tool_response>' }}
|
||||
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
||||
{{- '<|im_end|>\n' }}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{%- if add_generation_prompt %}
|
||||
{{- '<|im_start|>assistant\n' }}
|
||||
{%- endif %}
|
||||
3
checkpoint-63/optimizer.pt
Normal file
3
checkpoint-63/optimizer.pt
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2dccd5f8e86c94244b70e33a69846b01afb0048925160b1733f5f0bf274e367e
|
||||
size 99236229
|
||||
3
checkpoint-63/rng_state.pth
Normal file
3
checkpoint-63/rng_state.pth
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2a5d43d3824b2bbe943108dfaaf8a4e58586d47fc34b71b7c3fd9ef361e380fd
|
||||
size 14645
|
||||
3
checkpoint-63/scheduler.pt
Normal file
3
checkpoint-63/scheduler.pt
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:24249cbe6834478b645850b14d783cc4c98afa17a227f1a20b91a9eb0a5b78f0
|
||||
size 1465
|
||||
23
checkpoint-63/special_tokens_map.json
Normal file
23
checkpoint-63/special_tokens_map.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"bos_token": {
|
||||
"content": "<|begin_of_text|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"eos_token": {
|
||||
"content": "<|im_end|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"pad_token": {
|
||||
"content": "<|end_of_text|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
}
|
||||
}
|
||||
3
checkpoint-63/tokenizer.json
Normal file
3
checkpoint-63/tokenizer.json
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cca43616769fed4807470fb41ccf7f5eebdd08624e7b9adafc09d99332cf31eb
|
||||
size 17210297
|
||||
2079
checkpoint-63/tokenizer_config.json
Normal file
2079
checkpoint-63/tokenizer_config.json
Normal file
File diff suppressed because it is too large
Load Diff
166
checkpoint-63/trainer_state.json
Normal file
166
checkpoint-63/trainer_state.json
Normal file
@@ -0,0 +1,166 @@
|
||||
{
|
||||
"best_global_step": null,
|
||||
"best_metric": null,
|
||||
"best_model_checkpoint": null,
|
||||
"epoch": 2.8941176470588235,
|
||||
"eval_steps": 500,
|
||||
"global_step": 63,
|
||||
"is_hyper_param_search": false,
|
||||
"is_local_process_zero": true,
|
||||
"is_world_process_zero": true,
|
||||
"log_history": [
|
||||
{
|
||||
"epoch": 0.23529411764705882,
|
||||
"grad_norm": 1.6521763801574707,
|
||||
"learning_rate": 9.999999999999999e-05,
|
||||
"loss": 2.3013,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 5,
|
||||
"tokens_per_second_per_gpu": 718.74
|
||||
},
|
||||
{
|
||||
"epoch": 0.47058823529411764,
|
||||
"grad_norm": 1.0924193859100342,
|
||||
"learning_rate": 0.00014897709775520417,
|
||||
"loss": 1.3236,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 10,
|
||||
"tokens_per_second_per_gpu": 731.56
|
||||
},
|
||||
{
|
||||
"epoch": 0.7058823529411765,
|
||||
"grad_norm": 0.6611356735229492,
|
||||
"learning_rate": 0.00014282678705231832,
|
||||
"loss": 0.5684,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 15,
|
||||
"tokens_per_second_per_gpu": 722.65
|
||||
},
|
||||
{
|
||||
"epoch": 0.9411764705882353,
|
||||
"grad_norm": 0.6052656173706055,
|
||||
"learning_rate": 0.00013155799573326722,
|
||||
"loss": 0.3071,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 20,
|
||||
"tokens_per_second_per_gpu": 728.39
|
||||
},
|
||||
{
|
||||
"epoch": 1.1411764705882352,
|
||||
"grad_norm": 0.5231208801269531,
|
||||
"learning_rate": 0.00011602111185918203,
|
||||
"loss": 0.2304,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 25,
|
||||
"tokens_per_second_per_gpu": 625.16
|
||||
},
|
||||
{
|
||||
"epoch": 1.3764705882352941,
|
||||
"grad_norm": 0.34258556365966797,
|
||||
"learning_rate": 9.738861082512709e-05,
|
||||
"loss": 0.2163,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 30,
|
||||
"tokens_per_second_per_gpu": 724.72
|
||||
},
|
||||
{
|
||||
"epoch": 1.611764705882353,
|
||||
"grad_norm": 0.3575713038444519,
|
||||
"learning_rate": 7.706657567761216e-05,
|
||||
"loss": 0.2039,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 35,
|
||||
"tokens_per_second_per_gpu": 723.32
|
||||
},
|
||||
{
|
||||
"epoch": 1.8470588235294119,
|
||||
"grad_norm": 0.4452803134918213,
|
||||
"learning_rate": 5.658858846444006e-05,
|
||||
"loss": 0.1938,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 40,
|
||||
"tokens_per_second_per_gpu": 725.05
|
||||
},
|
||||
{
|
||||
"epoch": 2.0470588235294116,
|
||||
"grad_norm": 0.2797813415527344,
|
||||
"learning_rate": 3.750000000000001e-05,
|
||||
"loss": 0.1849,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 45,
|
||||
"tokens_per_second_per_gpu": 607.58
|
||||
},
|
||||
{
|
||||
"epoch": 2.2823529411764705,
|
||||
"grad_norm": 0.36559921503067017,
|
||||
"learning_rate": 2.1241311512366167e-05,
|
||||
"loss": 0.1819,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 50,
|
||||
"tokens_per_second_per_gpu": 730.88
|
||||
},
|
||||
{
|
||||
"epoch": 2.5176470588235293,
|
||||
"grad_norm": 0.2546774744987488,
|
||||
"learning_rate": 9.039468659513327e-06,
|
||||
"loss": 0.1818,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 55,
|
||||
"tokens_per_second_per_gpu": 729.82
|
||||
},
|
||||
{
|
||||
"epoch": 2.7529411764705882,
|
||||
"grad_norm": 0.27984631061553955,
|
||||
"learning_rate": 1.8152713029423283e-06,
|
||||
"loss": 0.1846,
|
||||
"memory/device_reserved (GiB)": 66.98,
|
||||
"memory/max_active (GiB)": 57.73,
|
||||
"memory/max_allocated (GiB)": 57.73,
|
||||
"step": 60,
|
||||
"tokens_per_second_per_gpu": 723.26
|
||||
}
|
||||
],
|
||||
"logging_steps": 5,
|
||||
"max_steps": 63,
|
||||
"num_input_tokens_seen": 0,
|
||||
"num_train_epochs": 3,
|
||||
"save_steps": 50,
|
||||
"stateful_callbacks": {
|
||||
"TrainerControl": {
|
||||
"args": {
|
||||
"should_epoch_stop": false,
|
||||
"should_evaluate": false,
|
||||
"should_log": false,
|
||||
"should_save": true,
|
||||
"should_training_stop": true
|
||||
},
|
||||
"attributes": {}
|
||||
}
|
||||
},
|
||||
"total_flos": 1.3854128835290726e+17,
|
||||
"train_batch_size": 4,
|
||||
"trial_name": null,
|
||||
"trial_params": null
|
||||
}
|
||||
3
checkpoint-63/training_args.bin
Normal file
3
checkpoint-63/training_args.bin
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:777cf783ce2107ca224701957ecefd6409bd4496cec7b943c91914b5e4aacc22
|
||||
size 9809
|
||||
Reference in New Issue
Block a user