# このモデルについて
このモデルはコード翻訳用にファインチューニングされたモデルです。
学習データセットについては、yamlの中身をご確認ください。
Model Card for Model ID
See axolotl config
axolotl version: 0.8.0.dev0
1# 学習のベースモデルに関する設定
2# ベースモデルには先ほどSFTしたモデルを指定
3base_model: kazuyamaa/gemma-2-2b-sft-merged
4model_type: AutoModelForCausalLM
5tokenizer_type: AutoTokenizer
6
7# 学習後のモデルのHFへのアップロードに関する設定
8hub_model_id: kazuyamaa/gemma-2-2b-code-translate-dpo-merged
9hub_strategy: "end"
10push_dataset_to_hub:
11hf_use_auth_token: true
12
13
14# Liger Kernelの設定(学習の軽量・高速化)
15plugins:
16 - axolotl.integrations.liger.LigerPlugin
17liger_cross_entropy: false
18liger_rope: true
19liger_rms_norm: true
20liger_swiglu: true
21liger_fused_linear_cross_entropy: true
22
23load_in_8bit: false
24load_in_4bit: true
25strict: false
26
27
28chat_template: tokenizer_default
29rl: dpo
30rl_beta: 10.0
31
32dpo_use_weighting: true # Optional[bool]. Whether to perform weighting.
33rpo_alpha: 1.0 # Optional[float]. Weighting of NLL term in loss from RPO paper.
34max_prompt_length: 512
35max_length: 2048
36
37datasets:
38 - path: kazuyamaa/java-to-python-rlhf-dataset-ver01
39 type: gemma.custom
40 train_on_split: train
41 - path: kazuyamaa/java-to-cpp-rlhf-dataset-ver01
42 type: gemma.custom
43 train_on_split: train
44 - path: kazuyamaa/cpp-to-python-rlhf-dataset-ver01
45 type: gemma.custom
46 train_on_split: train
47
48shuffle_merged_datasets: true
49dataset_prepared_path: /workspace/data/fft-dpo-data-gemma-2
50output_dir: /workspace/data/models/gemma-2-2b-code-translate-dpo-merged
51
52sequence_len: 2048
53sample_packing: false
54eval_sample_packing: false
55pad_to_sequence_len: true
56
57# LoRAに関する設定(フルファインチューニングしたい場合は全て空欄にする)
58adapter: qlora
59lora_model_dir:
60lora_r: 16
61lora_alpha: 32
62lora_dropout: 0.05
63lora_target_linear: true
64lora_fan_in_fan_out:
65
66wandb_project: 2b-dpo
67wandb_entity: kazukitakayamas051-securities-companies
68wandb_watch:
69wandb_name: dpo-attempt-01
70wandb_log_model:
71
72gradient_accumulation_steps: 8
73micro_batch_size: 2
74num_epochs: 1
75optimizer: paged_adamw_8bit
76lr_scheduler: cosine
77cosine_min_lr_ratio: 0.1
78learning_rate: 3e-7
79
80train_on_inputs: false
81group_by_length: false
82bf16: auto
83fp16:
84tf32: false
85
86gradient_checkpointing: true
87gradient_checkpointing_kwargs:
88 use_reentrant: true
89early_stopping_patience:
90auto_resume_from_checkpoints: true
91local_rank:
92logging_steps: 1
93xformers_attention:
94flash_attention: true
95
96save_strategy: steps
97save_steps: 100
98save_total_limit: 1
99
100warmup_steps: 20
101eval_steps:
102eval_batch_size:
103eval_table_size:
104eval_max_new_tokens:
105debug:
106deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json
107weight_decay: 0.01
108fsdp:
109fsdp_config:
110special_tokens:
111 pad_token: <pad>
Model Details
gemma-2-2b-sft-lora
This model is a fine-tuned version of
google/gemma-2-2b on the kazuyamaa/multi-language-messages-01, the kazuyamaa/code-translate-google_messages, the kazuyamaa/code_x_glue_cc_code_refinement_messages, the kazuyamaa/CodeTranslatorLLM-Code-Translation_messages and the kazuyamaa/CodeTranslatorLLM-Code-Translation_messages datasets.
It achieves the following results on the evaluation set:
Model Description
- Developed by: [More Information Needed]
- Funded by [optional]: [More Information Needed]
- Shared by [optional]: [More Information Needed]
- Model type: [More Information Needed]
- Language(s) (NLP): [More Information Needed]
- License: [More Information Needed]
- Finetuned from model [optional]: [More Information Needed]
Model Sources [optional]
- Repository: [More Information Needed]
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]
Uses
Direct Use
[More Information Needed]
Downstream Use [optional]
[More Information Needed]
Out-of-Scope Use
[More Information Needed]
Bias, Risks, and Limitations
[More Information Needed]
Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
Training Details
Training Data
[More Information Needed]
Training Procedure
Preprocessing [optional]
[More Information Needed]
Training Hyperparameters
- Training regime: [More Information Needed]
Speeds, Sizes, Times [optional]
[More Information Needed]
Evaluation
Testing Data, Factors & Metrics
Testing Data
[More Information Needed]
Factors
[More Information Needed]
Metrics
[More Information Needed]
Results
[More Information Needed]
Summary
Model Examination [optional]
[More Information Needed]
Environmental Impact
Carbon emissions can be estimated using the
Machine Learning Impact calculator presented in
Lacoste et al. (2019).
- Hardware Type: [More Information Needed]
- Hours used: [More Information Needed]
- Cloud Provider: [More Information Needed]
- Compute Region: [More Information Needed]
- Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
[More Information Needed]
Compute Infrastructure
[More Information Needed]
Hardware
[More Information Needed]
Software
[More Information Needed]
Citation [optional]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
Glossary [optional]
[More Information Needed]
More Information [optional]
[More Information Needed]
Model Card Authors [optional]
[More Information Needed]
Model Card Contact
[More Information Needed]
Framework versions