Views
No views yet
A large-scale Korean reasoning model fine-tuned from google/gemma-3-4b-it, 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 | 51.8 |
| GSM8K | 52.7 |
| HAERAE | 52.1 |
| KSM | 39.7 |
| LogicKor | 6.98 |
| Math500 | 68.1 |
| MT-Bench | 8.32 |
| MT-Bench(Ko) | 6.68 |
pip install -U transformers1from transformers import AutoProcessor, Gemma3ForConditionalGeneration
2from PIL import Image
3import requests
4import torch
5
6model_id = "DimensionSTP/gemma-3-4b-it-Ko-Reasoning"
7
8model = Gemma3ForConditionalGeneration.from_pretrained(
9 model_id, device_map="auto"
10).eval()
11
12processor = AutoProcessor.from_pretrained(model_id)
13
14messages = [
15 {
16 "role": "system",
17 "content": [{"type": "text", "text": "You are a helpful assistant."}]
18 },
19 {
20 "role": "user",
21 "content": [
22 {"type": "text", "text": "서울과 부산 중 어디가 더 커?"}
23 ]
24 }
25]
26
27inputs = processor.apply_chat_template(
28 messages, add_generation_prompt=True, tokenize=True,
29 return_dict=True, return_tensors="pt"
30).to(model.device, dtype=torch.bfloat16)
31
32input_len = inputs["input_ids"].shape[-1]
33
34with torch.inference_mode():
35 generation = model.generate(**inputs, max_new_tokens=8192, do_sample=False)
36 generation = generation[0][input_len:]
37
38decoded = processor.decode(generation, skip_special_tokens=True)
39print(decoded)| Property | Value |
|---|---|
| Architecture | Gemma3ForConditionalGeneration |
| Parameters | 4B |
| Context Length | 128,000 tokens |
| Tokenizer | Gemma3Tokenizer (BPE) |
main: Final stable version from the last branch