DimensionSTP commited on
Commit
6ee421d
Β·
1 Parent(s): db4fe1f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +138 -0
README.md ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - ko
5
+ - en
6
+ tags:
7
+ - korean
8
+ - reasoning
9
+ - instruction-tuning
10
+ - fine-tuning
11
+ - trillion
12
+ - llama
13
+ - sft
14
+ ---
15
+
16
+ # 🧠 Trillion-7B-preview-Ko-Reasoning
17
+
18
+ > A large-scale Korean reasoning model fine-tuned from **trillionlabs/Trillion-7B-preview**, designed to excel in logical and multi-hop reasoning tasks in Korean.
19
+
20
+ ---
21
+
22
+ ## πŸ“Œ Overview
23
+
24
+ **Trillion-7B-preview-Ko-Reasoning** is a fine-tuned version of [trillionlabs/Trillion-7B-preview](https://huggingface.co/trillionlabs/Trillion-7B-preview), specifically optimized for **logical reasoning in Korean**. This model is part of a broader research initiative to explore:
25
+
26
+ - The **transition from multilingual reasoning LLMs** to **Korean-specialized reasoning models**
27
+ - The enhancement of **non-reasoning Korean language models** into **reasoning-capable variants**
28
+ - The development of open-access models that rival proprietary alternatives in complex reasoning tasks
29
+
30
+ This model was fine-tuned using a large-scale Korean-English instruction dataset containing diverse multi-hop questions, symbolic logic tasks, and human-crafted reasoning steps.
31
+
32
+ ---
33
+
34
+ ## πŸ§ͺ Benchmark Results
35
+
36
+ > - πŸ“Š All benchmarks were measured using the **0-shot CoT (Chain-of-Thought)** method.
37
+ > - πŸ“Š The **Score** represents either the **accuracy (%)** of correct answers or a rating on a **1-10 scale** from a judge model.
38
+ > - πŸ“Š **LLM-as-a-judge** benchmarks were evaluated using **GPT-4o (2024-08-01-preview)**.
39
+
40
+ | **Benchmark** | **Score** |
41
+ |------------------|---------------|
42
+ | GPQA diamond | 56.2 |
43
+ | GSM8K | 53.1 |
44
+ | HAERAE | 73.7 |
45
+ | KSM | 57.8 |
46
+ | LogicKor | 8.40 |
47
+ | Math500 | 72.8 |
48
+ | MT-Bench | 7.90 |
49
+ | MT-Bench(Ko) | 7.87 |
50
+
51
+ ---
52
+
53
+ ## πŸ§‘β€πŸ’» Usage
54
+
55
+ Install Transformers >= 4.50:
56
+
57
+ ```bash
58
+ pip install -U transformers
59
+ ```
60
+
61
+ Basic example:
62
+
63
+ ```python
64
+ from transformers import AutoModelForCausalLM, AutoTokenizer
65
+
66
+ model_name = "DimensionSTP/Trillion-7B-preview-Ko-Reasoning"
67
+
68
+ model = AutoModelForCausalLM.from_pretrained(
69
+ model_name,
70
+ torch_dtype="auto",
71
+ device_map="auto"
72
+ )
73
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
74
+
75
+ prompt = "μ„œμšΈκ³Ό λΆ€μ‚° 쀑 μ–΄λ””κ°€ 더 컀?"
76
+ messages = [
77
+ {"role": "user", "content": prompt}
78
+ ]
79
+ text = tokenizer.apply_chat_template(
80
+ messages,
81
+ tokenize=False,
82
+ add_generation_prompt=True
83
+ )
84
+
85
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
86
+
87
+ generated_ids = model.generate(
88
+ **model_inputs,
89
+ max_new_tokens=4096
90
+ )
91
+ generated_ids = [
92
+ output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
93
+ ]
94
+
95
+ response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
96
+ print(response)
97
+ ```
98
+
99
+ ---
100
+
101
+ ## 🧠 Base Model: trillionlabs/Trillion-7B-preview
102
+
103
+ The base model, [trillionlabs/Trillion-7B-preview](https://huggingface.co/trillionlabs/Trillion-7B-preview), is a LLM developed by the Trillion Labs.
104
+ For more technical details, refer to the [Trillion 7B Technical Report](https://arxiv.org/pdf/2504.15431).
105
+
106
+ ---
107
+
108
+ ## 🧱 Model Architecture
109
+
110
+ | Property | Value |
111
+ |------------------|------------------------|
112
+ | Architecture | LlamaForCausalLM |
113
+ | Parameters | 7B |
114
+ | Context Length | 4,096 tokens |
115
+ | Tokenizer | LlamaTokenizer (BPE) |
116
+
117
+ ---
118
+
119
+ ## πŸ“… Release Date
120
+
121
+ **Mar 2025**
122
+ This model was released in March 2025 as part of the **Ko-Reasoning Series**, which focuses on pushing the boundaries of open-source reasoning in Korean using modern LLMs.
123
+
124
+ ---
125
+
126
+ ## πŸ“¬ Contact
127
+
128
+ For questions, collaborations, or deployment inquiries, please contact:
129
+
130
+ - πŸ€– Hugging Face: [https://huggingface.co/DimensionSTP](https://huggingface.co/DimensionSTP)
131
+ - βœ‰οΈ Email: [ddang8jh@gmail.com]
132
+
133
+ ---
134
+
135
+ ## πŸ“¦ Available Checkpoints
136
+
137
+ - βœ… `main`: Final stable version from the `last` branch
138
+ - βœ… All training artifacts available (tokenizer, config, model weights)