初始化项目,由ModelHub XC社区提供模型
Model: youngseok12/AX-3.1-Light-sft_v3_0 Source: Original Platform
This commit is contained in:
37
.gitattributes
vendored
Normal file
37
.gitattributes
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||
*.model filter=lfs diff=lfs merge=lfs -text
|
||||
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||
assets/A.X_from_scratch_logo_ko_4x3.png filter=lfs diff=lfs merge=lfs -text
|
||||
assets/A.X_3.1_Light_pareto.png filter=lfs diff=lfs merge=lfs -text
|
||||
226
LICENSE
Normal file
226
LICENSE
Normal file
@@ -0,0 +1,226 @@
|
||||
Copyright (c) 2025 SK Telecom Co., Ltd. All rights reserved.
|
||||
|
||||
Unless otherwise stated, all files in this repository (including modified model weights
|
||||
and tokenizer files) are distributed under the terms of the Apache License, Version 2.0
|
||||
(the "License"). You may obtain a copy of the License at:
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed under
|
||||
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
||||
ANY KIND, either express or implied. See the License for the specific language governing
|
||||
permissions and limitations under the License.
|
||||
|
||||
================================================================================
|
||||
TRADEMARK
|
||||
================================================================================
|
||||
|
||||
"SK Telecom" and associated logos are trademarks of SK Telecom Co., Ltd.
|
||||
This License does not grant permission to use these trademarks without prior
|
||||
written consent.
|
||||
|
||||
================================================================================
|
||||
APACHE LICENSE 2.0
|
||||
================================================================================
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2025 SK Telecom Co.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
136
README.md
Normal file
136
README.md
Normal file
@@ -0,0 +1,136 @@
|
||||
---
|
||||
base_model: skt/A.X-3.1-Light
|
||||
library_name: transformers
|
||||
language:
|
||||
- ko
|
||||
license: apache-2.0
|
||||
pipeline_tag: text-generation
|
||||
tags:
|
||||
- korean
|
||||
- sft
|
||||
- lora-merged
|
||||
- safetensors
|
||||
- k-ai-leaderboard
|
||||
---
|
||||
|
||||
# A.X-3.1-Light-sft_v3_0
|
||||
|
||||
`skt/A.X-3.1-Light`를 기반으로 AI Hub 한국어 데이터로 수행한 첫 번째
|
||||
clean SFT baseline입니다. LoRA adapter를 base model에 병합한
|
||||
standalone BF16 모델이므로 별도의 adapter나 custom Python code 없이
|
||||
Transformers 및 표준 vLLM에서 로드할 수 있습니다.
|
||||
|
||||
이 모델은 연구 및 2026 K-DATA SCIENCE 해커톤의 로컬 검증을 위한
|
||||
실험 산출물입니다. K-AI 리더보드의 공식 점수를 포함하지 않으며, 공개
|
||||
benchmark 문항은 학습 데이터에 포함하지 않았습니다.
|
||||
|
||||
## Model Details
|
||||
|
||||
- Base model: [`skt/A.X-3.1-Light`](https://huggingface.co/skt/A.X-3.1-Light)
|
||||
- Architecture: `LlamaForCausalLM` (unchanged from the base model)
|
||||
- Parameters: approximately 7B
|
||||
- Weight format: BF16 `safetensors`
|
||||
- Chat template: the official A.X chat template
|
||||
- Custom code: none
|
||||
- Merge method: PEFT LoRA `merge_and_unload`
|
||||
- Base revision used for training and merge: `9b41bb2406472634d8812c0b8931fa40fa9a6c3a`
|
||||
|
||||
## Training Data
|
||||
|
||||
The SFT view contained 36,000 training examples and 3,000 validation
|
||||
examples. Training and validation were kept separate at the source level.
|
||||
The following AI Hub data domains were used:
|
||||
|
||||
- Civil law LLM pretraining and instruction-tuning data
|
||||
- Criminal law LLM pretraining and instruction-tuning data
|
||||
- Administrative law LLM pretraining and instruction-tuning data
|
||||
- Corporate accounting standards data
|
||||
- Essential medical knowledge data
|
||||
- News article machine-reading data
|
||||
- CoT-Fabric technology valuation data
|
||||
|
||||
Public evaluation benchmark data, including KMMLU-Pro, CLIcK, HLE,
|
||||
SNU Ko-MuSR, Com2-main, and Original MuSR, was not used for SFT.
|
||||
|
||||
## Training Procedure
|
||||
|
||||
- Objective: standard assistant-token causal language-model cross entropy
|
||||
- Epochs: 1
|
||||
- Learning rate: `5e-5`
|
||||
- Scheduler: cosine
|
||||
- Warmup ratio: `0.03`
|
||||
- Weight decay: `0.01`
|
||||
- LoRA rank: `16`
|
||||
- LoRA alpha: `32`
|
||||
- LoRA dropout: `0.05`
|
||||
- LoRA target modules: `q_proj`, `k_proj`, `v_proj`, `o_proj`
|
||||
- Effective batch size: `32`
|
||||
- Maximum sequence length: `2048`
|
||||
- Precision: BF16
|
||||
- Packing: disabled
|
||||
- Random seed: `20260825`
|
||||
|
||||
The final training view used 800 reasoning examples. Their output tokens
|
||||
accounted for approximately 24.37% of the total assistant target tokens.
|
||||
The training format validator passed all 36,000 training and 3,000
|
||||
validation examples.
|
||||
|
||||
## Usage with Transformers
|
||||
|
||||
```python
|
||||
import torch
|
||||
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||
|
||||
model_id = "youngseok12/AX-3.1-Light-sft_v3_0"
|
||||
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
||||
model = AutoModelForCausalLM.from_pretrained(
|
||||
model_id,
|
||||
dtype=torch.bfloat16,
|
||||
device_map="auto",
|
||||
)
|
||||
|
||||
messages = [{"role": "user", "content": "대한민국의 수도는 어디인가요?"}]
|
||||
inputs = tokenizer.apply_chat_template(
|
||||
messages,
|
||||
add_generation_prompt=True,
|
||||
tokenize=True,
|
||||
return_tensors="pt",
|
||||
).to(model.device)
|
||||
|
||||
with torch.inference_mode():
|
||||
outputs = model.generate(**inputs, max_new_tokens=64, do_sample=False)
|
||||
|
||||
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
|
||||
```
|
||||
|
||||
## Usage with vLLM
|
||||
|
||||
```bash
|
||||
vllm serve youngseok12/AX-3.1-Light-sft_v3_0 \
|
||||
--dtype bfloat16 \
|
||||
--max-model-len 32768
|
||||
```
|
||||
|
||||
The repository is intended to be publicly accessible and directly loadable
|
||||
by a standard vLLM OpenAI-compatible server. The model does not require
|
||||
`trust_remote_code=True`.
|
||||
|
||||
## Intended Use and Limitations
|
||||
|
||||
This model is intended for Korean-language research, controlled evaluation,
|
||||
and experimentation with instruction-following and domain-oriented SFT.
|
||||
It is not a substitute for professional legal, accounting, or medical
|
||||
advice. Responses may contain factual errors, unsupported reasoning, or
|
||||
format deviations. The reported training configuration does not imply an
|
||||
official K-AI leaderboard result.
|
||||
|
||||
The AI Hub source data remains subject to its original access terms and
|
||||
licenses. This repository contains model weights and documentation, not the
|
||||
source training datasets.
|
||||
|
||||
## License
|
||||
|
||||
The base model is distributed under the Apache License 2.0. Please review
|
||||
the base model license and the terms applicable to the source training data
|
||||
before using or redistributing this derivative model.
|
||||
|
||||
72
chat_template.jinja
Normal file
72
chat_template.jinja
Normal file
@@ -0,0 +1,72 @@
|
||||
{%- if tools is iterable and tools | length > 0 %}
|
||||
{{- '<|im_start|><|system|>'}}
|
||||
{{- '당신은 도구 호출 기능을 갖춘 유용한 도우미입니다. 사용자의 요청을 처리하기 위해서 필요한 도구가 주어진 목록에 있는 경우 도구 호출로 응답하세요.
|
||||
필요한 도구가 목록에 없는 경우에는 도구 호출 없이 사용자가 요구한 정보를 제공하세요.
|
||||
필요한 도구가 목록에 있지만 해당 도구를 호출하는데 필요한 argument 정보가 부족한 경우 해당 정보를 사용자에게 요청하세요.
|
||||
사용자의 요청을 처리하기 위해 여러번 도구를 호출할 수 있어야 합니다.
|
||||
도구 호출 이후 도구 실행 결과를 입력으로 받으면 해당 결과를 활용하여 답변을 생성하세요.
|
||||
|
||||
다음은 접근할 수 있는 도구들의 목록 입니다:
|
||||
<tools>
|
||||
'}}
|
||||
{%- for t in tools %}
|
||||
{{- t | tojson }}
|
||||
{{- '
|
||||
' }}
|
||||
{%- endfor %}
|
||||
{{- '</tools>' }}
|
||||
{{- '
|
||||
|
||||
도구를 호출하려면 아래의 JSON으로 응답하세요.
|
||||
도구 호출 형식: <tool_call>{"name": 도구 이름, "arguments": dictionary 형태의 도구 인자값}</tool_call>' }}
|
||||
{{- '<|im_end|>' }}
|
||||
{%- endif %}
|
||||
|
||||
{%- for message in messages %}
|
||||
{%- if message.role == 'system' %}
|
||||
{{- '<|im_start|><|system|>' + message.content + '<|im_end|>'}}
|
||||
{%- elif message.role == 'user' %}
|
||||
{{- '<|im_start|><|user|>' + message.content + '<|im_end|>'}}
|
||||
{%- elif message.role == 'assistant' %}
|
||||
{{- '<|im_start|><|assistant|>'}}
|
||||
{%- set content = '' %}
|
||||
{%- if message.content is defined %}
|
||||
{%- set content = message.content %}
|
||||
{%- endif %}
|
||||
|
||||
{%- if add_generation_prompt and not (message.reasoning_content is defined and message.reasoning_content is not none) %}
|
||||
{%- if '</think>' in message.content %}
|
||||
{%- set content = message.content.split('</think>'.strip())[-1].lstrip('\n') %}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
||||
{{- content}}
|
||||
{%- if message.tool_calls is defined %}
|
||||
{%- for tool_call in message.tool_calls %}
|
||||
{%- if tool_call.function is defined %}
|
||||
{%- set tool_call = tool_call.function %}
|
||||
{%- endif %}
|
||||
{{- '<tool_call>' }}
|
||||
{{- '{' }}
|
||||
{{- '"name": "' }}
|
||||
{{- tool_call.name }}
|
||||
{{- '"' }}
|
||||
{%- if tool_call.arguments is defined %}
|
||||
{{- ', ' }}
|
||||
{{- '"arguments": ' }}
|
||||
{{- tool_call.arguments|tojson }}
|
||||
{%- endif %}
|
||||
{{- '}' }}
|
||||
{{- '</tool_call>' }}
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
{{- '<|im_end|>'}}
|
||||
|
||||
{%- elif message.role == 'tool' %}
|
||||
{{- '<|im_start|><|extra_id_13|><tool_output>' + message.content + '</tool_output><|im_end|>'}}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
|
||||
{%- if add_generation_prompt %}
|
||||
{{- '<|im_start|><|assistant|>' }}
|
||||
{%- endif %}
|
||||
32
config.json
Normal file
32
config.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"architectures": [
|
||||
"LlamaForCausalLM"
|
||||
],
|
||||
"attention_bias": false,
|
||||
"attention_dropout": 0.1,
|
||||
"bos_token_id": 0,
|
||||
"dtype": "bfloat16",
|
||||
"eos_token_id": 0,
|
||||
"head_dim": 128,
|
||||
"hidden_act": "silu",
|
||||
"hidden_size": 4096,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 10880,
|
||||
"max_position_embeddings": 32768,
|
||||
"mlp_bias": false,
|
||||
"model_type": "llama",
|
||||
"num_attention_heads": 32,
|
||||
"num_hidden_layers": 32,
|
||||
"num_key_value_heads": 32,
|
||||
"pad_token_id": null,
|
||||
"pretraining_tp": 1,
|
||||
"rms_norm_eps": 1e-05,
|
||||
"rope_parameters": {
|
||||
"rope_theta": 500000,
|
||||
"rope_type": "default"
|
||||
},
|
||||
"tie_word_embeddings": false,
|
||||
"transformers_version": "5.15.0",
|
||||
"use_cache": false,
|
||||
"vocab_size": 102400
|
||||
}
|
||||
7
generation_config.json
Normal file
7
generation_config.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"bos_token_id": 0,
|
||||
"eos_token_id": 27,
|
||||
"max_new_tokens": 32768,
|
||||
"pad_token_id": 1,
|
||||
"transformers_version": "5.15.0"
|
||||
}
|
||||
41
kds_merge_info.json
Normal file
41
kds_merge_info.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"model_name": "A.X-3.1-Light-sft_v3_0",
|
||||
"base_model": "skt/A.X-3.1-Light",
|
||||
"base_revision": "9b41bb2406472634d8812c0b8931fa40fa9a6c3a",
|
||||
"finetuning_method": "LoRA SFT followed by merge_and_unload",
|
||||
"merge_output": "standalone BF16 safetensors",
|
||||
"custom_code_required": false,
|
||||
"training": {
|
||||
"train_examples": 36000,
|
||||
"validation_examples": 3000,
|
||||
"epochs": 1,
|
||||
"learning_rate": 0.00005,
|
||||
"scheduler": "cosine",
|
||||
"warmup_ratio": 0.03,
|
||||
"weight_decay": 0.01,
|
||||
"effective_batch_size": 32,
|
||||
"max_sequence_length": 2048,
|
||||
"lora_rank": 16,
|
||||
"lora_alpha": 32,
|
||||
"lora_dropout": 0.05,
|
||||
"target_modules": ["q_proj", "k_proj", "v_proj", "o_proj"],
|
||||
"precision": "bfloat16",
|
||||
"packing": false,
|
||||
"seed": 20260825,
|
||||
"loss": "standard assistant-token causal LM cross entropy"
|
||||
},
|
||||
"training_data": {
|
||||
"source": "AI Hub domain-specific Korean datasets",
|
||||
"public_benchmark_data_included": false,
|
||||
"train_validation_source_overlap": 0,
|
||||
"train_examples_by_output_contract": {
|
||||
"EXPLANATION": 19643,
|
||||
"SHORT_ANSWER": 7583,
|
||||
"NUMBER_ONLY": 5176,
|
||||
"LABEL_ONLY": 2798,
|
||||
"REASONING_FINAL": 800
|
||||
},
|
||||
"reasoning_final_output_token_share": 0.243691
|
||||
},
|
||||
"created_at_utc": "2026-08-26T10:46:37Z"
|
||||
}
|
||||
102104
merges.txt
Normal file
102104
merges.txt
Normal file
File diff suppressed because it is too large
Load Diff
3
model.safetensors
Normal file
3
model.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e177650628923e6ab41e67ce2a0046010ab74a9288d51b151f685f116c911b6f
|
||||
size 14529635608
|
||||
88
special_tokens_map.json
Normal file
88
special_tokens_map.json
Normal file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"additional_special_tokens": [
|
||||
"<|endoftext|>",
|
||||
"<|pad|>",
|
||||
"<|unk|>",
|
||||
"<|sep|>",
|
||||
"<|mask|>",
|
||||
"<|cls|>",
|
||||
"<|image|>",
|
||||
"<|audio|>",
|
||||
"<|user|>",
|
||||
"<|system|>",
|
||||
"<|assistant|>",
|
||||
"<|extra_id_0|>",
|
||||
"<|extra_id_1|>",
|
||||
"<|extra_id_2|>",
|
||||
"<|extra_id_3|>",
|
||||
"<|extra_id_4|>",
|
||||
"<|extra_id_5|>",
|
||||
"<|extra_id_6|>",
|
||||
"<|extra_id_7|>",
|
||||
"<|extra_id_8|>",
|
||||
"<|extra_id_9|>",
|
||||
"<|extra_id_10|>",
|
||||
"<|extra_id_13|>",
|
||||
"<|im_start|>",
|
||||
"<|im_sep|>",
|
||||
"<|im_end|>",
|
||||
"<|resident_reg|>",
|
||||
"<|foreigner_reg|>",
|
||||
"<|business_reg|>",
|
||||
"<|credit_card|>",
|
||||
"<|passport|>",
|
||||
"<|driver_license|>",
|
||||
"<|telephone|>",
|
||||
"<|health_insurance|>",
|
||||
"<|bank_account|>"
|
||||
],
|
||||
"bos_token": {
|
||||
"content": "<|endoftext|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"cls_token": {
|
||||
"content": "<|cls|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"eos_token": {
|
||||
"content": "<|im_end|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"mask_token": {
|
||||
"content": "<|mask|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"pad_token": {
|
||||
"content": "<|pad|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"sep_token": {
|
||||
"content": "<|sep|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"unk_token": {
|
||||
"content": "<|unk|>",
|
||||
"lstrip": false,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
}
|
||||
}
|
||||
511221
tokenizer.json
Normal file
511221
tokenizer.json
Normal file
File diff suppressed because it is too large
Load Diff
23
tokenizer_config.json
Normal file
23
tokenizer_config.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"add_prefix_space": false,
|
||||
"backend": "tokenizers",
|
||||
"bos_token": "<|endoftext|>",
|
||||
"clean_up_tokenization_spaces": true,
|
||||
"cls_token": "<|cls|>",
|
||||
"eod_token": "<|endoftext|>",
|
||||
"eos_token": "<|im_end|>",
|
||||
"errors": "replace",
|
||||
"is_local": true,
|
||||
"local_files_only": true,
|
||||
"mask_token": "<|mask|>",
|
||||
"max_length": 7680,
|
||||
"model_max_length": 32768,
|
||||
"model_specific_special_tokens": {
|
||||
"eod_token": "<|endoftext|>"
|
||||
},
|
||||
"pad_token": "<|pad|>",
|
||||
"sep_token": "<|sep|>",
|
||||
"tokenizer_class": "GPT2Tokenizer",
|
||||
"unk_token": "<|unk|>",
|
||||
"vocab_size": 102400
|
||||
}
|
||||
102402
vocab.json
Normal file
102402
vocab.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user