Holy-fox commited on
Commit
fb40a92
·
verified ·
1 Parent(s): ad39731

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +65 -3
README.md CHANGED
@@ -1,3 +1,65 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - ja
5
+ - en
6
+ base_model:
7
+ - Qwen/Qwen2.5-32B-Instruct
8
+ - cyberagent/DeepSeek-R1-Distill-Qwen-32B-Japanese
9
+ - abeja/ABEJA-Qwen2.5-32b-Japanese-v0.1
10
+ ---
11
+
12
+ ## 概要
13
+ このモデルは[Qwen/Qwen2.5-32B](https://huggingface.co/Qwen/Qwen2.5-32B)をファインチューニングしたAbeja社のベースモデルにDeepSeek社のR1蒸留モデルである[deepseek-ai/DeepSeek-R1-Distill-Qwen-32B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-32B)を日本語ファインチューニングしたcyber agent社の[cyberagent/DeepSeek-R1-Distill-Qwen-32B-Japanese](https://huggingface.co/cyberagent/DeepSeek-R1-Distill-Qwen-32B-Japanese)をChatVectorを用いて加えたものに、独自の日本語強化ファインチューニングをしたモデルとなります。
14
+
15
+ ## 注意
16
+ Abeja社はbaseモデルを公開していないため、マイナスチャットベクターを用いて作りました。
17
+ このモデルは **長考モデル**ではありません。
18
+ ## How to use
19
+ ```python
20
+ from transformers import AutoModelForCausalLM, AutoTokenizer
21
+
22
+ model_name = "DataPilot/Arrival-32B-Instruct-v0.4"
23
+ tokenizer_name = ""
24
+
25
+ if tokenizer_name == "":
26
+ tokenizer_name = model_name
27
+
28
+ model = AutoModelForCausalLM.from_pretrained(
29
+ model_name,
30
+ torch_dtype="auto",
31
+ device_map="auto"
32
+ )
33
+ tokenizer = AutoTokenizer.from_pretrained(tokenizer_name)
34
+
35
+ prompt = "9.9と9.11はどちらのほうが大きいですか?"
36
+ messages = [
37
+ {"role": "system", "content": "あなたは優秀な日本語アシスタントです。問題解決をするために考えた上で回答を行ってください。"},
38
+ {"role": "user", "content": prompt}
39
+ ]
40
+ text = tokenizer.apply_chat_template(
41
+ messages,
42
+ tokenize=False,
43
+ add_generation_prompt=True
44
+ )
45
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
46
+
47
+ generated_ids = model.generate(
48
+ **model_inputs,
49
+ max_new_tokens=1024
50
+ )
51
+ generated_ids = [
52
+ output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
53
+ ]
54
+
55
+ response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
56
+
57
+ print(response)
58
+ ```
59
+
60
+ ## ベンチマーク
61
+ このモデルはELYZA-task100で4.61をマークしました。(評価にはGroqのllama3-70B-8192を使用しました。)
62
+
63
+
64
+ ## 謝辞
65
+ モデルの作成者であるDeepSeekチーム, Qwenチーム, Abejaチーム, CyberAgentチーム、評価モデルの作成者であるmeta社とAPIを公開しているGroq社、計算資源を貸していただいたVOLTMIND社に感謝を申し上げます。