Instructions to use 17Lab/qwen1.5b-lora-sft-s12 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use 17Lab/qwen1.5b-lora-sft-s12 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B") model = PeftModel.from_pretrained(base_model, "17Lab/qwen1.5b-lora-sft-s12") - Transformers
How to use 17Lab/qwen1.5b-lora-sft-s12 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="17Lab/qwen1.5b-lora-sft-s12") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("17Lab/qwen1.5b-lora-sft-s12", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 17Lab/qwen1.5b-lora-sft-s12 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "17Lab/qwen1.5b-lora-sft-s12" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "17Lab/qwen1.5b-lora-sft-s12", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/17Lab/qwen1.5b-lora-sft-s12
- SGLang
How to use 17Lab/qwen1.5b-lora-sft-s12 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 "17Lab/qwen1.5b-lora-sft-s12" \ --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": "17Lab/qwen1.5b-lora-sft-s12", "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 "17Lab/qwen1.5b-lora-sft-s12" \ --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": "17Lab/qwen1.5b-lora-sft-s12", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use 17Lab/qwen1.5b-lora-sft-s12 with Docker Model Runner:
docker model run hf.co/17Lab/qwen1.5b-lora-sft-s12
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +70 -0
- adapter_config.json +46 -0
- adapter_model.safetensors +3 -0
- all_results.json +12 -0
- chat_template.jinja +54 -0
- eval_results.json +7 -0
- tokenizer.json +3 -0
- tokenizer_config.json +31 -0
- train_results.json +8 -0
- trainer_log.jsonl +26 -0
- trainer_state.json +221 -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
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: peft
|
| 3 |
+
license: other
|
| 4 |
+
base_model: Qwen/Qwen2.5-1.5B
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:Qwen/Qwen2.5-1.5B
|
| 7 |
+
- llama-factory
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
pipeline_tag: text-generation
|
| 11 |
+
model-index:
|
| 12 |
+
- name: qwen1.5b_lora_sft_8gpu_s12
|
| 13 |
+
results: []
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 17 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 18 |
+
|
| 19 |
+
# qwen1.5b_lora_sft_8gpu_s12
|
| 20 |
+
|
| 21 |
+
This model is a fine-tuned version of [Qwen/Qwen2.5-1.5B](https://huggingface.co/Qwen/Qwen2.5-1.5B) on the assimilation_strict_json_v2 dataset.
|
| 22 |
+
It achieves the following results on the evaluation set:
|
| 23 |
+
- Loss: 0.1504
|
| 24 |
+
|
| 25 |
+
## Model description
|
| 26 |
+
|
| 27 |
+
More information needed
|
| 28 |
+
|
| 29 |
+
## Intended uses & limitations
|
| 30 |
+
|
| 31 |
+
More information needed
|
| 32 |
+
|
| 33 |
+
## Training and evaluation data
|
| 34 |
+
|
| 35 |
+
More information needed
|
| 36 |
+
|
| 37 |
+
## Training procedure
|
| 38 |
+
|
| 39 |
+
### Training hyperparameters
|
| 40 |
+
|
| 41 |
+
The following hyperparameters were used during training:
|
| 42 |
+
- learning_rate: 0.0002
|
| 43 |
+
- train_batch_size: 16
|
| 44 |
+
- eval_batch_size: 4
|
| 45 |
+
- seed: 12
|
| 46 |
+
- distributed_type: multi-GPU
|
| 47 |
+
- num_devices: 8
|
| 48 |
+
- total_train_batch_size: 128
|
| 49 |
+
- total_eval_batch_size: 32
|
| 50 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 51 |
+
- lr_scheduler_type: cosine
|
| 52 |
+
- lr_scheduler_warmup_steps: 0.05
|
| 53 |
+
- num_epochs: 3
|
| 54 |
+
|
| 55 |
+
### Training results
|
| 56 |
+
|
| 57 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 58 |
+
|:-------------:|:------:|:----:|:---------------:|
|
| 59 |
+
| 0.1513 | 1.3158 | 50 | 0.1511 |
|
| 60 |
+
| 0.1504 | 2.6316 | 100 | 0.1504 |
|
| 61 |
+
| 0.1504 | 3.0 | 114 | 0.1504 |
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
### Framework versions
|
| 65 |
+
|
| 66 |
+
- PEFT 0.18.1
|
| 67 |
+
- Transformers 5.6.0
|
| 68 |
+
- Pytorch 2.7.0+cu128
|
| 69 |
+
- Datasets 4.0.0
|
| 70 |
+
- Tokenizers 0.22.2
|
adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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",
|
| 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": 128,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.05,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"peft_version": "0.18.1",
|
| 27 |
+
"qalora_group_size": 16,
|
| 28 |
+
"r": 64,
|
| 29 |
+
"rank_pattern": {},
|
| 30 |
+
"revision": null,
|
| 31 |
+
"target_modules": [
|
| 32 |
+
"k_proj",
|
| 33 |
+
"v_proj",
|
| 34 |
+
"q_proj",
|
| 35 |
+
"o_proj",
|
| 36 |
+
"down_proj",
|
| 37 |
+
"up_proj",
|
| 38 |
+
"gate_proj"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": "CAUSAL_LM",
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d985dd6f8ca36a8bbedbbd5c8a74b7aae0dc5600dd9f4d52f48b9054e8ec7092
|
| 3 |
+
size 295488936
|
all_results.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 3.0,
|
| 3 |
+
"eval_loss": 0.15037637948989868,
|
| 4 |
+
"eval_runtime": 0.3769,
|
| 5 |
+
"eval_samples_per_second": 663.255,
|
| 6 |
+
"eval_steps_per_second": 21.224,
|
| 7 |
+
"total_flos": 1.842079609965773e+16,
|
| 8 |
+
"train_loss": 0.3633330040856412,
|
| 9 |
+
"train_runtime": 60.6965,
|
| 10 |
+
"train_samples_per_second": 234.775,
|
| 11 |
+
"train_steps_per_second": 1.878
|
| 12 |
+
}
|
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 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 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 %}
|
eval_results.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 3.0,
|
| 3 |
+
"eval_loss": 0.15037637948989868,
|
| 4 |
+
"eval_runtime": 0.3769,
|
| 5 |
+
"eval_samples_per_second": 663.255,
|
| 6 |
+
"eval_steps_per_second": 21.224
|
| 7 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8
|
| 3 |
+
size 11421892
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"padding_side": "right",
|
| 28 |
+
"split_special_tokens": false,
|
| 29 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 30 |
+
"unk_token": null
|
| 31 |
+
}
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 3.0,
|
| 3 |
+
"total_flos": 1.842079609965773e+16,
|
| 4 |
+
"train_loss": 0.3633330040856412,
|
| 5 |
+
"train_runtime": 60.6965,
|
| 6 |
+
"train_samples_per_second": 234.775,
|
| 7 |
+
"train_steps_per_second": 1.878
|
| 8 |
+
}
|
trainer_log.jsonl
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"current_steps": 5, "total_steps": 114, "loss": 3.3516746520996095, "lr": 0.00013333333333333334, "epoch": 0.13157894736842105, "percentage": 4.39, "elapsed_time": "0:00:03", "remaining_time": "0:01:06"}
|
| 2 |
+
{"current_steps": 10, "total_steps": 114, "loss": 1.2694276809692382, "lr": 0.00019961946980917456, "epoch": 0.2631578947368421, "percentage": 8.77, "elapsed_time": "0:00:04", "remaining_time": "0:00:50"}
|
| 3 |
+
{"current_steps": 15, "total_steps": 114, "loss": 0.39782161712646485, "lr": 0.00019730448705798239, "epoch": 0.39473684210526316, "percentage": 13.16, "elapsed_time": "0:00:06", "remaining_time": "0:00:43"}
|
| 4 |
+
{"current_steps": 20, "total_steps": 114, "loss": 0.27879135608673095, "lr": 0.00019293475242268223, "epoch": 0.5263157894736842, "percentage": 17.54, "elapsed_time": "0:00:08", "remaining_time": "0:00:38"}
|
| 5 |
+
{"current_steps": 25, "total_steps": 114, "loss": 0.22039237022399902, "lr": 0.00018660254037844388, "epoch": 0.6578947368421053, "percentage": 21.93, "elapsed_time": "0:00:10", "remaining_time": "0:00:35"}
|
| 6 |
+
{"current_steps": 30, "total_steps": 114, "loss": 0.1895224332809448, "lr": 0.00017844156649195759, "epoch": 0.7894736842105263, "percentage": 26.32, "elapsed_time": "0:00:11", "remaining_time": "0:00:32"}
|
| 7 |
+
{"current_steps": 35, "total_steps": 114, "loss": 0.18298850059509278, "lr": 0.0001686241637868734, "epoch": 0.9210526315789473, "percentage": 30.7, "elapsed_time": "0:00:13", "remaining_time": "0:00:30"}
|
| 8 |
+
{"current_steps": 40, "total_steps": 114, "loss": 0.1633323073387146, "lr": 0.0001573576436351046, "epoch": 1.0526315789473684, "percentage": 35.09, "elapsed_time": "0:00:15", "remaining_time": "0:00:28"}
|
| 9 |
+
{"current_steps": 45, "total_steps": 114, "loss": 0.15177669525146484, "lr": 0.00014487991802004623, "epoch": 1.1842105263157894, "percentage": 39.47, "elapsed_time": "0:00:16", "remaining_time": "0:00:25"}
|
| 10 |
+
{"current_steps": 50, "total_steps": 114, "loss": 0.15127369165420532, "lr": 0.00013145447561516138, "epoch": 1.3157894736842106, "percentage": 43.86, "elapsed_time": "0:00:18", "remaining_time": "0:00:23"}
|
| 11 |
+
{"current_steps": 50, "total_steps": 114, "eval_loss": 0.15111804008483887, "epoch": 1.3157894736842106, "percentage": 43.86, "elapsed_time": "0:00:19", "remaining_time": "0:00:24"}
|
| 12 |
+
{"current_steps": 55, "total_steps": 114, "loss": 0.15102126598358154, "lr": 0.00011736481776669306, "epoch": 1.4473684210526316, "percentage": 48.25, "elapsed_time": "0:00:24", "remaining_time": "0:00:26"}
|
| 13 |
+
{"current_steps": 60, "total_steps": 114, "loss": 0.15085721015930176, "lr": 0.00010290847187431113, "epoch": 1.5789473684210527, "percentage": 52.63, "elapsed_time": "0:00:26", "remaining_time": "0:00:23"}
|
| 14 |
+
{"current_steps": 65, "total_steps": 114, "loss": 0.1507188558578491, "lr": 8.839070858747697e-05, "epoch": 1.7105263157894737, "percentage": 57.02, "elapsed_time": "0:00:27", "remaining_time": "0:00:21"}
|
| 15 |
+
{"current_steps": 70, "total_steps": 114, "loss": 0.15061765909194946, "lr": 7.411809548974792e-05, "epoch": 1.8421052631578947, "percentage": 61.4, "elapsed_time": "0:00:29", "remaining_time": "0:00:18"}
|
| 16 |
+
{"current_steps": 75, "total_steps": 114, "loss": 0.15057096481323243, "lr": 6.039202339608432e-05, "epoch": 1.973684210526316, "percentage": 65.79, "elapsed_time": "0:00:31", "remaining_time": "0:00:16"}
|
| 17 |
+
{"current_steps": 80, "total_steps": 114, "loss": 0.15049142837524415, "lr": 4.7502341966544e-05, "epoch": 2.1052631578947367, "percentage": 70.18, "elapsed_time": "0:00:33", "remaining_time": "0:00:14"}
|
| 18 |
+
{"current_steps": 85, "total_steps": 114, "loss": 0.15045424699783325, "lr": 3.5721239031346066e-05, "epoch": 2.236842105263158, "percentage": 74.56, "elapsed_time": "0:00:34", "remaining_time": "0:00:11"}
|
| 19 |
+
{"current_steps": 90, "total_steps": 114, "loss": 0.15041965246200562, "lr": 2.529749287590042e-05, "epoch": 2.3684210526315788, "percentage": 78.95, "elapsed_time": "0:00:36", "remaining_time": "0:00:09"}
|
| 20 |
+
{"current_steps": 95, "total_steps": 114, "loss": 0.15039608478546143, "lr": 1.6451218858706374e-05, "epoch": 2.5, "percentage": 83.33, "elapsed_time": "0:00:38", "remaining_time": "0:00:07"}
|
| 21 |
+
{"current_steps": 100, "total_steps": 114, "loss": 0.15038318634033204, "lr": 9.369221296335006e-06, "epoch": 2.6315789473684212, "percentage": 87.72, "elapsed_time": "0:00:40", "remaining_time": "0:00:05"}
|
| 22 |
+
{"current_steps": 100, "total_steps": 114, "eval_loss": 0.15037640929222107, "epoch": 2.6315789473684212, "percentage": 87.72, "elapsed_time": "0:00:40", "remaining_time": "0:00:05"}
|
| 23 |
+
{"current_steps": 105, "total_steps": 114, "loss": 0.15037939548492432, "lr": 4.20104876845111e-06, "epoch": 2.763157894736842, "percentage": 92.11, "elapsed_time": "0:00:45", "remaining_time": "0:00:03"}
|
| 24 |
+
{"current_steps": 110, "total_steps": 114, "loss": 0.15037713050842286, "lr": 1.055836141905553e-06, "epoch": 2.8947368421052633, "percentage": 96.49, "elapsed_time": "0:00:47", "remaining_time": "0:00:01"}
|
| 25 |
+
{"current_steps": 114, "total_steps": 114, "eval_loss": 0.15037637948989868, "epoch": 3.0, "percentage": 100.0, "elapsed_time": "0:00:49", "remaining_time": "0:00:00"}
|
| 26 |
+
{"current_steps": 114, "total_steps": 114, "epoch": 3.0, "percentage": 100.0, "elapsed_time": "0:00:53", "remaining_time": "0:00:00"}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 3.0,
|
| 6 |
+
"eval_steps": 50,
|
| 7 |
+
"global_step": 114,
|
| 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.13157894736842105,
|
| 14 |
+
"grad_norm": 9.077587127685547,
|
| 15 |
+
"learning_rate": 0.00013333333333333334,
|
| 16 |
+
"loss": 3.3516746520996095,
|
| 17 |
+
"step": 5
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.2631578947368421,
|
| 21 |
+
"grad_norm": 3.6344077587127686,
|
| 22 |
+
"learning_rate": 0.00019961946980917456,
|
| 23 |
+
"loss": 1.2694276809692382,
|
| 24 |
+
"step": 10
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.39473684210526316,
|
| 28 |
+
"grad_norm": 1.4878904819488525,
|
| 29 |
+
"learning_rate": 0.00019730448705798239,
|
| 30 |
+
"loss": 0.39782161712646485,
|
| 31 |
+
"step": 15
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.5263157894736842,
|
| 35 |
+
"grad_norm": 1.8839391469955444,
|
| 36 |
+
"learning_rate": 0.00019293475242268223,
|
| 37 |
+
"loss": 0.27879135608673095,
|
| 38 |
+
"step": 20
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.6578947368421053,
|
| 42 |
+
"grad_norm": 0.47065043449401855,
|
| 43 |
+
"learning_rate": 0.00018660254037844388,
|
| 44 |
+
"loss": 0.22039237022399902,
|
| 45 |
+
"step": 25
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.7894736842105263,
|
| 49 |
+
"grad_norm": 0.13528835773468018,
|
| 50 |
+
"learning_rate": 0.00017844156649195759,
|
| 51 |
+
"loss": 0.1895224332809448,
|
| 52 |
+
"step": 30
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.9210526315789473,
|
| 56 |
+
"grad_norm": 0.10665454715490341,
|
| 57 |
+
"learning_rate": 0.0001686241637868734,
|
| 58 |
+
"loss": 0.18298850059509278,
|
| 59 |
+
"step": 35
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 1.0526315789473684,
|
| 63 |
+
"grad_norm": 0.1658766120672226,
|
| 64 |
+
"learning_rate": 0.0001573576436351046,
|
| 65 |
+
"loss": 0.1633323073387146,
|
| 66 |
+
"step": 40
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 1.1842105263157894,
|
| 70 |
+
"grad_norm": 0.047197695821523666,
|
| 71 |
+
"learning_rate": 0.00014487991802004623,
|
| 72 |
+
"loss": 0.15177669525146484,
|
| 73 |
+
"step": 45
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"epoch": 1.3157894736842106,
|
| 77 |
+
"grad_norm": 0.005160723812878132,
|
| 78 |
+
"learning_rate": 0.00013145447561516138,
|
| 79 |
+
"loss": 0.15127369165420532,
|
| 80 |
+
"step": 50
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"epoch": 1.3157894736842106,
|
| 84 |
+
"eval_loss": 0.15111804008483887,
|
| 85 |
+
"eval_runtime": 0.4047,
|
| 86 |
+
"eval_samples_per_second": 617.704,
|
| 87 |
+
"eval_steps_per_second": 19.767,
|
| 88 |
+
"step": 50
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"epoch": 1.4473684210526316,
|
| 92 |
+
"grad_norm": 0.004525308962911367,
|
| 93 |
+
"learning_rate": 0.00011736481776669306,
|
| 94 |
+
"loss": 0.15102126598358154,
|
| 95 |
+
"step": 55
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"epoch": 1.5789473684210527,
|
| 99 |
+
"grad_norm": 0.004724775906652212,
|
| 100 |
+
"learning_rate": 0.00010290847187431113,
|
| 101 |
+
"loss": 0.15085721015930176,
|
| 102 |
+
"step": 60
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"epoch": 1.7105263157894737,
|
| 106 |
+
"grad_norm": 0.0037995593156665564,
|
| 107 |
+
"learning_rate": 8.839070858747697e-05,
|
| 108 |
+
"loss": 0.1507188558578491,
|
| 109 |
+
"step": 65
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"epoch": 1.8421052631578947,
|
| 113 |
+
"grad_norm": 0.0033727441914379597,
|
| 114 |
+
"learning_rate": 7.411809548974792e-05,
|
| 115 |
+
"loss": 0.15061765909194946,
|
| 116 |
+
"step": 70
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"epoch": 1.973684210526316,
|
| 120 |
+
"grad_norm": 0.003265872597694397,
|
| 121 |
+
"learning_rate": 6.039202339608432e-05,
|
| 122 |
+
"loss": 0.15057096481323243,
|
| 123 |
+
"step": 75
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"epoch": 2.1052631578947367,
|
| 127 |
+
"grad_norm": 0.0035538917873054743,
|
| 128 |
+
"learning_rate": 4.7502341966544e-05,
|
| 129 |
+
"loss": 0.15049142837524415,
|
| 130 |
+
"step": 80
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"epoch": 2.236842105263158,
|
| 134 |
+
"grad_norm": 0.003169580362737179,
|
| 135 |
+
"learning_rate": 3.5721239031346066e-05,
|
| 136 |
+
"loss": 0.15045424699783325,
|
| 137 |
+
"step": 85
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"epoch": 2.3684210526315788,
|
| 141 |
+
"grad_norm": 0.003198214340955019,
|
| 142 |
+
"learning_rate": 2.529749287590042e-05,
|
| 143 |
+
"loss": 0.15041965246200562,
|
| 144 |
+
"step": 90
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"epoch": 2.5,
|
| 148 |
+
"grad_norm": 0.0028158631175756454,
|
| 149 |
+
"learning_rate": 1.6451218858706374e-05,
|
| 150 |
+
"loss": 0.15039608478546143,
|
| 151 |
+
"step": 95
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"epoch": 2.6315789473684212,
|
| 155 |
+
"grad_norm": 0.0028616643976420164,
|
| 156 |
+
"learning_rate": 9.369221296335006e-06,
|
| 157 |
+
"loss": 0.15038318634033204,
|
| 158 |
+
"step": 100
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"epoch": 2.6315789473684212,
|
| 162 |
+
"eval_loss": 0.15037640929222107,
|
| 163 |
+
"eval_runtime": 0.3891,
|
| 164 |
+
"eval_samples_per_second": 642.505,
|
| 165 |
+
"eval_steps_per_second": 20.56,
|
| 166 |
+
"step": 100
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"epoch": 2.763157894736842,
|
| 170 |
+
"grad_norm": 0.003008145373314619,
|
| 171 |
+
"learning_rate": 4.20104876845111e-06,
|
| 172 |
+
"loss": 0.15037939548492432,
|
| 173 |
+
"step": 105
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"epoch": 2.8947368421052633,
|
| 177 |
+
"grad_norm": 0.0028472088743001223,
|
| 178 |
+
"learning_rate": 1.055836141905553e-06,
|
| 179 |
+
"loss": 0.15037713050842286,
|
| 180 |
+
"step": 110
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"epoch": 3.0,
|
| 184 |
+
"eval_loss": 0.15037637948989868,
|
| 185 |
+
"eval_runtime": 0.3596,
|
| 186 |
+
"eval_samples_per_second": 695.274,
|
| 187 |
+
"eval_steps_per_second": 22.249,
|
| 188 |
+
"step": 114
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"epoch": 3.0,
|
| 192 |
+
"step": 114,
|
| 193 |
+
"total_flos": 1.842079609965773e+16,
|
| 194 |
+
"train_loss": 0.3633330040856412,
|
| 195 |
+
"train_runtime": 60.6965,
|
| 196 |
+
"train_samples_per_second": 234.775,
|
| 197 |
+
"train_steps_per_second": 1.878
|
| 198 |
+
}
|
| 199 |
+
],
|
| 200 |
+
"logging_steps": 5,
|
| 201 |
+
"max_steps": 114,
|
| 202 |
+
"num_input_tokens_seen": 0,
|
| 203 |
+
"num_train_epochs": 3,
|
| 204 |
+
"save_steps": 50,
|
| 205 |
+
"stateful_callbacks": {
|
| 206 |
+
"TrainerControl": {
|
| 207 |
+
"args": {
|
| 208 |
+
"should_epoch_stop": false,
|
| 209 |
+
"should_evaluate": false,
|
| 210 |
+
"should_log": false,
|
| 211 |
+
"should_save": true,
|
| 212 |
+
"should_training_stop": true
|
| 213 |
+
},
|
| 214 |
+
"attributes": {}
|
| 215 |
+
}
|
| 216 |
+
},
|
| 217 |
+
"total_flos": 1.842079609965773e+16,
|
| 218 |
+
"train_batch_size": 16,
|
| 219 |
+
"trial_name": null,
|
| 220 |
+
"trial_params": null
|
| 221 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fce39691a0f22fcf61309d4c5c32f7b58ef62e322b201af3c5757d17dc5d202
|
| 3 |
+
size 5777
|