Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
2
3model = AutoModelForCausalLM.from_pretrained("Aratako/sarashina2.1-1b-sft", device_map="auto", torch_dtype="auto")
4tokenizer = AutoTokenizer.from_pretrained("Aratako/sarashina2.1-1b-sft")
5streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
6
7messages = [
8 {"role": "user", "content": "ソフトバンク株式会社について教えてください。"}
9]
10
11
12input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
13output_ids = model.generate(input_ids,
14 max_new_tokens=1024,
15 do_sample=False,
16 streamer=streamer,
17 eos_token_id=tokenizer.eos_token_id,
18 )1ソフトバンク株式会社は、日本の大手通信会社の一つで、主に携帯電話やインターネットサービス、そして様々なデジタル製品やサービスを提供しています。
2
31. **事業内容**:
4 - 携帯電話事業: ソフトバンクモバイル(現・ソフトバンク)として、携帯電話やスマートフォンの販売を行っています。
5 - インターネットサービス: ソフトバンクBB(現・ソフトバンクBB)として、インターネット接続サービスやISP事業を行っています。
6 - デジタル製品: スマートフォンやタブレット、ウェアラブルデバイスなどの開発・販売も行っています。
7 - クラウドサービス: ソフトバンククラウドとして、クラウドサービスを提供しています。
8 - 金融サービス: ソフトバンクファイナンスとして、クレジットカードやローンなどの金融サービスを提供しています。
9
102. **グループ会社**:
11 - ソフトバンクグループ: ソフトバンク株式会社の親会社であり、通信事業だけでなく、テクノロジー、メディア、金融など多岐にわたる事業を展開しています。
12 - ソフトバンクBB: インターネット接続サービスやISP事業を行う子会社です。
13 - ソフトバンクモバイル: 携帯電話事業を行う子会社です。
14 - ソフトバンクコマース&サービス: コマース事業を行う子会社です。
15 - ソフトバンクテクノロジー: ITソリューション事業を行う子会社です。
16
173. **特徴**:
18 - ソフトバンクは、通信事業だけでなく、テクノロジーやメディア、金融など多岐にわたる分野で事業を展開しており、その規模と影響力は非常に大きいです。
19 - 「ソフトバンクグループ」として、通信事業だけでなく、テクノロジー、メディア、金融など多岐にわたる事業を展開しています。
20 - 「Pepper」などのロボット開発や、AI(人工知能)技術を活用したサービス開発にも力を入れています。
21
224. **社会貢献活動**:
23 - ソフトバンクは、社会貢献活動にも積極的に取り組んでおり、教育支援や災害時の救援活動など、様々な形で社会に貢献しています。
24
25ソフトバンクは、通信業界だけでなく、幅広い分野で革新的なサービスを提供し、日本の社会や経済に大きな影響を与えています。1<|im_start|>user
2仕事の熱意を取り戻すためのアイデアを5つ挙げてください。<|im_end|>
3<|im_start|>assistant1もちろん、以下にいくつかのアイデアを提案します:
2
31. 目標設定: 明確な目標を設定し、それを達成するための具体的なステップを計画します。これにより、仕事に対するモチベーションが高まります。
4
52. 休憩を取る: 長時間働くと集中力が低下します。定期的に休憩を取り、リフレッシュすることが重要です。
6
73. 新しいスキルを学ぶ: 新しい技術や知識を習得することで、自己成長を感じ、それが仕事への情熱を再び引き出すことができます。
8
94. 健康的なライフスタイルを維持する: 適度な運動や十分な睡眠は、精神的な健康を維持し、エネルギーレベルを高めます。
10
115. ネットワーキング: 同僚や他の専門家との交流を通じて新たな視点を得ることができます。これはあなたの視野を広げ、新たな機会を見つける手助けになります。0.5.21base_model: sbintuitions/sarashina2.1-1b
2model_type: AutoModelForCausalLM
3tokenizer_type: AutoTokenizer
4
5hub_model_id: Aratako/sarashina2.1-1b-sft
6hub_strategy: "end"
7push_dataset_to_hub:
8hf_use_auth_token: true
9
10plugins:
11 - axolotl.integrations.liger.LigerPlugin
12liger_cross_entropy: false
13liger_rope: true
14liger_rms_norm: true
15liger_swiglu: true
16liger_fused_linear_cross_entropy: true
17
18load_in_8bit: false
19load_in_4bit: false
20strict: false
21
22chat_template: chatml
23
24datasets:
25 - path: Aratako/Magpie-Tanuki-Qwen2.5-72B-Answered
26 type: chat_template
27 field_messages: messages
28 message_field_role: role
29 message_field_content: content
30 - path: Aratako/magpie-qwen2.5-32b-reasoning-100k-formatted
31 type: chat_template
32 field_messages: conversations
33 message_field_role: role
34 message_field_content: content
35 - path: Aratako/Open-Platypus-Japanese-masked-formatted
36 type: chat_template
37 field_messages: conversations
38 message_field_role: role
39 message_field_content: content
40 - path: kanhatakeyama/wizardlm8x22b-logical-math-coding-sft_additional-ja
41 type: chat_template
42 field_messages: messages
43 message_field_role: role
44 message_field_content: content
45 - path: kanhatakeyama/ramdom-to-fixed-multiturn-Calm3
46 split: 20240806filtered
47 type: chat_template
48 field_messages: messages
49 message_field_role: role
50 message_field_content: content
51 - path: llm-jp/magpie-sft-v1.0
52 type: chat_template
53 field_messages: conversations
54 message_field_role: role
55 message_field_content: content
56 - path: Aratako/aya-ja-evol-instruct-calm3-dpo-masked-sft
57 type: chat_template
58 field_messages: messages
59 message_field_role: role
60 message_field_content: content
61 - path: Aratako/aya-ja-nemotron-dpo-masked-sft
62 type: chat_template
63 field_messages: messages
64 message_field_role: role
65 message_field_content: content
66 - path: Aratako/Synthetic-JP-EN-Coding-Dataset-801k
67 split: "train[0:50000]"
68 type: chat_template
69 field_messages: messages
70 message_field_role: role
71 message_field_content: content
72 - path: Aratako/orca-agentinstruct-1M-v1-selected-2
73 type: chat_template
74 field_messages: messages
75 message_field_role: role
76 message_field_content: content
77 - path: Aratako/Synthetic-JP-EN-Coding-Dataset-801k-50k
78 type: chat_template
79 field_messages: messages
80 message_field_role: role
81 message_field_content: content
82
83shuffle_merged_datasets: true
84dataset_prepared_path: /workspace/data/fft-data-sarashina
85val_set_size: 0.002
86output_dir: /workspace/data/1b-fft-out
87
88sequence_len: 4096
89sample_packing: true
90eval_sample_packing: false
91pad_to_sequence_len: true
92
93adapter:
94lora_model_dir:
95lora_r:
96lora_alpha:
97lora_dropout:
98lora_target_linear:
99lora_fan_in_fan_out:
100
101wandb_project: 1b-fft
102wandb_entity: aratako-lm
103wandb_watch:
104wandb_name: fft-attempt-1
105wandb_log_model:
106
107gradient_accumulation_steps: 4
108micro_batch_size: 8
109num_epochs: 2
110optimizer: adamw_torch
111lr_scheduler: cosine
112cosine_min_lr_ratio: 0.1
113learning_rate: 0.00002
114
115train_on_inputs: false
116group_by_length: false
117bf16: auto
118fp16:
119tf32: false
120
121gradient_checkpointing: false
122early_stopping_patience:
123auto_resume_from_checkpoints: true
124local_rank:
125logging_steps: 1
126xformers_attention:
127flash_attention: true
128
129save_strategy: steps
130save_steps: 100
131save_total_limit: 1
132
133warmup_steps: 20
134eval_steps: 100
135eval_batch_size: 1
136eval_table_size:
137eval_max_new_tokens:
138debug:
139deepspeed: /workspace/axolotl/deepspeed_configs/zero1.json
140weight_decay: 0.01
141fsdp:
142fsdp_config:
143special_tokens:
144 pad_token: <pad>
145
146tokens:
147 - "<|im_start|>"
148 - "<|im_end|>"
149| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.2935 | 0.0015 | 1 | 1.4733 |
| 0.985 | 0.1515 | 100 | 1.0491 |
| 0.9131 | 0.3029 | 200 | 1.0156 |
| 0.9174 | 0.4544 | 300 | 0.9935 |
| 0.9257 | 0.6058 | 400 | 0.9806 |
| 0.869 | 0.7573 | 500 | 0.9694 |
| 0.8874 | 0.9087 | 600 | 0.9608 |
| 0.8041 | 1.0594 | 700 | 0.9557 |
| 0.8348 | 1.2109 | 800 | 0.9512 |
| 0.8353 | 1.3624 | 900 | 0.9466 |
| 0.8145 | 1.5138 | 1000 | 0.9432 |
| 0.8057 | 1.6653 | 1100 | 0.9400 |
| 0.838 | 1.8167 | 1200 | 0.9381 |
| 0.8446 | 1.9682 | 1300 | 0.9366 |