Another re-attempt at GLM 4.5 Air. This time using a different training framework, some updated data and better hyperparameters.
This model is a creative writing and RP model. It's pretty verbose. The intent is to keep the behavior of the original model, but to improve writing, dialogue & creativity.
Compared to the original Iceblink, the effect on this one is more pronounced, with hopefully minimal impact on the intelligence.
GLM4.5 (no thinking): SillyTavern Preset
Creation Process: SFT
SFT on approx 13 million tokens, SFW / NSFW RP, stories, creative instruct & chat data. Some of the SFW datasets are public and can be found in the model datasets list.
I've switched over from Axolotl to MS-Swift w/ Megatron to train MoE models now. There's a roughly 5-10x speedup in training the models, thanks to escaping the naive MoE implementation in TRL. The training time for this run took only 40 minutes, excluding environment setup time.
A low LR for GLM Air appears to be king. Going any higher, I've found it extremely easy to begin overcooking the model.
> MS-Swift configNot optimized for cost / performance efficiency, YMMV.
SFT (8*H200)PYTORCH_CUDA_ALLOC_CONF='expandable_segments:True' \
NPROC_PER_NODE=8 \
WANDB_API_KEY=wandb_key \
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
megatron sft \
--load '/workspace/glm-4.5-air-mcore' \
--dataset '/workspace/joined_dataset_cleaned_modified.jsonl' \
--load_from_cache_file true \
--train_type lora \
--lora_rank 256 \
--lora_alpha 16 \
--use-rslora true \
--target_modules all-linear \
--split_dataset_ratio 0.01 \
--moe_permute_fusion true \
--tensor_model_parallel_size 8 \
--expert_tensor_parallel_size 1 \
--expert_model_parallel_size 8 \
--moe_grouped_gemm true \
--moe_shared_expert_overlap true \
--moe_aux_loss_coeff 6e-5 \
--micro_batch_size 4 \
--global_batch_size 32 \
--recompute_granularity full \
--recompute_method uniform \
--recompute_num_layers 1 \
--max_epochs 2 \
--cross_entropy_loss_fusion true \
--lr 6e-6 \
--lr_warmup_fraction 0.05 \
--min_lr 6e-7 \
--save megatron_output/Iceblink-v3-SFT-3 \
--eval_interval 20 \
--save_interval 25 \
--finetune true \
--packing true \
--max_length 10280 \
--num_workers 8 \
--dataset_num_proc 8 \
--no_save_optim true \
--no_save_rng true \
--sequence_parallel true \
--wandb_project Megatron-Air-SFT \
--wandb_exp_name Iceblink-v3-SFT-3 \
--attention_backend flash
A shoutout to the people in BeaverAI discord that helped me test this model and my intermediate versions.
ddh0 (Madison), Ambius, Dysfunctional & my dude.
model-00043-of-00043.safetensors 11 GBmodel-00022-of-00043.safetensors 5.0 GBmodel-00019-of-00043.safetensors 5.0 GBmodel-00020-of-00043.safetensors 5.0 GBmodel-00034-of-00043.safetensors 5.0 GBmodel-00035-of-00043.safetensors 5.0 GBmodel-00018-of-00043.safetensors 5.0 GBmodel-00033-of-00043.safetensors 5.0 GBmodel-00010-of-00043.safetensors 5.0 GBmodel-00011-of-00043.safetensors 5.0 GBmodel-00012-of-00043.safetensors 5.0 GBmodel-00013-of-00043.safetensors 5.0 GBmodel-00014-of-00043.safetensors 5.0 GBmodel-00015-of-00043.safetensors 5.0 GBmodel-00016-of-00043.safetensors 5.0 GBmodel-00017-of-00043.safetensors 5.0 GBmodel-00024-of-00043.safetensors 5.0 GBmodel-00025-of-00043.safetensors 5.0 GBmodel-00026-of-00043.safetensors 5.0 GBmodel-00027-of-00043.safetensors 5.0 GBmodel-00028-of-00043.safetensors 5.0 GBmodel-00029-of-00043.safetensors 5.0 GBmodel-00030-of-00043.safetensors 5.0 GBmodel-00031-of-00043.safetensors 5.0 GBmodel-00032-of-00043.safetensors 5.0 GBmodel-00039-of-00043.safetensors 5.0 GBmodel-00040-of-00043.safetensors 5.0 GBmodel-00041-of-00043.safetensors 5.0 GBmodel-00042-of-00043.safetensors 5.0 GBmodel-00023-of-00043.safetensors 5.0 GBmodel-00038-of-00043.safetensors 5.0 GBmodel-00009-of-00043.safetensors 5.0 GBmodel-00003-of-00043.safetensors 5.0 GBmodel-00004-of-00043.safetensors 5.0 GBmodel-00005-of-00043.safetensors 5.0 GBmodel-00002-of-00043.safetensors 5.0 GBmodel-00008-of-00043.safetensors 5.0 GBmodel-00037-of-00043.safetensors 5.0 GBmodel-00021-of-00043.safetensors 5.0 GBmodel-00001-of-00043.safetensors 5.0 GBmodel-00007-of-00043.safetensors 5.0 GBmodel-00006-of-00043.safetensors 5.0 GBmodel-00036-of-00043.safetensors 4.9 GB有文件?提交种子。
提交种子zai-org/GLM-4.5-Air