You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model = AutoModelForCausalLM.from_pretrained("/starfs-dev1/miaochaowei/deepctrcloudml/DeepCTR2/llmdemo/glm-4-9b-chat/", trust_remote_code=True).half().cuda()
System Info / 系統信息
transformers 4.47.1
python 3.11
Who can help? / 谁可以帮助到您?
No response
Information / 问题信息
Reproduction / 复现过程
args=TrainingArguments(
per_device_train_batch_size=2,
optim="adafactor", gradient_checkpointing=False,
gradient_accumulation_steps=4,
warmup_steps=2,
max_steps=10,
learning_rate=2e-4,
seed = 42,
report_to="wandb",
fp16=False,
logging_steps=1,
output_dir="./GLM4"
)
trainer = Trainer(
model=model,
args=args,
train_dataset=tokenized_id,
data_collator=DataCollatorForSeq2Seq(tokenizer=tokenizer, padding=True),
)
trainer.train()---这一步执行报错,
Expected behavior / 期待表现
希望可以解决该问题
The text was updated successfully, but these errors were encountered: