Views
No views yet
A large-scale Korean reasoning model fine-tuned from Qwen/QwQ-32B, designed to excel in logical and multi-hop reasoning tasks in Korean.
- 📊 All benchmarks were measured using the 0-shot CoT (Chain-of-Thought) method.
- 📊 The Score represents either the accuracy (%) of correct answers or a rating on a 1-10 scale from a judge model.
- 📊 LLM-as-a-judge benchmarks were evaluated using GPT-4o (2024-08-01-preview).
| Benchmark | Score |
|---|---|
| GPQA diamond | 71.7 |
| GSM8K | 74.6 |
| HAERAE | 83.0 |
| KSM | 83.1 |
| LogicKor | 8.93 |
| Math500 | 85.3 |
| MT-Bench | 8.36 |
| MT-Bench(Ko) | 8.02 |
pip install -U transformers1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "DimensionSTP/QwQ-32B-Ko-Reasoning"
4
5model = AutoModelForCausalLM.from_pretrained(
6 model_name,
7 torch_dtype="auto",
8 device_map="auto"
9)
10tokenizer = AutoTokenizer.from_pretrained(model_name)
11
12prompt = "서울과 부산 중 어디가 더 커?"
13messages = [
14 {"role": "user", "content": prompt}
15]
16text = tokenizer.apply_chat_template(
17 messages,
18 tokenize=False,
19 add_generation_prompt=True
20)
21
22model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
23
24generated_ids = model.generate(
25 **model_inputs,
26 max_new_tokens=32768
27)
28generated_ids = [
29 output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
30]
31
32response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
33print(response)| Property | Value |
|---|---|
| Architecture | Qwen2ForCausalLM |
| Parameters | 32B |
| Context Length | 131,072 tokens |
| Tokenizer | QwenTokenizer (BPE) |
main: Final stable version from the last branch