Text Generation
PEFT
Safetensors
English
argument-mining
fact-checking
lora
qwen
distillation
conversational
Instructions to use iamjayeshc/ArgParser-v4-Qwen1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use iamjayeshc/ArgParser-v4-Qwen1.5B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "iamjayeshc/ArgParser-v4-Qwen1.5B") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +220 -0
- adapter_config.json +45 -0
- adapter_model.safetensors +3 -0
- chat_template.jinja +54 -0
- checkpoint-248/README.md +207 -0
- checkpoint-248/adapter_config.json +45 -0
- checkpoint-248/adapter_model.safetensors +3 -0
- checkpoint-248/optimizer.pt +3 -0
- checkpoint-248/rng_state.pth +3 -0
- checkpoint-248/scaler.pt +3 -0
- checkpoint-248/scheduler.pt +3 -0
- checkpoint-248/trainer_state.json +78 -0
- checkpoint-248/training_args.bin +3 -0
- checkpoint-372/README.md +207 -0
- checkpoint-372/adapter_config.json +45 -0
- checkpoint-372/adapter_model.safetensors +3 -0
- checkpoint-372/optimizer.pt +3 -0
- checkpoint-372/rng_state.pth +3 -0
- checkpoint-372/scaler.pt +3 -0
- checkpoint-372/scheduler.pt +3 -0
- checkpoint-372/trainer_state.json +107 -0
- checkpoint-372/training_args.bin +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +30 -0
- training_args.bin +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,223 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 4 |
+
library_name: peft
|
| 5 |
+
tags:
|
| 6 |
+
- argument-mining
|
| 7 |
+
- fact-checking
|
| 8 |
+
- lora
|
| 9 |
+
- qwen
|
| 10 |
+
- distillation
|
| 11 |
+
language: [en]
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# ArgParser-v4
|
| 16 |
+
|
| 17 |
+
A Qwen-1.5B LoRA that extracts argument structure — claims, premises,
|
| 18 |
+
citations, and support/attack relations — from political claims and
|
| 19 |
+
argumentative prose. This is the fourth iteration of a distillation
|
| 20 |
+
project, and the one that actually works well enough to plug into a
|
| 21 |
+
real fact-checking pipeline.
|
| 22 |
+
|
| 23 |
+
## Where this came from
|
| 24 |
+
|
| 25 |
+
I built an argument-aware retrieval pipeline for Politifact-style
|
| 26 |
+
fact-checking. Given a claim like "Politician X said Y," it retrieves
|
| 27 |
+
evidence using argument-role-targeted queries and returns a 6-way truth
|
| 28 |
+
verdict. When the parser was reading gold argument annotations from the
|
| 29 |
+
LIARArg dataset, this pipeline hit 0.422 6-way F1 versus 0.114 for a
|
| 30 |
+
flat-RAG baseline. The 0.308 gap was the whole reason to build it.
|
| 31 |
+
|
| 32 |
+
But that gap only means something if a real parser can slot in at
|
| 33 |
+
inference time. Gold annotations aren't available for actual incoming
|
| 34 |
+
claims. So the question became: what parser closes that gap?
|
| 35 |
+
|
| 36 |
+
First cut, Phase 2-α, was `gpt-oss-120b` running zero-shot on Cerebras.
|
| 37 |
+
It closed about 45% of the gap (integration F1 0.254). Real, useful,
|
| 38 |
+
but calling a 120B cloud model per claim isn't practical for anything
|
| 39 |
+
resembling deployment.
|
| 40 |
+
|
| 41 |
+
Phase 2-β was the distillation project. Four iterations. Can a small
|
| 42 |
+
local model preserve most of the gain?
|
| 43 |
+
|
| 44 |
+
## The four iterations
|
| 45 |
+
|
| 46 |
+
**v1** was Qwen-0.5B, full fine-tune on four argument-mining corpora
|
| 47 |
+
(AbstRCT, Microtext, CDCP, PERSPECTRUM), 1,494 records, 3 epochs. The
|
| 48 |
+
smallest reasonable baseline. In-domain comp-F1 averaged 0.108 across
|
| 49 |
+
the four held-out test sets. High empty rates on some domains
|
| 50 |
+
(PERSPECTRUM: 91% empty). The point was to get the pipeline plumbing
|
| 51 |
+
right, not to publish a number.
|
| 52 |
+
|
| 53 |
+
**v2** kept the same data but moved to Qwen-1.5B with LoRA r=16
|
| 54 |
+
(α=32, dropout 0.05, target `q_proj,k_proj,v_proj,o_proj`). 3 epochs.
|
| 55 |
+
In-domain comp-F1: 0.219, roughly double v1. Microtext premise F1
|
| 56 |
+
jumped from 0.000 to 0.680. AbstRCT empty rate 75% → 50%. Scale +
|
| 57 |
+
LoRA + longer training context are the dominant levers here.
|
| 58 |
+
|
| 59 |
+
**v3** was v2's adapter continued for one more epoch after adding a
|
| 60 |
+
fifth corpus (AAEC, 402 persuasive essays). Marginal in-domain
|
| 61 |
+
improvement (0.229). PERSPECTRUM actually regressed slightly, which
|
| 62 |
+
was the first sign that adding more of the same kind of extractive
|
| 63 |
+
gold hits diminishing returns quickly. Then I tried v3 on the actual
|
| 64 |
+
LIARArg parse and hit 83% empty rate on the first 64 rows. Killed
|
| 65 |
+
that run. The lesson was clear: extractive gold from academic
|
| 66 |
+
argument-mining corpora doesn't teach a small student to handle
|
| 67 |
+
Politifact-style claims. The distribution gap is too wide.
|
| 68 |
+
|
| 69 |
+
**v4** is this model. Two changes from v3:
|
| 70 |
+
|
| 71 |
+
1. Fresh adapter, not continual. Clean A/B against v3.
|
| 72 |
+
2. I generated 2,123 silver labels on LIARArg train articles using
|
| 73 |
+
`gpt-oss-120b` via Cerebras. Both the extracted argument structure
|
| 74 |
+
and the model's Chain-of-Thought reasoning came back (the CoT was
|
| 75 |
+
in `message.reasoning`, which I captured almost by accident). The
|
| 76 |
+
training code's target-formatter passes reasoning through as
|
| 77 |
+
`<think>...</think>{json}` when present, so v4 accidentally
|
| 78 |
+
became CoT-aware for LIARArg-style inputs — while staying purely
|
| 79 |
+
extractive on the gold in-domain corpora (where reasoning was empty).
|
| 80 |
+
|
| 81 |
+
This wasn't planned. It just happened, and it turned out to be exactly
|
| 82 |
+
what was missing.
|
| 83 |
+
|
| 84 |
+
Training details: 3,617 records total, 3 epochs, fresh LoRA adapter,
|
| 85 |
+
fp16, Adafactor, gradient checkpointing. Batch 1, grad accum 32.
|
| 86 |
+
About 29 hours on a single GTX 1080 Ti.
|
| 87 |
+
|
| 88 |
+
## What v4 actually does
|
| 89 |
+
|
| 90 |
+
The load-bearing number is Phase 1 integration on LIARArg — the whole
|
| 91 |
+
reason to build any of this:
|
| 92 |
+
|
| 93 |
+
| Metric | v4 | Phase 2-α teacher (120B) | Teacher retention |
|
| 94 |
+
|---|---|---|---|
|
| 95 |
+
| 6-way F1 | 0.217 | 0.254 | 85% |
|
| 96 |
+
| 3-way F1 | 0.457 | 0.461 | 99% |
|
| 97 |
+
| within-1 accuracy | 0.605 | 0.616 | 98% |
|
| 98 |
+
|
| 99 |
+
Flat-RAG baseline for reference: 0.114. v4 beats it by 0.103 and
|
| 100 |
+
closes 33% of the gold-parser gap using a locally-runnable 1.5B model.
|
| 101 |
+
|
| 102 |
+
LIARArg parse empty rate went from v3's 83% down to 23%. Silver + CoT
|
| 103 |
+
was the missing piece.
|
| 104 |
+
|
| 105 |
+
In-domain retention is modest — 0.192 comp-F1 averaged across the five
|
| 106 |
+
training corpora, slightly regressed from v3's 0.229. That's the cost
|
| 107 |
+
of a fresh 3-epoch run versus v3's effective 4 epochs. The trade was
|
| 108 |
+
worth it for the cross-domain transfer.
|
| 109 |
+
|
| 110 |
+
## OOD probes
|
| 111 |
+
|
| 112 |
+
To characterize where v4 stops transferring, I ran three unseen-domain
|
| 113 |
+
probes:
|
| 114 |
+
|
| 115 |
+
**AMPERSAND** (Chakrabarty et al. 2019, Reddit ChangeMyView). Binary
|
| 116 |
+
is-argumentative F1 = 0.819 with recall 0.970 on 150 balanced
|
| 117 |
+
sentences. v4 catches essentially all argumentative content in Reddit
|
| 118 |
+
debate. The 30% false-positive rate comes from over-flagging fragments
|
| 119 |
+
and borderline sentences; some of those are arguably right and just
|
| 120 |
+
disagree with the annotator.
|
| 121 |
+
|
| 122 |
+
**PERSUADE 2.0** (Kaggle Feedback Prize, student argumentative essays).
|
| 123 |
+
Component F1 macro = 0.193 with 45.7% extraction rate on 25 essays.
|
| 124 |
+
Claim F1 = 0.351, premise F1 = 0.034. v4 finds about half of
|
| 125 |
+
PERSUADE's argumentative spans and labels claim-like content
|
| 126 |
+
reasonably. Premise F1 collapses because PERSUADE's Evidence and
|
| 127 |
+
Rebuttal categories are much narrower than v4's premise concept.
|
| 128 |
+
|
| 129 |
+
**ECHR** (European Court of Human Rights case briefs). Component F1
|
| 130 |
+
= 0.074 with 9.7% extraction rate against a proxy gold derived from
|
| 131 |
+
ECHR's agent labels. Legal reasoning is structurally distant from
|
| 132 |
+
anything v4 saw in training.
|
| 133 |
+
|
| 134 |
+
Ordering (Reddit > essays > legal) tracks discourse-register proximity
|
| 135 |
+
to v4's training data. Predictable, but useful to have quantified.
|
| 136 |
+
|
| 137 |
+
## Usage
|
| 138 |
+
|
| 139 |
+
```python
|
| 140 |
+
from peft import PeftModel
|
| 141 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 142 |
+
import torch, re, json
|
| 143 |
+
|
| 144 |
+
base_id = "Qwen/Qwen2.5-1.5B-Instruct"
|
| 145 |
+
adapter_id = "properexit/ArgParser-v4"
|
| 146 |
+
|
| 147 |
+
tok = AutoTokenizer.from_pretrained(base_id)
|
| 148 |
+
base = AutoModelForCausalLM.from_pretrained(
|
| 149 |
+
base_id, torch_dtype=torch.float16, device_map="auto"
|
| 150 |
+
)
|
| 151 |
+
model = PeftModel.from_pretrained(base, adapter_id)
|
| 152 |
+
|
| 153 |
+
INSTR = ("Extract all argument components and relations from the text. "
|
| 154 |
+
"Output strict JSON with claim_components, premise_components, "
|
| 155 |
+
"citation_components, and relations.")
|
| 156 |
+
|
| 157 |
+
def parse(text, max_new_tokens=1024):
|
| 158 |
+
prompt = tok.apply_chat_template(
|
| 159 |
+
[{"role": "user", "content": f"{INSTR}\n\nTEXT:\n{text}"}],
|
| 160 |
+
tokenize=False, add_generation_prompt=True,
|
| 161 |
+
)
|
| 162 |
+
enc = tok(prompt, return_tensors="pt", truncation=True,
|
| 163 |
+
max_length=2048).to(model.device)
|
| 164 |
+
out = model.generate(**enc, max_new_tokens=max_new_tokens,
|
| 165 |
+
do_sample=False,
|
| 166 |
+
pad_token_id=tok.pad_token_id,
|
| 167 |
+
eos_token_id=tok.eos_token_id)
|
| 168 |
+
raw = tok.decode(out[0, enc["input_ids"].shape[-1]:],
|
| 169 |
+
skip_special_tokens=True)
|
| 170 |
+
cleaned = re.sub(r"<think>.*?</think>", "", raw, flags=re.DOTALL)
|
| 171 |
+
m = re.search(r"\{.*\}", cleaned, flags=re.DOTALL)
|
| 172 |
+
return (json.loads(m.group()) if m else None), raw
|
| 173 |
+
|
| 174 |
+
pred, raw = parse(
|
| 175 |
+
"The Obama administration is putting Border Patrol agents in a chokehold."
|
| 176 |
+
)
|
| 177 |
+
print(pred)
|
| 178 |
+
```
|
| 179 |
+
|
| 180 |
+
## Things worth knowing before using this
|
| 181 |
+
|
| 182 |
+
The model emits `<think>...</think>` blocks on political and
|
| 183 |
+
opinionated inputs (that's where it saw CoT during training). On
|
| 184 |
+
formal or structured text — legal writing, some scientific abstracts
|
| 185 |
+
— it goes straight to JSON. Neither is a bug, it just needs handling
|
| 186 |
+
if you're stripping the raw generation.
|
| 187 |
+
|
| 188 |
+
Long inputs can trigger a relation-generation loop that leaves the JSON
|
| 189 |
+
unclosed. What happens: the model emits valid `claim_components` and
|
| 190 |
+
`premise_components` early, then gets stuck emitting
|
| 191 |
+
`{"src": N, "tgt": M, "type": "support"}` tuples in a repeating
|
| 192 |
+
pattern until it hits `max_new_tokens`. You never see the closing `}`
|
| 193 |
+
so strict JSON parsing rejects everything. The workaround is either
|
| 194 |
+
setting `max_new_tokens` conservatively, or using a lenient parser
|
| 195 |
+
that pulls each valid `{...}` object out of each section
|
| 196 |
+
independently and dedupes relations. I use the second approach in
|
| 197 |
+
the training repo.
|
| 198 |
+
|
| 199 |
+
v4 systematically over-predicts spans on OOD text — precision runs
|
| 200 |
+
lower than recall in every probe. On borderline sentences it defaults
|
| 201 |
+
to labeling as claim. Something to keep in mind if downstream
|
| 202 |
+
consumers care about precision.
|
| 203 |
+
|
| 204 |
+
Fine-grained annotation schemas map imperfectly to v4's binary
|
| 205 |
+
claim/premise split. PERSUADE's Evidence/Rebuttal distinction and
|
| 206 |
+
ECHR's Court/Applicant/State agent labels don't translate directly.
|
| 207 |
+
v4 knows a claim from a premise; it doesn't know PERSUADE's Evidence
|
| 208 |
+
from PERSUADE's Rebuttal.
|
| 209 |
+
|
| 210 |
+
## Training summary
|
| 211 |
+
|
| 212 |
+
- Base: `Qwen/Qwen2.5-1.5B-Instruct`
|
| 213 |
+
- LoRA: r=16, α=32, dropout 0.05, on `q_proj,k_proj,v_proj,o_proj`
|
| 214 |
+
- Training records: 3,617 (5 gold corpora + 2,123 LIARArg silver)
|
| 215 |
+
- Epochs: 3, fresh adapter
|
| 216 |
+
- Optimizer: Adafactor, fp16, gradient checkpointing
|
| 217 |
+
- Hardware: single NVIDIA GTX 1080 Ti
|
| 218 |
+
- Wall clock: ~29 h
|
| 219 |
+
|
| 220 |
+
## License
|
| 221 |
+
|
| 222 |
+
Apache 2.0. Base model (Qwen 2.5) is also Apache 2.0. Use however you
|
| 223 |
+
want, no warranty.
|
adapter_config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-1.5B-Instruct",
|
| 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 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 32,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.05,
|
| 22 |
+
"lora_ga_config": null,
|
| 23 |
+
"megatron_config": null,
|
| 24 |
+
"megatron_core": "megatron.core",
|
| 25 |
+
"modules_to_save": null,
|
| 26 |
+
"peft_type": "LORA",
|
| 27 |
+
"peft_version": "0.19.1",
|
| 28 |
+
"qalora_group_size": 16,
|
| 29 |
+
"r": 16,
|
| 30 |
+
"rank_pattern": {},
|
| 31 |
+
"revision": null,
|
| 32 |
+
"target_modules": [
|
| 33 |
+
"q_proj",
|
| 34 |
+
"o_proj",
|
| 35 |
+
"v_proj",
|
| 36 |
+
"k_proj"
|
| 37 |
+
],
|
| 38 |
+
"target_parameters": null,
|
| 39 |
+
"task_type": "CAUSAL_LM",
|
| 40 |
+
"trainable_token_indices": null,
|
| 41 |
+
"use_bdlora": null,
|
| 42 |
+
"use_dora": false,
|
| 43 |
+
"use_qalora": false,
|
| 44 |
+
"use_rslora": false
|
| 45 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:030161fc03794c4aaabde5a20e82ec19926e3b9aea8df6468251b36f1f7fc9e9
|
| 3 |
+
size 17462432
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 4 |
+
{{- messages[0]['content'] }}
|
| 5 |
+
{%- else %}
|
| 6 |
+
{{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{{- "\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>" }}
|
| 9 |
+
{%- for tool in tools %}
|
| 10 |
+
{{- "\n" }}
|
| 11 |
+
{{- tool | tojson }}
|
| 12 |
+
{%- endfor %}
|
| 13 |
+
{{- "\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" }}
|
| 14 |
+
{%- else %}
|
| 15 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 16 |
+
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
| 17 |
+
{%- else %}
|
| 18 |
+
{{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
|
| 19 |
+
{%- endif %}
|
| 20 |
+
{%- endif %}
|
| 21 |
+
{%- for message in messages %}
|
| 22 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
| 23 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 24 |
+
{%- elif message.role == "assistant" %}
|
| 25 |
+
{{- '<|im_start|>' + message.role }}
|
| 26 |
+
{%- if message.content %}
|
| 27 |
+
{{- '\n' + message.content }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{%- for tool_call in message.tool_calls %}
|
| 30 |
+
{%- if tool_call.function is defined %}
|
| 31 |
+
{%- set tool_call = tool_call.function %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '\n<tool_call>\n{"name": "' }}
|
| 34 |
+
{{- tool_call.name }}
|
| 35 |
+
{{- '", "arguments": ' }}
|
| 36 |
+
{{- tool_call.arguments | tojson }}
|
| 37 |
+
{{- '}\n</tool_call>' }}
|
| 38 |
+
{%- endfor %}
|
| 39 |
+
{{- '<|im_end|>\n' }}
|
| 40 |
+
{%- elif message.role == "tool" %}
|
| 41 |
+
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
| 42 |
+
{{- '<|im_start|>user' }}
|
| 43 |
+
{%- endif %}
|
| 44 |
+
{{- '\n<tool_response>\n' }}
|
| 45 |
+
{{- message.content }}
|
| 46 |
+
{{- '\n</tool_response>' }}
|
| 47 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 48 |
+
{{- '<|im_end|>\n' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{%- if add_generation_prompt %}
|
| 53 |
+
{{- '<|im_start|>assistant\n' }}
|
| 54 |
+
{%- endif %}
|
checkpoint-248/README.md
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:Qwen/Qwen2.5-1.5B-Instruct
|
| 7 |
+
- lora
|
| 8 |
+
- transformers
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Model Card for Model ID
|
| 12 |
+
|
| 13 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## Model Details
|
| 18 |
+
|
| 19 |
+
### Model Description
|
| 20 |
+
|
| 21 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
- **Developed by:** [More Information Needed]
|
| 26 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 27 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 28 |
+
- **Model type:** [More Information Needed]
|
| 29 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 30 |
+
- **License:** [More Information Needed]
|
| 31 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 32 |
+
|
| 33 |
+
### Model Sources [optional]
|
| 34 |
+
|
| 35 |
+
<!-- Provide the basic links for the model. -->
|
| 36 |
+
|
| 37 |
+
- **Repository:** [More Information Needed]
|
| 38 |
+
- **Paper [optional]:** [More Information Needed]
|
| 39 |
+
- **Demo [optional]:** [More Information Needed]
|
| 40 |
+
|
| 41 |
+
## Uses
|
| 42 |
+
|
| 43 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 44 |
+
|
| 45 |
+
### Direct Use
|
| 46 |
+
|
| 47 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 48 |
+
|
| 49 |
+
[More Information Needed]
|
| 50 |
+
|
| 51 |
+
### Downstream Use [optional]
|
| 52 |
+
|
| 53 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 54 |
+
|
| 55 |
+
[More Information Needed]
|
| 56 |
+
|
| 57 |
+
### Out-of-Scope Use
|
| 58 |
+
|
| 59 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 60 |
+
|
| 61 |
+
[More Information Needed]
|
| 62 |
+
|
| 63 |
+
## Bias, Risks, and Limitations
|
| 64 |
+
|
| 65 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 66 |
+
|
| 67 |
+
[More Information Needed]
|
| 68 |
+
|
| 69 |
+
### Recommendations
|
| 70 |
+
|
| 71 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 72 |
+
|
| 73 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 74 |
+
|
| 75 |
+
## How to Get Started with the Model
|
| 76 |
+
|
| 77 |
+
Use the code below to get started with the model.
|
| 78 |
+
|
| 79 |
+
[More Information Needed]
|
| 80 |
+
|
| 81 |
+
## Training Details
|
| 82 |
+
|
| 83 |
+
### Training Data
|
| 84 |
+
|
| 85 |
+
<!-- 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. -->
|
| 86 |
+
|
| 87 |
+
[More Information Needed]
|
| 88 |
+
|
| 89 |
+
### Training Procedure
|
| 90 |
+
|
| 91 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 92 |
+
|
| 93 |
+
#### Preprocessing [optional]
|
| 94 |
+
|
| 95 |
+
[More Information Needed]
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
#### Training Hyperparameters
|
| 99 |
+
|
| 100 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 101 |
+
|
| 102 |
+
#### Speeds, Sizes, Times [optional]
|
| 103 |
+
|
| 104 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 105 |
+
|
| 106 |
+
[More Information Needed]
|
| 107 |
+
|
| 108 |
+
## Evaluation
|
| 109 |
+
|
| 110 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 111 |
+
|
| 112 |
+
### Testing Data, Factors & Metrics
|
| 113 |
+
|
| 114 |
+
#### Testing Data
|
| 115 |
+
|
| 116 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 117 |
+
|
| 118 |
+
[More Information Needed]
|
| 119 |
+
|
| 120 |
+
#### Factors
|
| 121 |
+
|
| 122 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 123 |
+
|
| 124 |
+
[More Information Needed]
|
| 125 |
+
|
| 126 |
+
#### Metrics
|
| 127 |
+
|
| 128 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 129 |
+
|
| 130 |
+
[More Information Needed]
|
| 131 |
+
|
| 132 |
+
### Results
|
| 133 |
+
|
| 134 |
+
[More Information Needed]
|
| 135 |
+
|
| 136 |
+
#### Summary
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
## Model Examination [optional]
|
| 141 |
+
|
| 142 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 143 |
+
|
| 144 |
+
[More Information Needed]
|
| 145 |
+
|
| 146 |
+
## Environmental Impact
|
| 147 |
+
|
| 148 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 149 |
+
|
| 150 |
+
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).
|
| 151 |
+
|
| 152 |
+
- **Hardware Type:** [More Information Needed]
|
| 153 |
+
- **Hours used:** [More Information Needed]
|
| 154 |
+
- **Cloud Provider:** [More Information Needed]
|
| 155 |
+
- **Compute Region:** [More Information Needed]
|
| 156 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 157 |
+
|
| 158 |
+
## Technical Specifications [optional]
|
| 159 |
+
|
| 160 |
+
### Model Architecture and Objective
|
| 161 |
+
|
| 162 |
+
[More Information Needed]
|
| 163 |
+
|
| 164 |
+
### Compute Infrastructure
|
| 165 |
+
|
| 166 |
+
[More Information Needed]
|
| 167 |
+
|
| 168 |
+
#### Hardware
|
| 169 |
+
|
| 170 |
+
[More Information Needed]
|
| 171 |
+
|
| 172 |
+
#### Software
|
| 173 |
+
|
| 174 |
+
[More Information Needed]
|
| 175 |
+
|
| 176 |
+
## Citation [optional]
|
| 177 |
+
|
| 178 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 179 |
+
|
| 180 |
+
**BibTeX:**
|
| 181 |
+
|
| 182 |
+
[More Information Needed]
|
| 183 |
+
|
| 184 |
+
**APA:**
|
| 185 |
+
|
| 186 |
+
[More Information Needed]
|
| 187 |
+
|
| 188 |
+
## Glossary [optional]
|
| 189 |
+
|
| 190 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 191 |
+
|
| 192 |
+
[More Information Needed]
|
| 193 |
+
|
| 194 |
+
## More Information [optional]
|
| 195 |
+
|
| 196 |
+
[More Information Needed]
|
| 197 |
+
|
| 198 |
+
## Model Card Authors [optional]
|
| 199 |
+
|
| 200 |
+
[More Information Needed]
|
| 201 |
+
|
| 202 |
+
## Model Card Contact
|
| 203 |
+
|
| 204 |
+
[More Information Needed]
|
| 205 |
+
### Framework versions
|
| 206 |
+
|
| 207 |
+
- PEFT 0.19.1
|
checkpoint-248/adapter_config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-1.5B-Instruct",
|
| 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 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 32,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.05,
|
| 22 |
+
"lora_ga_config": null,
|
| 23 |
+
"megatron_config": null,
|
| 24 |
+
"megatron_core": "megatron.core",
|
| 25 |
+
"modules_to_save": null,
|
| 26 |
+
"peft_type": "LORA",
|
| 27 |
+
"peft_version": "0.19.1",
|
| 28 |
+
"qalora_group_size": 16,
|
| 29 |
+
"r": 16,
|
| 30 |
+
"rank_pattern": {},
|
| 31 |
+
"revision": null,
|
| 32 |
+
"target_modules": [
|
| 33 |
+
"q_proj",
|
| 34 |
+
"o_proj",
|
| 35 |
+
"v_proj",
|
| 36 |
+
"k_proj"
|
| 37 |
+
],
|
| 38 |
+
"target_parameters": null,
|
| 39 |
+
"task_type": "CAUSAL_LM",
|
| 40 |
+
"trainable_token_indices": null,
|
| 41 |
+
"use_bdlora": null,
|
| 42 |
+
"use_dora": false,
|
| 43 |
+
"use_qalora": false,
|
| 44 |
+
"use_rslora": false
|
| 45 |
+
}
|
checkpoint-248/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:50f3411e6291547879fcc9992deee2456a5de9dd623adf396c7b748f79862e85
|
| 3 |
+
size 17462432
|
checkpoint-248/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0e5fc8f0a5d1e78196c64cbc07778b2ad99ebd10ef14547a2a1160ab706e170
|
| 3 |
+
size 1293434
|
checkpoint-248/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94e58a87e6800ca5f2d12df3f6d574b46e7c6c5beedd19d1d96fa471f0ffe4f2
|
| 3 |
+
size 14244
|
checkpoint-248/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4cb44dfbd0143345a0ab9464e652774d6af052b5fb0eeb17981c1b960993f07b
|
| 3 |
+
size 988
|
checkpoint-248/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3f2ef32d4093968e8d8723bb2ad536d75d8cec38fc332dee40f4e39d66518d8
|
| 3 |
+
size 1064
|
checkpoint-248/trainer_state.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": Infinity,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 2.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 248,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.40547389761784086,
|
| 14 |
+
"grad_norm": 0.3029731810092926,
|
| 15 |
+
"learning_rate": 0.00019341317365269463,
|
| 16 |
+
"loss": 0.7336131286621094,
|
| 17 |
+
"step": 50
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.8109477952356817,
|
| 21 |
+
"grad_norm": 0.6691709756851196,
|
| 22 |
+
"learning_rate": 0.00016347305389221556,
|
| 23 |
+
"loss": 0.5254125595092773,
|
| 24 |
+
"step": 100
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 1.0,
|
| 28 |
+
"eval_loss": NaN,
|
| 29 |
+
"eval_runtime": 520.4087,
|
| 30 |
+
"eval_samples_per_second": 0.575,
|
| 31 |
+
"eval_steps_per_second": 0.575,
|
| 32 |
+
"step": 124
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"epoch": 1.2108464267612773,
|
| 36 |
+
"grad_norm": 0.6433291435241699,
|
| 37 |
+
"learning_rate": 0.00013353293413173654,
|
| 38 |
+
"loss": 0.5045146179199219,
|
| 39 |
+
"step": 150
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"epoch": 1.6163203243791182,
|
| 43 |
+
"grad_norm": 0.4409848749637604,
|
| 44 |
+
"learning_rate": 0.0001035928143712575,
|
| 45 |
+
"loss": 0.4645370101928711,
|
| 46 |
+
"step": 200
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"epoch": 2.0,
|
| 50 |
+
"eval_loss": NaN,
|
| 51 |
+
"eval_runtime": 521.254,
|
| 52 |
+
"eval_samples_per_second": 0.574,
|
| 53 |
+
"eval_steps_per_second": 0.574,
|
| 54 |
+
"step": 248
|
| 55 |
+
}
|
| 56 |
+
],
|
| 57 |
+
"logging_steps": 50,
|
| 58 |
+
"max_steps": 372,
|
| 59 |
+
"num_input_tokens_seen": 0,
|
| 60 |
+
"num_train_epochs": 3,
|
| 61 |
+
"save_steps": 500,
|
| 62 |
+
"stateful_callbacks": {
|
| 63 |
+
"TrainerControl": {
|
| 64 |
+
"args": {
|
| 65 |
+
"should_epoch_stop": false,
|
| 66 |
+
"should_evaluate": false,
|
| 67 |
+
"should_log": false,
|
| 68 |
+
"should_save": true,
|
| 69 |
+
"should_training_stop": false
|
| 70 |
+
},
|
| 71 |
+
"attributes": {}
|
| 72 |
+
}
|
| 73 |
+
},
|
| 74 |
+
"total_flos": 8.765309034902323e+16,
|
| 75 |
+
"train_batch_size": 1,
|
| 76 |
+
"trial_name": null,
|
| 77 |
+
"trial_params": null
|
| 78 |
+
}
|
checkpoint-248/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4be76b5c9f2afb45095dadd0f44e49d0fa8d8d3689d3fc89a49da8c1c767e2df
|
| 3 |
+
size 4792
|
checkpoint-372/README.md
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:Qwen/Qwen2.5-1.5B-Instruct
|
| 7 |
+
- lora
|
| 8 |
+
- transformers
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Model Card for Model ID
|
| 12 |
+
|
| 13 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## Model Details
|
| 18 |
+
|
| 19 |
+
### Model Description
|
| 20 |
+
|
| 21 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
- **Developed by:** [More Information Needed]
|
| 26 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 27 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 28 |
+
- **Model type:** [More Information Needed]
|
| 29 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 30 |
+
- **License:** [More Information Needed]
|
| 31 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 32 |
+
|
| 33 |
+
### Model Sources [optional]
|
| 34 |
+
|
| 35 |
+
<!-- Provide the basic links for the model. -->
|
| 36 |
+
|
| 37 |
+
- **Repository:** [More Information Needed]
|
| 38 |
+
- **Paper [optional]:** [More Information Needed]
|
| 39 |
+
- **Demo [optional]:** [More Information Needed]
|
| 40 |
+
|
| 41 |
+
## Uses
|
| 42 |
+
|
| 43 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 44 |
+
|
| 45 |
+
### Direct Use
|
| 46 |
+
|
| 47 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 48 |
+
|
| 49 |
+
[More Information Needed]
|
| 50 |
+
|
| 51 |
+
### Downstream Use [optional]
|
| 52 |
+
|
| 53 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 54 |
+
|
| 55 |
+
[More Information Needed]
|
| 56 |
+
|
| 57 |
+
### Out-of-Scope Use
|
| 58 |
+
|
| 59 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 60 |
+
|
| 61 |
+
[More Information Needed]
|
| 62 |
+
|
| 63 |
+
## Bias, Risks, and Limitations
|
| 64 |
+
|
| 65 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 66 |
+
|
| 67 |
+
[More Information Needed]
|
| 68 |
+
|
| 69 |
+
### Recommendations
|
| 70 |
+
|
| 71 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 72 |
+
|
| 73 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 74 |
+
|
| 75 |
+
## How to Get Started with the Model
|
| 76 |
+
|
| 77 |
+
Use the code below to get started with the model.
|
| 78 |
+
|
| 79 |
+
[More Information Needed]
|
| 80 |
+
|
| 81 |
+
## Training Details
|
| 82 |
+
|
| 83 |
+
### Training Data
|
| 84 |
+
|
| 85 |
+
<!-- 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. -->
|
| 86 |
+
|
| 87 |
+
[More Information Needed]
|
| 88 |
+
|
| 89 |
+
### Training Procedure
|
| 90 |
+
|
| 91 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 92 |
+
|
| 93 |
+
#### Preprocessing [optional]
|
| 94 |
+
|
| 95 |
+
[More Information Needed]
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
#### Training Hyperparameters
|
| 99 |
+
|
| 100 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 101 |
+
|
| 102 |
+
#### Speeds, Sizes, Times [optional]
|
| 103 |
+
|
| 104 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 105 |
+
|
| 106 |
+
[More Information Needed]
|
| 107 |
+
|
| 108 |
+
## Evaluation
|
| 109 |
+
|
| 110 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 111 |
+
|
| 112 |
+
### Testing Data, Factors & Metrics
|
| 113 |
+
|
| 114 |
+
#### Testing Data
|
| 115 |
+
|
| 116 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 117 |
+
|
| 118 |
+
[More Information Needed]
|
| 119 |
+
|
| 120 |
+
#### Factors
|
| 121 |
+
|
| 122 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 123 |
+
|
| 124 |
+
[More Information Needed]
|
| 125 |
+
|
| 126 |
+
#### Metrics
|
| 127 |
+
|
| 128 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 129 |
+
|
| 130 |
+
[More Information Needed]
|
| 131 |
+
|
| 132 |
+
### Results
|
| 133 |
+
|
| 134 |
+
[More Information Needed]
|
| 135 |
+
|
| 136 |
+
#### Summary
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
## Model Examination [optional]
|
| 141 |
+
|
| 142 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 143 |
+
|
| 144 |
+
[More Information Needed]
|
| 145 |
+
|
| 146 |
+
## Environmental Impact
|
| 147 |
+
|
| 148 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 149 |
+
|
| 150 |
+
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).
|
| 151 |
+
|
| 152 |
+
- **Hardware Type:** [More Information Needed]
|
| 153 |
+
- **Hours used:** [More Information Needed]
|
| 154 |
+
- **Cloud Provider:** [More Information Needed]
|
| 155 |
+
- **Compute Region:** [More Information Needed]
|
| 156 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 157 |
+
|
| 158 |
+
## Technical Specifications [optional]
|
| 159 |
+
|
| 160 |
+
### Model Architecture and Objective
|
| 161 |
+
|
| 162 |
+
[More Information Needed]
|
| 163 |
+
|
| 164 |
+
### Compute Infrastructure
|
| 165 |
+
|
| 166 |
+
[More Information Needed]
|
| 167 |
+
|
| 168 |
+
#### Hardware
|
| 169 |
+
|
| 170 |
+
[More Information Needed]
|
| 171 |
+
|
| 172 |
+
#### Software
|
| 173 |
+
|
| 174 |
+
[More Information Needed]
|
| 175 |
+
|
| 176 |
+
## Citation [optional]
|
| 177 |
+
|
| 178 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 179 |
+
|
| 180 |
+
**BibTeX:**
|
| 181 |
+
|
| 182 |
+
[More Information Needed]
|
| 183 |
+
|
| 184 |
+
**APA:**
|
| 185 |
+
|
| 186 |
+
[More Information Needed]
|
| 187 |
+
|
| 188 |
+
## Glossary [optional]
|
| 189 |
+
|
| 190 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 191 |
+
|
| 192 |
+
[More Information Needed]
|
| 193 |
+
|
| 194 |
+
## More Information [optional]
|
| 195 |
+
|
| 196 |
+
[More Information Needed]
|
| 197 |
+
|
| 198 |
+
## Model Card Authors [optional]
|
| 199 |
+
|
| 200 |
+
[More Information Needed]
|
| 201 |
+
|
| 202 |
+
## Model Card Contact
|
| 203 |
+
|
| 204 |
+
[More Information Needed]
|
| 205 |
+
### Framework versions
|
| 206 |
+
|
| 207 |
+
- PEFT 0.19.1
|
checkpoint-372/adapter_config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-1.5B-Instruct",
|
| 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 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 32,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.05,
|
| 22 |
+
"lora_ga_config": null,
|
| 23 |
+
"megatron_config": null,
|
| 24 |
+
"megatron_core": "megatron.core",
|
| 25 |
+
"modules_to_save": null,
|
| 26 |
+
"peft_type": "LORA",
|
| 27 |
+
"peft_version": "0.19.1",
|
| 28 |
+
"qalora_group_size": 16,
|
| 29 |
+
"r": 16,
|
| 30 |
+
"rank_pattern": {},
|
| 31 |
+
"revision": null,
|
| 32 |
+
"target_modules": [
|
| 33 |
+
"q_proj",
|
| 34 |
+
"o_proj",
|
| 35 |
+
"v_proj",
|
| 36 |
+
"k_proj"
|
| 37 |
+
],
|
| 38 |
+
"target_parameters": null,
|
| 39 |
+
"task_type": "CAUSAL_LM",
|
| 40 |
+
"trainable_token_indices": null,
|
| 41 |
+
"use_bdlora": null,
|
| 42 |
+
"use_dora": false,
|
| 43 |
+
"use_qalora": false,
|
| 44 |
+
"use_rslora": false
|
| 45 |
+
}
|
checkpoint-372/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:030161fc03794c4aaabde5a20e82ec19926e3b9aea8df6468251b36f1f7fc9e9
|
| 3 |
+
size 17462432
|
checkpoint-372/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bc3aa006a2e0d4c151a0e17d4907df8489a15252d193a327b77eef80c264514
|
| 3 |
+
size 1293690
|
checkpoint-372/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a7ebd5e007b7c51af4f284d9966888edaa0059cf99b0cdbe36920148c2ae2b3
|
| 3 |
+
size 14244
|
checkpoint-372/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f446e072a74e2a19c2de98ebfe5add28e7bd531abaa2876bc392718dd970562
|
| 3 |
+
size 988
|
checkpoint-372/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07e62fa0f3a9a79aa024e3df97b6370a7c2c27576fa400f2d11682e04348f4b3
|
| 3 |
+
size 1064
|
checkpoint-372/trainer_state.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": Infinity,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 3.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 372,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.40547389761784086,
|
| 14 |
+
"grad_norm": 0.3029731810092926,
|
| 15 |
+
"learning_rate": 0.00019341317365269463,
|
| 16 |
+
"loss": 0.7336131286621094,
|
| 17 |
+
"step": 50
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.8109477952356817,
|
| 21 |
+
"grad_norm": 0.6691709756851196,
|
| 22 |
+
"learning_rate": 0.00016347305389221556,
|
| 23 |
+
"loss": 0.5254125595092773,
|
| 24 |
+
"step": 100
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 1.0,
|
| 28 |
+
"eval_loss": NaN,
|
| 29 |
+
"eval_runtime": 520.4087,
|
| 30 |
+
"eval_samples_per_second": 0.575,
|
| 31 |
+
"eval_steps_per_second": 0.575,
|
| 32 |
+
"step": 124
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"epoch": 1.2108464267612773,
|
| 36 |
+
"grad_norm": 0.6433291435241699,
|
| 37 |
+
"learning_rate": 0.00013353293413173654,
|
| 38 |
+
"loss": 0.5045146179199219,
|
| 39 |
+
"step": 150
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"epoch": 1.6163203243791182,
|
| 43 |
+
"grad_norm": 0.4409848749637604,
|
| 44 |
+
"learning_rate": 0.0001035928143712575,
|
| 45 |
+
"loss": 0.4645370101928711,
|
| 46 |
+
"step": 200
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"epoch": 2.0,
|
| 50 |
+
"eval_loss": NaN,
|
| 51 |
+
"eval_runtime": 521.254,
|
| 52 |
+
"eval_samples_per_second": 0.574,
|
| 53 |
+
"eval_steps_per_second": 0.574,
|
| 54 |
+
"step": 248
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"epoch": 2.0162189559047135,
|
| 58 |
+
"grad_norm": 0.46470925211906433,
|
| 59 |
+
"learning_rate": 7.365269461077845e-05,
|
| 60 |
+
"loss": 0.4020792770385742,
|
| 61 |
+
"step": 250
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"epoch": 2.4216928535225546,
|
| 65 |
+
"grad_norm": 0.36329224705696106,
|
| 66 |
+
"learning_rate": 4.3712574850299406e-05,
|
| 67 |
+
"loss": 0.4243511199951172,
|
| 68 |
+
"step": 300
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"epoch": 2.8271667511403953,
|
| 72 |
+
"grad_norm": 0.3943828046321869,
|
| 73 |
+
"learning_rate": 1.377245508982036e-05,
|
| 74 |
+
"loss": 0.40013973236083983,
|
| 75 |
+
"step": 350
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"epoch": 3.0,
|
| 79 |
+
"eval_loss": NaN,
|
| 80 |
+
"eval_runtime": 523.2415,
|
| 81 |
+
"eval_samples_per_second": 0.571,
|
| 82 |
+
"eval_steps_per_second": 0.571,
|
| 83 |
+
"step": 372
|
| 84 |
+
}
|
| 85 |
+
],
|
| 86 |
+
"logging_steps": 50,
|
| 87 |
+
"max_steps": 372,
|
| 88 |
+
"num_input_tokens_seen": 0,
|
| 89 |
+
"num_train_epochs": 3,
|
| 90 |
+
"save_steps": 500,
|
| 91 |
+
"stateful_callbacks": {
|
| 92 |
+
"TrainerControl": {
|
| 93 |
+
"args": {
|
| 94 |
+
"should_epoch_stop": false,
|
| 95 |
+
"should_evaluate": false,
|
| 96 |
+
"should_log": false,
|
| 97 |
+
"should_save": true,
|
| 98 |
+
"should_training_stop": true
|
| 99 |
+
},
|
| 100 |
+
"attributes": {}
|
| 101 |
+
}
|
| 102 |
+
},
|
| 103 |
+
"total_flos": 1.3147963552353485e+17,
|
| 104 |
+
"train_batch_size": 1,
|
| 105 |
+
"trial_name": null,
|
| 106 |
+
"trial_params": null
|
| 107 |
+
}
|
checkpoint-372/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4be76b5c9f2afb45095dadd0f44e49d0fa8d8d3689d3fc89a49da8c1c767e2df
|
| 3 |
+
size 4792
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fdffce3b8738df362e948610d9f48416d0644b385fe487816ffd73bb1971f20
|
| 3 |
+
size 11421991
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": null,
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|im_end|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"extra_special_tokens": [
|
| 9 |
+
"<|im_start|>",
|
| 10 |
+
"<|im_end|>",
|
| 11 |
+
"<|object_ref_start|>",
|
| 12 |
+
"<|object_ref_end|>",
|
| 13 |
+
"<|box_start|>",
|
| 14 |
+
"<|box_end|>",
|
| 15 |
+
"<|quad_start|>",
|
| 16 |
+
"<|quad_end|>",
|
| 17 |
+
"<|vision_start|>",
|
| 18 |
+
"<|vision_end|>",
|
| 19 |
+
"<|vision_pad|>",
|
| 20 |
+
"<|image_pad|>",
|
| 21 |
+
"<|video_pad|>"
|
| 22 |
+
],
|
| 23 |
+
"is_local": false,
|
| 24 |
+
"local_files_only": false,
|
| 25 |
+
"model_max_length": 131072,
|
| 26 |
+
"pad_token": "<|endoftext|>",
|
| 27 |
+
"split_special_tokens": false,
|
| 28 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 29 |
+
"unk_token": null
|
| 30 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4be76b5c9f2afb45095dadd0f44e49d0fa8d8d3689d3fc89a49da8c1c767e2df
|
| 3 |
+
size 4792
|