Downloads · 30 days
30
18% of all-time downloads
cjkasbdkjnlakb/agent-0927-06
agent-0927-06 is a text generation model from cjkasbdkjnlakb. Use it when you need the model to write or continue text. It is set up for peft.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
30
18% of all-time downloads
All-time downloads
165
Public
Repo size
144 MB
Likes
1
Public
Click a slice to open those files.
.safetensors132 MB · 89%
From the Hugging Face model README
axolotl version: 0.12.2
# 基础模型配置
base_model: /workspace/agent-0927-05-merged
load_in_8bit: false
load_in_4bit: false # QLoRA才需要4bit
# LoRA 适配器配置 - 这是关键部分
adapter: lora # 明确指定使用LoRA
lora_model_dir: # 如果有预训练的LoRA权重可以在这里指定
# LoRA 具体参数
lora_r: 32
lora_alpha: 64
lora_dropout: 0.15
lora_target_modules: # Qwen3模型的关键模块
- q_proj
- k_proj
- v_proj
- o_proj
- gate_proj
- up_proj
- down_proj
lora_target_linear: true # 自动找到所有线性层
lora_fan_in_fan_out: false
# 数据集设置
chat_template: qwen3
datasets:
- path: /workspace/train_dir_0927-05/all_tool_data_4500.json
type: chat_template
weight: 20
roles_to_train: ["assistant"]
field_messages: messages
message_property_mappings:
role: role
content: content
- path: /workspace/final_data.json
type: chat_template
weight: 30
roles_to_train: ["assistant"]
field_messages: messages
message_property_mappings:
role: role
content: content
- path: /workspace/train_dir_0927-05/retrieval_data_sql.json
type: chat_template
weight: 50
roles_to_train: ["assistant"]
field_messages: messages
message_property_mappings:
role: role
content: content
dataset_prepared_path:
val_set_size: 0.1
output_dir: /workspace/train_dir_0927-06/checkpoints
# 序列长度设置
sequence_len: 7000
pad_to_sequence_len: true
sample_packing: false
eval_sample_packing: false
group_by_length: true # 启用长度分组,提高效率
# 训练超参数
num_epochs: 2
micro_batch_size: 8 # H100显存大
gradient_accumulation_steps: 2 # 8卡LoRA不需要太大的累积
eval_batch_size: 8
# 优化器设置
optimizer: adamw_torch_fused
lr_scheduler: cosine_with_restarts
cosine_restarts: 2 # 每个epoch重启一次
learning_rate: 4e-5
warmup_ratio: 0.03
weight_decay: 0.05
# 精度设置
bf16: auto # H100支持bf16
tf32: true
gradient_checkpointing: true # 节省显存
flash_attention: true
# 日志和保存
logging_steps: 30
evals_per_epoch: 1
saves_per_epoch: 1
save_total_limit: 3 # 只保留最新的3个checkpoint
# 多卡训练配置 - 使用DeepSpeed而不是FSDP
deepspeed: /workspace/axolotl/deepspeed_configs/zero2.json # 或者直接内联配置
# 其他优化
ddp_timeout: 3600 # DDP超时设置
ddp_find_unused_parameters: false # LoRA通常不需要
</details><br>
This model was trained from scratch on the /workspace/train_dir_0927-05/all_tool_data_4500.json, the /workspace/final_data.json and the /workspace/train_dir_0927-05/retrieval_data_sql.json datasets. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Mem Active(gib) | Mem Allocated(gib) | Mem Reserved(gib) |
|---|---|---|---|---|---|---|
| No log | 0 | 0 | 0.5713 | 88.01 | 88.01 | 88.7 |
| 0.0669 | 1.0 | 113 | 0.0590 | 114.45 | 114.45 | 132.41 |
| 0.0594 | 2.0 | 226 | 0.0567 | 114.45 | 114.45 | 132.51 |